mezon-js-protobuf 1.8.30 → 1.8.32
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 +54 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +48 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +530 -333
- package/dist/mezon-js-protobuf.cjs.js +226 -11
- package/dist/mezon-js-protobuf.esm.mjs +226 -11
- package/package.json +1 -1
- package/rtapi/realtime.ts +211 -2
package/rtapi/realtime.ts
CHANGED
|
@@ -430,7 +430,11 @@ export interface Envelope {
|
|
|
430
430
|
| UnblockFriend
|
|
431
431
|
| undefined;
|
|
432
432
|
/** mezon meet participant event */
|
|
433
|
-
meet_participant_event?:
|
|
433
|
+
meet_participant_event?:
|
|
434
|
+
| MeetParticipantEvent
|
|
435
|
+
| undefined;
|
|
436
|
+
/** tranfer ownership event */
|
|
437
|
+
transfer_ownership_event?: TransferOwnershipEvent | undefined;
|
|
434
438
|
}
|
|
435
439
|
|
|
436
440
|
export interface FollowEvent {
|
|
@@ -1384,6 +1388,14 @@ export interface ClanUpdatedEvent {
|
|
|
1384
1388
|
welcome_channel_id: string;
|
|
1385
1389
|
/** onboarding_banner. */
|
|
1386
1390
|
onboarding_banner: string;
|
|
1391
|
+
/** community banner */
|
|
1392
|
+
community_banner: string;
|
|
1393
|
+
/** is community */
|
|
1394
|
+
is_community: boolean;
|
|
1395
|
+
/** about */
|
|
1396
|
+
about: string;
|
|
1397
|
+
/** description */
|
|
1398
|
+
description: string;
|
|
1387
1399
|
}
|
|
1388
1400
|
|
|
1389
1401
|
/** clan profile updated event */
|
|
@@ -1595,6 +1607,8 @@ export interface HandleParticipantMeetStateEvent {
|
|
|
1595
1607
|
display_name: string;
|
|
1596
1608
|
/** state (0: join, 1: leave) */
|
|
1597
1609
|
state: number;
|
|
1610
|
+
/** room name */
|
|
1611
|
+
room_name: string;
|
|
1598
1612
|
}
|
|
1599
1613
|
|
|
1600
1614
|
export interface DeleteAccountEvent {
|
|
@@ -1677,6 +1691,12 @@ export interface MeetParticipantEvent {
|
|
|
1677
1691
|
action: number;
|
|
1678
1692
|
}
|
|
1679
1693
|
|
|
1694
|
+
export interface TransferOwnershipEvent {
|
|
1695
|
+
clan_id: string;
|
|
1696
|
+
prev_owner: string;
|
|
1697
|
+
curr_owner: string;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1680
1700
|
function createBaseEnvelope(): Envelope {
|
|
1681
1701
|
return {
|
|
1682
1702
|
cid: "",
|
|
@@ -1765,6 +1785,7 @@ function createBaseEnvelope(): Envelope {
|
|
|
1765
1785
|
quick_menu_event: undefined,
|
|
1766
1786
|
un_block_friend: undefined,
|
|
1767
1787
|
meet_participant_event: undefined,
|
|
1788
|
+
transfer_ownership_event: undefined,
|
|
1768
1789
|
};
|
|
1769
1790
|
}
|
|
1770
1791
|
|
|
@@ -2029,6 +2050,9 @@ export const Envelope = {
|
|
|
2029
2050
|
if (message.meet_participant_event !== undefined) {
|
|
2030
2051
|
MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
|
|
2031
2052
|
}
|
|
2053
|
+
if (message.transfer_ownership_event !== undefined) {
|
|
2054
|
+
TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
|
|
2055
|
+
}
|
|
2032
2056
|
return writer;
|
|
2033
2057
|
},
|
|
2034
2058
|
|
|
@@ -2641,6 +2665,13 @@ export const Envelope = {
|
|
|
2641
2665
|
|
|
2642
2666
|
message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
|
|
2643
2667
|
continue;
|
|
2668
|
+
case 87:
|
|
2669
|
+
if (tag !== 698) {
|
|
2670
|
+
break;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
|
|
2674
|
+
continue;
|
|
2644
2675
|
}
|
|
2645
2676
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2646
2677
|
break;
|
|
@@ -2848,6 +2879,9 @@ export const Envelope = {
|
|
|
2848
2879
|
meet_participant_event: isSet(object.meet_participant_event)
|
|
2849
2880
|
? MeetParticipantEvent.fromJSON(object.meet_participant_event)
|
|
2850
2881
|
: undefined,
|
|
2882
|
+
transfer_ownership_event: isSet(object.transfer_ownership_event)
|
|
2883
|
+
? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event)
|
|
2884
|
+
: undefined,
|
|
2851
2885
|
};
|
|
2852
2886
|
},
|
|
2853
2887
|
|
|
@@ -3113,6 +3147,9 @@ export const Envelope = {
|
|
|
3113
3147
|
if (message.meet_participant_event !== undefined) {
|
|
3114
3148
|
obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
|
|
3115
3149
|
}
|
|
3150
|
+
if (message.transfer_ownership_event !== undefined) {
|
|
3151
|
+
obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
|
|
3152
|
+
}
|
|
3116
3153
|
return obj;
|
|
3117
3154
|
},
|
|
3118
3155
|
|
|
@@ -3397,6 +3434,10 @@ export const Envelope = {
|
|
|
3397
3434
|
(object.meet_participant_event !== undefined && object.meet_participant_event !== null)
|
|
3398
3435
|
? MeetParticipantEvent.fromPartial(object.meet_participant_event)
|
|
3399
3436
|
: undefined;
|
|
3437
|
+
message.transfer_ownership_event =
|
|
3438
|
+
(object.transfer_ownership_event !== undefined && object.transfer_ownership_event !== null)
|
|
3439
|
+
? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event)
|
|
3440
|
+
: undefined;
|
|
3400
3441
|
return message;
|
|
3401
3442
|
},
|
|
3402
3443
|
};
|
|
@@ -11162,6 +11203,10 @@ function createBaseClanUpdatedEvent(): ClanUpdatedEvent {
|
|
|
11162
11203
|
is_onboarding: false,
|
|
11163
11204
|
welcome_channel_id: "",
|
|
11164
11205
|
onboarding_banner: "",
|
|
11206
|
+
community_banner: "",
|
|
11207
|
+
is_community: false,
|
|
11208
|
+
about: "",
|
|
11209
|
+
description: "",
|
|
11165
11210
|
};
|
|
11166
11211
|
}
|
|
11167
11212
|
|
|
@@ -11191,6 +11236,18 @@ export const ClanUpdatedEvent = {
|
|
|
11191
11236
|
if (message.onboarding_banner !== "") {
|
|
11192
11237
|
writer.uint32(66).string(message.onboarding_banner);
|
|
11193
11238
|
}
|
|
11239
|
+
if (message.community_banner !== "") {
|
|
11240
|
+
writer.uint32(74).string(message.community_banner);
|
|
11241
|
+
}
|
|
11242
|
+
if (message.is_community !== false) {
|
|
11243
|
+
writer.uint32(80).bool(message.is_community);
|
|
11244
|
+
}
|
|
11245
|
+
if (message.about !== "") {
|
|
11246
|
+
writer.uint32(90).string(message.about);
|
|
11247
|
+
}
|
|
11248
|
+
if (message.description !== "") {
|
|
11249
|
+
writer.uint32(98).string(message.description);
|
|
11250
|
+
}
|
|
11194
11251
|
return writer;
|
|
11195
11252
|
},
|
|
11196
11253
|
|
|
@@ -11257,6 +11314,34 @@ export const ClanUpdatedEvent = {
|
|
|
11257
11314
|
|
|
11258
11315
|
message.onboarding_banner = reader.string();
|
|
11259
11316
|
continue;
|
|
11317
|
+
case 9:
|
|
11318
|
+
if (tag !== 74) {
|
|
11319
|
+
break;
|
|
11320
|
+
}
|
|
11321
|
+
|
|
11322
|
+
message.community_banner = reader.string();
|
|
11323
|
+
continue;
|
|
11324
|
+
case 10:
|
|
11325
|
+
if (tag !== 80) {
|
|
11326
|
+
break;
|
|
11327
|
+
}
|
|
11328
|
+
|
|
11329
|
+
message.is_community = reader.bool();
|
|
11330
|
+
continue;
|
|
11331
|
+
case 11:
|
|
11332
|
+
if (tag !== 90) {
|
|
11333
|
+
break;
|
|
11334
|
+
}
|
|
11335
|
+
|
|
11336
|
+
message.about = reader.string();
|
|
11337
|
+
continue;
|
|
11338
|
+
case 12:
|
|
11339
|
+
if (tag !== 98) {
|
|
11340
|
+
break;
|
|
11341
|
+
}
|
|
11342
|
+
|
|
11343
|
+
message.description = reader.string();
|
|
11344
|
+
continue;
|
|
11260
11345
|
}
|
|
11261
11346
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11262
11347
|
break;
|
|
@@ -11276,6 +11361,10 @@ export const ClanUpdatedEvent = {
|
|
|
11276
11361
|
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
11277
11362
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
11278
11363
|
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
11364
|
+
community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
11365
|
+
is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
11366
|
+
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
11367
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
11279
11368
|
};
|
|
11280
11369
|
},
|
|
11281
11370
|
|
|
@@ -11305,6 +11394,18 @@ export const ClanUpdatedEvent = {
|
|
|
11305
11394
|
if (message.onboarding_banner !== "") {
|
|
11306
11395
|
obj.onboarding_banner = message.onboarding_banner;
|
|
11307
11396
|
}
|
|
11397
|
+
if (message.community_banner !== "") {
|
|
11398
|
+
obj.community_banner = message.community_banner;
|
|
11399
|
+
}
|
|
11400
|
+
if (message.is_community !== false) {
|
|
11401
|
+
obj.is_community = message.is_community;
|
|
11402
|
+
}
|
|
11403
|
+
if (message.about !== "") {
|
|
11404
|
+
obj.about = message.about;
|
|
11405
|
+
}
|
|
11406
|
+
if (message.description !== "") {
|
|
11407
|
+
obj.description = message.description;
|
|
11408
|
+
}
|
|
11308
11409
|
return obj;
|
|
11309
11410
|
},
|
|
11310
11411
|
|
|
@@ -11321,6 +11422,10 @@ export const ClanUpdatedEvent = {
|
|
|
11321
11422
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
11322
11423
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
11323
11424
|
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
11425
|
+
message.community_banner = object.community_banner ?? "";
|
|
11426
|
+
message.is_community = object.is_community ?? false;
|
|
11427
|
+
message.about = object.about ?? "";
|
|
11428
|
+
message.description = object.description ?? "";
|
|
11324
11429
|
return message;
|
|
11325
11430
|
},
|
|
11326
11431
|
};
|
|
@@ -13662,7 +13767,7 @@ export const UnpinMessageEvent = {
|
|
|
13662
13767
|
};
|
|
13663
13768
|
|
|
13664
13769
|
function createBaseHandleParticipantMeetStateEvent(): HandleParticipantMeetStateEvent {
|
|
13665
|
-
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
13770
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0, room_name: "" };
|
|
13666
13771
|
}
|
|
13667
13772
|
|
|
13668
13773
|
export const HandleParticipantMeetStateEvent = {
|
|
@@ -13679,6 +13784,9 @@ export const HandleParticipantMeetStateEvent = {
|
|
|
13679
13784
|
if (message.state !== 0) {
|
|
13680
13785
|
writer.uint32(32).int32(message.state);
|
|
13681
13786
|
}
|
|
13787
|
+
if (message.room_name !== "") {
|
|
13788
|
+
writer.uint32(42).string(message.room_name);
|
|
13789
|
+
}
|
|
13682
13790
|
return writer;
|
|
13683
13791
|
},
|
|
13684
13792
|
|
|
@@ -13717,6 +13825,13 @@ export const HandleParticipantMeetStateEvent = {
|
|
|
13717
13825
|
|
|
13718
13826
|
message.state = reader.int32();
|
|
13719
13827
|
continue;
|
|
13828
|
+
case 5:
|
|
13829
|
+
if (tag !== 42) {
|
|
13830
|
+
break;
|
|
13831
|
+
}
|
|
13832
|
+
|
|
13833
|
+
message.room_name = reader.string();
|
|
13834
|
+
continue;
|
|
13720
13835
|
}
|
|
13721
13836
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13722
13837
|
break;
|
|
@@ -13732,6 +13847,7 @@ export const HandleParticipantMeetStateEvent = {
|
|
|
13732
13847
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13733
13848
|
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
13734
13849
|
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
13850
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
13735
13851
|
};
|
|
13736
13852
|
},
|
|
13737
13853
|
|
|
@@ -13749,6 +13865,9 @@ export const HandleParticipantMeetStateEvent = {
|
|
|
13749
13865
|
if (message.state !== 0) {
|
|
13750
13866
|
obj.state = Math.round(message.state);
|
|
13751
13867
|
}
|
|
13868
|
+
if (message.room_name !== "") {
|
|
13869
|
+
obj.room_name = message.room_name;
|
|
13870
|
+
}
|
|
13752
13871
|
return obj;
|
|
13753
13872
|
},
|
|
13754
13873
|
|
|
@@ -13763,6 +13882,7 @@ export const HandleParticipantMeetStateEvent = {
|
|
|
13763
13882
|
message.channel_id = object.channel_id ?? "";
|
|
13764
13883
|
message.display_name = object.display_name ?? "";
|
|
13765
13884
|
message.state = object.state ?? 0;
|
|
13885
|
+
message.room_name = object.room_name ?? "";
|
|
13766
13886
|
return message;
|
|
13767
13887
|
},
|
|
13768
13888
|
};
|
|
@@ -15240,6 +15360,95 @@ export const MeetParticipantEvent = {
|
|
|
15240
15360
|
},
|
|
15241
15361
|
};
|
|
15242
15362
|
|
|
15363
|
+
function createBaseTransferOwnershipEvent(): TransferOwnershipEvent {
|
|
15364
|
+
return { clan_id: "", prev_owner: "", curr_owner: "" };
|
|
15365
|
+
}
|
|
15366
|
+
|
|
15367
|
+
export const TransferOwnershipEvent = {
|
|
15368
|
+
encode(message: TransferOwnershipEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
15369
|
+
if (message.clan_id !== "") {
|
|
15370
|
+
writer.uint32(10).string(message.clan_id);
|
|
15371
|
+
}
|
|
15372
|
+
if (message.prev_owner !== "") {
|
|
15373
|
+
writer.uint32(18).string(message.prev_owner);
|
|
15374
|
+
}
|
|
15375
|
+
if (message.curr_owner !== "") {
|
|
15376
|
+
writer.uint32(26).string(message.curr_owner);
|
|
15377
|
+
}
|
|
15378
|
+
return writer;
|
|
15379
|
+
},
|
|
15380
|
+
|
|
15381
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferOwnershipEvent {
|
|
15382
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
15383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
15384
|
+
const message = createBaseTransferOwnershipEvent();
|
|
15385
|
+
while (reader.pos < end) {
|
|
15386
|
+
const tag = reader.uint32();
|
|
15387
|
+
switch (tag >>> 3) {
|
|
15388
|
+
case 1:
|
|
15389
|
+
if (tag !== 10) {
|
|
15390
|
+
break;
|
|
15391
|
+
}
|
|
15392
|
+
|
|
15393
|
+
message.clan_id = reader.string();
|
|
15394
|
+
continue;
|
|
15395
|
+
case 2:
|
|
15396
|
+
if (tag !== 18) {
|
|
15397
|
+
break;
|
|
15398
|
+
}
|
|
15399
|
+
|
|
15400
|
+
message.prev_owner = reader.string();
|
|
15401
|
+
continue;
|
|
15402
|
+
case 3:
|
|
15403
|
+
if (tag !== 26) {
|
|
15404
|
+
break;
|
|
15405
|
+
}
|
|
15406
|
+
|
|
15407
|
+
message.curr_owner = reader.string();
|
|
15408
|
+
continue;
|
|
15409
|
+
}
|
|
15410
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15411
|
+
break;
|
|
15412
|
+
}
|
|
15413
|
+
reader.skipType(tag & 7);
|
|
15414
|
+
}
|
|
15415
|
+
return message;
|
|
15416
|
+
},
|
|
15417
|
+
|
|
15418
|
+
fromJSON(object: any): TransferOwnershipEvent {
|
|
15419
|
+
return {
|
|
15420
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
15421
|
+
prev_owner: isSet(object.prev_owner) ? globalThis.String(object.prev_owner) : "",
|
|
15422
|
+
curr_owner: isSet(object.curr_owner) ? globalThis.String(object.curr_owner) : "",
|
|
15423
|
+
};
|
|
15424
|
+
},
|
|
15425
|
+
|
|
15426
|
+
toJSON(message: TransferOwnershipEvent): unknown {
|
|
15427
|
+
const obj: any = {};
|
|
15428
|
+
if (message.clan_id !== "") {
|
|
15429
|
+
obj.clan_id = message.clan_id;
|
|
15430
|
+
}
|
|
15431
|
+
if (message.prev_owner !== "") {
|
|
15432
|
+
obj.prev_owner = message.prev_owner;
|
|
15433
|
+
}
|
|
15434
|
+
if (message.curr_owner !== "") {
|
|
15435
|
+
obj.curr_owner = message.curr_owner;
|
|
15436
|
+
}
|
|
15437
|
+
return obj;
|
|
15438
|
+
},
|
|
15439
|
+
|
|
15440
|
+
create<I extends Exact<DeepPartial<TransferOwnershipEvent>, I>>(base?: I): TransferOwnershipEvent {
|
|
15441
|
+
return TransferOwnershipEvent.fromPartial(base ?? ({} as any));
|
|
15442
|
+
},
|
|
15443
|
+
fromPartial<I extends Exact<DeepPartial<TransferOwnershipEvent>, I>>(object: I): TransferOwnershipEvent {
|
|
15444
|
+
const message = createBaseTransferOwnershipEvent();
|
|
15445
|
+
message.clan_id = object.clan_id ?? "";
|
|
15446
|
+
message.prev_owner = object.prev_owner ?? "";
|
|
15447
|
+
message.curr_owner = object.curr_owner ?? "";
|
|
15448
|
+
return message;
|
|
15449
|
+
},
|
|
15450
|
+
};
|
|
15451
|
+
|
|
15243
15452
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15244
15453
|
|
|
15245
15454
|
export type DeepPartial<T> = T extends Builtin ? T
|