New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xmtp/proto

Package Overview
Dependencies
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmtp/proto - npm Package Compare versions

Comparing version 3.41.0 to 3.42.0

ts/dist/cjs/message_contents/frames.pb.js

2

package.json
{
"name": "@xmtp/proto",
"version": "3.41.0",
"version": "3.42.0",
"description": "Protobuf client and generated classes for GRPC API",

@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js",

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ecies = exports.signedPayload = exports.privatePreferences = exports.keystore = exports.invitation = exports.contact = exports.ciphertext = exports.signature = exports.publicKey = exports.privateKey = exports.composite = exports.conversationReference = exports.content = exports.message = exports.authn = exports.fetcher = exports.messageApi = void 0;
exports.ecies = exports.signedPayload = exports.privatePreferences = exports.keystore = exports.invitation = exports.contact = exports.ciphertext = exports.signature = exports.publicKey = exports.privateKey = exports.composite = exports.conversationReference = exports.frames = exports.content = exports.message = exports.authn = exports.fetcher = exports.messageApi = void 0;
exports.messageApi = __importStar(require("./message_api/v1/message_api.pb"));

@@ -33,2 +33,3 @@ exports.fetcher = __importStar(require("./fetch.pb"));

exports.content = __importStar(require("./message_contents/content.pb"));
exports.frames = __importStar(require("./message_contents/frames.pb"));
exports.conversationReference = __importStar(require("./message_contents/conversation_reference.pb"));

@@ -35,0 +36,0 @@ exports.composite = __importStar(require("./message_contents/composite.pb"));

@@ -223,3 +223,8 @@ "use strict";

function createBaseMessageV2() {
return { headerBytes: new Uint8Array(), ciphertext: undefined };
return {
headerBytes: new Uint8Array(),
ciphertext: undefined,
senderHmac: undefined,
shouldPush: undefined,
};
}

@@ -234,2 +239,8 @@ exports.MessageV2 = {

}
if (message.senderHmac !== undefined) {
writer.uint32(26).bytes(message.senderHmac);
}
if (message.shouldPush !== undefined) {
writer.uint32(32).bool(message.shouldPush);
}
return writer;

@@ -250,2 +261,8 @@ },

break;
case 3:
message.senderHmac = reader.bytes();
break;
case 4:
message.shouldPush = reader.bool();
break;
default:

@@ -266,2 +283,8 @@ reader.skipType(tag & 7);

: undefined,
senderHmac: isSet(object.senderHmac)
? bytesFromBase64(object.senderHmac)
: undefined,
shouldPush: isSet(object.shouldPush)
? Boolean(object.shouldPush)
: undefined,
};

@@ -279,6 +302,12 @@ },

: undefined);
message.senderHmac !== undefined &&
(obj.senderHmac =
message.senderHmac !== undefined
? base64FromBytes(message.senderHmac)
: undefined);
message.shouldPush !== undefined && (obj.shouldPush = message.shouldPush);
return obj;
},
fromPartial(object) {
var _a;
var _a, _b, _c;
const message = createBaseMessageV2();

@@ -290,2 +319,4 @@ message.headerBytes = (_a = object.headerBytes) !== null && _a !== void 0 ? _a : new Uint8Array();

: undefined;
message.senderHmac = (_b = object.senderHmac) !== null && _b !== void 0 ? _b : undefined;
message.shouldPush = (_c = object.shouldPush) !== null && _c !== void 0 ? _c : undefined;
return message;

@@ -292,0 +323,0 @@ },

@@ -6,2 +6,3 @@ export * as messageApi from "./message_api/v1/message_api.pb";

export * as content from "./message_contents/content.pb";
export * as frames from "./message_contents/frames.pb";
export * as conversationReference from "./message_contents/conversation_reference.pb";

@@ -8,0 +9,0 @@ export * as composite from "./message_contents/composite.pb";

@@ -217,3 +217,8 @@ /* eslint-disable */

