@xmtp/proto
Advanced tools
Comparing version 3.40.0 to 3.41.0-beta.1
{ | ||
"name": "@xmtp/proto", | ||
"version": "3.40.0", | ||
"version": "3.41.0-beta.1", | ||
"description": "Protobuf client and generated classes for GRPC API", | ||
@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js", |
@@ -223,3 +223,8 @@ "use strict"; | ||
function createBaseMessageV2() { | ||
return { headerBytes: new Uint8Array(), ciphertext: undefined }; | ||
return { | ||
headerBytes: new Uint8Array(), | ||
ciphertext: undefined, | ||
senderHmac: new Uint8Array(), | ||
shouldPush: false, | ||
}; | ||
} | ||
@@ -234,2 +239,8 @@ exports.MessageV2 = { | ||
} | ||
if (message.senderHmac.length !== 0) { | ||
writer.uint32(26).bytes(message.senderHmac); | ||
} | ||
if (message.shouldPush === true) { | ||
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,6 @@ reader.skipType(tag & 7); | ||
: undefined, | ||
senderHmac: isSet(object.senderHmac) | ||
? bytesFromBase64(object.senderHmac) | ||
: new Uint8Array(), | ||
shouldPush: isSet(object.shouldPush) ? Boolean(object.shouldPush) : false, | ||
}; | ||
@@ -279,6 +300,9 @@ }, | ||
: undefined); | ||
message.senderHmac !== undefined && | ||
(obj.senderHmac = base64FromBytes(message.senderHmac !== undefined ? message.senderHmac : new Uint8Array())); | ||
message.shouldPush !== undefined && (obj.shouldPush = message.shouldPush); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a; | ||
var _a, _b, _c; | ||
const message = createBaseMessageV2(); | ||
@@ -290,2 +314,4 @@ message.headerBytes = (_a = object.headerBytes) !== null && _a !== void 0 ? _a : new Uint8Array(); | ||
: undefined; | ||
message.senderHmac = (_b = object.senderHmac) !== null && _b !== void 0 ? _b : new Uint8Array(); | ||
message.shouldPush = (_c = object.shouldPush) !== null && _c !== void 0 ? _c : false; | ||
return message; | ||
@@ -292,0 +318,0 @@ }, |
@@ -217,3 +217,8 @@ /* eslint-disable */ | ||
function createBaseMessageV2() { | ||
return { headerBytes: new Uint8Array(), ciphertext: undefined }; | ||
return { | ||
headerBytes: new Uint8Array(), | ||
ciphertext: undefined, | ||
senderHmac: new Uint8Array(), | ||
shouldPush: false, | ||
}; | ||
} | ||
@@ -228,2 +233,8 @@ export const MessageV2 = { | ||
} | ||
if (message.senderHmac.length !== 0) { | ||
writer.uint32(26).bytes(message.senderHmac); | ||
} | ||
if (message.shouldPush === true) { | ||
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,6 @@ reader.skipType(tag & 7); | ||
: undefined, | ||
senderHmac: isSet(object.senderHmac) | ||
? bytesFromBase64(object.senderHmac) | ||
: new Uint8Array(), | ||
shouldPush: isSet(object.shouldPush) ? Boolean(object.shouldPush) : false, | ||
}; | ||
@@ -273,6 +294,9 @@ }, | ||
: undefined); | ||
message.senderHmac !== undefined && | ||
(obj.senderHmac = base64FromBytes(message.senderHmac !== undefined ? message.senderHmac : new Uint8Array())); | ||
message.shouldPush !== undefined && (obj.shouldPush = message.shouldPush); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a; | ||
var _a, _b, _c; | ||
const message = createBaseMessageV2(); | ||
@@ -284,2 +308,4 @@ message.headerBytes = (_a = object.headerBytes) !== null && _a !== void 0 ? _a : new Uint8Array(); | ||
: undefined; | ||
message.senderHmac = (_b = object.senderHmac) !== null && _b !== void 0 ? _b : new Uint8Array(); | ||
message.shouldPush = (_c = object.shouldPush) !== null && _c !== void 0 ? _c : false; | ||
return message; | ||
@@ -286,0 +312,0 @@ }, |
@@ -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; | ||
/** Flag indicating whether the message should be pushed from a notification server */ | ||
shouldPush: boolean; | ||
} | ||
@@ -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 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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1852532
29438
1