mezon-js-protobuf 1.8.84 → 1.8.86
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 +9 -9
- package/dist/mezon-js/utils.d.ts +0 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +5 -5
- 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
|
@@ -2264,12 +2264,7 @@ var require_long = __commonJS({
|
|
|
2264
2264
|
// index.ts
|
|
2265
2265
|
var mezon_js_protobuf_exports = {};
|
|
2266
2266
|
__export(mezon_js_protobuf_exports, {
|
|
2267
|
-
WebSocketAdapterPb: () => WebSocketAdapterPb
|
|
2268
|
-
decodeAttachments: () => decodeAttachments,
|
|
2269
|
-
decodeMentions: () => decodeMentions,
|
|
2270
|
-
decodeNotificationFcm: () => decodeNotificationFcm,
|
|
2271
|
-
decodeReactions: () => decodeReactions,
|
|
2272
|
-
decodeRefs: () => decodeRefs
|
|
2267
|
+
WebSocketAdapterPb: () => WebSocketAdapterPb
|
|
2273
2268
|
});
|
|
2274
2269
|
module.exports = __toCommonJS(mezon_js_protobuf_exports);
|
|
2275
2270
|
|
|
@@ -12725,7 +12720,7 @@ function createBaseChannelSettingListRequest() {
|
|
|
12725
12720
|
clan_id: "",
|
|
12726
12721
|
parent_id: "",
|
|
12727
12722
|
category_id: "",
|
|
12728
|
-
|
|
12723
|
+
private_channel: void 0,
|
|
12729
12724
|
active: void 0,
|
|
12730
12725
|
status: void 0,
|
|
12731
12726
|
type: void 0,
|
|
@@ -12745,8 +12740,8 @@ var ChannelSettingListRequest = {
|
|
|
12745
12740
|
if (message.category_id !== "") {
|
|
12746
12741
|
writer.uint32(26).string(message.category_id);
|
|
12747
12742
|
}
|
|
12748
|
-
if (message.
|
|
12749
|
-
Int32Value.encode({ value: message.
|
|
12743
|
+
if (message.private_channel !== void 0) {
|
|
12744
|
+
Int32Value.encode({ value: message.private_channel }, writer.uint32(34).fork()).ldelim();
|
|
12750
12745
|
}
|
|
12751
12746
|
if (message.active !== void 0) {
|
|
12752
12747
|
Int32Value.encode({ value: message.active }, writer.uint32(42).fork()).ldelim();
|
|
@@ -12797,7 +12792,7 @@ var ChannelSettingListRequest = {
|
|
|
12797
12792
|
if (tag !== 34) {
|
|
12798
12793
|
break;
|
|
12799
12794
|
}
|
|
12800
|
-
message.
|
|
12795
|
+
message.private_channel = Int32Value.decode(reader, reader.uint32()).value;
|
|
12801
12796
|
continue;
|
|
12802
12797
|
case 5:
|
|
12803
12798
|
if (tag !== 42) {
|
|
@@ -12848,7 +12843,7 @@ var ChannelSettingListRequest = {
|
|
|
12848
12843
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12849
12844
|
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
12850
12845
|
category_id: isSet2(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
12851
|
-
|
|
12846
|
+
private_channel: isSet2(object.private_channel) ? Number(object.private_channel) : void 0,
|
|
12852
12847
|
active: isSet2(object.active) ? Number(object.active) : void 0,
|
|
12853
12848
|
status: isSet2(object.status) ? Number(object.status) : void 0,
|
|
12854
12849
|
type: isSet2(object.type) ? Number(object.type) : void 0,
|
|
@@ -12868,8 +12863,8 @@ var ChannelSettingListRequest = {
|
|
|
12868
12863
|
if (message.category_id !== "") {
|
|
12869
12864
|
obj.category_id = message.category_id;
|
|
12870
12865
|
}
|
|
12871
|
-
if (message.
|
|
12872
|
-
obj.
|
|
12866
|
+
if (message.private_channel !== void 0) {
|
|
12867
|
+
obj.private_channel = message.private_channel;
|
|
12873
12868
|
}
|
|
12874
12869
|
if (message.active !== void 0) {
|
|
12875
12870
|
obj.active = message.active;
|
|
@@ -12900,7 +12895,7 @@ var ChannelSettingListRequest = {
|
|
|
12900
12895
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
12901
12896
|
message.parent_id = (_b = object.parent_id) != null ? _b : "";
|
|
12902
12897
|
message.category_id = (_c = object.category_id) != null ? _c : "";
|
|
12903
|
-
message.
|
|
12898
|
+
message.private_channel = (_d = object.private_channel) != null ? _d : void 0;
|
|
12904
12899
|
message.active = (_e = object.active) != null ? _e : void 0;
|
|
12905
12900
|
message.status = (_f = object.status) != null ? _f : void 0;
|
|
12906
12901
|
message.type = (_g = object.type) != null ? _g : void 0;
|
|
@@ -14161,573 +14156,6 @@ var SearchThreadRequest = {
|
|
|
14161
14156
|
return message;
|
|
14162
14157
|
}
|
|
14163
14158
|
};
|
|
14164
|
-
function createBaseDirectFcmProto() {
|
|
14165
|
-
return {
|
|
14166
|
-
title: "",
|
|
14167
|
-
link: "",
|
|
14168
|
-
content: "",
|
|
14169
|
-
channel_id: "",
|
|
14170
|
-
sender_id: "",
|
|
14171
|
-
avatar: "",
|
|
14172
|
-
clan_id: "",
|
|
14173
|
-
attachment_link: "",
|
|
14174
|
-
display_name: "",
|
|
14175
|
-
create_time_seconds: 0,
|
|
14176
|
-
update_time_seconds: 0,
|
|
14177
|
-
username: "",
|
|
14178
|
-
mention_ids: [],
|
|
14179
|
-
position_s: [],
|
|
14180
|
-
position_e: [],
|
|
14181
|
-
attachment_type: "",
|
|
14182
|
-
has_more_attachment: false,
|
|
14183
|
-
is_mention_role: [],
|
|
14184
|
-
message_id: ""
|
|
14185
|
-
};
|
|
14186
|
-
}
|
|
14187
|
-
var DirectFcmProto = {
|
|
14188
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14189
|
-
if (message.title !== "") {
|
|
14190
|
-
writer.uint32(10).string(message.title);
|
|
14191
|
-
}
|
|
14192
|
-
if (message.link !== "") {
|
|
14193
|
-
writer.uint32(18).string(message.link);
|
|
14194
|
-
}
|
|
14195
|
-
if (message.content !== "") {
|
|
14196
|
-
writer.uint32(26).string(message.content);
|
|
14197
|
-
}
|
|
14198
|
-
if (message.channel_id !== "") {
|
|
14199
|
-
writer.uint32(34).string(message.channel_id);
|
|
14200
|
-
}
|
|
14201
|
-
if (message.sender_id !== "") {
|
|
14202
|
-
writer.uint32(42).string(message.sender_id);
|
|
14203
|
-
}
|
|
14204
|
-
if (message.avatar !== "") {
|
|
14205
|
-
writer.uint32(50).string(message.avatar);
|
|
14206
|
-
}
|
|
14207
|
-
if (message.clan_id !== "") {
|
|
14208
|
-
writer.uint32(58).string(message.clan_id);
|
|
14209
|
-
}
|
|
14210
|
-
if (message.attachment_link !== "") {
|
|
14211
|
-
writer.uint32(66).string(message.attachment_link);
|
|
14212
|
-
}
|
|
14213
|
-
if (message.display_name !== "") {
|
|
14214
|
-
writer.uint32(74).string(message.display_name);
|
|
14215
|
-
}
|
|
14216
|
-
if (message.create_time_seconds !== 0) {
|
|
14217
|
-
writer.uint32(80).int32(message.create_time_seconds);
|
|
14218
|
-
}
|
|
14219
|
-
if (message.update_time_seconds !== 0) {
|
|
14220
|
-
writer.uint32(88).int32(message.update_time_seconds);
|
|
14221
|
-
}
|
|
14222
|
-
if (message.username !== "") {
|
|
14223
|
-
writer.uint32(98).string(message.username);
|
|
14224
|
-
}
|
|
14225
|
-
for (const v of message.mention_ids) {
|
|
14226
|
-
writer.uint32(106).string(v);
|
|
14227
|
-
}
|
|
14228
|
-
writer.uint32(114).fork();
|
|
14229
|
-
for (const v of message.position_s) {
|
|
14230
|
-
writer.int32(v);
|
|
14231
|
-
}
|
|
14232
|
-
writer.ldelim();
|
|
14233
|
-
writer.uint32(122).fork();
|
|
14234
|
-
for (const v of message.position_e) {
|
|
14235
|
-
writer.int32(v);
|
|
14236
|
-
}
|
|
14237
|
-
writer.ldelim();
|
|
14238
|
-
if (message.attachment_type !== "") {
|
|
14239
|
-
writer.uint32(130).string(message.attachment_type);
|
|
14240
|
-
}
|
|
14241
|
-
if (message.has_more_attachment !== false) {
|
|
14242
|
-
writer.uint32(136).bool(message.has_more_attachment);
|
|
14243
|
-
}
|
|
14244
|
-
writer.uint32(146).fork();
|
|
14245
|
-
for (const v of message.is_mention_role) {
|
|
14246
|
-
writer.bool(v);
|
|
14247
|
-
}
|
|
14248
|
-
writer.ldelim();
|
|
14249
|
-
if (message.message_id !== "") {
|
|
14250
|
-
writer.uint32(154).string(message.message_id);
|
|
14251
|
-
}
|
|
14252
|
-
return writer;
|
|
14253
|
-
},
|
|
14254
|
-
decode(input, length) {
|
|
14255
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14256
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14257
|
-
const message = createBaseDirectFcmProto();
|
|
14258
|
-
while (reader.pos < end) {
|
|
14259
|
-
const tag = reader.uint32();
|
|
14260
|
-
switch (tag >>> 3) {
|
|
14261
|
-
case 1:
|
|
14262
|
-
if (tag !== 10) {
|
|
14263
|
-
break;
|
|
14264
|
-
}
|
|
14265
|
-
message.title = reader.string();
|
|
14266
|
-
continue;
|
|
14267
|
-
case 2:
|
|
14268
|
-
if (tag !== 18) {
|
|
14269
|
-
break;
|
|
14270
|
-
}
|
|
14271
|
-
message.link = reader.string();
|
|
14272
|
-
continue;
|
|
14273
|
-
case 3:
|
|
14274
|
-
if (tag !== 26) {
|
|
14275
|
-
break;
|
|
14276
|
-
}
|
|
14277
|
-
message.content = reader.string();
|
|
14278
|
-
continue;
|
|
14279
|
-
case 4:
|
|
14280
|
-
if (tag !== 34) {
|
|
14281
|
-
break;
|
|
14282
|
-
}
|
|
14283
|
-
message.channel_id = reader.string();
|
|
14284
|
-
continue;
|
|
14285
|
-
case 5:
|
|
14286
|
-
if (tag !== 42) {
|
|
14287
|
-
break;
|
|
14288
|
-
}
|
|
14289
|
-
message.sender_id = reader.string();
|
|
14290
|
-
continue;
|
|
14291
|
-
case 6:
|
|
14292
|
-
if (tag !== 50) {
|
|
14293
|
-
break;
|
|
14294
|
-
}
|
|
14295
|
-
message.avatar = reader.string();
|
|
14296
|
-
continue;
|
|
14297
|
-
case 7:
|
|
14298
|
-
if (tag !== 58) {
|
|
14299
|
-
break;
|
|
14300
|
-
}
|
|
14301
|
-
message.clan_id = reader.string();
|
|
14302
|
-
continue;
|
|
14303
|
-
case 8:
|
|
14304
|
-
if (tag !== 66) {
|
|
14305
|
-
break;
|
|
14306
|
-
}
|
|
14307
|
-
message.attachment_link = reader.string();
|
|
14308
|
-
continue;
|
|
14309
|
-
case 9:
|
|
14310
|
-
if (tag !== 74) {
|
|
14311
|
-
break;
|
|
14312
|
-
}
|
|
14313
|
-
message.display_name = reader.string();
|
|
14314
|
-
continue;
|
|
14315
|
-
case 10:
|
|
14316
|
-
if (tag !== 80) {
|
|
14317
|
-
break;
|
|
14318
|
-
}
|
|
14319
|
-
message.create_time_seconds = reader.int32();
|
|
14320
|
-
continue;
|
|
14321
|
-
case 11:
|
|
14322
|
-
if (tag !== 88) {
|
|
14323
|
-
break;
|
|
14324
|
-
}
|
|
14325
|
-
message.update_time_seconds = reader.int32();
|
|
14326
|
-
continue;
|
|
14327
|
-
case 12:
|
|
14328
|
-
if (tag !== 98) {
|
|
14329
|
-
break;
|
|
14330
|
-
}
|
|
14331
|
-
message.username = reader.string();
|
|
14332
|
-
continue;
|
|
14333
|
-
case 13:
|
|
14334
|
-
if (tag !== 106) {
|
|
14335
|
-
break;
|
|
14336
|
-
}
|
|
14337
|
-
message.mention_ids.push(reader.string());
|
|
14338
|
-
continue;
|
|
14339
|
-
case 14:
|
|
14340
|
-
if (tag === 112) {
|
|
14341
|
-
message.position_s.push(reader.int32());
|
|
14342
|
-
continue;
|
|
14343
|
-
}
|
|
14344
|
-
if (tag === 114) {
|
|
14345
|
-
const end2 = reader.uint32() + reader.pos;
|
|
14346
|
-
while (reader.pos < end2) {
|
|
14347
|
-
message.position_s.push(reader.int32());
|
|
14348
|
-
}
|
|
14349
|
-
continue;
|
|
14350
|
-
}
|
|
14351
|
-
break;
|
|
14352
|
-
case 15:
|
|
14353
|
-
if (tag === 120) {
|
|
14354
|
-
message.position_e.push(reader.int32());
|
|
14355
|
-
continue;
|
|
14356
|
-
}
|
|
14357
|
-
if (tag === 122) {
|
|
14358
|
-
const end2 = reader.uint32() + reader.pos;
|
|
14359
|
-
while (reader.pos < end2) {
|
|
14360
|
-
message.position_e.push(reader.int32());
|
|
14361
|
-
}
|
|
14362
|
-
continue;
|
|
14363
|
-
}
|
|
14364
|
-
break;
|
|
14365
|
-
case 16:
|
|
14366
|
-
if (tag !== 130) {
|
|
14367
|
-
break;
|
|
14368
|
-
}
|
|
14369
|
-
message.attachment_type = reader.string();
|
|
14370
|
-
continue;
|
|
14371
|
-
case 17:
|
|
14372
|
-
if (tag !== 136) {
|
|
14373
|
-
break;
|
|
14374
|
-
}
|
|
14375
|
-
message.has_more_attachment = reader.bool();
|
|
14376
|
-
continue;
|
|
14377
|
-
case 18:
|
|
14378
|
-
if (tag === 144) {
|
|
14379
|
-
message.is_mention_role.push(reader.bool());
|
|
14380
|
-
continue;
|
|
14381
|
-
}
|
|
14382
|
-
if (tag === 146) {
|
|
14383
|
-
const end2 = reader.uint32() + reader.pos;
|
|
14384
|
-
while (reader.pos < end2) {
|
|
14385
|
-
message.is_mention_role.push(reader.bool());
|
|
14386
|
-
}
|
|
14387
|
-
continue;
|
|
14388
|
-
}
|
|
14389
|
-
break;
|
|
14390
|
-
case 19:
|
|
14391
|
-
if (tag !== 154) {
|
|
14392
|
-
break;
|
|
14393
|
-
}
|
|
14394
|
-
message.message_id = reader.string();
|
|
14395
|
-
continue;
|
|
14396
|
-
}
|
|
14397
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14398
|
-
break;
|
|
14399
|
-
}
|
|
14400
|
-
reader.skipType(tag & 7);
|
|
14401
|
-
}
|
|
14402
|
-
return message;
|
|
14403
|
-
},
|
|
14404
|
-
fromJSON(object) {
|
|
14405
|
-
return {
|
|
14406
|
-
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
14407
|
-
link: isSet2(object.link) ? globalThis.String(object.link) : "",
|
|
14408
|
-
content: isSet2(object.content) ? globalThis.String(object.content) : "",
|
|
14409
|
-
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
14410
|
-
sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
14411
|
-
avatar: isSet2(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
14412
|
-
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
14413
|
-
attachment_link: isSet2(object.attachment_link) ? globalThis.String(object.attachment_link) : "",
|
|
14414
|
-
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
14415
|
-
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14416
|
-
update_time_seconds: isSet2(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
14417
|
-
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
14418
|
-
mention_ids: globalThis.Array.isArray(object == null ? void 0 : object.mention_ids) ? object.mention_ids.map((e) => globalThis.String(e)) : [],
|
|
14419
|
-
position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
|
|
14420
|
-
position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
|
|
14421
|
-
attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
|
|
14422
|
-
has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
|
|
14423
|
-
is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : [],
|
|
14424
|
-
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : ""
|
|
14425
|
-
};
|
|
14426
|
-
},
|
|
14427
|
-
toJSON(message) {
|
|
14428
|
-
var _a, _b, _c, _d;
|
|
14429
|
-
const obj = {};
|
|
14430
|
-
if (message.title !== "") {
|
|
14431
|
-
obj.title = message.title;
|
|
14432
|
-
}
|
|
14433
|
-
if (message.link !== "") {
|
|
14434
|
-
obj.link = message.link;
|
|
14435
|
-
}
|
|
14436
|
-
if (message.content !== "") {
|
|
14437
|
-
obj.content = message.content;
|
|
14438
|
-
}
|
|
14439
|
-
if (message.channel_id !== "") {
|
|
14440
|
-
obj.channel_id = message.channel_id;
|
|
14441
|
-
}
|
|
14442
|
-
if (message.sender_id !== "") {
|
|
14443
|
-
obj.sender_id = message.sender_id;
|
|
14444
|
-
}
|
|
14445
|
-
if (message.avatar !== "") {
|
|
14446
|
-
obj.avatar = message.avatar;
|
|
14447
|
-
}
|
|
14448
|
-
if (message.clan_id !== "") {
|
|
14449
|
-
obj.clan_id = message.clan_id;
|
|
14450
|
-
}
|
|
14451
|
-
if (message.attachment_link !== "") {
|
|
14452
|
-
obj.attachment_link = message.attachment_link;
|
|
14453
|
-
}
|
|
14454
|
-
if (message.display_name !== "") {
|
|
14455
|
-
obj.display_name = message.display_name;
|
|
14456
|
-
}
|
|
14457
|
-
if (message.create_time_seconds !== 0) {
|
|
14458
|
-
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
14459
|
-
}
|
|
14460
|
-
if (message.update_time_seconds !== 0) {
|
|
14461
|
-
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14462
|
-
}
|
|
14463
|
-
if (message.username !== "") {
|
|
14464
|
-
obj.username = message.username;
|
|
14465
|
-
}
|
|
14466
|
-
if ((_a = message.mention_ids) == null ? void 0 : _a.length) {
|
|
14467
|
-
obj.mention_ids = message.mention_ids;
|
|
14468
|
-
}
|
|
14469
|
-
if ((_b = message.position_s) == null ? void 0 : _b.length) {
|
|
14470
|
-
obj.position_s = message.position_s.map((e) => Math.round(e));
|
|
14471
|
-
}
|
|
14472
|
-
if ((_c = message.position_e) == null ? void 0 : _c.length) {
|
|
14473
|
-
obj.position_e = message.position_e.map((e) => Math.round(e));
|
|
14474
|
-
}
|
|
14475
|
-
if (message.attachment_type !== "") {
|
|
14476
|
-
obj.attachment_type = message.attachment_type;
|
|
14477
|
-
}
|
|
14478
|
-
if (message.has_more_attachment !== false) {
|
|
14479
|
-
obj.has_more_attachment = message.has_more_attachment;
|
|
14480
|
-
}
|
|
14481
|
-
if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
|
|
14482
|
-
obj.is_mention_role = message.is_mention_role;
|
|
14483
|
-
}
|
|
14484
|
-
if (message.message_id !== "") {
|
|
14485
|
-
obj.message_id = message.message_id;
|
|
14486
|
-
}
|
|
14487
|
-
return obj;
|
|
14488
|
-
},
|
|
14489
|
-
create(base) {
|
|
14490
|
-
return DirectFcmProto.fromPartial(base != null ? base : {});
|
|
14491
|
-
},
|
|
14492
|
-
fromPartial(object) {
|
|
14493
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
14494
|
-
const message = createBaseDirectFcmProto();
|
|
14495
|
-
message.title = (_a = object.title) != null ? _a : "";
|
|
14496
|
-
message.link = (_b = object.link) != null ? _b : "";
|
|
14497
|
-
message.content = (_c = object.content) != null ? _c : "";
|
|
14498
|
-
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
14499
|
-
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
14500
|
-
message.avatar = (_f = object.avatar) != null ? _f : "";
|
|
14501
|
-
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
14502
|
-
message.attachment_link = (_h = object.attachment_link) != null ? _h : "";
|
|
14503
|
-
message.display_name = (_i = object.display_name) != null ? _i : "";
|
|
14504
|
-
message.create_time_seconds = (_j = object.create_time_seconds) != null ? _j : 0;
|
|
14505
|
-
message.update_time_seconds = (_k = object.update_time_seconds) != null ? _k : 0;
|
|
14506
|
-
message.username = (_l = object.username) != null ? _l : "";
|
|
14507
|
-
message.mention_ids = ((_m = object.mention_ids) == null ? void 0 : _m.map((e) => e)) || [];
|
|
14508
|
-
message.position_s = ((_n = object.position_s) == null ? void 0 : _n.map((e) => e)) || [];
|
|
14509
|
-
message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
|
|
14510
|
-
message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
|
|
14511
|
-
message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
|
|
14512
|
-
message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
|
|
14513
|
-
message.message_id = (_s = object.message_id) != null ? _s : "";
|
|
14514
|
-
return message;
|
|
14515
|
-
}
|
|
14516
|
-
};
|
|
14517
|
-
function createBaseMessageMentionList() {
|
|
14518
|
-
return { mentions: [] };
|
|
14519
|
-
}
|
|
14520
|
-
var MessageMentionList = {
|
|
14521
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14522
|
-
for (const v of message.mentions) {
|
|
14523
|
-
MessageMention.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14524
|
-
}
|
|
14525
|
-
return writer;
|
|
14526
|
-
},
|
|
14527
|
-
decode(input, length) {
|
|
14528
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14529
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14530
|
-
const message = createBaseMessageMentionList();
|
|
14531
|
-
while (reader.pos < end) {
|
|
14532
|
-
const tag = reader.uint32();
|
|
14533
|
-
switch (tag >>> 3) {
|
|
14534
|
-
case 1:
|
|
14535
|
-
if (tag !== 10) {
|
|
14536
|
-
break;
|
|
14537
|
-
}
|
|
14538
|
-
message.mentions.push(MessageMention.decode(reader, reader.uint32()));
|
|
14539
|
-
continue;
|
|
14540
|
-
}
|
|
14541
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14542
|
-
break;
|
|
14543
|
-
}
|
|
14544
|
-
reader.skipType(tag & 7);
|
|
14545
|
-
}
|
|
14546
|
-
return message;
|
|
14547
|
-
},
|
|
14548
|
-
fromJSON(object) {
|
|
14549
|
-
return {
|
|
14550
|
-
mentions: globalThis.Array.isArray(object == null ? void 0 : object.mentions) ? object.mentions.map((e) => MessageMention.fromJSON(e)) : []
|
|
14551
|
-
};
|
|
14552
|
-
},
|
|
14553
|
-
toJSON(message) {
|
|
14554
|
-
var _a;
|
|
14555
|
-
const obj = {};
|
|
14556
|
-
if ((_a = message.mentions) == null ? void 0 : _a.length) {
|
|
14557
|
-
obj.mentions = message.mentions.map((e) => MessageMention.toJSON(e));
|
|
14558
|
-
}
|
|
14559
|
-
return obj;
|
|
14560
|
-
},
|
|
14561
|
-
create(base) {
|
|
14562
|
-
return MessageMentionList.fromPartial(base != null ? base : {});
|
|
14563
|
-
},
|
|
14564
|
-
fromPartial(object) {
|
|
14565
|
-
var _a;
|
|
14566
|
-
const message = createBaseMessageMentionList();
|
|
14567
|
-
message.mentions = ((_a = object.mentions) == null ? void 0 : _a.map((e) => MessageMention.fromPartial(e))) || [];
|
|
14568
|
-
return message;
|
|
14569
|
-
}
|
|
14570
|
-
};
|
|
14571
|
-
function createBaseMessageAttachmentList() {
|
|
14572
|
-
return { attachments: [] };
|
|
14573
|
-
}
|
|
14574
|
-
var MessageAttachmentList = {
|
|
14575
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14576
|
-
for (const v of message.attachments) {
|
|
14577
|
-
MessageAttachment.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14578
|
-
}
|
|
14579
|
-
return writer;
|
|
14580
|
-
},
|
|
14581
|
-
decode(input, length) {
|
|
14582
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14583
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14584
|
-
const message = createBaseMessageAttachmentList();
|
|
14585
|
-
while (reader.pos < end) {
|
|
14586
|
-
const tag = reader.uint32();
|
|
14587
|
-
switch (tag >>> 3) {
|
|
14588
|
-
case 1:
|
|
14589
|
-
if (tag !== 10) {
|
|
14590
|
-
break;
|
|
14591
|
-
}
|
|
14592
|
-
message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
|
|
14593
|
-
continue;
|
|
14594
|
-
}
|
|
14595
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14596
|
-
break;
|
|
14597
|
-
}
|
|
14598
|
-
reader.skipType(tag & 7);
|
|
14599
|
-
}
|
|
14600
|
-
return message;
|
|
14601
|
-
},
|
|
14602
|
-
fromJSON(object) {
|
|
14603
|
-
return {
|
|
14604
|
-
attachments: globalThis.Array.isArray(object == null ? void 0 : object.attachments) ? object.attachments.map((e) => MessageAttachment.fromJSON(e)) : []
|
|
14605
|
-
};
|
|
14606
|
-
},
|
|
14607
|
-
toJSON(message) {
|
|
14608
|
-
var _a;
|
|
14609
|
-
const obj = {};
|
|
14610
|
-
if ((_a = message.attachments) == null ? void 0 : _a.length) {
|
|
14611
|
-
obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
|
|
14612
|
-
}
|
|
14613
|
-
return obj;
|
|
14614
|
-
},
|
|
14615
|
-
create(base) {
|
|
14616
|
-
return MessageAttachmentList.fromPartial(base != null ? base : {});
|
|
14617
|
-
},
|
|
14618
|
-
fromPartial(object) {
|
|
14619
|
-
var _a;
|
|
14620
|
-
const message = createBaseMessageAttachmentList();
|
|
14621
|
-
message.attachments = ((_a = object.attachments) == null ? void 0 : _a.map((e) => MessageAttachment.fromPartial(e))) || [];
|
|
14622
|
-
return message;
|
|
14623
|
-
}
|
|
14624
|
-
};
|
|
14625
|
-
function createBaseMessageRefList() {
|
|
14626
|
-
return { refs: [] };
|
|
14627
|
-
}
|
|
14628
|
-
var MessageRefList = {
|
|
14629
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14630
|
-
for (const v of message.refs) {
|
|
14631
|
-
MessageRef.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14632
|
-
}
|
|
14633
|
-
return writer;
|
|
14634
|
-
},
|
|
14635
|
-
decode(input, length) {
|
|
14636
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14637
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14638
|
-
const message = createBaseMessageRefList();
|
|
14639
|
-
while (reader.pos < end) {
|
|
14640
|
-
const tag = reader.uint32();
|
|
14641
|
-
switch (tag >>> 3) {
|
|
14642
|
-
case 1:
|
|
14643
|
-
if (tag !== 10) {
|
|
14644
|
-
break;
|
|
14645
|
-
}
|
|
14646
|
-
message.refs.push(MessageRef.decode(reader, reader.uint32()));
|
|
14647
|
-
continue;
|
|
14648
|
-
}
|
|
14649
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14650
|
-
break;
|
|
14651
|
-
}
|
|
14652
|
-
reader.skipType(tag & 7);
|
|
14653
|
-
}
|
|
14654
|
-
return message;
|
|
14655
|
-
},
|
|
14656
|
-
fromJSON(object) {
|
|
14657
|
-
return { refs: globalThis.Array.isArray(object == null ? void 0 : object.refs) ? object.refs.map((e) => MessageRef.fromJSON(e)) : [] };
|
|
14658
|
-
},
|
|
14659
|
-
toJSON(message) {
|
|
14660
|
-
var _a;
|
|
14661
|
-
const obj = {};
|
|
14662
|
-
if ((_a = message.refs) == null ? void 0 : _a.length) {
|
|
14663
|
-
obj.refs = message.refs.map((e) => MessageRef.toJSON(e));
|
|
14664
|
-
}
|
|
14665
|
-
return obj;
|
|
14666
|
-
},
|
|
14667
|
-
create(base) {
|
|
14668
|
-
return MessageRefList.fromPartial(base != null ? base : {});
|
|
14669
|
-
},
|
|
14670
|
-
fromPartial(object) {
|
|
14671
|
-
var _a;
|
|
14672
|
-
const message = createBaseMessageRefList();
|
|
14673
|
-
message.refs = ((_a = object.refs) == null ? void 0 : _a.map((e) => MessageRef.fromPartial(e))) || [];
|
|
14674
|
-
return message;
|
|
14675
|
-
}
|
|
14676
|
-
};
|
|
14677
|
-
function createBaseMessageReactionList() {
|
|
14678
|
-
return { reactions: [] };
|
|
14679
|
-
}
|
|
14680
|
-
var MessageReactionList = {
|
|
14681
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14682
|
-
for (const v of message.reactions) {
|
|
14683
|
-
MessageReaction.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14684
|
-
}
|
|
14685
|
-
return writer;
|
|
14686
|
-
},
|
|
14687
|
-
decode(input, length) {
|
|
14688
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14689
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14690
|
-
const message = createBaseMessageReactionList();
|
|
14691
|
-
while (reader.pos < end) {
|
|
14692
|
-
const tag = reader.uint32();
|
|
14693
|
-
switch (tag >>> 3) {
|
|
14694
|
-
case 1:
|
|
14695
|
-
if (tag !== 10) {
|
|
14696
|
-
break;
|
|
14697
|
-
}
|
|
14698
|
-
message.reactions.push(MessageReaction.decode(reader, reader.uint32()));
|
|
14699
|
-
continue;
|
|
14700
|
-
}
|
|
14701
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14702
|
-
break;
|
|
14703
|
-
}
|
|
14704
|
-
reader.skipType(tag & 7);
|
|
14705
|
-
}
|
|
14706
|
-
return message;
|
|
14707
|
-
},
|
|
14708
|
-
fromJSON(object) {
|
|
14709
|
-
return {
|
|
14710
|
-
reactions: globalThis.Array.isArray(object == null ? void 0 : object.reactions) ? object.reactions.map((e) => MessageReaction.fromJSON(e)) : []
|
|
14711
|
-
};
|
|
14712
|
-
},
|
|
14713
|
-
toJSON(message) {
|
|
14714
|
-
var _a;
|
|
14715
|
-
const obj = {};
|
|
14716
|
-
if ((_a = message.reactions) == null ? void 0 : _a.length) {
|
|
14717
|
-
obj.reactions = message.reactions.map((e) => MessageReaction.toJSON(e));
|
|
14718
|
-
}
|
|
14719
|
-
return obj;
|
|
14720
|
-
},
|
|
14721
|
-
create(base) {
|
|
14722
|
-
return MessageReactionList.fromPartial(base != null ? base : {});
|
|
14723
|
-
},
|
|
14724
|
-
fromPartial(object) {
|
|
14725
|
-
var _a;
|
|
14726
|
-
const message = createBaseMessageReactionList();
|
|
14727
|
-
message.reactions = ((_a = object.reactions) == null ? void 0 : _a.map((e) => MessageReaction.fromPartial(e))) || [];
|
|
14728
|
-
return message;
|
|
14729
|
-
}
|
|
14730
|
-
};
|
|
14731
14159
|
function createBaseListClanBadgeCountRequest() {
|
|
14732
14160
|
return { clan_id: "" };
|
|
14733
14161
|
}
|
|
@@ -26955,35 +26383,3 @@ var WebSocketAdapterPb = class {
|
|
|
26955
26383
|
this._socket.send(encodedMsg);
|
|
26956
26384
|
}
|
|
26957
26385
|
};
|
|
26958
|
-
|
|
26959
|
-
// utils.ts
|
|
26960
|
-
function decodeMentions(data) {
|
|
26961
|
-
const buffer = data;
|
|
26962
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26963
|
-
const mentions = MessageMentionList.decode(uintBuffer);
|
|
26964
|
-
return mentions;
|
|
26965
|
-
}
|
|
26966
|
-
function decodeAttachments(data) {
|
|
26967
|
-
const buffer = data;
|
|
26968
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26969
|
-
const attachments = MessageAttachmentList.decode(uintBuffer);
|
|
26970
|
-
return attachments;
|
|
26971
|
-
}
|
|
26972
|
-
function decodeRefs(data) {
|
|
26973
|
-
const buffer = data;
|
|
26974
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26975
|
-
const refs = MessageRefList.decode(uintBuffer);
|
|
26976
|
-
return refs;
|
|
26977
|
-
}
|
|
26978
|
-
function decodeReactions(data) {
|
|
26979
|
-
const buffer = data;
|
|
26980
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26981
|
-
const reactions = MessageReactionList.decode(uintBuffer);
|
|
26982
|
-
return reactions;
|
|
26983
|
-
}
|
|
26984
|
-
function decodeNotificationFcm(data) {
|
|
26985
|
-
const buffer = data;
|
|
26986
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26987
|
-
const noti = DirectFcmProto.decode(uintBuffer);
|
|
26988
|
-
return noti;
|
|
26989
|
-
}
|