mezon-js-protobuf 1.8.24 → 1.8.26
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
CHANGED
|
@@ -1421,7 +1421,13 @@ export interface UpdateClanDescRequest {
|
|
|
1421
1421
|
| boolean
|
|
1422
1422
|
| undefined;
|
|
1423
1423
|
/** Community banner. */
|
|
1424
|
-
community_banner:
|
|
1424
|
+
community_banner:
|
|
1425
|
+
| string
|
|
1426
|
+
| undefined;
|
|
1427
|
+
/** string description */
|
|
1428
|
+
description: string;
|
|
1429
|
+
/** about */
|
|
1430
|
+
about: string;
|
|
1425
1431
|
}
|
|
1426
1432
|
|
|
1427
1433
|
/** Delete a clan the user has access to. */
|
|
@@ -12586,6 +12592,8 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
|
|
|
12586
12592
|
onboarding_banner: undefined,
|
|
12587
12593
|
is_community: undefined,
|
|
12588
12594
|
community_banner: undefined,
|
|
12595
|
+
description: "",
|
|
12596
|
+
about: "",
|
|
12589
12597
|
};
|
|
12590
12598
|
}
|
|
12591
12599
|
|
|
@@ -12621,6 +12629,12 @@ export const UpdateClanDescRequest = {
|
|
|
12621
12629
|
if (message.community_banner !== undefined) {
|
|
12622
12630
|
StringValue.encode({ value: message.community_banner! }, writer.uint32(82).fork()).ldelim();
|
|
12623
12631
|
}
|
|
12632
|
+
if (message.description !== "") {
|
|
12633
|
+
writer.uint32(90).string(message.description);
|
|
12634
|
+
}
|
|
12635
|
+
if (message.about !== "") {
|
|
12636
|
+
writer.uint32(98).string(message.about);
|
|
12637
|
+
}
|
|
12624
12638
|
return writer;
|
|
12625
12639
|
},
|
|
12626
12640
|
|
|
@@ -12701,6 +12715,20 @@ export const UpdateClanDescRequest = {
|
|
|
12701
12715
|
|
|
12702
12716
|
message.community_banner = StringValue.decode(reader, reader.uint32()).value;
|
|
12703
12717
|
continue;
|
|
12718
|
+
case 11:
|
|
12719
|
+
if (tag !== 90) {
|
|
12720
|
+
break;
|
|
12721
|
+
}
|
|
12722
|
+
|
|
12723
|
+
message.description = reader.string();
|
|
12724
|
+
continue;
|
|
12725
|
+
case 12:
|
|
12726
|
+
if (tag !== 98) {
|
|
12727
|
+
break;
|
|
12728
|
+
}
|
|
12729
|
+
|
|
12730
|
+
message.about = reader.string();
|
|
12731
|
+
continue;
|
|
12704
12732
|
}
|
|
12705
12733
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12706
12734
|
break;
|
|
@@ -12722,6 +12750,8 @@ export const UpdateClanDescRequest = {
|
|
|
12722
12750
|
onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
|
|
12723
12751
|
is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
|
|
12724
12752
|
community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
|
|
12753
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
12754
|
+
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
12725
12755
|
};
|
|
12726
12756
|
},
|
|
12727
12757
|
|
|
@@ -12757,6 +12787,12 @@ export const UpdateClanDescRequest = {
|
|
|
12757
12787
|
if (message.community_banner !== undefined) {
|
|
12758
12788
|
obj.community_banner = message.community_banner;
|
|
12759
12789
|
}
|
|
12790
|
+
if (message.description !== "") {
|
|
12791
|
+
obj.description = message.description;
|
|
12792
|
+
}
|
|
12793
|
+
if (message.about !== "") {
|
|
12794
|
+
obj.about = message.about;
|
|
12795
|
+
}
|
|
12760
12796
|
return obj;
|
|
12761
12797
|
},
|
|
12762
12798
|
|
|
@@ -12775,6 +12811,8 @@ export const UpdateClanDescRequest = {
|
|
|
12775
12811
|
message.onboarding_banner = object.onboarding_banner ?? undefined;
|
|
12776
12812
|
message.is_community = object.is_community ?? undefined;
|
|
12777
12813
|
message.community_banner = object.community_banner ?? undefined;
|
|
12814
|
+
message.description = object.description ?? "";
|
|
12815
|
+
message.about = object.about ?? "";
|
|
12778
12816
|
return message;
|
|
12779
12817
|
},
|
|
12780
12818
|
};
|
|
@@ -1019,6 +1019,10 @@ export interface UpdateClanDescRequest {
|
|
|
1019
1019
|
is_community: boolean | undefined;
|
|
1020
1020
|
/** Community banner. */
|
|
1021
1021
|
community_banner: string | undefined;
|
|
1022
|
+
/** string description */
|
|
1023
|
+
description: string;
|
|
1024
|
+
/** about */
|
|
1025
|
+
about: string;
|
|
1022
1026
|
}
|
|
1023
1027
|
/** Delete a clan the user has access to. */
|
|
1024
1028
|
export interface DeleteClanDescRequest {
|
|
@@ -9866,6 +9870,8 @@ export declare const UpdateClanDescRequest: {
|
|
|
9866
9870
|
onboarding_banner?: string | undefined;
|
|
9867
9871
|
is_community?: boolean | undefined;
|
|
9868
9872
|
community_banner?: string | undefined;
|
|
9873
|
+
description?: string | undefined;
|
|
9874
|
+
about?: string | undefined;
|
|
9869
9875
|
} & {
|
|
9870
9876
|
clan_id?: string | undefined;
|
|
9871
9877
|
clan_name?: string | undefined;
|
|
@@ -9877,6 +9883,8 @@ export declare const UpdateClanDescRequest: {
|
|
|
9877
9883
|
onboarding_banner?: string | undefined;
|
|
9878
9884
|
is_community?: boolean | undefined;
|
|
9879
9885
|
community_banner?: string | undefined;
|
|
9886
|
+
description?: string | undefined;
|
|
9887
|
+
about?: string | undefined;
|
|
9880
9888
|
} & { [K in Exclude<keyof I, keyof UpdateClanDescRequest>]: never; }>(base?: I | undefined): UpdateClanDescRequest;
|
|
9881
9889
|
fromPartial<I_1 extends {
|
|
9882
9890
|
clan_id?: string | undefined;
|
|
@@ -9889,6 +9897,8 @@ export declare const UpdateClanDescRequest: {
|
|
|
9889
9897
|
onboarding_banner?: string | undefined;
|
|
9890
9898
|
is_community?: boolean | undefined;
|
|
9891
9899
|
community_banner?: string | undefined;
|
|
9900
|
+
description?: string | undefined;
|
|
9901
|
+
about?: string | undefined;
|
|
9892
9902
|
} & {
|
|
9893
9903
|
clan_id?: string | undefined;
|
|
9894
9904
|
clan_name?: string | undefined;
|
|
@@ -9900,6 +9910,8 @@ export declare const UpdateClanDescRequest: {
|
|
|
9900
9910
|
onboarding_banner?: string | undefined;
|
|
9901
9911
|
is_community?: boolean | undefined;
|
|
9902
9912
|
community_banner?: string | undefined;
|
|
9913
|
+
description?: string | undefined;
|
|
9914
|
+
about?: string | undefined;
|
|
9903
9915
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateClanDescRequest>]: never; }>(object: I_1): UpdateClanDescRequest;
|
|
9904
9916
|
};
|
|
9905
9917
|
export declare const DeleteClanDescRequest: {
|
|
@@ -436,6 +436,8 @@ export interface ChannelMessageUpdate {
|
|
|
436
436
|
topic_id: string;
|
|
437
437
|
/** update message topic */
|
|
438
438
|
is_update_msg_topic: boolean;
|
|
439
|
+
/** old mentions */
|
|
440
|
+
old_mentions: string;
|
|
439
441
|
}
|
|
440
442
|
/** Remove a message previously sent to a realtime channel. */
|
|
441
443
|
export interface ChannelMessageRemove {
|
|
@@ -453,6 +455,10 @@ export interface ChannelMessageRemove {
|
|
|
453
455
|
has_attachment: boolean;
|
|
454
456
|
/** */
|
|
455
457
|
topic_id: string;
|
|
458
|
+
/** Message mention */
|
|
459
|
+
mentions: string;
|
|
460
|
+
/** Message reference */
|
|
461
|
+
references: string;
|
|
456
462
|
}
|
|
457
463
|
/** A set of joins and leaves on a particular channel. */
|
|
458
464
|
export interface ChannelPresenceEvent {
|
|
@@ -1384,6 +1390,7 @@ export declare const Envelope: {
|
|
|
1384
1390
|
hide_editted?: boolean | undefined;
|
|
1385
1391
|
topic_id?: string | undefined;
|
|
1386
1392
|
is_update_msg_topic?: boolean | undefined;
|
|
1393
|
+
old_mentions?: string | undefined;
|
|
1387
1394
|
} | undefined;
|
|
1388
1395
|
channel_message_remove?: {
|
|
1389
1396
|
clan_id?: string | undefined;
|
|
@@ -1393,6 +1400,8 @@ export declare const Envelope: {
|
|
|
1393
1400
|
is_public?: boolean | undefined;
|
|
1394
1401
|
has_attachment?: boolean | undefined;
|
|
1395
1402
|
topic_id?: string | undefined;
|
|
1403
|
+
mentions?: string | undefined;
|
|
1404
|
+
references?: string | undefined;
|
|
1396
1405
|
} | undefined;
|
|
1397
1406
|
channel_presence_event?: {
|
|
1398
1407
|
channel_id?: string | undefined;
|
|
@@ -3591,6 +3600,7 @@ export declare const Envelope: {
|
|
|
3591
3600
|
hide_editted?: boolean | undefined;
|
|
3592
3601
|
topic_id?: string | undefined;
|
|
3593
3602
|
is_update_msg_topic?: boolean | undefined;
|
|
3603
|
+
old_mentions?: string | undefined;
|
|
3594
3604
|
} & {
|
|
3595
3605
|
clan_id?: string | undefined;
|
|
3596
3606
|
channel_id?: string | undefined;
|
|
@@ -3671,6 +3681,7 @@ export declare const Envelope: {
|
|
|
3671
3681
|
hide_editted?: boolean | undefined;
|
|
3672
3682
|
topic_id?: string | undefined;
|
|
3673
3683
|
is_update_msg_topic?: boolean | undefined;
|
|
3684
|
+
old_mentions?: string | undefined;
|
|
3674
3685
|
} & { [K_20 in Exclude<keyof I["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
|
|
3675
3686
|
channel_message_remove?: ({
|
|
3676
3687
|
clan_id?: string | undefined;
|
|
@@ -3680,6 +3691,8 @@ export declare const Envelope: {
|
|
|
3680
3691
|
is_public?: boolean | undefined;
|
|
3681
3692
|
has_attachment?: boolean | undefined;
|
|
3682
3693
|
topic_id?: string | undefined;
|
|
3694
|
+
mentions?: string | undefined;
|
|
3695
|
+
references?: string | undefined;
|
|
3683
3696
|
} & {
|
|
3684
3697
|
clan_id?: string | undefined;
|
|
3685
3698
|
channel_id?: string | undefined;
|
|
@@ -3688,6 +3701,8 @@ export declare const Envelope: {
|
|
|
3688
3701
|
is_public?: boolean | undefined;
|
|
3689
3702
|
has_attachment?: boolean | undefined;
|
|
3690
3703
|
topic_id?: string | undefined;
|
|
3704
|
+
mentions?: string | undefined;
|
|
3705
|
+
references?: string | undefined;
|
|
3691
3706
|
} & { [K_21 in Exclude<keyof I["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
|
|
3692
3707
|
channel_presence_event?: ({
|
|
3693
3708
|
channel_id?: string | undefined;
|
|
@@ -11215,6 +11230,7 @@ export declare const Envelope: {
|
|
|
11215
11230
|
hide_editted?: boolean | undefined;
|
|
11216
11231
|
topic_id?: string | undefined;
|
|
11217
11232
|
is_update_msg_topic?: boolean | undefined;
|
|
11233
|
+
old_mentions?: string | undefined;
|
|
11218
11234
|
} | undefined;
|
|
11219
11235
|
channel_message_remove?: {
|
|
11220
11236
|
clan_id?: string | undefined;
|
|
@@ -11224,6 +11240,8 @@ export declare const Envelope: {
|
|
|
11224
11240
|
is_public?: boolean | undefined;
|
|
11225
11241
|
has_attachment?: boolean | undefined;
|
|
11226
11242
|
topic_id?: string | undefined;
|
|
11243
|
+
mentions?: string | undefined;
|
|
11244
|
+
references?: string | undefined;
|
|
11227
11245
|
} | undefined;
|
|
11228
11246
|
channel_presence_event?: {
|
|
11229
11247
|
channel_id?: string | undefined;
|
|
@@ -13422,6 +13440,7 @@ export declare const Envelope: {
|
|
|
13422
13440
|
hide_editted?: boolean | undefined;
|
|
13423
13441
|
topic_id?: string | undefined;
|
|
13424
13442
|
is_update_msg_topic?: boolean | undefined;
|
|
13443
|
+
old_mentions?: string | undefined;
|
|
13425
13444
|
} & {
|
|
13426
13445
|
clan_id?: string | undefined;
|
|
13427
13446
|
channel_id?: string | undefined;
|
|
@@ -13502,6 +13521,7 @@ export declare const Envelope: {
|
|
|
13502
13521
|
hide_editted?: boolean | undefined;
|
|
13503
13522
|
topic_id?: string | undefined;
|
|
13504
13523
|
is_update_msg_topic?: boolean | undefined;
|
|
13524
|
+
old_mentions?: string | undefined;
|
|
13505
13525
|
} & { [K_413 in Exclude<keyof I_1["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
|
|
13506
13526
|
channel_message_remove?: ({
|
|
13507
13527
|
clan_id?: string | undefined;
|
|
@@ -13511,6 +13531,8 @@ export declare const Envelope: {
|
|
|
13511
13531
|
is_public?: boolean | undefined;
|
|
13512
13532
|
has_attachment?: boolean | undefined;
|
|
13513
13533
|
topic_id?: string | undefined;
|
|
13534
|
+
mentions?: string | undefined;
|
|
13535
|
+
references?: string | undefined;
|
|
13514
13536
|
} & {
|
|
13515
13537
|
clan_id?: string | undefined;
|
|
13516
13538
|
channel_id?: string | undefined;
|
|
@@ -13519,6 +13541,8 @@ export declare const Envelope: {
|
|
|
13519
13541
|
is_public?: boolean | undefined;
|
|
13520
13542
|
has_attachment?: boolean | undefined;
|
|
13521
13543
|
topic_id?: string | undefined;
|
|
13544
|
+
mentions?: string | undefined;
|
|
13545
|
+
references?: string | undefined;
|
|
13522
13546
|
} & { [K_414 in Exclude<keyof I_1["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
|
|
13523
13547
|
channel_presence_event?: ({
|
|
13524
13548
|
channel_id?: string | undefined;
|
|
@@ -23062,6 +23086,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23062
23086
|
hide_editted?: boolean | undefined;
|
|
23063
23087
|
topic_id?: string | undefined;
|
|
23064
23088
|
is_update_msg_topic?: boolean | undefined;
|
|
23089
|
+
old_mentions?: string | undefined;
|
|
23065
23090
|
} & {
|
|
23066
23091
|
clan_id?: string | undefined;
|
|
23067
23092
|
channel_id?: string | undefined;
|
|
@@ -23142,6 +23167,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23142
23167
|
hide_editted?: boolean | undefined;
|
|
23143
23168
|
topic_id?: string | undefined;
|
|
23144
23169
|
is_update_msg_topic?: boolean | undefined;
|
|
23170
|
+
old_mentions?: string | undefined;
|
|
23145
23171
|
} & { [K_4 in Exclude<keyof I, keyof ChannelMessageUpdate>]: never; }>(base?: I | undefined): ChannelMessageUpdate;
|
|
23146
23172
|
fromPartial<I_1 extends {
|
|
23147
23173
|
clan_id?: string | undefined;
|
|
@@ -23172,6 +23198,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23172
23198
|
hide_editted?: boolean | undefined;
|
|
23173
23199
|
topic_id?: string | undefined;
|
|
23174
23200
|
is_update_msg_topic?: boolean | undefined;
|
|
23201
|
+
old_mentions?: string | undefined;
|
|
23175
23202
|
} & {
|
|
23176
23203
|
clan_id?: string | undefined;
|
|
23177
23204
|
channel_id?: string | undefined;
|
|
@@ -23252,6 +23279,7 @@ export declare const ChannelMessageUpdate: {
|
|
|
23252
23279
|
hide_editted?: boolean | undefined;
|
|
23253
23280
|
topic_id?: string | undefined;
|
|
23254
23281
|
is_update_msg_topic?: boolean | undefined;
|
|
23282
|
+
old_mentions?: string | undefined;
|
|
23255
23283
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelMessageUpdate>]: never; }>(object: I_1): ChannelMessageUpdate;
|
|
23256
23284
|
};
|
|
23257
23285
|
export declare const ChannelMessageRemove: {
|
|
@@ -23267,6 +23295,8 @@ export declare const ChannelMessageRemove: {
|
|
|
23267
23295
|
is_public?: boolean | undefined;
|
|
23268
23296
|
has_attachment?: boolean | undefined;
|
|
23269
23297
|
topic_id?: string | undefined;
|
|
23298
|
+
mentions?: string | undefined;
|
|
23299
|
+
references?: string | undefined;
|
|
23270
23300
|
} & {
|
|
23271
23301
|
clan_id?: string | undefined;
|
|
23272
23302
|
channel_id?: string | undefined;
|
|
@@ -23275,6 +23305,8 @@ export declare const ChannelMessageRemove: {
|
|
|
23275
23305
|
is_public?: boolean | undefined;
|
|
23276
23306
|
has_attachment?: boolean | undefined;
|
|
23277
23307
|
topic_id?: string | undefined;
|
|
23308
|
+
mentions?: string | undefined;
|
|
23309
|
+
references?: string | undefined;
|
|
23278
23310
|
} & { [K in Exclude<keyof I, keyof ChannelMessageRemove>]: never; }>(base?: I | undefined): ChannelMessageRemove;
|
|
23279
23311
|
fromPartial<I_1 extends {
|
|
23280
23312
|
clan_id?: string | undefined;
|
|
@@ -23284,6 +23316,8 @@ export declare const ChannelMessageRemove: {
|
|
|
23284
23316
|
is_public?: boolean | undefined;
|
|
23285
23317
|
has_attachment?: boolean | undefined;
|
|
23286
23318
|
topic_id?: string | undefined;
|
|
23319
|
+
mentions?: string | undefined;
|
|
23320
|
+
references?: string | undefined;
|
|
23287
23321
|
} & {
|
|
23288
23322
|
clan_id?: string | undefined;
|
|
23289
23323
|
channel_id?: string | undefined;
|
|
@@ -23292,6 +23326,8 @@ export declare const ChannelMessageRemove: {
|
|
|
23292
23326
|
is_public?: boolean | undefined;
|
|
23293
23327
|
has_attachment?: boolean | undefined;
|
|
23294
23328
|
topic_id?: string | undefined;
|
|
23329
|
+
mentions?: string | undefined;
|
|
23330
|
+
references?: string | undefined;
|
|
23295
23331
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelMessageRemove>]: never; }>(object: I_1): ChannelMessageRemove;
|
|
23296
23332
|
};
|
|
23297
23333
|
export declare const ChannelPresenceEvent: {
|
|
@@ -17154,7 +17154,8 @@ function createBaseChannelMessageUpdate() {
|
|
|
17154
17154
|
is_public: false,
|
|
17155
17155
|
hide_editted: false,
|
|
17156
17156
|
topic_id: "",
|
|
17157
|
-
is_update_msg_topic: false
|
|
17157
|
+
is_update_msg_topic: false,
|
|
17158
|
+
old_mentions: ""
|
|
17158
17159
|
};
|
|
17159
17160
|
}
|
|
17160
17161
|
var ChannelMessageUpdate = {
|
|
@@ -17192,6 +17193,9 @@ var ChannelMessageUpdate = {
|
|
|
17192
17193
|
if (message.is_update_msg_topic !== false) {
|
|
17193
17194
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
17194
17195
|
}
|
|
17196
|
+
if (message.old_mentions !== "") {
|
|
17197
|
+
writer.uint32(98).string(message.old_mentions);
|
|
17198
|
+
}
|
|
17195
17199
|
return writer;
|
|
17196
17200
|
},
|
|
17197
17201
|
decode(input, length) {
|
|
@@ -17267,6 +17271,12 @@ var ChannelMessageUpdate = {
|
|
|
17267
17271
|
}
|
|
17268
17272
|
message.is_update_msg_topic = reader.bool();
|
|
17269
17273
|
continue;
|
|
17274
|
+
case 12:
|
|
17275
|
+
if (tag !== 98) {
|
|
17276
|
+
break;
|
|
17277
|
+
}
|
|
17278
|
+
message.old_mentions = reader.string();
|
|
17279
|
+
continue;
|
|
17270
17280
|
}
|
|
17271
17281
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17272
17282
|
break;
|
|
@@ -17287,7 +17297,8 @@ var ChannelMessageUpdate = {
|
|
|
17287
17297
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17288
17298
|
hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
17289
17299
|
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17290
|
-
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
|
|
17300
|
+
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
17301
|
+
old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
|
|
17291
17302
|
};
|
|
17292
17303
|
},
|
|
17293
17304
|
toJSON(message) {
|
|
@@ -17326,13 +17337,16 @@ var ChannelMessageUpdate = {
|
|
|
17326
17337
|
if (message.is_update_msg_topic !== false) {
|
|
17327
17338
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
17328
17339
|
}
|
|
17340
|
+
if (message.old_mentions !== "") {
|
|
17341
|
+
obj.old_mentions = message.old_mentions;
|
|
17342
|
+
}
|
|
17329
17343
|
return obj;
|
|
17330
17344
|
},
|
|
17331
17345
|
create(base) {
|
|
17332
17346
|
return ChannelMessageUpdate.fromPartial(base != null ? base : {});
|
|
17333
17347
|
},
|
|
17334
17348
|
fromPartial(object) {
|
|
17335
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
17349
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
17336
17350
|
const message = createBaseChannelMessageUpdate();
|
|
17337
17351
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17338
17352
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17345,6 +17359,7 @@ var ChannelMessageUpdate = {
|
|
|
17345
17359
|
message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
|
|
17346
17360
|
message.topic_id = (_j = object.topic_id) != null ? _j : "";
|
|
17347
17361
|
message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
|
|
17362
|
+
message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
|
|
17348
17363
|
return message;
|
|
17349
17364
|
}
|
|
17350
17365
|
};
|
|
@@ -17356,7 +17371,9 @@ function createBaseChannelMessageRemove() {
|
|
|
17356
17371
|
mode: 0,
|
|
17357
17372
|
is_public: false,
|
|
17358
17373
|
has_attachment: false,
|
|
17359
|
-
topic_id: ""
|
|
17374
|
+
topic_id: "",
|
|
17375
|
+
mentions: "",
|
|
17376
|
+
references: ""
|
|
17360
17377
|
};
|
|
17361
17378
|
}
|
|
17362
17379
|
var ChannelMessageRemove = {
|
|
@@ -17382,6 +17399,12 @@ var ChannelMessageRemove = {
|
|
|
17382
17399
|
if (message.topic_id !== "") {
|
|
17383
17400
|
writer.uint32(58).string(message.topic_id);
|
|
17384
17401
|
}
|
|
17402
|
+
if (message.mentions !== "") {
|
|
17403
|
+
writer.uint32(66).string(message.mentions);
|
|
17404
|
+
}
|
|
17405
|
+
if (message.references !== "") {
|
|
17406
|
+
writer.uint32(74).string(message.references);
|
|
17407
|
+
}
|
|
17385
17408
|
return writer;
|
|
17386
17409
|
},
|
|
17387
17410
|
decode(input, length) {
|
|
@@ -17433,6 +17456,18 @@ var ChannelMessageRemove = {
|
|
|
17433
17456
|
}
|
|
17434
17457
|
message.topic_id = reader.string();
|
|
17435
17458
|
continue;
|
|
17459
|
+
case 8:
|
|
17460
|
+
if (tag !== 66) {
|
|
17461
|
+
break;
|
|
17462
|
+
}
|
|
17463
|
+
message.mentions = reader.string();
|
|
17464
|
+
continue;
|
|
17465
|
+
case 9:
|
|
17466
|
+
if (tag !== 74) {
|
|
17467
|
+
break;
|
|
17468
|
+
}
|
|
17469
|
+
message.references = reader.string();
|
|
17470
|
+
continue;
|
|
17436
17471
|
}
|
|
17437
17472
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17438
17473
|
break;
|
|
@@ -17449,7 +17484,9 @@ var ChannelMessageRemove = {
|
|
|
17449
17484
|
mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
17450
17485
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17451
17486
|
has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
|
|
17452
|
-
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
17487
|
+
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17488
|
+
mentions: isSet4(object.mentions) ? globalThis.String(object.mentions) : "",
|
|
17489
|
+
references: isSet4(object.references) ? globalThis.String(object.references) : ""
|
|
17453
17490
|
};
|
|
17454
17491
|
},
|
|
17455
17492
|
toJSON(message) {
|
|
@@ -17475,13 +17512,19 @@ var ChannelMessageRemove = {
|
|
|
17475
17512
|
if (message.topic_id !== "") {
|
|
17476
17513
|
obj.topic_id = message.topic_id;
|
|
17477
17514
|
}
|
|
17515
|
+
if (message.mentions !== "") {
|
|
17516
|
+
obj.mentions = message.mentions;
|
|
17517
|
+
}
|
|
17518
|
+
if (message.references !== "") {
|
|
17519
|
+
obj.references = message.references;
|
|
17520
|
+
}
|
|
17478
17521
|
return obj;
|
|
17479
17522
|
},
|
|
17480
17523
|
create(base) {
|
|
17481
17524
|
return ChannelMessageRemove.fromPartial(base != null ? base : {});
|
|
17482
17525
|
},
|
|
17483
17526
|
fromPartial(object) {
|
|
17484
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
17527
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
17485
17528
|
const message = createBaseChannelMessageRemove();
|
|
17486
17529
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17487
17530
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17490,6 +17533,8 @@ var ChannelMessageRemove = {
|
|
|
17490
17533
|
message.is_public = (_e = object.is_public) != null ? _e : false;
|
|
17491
17534
|
message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
|
|
17492
17535
|
message.topic_id = (_g = object.topic_id) != null ? _g : "";
|
|
17536
|
+
message.mentions = (_h = object.mentions) != null ? _h : "";
|
|
17537
|
+
message.references = (_i = object.references) != null ? _i : "";
|
|
17493
17538
|
return message;
|
|
17494
17539
|
}
|
|
17495
17540
|
};
|
|
@@ -17141,7 +17141,8 @@ function createBaseChannelMessageUpdate() {
|
|
|
17141
17141
|
is_public: false,
|
|
17142
17142
|
hide_editted: false,
|
|
17143
17143
|
topic_id: "",
|
|
17144
|
-
is_update_msg_topic: false
|
|
17144
|
+
is_update_msg_topic: false,
|
|
17145
|
+
old_mentions: ""
|
|
17145
17146
|
};
|
|
17146
17147
|
}
|
|
17147
17148
|
var ChannelMessageUpdate = {
|
|
@@ -17179,6 +17180,9 @@ var ChannelMessageUpdate = {
|
|
|
17179
17180
|
if (message.is_update_msg_topic !== false) {
|
|
17180
17181
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
17181
17182
|
}
|
|
17183
|
+
if (message.old_mentions !== "") {
|
|
17184
|
+
writer.uint32(98).string(message.old_mentions);
|
|
17185
|
+
}
|
|
17182
17186
|
return writer;
|
|
17183
17187
|
},
|
|
17184
17188
|
decode(input, length) {
|
|
@@ -17254,6 +17258,12 @@ var ChannelMessageUpdate = {
|
|
|
17254
17258
|
}
|
|
17255
17259
|
message.is_update_msg_topic = reader.bool();
|
|
17256
17260
|
continue;
|
|
17261
|
+
case 12:
|
|
17262
|
+
if (tag !== 98) {
|
|
17263
|
+
break;
|
|
17264
|
+
}
|
|
17265
|
+
message.old_mentions = reader.string();
|
|
17266
|
+
continue;
|
|
17257
17267
|
}
|
|
17258
17268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17259
17269
|
break;
|
|
@@ -17274,7 +17284,8 @@ var ChannelMessageUpdate = {
|
|
|
17274
17284
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17275
17285
|
hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
17276
17286
|
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17277
|
-
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
|
|
17287
|
+
is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
17288
|
+
old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
|
|
17278
17289
|
};
|
|
17279
17290
|
},
|
|
17280
17291
|
toJSON(message) {
|
|
@@ -17313,13 +17324,16 @@ var ChannelMessageUpdate = {
|
|
|
17313
17324
|
if (message.is_update_msg_topic !== false) {
|
|
17314
17325
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
17315
17326
|
}
|
|
17327
|
+
if (message.old_mentions !== "") {
|
|
17328
|
+
obj.old_mentions = message.old_mentions;
|
|
17329
|
+
}
|
|
17316
17330
|
return obj;
|
|
17317
17331
|
},
|
|
17318
17332
|
create(base) {
|
|
17319
17333
|
return ChannelMessageUpdate.fromPartial(base != null ? base : {});
|
|
17320
17334
|
},
|
|
17321
17335
|
fromPartial(object) {
|
|
17322
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
17336
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
17323
17337
|
const message = createBaseChannelMessageUpdate();
|
|
17324
17338
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17325
17339
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17332,6 +17346,7 @@ var ChannelMessageUpdate = {
|
|
|
17332
17346
|
message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
|
|
17333
17347
|
message.topic_id = (_j = object.topic_id) != null ? _j : "";
|
|
17334
17348
|
message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
|
|
17349
|
+
message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
|
|
17335
17350
|
return message;
|
|
17336
17351
|
}
|
|
17337
17352
|
};
|
|
@@ -17343,7 +17358,9 @@ function createBaseChannelMessageRemove() {
|
|
|
17343
17358
|
mode: 0,
|
|
17344
17359
|
is_public: false,
|
|
17345
17360
|
has_attachment: false,
|
|
17346
|
-
topic_id: ""
|
|
17361
|
+
topic_id: "",
|
|
17362
|
+
mentions: "",
|
|
17363
|
+
references: ""
|
|
17347
17364
|
};
|
|
17348
17365
|
}
|
|
17349
17366
|
var ChannelMessageRemove = {
|
|
@@ -17369,6 +17386,12 @@ var ChannelMessageRemove = {
|
|
|
17369
17386
|
if (message.topic_id !== "") {
|
|
17370
17387
|
writer.uint32(58).string(message.topic_id);
|
|
17371
17388
|
}
|
|
17389
|
+
if (message.mentions !== "") {
|
|
17390
|
+
writer.uint32(66).string(message.mentions);
|
|
17391
|
+
}
|
|
17392
|
+
if (message.references !== "") {
|
|
17393
|
+
writer.uint32(74).string(message.references);
|
|
17394
|
+
}
|
|
17372
17395
|
return writer;
|
|
17373
17396
|
},
|
|
17374
17397
|
decode(input, length) {
|
|
@@ -17420,6 +17443,18 @@ var ChannelMessageRemove = {
|
|
|
17420
17443
|
}
|
|
17421
17444
|
message.topic_id = reader.string();
|
|
17422
17445
|
continue;
|
|
17446
|
+
case 8:
|
|
17447
|
+
if (tag !== 66) {
|
|
17448
|
+
break;
|
|
17449
|
+
}
|
|
17450
|
+
message.mentions = reader.string();
|
|
17451
|
+
continue;
|
|
17452
|
+
case 9:
|
|
17453
|
+
if (tag !== 74) {
|
|
17454
|
+
break;
|
|
17455
|
+
}
|
|
17456
|
+
message.references = reader.string();
|
|
17457
|
+
continue;
|
|
17423
17458
|
}
|
|
17424
17459
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17425
17460
|
break;
|
|
@@ -17436,7 +17471,9 @@ var ChannelMessageRemove = {
|
|
|
17436
17471
|
mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
17437
17472
|
is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
17438
17473
|
has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
|
|
17439
|
-
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
17474
|
+
topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
17475
|
+
mentions: isSet4(object.mentions) ? globalThis.String(object.mentions) : "",
|
|
17476
|
+
references: isSet4(object.references) ? globalThis.String(object.references) : ""
|
|
17440
17477
|
};
|
|
17441
17478
|
},
|
|
17442
17479
|
toJSON(message) {
|
|
@@ -17462,13 +17499,19 @@ var ChannelMessageRemove = {
|
|
|
17462
17499
|
if (message.topic_id !== "") {
|
|
17463
17500
|
obj.topic_id = message.topic_id;
|
|
17464
17501
|
}
|
|
17502
|
+
if (message.mentions !== "") {
|
|
17503
|
+
obj.mentions = message.mentions;
|
|
17504
|
+
}
|
|
17505
|
+
if (message.references !== "") {
|
|
17506
|
+
obj.references = message.references;
|
|
17507
|
+
}
|
|
17465
17508
|
return obj;
|
|
17466
17509
|
},
|
|
17467
17510
|
create(base) {
|
|
17468
17511
|
return ChannelMessageRemove.fromPartial(base != null ? base : {});
|
|
17469
17512
|
},
|
|
17470
17513
|
fromPartial(object) {
|
|
17471
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
17514
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
17472
17515
|
const message = createBaseChannelMessageRemove();
|
|
17473
17516
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
17474
17517
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
@@ -17477,6 +17520,8 @@ var ChannelMessageRemove = {
|
|
|
17477
17520
|
message.is_public = (_e = object.is_public) != null ? _e : false;
|
|
17478
17521
|
message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
|
|
17479
17522
|
message.topic_id = (_g = object.topic_id) != null ? _g : "";
|
|
17523
|
+
message.mentions = (_h = object.mentions) != null ? _h : "";
|
|
17524
|
+
message.references = (_i = object.references) != null ? _i : "";
|
|
17480
17525
|
return message;
|
|
17481
17526
|
}
|
|
17482
17527
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.26",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -725,6 +725,8 @@ export interface ChannelMessageUpdate {
|
|
|
725
725
|
topic_id: string;
|
|
726
726
|
/** update message topic */
|
|
727
727
|
is_update_msg_topic: boolean;
|
|
728
|
+
/** old mentions */
|
|
729
|
+
old_mentions: string;
|
|
728
730
|
}
|
|
729
731
|
|
|
730
732
|
/** Remove a message previously sent to a realtime channel. */
|
|
@@ -743,6 +745,10 @@ export interface ChannelMessageRemove {
|
|
|
743
745
|
has_attachment: boolean;
|
|
744
746
|
/** */
|
|
745
747
|
topic_id: string;
|
|
748
|
+
/** Message mention */
|
|
749
|
+
mentions: string;
|
|
750
|
+
/** Message reference */
|
|
751
|
+
references: string;
|
|
746
752
|
}
|
|
747
753
|
|
|
748
754
|
/** A set of joins and leaves on a particular channel. */
|
|
@@ -5905,6 +5911,7 @@ function createBaseChannelMessageUpdate(): ChannelMessageUpdate {
|
|
|
5905
5911
|
hide_editted: false,
|
|
5906
5912
|
topic_id: "",
|
|
5907
5913
|
is_update_msg_topic: false,
|
|
5914
|
+
old_mentions: "",
|
|
5908
5915
|
};
|
|
5909
5916
|
}
|
|
5910
5917
|
|
|
@@ -5943,6 +5950,9 @@ export const ChannelMessageUpdate = {
|
|
|
5943
5950
|
if (message.is_update_msg_topic !== false) {
|
|
5944
5951
|
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
5945
5952
|
}
|
|
5953
|
+
if (message.old_mentions !== "") {
|
|
5954
|
+
writer.uint32(98).string(message.old_mentions);
|
|
5955
|
+
}
|
|
5946
5956
|
return writer;
|
|
5947
5957
|
},
|
|
5948
5958
|
|
|
@@ -6030,6 +6040,13 @@ export const ChannelMessageUpdate = {
|
|
|
6030
6040
|
|
|
6031
6041
|
message.is_update_msg_topic = reader.bool();
|
|
6032
6042
|
continue;
|
|
6043
|
+
case 12:
|
|
6044
|
+
if (tag !== 98) {
|
|
6045
|
+
break;
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
message.old_mentions = reader.string();
|
|
6049
|
+
continue;
|
|
6033
6050
|
}
|
|
6034
6051
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6035
6052
|
break;
|
|
@@ -6056,6 +6073,7 @@ export const ChannelMessageUpdate = {
|
|
|
6056
6073
|
hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
6057
6074
|
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
6058
6075
|
is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
6076
|
+
old_mentions: isSet(object.old_mentions) ? globalThis.String(object.old_mentions) : "",
|
|
6059
6077
|
};
|
|
6060
6078
|
},
|
|
6061
6079
|
|
|
@@ -6094,6 +6112,9 @@ export const ChannelMessageUpdate = {
|
|
|
6094
6112
|
if (message.is_update_msg_topic !== false) {
|
|
6095
6113
|
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
6096
6114
|
}
|
|
6115
|
+
if (message.old_mentions !== "") {
|
|
6116
|
+
obj.old_mentions = message.old_mentions;
|
|
6117
|
+
}
|
|
6097
6118
|
return obj;
|
|
6098
6119
|
},
|
|
6099
6120
|
|
|
@@ -6113,6 +6134,7 @@ export const ChannelMessageUpdate = {
|
|
|
6113
6134
|
message.hide_editted = object.hide_editted ?? false;
|
|
6114
6135
|
message.topic_id = object.topic_id ?? "";
|
|
6115
6136
|
message.is_update_msg_topic = object.is_update_msg_topic ?? false;
|
|
6137
|
+
message.old_mentions = object.old_mentions ?? "";
|
|
6116
6138
|
return message;
|
|
6117
6139
|
},
|
|
6118
6140
|
};
|
|
@@ -6126,6 +6148,8 @@ function createBaseChannelMessageRemove(): ChannelMessageRemove {
|
|
|
6126
6148
|
is_public: false,
|
|
6127
6149
|
has_attachment: false,
|
|
6128
6150
|
topic_id: "",
|
|
6151
|
+
mentions: "",
|
|
6152
|
+
references: "",
|
|
6129
6153
|
};
|
|
6130
6154
|
}
|
|
6131
6155
|
|
|
@@ -6152,6 +6176,12 @@ export const ChannelMessageRemove = {
|
|
|
6152
6176
|
if (message.topic_id !== "") {
|
|
6153
6177
|
writer.uint32(58).string(message.topic_id);
|
|
6154
6178
|
}
|
|
6179
|
+
if (message.mentions !== "") {
|
|
6180
|
+
writer.uint32(66).string(message.mentions);
|
|
6181
|
+
}
|
|
6182
|
+
if (message.references !== "") {
|
|
6183
|
+
writer.uint32(74).string(message.references);
|
|
6184
|
+
}
|
|
6155
6185
|
return writer;
|
|
6156
6186
|
},
|
|
6157
6187
|
|
|
@@ -6211,6 +6241,20 @@ export const ChannelMessageRemove = {
|
|
|
6211
6241
|
|
|
6212
6242
|
message.topic_id = reader.string();
|
|
6213
6243
|
continue;
|
|
6244
|
+
case 8:
|
|
6245
|
+
if (tag !== 66) {
|
|
6246
|
+
break;
|
|
6247
|
+
}
|
|
6248
|
+
|
|
6249
|
+
message.mentions = reader.string();
|
|
6250
|
+
continue;
|
|
6251
|
+
case 9:
|
|
6252
|
+
if (tag !== 74) {
|
|
6253
|
+
break;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6256
|
+
message.references = reader.string();
|
|
6257
|
+
continue;
|
|
6214
6258
|
}
|
|
6215
6259
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6216
6260
|
break;
|
|
@@ -6229,6 +6273,8 @@ export const ChannelMessageRemove = {
|
|
|
6229
6273
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
6230
6274
|
has_attachment: isSet(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
|
|
6231
6275
|
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
6276
|
+
mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
|
|
6277
|
+
references: isSet(object.references) ? globalThis.String(object.references) : "",
|
|
6232
6278
|
};
|
|
6233
6279
|
},
|
|
6234
6280
|
|
|
@@ -6255,6 +6301,12 @@ export const ChannelMessageRemove = {
|
|
|
6255
6301
|
if (message.topic_id !== "") {
|
|
6256
6302
|
obj.topic_id = message.topic_id;
|
|
6257
6303
|
}
|
|
6304
|
+
if (message.mentions !== "") {
|
|
6305
|
+
obj.mentions = message.mentions;
|
|
6306
|
+
}
|
|
6307
|
+
if (message.references !== "") {
|
|
6308
|
+
obj.references = message.references;
|
|
6309
|
+
}
|
|
6258
6310
|
return obj;
|
|
6259
6311
|
},
|
|
6260
6312
|
|
|
@@ -6270,6 +6322,8 @@ export const ChannelMessageRemove = {
|
|
|
6270
6322
|
message.is_public = object.is_public ?? false;
|
|
6271
6323
|
message.has_attachment = object.has_attachment ?? false;
|
|
6272
6324
|
message.topic_id = object.topic_id ?? "";
|
|
6325
|
+
message.mentions = object.mentions ?? "";
|
|
6326
|
+
message.references = object.references ?? "";
|
|
6273
6327
|
return message;
|
|
6274
6328
|
},
|
|
6275
6329
|
};
|