mezon-js-protobuf 1.8.85 → 1.8.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +53 -45
- package/dist/mezon-js/api/api.d.ts +24358 -0
- package/dist/mezon-js/google/protobuf/struct.d.ts +201 -0
- package/dist/mezon-js/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js/utils.d.ts +6 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +487 -27
- package/dist/mezon-js-protobuf/index.d.ts +0 -1
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +14 -14
- package/dist/mezon-js-protobuf.cjs.js +9 -613
- package/dist/mezon-js-protobuf.esm.mjs +9 -613
- package/index.ts +0 -1
- package/package.json +1 -1
- package/web_socket_adapter_pb.ts +123 -123
- package/utils.ts +0 -40
package/api/api.ts
CHANGED
|
@@ -2889,7 +2889,7 @@ export interface ChannelSettingListRequest {
|
|
|
2889
2889
|
/** category id */
|
|
2890
2890
|
category_id: string;
|
|
2891
2891
|
/** is private channel */
|
|
2892
|
-
|
|
2892
|
+
private_channel:
|
|
2893
2893
|
| number
|
|
2894
2894
|
| undefined;
|
|
2895
2895
|
/** is active */
|
|
@@ -3614,10 +3614,10 @@ export interface Message2InboxRequest {
|
|
|
3614
3614
|
clan_id: string;
|
|
3615
3615
|
avatar: string;
|
|
3616
3616
|
content: string;
|
|
3617
|
-
mentions:
|
|
3618
|
-
attachments:
|
|
3619
|
-
reactions:
|
|
3620
|
-
references:
|
|
3617
|
+
mentions: MessageMention[];
|
|
3618
|
+
attachments: MessageAttachment[];
|
|
3619
|
+
reactions: MessageReaction[];
|
|
3620
|
+
references: MessageRef[];
|
|
3621
3621
|
}
|
|
3622
3622
|
|
|
3623
3623
|
/** Send an email with password to the server. Used with authenticate/link/unlink. */
|
|
@@ -29085,7 +29085,7 @@ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
|
|
|
29085
29085
|
clan_id: "",
|
|
29086
29086
|
parent_id: "",
|
|
29087
29087
|
category_id: "",
|
|
29088
|
-
|
|
29088
|
+
private_channel: undefined,
|
|
29089
29089
|
active: undefined,
|
|
29090
29090
|
status: undefined,
|
|
29091
29091
|
type: undefined,
|
|
@@ -29106,8 +29106,8 @@ export const ChannelSettingListRequest = {
|
|
|
29106
29106
|
if (message.category_id !== "") {
|
|
29107
29107
|
writer.uint32(26).string(message.category_id);
|
|
29108
29108
|
}
|
|
29109
|
-
if (message.
|
|
29110
|
-
Int32Value.encode({ value: message.
|
|
29109
|
+
if (message.private_channel !== undefined) {
|
|
29110
|
+
Int32Value.encode({ value: message.private_channel! }, writer.uint32(34).fork()).ldelim();
|
|
29111
29111
|
}
|
|
29112
29112
|
if (message.active !== undefined) {
|
|
29113
29113
|
Int32Value.encode({ value: message.active! }, writer.uint32(42).fork()).ldelim();
|
|
@@ -29163,7 +29163,7 @@ export const ChannelSettingListRequest = {
|
|
|
29163
29163
|
break;
|
|
29164
29164
|
}
|
|
29165
29165
|
|
|
29166
|
-
message.
|
|
29166
|
+
message.private_channel = Int32Value.decode(reader, reader.uint32()).value;
|
|
29167
29167
|
continue;
|
|
29168
29168
|
case 5:
|
|
29169
29169
|
if (tag !== 42) {
|
|
@@ -29221,7 +29221,7 @@ export const ChannelSettingListRequest = {
|
|
|
29221
29221
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
29222
29222
|
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
29223
29223
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
29224
|
-
|
|
29224
|
+
private_channel: isSet(object.private_channel) ? Number(object.private_channel) : undefined,
|
|
29225
29225
|
active: isSet(object.active) ? Number(object.active) : undefined,
|
|
29226
29226
|
status: isSet(object.status) ? Number(object.status) : undefined,
|
|
29227
29227
|
type: isSet(object.type) ? Number(object.type) : undefined,
|
|
@@ -29242,8 +29242,8 @@ export const ChannelSettingListRequest = {
|
|
|
29242
29242
|
if (message.category_id !== "") {
|
|
29243
29243
|
obj.category_id = message.category_id;
|
|
29244
29244
|
}
|
|
29245
|
-
if (message.
|
|
29246
|
-
obj.
|
|
29245
|
+
if (message.private_channel !== undefined) {
|
|
29246
|
+
obj.private_channel = message.private_channel;
|
|
29247
29247
|
}
|
|
29248
29248
|
if (message.active !== undefined) {
|
|
29249
29249
|
obj.active = message.active;
|
|
@@ -29274,7 +29274,7 @@ export const ChannelSettingListRequest = {
|
|
|
29274
29274
|
message.clan_id = object.clan_id ?? "";
|
|
29275
29275
|
message.parent_id = object.parent_id ?? "";
|
|
29276
29276
|
message.category_id = object.category_id ?? "";
|
|
29277
|
-
message.
|
|
29277
|
+
message.private_channel = object.private_channel ?? undefined;
|
|
29278
29278
|
message.active = object.active ?? undefined;
|
|
29279
29279
|
message.status = object.status ?? undefined;
|
|
29280
29280
|
message.type = object.type ?? undefined;
|
|
@@ -37306,10 +37306,10 @@ function createBaseMessage2InboxRequest(): Message2InboxRequest {
|
|
|
37306
37306
|
clan_id: "",
|
|
37307
37307
|
avatar: "",
|
|
37308
37308
|
content: "",
|
|
37309
|
-
mentions:
|
|
37310
|
-
attachments:
|
|
37311
|
-
reactions:
|
|
37312
|
-
references:
|
|
37309
|
+
mentions: [],
|
|
37310
|
+
attachments: [],
|
|
37311
|
+
reactions: [],
|
|
37312
|
+
references: [],
|
|
37313
37313
|
};
|
|
37314
37314
|
}
|
|
37315
37315
|
|
|
@@ -37330,17 +37330,17 @@ export const Message2InboxRequest = {
|
|
|
37330
37330
|
if (message.content !== "") {
|
|
37331
37331
|
writer.uint32(42).string(message.content);
|
|
37332
37332
|
}
|
|
37333
|
-
|
|
37334
|
-
writer.uint32(50).
|
|
37333
|
+
for (const v of message.mentions) {
|
|
37334
|
+
MessageMention.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
37335
37335
|
}
|
|
37336
|
-
|
|
37337
|
-
writer.uint32(58).
|
|
37336
|
+
for (const v of message.attachments) {
|
|
37337
|
+
MessageAttachment.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
37338
37338
|
}
|
|
37339
|
-
|
|
37340
|
-
writer.uint32(66).
|
|
37339
|
+
for (const v of message.reactions) {
|
|
37340
|
+
MessageReaction.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
37341
37341
|
}
|
|
37342
|
-
|
|
37343
|
-
writer.uint32(74).
|
|
37342
|
+
for (const v of message.references) {
|
|
37343
|
+
MessageRef.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
37344
37344
|
}
|
|
37345
37345
|
return writer;
|
|
37346
37346
|
},
|
|
@@ -37392,28 +37392,28 @@ export const Message2InboxRequest = {
|
|
|
37392
37392
|
break;
|
|
37393
37393
|
}
|
|
37394
37394
|
|
|
37395
|
-
message.mentions
|
|
37395
|
+
message.mentions.push(MessageMention.decode(reader, reader.uint32()));
|
|
37396
37396
|
continue;
|
|
37397
37397
|
case 7:
|
|
37398
37398
|
if (tag !== 58) {
|
|
37399
37399
|
break;
|
|
37400
37400
|
}
|
|
37401
37401
|
|
|
37402
|
-
message.attachments
|
|
37402
|
+
message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
|
|
37403
37403
|
continue;
|
|
37404
37404
|
case 8:
|
|
37405
37405
|
if (tag !== 66) {
|
|
37406
37406
|
break;
|
|
37407
37407
|
}
|
|
37408
37408
|
|
|
37409
|
-
message.reactions
|
|
37409
|
+
message.reactions.push(MessageReaction.decode(reader, reader.uint32()));
|
|
37410
37410
|
continue;
|
|
37411
37411
|
case 9:
|
|
37412
37412
|
if (tag !== 74) {
|
|
37413
37413
|
break;
|
|
37414
37414
|
}
|
|
37415
37415
|
|
|
37416
|
-
message.references
|
|
37416
|
+
message.references.push(MessageRef.decode(reader, reader.uint32()));
|
|
37417
37417
|
continue;
|
|
37418
37418
|
}
|
|
37419
37419
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -37431,10 +37431,18 @@ export const Message2InboxRequest = {
|
|
|
37431
37431
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
37432
37432
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
37433
37433
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
37434
|
-
mentions:
|
|
37435
|
-
|
|
37436
|
-
|
|
37437
|
-
|
|
37434
|
+
mentions: globalThis.Array.isArray(object?.mentions)
|
|
37435
|
+
? object.mentions.map((e: any) => MessageMention.fromJSON(e))
|
|
37436
|
+
: [],
|
|
37437
|
+
attachments: globalThis.Array.isArray(object?.attachments)
|
|
37438
|
+
? object.attachments.map((e: any) => MessageAttachment.fromJSON(e))
|
|
37439
|
+
: [],
|
|
37440
|
+
reactions: globalThis.Array.isArray(object?.reactions)
|
|
37441
|
+
? object.reactions.map((e: any) => MessageReaction.fromJSON(e))
|
|
37442
|
+
: [],
|
|
37443
|
+
references: globalThis.Array.isArray(object?.references)
|
|
37444
|
+
? object.references.map((e: any) => MessageRef.fromJSON(e))
|
|
37445
|
+
: [],
|
|
37438
37446
|
};
|
|
37439
37447
|
},
|
|
37440
37448
|
|
|
@@ -37455,17 +37463,17 @@ export const Message2InboxRequest = {
|
|
|
37455
37463
|
if (message.content !== "") {
|
|
37456
37464
|
obj.content = message.content;
|
|
37457
37465
|
}
|
|
37458
|
-
if (message.mentions
|
|
37459
|
-
obj.mentions =
|
|
37466
|
+
if (message.mentions?.length) {
|
|
37467
|
+
obj.mentions = message.mentions.map((e) => MessageMention.toJSON(e));
|
|
37460
37468
|
}
|
|
37461
|
-
if (message.attachments
|
|
37462
|
-
obj.attachments =
|
|
37469
|
+
if (message.attachments?.length) {
|
|
37470
|
+
obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
|
|
37463
37471
|
}
|
|
37464
|
-
if (message.reactions
|
|
37465
|
-
obj.reactions =
|
|
37472
|
+
if (message.reactions?.length) {
|
|
37473
|
+
obj.reactions = message.reactions.map((e) => MessageReaction.toJSON(e));
|
|
37466
37474
|
}
|
|
37467
|
-
if (message.references
|
|
37468
|
-
obj.references =
|
|
37475
|
+
if (message.references?.length) {
|
|
37476
|
+
obj.references = message.references.map((e) => MessageRef.toJSON(e));
|
|
37469
37477
|
}
|
|
37470
37478
|
return obj;
|
|
37471
37479
|
},
|
|
@@ -37480,10 +37488,10 @@ export const Message2InboxRequest = {
|
|
|
37480
37488
|
message.clan_id = object.clan_id ?? "";
|
|
37481
37489
|
message.avatar = object.avatar ?? "";
|
|
37482
37490
|
message.content = object.content ?? "";
|
|
37483
|
-
message.mentions = object.mentions
|
|
37484
|
-
message.attachments = object.attachments
|
|
37485
|
-
message.reactions = object.reactions
|
|
37486
|
-
message.references = object.references
|
|
37491
|
+
message.mentions = object.mentions?.map((e) => MessageMention.fromPartial(e)) || [];
|
|
37492
|
+
message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
|
|
37493
|
+
message.reactions = object.reactions?.map((e) => MessageReaction.fromPartial(e)) || [];
|
|
37494
|
+
message.references = object.references?.map((e) => MessageRef.fromPartial(e)) || [];
|
|
37487
37495
|
return message;
|
|
37488
37496
|
},
|
|
37489
37497
|
};
|