function createBaseMessageV2() {
return { headerBytes: new Uint8Array(), ciphertext: undefined };
return {
headerBytes: new Uint8Array(),
ciphertext: undefined,
senderHmac: undefined,
shouldPush: undefined,
};
}

@@ -228,2 +233,8 @@ export const MessageV2 = {

}
if (message.senderHmac !== undefined) {
writer.uint32(26).bytes(message.senderHmac);
}
if (message.shouldPush !== undefined) {
writer.uint32(32).bool(message.shouldPush);
}
return writer;

@@ -244,2 +255,8 @@ },

break;
case 3:
message.senderHmac = reader.bytes();
break;
case 4:
message.shouldPush = reader.bool();
break;
default:

@@ -260,2 +277,8 @@ reader.skipType(tag & 7);

: undefined,
senderHmac: isSet(object.senderHmac)
? bytesFromBase64(object.senderHmac)
: undefined,
shouldPush: isSet(object.shouldPush)
? Boolean(object.shouldPush)
: undefined,
};

@@ -273,6 +296,12 @@ },

: undefined);
message.senderHmac !== undefined &&
(obj.senderHmac =
message.senderHmac !== undefined
? base64FromBytes(message.senderHmac)
: undefined);
message.shouldPush !== undefined && (obj.shouldPush = message.shouldPush);
return obj;
},
fromPartial(object) {
var _a;
var _a, _b, _c;
const message = createBaseMessageV2();

@@ -284,2 +313,4 @@ message.headerBytes = (_a = object.headerBytes) !== null && _a !== void 0 ? _a : new Uint8Array();

: undefined;
message.senderHmac = (_b = object.senderHmac) !== null && _b !== void 0 ? _b : undefined;
message.shouldPush = (_c = object.shouldPush) !== null && _c !== void 0 ? _c : undefined;
return message;

@@ -286,0 +317,0 @@ },

@@ -6,2 +6,3 @@ export * as messageApi from "./message_api/v1/message_api.pb";

export * as content from "./message_contents/content.pb";
export * as frames from "./message_contents/frames.pb";
export * as conversationReference from "./message_contents/conversation_reference.pb";

@@ -8,0 +9,0 @@ export * as composite from "./message_contents/composite.pb";

@@ -42,2 +42,6 @@ import Long from "long";

ciphertext: Ciphertext | undefined;
/** HMAC of the message ciphertext, with the HMAC key derived from the topic key */
senderHmac?: Uint8Array | undefined;
/** Flag indicating whether the message should be pushed from a notification server */
shouldPush?: boolean | undefined;
}

@@ -894,2 +898,4 @@ /** Versioned Message */

} | undefined;
senderHmac?: Uint8Array | undefined;
shouldPush?: boolean | undefined;
} & {

@@ -914,2 +920,4 @@ headerBytes?: Uint8Array | undefined;

} & { [K_1 in Exclude<keyof I["ciphertext"], "aes256GcmHkdfSha256">]: never; }) | undefined;
senderHmac?: Uint8Array | undefined;
shouldPush?: boolean | undefined;
} & { [K_2 in Exclude<keyof I, keyof MessageV2>]: never; }>(object: I): MessageV2;

@@ -942,2 +950,4 @@ };

} | undefined;
senderHmac?: Uint8Array | undefined;
shouldPush?: boolean | undefined;
} | undefined;

@@ -983,2 +993,4 @@ } & {

} | undefined;
senderHmac?: Uint8Array | undefined;
shouldPush?: boolean | undefined;
} & {

@@ -1003,2 +1015,4 @@ headerBytes?: Uint8Array | undefined;

} & { [K_4 in Exclude<keyof I["v2"]["ciphertext"], "aes256GcmHkdfSha256">]: never; }) | undefined;
senderHmac?: Uint8Array | undefined;
shouldPush?: boolean | undefined;
} & { [K_5 in Exclude<keyof I["v2"], keyof MessageV2>]: never; }) | undefined;

@@ -1005,0 +1019,0 @@ } & { [K_6 in Exclude<keyof I, keyof Message>]: never; }>(object: I): Message;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc