mezon-js-protobuf 1.8.28 → 1.8.30

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/rtapi/realtime.ts CHANGED
@@ -426,7 +426,11 @@ export interface Envelope {
426
426
  | QuickMenuDataEvent
427
427
  | undefined;
428
428
  /** unblock friend */
429
- un_block_friend?: UnblockFriend | undefined;
429
+ un_block_friend?:
430
+ | UnblockFriend
431
+ | undefined;
432
+ /** mezon meet participant event */
433
+ meet_participant_event?: MeetParticipantEvent | undefined;
430
434
  }
431
435
 
432
436
  export interface FollowEvent {
@@ -1665,6 +1669,14 @@ export interface ListDataSocket {
1665
1669
  stream_user_list: StreamingChannelUserList | undefined;
1666
1670
  }
1667
1671
 
1672
+ export interface MeetParticipantEvent {
1673
+ username: string;
1674
+ room_name: string;
1675
+ channel_id: string;
1676
+ clan_id: string;
1677
+ action: number;
1678
+ }
1679
+
1668
1680
  function createBaseEnvelope(): Envelope {
1669
1681
  return {
1670
1682
  cid: "",
@@ -1752,6 +1764,7 @@ function createBaseEnvelope(): Envelope {
1752
1764
  list_data_socket: undefined,
1753
1765
  quick_menu_event: undefined,
1754
1766
  un_block_friend: undefined,
1767
+ meet_participant_event: undefined,
1755
1768
  };
1756
1769
  }
1757
1770
 
@@ -2013,6 +2026,9 @@ export const Envelope = {
2013
2026
  if (message.un_block_friend !== undefined) {
2014
2027
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
2015
2028
  }
2029
+ if (message.meet_participant_event !== undefined) {
2030
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
2031
+ }
2016
2032
  return writer;
2017
2033
  },
2018
2034
 
@@ -2618,6 +2634,13 @@ export const Envelope = {
2618
2634
 
2619
2635
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
2620
2636
  continue;
2637
+ case 86:
2638
+ if (tag !== 690) {
2639
+ break;
2640
+ }
2641
+
2642
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
2643
+ continue;
2621
2644
  }
2622
2645
  if ((tag & 7) === 4 || tag === 0) {
2623
2646
  break;
@@ -2822,6 +2845,9 @@ export const Envelope = {
2822
2845
  ? QuickMenuDataEvent.fromJSON(object.quick_menu_event)
2823
2846
  : undefined,
2824
2847
  un_block_friend: isSet(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : undefined,
2848
+ meet_participant_event: isSet(object.meet_participant_event)
2849
+ ? MeetParticipantEvent.fromJSON(object.meet_participant_event)
2850
+ : undefined,
2825
2851
  };
2826
2852
  },
2827
2853
 
@@ -3084,6 +3110,9 @@ export const Envelope = {
3084
3110
  if (message.un_block_friend !== undefined) {
3085
3111
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
3086
3112
  }
3113
+ if (message.meet_participant_event !== undefined) {
3114
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
3115
+ }
3087
3116
  return obj;
3088
3117
  },
3089
3118
 
@@ -3364,6 +3393,10 @@ export const Envelope = {
3364
3393
  message.un_block_friend = (object.un_block_friend !== undefined && object.un_block_friend !== null)
3365
3394
  ? UnblockFriend.fromPartial(object.un_block_friend)
3366
3395
  : undefined;
3396
+ message.meet_participant_event =
3397
+ (object.meet_participant_event !== undefined && object.meet_participant_event !== null)
3398
+ ? MeetParticipantEvent.fromPartial(object.meet_participant_event)
3399
+ : undefined;
3367
3400
  return message;
3368
3401
  },
3369
3402
  };
@@ -15088,6 +15121,125 @@ export const ListDataSocket = {
15088
15121
  },
15089
15122
  };
15090
15123
 
15124
+ function createBaseMeetParticipantEvent(): MeetParticipantEvent {
15125
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
15126
+ }
15127
+
15128
+ export const MeetParticipantEvent = {
15129
+ encode(message: MeetParticipantEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15130
+ if (message.username !== "") {
15131
+ writer.uint32(10).string(message.username);
15132
+ }
15133
+ if (message.room_name !== "") {
15134
+ writer.uint32(18).string(message.room_name);
15135
+ }
15136
+ if (message.channel_id !== "") {
15137
+ writer.uint32(26).string(message.channel_id);
15138
+ }
15139
+ if (message.clan_id !== "") {
15140
+ writer.uint32(34).string(message.clan_id);
15141
+ }
15142
+ if (message.action !== 0) {
15143
+ writer.uint32(40).int32(message.action);
15144
+ }
15145
+ return writer;
15146
+ },
15147
+
15148
+ decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantEvent {
15149
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
15150
+ let end = length === undefined ? reader.len : reader.pos + length;
15151
+ const message = createBaseMeetParticipantEvent();
15152
+ while (reader.pos < end) {
15153
+ const tag = reader.uint32();
15154
+ switch (tag >>> 3) {
15155
+ case 1:
15156
+ if (tag !== 10) {
15157
+ break;
15158
+ }
15159
+
15160
+ message.username = reader.string();
15161
+ continue;
15162
+ case 2:
15163
+ if (tag !== 18) {
15164
+ break;
15165
+ }
15166
+
15167
+ message.room_name = reader.string();
15168
+ continue;
15169
+ case 3:
15170
+ if (tag !== 26) {
15171
+ break;
15172
+ }
15173
+
15174
+ message.channel_id = reader.string();
15175
+ continue;
15176
+ case 4:
15177
+ if (tag !== 34) {
15178
+ break;
15179
+ }
15180
+
15181
+ message.clan_id = reader.string();
15182
+ continue;
15183
+ case 5:
15184
+ if (tag !== 40) {
15185
+ break;
15186
+ }
15187
+
15188
+ message.action = reader.int32();
15189
+ continue;
15190
+ }
15191
+ if ((tag & 7) === 4 || tag === 0) {
15192
+ break;
15193
+ }
15194
+ reader.skipType(tag & 7);
15195
+ }
15196
+ return message;
15197
+ },
15198
+
15199
+ fromJSON(object: any): MeetParticipantEvent {
15200
+ return {
15201
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
15202
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
15203
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
15204
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
15205
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
15206
+ };
15207
+ },
15208
+
15209
+ toJSON(message: MeetParticipantEvent): unknown {
15210
+ const obj: any = {};
15211
+ if (message.username !== "") {
15212
+ obj.username = message.username;
15213
+ }
15214
+ if (message.room_name !== "") {
15215
+ obj.room_name = message.room_name;
15216
+ }
15217
+ if (message.channel_id !== "") {
15218
+ obj.channel_id = message.channel_id;
15219
+ }
15220
+ if (message.clan_id !== "") {
15221
+ obj.clan_id = message.clan_id;
15222
+ }
15223
+ if (message.action !== 0) {
15224
+ obj.action = Math.round(message.action);
15225
+ }
15226
+ return obj;
15227
+ },
15228
+
15229
+ create<I extends Exact<DeepPartial<MeetParticipantEvent>, I>>(base?: I): MeetParticipantEvent {
15230
+ return MeetParticipantEvent.fromPartial(base ?? ({} as any));
15231
+ },
15232
+ fromPartial<I extends Exact<DeepPartial<MeetParticipantEvent>, I>>(object: I): MeetParticipantEvent {
15233
+ const message = createBaseMeetParticipantEvent();
15234
+ message.username = object.username ?? "";
15235
+ message.room_name = object.room_name ?? "";
15236
+ message.channel_id = object.channel_id ?? "";
15237
+ message.clan_id = object.clan_id ?? "";
15238
+ message.action = object.action ?? 0;
15239
+ return message;
15240
+ },
15241
+ };
15242
+
15091
15243
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15092
15244
 
15093
15245
  export type DeepPartial<T> = T extends Builtin ? T