@xmtp/proto
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "@xmtp/proto", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Protobuf client and generated classes for GRPC API", | ||
@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js", |
@@ -101,3 +101,3 @@ "use strict"; | ||
function createBaseAuthData() { | ||
return { walletAddr: "", createdNs: 0 }; | ||
return { walletAddr: "", createdNs: long_1.default.UZERO }; | ||
} | ||
@@ -109,3 +109,3 @@ exports.AuthData = { | ||
} | ||
if (message.createdNs !== 0) { | ||
if (!message.createdNs.isZero()) { | ||
writer.uint32(16).uint64(message.createdNs); | ||
@@ -126,3 +126,3 @@ } | ||
case 2: | ||
message.createdNs = longToNumber(reader.uint64()); | ||
message.createdNs = reader.uint64(); | ||
break; | ||
@@ -139,3 +139,5 @@ default: | ||
walletAddr: isSet(object.walletAddr) ? String(object.walletAddr) : "", | ||
createdNs: isSet(object.createdNs) ? Number(object.createdNs) : 0, | ||
createdNs: isSet(object.createdNs) | ||
? long_1.default.fromValue(object.createdNs) | ||
: long_1.default.UZERO, | ||
}; | ||
@@ -147,10 +149,13 @@ }, | ||
message.createdNs !== undefined && | ||
(obj.createdNs = Math.round(message.createdNs)); | ||
(obj.createdNs = (message.createdNs || long_1.default.UZERO).toString()); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
var _a; | ||
const message = createBaseAuthData(); | ||
message.walletAddr = (_a = object.walletAddr) !== null && _a !== void 0 ? _a : ""; | ||
message.createdNs = (_b = object.createdNs) !== null && _b !== void 0 ? _b : 0; | ||
message.createdNs = | ||
object.createdNs !== undefined && object.createdNs !== null | ||
? long_1.default.fromValue(object.createdNs) | ||
: long_1.default.UZERO; | ||
return message; | ||
@@ -195,8 +200,2 @@ }, | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
@@ -203,0 +202,0 @@ minimal_1.default.util.Long = long_1.default; |
@@ -8,2 +8,3 @@ "use strict"; | ||
/* eslint-disable */ | ||
const long_1 = __importDefault(require("long")); | ||
const xmtp_envelope_pb_1 = require("./xmtp_envelope.pb"); | ||
@@ -132,2 +133,6 @@ const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
}; | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
} | ||
function isSet(value) { | ||
@@ -134,0 +139,0 @@ return value !== null && value !== undefined; |
@@ -13,7 +13,7 @@ "use strict"; | ||
function createBasePrivateKey() { | ||
return { timestamp: 0, secp256k1: undefined, publicKey: undefined }; | ||
return { timestamp: long_1.default.UZERO, secp256k1: undefined, publicKey: undefined }; | ||
} | ||
exports.PrivateKey = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(8).uint64(message.timestamp); | ||
@@ -37,3 +37,3 @@ } | ||
case 1: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -55,3 +55,5 @@ case 2: | ||
return { | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO, | ||
secp256k1: isSet(object.secp256k1) | ||
@@ -68,3 +70,3 @@ ? exports.PrivateKey_Secp256k1.fromJSON(object.secp256k1) | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || long_1.default.UZERO).toString()); | ||
message.secp256k1 !== undefined && | ||
@@ -81,5 +83,7 @@ (obj.secp256k1 = message.secp256k1 | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBasePrivateKey(); | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO; | ||
message.secp256k1 = | ||
@@ -412,8 +416,2 @@ object.secp256k1 !== undefined && object.secp256k1 !== null | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
@@ -420,0 +418,0 @@ minimal_1.default.util.Long = long_1.default; |
@@ -159,3 +159,3 @@ "use strict"; | ||
return { | ||
timestamp: 0, | ||
timestamp: long_1.default.UZERO, | ||
signature: undefined, | ||
@@ -167,3 +167,3 @@ secp256k1Uncompressed: undefined, | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(8).uint64(message.timestamp); | ||
@@ -187,3 +187,3 @@ } | ||
case 1: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -206,3 +206,5 @@ case 2: | ||
return { | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO, | ||
signature: isSet(object.signature) | ||
@@ -219,3 +221,3 @@ ? exports.Signature.fromJSON(object.signature) | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || long_1.default.UZERO).toString()); | ||
message.signature !== undefined && | ||
@@ -232,5 +234,7 @@ (obj.signature = message.signature | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBasePublicKey(); | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO; | ||
message.signature = | ||
@@ -841,3 +845,3 @@ object.signature !== undefined && object.signature !== null | ||
function createBaseMessageHeader() { | ||
return { sender: undefined, recipient: undefined, timestamp: 0 }; | ||
return { sender: undefined, recipient: undefined, timestamp: long_1.default.UZERO }; | ||
} | ||
@@ -852,3 +856,3 @@ exports.MessageHeader = { | ||
} | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(24).uint64(message.timestamp); | ||
@@ -872,3 +876,3 @@ } | ||
case 3: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -890,3 +894,5 @@ default: | ||
: undefined, | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO, | ||
}; | ||
@@ -905,7 +911,6 @@ }, | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || long_1.default.UZERO).toString()); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBaseMessageHeader(); | ||
@@ -920,3 +925,6 @@ message.sender = | ||
: undefined; | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? long_1.default.fromValue(object.timestamp) | ||
: long_1.default.UZERO; | ||
return message; | ||
@@ -1074,8 +1082,2 @@ }, | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
@@ -1082,0 +1084,0 @@ minimal_1.default.util.Long = long_1.default; |
@@ -95,3 +95,3 @@ /* eslint-disable */ | ||
function createBaseAuthData() { | ||
return { walletAddr: "", createdNs: 0 }; | ||
return { walletAddr: "", createdNs: Long.UZERO }; | ||
} | ||
@@ -103,3 +103,3 @@ export const AuthData = { | ||
} | ||
if (message.createdNs !== 0) { | ||
if (!message.createdNs.isZero()) { | ||
writer.uint32(16).uint64(message.createdNs); | ||
@@ -120,3 +120,3 @@ } | ||
case 2: | ||
message.createdNs = longToNumber(reader.uint64()); | ||
message.createdNs = reader.uint64(); | ||
break; | ||
@@ -133,3 +133,5 @@ default: | ||
walletAddr: isSet(object.walletAddr) ? String(object.walletAddr) : "", | ||
createdNs: isSet(object.createdNs) ? Number(object.createdNs) : 0, | ||
createdNs: isSet(object.createdNs) | ||
? Long.fromValue(object.createdNs) | ||
: Long.UZERO, | ||
}; | ||
@@ -141,10 +143,13 @@ }, | ||
message.createdNs !== undefined && | ||
(obj.createdNs = Math.round(message.createdNs)); | ||
(obj.createdNs = (message.createdNs || Long.UZERO).toString()); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
var _a; | ||
const message = createBaseAuthData(); | ||
message.walletAddr = (_a = object.walletAddr) !== null && _a !== void 0 ? _a : ""; | ||
message.createdNs = (_b = object.createdNs) !== null && _b !== void 0 ? _b : 0; | ||
message.createdNs = | ||
object.createdNs !== undefined && object.createdNs !== null | ||
? Long.fromValue(object.createdNs) | ||
: Long.UZERO; | ||
return message; | ||
@@ -189,8 +194,2 @@ }, | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -197,0 +196,0 @@ _m0.util.Long = Long; |
/* eslint-disable */ | ||
import Long from "long"; | ||
import { EncodedContent } from "./xmtp_envelope.pb"; | ||
@@ -125,2 +126,6 @@ import _m0 from "protobufjs/minimal"; | ||
}; | ||
if (_m0.util.Long !== Long) { | ||
_m0.util.Long = Long; | ||
_m0.configure(); | ||
} | ||
function isSet(value) { | ||
@@ -127,0 +132,0 @@ return value !== null && value !== undefined; |
@@ -7,7 +7,7 @@ /* eslint-disable */ | ||
function createBasePrivateKey() { | ||
return { timestamp: 0, secp256k1: undefined, publicKey: undefined }; | ||
return { timestamp: Long.UZERO, secp256k1: undefined, publicKey: undefined }; | ||
} | ||
export const PrivateKey = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(8).uint64(message.timestamp); | ||
@@ -31,3 +31,3 @@ } | ||
case 1: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -49,3 +49,5 @@ case 2: | ||
return { | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO, | ||
secp256k1: isSet(object.secp256k1) | ||
@@ -62,3 +64,3 @@ ? PrivateKey_Secp256k1.fromJSON(object.secp256k1) | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || Long.UZERO).toString()); | ||
message.secp256k1 !== undefined && | ||
@@ -75,5 +77,7 @@ (obj.secp256k1 = message.secp256k1 | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBasePrivateKey(); | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO; | ||
message.secp256k1 = | ||
@@ -406,8 +410,2 @@ object.secp256k1 !== undefined && object.secp256k1 !== null | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -414,0 +412,0 @@ _m0.util.Long = Long; |
@@ -151,3 +151,3 @@ /* eslint-disable */ | ||
return { | ||
timestamp: 0, | ||
timestamp: Long.UZERO, | ||
signature: undefined, | ||
@@ -159,3 +159,3 @@ secp256k1Uncompressed: undefined, | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(8).uint64(message.timestamp); | ||
@@ -179,3 +179,3 @@ } | ||
case 1: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -198,3 +198,5 @@ case 2: | ||
return { | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO, | ||
signature: isSet(object.signature) | ||
@@ -211,3 +213,3 @@ ? Signature.fromJSON(object.signature) | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || Long.UZERO).toString()); | ||
message.signature !== undefined && | ||
@@ -224,5 +226,7 @@ (obj.signature = message.signature | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBasePublicKey(); | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO; | ||
message.signature = | ||
@@ -833,3 +837,3 @@ object.signature !== undefined && object.signature !== null | ||
function createBaseMessageHeader() { | ||
return { sender: undefined, recipient: undefined, timestamp: 0 }; | ||
return { sender: undefined, recipient: undefined, timestamp: Long.UZERO }; | ||
} | ||
@@ -844,3 +848,3 @@ export const MessageHeader = { | ||
} | ||
if (message.timestamp !== 0) { | ||
if (!message.timestamp.isZero()) { | ||
writer.uint32(24).uint64(message.timestamp); | ||
@@ -864,3 +868,3 @@ } | ||
case 3: | ||
message.timestamp = longToNumber(reader.uint64()); | ||
message.timestamp = reader.uint64(); | ||
break; | ||
@@ -882,3 +886,5 @@ default: | ||
: undefined, | ||
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0, | ||
timestamp: isSet(object.timestamp) | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO, | ||
}; | ||
@@ -897,7 +903,6 @@ }, | ||
message.timestamp !== undefined && | ||
(obj.timestamp = Math.round(message.timestamp)); | ||
(obj.timestamp = (message.timestamp || Long.UZERO).toString()); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a; | ||
const message = createBaseMessageHeader(); | ||
@@ -912,3 +917,6 @@ message.sender = | ||
: undefined; | ||
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0; | ||
message.timestamp = | ||
object.timestamp !== undefined && object.timestamp !== null | ||
? Long.fromValue(object.timestamp) | ||
: Long.UZERO; | ||
return message; | ||
@@ -1066,8 +1074,2 @@ }, | ||
} | ||
function longToNumber(long) { | ||
if (long.gt(Number.MAX_SAFE_INTEGER)) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -1074,0 +1076,0 @@ _m0.util.Long = Long; |
@@ -0,1 +1,2 @@ | ||
import Long from "long"; | ||
import { PublicKey, Signature } from "../../message_contents/xmtp_envelope.pb"; | ||
@@ -28,3 +29,3 @@ import _m0 from "protobufjs/minimal"; | ||
/** time when the token was generated/signed */ | ||
createdNs: number; | ||
createdNs: Long; | ||
} | ||
@@ -38,3 +39,3 @@ export declare const Token: { | ||
identityKey?: { | ||
timestamp?: number | undefined; | ||
timestamp?: string | number | Long | undefined; | ||
signature?: { | ||
@@ -59,3 +60,3 @@ ecdsaCompact?: { | ||
identityKey?: ({ | ||
timestamp?: number | undefined; | ||
timestamp?: string | number | Long | undefined; | ||
signature?: { | ||
@@ -71,3 +72,74 @@ ecdsaCompact?: { | ||
} & { | ||
timestamp?: number | undefined; | ||
timestamp?: string | number | (Long & { | ||
high: number; | ||
low: number; | ||
unsigned: boolean; | ||
add: (addend: string | number | Long) => Long; | ||
and: (other: string | number | Long) => Long; | ||
compare: (other: string | number | Long) => number; | ||
comp: (other: string | number | Long) => number; | ||
divide: (divisor: string | number | Long) => Long; | ||
div: (divisor: string | number | Long) => Long; | ||
equals: (other: string | number | Long) => boolean; | ||
eq: (other: string | number | Long) => boolean; | ||
getHighBits: () => number; | ||
getHighBitsUnsigned: () => number; | ||
getLowBits: () => number; | ||
getLowBitsUnsigned: () => number; | ||
getNumBitsAbs: () => number; | ||
greaterThan: (other: string | number | Long) => boolean; | ||
gt: (other: string | number | Long) => boolean; | ||
greaterThanOrEqual: (other: string | number | Long) => boolean; | ||
gte: (other: string | number | Long) => boolean; | ||
ge: (other: string | number | Long) => boolean; | ||
isEven: () => boolean; | ||
isNegative: () => boolean; | ||
isOdd: () => boolean; | ||
isPositive: () => boolean; | ||
isZero: () => boolean; | ||
eqz: () => boolean; | ||
lessThan: (other: string | number | Long) => boolean; | ||
lt: (other: string | number | Long) => boolean; | ||
lessThanOrEqual: (other: string | number | Long) => boolean; | ||
lte: (other: string | number | Long) => boolean; | ||
le: (other: string | number | Long) => boolean; | ||
modulo: (other: string | number | Long) => Long; | ||
mod: (other: string | number | Long) => Long; | ||
rem: (other: string | number | Long) => Long; | ||
multiply: (multiplier: string | number | Long) => Long; | ||
mul: (multiplier: string | number | Long) => Long; | ||
negate: () => Long; | ||
neg: () => Long; | ||
not: () => Long; | ||
countLeadingZeros: () => number; | ||
clz: () => number; | ||
countTrailingZeros: () => number; | ||
ctz: () => number; | ||
notEquals: (other: string | number | Long) => boolean; | ||
neq: (other: string | number | Long) => boolean; | ||
ne: (other: string | number | Long) => boolean; | ||
or: (other: string | number | Long) => Long; | ||
shiftLeft: (numBits: number | Long) => Long; | ||
shl: (numBits: number | Long) => Long; | ||
shiftRight: (numBits: number | Long) => Long; | ||
shr: (numBits: number | Long) => Long; | ||
shiftRightUnsigned: (numBits: number | Long) => Long; | ||
shru: (numBits: number | Long) => Long; | ||
shr_u: (numBits: number | Long) => Long; | ||
rotateLeft: (numBits: number | Long) => Long; | ||
rotl: (numBits: number | Long) => Long; | ||
rotateRight: (numBits: number | Long) => Long; | ||
rotr: (numBits: number | Long) => Long; | ||
subtract: (subtrahend: string | number | Long) => Long; | ||
sub: (subtrahend: string | number | Long) => Long; | ||
toInt: () => number; | ||
toNumber: () => number; | ||
toBytes: (le?: boolean | undefined) => number[]; | ||
toBytesLE: () => number[]; | ||
toBytesBE: () => number[]; | ||
toSigned: () => Long; | ||
toString: (radix?: number | undefined) => string; | ||
toUnsigned: () => Long; | ||
xor: (other: string | number | Long) => Long; | ||
} & { [K in Exclude<keyof I["identityKey"]["timestamp"], keyof Long>]: never; }) | undefined; | ||
signature?: ({ | ||
@@ -85,4 +157,4 @@ ecdsaCompact?: { | ||
recovery?: number | undefined; | ||
} & { [K in Exclude<keyof I["identityKey"]["signature"]["ecdsaCompact"], keyof import("../../message_contents/xmtp_envelope.pb").Signature_ECDSACompact>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I["identityKey"]["signature"], "ecdsaCompact">]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I["identityKey"]["signature"]["ecdsaCompact"], keyof import("../../message_contents/xmtp_envelope.pb").Signature_ECDSACompact>]: never; }) | undefined; | ||
} & { [K_2 in Exclude<keyof I["identityKey"]["signature"], "ecdsaCompact">]: never; }) | undefined; | ||
secp256k1Uncompressed?: ({ | ||
@@ -92,4 +164,4 @@ bytes?: Uint8Array | undefined; | ||
bytes?: Uint8Array | undefined; | ||
} & { [K_2 in Exclude<keyof I["identityKey"]["secp256k1Uncompressed"], "bytes">]: never; }) | undefined; | ||
} & { [K_3 in Exclude<keyof I["identityKey"], keyof PublicKey>]: never; }) | undefined; | ||
} & { [K_3 in Exclude<keyof I["identityKey"]["secp256k1Uncompressed"], "bytes">]: never; }) | undefined; | ||
} & { [K_4 in Exclude<keyof I["identityKey"], keyof PublicKey>]: never; }) | undefined; | ||
authDataBytes?: Uint8Array | undefined; | ||
@@ -108,5 +180,5 @@ authDataSignature?: ({ | ||
recovery?: number | undefined; | ||
} & { [K_4 in Exclude<keyof I["authDataSignature"]["ecdsaCompact"], keyof import("../../message_contents/xmtp_envelope.pb").Signature_ECDSACompact>]: never; }) | undefined; | ||
} & { [K_5 in Exclude<keyof I["authDataSignature"], "ecdsaCompact">]: never; }) | undefined; | ||
} & { [K_6 in Exclude<keyof I, keyof Token>]: never; }>(object: I): Token; | ||
} & { [K_5 in Exclude<keyof I["authDataSignature"]["ecdsaCompact"], keyof import("../../message_contents/xmtp_envelope.pb").Signature_ECDSACompact>]: never; }) | undefined; | ||
} & { [K_6 in Exclude<keyof I["authDataSignature"], "ecdsaCompact">]: never; }) | undefined; | ||
} & { [K_7 in Exclude<keyof I, keyof Token>]: never; }>(object: I): Token; | ||
}; | ||
@@ -120,10 +192,81 @@ export declare const AuthData: { | ||
walletAddr?: string | undefined; | ||
createdNs?: number | undefined; | ||
createdNs?: string | number | Long | undefined; | ||
} & { | ||
walletAddr?: string | undefined; | ||
createdNs?: number | undefined; | ||
} & { [K in Exclude<keyof I, keyof AuthData>]: never; }>(object: I): AuthData; | ||
createdNs?: string | number | (Long & { | ||
high: number; | ||
low: number; | ||
unsigned: boolean; | ||
add: (addend: string | number | Long) => Long; | ||
and: (other: string | number | Long) => Long; | ||
compare: (other: string | number | Long) => number; | ||
comp: (other: string | number | Long) => number; | ||
divide: (divisor: string | number | Long) => Long; | ||
div: (divisor: string | number | Long) => Long; | ||
equals: (other: string | number | Long) => boolean; | ||
eq: (other: string | number | Long) => boolean; | ||
getHighBits: () => number; | ||
getHighBitsUnsigned: () => number; | ||
getLowBits: () => number; | ||
getLowBitsUnsigned: () => number; | ||
getNumBitsAbs: () => number; | ||
greaterThan: (other: string | number | Long) => boolean; | ||
gt: (other: string | number | Long) => boolean; | ||
greaterThanOrEqual: (other: string | number | Long) => boolean; | ||
gte: (other: string | number | Long) => boolean; | ||
ge: (other: string | number | Long) => boolean; | ||
isEven: () => boolean; | ||
isNegative: () => boolean; | ||
isOdd: () => boolean; | ||
isPositive: () => boolean; | ||
isZero: () => boolean; | ||
eqz: () => boolean; | ||
lessThan: (other: string | number | Long) => boolean; | ||
lt: (other: string | number | Long) => boolean; | ||
lessThanOrEqual: (other: string | number | Long) => boolean; | ||
lte: (other: string | number | Long) => boolean; | ||
le: (other: string | number | Long) => boolean; | ||
modulo: (other: string | number | Long) => Long; | ||
mod: (other: string | number | Long) => Long; | ||
rem: (other: string | number | Long) => Long; | ||
multiply: (multiplier: string | number | Long) => Long; | ||
mul: (multiplier: string | number | Long) => Long; | ||
negate: () => Long; | ||
neg: () => Long; | ||
not: () => Long; | ||
countLeadingZeros: () => number; | ||
clz: () => number; | ||
countTrailingZeros: () => number; | ||
ctz: () => number; | ||
notEquals: (other: string | number | Long) => boolean; | ||
neq: (other: string | number | Long) => boolean; | ||
ne: (other: string | number | Long) => boolean; | ||
or: (other: string | number | Long) => Long; | ||
shiftLeft: (numBits: number | Long) => Long; | ||
shl: (numBits: number | Long) => Long; | ||
shiftRight: (numBits: number | Long) => Long; | ||
shr: (numBits: number | Long) => Long; | ||
shiftRightUnsigned: (numBits: number | Long) => Long; | ||
shru: (numBits: number | Long) => Long; | ||
shr_u: (numBits: number | Long) => Long; | ||
rotateLeft: (numBits: number | Long) => Long; | ||
rotl: (numBits: number | Long) => Long; | ||
rotateRight: (numBits: number | Long) => Long; | ||
rotr: (numBits: number | Long) => Long; | ||
subtract: (subtrahend: string | number | Long) => Long; | ||
sub: (subtrahend: string | number | Long) => Long; | ||
toInt: () => number; | ||
toNumber: () => number; | ||
toBytes: (le?: boolean | undefined) => number[]; | ||
toBytesLE: () => number[]; | ||
toBytesBE: () => number[]; | ||
toSigned: () => Long; | ||
toString: (radix?: number | undefined) => string; | ||
toUnsigned: () => Long; | ||
xor: (other: string | number | Long) => Long; | ||
} & { [K in Exclude<keyof I["createdNs"], keyof Long>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I, keyof AuthData>]: never; }>(object: I): AuthData; | ||
}; | ||
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { | ||
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
@@ -130,0 +273,0 @@ } : Partial<T>; |
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 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 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 too big to display
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
581315
9203
8