@xmtp/proto
Advanced tools
Comparing version 3.43.1 to 3.43.2
{ | ||
"name": "@xmtp/proto", | ||
"version": "3.43.1", | ||
"version": "3.43.2", | ||
"description": "Protobuf client and generated classes for GRPC API", | ||
@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js", |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PrivatePreferencesPayload = exports.PrivatePreferencesAction_DenyGroup = exports.PrivatePreferencesAction_AllowGroup = exports.PrivatePreferencesAction_DenyDM = exports.PrivatePreferencesAction_AllowDM = exports.PrivatePreferencesAction = exports.protobufPackage = void 0; | ||
exports.PrivatePreferencesPayload = exports.PrivatePreferencesAction_DenyGroup = exports.PrivatePreferencesAction_AllowGroup = exports.PrivatePreferencesAction_DenyAddress = exports.PrivatePreferencesAction_AllowAddress = exports.PrivatePreferencesAction = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -15,4 +15,4 @@ const long_1 = __importDefault(require("long")); | ||
return { | ||
allowDm: undefined, | ||
denyDm: undefined, | ||
allowAddress: undefined, | ||
denyAddress: undefined, | ||
allowGroup: undefined, | ||
@@ -24,7 +24,7 @@ denyGroup: undefined, | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.allowDm !== undefined) { | ||
exports.PrivatePreferencesAction_AllowDM.encode(message.allowDm, writer.uint32(10).fork()).ldelim(); | ||
if (message.allowAddress !== undefined) { | ||
exports.PrivatePreferencesAction_AllowAddress.encode(message.allowAddress, writer.uint32(10).fork()).ldelim(); | ||
} | ||
if (message.denyDm !== undefined) { | ||
exports.PrivatePreferencesAction_DenyDM.encode(message.denyDm, writer.uint32(18).fork()).ldelim(); | ||
if (message.denyAddress !== undefined) { | ||
exports.PrivatePreferencesAction_DenyAddress.encode(message.denyAddress, writer.uint32(18).fork()).ldelim(); | ||
} | ||
@@ -47,6 +47,6 @@ if (message.allowGroup !== undefined) { | ||
case 1: | ||
message.allowDm = exports.PrivatePreferencesAction_AllowDM.decode(reader, reader.uint32()); | ||
message.allowAddress = exports.PrivatePreferencesAction_AllowAddress.decode(reader, reader.uint32()); | ||
break; | ||
case 2: | ||
message.denyDm = exports.PrivatePreferencesAction_DenyDM.decode(reader, reader.uint32()); | ||
message.denyAddress = exports.PrivatePreferencesAction_DenyAddress.decode(reader, reader.uint32()); | ||
break; | ||
@@ -68,7 +68,7 @@ case 3: | ||
return { | ||
allowDm: isSet(object.allowDm) | ||
? exports.PrivatePreferencesAction_AllowDM.fromJSON(object.allowDm) | ||
allowAddress: isSet(object.allowAddress) | ||
? exports.PrivatePreferencesAction_AllowAddress.fromJSON(object.allowAddress) | ||
: undefined, | ||
denyDm: isSet(object.denyDm) | ||
? exports.PrivatePreferencesAction_DenyDM.fromJSON(object.denyDm) | ||
denyAddress: isSet(object.denyAddress) | ||
? exports.PrivatePreferencesAction_DenyAddress.fromJSON(object.denyAddress) | ||
: undefined, | ||
@@ -85,9 +85,9 @@ allowGroup: isSet(object.allowGroup) | ||
const obj = {}; | ||
message.allowDm !== undefined && | ||
(obj.allowDm = message.allowDm | ||
? exports.PrivatePreferencesAction_AllowDM.toJSON(message.allowDm) | ||
message.allowAddress !== undefined && | ||
(obj.allowAddress = message.allowAddress | ||
? exports.PrivatePreferencesAction_AllowAddress.toJSON(message.allowAddress) | ||
: undefined); | ||
message.denyDm !== undefined && | ||
(obj.denyDm = message.denyDm | ||
? exports.PrivatePreferencesAction_DenyDM.toJSON(message.denyDm) | ||
message.denyAddress !== undefined && | ||
(obj.denyAddress = message.denyAddress | ||
? exports.PrivatePreferencesAction_DenyAddress.toJSON(message.denyAddress) | ||
: undefined); | ||
@@ -106,9 +106,9 @@ message.allowGroup !== undefined && | ||
const message = createBasePrivatePreferencesAction(); | ||
message.allowDm = | ||
object.allowDm !== undefined && object.allowDm !== null | ||
? exports.PrivatePreferencesAction_AllowDM.fromPartial(object.allowDm) | ||
message.allowAddress = | ||
object.allowAddress !== undefined && object.allowAddress !== null | ||
? exports.PrivatePreferencesAction_AllowAddress.fromPartial(object.allowAddress) | ||
: undefined; | ||
message.denyDm = | ||
object.denyDm !== undefined && object.denyDm !== null | ||
? exports.PrivatePreferencesAction_DenyDM.fromPartial(object.denyDm) | ||
message.denyAddress = | ||
object.denyAddress !== undefined && object.denyAddress !== null | ||
? exports.PrivatePreferencesAction_DenyAddress.fromPartial(object.denyAddress) | ||
: undefined; | ||
@@ -126,6 +126,6 @@ message.allowGroup = | ||
}; | ||
function createBasePrivatePreferencesAction_AllowDM() { | ||
function createBasePrivatePreferencesAction_AllowAddress() { | ||
return { walletAddresses: [] }; | ||
} | ||
exports.PrivatePreferencesAction_AllowDM = { | ||
exports.PrivatePreferencesAction_AllowAddress = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
@@ -140,3 +140,3 @@ for (const v of message.walletAddresses) { | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBasePrivatePreferencesAction_AllowDM(); | ||
const message = createBasePrivatePreferencesAction_AllowAddress(); | ||
while (reader.pos < end) { | ||
@@ -174,3 +174,3 @@ const tag = reader.uint32(); | ||
var _a; | ||
const message = createBasePrivatePreferencesAction_AllowDM(); | ||
const message = createBasePrivatePreferencesAction_AllowAddress(); | ||
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; | ||
@@ -180,6 +180,6 @@ return message; | ||
}; | ||
function createBasePrivatePreferencesAction_DenyDM() { | ||
function createBasePrivatePreferencesAction_DenyAddress() { | ||
return { walletAddresses: [] }; | ||
} | ||
exports.PrivatePreferencesAction_DenyDM = { | ||
exports.PrivatePreferencesAction_DenyAddress = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
@@ -194,3 +194,3 @@ for (const v of message.walletAddresses) { | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBasePrivatePreferencesAction_DenyDM(); | ||
const message = createBasePrivatePreferencesAction_DenyAddress(); | ||
while (reader.pos < end) { | ||
@@ -228,3 +228,3 @@ const tag = reader.uint32(); | ||
var _a; | ||
const message = createBasePrivatePreferencesAction_DenyDM(); | ||
const message = createBasePrivatePreferencesAction_DenyAddress(); | ||
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; | ||
@@ -231,0 +231,0 @@ return message; |
@@ -8,4 +8,4 @@ /* eslint-disable */ | ||
return { | ||
allowDm: undefined, | ||
denyDm: undefined, | ||
allowAddress: undefined, | ||
denyAddress: undefined, | ||
allowGroup: undefined, | ||
@@ -17,7 +17,7 @@ denyGroup: undefined, | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.allowDm !== undefined) { | ||
PrivatePreferencesAction_AllowDM.encode(message.allowDm, writer.uint32(10).fork()).ldelim(); | ||
if (message.allowAddress !== undefined) { | ||
PrivatePreferencesAction_AllowAddress.encode(message.allowAddress, writer.uint32(10).fork()).ldelim(); | ||
} | ||
if (message.denyDm !== undefined) { | ||
PrivatePreferencesAction_DenyDM.encode(message.denyDm, writer.uint32(18).fork()).ldelim(); | ||
if (message.denyAddress !== undefined) { | ||
PrivatePreferencesAction_DenyAddress.encode(message.denyAddress, writer.uint32(18).fork()).ldelim(); | ||
} | ||
@@ -40,6 +40,6 @@ if (message.allowGroup !== undefined) { | ||
case 1: | ||
message.allowDm = PrivatePreferencesAction_AllowDM.decode(reader, reader.uint32()); | ||
message.allowAddress = PrivatePreferencesAction_AllowAddress.decode(reader, reader.uint32()); | ||
break; | ||
case 2: | ||
message.denyDm = PrivatePreferencesAction_DenyDM.decode(reader, reader.uint32()); | ||
message.denyAddress = PrivatePreferencesAction_DenyAddress.decode(reader, reader.uint32()); | ||
break; | ||
@@ -61,7 +61,7 @@ case 3: | ||
return { | ||
allowDm: isSet(object.allowDm) | ||
? PrivatePreferencesAction_AllowDM.fromJSON(object.allowDm) | ||
allowAddress: isSet(object.allowAddress) | ||
? PrivatePreferencesAction_AllowAddress.fromJSON(object.allowAddress) | ||
: undefined, | ||
denyDm: isSet(object.denyDm) | ||
? PrivatePreferencesAction_DenyDM.fromJSON(object.denyDm) | ||
denyAddress: isSet(object.denyAddress) | ||
? PrivatePreferencesAction_DenyAddress.fromJSON(object.denyAddress) | ||
: undefined, | ||
@@ -78,9 +78,9 @@ allowGroup: isSet(object.allowGroup) | ||
const obj = {}; | ||
message.allowDm !== undefined && | ||
(obj.allowDm = message.allowDm | ||
? PrivatePreferencesAction_AllowDM.toJSON(message.allowDm) | ||
message.allowAddress !== undefined && | ||
(obj.allowAddress = message.allowAddress | ||
? PrivatePreferencesAction_AllowAddress.toJSON(message.allowAddress) | ||
: undefined); | ||
message.denyDm !== undefined && | ||
(obj.denyDm = message.denyDm | ||
? PrivatePreferencesAction_DenyDM.toJSON(message.denyDm) | ||
message.denyAddress !== undefined && | ||
(obj.denyAddress = message.denyAddress | ||
? PrivatePreferencesAction_DenyAddress.toJSON(message.denyAddress) | ||
: undefined); | ||
@@ -99,9 +99,9 @@ message.allowGroup !== undefined && | ||
const message = createBasePrivatePreferencesAction(); | ||
message.allowDm = | ||
object.allowDm !== undefined && object.allowDm !== null | ||
? PrivatePreferencesAction_AllowDM.fromPartial(object.allowDm) | ||
message.allowAddress = | ||
object.allowAddress !== undefined && object.allowAddress !== null | ||
? PrivatePreferencesAction_AllowAddress.fromPartial(object.allowAddress) | ||
: undefined; | ||
message.denyDm = | ||
object.denyDm !== undefined && object.denyDm !== null | ||
? PrivatePreferencesAction_DenyDM.fromPartial(object.denyDm) | ||
message.denyAddress = | ||
object.denyAddress !== undefined && object.denyAddress !== null | ||
? PrivatePreferencesAction_DenyAddress.fromPartial(object.denyAddress) | ||
: undefined; | ||
@@ -119,6 +119,6 @@ message.allowGroup = | ||
}; | ||
function createBasePrivatePreferencesAction_AllowDM() { | ||
function createBasePrivatePreferencesAction_AllowAddress() { | ||
return { walletAddresses: [] }; | ||
} | ||
export const PrivatePreferencesAction_AllowDM = { | ||
export const PrivatePreferencesAction_AllowAddress = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
@@ -133,3 +133,3 @@ for (const v of message.walletAddresses) { | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBasePrivatePreferencesAction_AllowDM(); | ||
const message = createBasePrivatePreferencesAction_AllowAddress(); | ||
while (reader.pos < end) { | ||
@@ -167,3 +167,3 @@ const tag = reader.uint32(); | ||
var _a; | ||
const message = createBasePrivatePreferencesAction_AllowDM(); | ||
const message = createBasePrivatePreferencesAction_AllowAddress(); | ||
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; | ||
@@ -173,6 +173,6 @@ return message; | ||
}; | ||
function createBasePrivatePreferencesAction_DenyDM() { | ||
function createBasePrivatePreferencesAction_DenyAddress() { | ||
return { walletAddresses: [] }; | ||
} | ||
export const PrivatePreferencesAction_DenyDM = { | ||
export const PrivatePreferencesAction_DenyAddress = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
@@ -187,3 +187,3 @@ for (const v of message.walletAddresses) { | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBasePrivatePreferencesAction_DenyDM(); | ||
const message = createBasePrivatePreferencesAction_DenyAddress(); | ||
while (reader.pos < end) { | ||
@@ -221,3 +221,3 @@ const tag = reader.uint32(); | ||
var _a; | ||
const message = createBasePrivatePreferencesAction_DenyDM(); | ||
const message = createBasePrivatePreferencesAction_DenyAddress(); | ||
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; | ||
@@ -224,0 +224,0 @@ return message; |
@@ -16,4 +16,4 @@ import Long from "long"; | ||
export interface PrivatePreferencesAction { | ||
allowDm: PrivatePreferencesAction_AllowDM | undefined; | ||
denyDm: PrivatePreferencesAction_DenyDM | undefined; | ||
allowAddress: PrivatePreferencesAction_AllowAddress | undefined; | ||
denyAddress: PrivatePreferencesAction_DenyAddress | undefined; | ||
allowGroup: PrivatePreferencesAction_AllowGroup | undefined; | ||
@@ -23,3 +23,3 @@ denyGroup: PrivatePreferencesAction_DenyGroup | undefined; | ||
/** Allow 1:1 direct message (DM) access */ | ||
export interface PrivatePreferencesAction_AllowDM { | ||
export interface PrivatePreferencesAction_AllowAddress { | ||
/** Add the given wallet addresses to the allow list */ | ||
@@ -29,3 +29,3 @@ walletAddresses: string[]; | ||
/** Deny (block) 1:1 direct message (DM) access */ | ||
export interface PrivatePreferencesAction_DenyDM { | ||
export interface PrivatePreferencesAction_DenyAddress { | ||
/** Add the given wallet addresses to the deny list */ | ||
@@ -54,6 +54,6 @@ walletAddresses: string[]; | ||
fromPartial<I extends { | ||
allowDm?: { | ||
allowAddress?: { | ||
walletAddresses?: string[] | undefined; | ||
} | undefined; | ||
denyDm?: { | ||
denyAddress?: { | ||
walletAddresses?: string[] | undefined; | ||
@@ -68,12 +68,12 @@ } | undefined; | ||
} & { | ||
allowDm?: ({ | ||
allowAddress?: ({ | ||
walletAddresses?: string[] | undefined; | ||
} & { | ||
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["allowDm"]["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I["allowDm"], "walletAddresses">]: never; }) | undefined; | ||
denyDm?: ({ | ||
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["allowAddress"]["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I["allowAddress"], "walletAddresses">]: never; }) | undefined; | ||
denyAddress?: ({ | ||
walletAddresses?: string[] | undefined; | ||
} & { | ||
walletAddresses?: (string[] & string[] & { [K_2 in Exclude<keyof I["denyDm"]["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_3 in Exclude<keyof I["denyDm"], "walletAddresses">]: never; }) | undefined; | ||
walletAddresses?: (string[] & string[] & { [K_2 in Exclude<keyof I["denyAddress"]["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_3 in Exclude<keyof I["denyAddress"], "walletAddresses">]: never; }) | undefined; | ||
allowGroup?: ({ | ||
@@ -91,7 +91,7 @@ groupIds?: Uint8Array[] | undefined; | ||
}; | ||
export declare const PrivatePreferencesAction_AllowDM: { | ||
encode(message: PrivatePreferencesAction_AllowDM, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_AllowDM; | ||
fromJSON(object: any): PrivatePreferencesAction_AllowDM; | ||
toJSON(message: PrivatePreferencesAction_AllowDM): unknown; | ||
export declare const PrivatePreferencesAction_AllowAddress: { | ||
encode(message: PrivatePreferencesAction_AllowAddress, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_AllowAddress; | ||
fromJSON(object: any): PrivatePreferencesAction_AllowAddress; | ||
toJSON(message: PrivatePreferencesAction_AllowAddress): unknown; | ||
fromPartial<I extends { | ||
@@ -101,9 +101,9 @@ walletAddresses?: string[] | undefined; | ||
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_AllowDM; | ||
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_AllowAddress; | ||
}; | ||
export declare const PrivatePreferencesAction_DenyDM: { | ||
encode(message: PrivatePreferencesAction_DenyDM, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_DenyDM; | ||
fromJSON(object: any): PrivatePreferencesAction_DenyDM; | ||
toJSON(message: PrivatePreferencesAction_DenyDM): unknown; | ||
export declare const PrivatePreferencesAction_DenyAddress: { | ||
encode(message: PrivatePreferencesAction_DenyAddress, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_DenyAddress; | ||
fromJSON(object: any): PrivatePreferencesAction_DenyAddress; | ||
toJSON(message: PrivatePreferencesAction_DenyAddress): unknown; | ||
fromPartial<I extends { | ||
@@ -113,3 +113,3 @@ walletAddresses?: string[] | undefined; | ||
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["walletAddresses"], keyof string[]>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_DenyDM; | ||
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_DenyAddress; | ||
}; | ||
@@ -116,0 +116,0 @@ export declare const PrivatePreferencesAction_AllowGroup: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1934855