@xmtp/proto
Advanced tools
Comparing version 3.60.0 to 3.61.0
{ | ||
"name": "@xmtp/proto", | ||
"version": "3.60.0", | ||
"version": "3.61.0", | ||
"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.PostCommitAction_SendWelcomes = exports.PostCommitAction_Installation = exports.PostCommitAction = exports.UpdateMetadataData_V1 = exports.UpdateMetadataData = exports.UpdateGroupMembershipData_V1_MembershipUpdatesEntry = exports.UpdateGroupMembershipData_V1 = exports.UpdateGroupMembershipData = exports.RemoveMembersData_V1 = exports.RemoveMembersData = exports.AddMembersData_V1 = exports.AddMembersData = exports.AddressesOrInstallationIds = exports.InstallationIds = exports.AccountAddresses = exports.SendMessageData_V1 = exports.SendMessageData = exports.protobufPackage = void 0; | ||
exports.PostCommitAction_SendWelcomes = exports.PostCommitAction_Installation = exports.PostCommitAction = exports.UpdateAdminListsData_V1 = exports.UpdateAdminListsData = exports.UpdateMetadataData_V1 = exports.UpdateMetadataData = exports.UpdateGroupMembershipData_V1_MembershipUpdatesEntry = exports.UpdateGroupMembershipData_V1 = exports.UpdateGroupMembershipData = exports.RemoveMembersData_V1 = exports.RemoveMembersData = exports.AddMembersData_V1 = exports.AddMembersData = exports.AddressesOrInstallationIds = exports.InstallationIds = exports.AccountAddresses = exports.SendMessageData_V1 = exports.SendMessageData = exports.adminListUpdateTypeToJSON = exports.adminListUpdateTypeFromJSON = exports.AdminListUpdateType = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -12,2 +12,54 @@ const long_1 = __importDefault(require("long")); | ||
exports.protobufPackage = "xmtp.mls.database"; | ||
/** Type of update to admin lists */ | ||
var AdminListUpdateType; | ||
(function (AdminListUpdateType) { | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"] = 0] = "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"] = 1] = "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"] = 2] = "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"] = 3] = "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"] = 4] = "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(AdminListUpdateType = exports.AdminListUpdateType || (exports.AdminListUpdateType = {})); | ||
function adminListUpdateTypeFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED; | ||
case 1: | ||
case "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN; | ||
case 2: | ||
case "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN; | ||
case 3: | ||
case "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN; | ||
case 4: | ||
case "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return AdminListUpdateType.UNRECOGNIZED; | ||
} | ||
} | ||
exports.adminListUpdateTypeFromJSON = adminListUpdateTypeFromJSON; | ||
function adminListUpdateTypeToJSON(object) { | ||
switch (object) { | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED: | ||
return "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"; | ||
case AdminListUpdateType.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
exports.adminListUpdateTypeToJSON = adminListUpdateTypeToJSON; | ||
function createBaseSendMessageData() { | ||
@@ -773,2 +825,109 @@ return { v1: undefined }; | ||
}; | ||
function createBaseUpdateAdminListsData() { | ||
return { v1: undefined }; | ||
} | ||
exports.UpdateAdminListsData = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.v1 !== undefined) { | ||
exports.UpdateAdminListsData_V1.encode(message.v1, writer.uint32(10).fork()).ldelim(); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseUpdateAdminListsData(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.v1 = exports.UpdateAdminListsData_V1.decode(reader, reader.uint32()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
v1: isSet(object.v1) | ||
? exports.UpdateAdminListsData_V1.fromJSON(object.v1) | ||
: undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.v1 !== undefined && | ||
(obj.v1 = message.v1 | ||
? exports.UpdateAdminListsData_V1.toJSON(message.v1) | ||
: undefined); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseUpdateAdminListsData(); | ||
message.v1 = | ||
object.v1 !== undefined && object.v1 !== null | ||
? exports.UpdateAdminListsData_V1.fromPartial(object.v1) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
function createBaseUpdateAdminListsData_V1() { | ||
return { adminListUpdateType: 0, inboxId: "" }; | ||
} | ||
exports.UpdateAdminListsData_V1 = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.adminListUpdateType !== 0) { | ||
writer.uint32(8).int32(message.adminListUpdateType); | ||
} | ||
if (message.inboxId !== "") { | ||
writer.uint32(18).string(message.inboxId); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseUpdateAdminListsData_V1(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.adminListUpdateType = reader.int32(); | ||
break; | ||
case 2: | ||
message.inboxId = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
adminListUpdateType: isSet(object.adminListUpdateType) | ||
? adminListUpdateTypeFromJSON(object.adminListUpdateType) | ||
: 0, | ||
inboxId: isSet(object.inboxId) ? String(object.inboxId) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.adminListUpdateType !== undefined && | ||
(obj.adminListUpdateType = adminListUpdateTypeToJSON(message.adminListUpdateType)); | ||
message.inboxId !== undefined && (obj.inboxId = message.inboxId); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseUpdateAdminListsData_V1(); | ||
message.adminListUpdateType = (_a = object.adminListUpdateType) !== null && _a !== void 0 ? _a : 0; | ||
message.inboxId = (_b = object.inboxId) !== null && _b !== void 0 ? _b : ""; | ||
return message; | ||
}, | ||
}; | ||
function createBasePostCommitAction() { | ||
@@ -775,0 +934,0 @@ return { sendWelcomes: undefined }; |
@@ -5,2 +5,52 @@ /* eslint-disable */ | ||
export const protobufPackage = "xmtp.mls.database"; | ||
/** Type of update to admin lists */ | ||
export var AdminListUpdateType; | ||
(function (AdminListUpdateType) { | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"] = 0] = "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"] = 1] = "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"] = 2] = "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"] = 3] = "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"] = 4] = "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"; | ||
AdminListUpdateType[AdminListUpdateType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(AdminListUpdateType || (AdminListUpdateType = {})); | ||
export function adminListUpdateTypeFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED; | ||
case 1: | ||
case "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN; | ||
case 2: | ||
case "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN; | ||
case 3: | ||
case "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN; | ||
case 4: | ||
case "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN": | ||
return AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return AdminListUpdateType.UNRECOGNIZED; | ||
} | ||
} | ||
export function adminListUpdateTypeToJSON(object) { | ||
switch (object) { | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED: | ||
return "ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN"; | ||
case AdminListUpdateType.ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN: | ||
return "ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN"; | ||
case AdminListUpdateType.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
function createBaseSendMessageData() { | ||
@@ -766,2 +816,109 @@ return { v1: undefined }; | ||
}; | ||
function createBaseUpdateAdminListsData() { | ||
return { v1: undefined }; | ||
} | ||
export const UpdateAdminListsData = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.v1 !== undefined) { | ||
UpdateAdminListsData_V1.encode(message.v1, writer.uint32(10).fork()).ldelim(); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseUpdateAdminListsData(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.v1 = UpdateAdminListsData_V1.decode(reader, reader.uint32()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
v1: isSet(object.v1) | ||
? UpdateAdminListsData_V1.fromJSON(object.v1) | ||
: undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.v1 !== undefined && | ||
(obj.v1 = message.v1 | ||
? UpdateAdminListsData_V1.toJSON(message.v1) | ||
: undefined); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseUpdateAdminListsData(); | ||
message.v1 = | ||
object.v1 !== undefined && object.v1 !== null | ||
? UpdateAdminListsData_V1.fromPartial(object.v1) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
function createBaseUpdateAdminListsData_V1() { | ||
return { adminListUpdateType: 0, inboxId: "" }; | ||
} | ||
export const UpdateAdminListsData_V1 = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.adminListUpdateType !== 0) { | ||
writer.uint32(8).int32(message.adminListUpdateType); | ||
} | ||
if (message.inboxId !== "") { | ||
writer.uint32(18).string(message.inboxId); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseUpdateAdminListsData_V1(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.adminListUpdateType = reader.int32(); | ||
break; | ||
case 2: | ||
message.inboxId = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
adminListUpdateType: isSet(object.adminListUpdateType) | ||
? adminListUpdateTypeFromJSON(object.adminListUpdateType) | ||
: 0, | ||
inboxId: isSet(object.inboxId) ? String(object.inboxId) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.adminListUpdateType !== undefined && | ||
(obj.adminListUpdateType = adminListUpdateTypeToJSON(message.adminListUpdateType)); | ||
message.inboxId !== undefined && (obj.inboxId = message.inboxId); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseUpdateAdminListsData_V1(); | ||
message.adminListUpdateType = (_a = object.adminListUpdateType) !== null && _a !== void 0 ? _a : 0; | ||
message.inboxId = (_b = object.inboxId) !== null && _b !== void 0 ? _b : ""; | ||
return message; | ||
}, | ||
}; | ||
function createBasePostCommitAction() { | ||
@@ -768,0 +925,0 @@ return { sendWelcomes: undefined }; |
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
export declare const protobufPackage = "xmtp.mls.database"; | ||
/** Type of update to admin lists */ | ||
export declare enum AdminListUpdateType { | ||
ADMIN_LIST_UPDATE_TYPE_UNSPECIFIED = 0, | ||
ADMIN_LIST_UPDATE_TYPE_ADD_ADMIN = 1, | ||
ADMIN_LIST_UPDATE_TYPE_REMOVE_ADMIN = 2, | ||
ADMIN_LIST_UPDATE_TYPE_ADD_SUPER_ADMIN = 3, | ||
ADMIN_LIST_UPDATE_TYPE_REMOVE_SUPER_ADMIN = 4, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function adminListUpdateTypeFromJSON(object: any): AdminListUpdateType; | ||
export declare function adminListUpdateTypeToJSON(object: AdminListUpdateType): string; | ||
/** The data required to publish a message */ | ||
@@ -70,2 +81,11 @@ export interface SendMessageData { | ||
} | ||
/** The data required to update group admin/super admin lists */ | ||
export interface UpdateAdminListsData { | ||
v1: UpdateAdminListsData_V1 | undefined; | ||
} | ||
/** V1 of UpdateAdminListsPublishData */ | ||
export interface UpdateAdminListsData_V1 { | ||
adminListUpdateType: AdminListUpdateType; | ||
inboxId: string; | ||
} | ||
/** Generic data-type for all post-commit actions */ | ||
@@ -636,2 +656,35 @@ export interface PostCommitAction { | ||
}; | ||
export declare const UpdateAdminListsData: { | ||
encode(message: UpdateAdminListsData, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateAdminListsData; | ||
fromJSON(object: any): UpdateAdminListsData; | ||
toJSON(message: UpdateAdminListsData): unknown; | ||
fromPartial<I extends { | ||
v1?: { | ||
adminListUpdateType?: AdminListUpdateType | undefined; | ||
inboxId?: string | undefined; | ||
} | undefined; | ||
} & { | ||
v1?: ({ | ||
adminListUpdateType?: AdminListUpdateType | undefined; | ||
inboxId?: string | undefined; | ||
} & { | ||
adminListUpdateType?: AdminListUpdateType | undefined; | ||
inboxId?: string | undefined; | ||
} & { [K in Exclude<keyof I["v1"], keyof UpdateAdminListsData_V1>]: never; }) | undefined; | ||
} & { [K_1 in Exclude<keyof I, "v1">]: never; }>(object: I): UpdateAdminListsData; | ||
}; | ||
export declare const UpdateAdminListsData_V1: { | ||
encode(message: UpdateAdminListsData_V1, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateAdminListsData_V1; | ||
fromJSON(object: any): UpdateAdminListsData_V1; | ||
toJSON(message: UpdateAdminListsData_V1): unknown; | ||
fromPartial<I extends { | ||
adminListUpdateType?: AdminListUpdateType | undefined; | ||
inboxId?: string | undefined; | ||
} & { | ||
adminListUpdateType?: AdminListUpdateType | undefined; | ||
inboxId?: string | undefined; | ||
} & { [K in Exclude<keyof I, keyof UpdateAdminListsData_V1>]: never; }>(object: I): UpdateAdminListsData_V1; | ||
}; | ||
export declare const PostCommitAction: { | ||
@@ -638,0 +691,0 @@ encode(message: PostCommitAction, writer?: _m0.Writer): _m0.Writer; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
11545661
96008
6