mezon-js-protobuf 1.8.54 → 1.8.55

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
@@ -259,6 +259,14 @@ export interface SessionLogoutRequest {
259
259
  platform: string;
260
260
  }
261
261
 
262
+ export interface IsBannedResponse {
263
+ is_banned: boolean;
264
+ }
265
+
266
+ export interface IsBannedRequest {
267
+ channel_id: string;
268
+ }
269
+
262
270
  /** Ban users from a group. */
263
271
  export interface BanGroupUsersRequest {
264
272
  /** The group to ban users from. */
@@ -1754,9 +1762,7 @@ export interface BannedUser {
1754
1762
  /** The banned user. */
1755
1763
  banned_id: string;
1756
1764
  /** The avatar */
1757
- banned_avatar: string;
1758
- /** The name */
1759
- banned_name: string;
1765
+ banner_id: string;
1760
1766
  /** ban time */
1761
1767
  ban_time: number;
1762
1768
  /** The reason */
@@ -4635,6 +4641,120 @@ export const SessionLogoutRequest = {
4635
4641
  },
4636
4642
  };
4637
4643
 
4644
+ function createBaseIsBannedResponse(): IsBannedResponse {
4645
+ return { is_banned: false };
4646
+ }
4647
+
4648
+ export const IsBannedResponse = {
4649
+ encode(message: IsBannedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4650
+ if (message.is_banned !== false) {
4651
+ writer.uint32(8).bool(message.is_banned);
4652
+ }
4653
+ return writer;
4654
+ },
4655
+
4656
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedResponse {
4657
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4658
+ let end = length === undefined ? reader.len : reader.pos + length;
4659
+ const message = createBaseIsBannedResponse();
4660
+ while (reader.pos < end) {
4661
+ const tag = reader.uint32();
4662
+ switch (tag >>> 3) {
4663
+ case 1:
4664
+ if (tag !== 8) {
4665
+ break;
4666
+ }
4667
+
4668
+ message.is_banned = reader.bool();
4669
+ continue;
4670
+ }
4671
+ if ((tag & 7) === 4 || tag === 0) {
4672
+ break;
4673
+ }
4674
+ reader.skipType(tag & 7);
4675
+ }
4676
+ return message;
4677
+ },
4678
+
4679
+ fromJSON(object: any): IsBannedResponse {
4680
+ return { is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false };
4681
+ },
4682
+
4683
+ toJSON(message: IsBannedResponse): unknown {
4684
+ const obj: any = {};
4685
+ if (message.is_banned !== false) {
4686
+ obj.is_banned = message.is_banned;
4687
+ }
4688
+ return obj;
4689
+ },
4690
+
4691
+ create<I extends Exact<DeepPartial<IsBannedResponse>, I>>(base?: I): IsBannedResponse {
4692
+ return IsBannedResponse.fromPartial(base ?? ({} as any));
4693
+ },
4694
+ fromPartial<I extends Exact<DeepPartial<IsBannedResponse>, I>>(object: I): IsBannedResponse {
4695
+ const message = createBaseIsBannedResponse();
4696
+ message.is_banned = object.is_banned ?? false;
4697
+ return message;
4698
+ },
4699
+ };
4700
+
4701
+ function createBaseIsBannedRequest(): IsBannedRequest {
4702
+ return { channel_id: "" };
4703
+ }
4704
+
4705
+ export const IsBannedRequest = {
4706
+ encode(message: IsBannedRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4707
+ if (message.channel_id !== "") {
4708
+ writer.uint32(10).string(message.channel_id);
4709
+ }
4710
+ return writer;
4711
+ },
4712
+
4713
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedRequest {
4714
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4715
+ let end = length === undefined ? reader.len : reader.pos + length;
4716
+ const message = createBaseIsBannedRequest();
4717
+ while (reader.pos < end) {
4718
+ const tag = reader.uint32();
4719
+ switch (tag >>> 3) {
4720
+ case 1:
4721
+ if (tag !== 10) {
4722
+ break;
4723
+ }
4724
+
4725
+ message.channel_id = reader.string();
4726
+ continue;
4727
+ }
4728
+ if ((tag & 7) === 4 || tag === 0) {
4729
+ break;
4730
+ }
4731
+ reader.skipType(tag & 7);
4732
+ }
4733
+ return message;
4734
+ },
4735
+
4736
+ fromJSON(object: any): IsBannedRequest {
4737
+ return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
4738
+ },
4739
+
4740
+ toJSON(message: IsBannedRequest): unknown {
4741
+ const obj: any = {};
4742
+ if (message.channel_id !== "") {
4743
+ obj.channel_id = message.channel_id;
4744
+ }
4745
+ return obj;
4746
+ },
4747
+
4748
+ create<I extends Exact<DeepPartial<IsBannedRequest>, I>>(base?: I): IsBannedRequest {
4749
+ return IsBannedRequest.fromPartial(base ?? ({} as any));
4750
+ },
4751
+ fromPartial<I extends Exact<DeepPartial<IsBannedRequest>, I>>(object: I): IsBannedRequest {
4752
+ const message = createBaseIsBannedRequest();
4753
+ message.channel_id = object.channel_id ?? "";
4754
+ return message;
4755
+ },
4756
+ };
4757
+
4638
4758
  function createBaseBanGroupUsersRequest(): BanGroupUsersRequest {
4639
4759
  return { group_id: "", user_ids: [] };
4640
4760
  }
@@ -16442,7 +16562,7 @@ export const BanClanUsersRequest = {
16442
16562
  };
16443
16563
 
16444
16564
  function createBaseBannedUser(): BannedUser {
16445
- return { channel_id: "", banned_id: "", banned_avatar: "", banned_name: "", ban_time: 0, reason: "" };
16565
+ return { channel_id: "", banned_id: "", banner_id: "", ban_time: 0, reason: "" };
16446
16566
  }
16447
16567
 
16448
16568
  export const BannedUser = {
@@ -16453,17 +16573,14 @@ export const BannedUser = {
16453
16573
  if (message.banned_id !== "") {
16454
16574
  writer.uint32(18).string(message.banned_id);
16455
16575
  }
16456
- if (message.banned_avatar !== "") {
16457
- writer.uint32(26).string(message.banned_avatar);
16458
- }
16459
- if (message.banned_name !== "") {
16460
- writer.uint32(34).string(message.banned_name);
16576
+ if (message.banner_id !== "") {
16577
+ writer.uint32(26).string(message.banner_id);
16461
16578
  }
16462
16579
  if (message.ban_time !== 0) {
16463
- writer.uint32(40).int32(message.ban_time);
16580
+ writer.uint32(32).int32(message.ban_time);
16464
16581
  }
16465
16582
  if (message.reason !== "") {
16466
- writer.uint32(50).string(message.reason);
16583
+ writer.uint32(42).string(message.reason);
16467
16584
  }
16468
16585
  return writer;
16469
16586
  },
@@ -16494,24 +16611,17 @@ export const BannedUser = {
16494
16611
  break;
16495
16612
  }
16496
16613
 
16497
- message.banned_avatar = reader.string();
16614
+ message.banner_id = reader.string();
16498
16615
  continue;
16499
16616
  case 4:
16500
- if (tag !== 34) {
16501
- break;
16502
- }
16503
-
16504
- message.banned_name = reader.string();
16505
- continue;
16506
- case 5:
16507
- if (tag !== 40) {
16617
+ if (tag !== 32) {
16508
16618
  break;
16509
16619
  }
16510
16620
 
16511
16621
  message.ban_time = reader.int32();
16512
16622
  continue;
16513
- case 6:
16514
- if (tag !== 50) {
16623
+ case 5:
16624
+ if (tag !== 42) {
16515
16625
  break;
16516
16626
  }
16517
16627
 
@@ -16530,8 +16640,7 @@ export const BannedUser = {
16530
16640
  return {
16531
16641
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16532
16642
  banned_id: isSet(object.banned_id) ? globalThis.String(object.banned_id) : "",
16533
- banned_avatar: isSet(object.banned_avatar) ? globalThis.String(object.banned_avatar) : "",
16534
- banned_name: isSet(object.banned_name) ? globalThis.String(object.banned_name) : "",
16643
+ banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
16535
16644
  ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16536
16645
  reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16537
16646
  };
@@ -16545,11 +16654,8 @@ export const BannedUser = {
16545
16654
  if (message.banned_id !== "") {
16546
16655
  obj.banned_id = message.banned_id;
16547
16656
  }
16548
- if (message.banned_avatar !== "") {
16549
- obj.banned_avatar = message.banned_avatar;
16550
- }
16551
- if (message.banned_name !== "") {
16552
- obj.banned_name = message.banned_name;
16657
+ if (message.banner_id !== "") {
16658
+ obj.banner_id = message.banner_id;
16553
16659
  }
16554
16660
  if (message.ban_time !== 0) {
16555
16661
  obj.ban_time = Math.round(message.ban_time);
@@ -16567,8 +16673,7 @@ export const BannedUser = {
16567
16673
  const message = createBaseBannedUser();
16568
16674
  message.channel_id = object.channel_id ?? "";
16569
16675
  message.banned_id = object.banned_id ?? "";
16570
- message.banned_avatar = object.banned_avatar ?? "";
16571
- message.banned_name = object.banned_name ?? "";
16676
+ message.banner_id = object.banner_id ?? "";
16572
16677
  message.ban_time = object.ban_time ?? 0;
16573
16678
  message.reason = object.reason ?? "";
16574
16679
  return message;
@@ -126,6 +126,12 @@ export interface SessionLogoutRequest {
126
126
  /** platform */
127
127
  platform: string;
128
128
  }
129
+ export interface IsBannedResponse {
130
+ is_banned: boolean;
131
+ }
132
+ export interface IsBannedRequest {
133
+ channel_id: string;
134
+ }
129
135
  /** Ban users from a group. */
130
136
  export interface BanGroupUsersRequest {
131
137
  /** The group to ban users from. */
@@ -1354,9 +1360,7 @@ export interface BannedUser {
1354
1360
  /** The banned user. */
1355
1361
  banned_id: string;
1356
1362
  /** The avatar */
1357
- banned_avatar: string;
1358
- /** The name */
1359
- banned_name: string;
1363
+ banner_id: string;
1360
1364
  /** ban time */
1361
1365
  ban_time: number;
1362
1366
  /** The reason */
@@ -3468,6 +3472,38 @@ export declare const SessionLogoutRequest: {
3468
3472
  platform?: string | undefined;
3469
3473
  } & { [K_1 in Exclude<keyof I_1, keyof SessionLogoutRequest>]: never; }>(object: I_1): SessionLogoutRequest;
3470
3474
  };
3475
+ export declare const IsBannedResponse: {
3476
+ encode(message: IsBannedResponse, writer?: _m0.Writer): _m0.Writer;
3477
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedResponse;
3478
+ fromJSON(object: any): IsBannedResponse;
3479
+ toJSON(message: IsBannedResponse): unknown;
3480
+ create<I extends {
3481
+ is_banned?: boolean | undefined;
3482
+ } & {
3483
+ is_banned?: boolean | undefined;
3484
+ } & { [K in Exclude<keyof I, "is_banned">]: never; }>(base?: I | undefined): IsBannedResponse;
3485
+ fromPartial<I_1 extends {
3486
+ is_banned?: boolean | undefined;
3487
+ } & {
3488
+ is_banned?: boolean | undefined;
3489
+ } & { [K_1 in Exclude<keyof I_1, "is_banned">]: never; }>(object: I_1): IsBannedResponse;
3490
+ };
3491
+ export declare const IsBannedRequest: {
3492
+ encode(message: IsBannedRequest, writer?: _m0.Writer): _m0.Writer;
3493
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedRequest;
3494
+ fromJSON(object: any): IsBannedRequest;
3495
+ toJSON(message: IsBannedRequest): unknown;
3496
+ create<I extends {
3497
+ channel_id?: string | undefined;
3498
+ } & {
3499
+ channel_id?: string | undefined;
3500
+ } & { [K in Exclude<keyof I, "channel_id">]: never; }>(base?: I | undefined): IsBannedRequest;
3501
+ fromPartial<I_1 extends {
3502
+ channel_id?: string | undefined;
3503
+ } & {
3504
+ channel_id?: string | undefined;
3505
+ } & { [K_1 in Exclude<keyof I_1, "channel_id">]: never; }>(object: I_1): IsBannedRequest;
3506
+ };
3471
3507
  export declare const BanGroupUsersRequest: {
3472
3508
  encode(message: BanGroupUsersRequest, writer?: _m0.Writer): _m0.Writer;
3473
3509
  decode(input: _m0.Reader | Uint8Array, length?: number): BanGroupUsersRequest;
@@ -11234,30 +11270,26 @@ export declare const BannedUser: {
11234
11270
  create<I extends {
11235
11271
  channel_id?: string | undefined;
11236
11272
  banned_id?: string | undefined;
11237
- banned_avatar?: string | undefined;
11238
- banned_name?: string | undefined;
11273
+ banner_id?: string | undefined;
11239
11274
  ban_time?: number | undefined;
11240
11275
  reason?: string | undefined;
11241
11276
  } & {
11242
11277
  channel_id?: string | undefined;
11243
11278
  banned_id?: string | undefined;
11244
- banned_avatar?: string | undefined;
11245
- banned_name?: string | undefined;
11279
+ banner_id?: string | undefined;
11246
11280
  ban_time?: number | undefined;
11247
11281
  reason?: string | undefined;
11248
11282
  } & { [K in Exclude<keyof I, keyof BannedUser>]: never; }>(base?: I | undefined): BannedUser;
11249
11283
  fromPartial<I_1 extends {
11250
11284
  channel_id?: string | undefined;
11251
11285
  banned_id?: string | undefined;
11252
- banned_avatar?: string | undefined;
11253
- banned_name?: string | undefined;
11286
+ banner_id?: string | undefined;
11254
11287
  ban_time?: number | undefined;
11255
11288
  reason?: string | undefined;
11256
11289
  } & {
11257
11290
  channel_id?: string | undefined;
11258
11291
  banned_id?: string | undefined;
11259
- banned_avatar?: string | undefined;
11260
- banned_name?: string | undefined;
11292
+ banner_id?: string | undefined;
11261
11293
  ban_time?: number | undefined;
11262
11294
  reason?: string | undefined;
11263
11295
  } & { [K_1 in Exclude<keyof I_1, keyof BannedUser>]: never; }>(object: I_1): BannedUser;
@@ -11291,8 +11323,7 @@ export declare const BannedUserList: {
11291
11323
  banned_users?: {
11292
11324
  channel_id?: string | undefined;
11293
11325
  banned_id?: string | undefined;
11294
- banned_avatar?: string | undefined;
11295
- banned_name?: string | undefined;
11326
+ banner_id?: string | undefined;
11296
11327
  ban_time?: number | undefined;
11297
11328
  reason?: string | undefined;
11298
11329
  }[] | undefined;
@@ -11300,29 +11331,25 @@ export declare const BannedUserList: {
11300
11331
  banned_users?: ({
11301
11332
  channel_id?: string | undefined;
11302
11333
  banned_id?: string | undefined;
11303
- banned_avatar?: string | undefined;
11304
- banned_name?: string | undefined;
11334
+ banner_id?: string | undefined;
11305
11335
  ban_time?: number | undefined;
11306
11336
  reason?: string | undefined;
11307
11337
  }[] & ({
11308
11338
  channel_id?: string | undefined;
11309
11339
  banned_id?: string | undefined;
11310
- banned_avatar?: string | undefined;
11311
- banned_name?: string | undefined;
11340
+ banner_id?: string | undefined;
11312
11341
  ban_time?: number | undefined;
11313
11342
  reason?: string | undefined;
11314
11343
  } & {
11315
11344
  channel_id?: string | undefined;
11316
11345
  banned_id?: string | undefined;
11317
- banned_avatar?: string | undefined;
11318
- banned_name?: string | undefined;
11346
+ banner_id?: string | undefined;
11319
11347
  ban_time?: number | undefined;
11320
11348
  reason?: string | undefined;
11321
11349
  } & { [K in Exclude<keyof I["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_1 in Exclude<keyof I["banned_users"], keyof {
11322
11350
  channel_id?: string | undefined;
11323
11351
  banned_id?: string | undefined;
11324
- banned_avatar?: string | undefined;
11325
- banned_name?: string | undefined;
11352
+ banner_id?: string | undefined;
11326
11353
  ban_time?: number | undefined;
11327
11354
  reason?: string | undefined;
11328
11355
  }[]>]: never; }) | undefined;
@@ -11331,8 +11358,7 @@ export declare const BannedUserList: {
11331
11358
  banned_users?: {
11332
11359
  channel_id?: string | undefined;
11333
11360
  banned_id?: string | undefined;
11334
- banned_avatar?: string | undefined;
11335
- banned_name?: string | undefined;
11361
+ banner_id?: string | undefined;
11336
11362
  ban_time?: number | undefined;
11337
11363
  reason?: string | undefined;
11338
11364
  }[] | undefined;
@@ -11340,29 +11366,25 @@ export declare const BannedUserList: {
11340
11366
  banned_users?: ({
11341
11367
  channel_id?: string | undefined;
11342
11368
  banned_id?: string | undefined;
11343
- banned_avatar?: string | undefined;
11344
- banned_name?: string | undefined;
11369
+ banner_id?: string | undefined;
11345
11370
  ban_time?: number | undefined;
11346
11371
  reason?: string | undefined;
11347
11372
  }[] & ({
11348
11373
  channel_id?: string | undefined;
11349
11374
  banned_id?: string | undefined;
11350
- banned_avatar?: string | undefined;
11351
- banned_name?: string | undefined;
11375
+ banner_id?: string | undefined;
11352
11376
  ban_time?: number | undefined;
11353
11377
  reason?: string | undefined;
11354
11378
  } & {
11355
11379
  channel_id?: string | undefined;
11356
11380
  banned_id?: string | undefined;
11357
- banned_avatar?: string | undefined;
11358
- banned_name?: string | undefined;
11381
+ banner_id?: string | undefined;
11359
11382
  ban_time?: number | undefined;
11360
11383
  reason?: string | undefined;
11361
11384
  } & { [K_3 in Exclude<keyof I_1["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["banned_users"], keyof {
11362
11385
  channel_id?: string | undefined;
11363
11386
  banned_id?: string | undefined;
11364
- banned_avatar?: string | undefined;
11365
- banned_name?: string | undefined;
11387
+ banner_id?: string | undefined;
11366
11388
  ban_time?: number | undefined;
11367
11389
  reason?: string | undefined;
11368
11390
  }[]>]: never; }) | undefined;
@@ -188,6 +188,7 @@ export interface BannedUserEvent {
188
188
  action: number;
189
189
  banner_id: string;
190
190
  channel_id: string;
191
+ clan_id: string;
191
192
  }
192
193
  export interface ChannelCanvas {
193
194
  /** id */
@@ -3322,6 +3323,7 @@ export declare const Envelope: {
3322
3323
  action?: number | undefined;
3323
3324
  banner_id?: string | undefined;
3324
3325
  channel_id?: string | undefined;
3326
+ clan_id?: string | undefined;
3325
3327
  } | undefined;
3326
3328
  } & {
3327
3329
  cid?: string | undefined;
@@ -11225,11 +11227,13 @@ export declare const Envelope: {
11225
11227
  action?: number | undefined;
11226
11228
  banner_id?: string | undefined;
11227
11229
  channel_id?: string | undefined;
11230
+ clan_id?: string | undefined;
11228
11231
  } & {
11229
11232
  user_ids?: (string[] & string[] & { [K_392 in Exclude<keyof I["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
11230
11233
  action?: number | undefined;
11231
11234
  banner_id?: string | undefined;
11232
11235
  channel_id?: string | undefined;
11236
+ clan_id?: string | undefined;
11233
11237
  } & { [K_393 in Exclude<keyof I["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
11234
11238
  } & { [K_394 in Exclude<keyof I, keyof Envelope>]: never; }>(base?: I | undefined): Envelope;
11235
11239
  fromPartial<I_1 extends {
@@ -13249,6 +13253,7 @@ export declare const Envelope: {
13249
13253
  action?: number | undefined;
13250
13254
  banner_id?: string | undefined;
13251
13255
  channel_id?: string | undefined;
13256
+ clan_id?: string | undefined;
13252
13257
  } | undefined;
13253
13258
  } & {
13254
13259
  cid?: string | undefined;
@@ -21152,11 +21157,13 @@ export declare const Envelope: {
21152
21157
  action?: number | undefined;
21153
21158
  banner_id?: string | undefined;
21154
21159
  channel_id?: string | undefined;
21160
+ clan_id?: string | undefined;
21155
21161
  } & {
21156
21162
  user_ids?: (string[] & string[] & { [K_787 in Exclude<keyof I_1["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
21157
21163
  action?: number | undefined;
21158
21164
  banner_id?: string | undefined;
21159
21165
  channel_id?: string | undefined;
21166
+ clan_id?: string | undefined;
21160
21167
  } & { [K_788 in Exclude<keyof I_1["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
21161
21168
  } & { [K_789 in Exclude<keyof I_1, keyof Envelope>]: never; }>(object: I_1): Envelope;
21162
21169
  };
@@ -21178,22 +21185,26 @@ export declare const BannedUserEvent: {
21178
21185
  action?: number | undefined;
21179
21186
  banner_id?: string | undefined;
21180
21187
  channel_id?: string | undefined;
21188
+ clan_id?: string | undefined;
21181
21189
  } & {
21182
21190
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
21183
21191
  action?: number | undefined;
21184
21192
  banner_id?: string | undefined;
21185
21193
  channel_id?: string | undefined;
21194
+ clan_id?: string | undefined;
21186
21195
  } & { [K_1 in Exclude<keyof I, keyof BannedUserEvent>]: never; }>(base?: I | undefined): BannedUserEvent;
21187
21196
  fromPartial<I_1 extends {
21188
21197
  user_ids?: string[] | undefined;
21189
21198
  action?: number | undefined;
21190
21199
  banner_id?: string | undefined;
21191
21200
  channel_id?: string | undefined;
21201
+ clan_id?: string | undefined;
21192
21202
  } & {
21193
21203
  user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
21194
21204
  action?: number | undefined;
21195
21205
  banner_id?: string | undefined;
21196
21206
  channel_id?: string | undefined;
21207
+ clan_id?: string | undefined;
21197
21208
  } & { [K_3 in Exclude<keyof I_1, keyof BannedUserEvent>]: never; }>(object: I_1): BannedUserEvent;
21198
21209
  };
21199
21210
  export declare const ChannelCanvas: {
@@ -15814,7 +15814,7 @@ var FollowEvent = {
15814
15814
  }
15815
15815
  };
15816
15816
  function createBaseBannedUserEvent() {
15817
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15817
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
15818
15818
  }
15819
15819
  var BannedUserEvent = {
15820
15820
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15830,6 +15830,9 @@ var BannedUserEvent = {
15830
15830
  if (message.channel_id !== "") {
15831
15831
  writer.uint32(34).string(message.channel_id);
15832
15832
  }
15833
+ if (message.clan_id !== "") {
15834
+ writer.uint32(42).string(message.clan_id);
15835
+ }
15833
15836
  return writer;
15834
15837
  },
15835
15838
  decode(input, length) {
@@ -15863,6 +15866,12 @@ var BannedUserEvent = {
15863
15866
  }
15864
15867
  message.channel_id = reader.string();
15865
15868
  continue;
15869
+ case 5:
15870
+ if (tag !== 42) {
15871
+ break;
15872
+ }
15873
+ message.clan_id = reader.string();
15874
+ continue;
15866
15875
  }
15867
15876
  if ((tag & 7) === 4 || tag === 0) {
15868
15877
  break;
@@ -15876,7 +15885,8 @@ var BannedUserEvent = {
15876
15885
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15877
15886
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15878
15887
  banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15879
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15888
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15889
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
15880
15890
  };
15881
15891
  },
15882
15892
  toJSON(message) {
@@ -15894,18 +15904,22 @@ var BannedUserEvent = {
15894
15904
  if (message.channel_id !== "") {
15895
15905
  obj.channel_id = message.channel_id;
15896
15906
  }
15907
+ if (message.clan_id !== "") {
15908
+ obj.clan_id = message.clan_id;
15909
+ }
15897
15910
  return obj;
15898
15911
  },
15899
15912
  create(base) {
15900
15913
  return BannedUserEvent.fromPartial(base != null ? base : {});
15901
15914
  },
15902
15915
  fromPartial(object) {
15903
- var _a, _b, _c, _d;
15916
+ var _a, _b, _c, _d, _e;
15904
15917
  const message = createBaseBannedUserEvent();
15905
15918
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15906
15919
  message.action = (_b = object.action) != null ? _b : 0;
15907
15920
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15908
15921
  message.channel_id = (_d = object.channel_id) != null ? _d : "";
15922
+ message.clan_id = (_e = object.clan_id) != null ? _e : "";
15909
15923
  return message;
15910
15924
  }
15911
15925
  };
@@ -15801,7 +15801,7 @@ var FollowEvent = {
15801
15801
  }
15802
15802
  };
15803
15803
  function createBaseBannedUserEvent() {
15804
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15804
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
15805
15805
  }
15806
15806
  var BannedUserEvent = {
15807
15807
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15817,6 +15817,9 @@ var BannedUserEvent = {
15817
15817
  if (message.channel_id !== "") {
15818
15818
  writer.uint32(34).string(message.channel_id);
15819
15819
  }
15820
+ if (message.clan_id !== "") {
15821
+ writer.uint32(42).string(message.clan_id);
15822
+ }
15820
15823
  return writer;
15821
15824
  },
15822
15825
  decode(input, length) {
@@ -15850,6 +15853,12 @@ var BannedUserEvent = {
15850
15853
  }
15851
15854
  message.channel_id = reader.string();
15852
15855
  continue;
15856
+ case 5:
15857
+ if (tag !== 42) {
15858
+ break;
15859
+ }
15860
+ message.clan_id = reader.string();
15861
+ continue;
15853
15862
  }
15854
15863
  if ((tag & 7) === 4 || tag === 0) {
15855
15864
  break;
@@ -15863,7 +15872,8 @@ var BannedUserEvent = {
15863
15872
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15864
15873
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15865
15874
  banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15866
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15875
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15876
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
15867
15877
  };
15868
15878
  },
15869
15879
  toJSON(message) {
@@ -15881,18 +15891,22 @@ var BannedUserEvent = {
15881
15891
  if (message.channel_id !== "") {
15882
15892
  obj.channel_id = message.channel_id;
15883
15893
  }
15894
+ if (message.clan_id !== "") {
15895
+ obj.clan_id = message.clan_id;
15896
+ }
15884
15897
  return obj;
15885
15898
  },
15886
15899
  create(base) {
15887
15900
  return BannedUserEvent.fromPartial(base != null ? base : {});
15888
15901
  },
15889
15902
  fromPartial(object) {
15890
- var _a, _b, _c, _d;
15903
+ var _a, _b, _c, _d, _e;
15891
15904
  const message = createBaseBannedUserEvent();
15892
15905
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15893
15906
  message.action = (_b = object.action) != null ? _b : 0;
15894
15907
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15895
15908
  message.channel_id = (_d = object.channel_id) != null ? _d : "";
15909
+ message.clan_id = (_e = object.clan_id) != null ? _e : "";
15896
15910
  return message;
15897
15911
  }
15898
15912
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.54",
3
+ "version": "1.8.55",
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
@@ -455,6 +455,7 @@ export interface BannedUserEvent {
455
455
  action: number;
456
456
  banner_id: string;
457
457
  channel_id: string;
458
+ clan_id: string;
458
459
  }
459
460
 
460
461
  export interface ChannelCanvas {
@@ -3566,7 +3567,7 @@ export const FollowEvent = {
3566
3567
  };
3567
3568
 
3568
3569
  function createBaseBannedUserEvent(): BannedUserEvent {
3569
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
3570
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
3570
3571
  }
3571
3572
 
3572
3573
  export const BannedUserEvent = {
@@ -3583,6 +3584,9 @@ export const BannedUserEvent = {
3583
3584
  if (message.channel_id !== "") {
3584
3585
  writer.uint32(34).string(message.channel_id);
3585
3586
  }
3587
+ if (message.clan_id !== "") {
3588
+ writer.uint32(42).string(message.clan_id);
3589
+ }
3586
3590
  return writer;
3587
3591
  },
3588
3592
 
@@ -3621,6 +3625,13 @@ export const BannedUserEvent = {
3621
3625
 
3622
3626
  message.channel_id = reader.string();
3623
3627
  continue;
3628
+ case 5:
3629
+ if (tag !== 42) {
3630
+ break;
3631
+ }
3632
+
3633
+ message.clan_id = reader.string();
3634
+ continue;
3624
3635
  }
3625
3636
  if ((tag & 7) === 4 || tag === 0) {
3626
3637
  break;
@@ -3636,6 +3647,7 @@ export const BannedUserEvent = {
3636
3647
  action: isSet(object.action) ? globalThis.Number(object.action) : 0,
3637
3648
  banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
3638
3649
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
3650
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
3639
3651
  };
3640
3652
  },
3641
3653
 
@@ -3653,6 +3665,9 @@ export const BannedUserEvent = {
3653
3665
  if (message.channel_id !== "") {
3654
3666
  obj.channel_id = message.channel_id;
3655
3667
  }
3668
+ if (message.clan_id !== "") {
3669
+ obj.clan_id = message.clan_id;
3670
+ }
3656
3671
  return obj;
3657
3672
  },
3658
3673
 
@@ -3665,6 +3680,7 @@ export const BannedUserEvent = {
3665
3680
  message.action = object.action ?? 0;
3666
3681
  message.banner_id = object.banner_id ?? "";
3667
3682
  message.channel_id = object.channel_id ?? "";
3683
+ message.clan_id = object.clan_id ?? "";
3668
3684
  return message;
3669
3685
  },
3670
3686
  };