mezon-js 2.13.75 → 2.13.76
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 +657 -24
- package/dist/api/api.d.ts +311 -2
- package/dist/mezon-js.cjs.js +18 -18
- package/dist/mezon-js.esm.mjs +18 -18
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -293,9 +293,7 @@ export interface ChannelMessage {
|
|
|
293
293
|
/** The unique ID of this message. */
|
|
294
294
|
message_id: string;
|
|
295
295
|
/** The code representing a message type or category. */
|
|
296
|
-
code:
|
|
297
|
-
| number
|
|
298
|
-
| undefined;
|
|
296
|
+
code: number;
|
|
299
297
|
/** Message sender, usually a user ID. */
|
|
300
298
|
sender_id: string;
|
|
301
299
|
/** The username of the message sender, if any. */
|
|
@@ -1516,7 +1514,7 @@ export interface ChannelMessageHeader {
|
|
|
1516
1514
|
}
|
|
1517
1515
|
|
|
1518
1516
|
/** Channel description record */
|
|
1519
|
-
export interface
|
|
1517
|
+
export interface ChannelDescriptionOld {
|
|
1520
1518
|
/** The clan of this channel */
|
|
1521
1519
|
clan_id: string;
|
|
1522
1520
|
/** The parent channel this message belongs to. */
|
|
@@ -1587,6 +1585,76 @@ export interface ChannelDescription {
|
|
|
1587
1585
|
member_count: number;
|
|
1588
1586
|
}
|
|
1589
1587
|
|
|
1588
|
+
/** Channel description record */
|
|
1589
|
+
export interface ChannelDescription {
|
|
1590
|
+
/** The clan of this channel */
|
|
1591
|
+
clan_id: string;
|
|
1592
|
+
/** The parent channel this message belongs to. */
|
|
1593
|
+
parent_id: string;
|
|
1594
|
+
/** The channel this message belongs to. */
|
|
1595
|
+
channel_id: string;
|
|
1596
|
+
/** The category of channel */
|
|
1597
|
+
category_id: string;
|
|
1598
|
+
/** The category name */
|
|
1599
|
+
category_name: string;
|
|
1600
|
+
/** The channel type. */
|
|
1601
|
+
type: number;
|
|
1602
|
+
/** creator ID. */
|
|
1603
|
+
creator_id: string;
|
|
1604
|
+
/** The channel lable */
|
|
1605
|
+
channel_label: string;
|
|
1606
|
+
/** The channel private */
|
|
1607
|
+
channel_private: number;
|
|
1608
|
+
/** DM avatars */
|
|
1609
|
+
avatars: string[];
|
|
1610
|
+
/** List DM user ids */
|
|
1611
|
+
user_ids: string[];
|
|
1612
|
+
/** last message id */
|
|
1613
|
+
last_sent_message:
|
|
1614
|
+
| ChannelMessageHeader
|
|
1615
|
+
| undefined;
|
|
1616
|
+
/** last seen message id */
|
|
1617
|
+
last_seen_message:
|
|
1618
|
+
| ChannelMessageHeader
|
|
1619
|
+
| undefined;
|
|
1620
|
+
/** DM status */
|
|
1621
|
+
onlines: boolean[];
|
|
1622
|
+
/** meeting code */
|
|
1623
|
+
meeting_code: string;
|
|
1624
|
+
/** count message unread */
|
|
1625
|
+
count_mess_unread: number;
|
|
1626
|
+
/** active channel */
|
|
1627
|
+
active: number;
|
|
1628
|
+
/** last pin message */
|
|
1629
|
+
last_pin_message: string;
|
|
1630
|
+
/** List DM usernames */
|
|
1631
|
+
usernames: string[];
|
|
1632
|
+
/** creator name */
|
|
1633
|
+
creator_name: string;
|
|
1634
|
+
/** create time ms */
|
|
1635
|
+
create_time_seconds: number;
|
|
1636
|
+
/** update time ms */
|
|
1637
|
+
update_time_seconds: number;
|
|
1638
|
+
/** List DM diplay names */
|
|
1639
|
+
display_names: string[];
|
|
1640
|
+
/** channel avatar */
|
|
1641
|
+
channel_avatar: string;
|
|
1642
|
+
/** clan_name */
|
|
1643
|
+
clan_name: string;
|
|
1644
|
+
/** app id */
|
|
1645
|
+
app_id: string;
|
|
1646
|
+
/** channel all message */
|
|
1647
|
+
is_mute: boolean;
|
|
1648
|
+
/** age restricted */
|
|
1649
|
+
age_restricted: number;
|
|
1650
|
+
/** channel description topic */
|
|
1651
|
+
topic: string;
|
|
1652
|
+
/** e2ee */
|
|
1653
|
+
e2ee: number;
|
|
1654
|
+
/** channel member count */
|
|
1655
|
+
member_count: number;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1590
1658
|
/** A list of channel description, usually a result of a list operation. */
|
|
1591
1659
|
export interface ChannelDescList {
|
|
1592
1660
|
/** A list of channel. */
|
|
@@ -4963,7 +5031,7 @@ function createBaseChannelMessage(): ChannelMessage {
|
|
|
4963
5031
|
clan_id: "",
|
|
4964
5032
|
channel_id: "",
|
|
4965
5033
|
message_id: "",
|
|
4966
|
-
code:
|
|
5034
|
+
code: 0,
|
|
4967
5035
|
sender_id: "",
|
|
4968
5036
|
username: "",
|
|
4969
5037
|
avatar: "",
|
|
@@ -5001,8 +5069,8 @@ export const ChannelMessage = {
|
|
|
5001
5069
|
if (message.message_id !== "") {
|
|
5002
5070
|
writer.uint32(26).string(message.message_id);
|
|
5003
5071
|
}
|
|
5004
|
-
if (message.code !==
|
|
5005
|
-
|
|
5072
|
+
if (message.code !== 0) {
|
|
5073
|
+
writer.uint32(32).int32(message.code);
|
|
5006
5074
|
}
|
|
5007
5075
|
if (message.sender_id !== "") {
|
|
5008
5076
|
writer.uint32(42).string(message.sender_id);
|
|
@@ -5105,11 +5173,11 @@ export const ChannelMessage = {
|
|
|
5105
5173
|
message.message_id = reader.string();
|
|
5106
5174
|
continue;
|
|
5107
5175
|
case 4:
|
|
5108
|
-
if (tag !==
|
|
5176
|
+
if (tag !== 32) {
|
|
5109
5177
|
break;
|
|
5110
5178
|
}
|
|
5111
5179
|
|
|
5112
|
-
message.code =
|
|
5180
|
+
message.code = reader.int32();
|
|
5113
5181
|
continue;
|
|
5114
5182
|
case 5:
|
|
5115
5183
|
if (tag !== 42) {
|
|
@@ -5286,7 +5354,7 @@ export const ChannelMessage = {
|
|
|
5286
5354
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
5287
5355
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5288
5356
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
5289
|
-
code: isSet(object.code) ? Number(object.code) :
|
|
5357
|
+
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
5290
5358
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
5291
5359
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
5292
5360
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
@@ -5324,8 +5392,8 @@ export const ChannelMessage = {
|
|
|
5324
5392
|
if (message.message_id !== "") {
|
|
5325
5393
|
obj.message_id = message.message_id;
|
|
5326
5394
|
}
|
|
5327
|
-
if (message.code !==
|
|
5328
|
-
obj.code = message.code;
|
|
5395
|
+
if (message.code !== 0) {
|
|
5396
|
+
obj.code = Math.round(message.code);
|
|
5329
5397
|
}
|
|
5330
5398
|
if (message.sender_id !== "") {
|
|
5331
5399
|
obj.sender_id = message.sender_id;
|
|
@@ -5407,7 +5475,7 @@ export const ChannelMessage = {
|
|
|
5407
5475
|
message.clan_id = object.clan_id ?? "";
|
|
5408
5476
|
message.channel_id = object.channel_id ?? "";
|
|
5409
5477
|
message.message_id = object.message_id ?? "";
|
|
5410
|
-
message.code = object.code ??
|
|
5478
|
+
message.code = object.code ?? 0;
|
|
5411
5479
|
message.sender_id = object.sender_id ?? "";
|
|
5412
5480
|
message.username = object.username ?? "";
|
|
5413
5481
|
message.avatar = object.avatar ?? "";
|
|
@@ -14632,7 +14700,7 @@ export const ChannelMessageHeader = {
|
|
|
14632
14700
|
},
|
|
14633
14701
|
};
|
|
14634
14702
|
|
|
14635
|
-
function
|
|
14703
|
+
function createBaseChannelDescriptionOld(): ChannelDescriptionOld {
|
|
14636
14704
|
return {
|
|
14637
14705
|
clan_id: "",
|
|
14638
14706
|
parent_id: "",
|
|
@@ -14668,8 +14736,8 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14668
14736
|
};
|
|
14669
14737
|
}
|
|
14670
14738
|
|
|
14671
|
-
export const
|
|
14672
|
-
encode(message:
|
|
14739
|
+
export const ChannelDescriptionOld = {
|
|
14740
|
+
encode(message: ChannelDescriptionOld, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14673
14741
|
if (message.clan_id !== "") {
|
|
14674
14742
|
writer.uint32(10).string(message.clan_id);
|
|
14675
14743
|
}
|
|
@@ -14768,10 +14836,10 @@ export const ChannelDescription = {
|
|
|
14768
14836
|
return writer;
|
|
14769
14837
|
},
|
|
14770
14838
|
|
|
14771
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
14839
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescriptionOld {
|
|
14772
14840
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
14773
14841
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14774
|
-
const message =
|
|
14842
|
+
const message = createBaseChannelDescriptionOld();
|
|
14775
14843
|
while (reader.pos < end) {
|
|
14776
14844
|
const tag = reader.uint32();
|
|
14777
14845
|
switch (tag >>> 3) {
|
|
@@ -15011,7 +15079,7 @@ export const ChannelDescription = {
|
|
|
15011
15079
|
return message;
|
|
15012
15080
|
},
|
|
15013
15081
|
|
|
15014
|
-
fromJSON(object: any):
|
|
15082
|
+
fromJSON(object: any): ChannelDescriptionOld {
|
|
15015
15083
|
return {
|
|
15016
15084
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
15017
15085
|
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
@@ -15055,7 +15123,7 @@ export const ChannelDescription = {
|
|
|
15055
15123
|
};
|
|
15056
15124
|
},
|
|
15057
15125
|
|
|
15058
|
-
toJSON(message:
|
|
15126
|
+
toJSON(message: ChannelDescriptionOld): unknown {
|
|
15059
15127
|
const obj: any = {};
|
|
15060
15128
|
if (message.clan_id !== "") {
|
|
15061
15129
|
obj.clan_id = message.clan_id;
|
|
@@ -15153,11 +15221,11 @@ export const ChannelDescription = {
|
|
|
15153
15221
|
return obj;
|
|
15154
15222
|
},
|
|
15155
15223
|
|
|
15156
|
-
create<I extends Exact<DeepPartial<
|
|
15157
|
-
return
|
|
15224
|
+
create<I extends Exact<DeepPartial<ChannelDescriptionOld>, I>>(base?: I): ChannelDescriptionOld {
|
|
15225
|
+
return ChannelDescriptionOld.fromPartial(base ?? ({} as any));
|
|
15158
15226
|
},
|
|
15159
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
15160
|
-
const message =
|
|
15227
|
+
fromPartial<I extends Exact<DeepPartial<ChannelDescriptionOld>, I>>(object: I): ChannelDescriptionOld {
|
|
15228
|
+
const message = createBaseChannelDescriptionOld();
|
|
15161
15229
|
message.clan_id = object.clan_id ?? "";
|
|
15162
15230
|
message.parent_id = object.parent_id ?? "";
|
|
15163
15231
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -15197,6 +15265,571 @@ export const ChannelDescription = {
|
|
|
15197
15265
|
},
|
|
15198
15266
|
};
|
|
15199
15267
|
|
|
15268
|
+
function createBaseChannelDescription(): ChannelDescription {
|
|
15269
|
+
return {
|
|
15270
|
+
clan_id: "",
|
|
15271
|
+
parent_id: "",
|
|
15272
|
+
channel_id: "",
|
|
15273
|
+
category_id: "",
|
|
15274
|
+
category_name: "",
|
|
15275
|
+
type: 0,
|
|
15276
|
+
creator_id: "",
|
|
15277
|
+
channel_label: "",
|
|
15278
|
+
channel_private: 0,
|
|
15279
|
+
avatars: [],
|
|
15280
|
+
user_ids: [],
|
|
15281
|
+
last_sent_message: undefined,
|
|
15282
|
+
last_seen_message: undefined,
|
|
15283
|
+
onlines: [],
|
|
15284
|
+
meeting_code: "",
|
|
15285
|
+
count_mess_unread: 0,
|
|
15286
|
+
active: 0,
|
|
15287
|
+
last_pin_message: "",
|
|
15288
|
+
usernames: [],
|
|
15289
|
+
creator_name: "",
|
|
15290
|
+
create_time_seconds: 0,
|
|
15291
|
+
update_time_seconds: 0,
|
|
15292
|
+
display_names: [],
|
|
15293
|
+
channel_avatar: "",
|
|
15294
|
+
clan_name: "",
|
|
15295
|
+
app_id: "",
|
|
15296
|
+
is_mute: false,
|
|
15297
|
+
age_restricted: 0,
|
|
15298
|
+
topic: "",
|
|
15299
|
+
e2ee: 0,
|
|
15300
|
+
member_count: 0,
|
|
15301
|
+
};
|
|
15302
|
+
}
|
|
15303
|
+
|
|
15304
|
+
export const ChannelDescription = {
|
|
15305
|
+
encode(message: ChannelDescription, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
15306
|
+
if (message.clan_id !== "") {
|
|
15307
|
+
writer.uint32(10).string(message.clan_id);
|
|
15308
|
+
}
|
|
15309
|
+
if (message.parent_id !== "") {
|
|
15310
|
+
writer.uint32(18).string(message.parent_id);
|
|
15311
|
+
}
|
|
15312
|
+
if (message.channel_id !== "") {
|
|
15313
|
+
writer.uint32(26).string(message.channel_id);
|
|
15314
|
+
}
|
|
15315
|
+
if (message.category_id !== "") {
|
|
15316
|
+
writer.uint32(34).string(message.category_id);
|
|
15317
|
+
}
|
|
15318
|
+
if (message.category_name !== "") {
|
|
15319
|
+
writer.uint32(42).string(message.category_name);
|
|
15320
|
+
}
|
|
15321
|
+
if (message.type !== 0) {
|
|
15322
|
+
writer.uint32(48).int32(message.type);
|
|
15323
|
+
}
|
|
15324
|
+
if (message.creator_id !== "") {
|
|
15325
|
+
writer.uint32(58).string(message.creator_id);
|
|
15326
|
+
}
|
|
15327
|
+
if (message.channel_label !== "") {
|
|
15328
|
+
writer.uint32(66).string(message.channel_label);
|
|
15329
|
+
}
|
|
15330
|
+
if (message.channel_private !== 0) {
|
|
15331
|
+
writer.uint32(72).int32(message.channel_private);
|
|
15332
|
+
}
|
|
15333
|
+
for (const v of message.avatars) {
|
|
15334
|
+
writer.uint32(82).string(v!);
|
|
15335
|
+
}
|
|
15336
|
+
for (const v of message.user_ids) {
|
|
15337
|
+
writer.uint32(90).string(v!);
|
|
15338
|
+
}
|
|
15339
|
+
if (message.last_sent_message !== undefined) {
|
|
15340
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
15341
|
+
}
|
|
15342
|
+
if (message.last_seen_message !== undefined) {
|
|
15343
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
15344
|
+
}
|
|
15345
|
+
writer.uint32(114).fork();
|
|
15346
|
+
for (const v of message.onlines) {
|
|
15347
|
+
writer.bool(v);
|
|
15348
|
+
}
|
|
15349
|
+
writer.ldelim();
|
|
15350
|
+
if (message.meeting_code !== "") {
|
|
15351
|
+
writer.uint32(122).string(message.meeting_code);
|
|
15352
|
+
}
|
|
15353
|
+
if (message.count_mess_unread !== 0) {
|
|
15354
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
15355
|
+
}
|
|
15356
|
+
if (message.active !== 0) {
|
|
15357
|
+
writer.uint32(136).int32(message.active);
|
|
15358
|
+
}
|
|
15359
|
+
if (message.last_pin_message !== "") {
|
|
15360
|
+
writer.uint32(146).string(message.last_pin_message);
|
|
15361
|
+
}
|
|
15362
|
+
for (const v of message.usernames) {
|
|
15363
|
+
writer.uint32(154).string(v!);
|
|
15364
|
+
}
|
|
15365
|
+
if (message.creator_name !== "") {
|
|
15366
|
+
writer.uint32(162).string(message.creator_name);
|
|
15367
|
+
}
|
|
15368
|
+
if (message.create_time_seconds !== 0) {
|
|
15369
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
15370
|
+
}
|
|
15371
|
+
if (message.update_time_seconds !== 0) {
|
|
15372
|
+
writer.uint32(176).uint32(message.update_time_seconds);
|
|
15373
|
+
}
|
|
15374
|
+
for (const v of message.display_names) {
|
|
15375
|
+
writer.uint32(186).string(v!);
|
|
15376
|
+
}
|
|
15377
|
+
if (message.channel_avatar !== "") {
|
|
15378
|
+
writer.uint32(194).string(message.channel_avatar);
|
|
15379
|
+
}
|
|
15380
|
+
if (message.clan_name !== "") {
|
|
15381
|
+
writer.uint32(202).string(message.clan_name);
|
|
15382
|
+
}
|
|
15383
|
+
if (message.app_id !== "") {
|
|
15384
|
+
writer.uint32(210).string(message.app_id);
|
|
15385
|
+
}
|
|
15386
|
+
if (message.is_mute !== false) {
|
|
15387
|
+
writer.uint32(216).bool(message.is_mute);
|
|
15388
|
+
}
|
|
15389
|
+
if (message.age_restricted !== 0) {
|
|
15390
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
15391
|
+
}
|
|
15392
|
+
if (message.topic !== "") {
|
|
15393
|
+
writer.uint32(234).string(message.topic);
|
|
15394
|
+
}
|
|
15395
|
+
if (message.e2ee !== 0) {
|
|
15396
|
+
writer.uint32(240).int32(message.e2ee);
|
|
15397
|
+
}
|
|
15398
|
+
if (message.member_count !== 0) {
|
|
15399
|
+
writer.uint32(248).int32(message.member_count);
|
|
15400
|
+
}
|
|
15401
|
+
return writer;
|
|
15402
|
+
},
|
|
15403
|
+
|
|
15404
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescription {
|
|
15405
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
15406
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
15407
|
+
const message = createBaseChannelDescription();
|
|
15408
|
+
while (reader.pos < end) {
|
|
15409
|
+
const tag = reader.uint32();
|
|
15410
|
+
switch (tag >>> 3) {
|
|
15411
|
+
case 1:
|
|
15412
|
+
if (tag !== 10) {
|
|
15413
|
+
break;
|
|
15414
|
+
}
|
|
15415
|
+
|
|
15416
|
+
message.clan_id = reader.string();
|
|
15417
|
+
continue;
|
|
15418
|
+
case 2:
|
|
15419
|
+
if (tag !== 18) {
|
|
15420
|
+
break;
|
|
15421
|
+
}
|
|
15422
|
+
|
|
15423
|
+
message.parent_id = reader.string();
|
|
15424
|
+
continue;
|
|
15425
|
+
case 3:
|
|
15426
|
+
if (tag !== 26) {
|
|
15427
|
+
break;
|
|
15428
|
+
}
|
|
15429
|
+
|
|
15430
|
+
message.channel_id = reader.string();
|
|
15431
|
+
continue;
|
|
15432
|
+
case 4:
|
|
15433
|
+
if (tag !== 34) {
|
|
15434
|
+
break;
|
|
15435
|
+
}
|
|
15436
|
+
|
|
15437
|
+
message.category_id = reader.string();
|
|
15438
|
+
continue;
|
|
15439
|
+
case 5:
|
|
15440
|
+
if (tag !== 42) {
|
|
15441
|
+
break;
|
|
15442
|
+
}
|
|
15443
|
+
|
|
15444
|
+
message.category_name = reader.string();
|
|
15445
|
+
continue;
|
|
15446
|
+
case 6:
|
|
15447
|
+
if (tag !== 48) {
|
|
15448
|
+
break;
|
|
15449
|
+
}
|
|
15450
|
+
|
|
15451
|
+
message.type = reader.int32();
|
|
15452
|
+
continue;
|
|
15453
|
+
case 7:
|
|
15454
|
+
if (tag !== 58) {
|
|
15455
|
+
break;
|
|
15456
|
+
}
|
|
15457
|
+
|
|
15458
|
+
message.creator_id = reader.string();
|
|
15459
|
+
continue;
|
|
15460
|
+
case 8:
|
|
15461
|
+
if (tag !== 66) {
|
|
15462
|
+
break;
|
|
15463
|
+
}
|
|
15464
|
+
|
|
15465
|
+
message.channel_label = reader.string();
|
|
15466
|
+
continue;
|
|
15467
|
+
case 9:
|
|
15468
|
+
if (tag !== 72) {
|
|
15469
|
+
break;
|
|
15470
|
+
}
|
|
15471
|
+
|
|
15472
|
+
message.channel_private = reader.int32();
|
|
15473
|
+
continue;
|
|
15474
|
+
case 10:
|
|
15475
|
+
if (tag !== 82) {
|
|
15476
|
+
break;
|
|
15477
|
+
}
|
|
15478
|
+
|
|
15479
|
+
message.avatars.push(reader.string());
|
|
15480
|
+
continue;
|
|
15481
|
+
case 11:
|
|
15482
|
+
if (tag !== 90) {
|
|
15483
|
+
break;
|
|
15484
|
+
}
|
|
15485
|
+
|
|
15486
|
+
message.user_ids.push(reader.string());
|
|
15487
|
+
continue;
|
|
15488
|
+
case 12:
|
|
15489
|
+
if (tag !== 98) {
|
|
15490
|
+
break;
|
|
15491
|
+
}
|
|
15492
|
+
|
|
15493
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15494
|
+
continue;
|
|
15495
|
+
case 13:
|
|
15496
|
+
if (tag !== 106) {
|
|
15497
|
+
break;
|
|
15498
|
+
}
|
|
15499
|
+
|
|
15500
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15501
|
+
continue;
|
|
15502
|
+
case 14:
|
|
15503
|
+
if (tag === 112) {
|
|
15504
|
+
message.onlines.push(reader.bool());
|
|
15505
|
+
|
|
15506
|
+
continue;
|
|
15507
|
+
}
|
|
15508
|
+
|
|
15509
|
+
if (tag === 114) {
|
|
15510
|
+
const end2 = reader.uint32() + reader.pos;
|
|
15511
|
+
while (reader.pos < end2) {
|
|
15512
|
+
message.onlines.push(reader.bool());
|
|
15513
|
+
}
|
|
15514
|
+
|
|
15515
|
+
continue;
|
|
15516
|
+
}
|
|
15517
|
+
|
|
15518
|
+
break;
|
|
15519
|
+
case 15:
|
|
15520
|
+
if (tag !== 122) {
|
|
15521
|
+
break;
|
|
15522
|
+
}
|
|
15523
|
+
|
|
15524
|
+
message.meeting_code = reader.string();
|
|
15525
|
+
continue;
|
|
15526
|
+
case 16:
|
|
15527
|
+
if (tag !== 128) {
|
|
15528
|
+
break;
|
|
15529
|
+
}
|
|
15530
|
+
|
|
15531
|
+
message.count_mess_unread = reader.int32();
|
|
15532
|
+
continue;
|
|
15533
|
+
case 17:
|
|
15534
|
+
if (tag !== 136) {
|
|
15535
|
+
break;
|
|
15536
|
+
}
|
|
15537
|
+
|
|
15538
|
+
message.active = reader.int32();
|
|
15539
|
+
continue;
|
|
15540
|
+
case 18:
|
|
15541
|
+
if (tag !== 146) {
|
|
15542
|
+
break;
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15545
|
+
message.last_pin_message = reader.string();
|
|
15546
|
+
continue;
|
|
15547
|
+
case 19:
|
|
15548
|
+
if (tag !== 154) {
|
|
15549
|
+
break;
|
|
15550
|
+
}
|
|
15551
|
+
|
|
15552
|
+
message.usernames.push(reader.string());
|
|
15553
|
+
continue;
|
|
15554
|
+
case 20:
|
|
15555
|
+
if (tag !== 162) {
|
|
15556
|
+
break;
|
|
15557
|
+
}
|
|
15558
|
+
|
|
15559
|
+
message.creator_name = reader.string();
|
|
15560
|
+
continue;
|
|
15561
|
+
case 21:
|
|
15562
|
+
if (tag !== 168) {
|
|
15563
|
+
break;
|
|
15564
|
+
}
|
|
15565
|
+
|
|
15566
|
+
message.create_time_seconds = reader.uint32();
|
|
15567
|
+
continue;
|
|
15568
|
+
case 22:
|
|
15569
|
+
if (tag !== 176) {
|
|
15570
|
+
break;
|
|
15571
|
+
}
|
|
15572
|
+
|
|
15573
|
+
message.update_time_seconds = reader.uint32();
|
|
15574
|
+
continue;
|
|
15575
|
+
case 23:
|
|
15576
|
+
if (tag !== 186) {
|
|
15577
|
+
break;
|
|
15578
|
+
}
|
|
15579
|
+
|
|
15580
|
+
message.display_names.push(reader.string());
|
|
15581
|
+
continue;
|
|
15582
|
+
case 24:
|
|
15583
|
+
if (tag !== 194) {
|
|
15584
|
+
break;
|
|
15585
|
+
}
|
|
15586
|
+
|
|
15587
|
+
message.channel_avatar = reader.string();
|
|
15588
|
+
continue;
|
|
15589
|
+
case 25:
|
|
15590
|
+
if (tag !== 202) {
|
|
15591
|
+
break;
|
|
15592
|
+
}
|
|
15593
|
+
|
|
15594
|
+
message.clan_name = reader.string();
|
|
15595
|
+
continue;
|
|
15596
|
+
case 26:
|
|
15597
|
+
if (tag !== 210) {
|
|
15598
|
+
break;
|
|
15599
|
+
}
|
|
15600
|
+
|
|
15601
|
+
message.app_id = reader.string();
|
|
15602
|
+
continue;
|
|
15603
|
+
case 27:
|
|
15604
|
+
if (tag !== 216) {
|
|
15605
|
+
break;
|
|
15606
|
+
}
|
|
15607
|
+
|
|
15608
|
+
message.is_mute = reader.bool();
|
|
15609
|
+
continue;
|
|
15610
|
+
case 28:
|
|
15611
|
+
if (tag !== 224) {
|
|
15612
|
+
break;
|
|
15613
|
+
}
|
|
15614
|
+
|
|
15615
|
+
message.age_restricted = reader.int32();
|
|
15616
|
+
continue;
|
|
15617
|
+
case 29:
|
|
15618
|
+
if (tag !== 234) {
|
|
15619
|
+
break;
|
|
15620
|
+
}
|
|
15621
|
+
|
|
15622
|
+
message.topic = reader.string();
|
|
15623
|
+
continue;
|
|
15624
|
+
case 30:
|
|
15625
|
+
if (tag !== 240) {
|
|
15626
|
+
break;
|
|
15627
|
+
}
|
|
15628
|
+
|
|
15629
|
+
message.e2ee = reader.int32();
|
|
15630
|
+
continue;
|
|
15631
|
+
case 31:
|
|
15632
|
+
if (tag !== 248) {
|
|
15633
|
+
break;
|
|
15634
|
+
}
|
|
15635
|
+
|
|
15636
|
+
message.member_count = reader.int32();
|
|
15637
|
+
continue;
|
|
15638
|
+
}
|
|
15639
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15640
|
+
break;
|
|
15641
|
+
}
|
|
15642
|
+
reader.skipType(tag & 7);
|
|
15643
|
+
}
|
|
15644
|
+
return message;
|
|
15645
|
+
},
|
|
15646
|
+
|
|
15647
|
+
fromJSON(object: any): ChannelDescription {
|
|
15648
|
+
return {
|
|
15649
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
15650
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
15651
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15652
|
+
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
15653
|
+
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
15654
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
15655
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
15656
|
+
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
15657
|
+
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
15658
|
+
avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
|
|
15659
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
15660
|
+
last_sent_message: isSet(object.last_sent_message)
|
|
15661
|
+
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
15662
|
+
: undefined,
|
|
15663
|
+
last_seen_message: isSet(object.last_seen_message)
|
|
15664
|
+
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
15665
|
+
: undefined,
|
|
15666
|
+
onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
|
|
15667
|
+
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
15668
|
+
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
15669
|
+
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
15670
|
+
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
15671
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
15672
|
+
? object.usernames.map((e: any) => globalThis.String(e))
|
|
15673
|
+
: [],
|
|
15674
|
+
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
15675
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
15676
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
15677
|
+
display_names: globalThis.Array.isArray(object?.display_names)
|
|
15678
|
+
? object.display_names.map((e: any) => globalThis.String(e))
|
|
15679
|
+
: [],
|
|
15680
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
15681
|
+
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
15682
|
+
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
15683
|
+
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
15684
|
+
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
15685
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
15686
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
15687
|
+
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
15688
|
+
};
|
|
15689
|
+
},
|
|
15690
|
+
|
|
15691
|
+
toJSON(message: ChannelDescription): unknown {
|
|
15692
|
+
const obj: any = {};
|
|
15693
|
+
if (message.clan_id !== "") {
|
|
15694
|
+
obj.clan_id = message.clan_id;
|
|
15695
|
+
}
|
|
15696
|
+
if (message.parent_id !== "") {
|
|
15697
|
+
obj.parent_id = message.parent_id;
|
|
15698
|
+
}
|
|
15699
|
+
if (message.channel_id !== "") {
|
|
15700
|
+
obj.channel_id = message.channel_id;
|
|
15701
|
+
}
|
|
15702
|
+
if (message.category_id !== "") {
|
|
15703
|
+
obj.category_id = message.category_id;
|
|
15704
|
+
}
|
|
15705
|
+
if (message.category_name !== "") {
|
|
15706
|
+
obj.category_name = message.category_name;
|
|
15707
|
+
}
|
|
15708
|
+
if (message.type !== 0) {
|
|
15709
|
+
obj.type = Math.round(message.type);
|
|
15710
|
+
}
|
|
15711
|
+
if (message.creator_id !== "") {
|
|
15712
|
+
obj.creator_id = message.creator_id;
|
|
15713
|
+
}
|
|
15714
|
+
if (message.channel_label !== "") {
|
|
15715
|
+
obj.channel_label = message.channel_label;
|
|
15716
|
+
}
|
|
15717
|
+
if (message.channel_private !== 0) {
|
|
15718
|
+
obj.channel_private = Math.round(message.channel_private);
|
|
15719
|
+
}
|
|
15720
|
+
if (message.avatars?.length) {
|
|
15721
|
+
obj.avatars = message.avatars;
|
|
15722
|
+
}
|
|
15723
|
+
if (message.user_ids?.length) {
|
|
15724
|
+
obj.user_ids = message.user_ids;
|
|
15725
|
+
}
|
|
15726
|
+
if (message.last_sent_message !== undefined) {
|
|
15727
|
+
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
15728
|
+
}
|
|
15729
|
+
if (message.last_seen_message !== undefined) {
|
|
15730
|
+
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
15731
|
+
}
|
|
15732
|
+
if (message.onlines?.length) {
|
|
15733
|
+
obj.onlines = message.onlines;
|
|
15734
|
+
}
|
|
15735
|
+
if (message.meeting_code !== "") {
|
|
15736
|
+
obj.meeting_code = message.meeting_code;
|
|
15737
|
+
}
|
|
15738
|
+
if (message.count_mess_unread !== 0) {
|
|
15739
|
+
obj.count_mess_unread = Math.round(message.count_mess_unread);
|
|
15740
|
+
}
|
|
15741
|
+
if (message.active !== 0) {
|
|
15742
|
+
obj.active = Math.round(message.active);
|
|
15743
|
+
}
|
|
15744
|
+
if (message.last_pin_message !== "") {
|
|
15745
|
+
obj.last_pin_message = message.last_pin_message;
|
|
15746
|
+
}
|
|
15747
|
+
if (message.usernames?.length) {
|
|
15748
|
+
obj.usernames = message.usernames;
|
|
15749
|
+
}
|
|
15750
|
+
if (message.creator_name !== "") {
|
|
15751
|
+
obj.creator_name = message.creator_name;
|
|
15752
|
+
}
|
|
15753
|
+
if (message.create_time_seconds !== 0) {
|
|
15754
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
15755
|
+
}
|
|
15756
|
+
if (message.update_time_seconds !== 0) {
|
|
15757
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
15758
|
+
}
|
|
15759
|
+
if (message.display_names?.length) {
|
|
15760
|
+
obj.display_names = message.display_names;
|
|
15761
|
+
}
|
|
15762
|
+
if (message.channel_avatar !== "") {
|
|
15763
|
+
obj.channel_avatar = message.channel_avatar;
|
|
15764
|
+
}
|
|
15765
|
+
if (message.clan_name !== "") {
|
|
15766
|
+
obj.clan_name = message.clan_name;
|
|
15767
|
+
}
|
|
15768
|
+
if (message.app_id !== "") {
|
|
15769
|
+
obj.app_id = message.app_id;
|
|
15770
|
+
}
|
|
15771
|
+
if (message.is_mute !== false) {
|
|
15772
|
+
obj.is_mute = message.is_mute;
|
|
15773
|
+
}
|
|
15774
|
+
if (message.age_restricted !== 0) {
|
|
15775
|
+
obj.age_restricted = Math.round(message.age_restricted);
|
|
15776
|
+
}
|
|
15777
|
+
if (message.topic !== "") {
|
|
15778
|
+
obj.topic = message.topic;
|
|
15779
|
+
}
|
|
15780
|
+
if (message.e2ee !== 0) {
|
|
15781
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
15782
|
+
}
|
|
15783
|
+
if (message.member_count !== 0) {
|
|
15784
|
+
obj.member_count = Math.round(message.member_count);
|
|
15785
|
+
}
|
|
15786
|
+
return obj;
|
|
15787
|
+
},
|
|
15788
|
+
|
|
15789
|
+
create<I extends Exact<DeepPartial<ChannelDescription>, I>>(base?: I): ChannelDescription {
|
|
15790
|
+
return ChannelDescription.fromPartial(base ?? ({} as any));
|
|
15791
|
+
},
|
|
15792
|
+
fromPartial<I extends Exact<DeepPartial<ChannelDescription>, I>>(object: I): ChannelDescription {
|
|
15793
|
+
const message = createBaseChannelDescription();
|
|
15794
|
+
message.clan_id = object.clan_id ?? "";
|
|
15795
|
+
message.parent_id = object.parent_id ?? "";
|
|
15796
|
+
message.channel_id = object.channel_id ?? "";
|
|
15797
|
+
message.category_id = object.category_id ?? "";
|
|
15798
|
+
message.category_name = object.category_name ?? "";
|
|
15799
|
+
message.type = object.type ?? 0;
|
|
15800
|
+
message.creator_id = object.creator_id ?? "";
|
|
15801
|
+
message.channel_label = object.channel_label ?? "";
|
|
15802
|
+
message.channel_private = object.channel_private ?? 0;
|
|
15803
|
+
message.avatars = object.avatars?.map((e) => e) || [];
|
|
15804
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
15805
|
+
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
15806
|
+
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
15807
|
+
: undefined;
|
|
15808
|
+
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
15809
|
+
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
15810
|
+
: undefined;
|
|
15811
|
+
message.onlines = object.onlines?.map((e) => e) || [];
|
|
15812
|
+
message.meeting_code = object.meeting_code ?? "";
|
|
15813
|
+
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
15814
|
+
message.active = object.active ?? 0;
|
|
15815
|
+
message.last_pin_message = object.last_pin_message ?? "";
|
|
15816
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
15817
|
+
message.creator_name = object.creator_name ?? "";
|
|
15818
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
15819
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
15820
|
+
message.display_names = object.display_names?.map((e) => e) || [];
|
|
15821
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
15822
|
+
message.clan_name = object.clan_name ?? "";
|
|
15823
|
+
message.app_id = object.app_id ?? "";
|
|
15824
|
+
message.is_mute = object.is_mute ?? false;
|
|
15825
|
+
message.age_restricted = object.age_restricted ?? 0;
|
|
15826
|
+
message.topic = object.topic ?? "";
|
|
15827
|
+
message.e2ee = object.e2ee ?? 0;
|
|
15828
|
+
message.member_count = object.member_count ?? 0;
|
|
15829
|
+
return message;
|
|
15830
|
+
},
|
|
15831
|
+
};
|
|
15832
|
+
|
|
15200
15833
|
function createBaseChannelDescList(): ChannelDescList {
|
|
15201
15834
|
return { channeldesc: [], page: 0 };
|
|
15202
15835
|
}
|
package/dist/api/api.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ export interface ChannelMessage {
|
|
|
156
156
|
/** The unique ID of this message. */
|
|
157
157
|
message_id: string;
|
|
158
158
|
/** The code representing a message type or category. */
|
|
159
|
-
code: number
|
|
159
|
+
code: number;
|
|
160
160
|
/** Message sender, usually a user ID. */
|
|
161
161
|
sender_id: string;
|
|
162
162
|
/** The username of the message sender, if any. */
|
|
@@ -1142,7 +1142,7 @@ export interface ChannelMessageHeader {
|
|
|
1142
1142
|
reaction: string;
|
|
1143
1143
|
}
|
|
1144
1144
|
/** Channel description record */
|
|
1145
|
-
export interface
|
|
1145
|
+
export interface ChannelDescriptionOld {
|
|
1146
1146
|
/** The clan of this channel */
|
|
1147
1147
|
clan_id: string;
|
|
1148
1148
|
/** The parent channel this message belongs to. */
|
|
@@ -1206,6 +1206,71 @@ export interface ChannelDescription {
|
|
|
1206
1206
|
/** channel member count */
|
|
1207
1207
|
member_count: number;
|
|
1208
1208
|
}
|
|
1209
|
+
/** Channel description record */
|
|
1210
|
+
export interface ChannelDescription {
|
|
1211
|
+
/** The clan of this channel */
|
|
1212
|
+
clan_id: string;
|
|
1213
|
+
/** The parent channel this message belongs to. */
|
|
1214
|
+
parent_id: string;
|
|
1215
|
+
/** The channel this message belongs to. */
|
|
1216
|
+
channel_id: string;
|
|
1217
|
+
/** The category of channel */
|
|
1218
|
+
category_id: string;
|
|
1219
|
+
/** The category name */
|
|
1220
|
+
category_name: string;
|
|
1221
|
+
/** The channel type. */
|
|
1222
|
+
type: number;
|
|
1223
|
+
/** creator ID. */
|
|
1224
|
+
creator_id: string;
|
|
1225
|
+
/** The channel lable */
|
|
1226
|
+
channel_label: string;
|
|
1227
|
+
/** The channel private */
|
|
1228
|
+
channel_private: number;
|
|
1229
|
+
/** DM avatars */
|
|
1230
|
+
avatars: string[];
|
|
1231
|
+
/** List DM user ids */
|
|
1232
|
+
user_ids: string[];
|
|
1233
|
+
/** last message id */
|
|
1234
|
+
last_sent_message: ChannelMessageHeader | undefined;
|
|
1235
|
+
/** last seen message id */
|
|
1236
|
+
last_seen_message: ChannelMessageHeader | undefined;
|
|
1237
|
+
/** DM status */
|
|
1238
|
+
onlines: boolean[];
|
|
1239
|
+
/** meeting code */
|
|
1240
|
+
meeting_code: string;
|
|
1241
|
+
/** count message unread */
|
|
1242
|
+
count_mess_unread: number;
|
|
1243
|
+
/** active channel */
|
|
1244
|
+
active: number;
|
|
1245
|
+
/** last pin message */
|
|
1246
|
+
last_pin_message: string;
|
|
1247
|
+
/** List DM usernames */
|
|
1248
|
+
usernames: string[];
|
|
1249
|
+
/** creator name */
|
|
1250
|
+
creator_name: string;
|
|
1251
|
+
/** create time ms */
|
|
1252
|
+
create_time_seconds: number;
|
|
1253
|
+
/** update time ms */
|
|
1254
|
+
update_time_seconds: number;
|
|
1255
|
+
/** List DM diplay names */
|
|
1256
|
+
display_names: string[];
|
|
1257
|
+
/** channel avatar */
|
|
1258
|
+
channel_avatar: string;
|
|
1259
|
+
/** clan_name */
|
|
1260
|
+
clan_name: string;
|
|
1261
|
+
/** app id */
|
|
1262
|
+
app_id: string;
|
|
1263
|
+
/** channel all message */
|
|
1264
|
+
is_mute: boolean;
|
|
1265
|
+
/** age restricted */
|
|
1266
|
+
age_restricted: number;
|
|
1267
|
+
/** channel description topic */
|
|
1268
|
+
topic: string;
|
|
1269
|
+
/** e2ee */
|
|
1270
|
+
e2ee: number;
|
|
1271
|
+
/** channel member count */
|
|
1272
|
+
member_count: number;
|
|
1273
|
+
}
|
|
1209
1274
|
/** A list of channel description, usually a result of a list operation. */
|
|
1210
1275
|
export interface ChannelDescList {
|
|
1211
1276
|
/** A list of channel. */
|
|
@@ -10020,6 +10085,250 @@ export declare const ChannelMessageHeader: {
|
|
|
10020
10085
|
reaction?: string | undefined;
|
|
10021
10086
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelMessageHeader>]: never; }>(object: I_1): ChannelMessageHeader;
|
|
10022
10087
|
};
|
|
10088
|
+
export declare const ChannelDescriptionOld: {
|
|
10089
|
+
encode(message: ChannelDescriptionOld, writer?: _m0.Writer): _m0.Writer;
|
|
10090
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescriptionOld;
|
|
10091
|
+
fromJSON(object: any): ChannelDescriptionOld;
|
|
10092
|
+
toJSON(message: ChannelDescriptionOld): unknown;
|
|
10093
|
+
create<I extends {
|
|
10094
|
+
clan_id?: string | undefined;
|
|
10095
|
+
parent_id?: string | undefined;
|
|
10096
|
+
channel_id?: string | undefined;
|
|
10097
|
+
category_id?: string | undefined;
|
|
10098
|
+
category_name?: string | undefined;
|
|
10099
|
+
type?: number | undefined;
|
|
10100
|
+
creator_id?: string | undefined;
|
|
10101
|
+
channel_label?: string | undefined;
|
|
10102
|
+
channel_private?: number | undefined;
|
|
10103
|
+
avatars?: string[] | undefined;
|
|
10104
|
+
user_ids?: string[] | undefined;
|
|
10105
|
+
last_sent_message?: {
|
|
10106
|
+
id?: string | undefined;
|
|
10107
|
+
timestamp_seconds?: number | undefined;
|
|
10108
|
+
sender_id?: string | undefined;
|
|
10109
|
+
content?: string | undefined;
|
|
10110
|
+
attachment?: string | undefined;
|
|
10111
|
+
reference?: string | undefined;
|
|
10112
|
+
mention?: string | undefined;
|
|
10113
|
+
reaction?: string | undefined;
|
|
10114
|
+
} | undefined;
|
|
10115
|
+
last_seen_message?: {
|
|
10116
|
+
id?: string | undefined;
|
|
10117
|
+
timestamp_seconds?: number | undefined;
|
|
10118
|
+
sender_id?: string | undefined;
|
|
10119
|
+
content?: string | undefined;
|
|
10120
|
+
attachment?: string | undefined;
|
|
10121
|
+
reference?: string | undefined;
|
|
10122
|
+
mention?: string | undefined;
|
|
10123
|
+
reaction?: string | undefined;
|
|
10124
|
+
} | undefined;
|
|
10125
|
+
onlines?: boolean[] | undefined;
|
|
10126
|
+
meeting_code?: string | undefined;
|
|
10127
|
+
count_mess_unread?: number | undefined;
|
|
10128
|
+
active?: number | undefined;
|
|
10129
|
+
last_pin_message?: string | undefined;
|
|
10130
|
+
usernames?: string[] | undefined;
|
|
10131
|
+
creator_name?: string | undefined;
|
|
10132
|
+
create_time_seconds?: number | undefined;
|
|
10133
|
+
update_time_seconds?: number | undefined;
|
|
10134
|
+
display_names?: string[] | undefined;
|
|
10135
|
+
channel_avatar?: string | undefined;
|
|
10136
|
+
clan_name?: string | undefined;
|
|
10137
|
+
app_id?: string | undefined;
|
|
10138
|
+
is_mute?: boolean | undefined;
|
|
10139
|
+
age_restricted?: number | undefined;
|
|
10140
|
+
topic?: string | undefined;
|
|
10141
|
+
e2ee?: number | undefined;
|
|
10142
|
+
member_count?: number | undefined;
|
|
10143
|
+
} & {
|
|
10144
|
+
clan_id?: string | undefined;
|
|
10145
|
+
parent_id?: string | undefined;
|
|
10146
|
+
channel_id?: string | undefined;
|
|
10147
|
+
category_id?: string | undefined;
|
|
10148
|
+
category_name?: string | undefined;
|
|
10149
|
+
type?: number | undefined;
|
|
10150
|
+
creator_id?: string | undefined;
|
|
10151
|
+
channel_label?: string | undefined;
|
|
10152
|
+
channel_private?: number | undefined;
|
|
10153
|
+
avatars?: (string[] & string[] & { [K in Exclude<keyof I["avatars"], keyof string[]>]: never; }) | undefined;
|
|
10154
|
+
user_ids?: (string[] & string[] & { [K_1 in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
10155
|
+
last_sent_message?: ({
|
|
10156
|
+
id?: string | undefined;
|
|
10157
|
+
timestamp_seconds?: number | undefined;
|
|
10158
|
+
sender_id?: string | undefined;
|
|
10159
|
+
content?: string | undefined;
|
|
10160
|
+
attachment?: string | undefined;
|
|
10161
|
+
reference?: string | undefined;
|
|
10162
|
+
mention?: string | undefined;
|
|
10163
|
+
reaction?: string | undefined;
|
|
10164
|
+
} & {
|
|
10165
|
+
id?: string | undefined;
|
|
10166
|
+
timestamp_seconds?: number | undefined;
|
|
10167
|
+
sender_id?: string | undefined;
|
|
10168
|
+
content?: string | undefined;
|
|
10169
|
+
attachment?: string | undefined;
|
|
10170
|
+
reference?: string | undefined;
|
|
10171
|
+
mention?: string | undefined;
|
|
10172
|
+
reaction?: string | undefined;
|
|
10173
|
+
} & { [K_2 in Exclude<keyof I["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
10174
|
+
last_seen_message?: ({
|
|
10175
|
+
id?: string | undefined;
|
|
10176
|
+
timestamp_seconds?: number | undefined;
|
|
10177
|
+
sender_id?: string | undefined;
|
|
10178
|
+
content?: string | undefined;
|
|
10179
|
+
attachment?: string | undefined;
|
|
10180
|
+
reference?: string | undefined;
|
|
10181
|
+
mention?: string | undefined;
|
|
10182
|
+
reaction?: string | undefined;
|
|
10183
|
+
} & {
|
|
10184
|
+
id?: string | undefined;
|
|
10185
|
+
timestamp_seconds?: number | undefined;
|
|
10186
|
+
sender_id?: string | undefined;
|
|
10187
|
+
content?: string | undefined;
|
|
10188
|
+
attachment?: string | undefined;
|
|
10189
|
+
reference?: string | undefined;
|
|
10190
|
+
mention?: string | undefined;
|
|
10191
|
+
reaction?: string | undefined;
|
|
10192
|
+
} & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
10193
|
+
onlines?: (boolean[] & boolean[] & { [K_4 in Exclude<keyof I["onlines"], keyof boolean[]>]: never; }) | undefined;
|
|
10194
|
+
meeting_code?: string | undefined;
|
|
10195
|
+
count_mess_unread?: number | undefined;
|
|
10196
|
+
active?: number | undefined;
|
|
10197
|
+
last_pin_message?: string | undefined;
|
|
10198
|
+
usernames?: (string[] & string[] & { [K_5 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
|
|
10199
|
+
creator_name?: string | undefined;
|
|
10200
|
+
create_time_seconds?: number | undefined;
|
|
10201
|
+
update_time_seconds?: number | undefined;
|
|
10202
|
+
display_names?: (string[] & string[] & { [K_6 in Exclude<keyof I["display_names"], keyof string[]>]: never; }) | undefined;
|
|
10203
|
+
channel_avatar?: string | undefined;
|
|
10204
|
+
clan_name?: string | undefined;
|
|
10205
|
+
app_id?: string | undefined;
|
|
10206
|
+
is_mute?: boolean | undefined;
|
|
10207
|
+
age_restricted?: number | undefined;
|
|
10208
|
+
topic?: string | undefined;
|
|
10209
|
+
e2ee?: number | undefined;
|
|
10210
|
+
member_count?: number | undefined;
|
|
10211
|
+
} & { [K_7 in Exclude<keyof I, keyof ChannelDescriptionOld>]: never; }>(base?: I | undefined): ChannelDescriptionOld;
|
|
10212
|
+
fromPartial<I_1 extends {
|
|
10213
|
+
clan_id?: string | undefined;
|
|
10214
|
+
parent_id?: string | undefined;
|
|
10215
|
+
channel_id?: string | undefined;
|
|
10216
|
+
category_id?: string | undefined;
|
|
10217
|
+
category_name?: string | undefined;
|
|
10218
|
+
type?: number | undefined;
|
|
10219
|
+
creator_id?: string | undefined;
|
|
10220
|
+
channel_label?: string | undefined;
|
|
10221
|
+
channel_private?: number | undefined;
|
|
10222
|
+
avatars?: string[] | undefined;
|
|
10223
|
+
user_ids?: string[] | undefined;
|
|
10224
|
+
last_sent_message?: {
|
|
10225
|
+
id?: string | undefined;
|
|
10226
|
+
timestamp_seconds?: number | undefined;
|
|
10227
|
+
sender_id?: string | undefined;
|
|
10228
|
+
content?: string | undefined;
|
|
10229
|
+
attachment?: string | undefined;
|
|
10230
|
+
reference?: string | undefined;
|
|
10231
|
+
mention?: string | undefined;
|
|
10232
|
+
reaction?: string | undefined;
|
|
10233
|
+
} | undefined;
|
|
10234
|
+
last_seen_message?: {
|
|
10235
|
+
id?: string | undefined;
|
|
10236
|
+
timestamp_seconds?: number | undefined;
|
|
10237
|
+
sender_id?: string | undefined;
|
|
10238
|
+
content?: string | undefined;
|
|
10239
|
+
attachment?: string | undefined;
|
|
10240
|
+
reference?: string | undefined;
|
|
10241
|
+
mention?: string | undefined;
|
|
10242
|
+
reaction?: string | undefined;
|
|
10243
|
+
} | undefined;
|
|
10244
|
+
onlines?: boolean[] | undefined;
|
|
10245
|
+
meeting_code?: string | undefined;
|
|
10246
|
+
count_mess_unread?: number | undefined;
|
|
10247
|
+
active?: number | undefined;
|
|
10248
|
+
last_pin_message?: string | undefined;
|
|
10249
|
+
usernames?: string[] | undefined;
|
|
10250
|
+
creator_name?: string | undefined;
|
|
10251
|
+
create_time_seconds?: number | undefined;
|
|
10252
|
+
update_time_seconds?: number | undefined;
|
|
10253
|
+
display_names?: string[] | undefined;
|
|
10254
|
+
channel_avatar?: string | undefined;
|
|
10255
|
+
clan_name?: string | undefined;
|
|
10256
|
+
app_id?: string | undefined;
|
|
10257
|
+
is_mute?: boolean | undefined;
|
|
10258
|
+
age_restricted?: number | undefined;
|
|
10259
|
+
topic?: string | undefined;
|
|
10260
|
+
e2ee?: number | undefined;
|
|
10261
|
+
member_count?: number | undefined;
|
|
10262
|
+
} & {
|
|
10263
|
+
clan_id?: string | undefined;
|
|
10264
|
+
parent_id?: string | undefined;
|
|
10265
|
+
channel_id?: string | undefined;
|
|
10266
|
+
category_id?: string | undefined;
|
|
10267
|
+
category_name?: string | undefined;
|
|
10268
|
+
type?: number | undefined;
|
|
10269
|
+
creator_id?: string | undefined;
|
|
10270
|
+
channel_label?: string | undefined;
|
|
10271
|
+
channel_private?: number | undefined;
|
|
10272
|
+
avatars?: (string[] & string[] & { [K_8 in Exclude<keyof I_1["avatars"], keyof string[]>]: never; }) | undefined;
|
|
10273
|
+
user_ids?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
10274
|
+
last_sent_message?: ({
|
|
10275
|
+
id?: string | undefined;
|
|
10276
|
+
timestamp_seconds?: number | undefined;
|
|
10277
|
+
sender_id?: string | undefined;
|
|
10278
|
+
content?: string | undefined;
|
|
10279
|
+
attachment?: string | undefined;
|
|
10280
|
+
reference?: string | undefined;
|
|
10281
|
+
mention?: string | undefined;
|
|
10282
|
+
reaction?: string | undefined;
|
|
10283
|
+
} & {
|
|
10284
|
+
id?: string | undefined;
|
|
10285
|
+
timestamp_seconds?: number | undefined;
|
|
10286
|
+
sender_id?: string | undefined;
|
|
10287
|
+
content?: string | undefined;
|
|
10288
|
+
attachment?: string | undefined;
|
|
10289
|
+
reference?: string | undefined;
|
|
10290
|
+
mention?: string | undefined;
|
|
10291
|
+
reaction?: string | undefined;
|
|
10292
|
+
} & { [K_10 in Exclude<keyof I_1["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
10293
|
+
last_seen_message?: ({
|
|
10294
|
+
id?: string | undefined;
|
|
10295
|
+
timestamp_seconds?: number | undefined;
|
|
10296
|
+
sender_id?: string | undefined;
|
|
10297
|
+
content?: string | undefined;
|
|
10298
|
+
attachment?: string | undefined;
|
|
10299
|
+
reference?: string | undefined;
|
|
10300
|
+
mention?: string | undefined;
|
|
10301
|
+
reaction?: string | undefined;
|
|
10302
|
+
} & {
|
|
10303
|
+
id?: string | undefined;
|
|
10304
|
+
timestamp_seconds?: number | undefined;
|
|
10305
|
+
sender_id?: string | undefined;
|
|
10306
|
+
content?: string | undefined;
|
|
10307
|
+
attachment?: string | undefined;
|
|
10308
|
+
reference?: string | undefined;
|
|
10309
|
+
mention?: string | undefined;
|
|
10310
|
+
reaction?: string | undefined;
|
|
10311
|
+
} & { [K_11 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
10312
|
+
onlines?: (boolean[] & boolean[] & { [K_12 in Exclude<keyof I_1["onlines"], keyof boolean[]>]: never; }) | undefined;
|
|
10313
|
+
meeting_code?: string | undefined;
|
|
10314
|
+
count_mess_unread?: number | undefined;
|
|
10315
|
+
active?: number | undefined;
|
|
10316
|
+
last_pin_message?: string | undefined;
|
|
10317
|
+
usernames?: (string[] & string[] & { [K_13 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
|
|
10318
|
+
creator_name?: string | undefined;
|
|
10319
|
+
create_time_seconds?: number | undefined;
|
|
10320
|
+
update_time_seconds?: number | undefined;
|
|
10321
|
+
display_names?: (string[] & string[] & { [K_14 in Exclude<keyof I_1["display_names"], keyof string[]>]: never; }) | undefined;
|
|
10322
|
+
channel_avatar?: string | undefined;
|
|
10323
|
+
clan_name?: string | undefined;
|
|
10324
|
+
app_id?: string | undefined;
|
|
10325
|
+
is_mute?: boolean | undefined;
|
|
10326
|
+
age_restricted?: number | undefined;
|
|
10327
|
+
topic?: string | undefined;
|
|
10328
|
+
e2ee?: number | undefined;
|
|
10329
|
+
member_count?: number | undefined;
|
|
10330
|
+
} & { [K_15 in Exclude<keyof I_1, keyof ChannelDescriptionOld>]: never; }>(object: I_1): ChannelDescriptionOld;
|
|
10331
|
+
};
|
|
10023
10332
|
export declare const ChannelDescription: {
|
|
10024
10333
|
encode(message: ChannelDescription, writer?: _m0.Writer): _m0.Writer;
|
|
10025
10334
|
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescription;
|
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -3585,7 +3585,7 @@ function createBaseChannelMessage() {
|
|
|
3585
3585
|
clan_id: "",
|
|
3586
3586
|
channel_id: "",
|
|
3587
3587
|
message_id: "",
|
|
3588
|
-
code:
|
|
3588
|
+
code: 0,
|
|
3589
3589
|
sender_id: "",
|
|
3590
3590
|
username: "",
|
|
3591
3591
|
avatar: "",
|
|
@@ -3622,8 +3622,8 @@ var ChannelMessage = {
|
|
|
3622
3622
|
if (message.message_id !== "") {
|
|
3623
3623
|
writer.uint32(26).string(message.message_id);
|
|
3624
3624
|
}
|
|
3625
|
-
if (message.code !==
|
|
3626
|
-
|
|
3625
|
+
if (message.code !== 0) {
|
|
3626
|
+
writer.uint32(32).int32(message.code);
|
|
3627
3627
|
}
|
|
3628
3628
|
if (message.sender_id !== "") {
|
|
3629
3629
|
writer.uint32(42).string(message.sender_id);
|
|
@@ -3722,10 +3722,10 @@ var ChannelMessage = {
|
|
|
3722
3722
|
message.message_id = reader.string();
|
|
3723
3723
|
continue;
|
|
3724
3724
|
case 4:
|
|
3725
|
-
if (tag !==
|
|
3725
|
+
if (tag !== 32) {
|
|
3726
3726
|
break;
|
|
3727
3727
|
}
|
|
3728
|
-
message.code =
|
|
3728
|
+
message.code = reader.int32();
|
|
3729
3729
|
continue;
|
|
3730
3730
|
case 5:
|
|
3731
3731
|
if (tag !== 42) {
|
|
@@ -3878,7 +3878,7 @@ var ChannelMessage = {
|
|
|
3878
3878
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3879
3879
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3880
3880
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
3881
|
-
code: isSet3(object.code) ? Number(object.code) :
|
|
3881
|
+
code: isSet3(object.code) ? globalThis.Number(object.code) : 0,
|
|
3882
3882
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
3883
3883
|
username: isSet3(object.username) ? globalThis.String(object.username) : "",
|
|
3884
3884
|
avatar: isSet3(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
@@ -3915,8 +3915,8 @@ var ChannelMessage = {
|
|
|
3915
3915
|
if (message.message_id !== "") {
|
|
3916
3916
|
obj.message_id = message.message_id;
|
|
3917
3917
|
}
|
|
3918
|
-
if (message.code !==
|
|
3919
|
-
obj.code = message.code;
|
|
3918
|
+
if (message.code !== 0) {
|
|
3919
|
+
obj.code = Math.round(message.code);
|
|
3920
3920
|
}
|
|
3921
3921
|
if (message.sender_id !== "") {
|
|
3922
3922
|
obj.sender_id = message.sender_id;
|
|
@@ -3998,7 +3998,7 @@ var ChannelMessage = {
|
|
|
3998
3998
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3999
3999
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
4000
4000
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
4001
|
-
message.code = (_d = object.code) != null ? _d :
|
|
4001
|
+
message.code = (_d = object.code) != null ? _d : 0;
|
|
4002
4002
|
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
4003
4003
|
message.username = (_f = object.username) != null ? _f : "";
|
|
4004
4004
|
message.avatar = (_g = object.avatar) != null ? _g : "";
|
|
@@ -6859,7 +6859,7 @@ function createBaseChannelDescription() {
|
|
|
6859
6859
|
channel_id: "",
|
|
6860
6860
|
category_id: "",
|
|
6861
6861
|
category_name: "",
|
|
6862
|
-
type:
|
|
6862
|
+
type: 0,
|
|
6863
6863
|
creator_id: "",
|
|
6864
6864
|
channel_label: "",
|
|
6865
6865
|
channel_private: 0,
|
|
@@ -6904,8 +6904,8 @@ var ChannelDescription = {
|
|
|
6904
6904
|
if (message.category_name !== "") {
|
|
6905
6905
|
writer.uint32(42).string(message.category_name);
|
|
6906
6906
|
}
|
|
6907
|
-
if (message.type !==
|
|
6908
|
-
|
|
6907
|
+
if (message.type !== 0) {
|
|
6908
|
+
writer.uint32(48).int32(message.type);
|
|
6909
6909
|
}
|
|
6910
6910
|
if (message.creator_id !== "") {
|
|
6911
6911
|
writer.uint32(58).string(message.creator_id);
|
|
@@ -7024,10 +7024,10 @@ var ChannelDescription = {
|
|
|
7024
7024
|
message.category_name = reader.string();
|
|
7025
7025
|
continue;
|
|
7026
7026
|
case 6:
|
|
7027
|
-
if (tag !==
|
|
7027
|
+
if (tag !== 48) {
|
|
7028
7028
|
break;
|
|
7029
7029
|
}
|
|
7030
|
-
message.type =
|
|
7030
|
+
message.type = reader.int32();
|
|
7031
7031
|
continue;
|
|
7032
7032
|
case 7:
|
|
7033
7033
|
if (tag !== 58) {
|
|
@@ -7201,7 +7201,7 @@ var ChannelDescription = {
|
|
|
7201
7201
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7202
7202
|
category_id: isSet3(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
7203
7203
|
category_name: isSet3(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
7204
|
-
type: isSet3(object.type) ? Number(object.type) :
|
|
7204
|
+
type: isSet3(object.type) ? globalThis.Number(object.type) : 0,
|
|
7205
7205
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7206
7206
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7207
7207
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
@@ -7247,8 +7247,8 @@ var ChannelDescription = {
|
|
|
7247
7247
|
if (message.category_name !== "") {
|
|
7248
7248
|
obj.category_name = message.category_name;
|
|
7249
7249
|
}
|
|
7250
|
-
if (message.type !==
|
|
7251
|
-
obj.type = message.type;
|
|
7250
|
+
if (message.type !== 0) {
|
|
7251
|
+
obj.type = Math.round(message.type);
|
|
7252
7252
|
}
|
|
7253
7253
|
if (message.creator_id !== "") {
|
|
7254
7254
|
obj.creator_id = message.creator_id;
|
|
@@ -7338,7 +7338,7 @@ var ChannelDescription = {
|
|
|
7338
7338
|
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
7339
7339
|
message.category_id = (_d = object.category_id) != null ? _d : "";
|
|
7340
7340
|
message.category_name = (_e = object.category_name) != null ? _e : "";
|
|
7341
|
-
message.type = (_f = object.type) != null ? _f :
|
|
7341
|
+
message.type = (_f = object.type) != null ? _f : 0;
|
|
7342
7342
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7343
7343
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7344
7344
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -3560,7 +3560,7 @@ function createBaseChannelMessage() {
|
|
|
3560
3560
|
clan_id: "",
|
|
3561
3561
|
channel_id: "",
|
|
3562
3562
|
message_id: "",
|
|
3563
|
-
code:
|
|
3563
|
+
code: 0,
|
|
3564
3564
|
sender_id: "",
|
|
3565
3565
|
username: "",
|
|
3566
3566
|
avatar: "",
|
|
@@ -3597,8 +3597,8 @@ var ChannelMessage = {
|
|
|
3597
3597
|
if (message.message_id !== "") {
|
|
3598
3598
|
writer.uint32(26).string(message.message_id);
|
|
3599
3599
|
}
|
|
3600
|
-
if (message.code !==
|
|
3601
|
-
|
|
3600
|
+
if (message.code !== 0) {
|
|
3601
|
+
writer.uint32(32).int32(message.code);
|
|
3602
3602
|
}
|
|
3603
3603
|
if (message.sender_id !== "") {
|
|
3604
3604
|
writer.uint32(42).string(message.sender_id);
|
|
@@ -3697,10 +3697,10 @@ var ChannelMessage = {
|
|
|
3697
3697
|
message.message_id = reader.string();
|
|
3698
3698
|
continue;
|
|
3699
3699
|
case 4:
|
|
3700
|
-
if (tag !==
|
|
3700
|
+
if (tag !== 32) {
|
|
3701
3701
|
break;
|
|
3702
3702
|
}
|
|
3703
|
-
message.code =
|
|
3703
|
+
message.code = reader.int32();
|
|
3704
3704
|
continue;
|
|
3705
3705
|
case 5:
|
|
3706
3706
|
if (tag !== 42) {
|
|
@@ -3853,7 +3853,7 @@ var ChannelMessage = {
|
|
|
3853
3853
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3854
3854
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3855
3855
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
3856
|
-
code: isSet3(object.code) ? Number(object.code) :
|
|
3856
|
+
code: isSet3(object.code) ? globalThis.Number(object.code) : 0,
|
|
3857
3857
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
3858
3858
|
username: isSet3(object.username) ? globalThis.String(object.username) : "",
|
|
3859
3859
|
avatar: isSet3(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
@@ -3890,8 +3890,8 @@ var ChannelMessage = {
|
|
|
3890
3890
|
if (message.message_id !== "") {
|
|
3891
3891
|
obj.message_id = message.message_id;
|
|
3892
3892
|
}
|
|
3893
|
-
if (message.code !==
|
|
3894
|
-
obj.code = message.code;
|
|
3893
|
+
if (message.code !== 0) {
|
|
3894
|
+
obj.code = Math.round(message.code);
|
|
3895
3895
|
}
|
|
3896
3896
|
if (message.sender_id !== "") {
|
|
3897
3897
|
obj.sender_id = message.sender_id;
|
|
@@ -3973,7 +3973,7 @@ var ChannelMessage = {
|
|
|
3973
3973
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3974
3974
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
3975
3975
|
message.message_id = (_c = object.message_id) != null ? _c : "";
|
|
3976
|
-
message.code = (_d = object.code) != null ? _d :
|
|
3976
|
+
message.code = (_d = object.code) != null ? _d : 0;
|
|
3977
3977
|
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
3978
3978
|
message.username = (_f = object.username) != null ? _f : "";
|
|
3979
3979
|
message.avatar = (_g = object.avatar) != null ? _g : "";
|
|
@@ -6834,7 +6834,7 @@ function createBaseChannelDescription() {
|
|
|
6834
6834
|
channel_id: "",
|
|
6835
6835
|
category_id: "",
|
|
6836
6836
|
category_name: "",
|
|
6837
|
-
type:
|
|
6837
|
+
type: 0,
|
|
6838
6838
|
creator_id: "",
|
|
6839
6839
|
channel_label: "",
|
|
6840
6840
|
channel_private: 0,
|
|
@@ -6879,8 +6879,8 @@ var ChannelDescription = {
|
|
|
6879
6879
|
if (message.category_name !== "") {
|
|
6880
6880
|
writer.uint32(42).string(message.category_name);
|
|
6881
6881
|
}
|
|
6882
|
-
if (message.type !==
|
|
6883
|
-
|
|
6882
|
+
if (message.type !== 0) {
|
|
6883
|
+
writer.uint32(48).int32(message.type);
|
|
6884
6884
|
}
|
|
6885
6885
|
if (message.creator_id !== "") {
|
|
6886
6886
|
writer.uint32(58).string(message.creator_id);
|
|
@@ -6999,10 +6999,10 @@ var ChannelDescription = {
|
|
|
6999
6999
|
message.category_name = reader.string();
|
|
7000
7000
|
continue;
|
|
7001
7001
|
case 6:
|
|
7002
|
-
if (tag !==
|
|
7002
|
+
if (tag !== 48) {
|
|
7003
7003
|
break;
|
|
7004
7004
|
}
|
|
7005
|
-
message.type =
|
|
7005
|
+
message.type = reader.int32();
|
|
7006
7006
|
continue;
|
|
7007
7007
|
case 7:
|
|
7008
7008
|
if (tag !== 58) {
|
|
@@ -7176,7 +7176,7 @@ var ChannelDescription = {
|
|
|
7176
7176
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7177
7177
|
category_id: isSet3(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
7178
7178
|
category_name: isSet3(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
7179
|
-
type: isSet3(object.type) ? Number(object.type) :
|
|
7179
|
+
type: isSet3(object.type) ? globalThis.Number(object.type) : 0,
|
|
7180
7180
|
creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7181
7181
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
7182
7182
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
@@ -7222,8 +7222,8 @@ var ChannelDescription = {
|
|
|
7222
7222
|
if (message.category_name !== "") {
|
|
7223
7223
|
obj.category_name = message.category_name;
|
|
7224
7224
|
}
|
|
7225
|
-
if (message.type !==
|
|
7226
|
-
obj.type = message.type;
|
|
7225
|
+
if (message.type !== 0) {
|
|
7226
|
+
obj.type = Math.round(message.type);
|
|
7227
7227
|
}
|
|
7228
7228
|
if (message.creator_id !== "") {
|
|
7229
7229
|
obj.creator_id = message.creator_id;
|
|
@@ -7313,7 +7313,7 @@ var ChannelDescription = {
|
|
|
7313
7313
|
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
7314
7314
|
message.category_id = (_d = object.category_id) != null ? _d : "";
|
|
7315
7315
|
message.category_name = (_e = object.category_name) != null ? _e : "";
|
|
7316
|
-
message.type = (_f = object.type) != null ? _f :
|
|
7316
|
+
message.type = (_f = object.type) != null ? _f : 0;
|
|
7317
7317
|
message.creator_id = (_g = object.creator_id) != null ? _g : "";
|
|
7318
7318
|
message.channel_label = (_h = object.channel_label) != null ? _h : "";
|
|
7319
7319
|
message.channel_private = (_i = object.channel_private) != null ? _i : 0;
|