mezon-js-protobuf 1.8.51 → 1.8.53

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
@@ -1397,9 +1397,11 @@ export interface UpdateClanProfileRequest {
1397
1397
  /** id clanc */
1398
1398
  clan_id: string;
1399
1399
  /** nick_name new */
1400
- nick_name: string;
1400
+ nick_name:
1401
+ | string
1402
+ | undefined;
1401
1403
  /** avatar */
1402
- avatar: string;
1404
+ avatar: string | undefined;
1403
1405
  }
1404
1406
 
1405
1407
  /** Update Clan Order Request */
@@ -1741,6 +1743,28 @@ export interface BanClanUsersRequest {
1741
1743
  user_ids: string[];
1742
1744
  /** ban time */
1743
1745
  ban_time: number;
1746
+ /** The reason */
1747
+ reason: string;
1748
+ }
1749
+
1750
+ /** list banned user */
1751
+ export interface BannedUser {
1752
+ /** The channel ID to ban */
1753
+ channel_id: string;
1754
+ /** The banned user. */
1755
+ banned_id: string;
1756
+ /** The avatar */
1757
+ banned_avatar: string;
1758
+ /** The name */
1759
+ banned_name: string;
1760
+ /** ban time */
1761
+ ban_time: number;
1762
+ /** The reason */
1763
+ reason: string;
1764
+ }
1765
+
1766
+ export interface bannedUserList {
1767
+ banned_users: BannedUser[];
1744
1768
  }
1745
1769
 
1746
1770
  /** Leave a channel. */
@@ -13276,7 +13300,7 @@ export const ClanProfileRequest = {
13276
13300
  };
13277
13301
 
13278
13302
  function createBaseUpdateClanProfileRequest(): UpdateClanProfileRequest {
13279
- return { clan_id: "", nick_name: "", avatar: "" };
13303
+ return { clan_id: "", nick_name: undefined, avatar: undefined };
13280
13304
  }
13281
13305
 
13282
13306
  export const UpdateClanProfileRequest = {
@@ -13284,11 +13308,11 @@ export const UpdateClanProfileRequest = {
13284
13308
  if (message.clan_id !== "") {
13285
13309
  writer.uint32(10).string(message.clan_id);
13286
13310
  }
13287
- if (message.nick_name !== "") {
13288
- writer.uint32(18).string(message.nick_name);
13311
+ if (message.nick_name !== undefined) {
13312
+ StringValue.encode({ value: message.nick_name! }, writer.uint32(18).fork()).ldelim();
13289
13313
  }
13290
- if (message.avatar !== "") {
13291
- writer.uint32(26).string(message.avatar);
13314
+ if (message.avatar !== undefined) {
13315
+ StringValue.encode({ value: message.avatar! }, writer.uint32(26).fork()).ldelim();
13292
13316
  }
13293
13317
  return writer;
13294
13318
  },
@@ -13312,14 +13336,14 @@ export const UpdateClanProfileRequest = {
13312
13336
  break;
13313
13337
  }
13314
13338
 
13315
- message.nick_name = reader.string();
13339
+ message.nick_name = StringValue.decode(reader, reader.uint32()).value;
13316
13340
  continue;
13317
13341
  case 3:
13318
13342
  if (tag !== 26) {
13319
13343
  break;
13320
13344
  }
13321
13345
 
13322
- message.avatar = reader.string();
13346
+ message.avatar = StringValue.decode(reader, reader.uint32()).value;
13323
13347
  continue;
13324
13348
  }
13325
13349
  if ((tag & 7) === 4 || tag === 0) {
@@ -13333,8 +13357,8 @@ export const UpdateClanProfileRequest = {
13333
13357
  fromJSON(object: any): UpdateClanProfileRequest {
13334
13358
  return {
13335
13359
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
13336
- nick_name: isSet(object.nick_name) ? globalThis.String(object.nick_name) : "",
13337
- avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
13360
+ nick_name: isSet(object.nick_name) ? String(object.nick_name) : undefined,
13361
+ avatar: isSet(object.avatar) ? String(object.avatar) : undefined,
13338
13362
  };
13339
13363
  },
13340
13364
 
@@ -13343,10 +13367,10 @@ export const UpdateClanProfileRequest = {
13343
13367
  if (message.clan_id !== "") {
13344
13368
  obj.clan_id = message.clan_id;
13345
13369
  }
13346
- if (message.nick_name !== "") {
13370
+ if (message.nick_name !== undefined) {
13347
13371
  obj.nick_name = message.nick_name;
13348
13372
  }
13349
- if (message.avatar !== "") {
13373
+ if (message.avatar !== undefined) {
13350
13374
  obj.avatar = message.avatar;
13351
13375
  }
13352
13376
  return obj;
@@ -13358,8 +13382,8 @@ export const UpdateClanProfileRequest = {
13358
13382
  fromPartial<I extends Exact<DeepPartial<UpdateClanProfileRequest>, I>>(object: I): UpdateClanProfileRequest {
13359
13383
  const message = createBaseUpdateClanProfileRequest();
13360
13384
  message.clan_id = object.clan_id ?? "";
13361
- message.nick_name = object.nick_name ?? "";
13362
- message.avatar = object.avatar ?? "";
13385
+ message.nick_name = object.nick_name ?? undefined;
13386
+ message.avatar = object.avatar ?? undefined;
13363
13387
  return message;
13364
13388
  },
13365
13389
  };
@@ -16301,7 +16325,7 @@ export const RemoveClanUsersRequest = {
16301
16325
  };
16302
16326
 
16303
16327
  function createBaseBanClanUsersRequest(): BanClanUsersRequest {
16304
- return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0 };
16328
+ return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0, reason: "" };
16305
16329
  }
16306
16330
 
16307
16331
  export const BanClanUsersRequest = {
@@ -16318,6 +16342,9 @@ export const BanClanUsersRequest = {
16318
16342
  if (message.ban_time !== 0) {
16319
16343
  writer.uint32(32).int32(message.ban_time);
16320
16344
  }
16345
+ if (message.reason !== "") {
16346
+ writer.uint32(42).string(message.reason);
16347
+ }
16321
16348
  return writer;
16322
16349
  },
16323
16350
 
@@ -16356,6 +16383,13 @@ export const BanClanUsersRequest = {
16356
16383
 
16357
16384
  message.ban_time = reader.int32();
16358
16385
  continue;
16386
+ case 5:
16387
+ if (tag !== 42) {
16388
+ break;
16389
+ }
16390
+
16391
+ message.reason = reader.string();
16392
+ continue;
16359
16393
  }
16360
16394
  if ((tag & 7) === 4 || tag === 0) {
16361
16395
  break;
@@ -16371,6 +16405,7 @@ export const BanClanUsersRequest = {
16371
16405
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16372
16406
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
16373
16407
  ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16408
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16374
16409
  };
16375
16410
  },
16376
16411
 
@@ -16388,6 +16423,9 @@ export const BanClanUsersRequest = {
16388
16423
  if (message.ban_time !== 0) {
16389
16424
  obj.ban_time = Math.round(message.ban_time);
16390
16425
  }
16426
+ if (message.reason !== "") {
16427
+ obj.reason = message.reason;
16428
+ }
16391
16429
  return obj;
16392
16430
  },
16393
16431
 
@@ -16400,6 +16438,202 @@ export const BanClanUsersRequest = {
16400
16438
  message.channel_id = object.channel_id ?? "";
16401
16439
  message.user_ids = object.user_ids?.map((e) => e) || [];
16402
16440
  message.ban_time = object.ban_time ?? 0;
16441
+ message.reason = object.reason ?? "";
16442
+ return message;
16443
+ },
16444
+ };
16445
+
16446
+ function createBaseBannedUser(): BannedUser {
16447
+ return { channel_id: "", banned_id: "", banned_avatar: "", banned_name: "", ban_time: 0, reason: "" };
16448
+ }
16449
+
16450
+ export const BannedUser = {
16451
+ encode(message: BannedUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16452
+ if (message.channel_id !== "") {
16453
+ writer.uint32(10).string(message.channel_id);
16454
+ }
16455
+ if (message.banned_id !== "") {
16456
+ writer.uint32(18).string(message.banned_id);
16457
+ }
16458
+ if (message.banned_avatar !== "") {
16459
+ writer.uint32(26).string(message.banned_avatar);
16460
+ }
16461
+ if (message.banned_name !== "") {
16462
+ writer.uint32(34).string(message.banned_name);
16463
+ }
16464
+ if (message.ban_time !== 0) {
16465
+ writer.uint32(40).int32(message.ban_time);
16466
+ }
16467
+ if (message.reason !== "") {
16468
+ writer.uint32(50).string(message.reason);
16469
+ }
16470
+ return writer;
16471
+ },
16472
+
16473
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUser {
16474
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16475
+ let end = length === undefined ? reader.len : reader.pos + length;
16476
+ const message = createBaseBannedUser();
16477
+ while (reader.pos < end) {
16478
+ const tag = reader.uint32();
16479
+ switch (tag >>> 3) {
16480
+ case 1:
16481
+ if (tag !== 10) {
16482
+ break;
16483
+ }
16484
+
16485
+ message.channel_id = reader.string();
16486
+ continue;
16487
+ case 2:
16488
+ if (tag !== 18) {
16489
+ break;
16490
+ }
16491
+
16492
+ message.banned_id = reader.string();
16493
+ continue;
16494
+ case 3:
16495
+ if (tag !== 26) {
16496
+ break;
16497
+ }
16498
+
16499
+ message.banned_avatar = reader.string();
16500
+ continue;
16501
+ case 4:
16502
+ if (tag !== 34) {
16503
+ break;
16504
+ }
16505
+
16506
+ message.banned_name = reader.string();
16507
+ continue;
16508
+ case 5:
16509
+ if (tag !== 40) {
16510
+ break;
16511
+ }
16512
+
16513
+ message.ban_time = reader.int32();
16514
+ continue;
16515
+ case 6:
16516
+ if (tag !== 50) {
16517
+ break;
16518
+ }
16519
+
16520
+ message.reason = reader.string();
16521
+ continue;
16522
+ }
16523
+ if ((tag & 7) === 4 || tag === 0) {
16524
+ break;
16525
+ }
16526
+ reader.skipType(tag & 7);
16527
+ }
16528
+ return message;
16529
+ },
16530
+
16531
+ fromJSON(object: any): BannedUser {
16532
+ return {
16533
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16534
+ banned_id: isSet(object.banned_id) ? globalThis.String(object.banned_id) : "",
16535
+ banned_avatar: isSet(object.banned_avatar) ? globalThis.String(object.banned_avatar) : "",
16536
+ banned_name: isSet(object.banned_name) ? globalThis.String(object.banned_name) : "",
16537
+ ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16538
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16539
+ };
16540
+ },
16541
+
16542
+ toJSON(message: BannedUser): unknown {
16543
+ const obj: any = {};
16544
+ if (message.channel_id !== "") {
16545
+ obj.channel_id = message.channel_id;
16546
+ }
16547
+ if (message.banned_id !== "") {
16548
+ obj.banned_id = message.banned_id;
16549
+ }
16550
+ if (message.banned_avatar !== "") {
16551
+ obj.banned_avatar = message.banned_avatar;
16552
+ }
16553
+ if (message.banned_name !== "") {
16554
+ obj.banned_name = message.banned_name;
16555
+ }
16556
+ if (message.ban_time !== 0) {
16557
+ obj.ban_time = Math.round(message.ban_time);
16558
+ }
16559
+ if (message.reason !== "") {
16560
+ obj.reason = message.reason;
16561
+ }
16562
+ return obj;
16563
+ },
16564
+
16565
+ create<I extends Exact<DeepPartial<BannedUser>, I>>(base?: I): BannedUser {
16566
+ return BannedUser.fromPartial(base ?? ({} as any));
16567
+ },
16568
+ fromPartial<I extends Exact<DeepPartial<BannedUser>, I>>(object: I): BannedUser {
16569
+ const message = createBaseBannedUser();
16570
+ message.channel_id = object.channel_id ?? "";
16571
+ message.banned_id = object.banned_id ?? "";
16572
+ message.banned_avatar = object.banned_avatar ?? "";
16573
+ message.banned_name = object.banned_name ?? "";
16574
+ message.ban_time = object.ban_time ?? 0;
16575
+ message.reason = object.reason ?? "";
16576
+ return message;
16577
+ },
16578
+ };
16579
+
16580
+ function createBasebannedUserList(): bannedUserList {
16581
+ return { banned_users: [] };
16582
+ }
16583
+
16584
+ export const bannedUserList = {
16585
+ encode(message: bannedUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16586
+ for (const v of message.banned_users) {
16587
+ BannedUser.encode(v!, writer.uint32(10).fork()).ldelim();
16588
+ }
16589
+ return writer;
16590
+ },
16591
+
16592
+ decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList {
16593
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16594
+ let end = length === undefined ? reader.len : reader.pos + length;
16595
+ const message = createBasebannedUserList();
16596
+ while (reader.pos < end) {
16597
+ const tag = reader.uint32();
16598
+ switch (tag >>> 3) {
16599
+ case 1:
16600
+ if (tag !== 10) {
16601
+ break;
16602
+ }
16603
+
16604
+ message.banned_users.push(BannedUser.decode(reader, reader.uint32()));
16605
+ continue;
16606
+ }
16607
+ if ((tag & 7) === 4 || tag === 0) {
16608
+ break;
16609
+ }
16610
+ reader.skipType(tag & 7);
16611
+ }
16612
+ return message;
16613
+ },
16614
+
16615
+ fromJSON(object: any): bannedUserList {
16616
+ return {
16617
+ banned_users: globalThis.Array.isArray(object?.banned_users)
16618
+ ? object.banned_users.map((e: any) => BannedUser.fromJSON(e))
16619
+ : [],
16620
+ };
16621
+ },
16622
+
16623
+ toJSON(message: bannedUserList): unknown {
16624
+ const obj: any = {};
16625
+ if (message.banned_users?.length) {
16626
+ obj.banned_users = message.banned_users.map((e) => BannedUser.toJSON(e));
16627
+ }
16628
+ return obj;
16629
+ },
16630
+
16631
+ create<I extends Exact<DeepPartial<bannedUserList>, I>>(base?: I): bannedUserList {
16632
+ return bannedUserList.fromPartial(base ?? ({} as any));
16633
+ },
16634
+ fromPartial<I extends Exact<DeepPartial<bannedUserList>, I>>(object: I): bannedUserList {
16635
+ const message = createBasebannedUserList();
16636
+ message.banned_users = object.banned_users?.map((e) => BannedUser.fromPartial(e)) || [];
16403
16637
  return message;
16404
16638
  },
16405
16639
  };
@@ -1050,9 +1050,9 @@ export interface UpdateClanProfileRequest {
1050
1050
  /** id clanc */
1051
1051
  clan_id: string;
1052
1052
  /** nick_name new */
1053
- nick_name: string;
1053
+ nick_name: string | undefined;
1054
1054
  /** avatar */
1055
- avatar: string;
1055
+ avatar: string | undefined;
1056
1056
  }
1057
1057
  /** Update Clan Order Request */
1058
1058
  export interface UpdateClanOrderRequest {
@@ -1344,6 +1344,26 @@ export interface BanClanUsersRequest {
1344
1344
  user_ids: string[];
1345
1345
  /** ban time */
1346
1346
  ban_time: number;
1347
+ /** The reason */
1348
+ reason: string;
1349
+ }
1350
+ /** list banned user */
1351
+ export interface BannedUser {
1352
+ /** The channel ID to ban */
1353
+ channel_id: string;
1354
+ /** The banned user. */
1355
+ banned_id: string;
1356
+ /** The avatar */
1357
+ banned_avatar: string;
1358
+ /** The name */
1359
+ banned_name: string;
1360
+ /** ban time */
1361
+ ban_time: number;
1362
+ /** The reason */
1363
+ reason: string;
1364
+ }
1365
+ export interface bannedUserList {
1366
+ banned_users: BannedUser[];
1347
1367
  }
1348
1368
  /** Leave a channel. */
1349
1369
  export interface LeaveThreadRequest {
@@ -11185,24 +11205,150 @@ export declare const BanClanUsersRequest: {
11185
11205
  channel_id?: string | undefined;
11186
11206
  user_ids?: string[] | undefined;
11187
11207
  ban_time?: number | undefined;
11208
+ reason?: string | undefined;
11188
11209
  } & {
11189
11210
  clan_id?: string | undefined;
11190
11211
  channel_id?: string | undefined;
11191
11212
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
11192
11213
  ban_time?: number | undefined;
11214
+ reason?: string | undefined;
11193
11215
  } & { [K_1 in Exclude<keyof I, keyof BanClanUsersRequest>]: never; }>(base?: I | undefined): BanClanUsersRequest;
11194
11216
  fromPartial<I_1 extends {
11195
11217
  clan_id?: string | undefined;
11196
11218
  channel_id?: string | undefined;
11197
11219
  user_ids?: string[] | undefined;
11198
11220
  ban_time?: number | undefined;
11221
+ reason?: string | undefined;
11199
11222
  } & {
11200
11223
  clan_id?: string | undefined;
11201
11224
  channel_id?: string | undefined;
11202
11225
  user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
11203
11226
  ban_time?: number | undefined;
11227
+ reason?: string | undefined;
11204
11228
  } & { [K_3 in Exclude<keyof I_1, keyof BanClanUsersRequest>]: never; }>(object: I_1): BanClanUsersRequest;
11205
11229
  };
11230
+ export declare const BannedUser: {
11231
+ encode(message: BannedUser, writer?: _m0.Writer): _m0.Writer;
11232
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUser;
11233
+ fromJSON(object: any): BannedUser;
11234
+ toJSON(message: BannedUser): unknown;
11235
+ create<I extends {
11236
+ channel_id?: string | undefined;
11237
+ banned_id?: string | undefined;
11238
+ banned_avatar?: string | undefined;
11239
+ banned_name?: string | undefined;
11240
+ ban_time?: number | undefined;
11241
+ reason?: string | undefined;
11242
+ } & {
11243
+ channel_id?: string | undefined;
11244
+ banned_id?: string | undefined;
11245
+ banned_avatar?: string | undefined;
11246
+ banned_name?: string | undefined;
11247
+ ban_time?: number | undefined;
11248
+ reason?: string | undefined;
11249
+ } & { [K in Exclude<keyof I, keyof BannedUser>]: never; }>(base?: I | undefined): BannedUser;
11250
+ fromPartial<I_1 extends {
11251
+ channel_id?: string | undefined;
11252
+ banned_id?: string | undefined;
11253
+ banned_avatar?: string | undefined;
11254
+ banned_name?: string | undefined;
11255
+ ban_time?: number | undefined;
11256
+ reason?: string | undefined;
11257
+ } & {
11258
+ channel_id?: string | undefined;
11259
+ banned_id?: string | undefined;
11260
+ banned_avatar?: string | undefined;
11261
+ banned_name?: string | undefined;
11262
+ ban_time?: number | undefined;
11263
+ reason?: string | undefined;
11264
+ } & { [K_1 in Exclude<keyof I_1, keyof BannedUser>]: never; }>(object: I_1): BannedUser;
11265
+ };
11266
+ export declare const bannedUserList: {
11267
+ encode(message: bannedUserList, writer?: _m0.Writer): _m0.Writer;
11268
+ decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList;
11269
+ fromJSON(object: any): bannedUserList;
11270
+ toJSON(message: bannedUserList): unknown;
11271
+ create<I extends {
11272
+ banned_users?: {
11273
+ channel_id?: string | undefined;
11274
+ banned_id?: string | undefined;
11275
+ banned_avatar?: string | undefined;
11276
+ banned_name?: string | undefined;
11277
+ ban_time?: number | undefined;
11278
+ reason?: string | undefined;
11279
+ }[] | undefined;
11280
+ } & {
11281
+ banned_users?: ({
11282
+ channel_id?: string | undefined;
11283
+ banned_id?: string | undefined;
11284
+ banned_avatar?: string | undefined;
11285
+ banned_name?: string | undefined;
11286
+ ban_time?: number | undefined;
11287
+ reason?: string | undefined;
11288
+ }[] & ({
11289
+ channel_id?: string | undefined;
11290
+ banned_id?: string | undefined;
11291
+ banned_avatar?: string | undefined;
11292
+ banned_name?: string | undefined;
11293
+ ban_time?: number | undefined;
11294
+ reason?: string | undefined;
11295
+ } & {
11296
+ channel_id?: string | undefined;
11297
+ banned_id?: string | undefined;
11298
+ banned_avatar?: string | undefined;
11299
+ banned_name?: string | undefined;
11300
+ ban_time?: number | undefined;
11301
+ reason?: string | undefined;
11302
+ } & { [K in Exclude<keyof I["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_1 in Exclude<keyof I["banned_users"], keyof {
11303
+ channel_id?: string | undefined;
11304
+ banned_id?: string | undefined;
11305
+ banned_avatar?: string | undefined;
11306
+ banned_name?: string | undefined;
11307
+ ban_time?: number | undefined;
11308
+ reason?: string | undefined;
11309
+ }[]>]: never; }) | undefined;
11310
+ } & { [K_2 in Exclude<keyof I, "banned_users">]: never; }>(base?: I | undefined): bannedUserList;
11311
+ fromPartial<I_1 extends {
11312
+ banned_users?: {
11313
+ channel_id?: string | undefined;
11314
+ banned_id?: string | undefined;
11315
+ banned_avatar?: string | undefined;
11316
+ banned_name?: string | undefined;
11317
+ ban_time?: number | undefined;
11318
+ reason?: string | undefined;
11319
+ }[] | undefined;
11320
+ } & {
11321
+ banned_users?: ({
11322
+ channel_id?: string | undefined;
11323
+ banned_id?: string | undefined;
11324
+ banned_avatar?: string | undefined;
11325
+ banned_name?: string | undefined;
11326
+ ban_time?: number | undefined;
11327
+ reason?: string | undefined;
11328
+ }[] & ({
11329
+ channel_id?: string | undefined;
11330
+ banned_id?: string | undefined;
11331
+ banned_avatar?: string | undefined;
11332
+ banned_name?: string | undefined;
11333
+ ban_time?: number | undefined;
11334
+ reason?: string | undefined;
11335
+ } & {
11336
+ channel_id?: string | undefined;
11337
+ banned_id?: string | undefined;
11338
+ banned_avatar?: string | undefined;
11339
+ banned_name?: string | undefined;
11340
+ ban_time?: number | undefined;
11341
+ reason?: string | undefined;
11342
+ } & { [K_3 in Exclude<keyof I_1["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["banned_users"], keyof {
11343
+ channel_id?: string | undefined;
11344
+ banned_id?: string | undefined;
11345
+ banned_avatar?: string | undefined;
11346
+ banned_name?: string | undefined;
11347
+ ban_time?: number | undefined;
11348
+ reason?: string | undefined;
11349
+ }[]>]: never; }) | undefined;
11350
+ } & { [K_5 in Exclude<keyof I_1, "banned_users">]: never; }>(object: I_1): bannedUserList;
11351
+ };
11206
11352
  export declare const LeaveThreadRequest: {
11207
11353
  encode(message: LeaveThreadRequest, writer?: _m0.Writer): _m0.Writer;
11208
11354
  decode(input: _m0.Reader | Uint8Array, length?: number): LeaveThreadRequest;
@@ -187,6 +187,7 @@ export interface BannedUserEvent {
187
187
  user_ids: string[];
188
188
  action: number;
189
189
  banner_id: string;
190
+ channel_id: string;
190
191
  }
191
192
  export interface ChannelCanvas {
192
193
  /** id */
@@ -771,6 +772,8 @@ export interface ChannelCreatedEvent {
771
772
  app_id: string;
772
773
  /** clan_name */
773
774
  clan_name: string;
775
+ /** channel avatar */
776
+ channel_avatar: string;
774
777
  }
775
778
  export interface CategoryEvent {
776
779
  /** Category creator */
@@ -972,6 +975,8 @@ export interface UserChannelAdded {
972
975
  create_time_second: number;
973
976
  /** */
974
977
  active: number;
978
+ /** member count for GROUP */
979
+ member_count: number;
975
980
  }
976
981
  /** */
977
982
  export interface UserChannelRemoved {
@@ -1726,6 +1731,7 @@ export declare const Envelope: {
1726
1731
  status?: number | undefined;
1727
1732
  app_id?: string | undefined;
1728
1733
  clan_name?: string | undefined;
1734
+ channel_avatar?: string | undefined;
1729
1735
  } | undefined;
1730
1736
  channel_deleted_event?: {
1731
1737
  clan_id?: string | undefined;
@@ -1886,6 +1892,7 @@ export declare const Envelope: {
1886
1892
  } | undefined;
1887
1893
  create_time_second?: number | undefined;
1888
1894
  active?: number | undefined;
1895
+ member_count?: number | undefined;
1889
1896
  } | undefined;
1890
1897
  user_channel_removed_event?: {
1891
1898
  channel_id?: string | undefined;
@@ -3321,6 +3328,7 @@ export declare const Envelope: {
3321
3328
  user_ids?: string[] | undefined;
3322
3329
  action?: number | undefined;
3323
3330
  banner_id?: string | undefined;
3331
+ channel_id?: string | undefined;
3324
3332
  } | undefined;
3325
3333
  } & {
3326
3334
  cid?: string | undefined;
@@ -4729,6 +4737,7 @@ export declare const Envelope: {
4729
4737
  status?: number | undefined;
4730
4738
  app_id?: string | undefined;
4731
4739
  clan_name?: string | undefined;
4740
+ channel_avatar?: string | undefined;
4732
4741
  } & {
4733
4742
  clan_id?: string | undefined;
4734
4743
  category_id?: string | undefined;
@@ -4741,6 +4750,7 @@ export declare const Envelope: {
4741
4750
  status?: number | undefined;
4742
4751
  app_id?: string | undefined;
4743
4752
  clan_name?: string | undefined;
4753
+ channel_avatar?: string | undefined;
4744
4754
  } & { [K_75 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
4745
4755
  channel_deleted_event?: ({
4746
4756
  clan_id?: string | undefined;
@@ -4950,6 +4960,7 @@ export declare const Envelope: {
4950
4960
  } | undefined;
4951
4961
  create_time_second?: number | undefined;
4952
4962
  active?: number | undefined;
4963
+ member_count?: number | undefined;
4953
4964
  } & {
4954
4965
  channel_desc?: ({
4955
4966
  clan_id?: string | undefined;
@@ -5244,6 +5255,7 @@ export declare const Envelope: {
5244
5255
  } & { [K_100 in Exclude<keyof I["user_channel_added_event"]["caller"], keyof UserProfileRedis>]: never; }) | undefined;
5245
5256
  create_time_second?: number | undefined;
5246
5257
  active?: number | undefined;
5258
+ member_count?: number | undefined;
5247
5259
  } & { [K_101 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
5248
5260
  user_channel_removed_event?: ({
5249
5261
  channel_id?: string | undefined;
@@ -11235,10 +11247,12 @@ export declare const Envelope: {
11235
11247
  user_ids?: string[] | undefined;
11236
11248
  action?: number | undefined;
11237
11249
  banner_id?: string | undefined;
11250
+ channel_id?: string | undefined;
11238
11251
  } & {
11239
11252
  user_ids?: (string[] & string[] & { [K_392 in Exclude<keyof I["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
11240
11253
  action?: number | undefined;
11241
11254
  banner_id?: string | undefined;
11255
+ channel_id?: string | undefined;
11242
11256
  } & { [K_393 in Exclude<keyof I["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
11243
11257
  } & { [K_394 in Exclude<keyof I, keyof Envelope>]: never; }>(base?: I | undefined): Envelope;
11244
11258
  fromPartial<I_1 extends {
@@ -11665,6 +11679,7 @@ export declare const Envelope: {
11665
11679
  status?: number | undefined;
11666
11680
  app_id?: string | undefined;
11667
11681
  clan_name?: string | undefined;
11682
+ channel_avatar?: string | undefined;
11668
11683
  } | undefined;
11669
11684
  channel_deleted_event?: {
11670
11685
  clan_id?: string | undefined;
@@ -11825,6 +11840,7 @@ export declare const Envelope: {
11825
11840
  } | undefined;
11826
11841
  create_time_second?: number | undefined;
11827
11842
  active?: number | undefined;
11843
+ member_count?: number | undefined;
11828
11844
  } | undefined;
11829
11845
  user_channel_removed_event?: {
11830
11846
  channel_id?: string | undefined;
@@ -13260,6 +13276,7 @@ export declare const Envelope: {
13260
13276
  user_ids?: string[] | undefined;
13261
13277
  action?: number | undefined;
13262
13278
  banner_id?: string | undefined;
13279
+ channel_id?: string | undefined;
13263
13280
  } | undefined;
13264
13281
  } & {
13265
13282
  cid?: string | undefined;
@@ -14668,6 +14685,7 @@ export declare const Envelope: {
14668
14685
  status?: number | undefined;
14669
14686
  app_id?: string | undefined;
14670
14687
  clan_name?: string | undefined;
14688
+ channel_avatar?: string | undefined;
14671
14689
  } & {
14672
14690
  clan_id?: string | undefined;
14673
14691
  category_id?: string | undefined;
@@ -14680,6 +14698,7 @@ export declare const Envelope: {
14680
14698
  status?: number | undefined;
14681
14699
  app_id?: string | undefined;
14682
14700
  clan_name?: string | undefined;
14701
+ channel_avatar?: string | undefined;
14683
14702
  } & { [K_470 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
14684
14703
  channel_deleted_event?: ({
14685
14704
  clan_id?: string | undefined;
@@ -14889,6 +14908,7 @@ export declare const Envelope: {
14889
14908
  } | undefined;
14890
14909
  create_time_second?: number | undefined;
14891
14910
  active?: number | undefined;
14911
+ member_count?: number | undefined;
14892
14912
  } & {
14893
14913
  channel_desc?: ({
14894
14914
  clan_id?: string | undefined;
@@ -15183,6 +15203,7 @@ export declare const Envelope: {
15183
15203
  } & { [K_495 in Exclude<keyof I_1["user_channel_added_event"]["caller"], keyof UserProfileRedis>]: never; }) | undefined;
15184
15204
  create_time_second?: number | undefined;
15185
15205
  active?: number | undefined;
15206
+ member_count?: number | undefined;
15186
15207
  } & { [K_496 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
15187
15208
  user_channel_removed_event?: ({
15188
15209
  channel_id?: string | undefined;
@@ -21174,10 +21195,12 @@ export declare const Envelope: {
21174
21195
  user_ids?: string[] | undefined;
21175
21196
  action?: number | undefined;
21176
21197
  banner_id?: string | undefined;
21198
+ channel_id?: string | undefined;
21177
21199
  } & {
21178
21200
  user_ids?: (string[] & string[] & { [K_787 in Exclude<keyof I_1["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
21179
21201
  action?: number | undefined;
21180
21202
  banner_id?: string | undefined;
21203
+ channel_id?: string | undefined;
21181
21204
  } & { [K_788 in Exclude<keyof I_1["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
21182
21205
  } & { [K_789 in Exclude<keyof I_1, keyof Envelope>]: never; }>(object: I_1): Envelope;
21183
21206
  };
@@ -21198,19 +21221,23 @@ export declare const BannedUserEvent: {
21198
21221
  user_ids?: string[] | undefined;
21199
21222
  action?: number | undefined;
21200
21223
  banner_id?: string | undefined;
21224
+ channel_id?: string | undefined;
21201
21225
  } & {
21202
21226
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
21203
21227
  action?: number | undefined;
21204
21228
  banner_id?: string | undefined;
21229
+ channel_id?: string | undefined;
21205
21230
  } & { [K_1 in Exclude<keyof I, keyof BannedUserEvent>]: never; }>(base?: I | undefined): BannedUserEvent;
21206
21231
  fromPartial<I_1 extends {
21207
21232
  user_ids?: string[] | undefined;
21208
21233
  action?: number | undefined;
21209
21234
  banner_id?: string | undefined;
21235
+ channel_id?: string | undefined;
21210
21236
  } & {
21211
21237
  user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
21212
21238
  action?: number | undefined;
21213
21239
  banner_id?: string | undefined;
21240
+ channel_id?: string | undefined;
21214
21241
  } & { [K_3 in Exclude<keyof I_1, keyof BannedUserEvent>]: never; }>(object: I_1): BannedUserEvent;
21215
21242
  };
21216
21243
  export declare const ChannelCanvas: {
@@ -25442,6 +25469,7 @@ export declare const ChannelCreatedEvent: {
25442
25469
  status?: number | undefined;
25443
25470
  app_id?: string | undefined;
25444
25471
  clan_name?: string | undefined;
25472
+ channel_avatar?: string | undefined;
25445
25473
  } & {
25446
25474
  clan_id?: string | undefined;
25447
25475
  category_id?: string | undefined;
@@ -25454,6 +25482,7 @@ export declare const ChannelCreatedEvent: {
25454
25482
  status?: number | undefined;
25455
25483
  app_id?: string | undefined;
25456
25484
  clan_name?: string | undefined;
25485
+ channel_avatar?: string | undefined;
25457
25486
  } & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
25458
25487
  fromPartial<I_1 extends {
25459
25488
  clan_id?: string | undefined;
@@ -25467,6 +25496,7 @@ export declare const ChannelCreatedEvent: {
25467
25496
  status?: number | undefined;
25468
25497
  app_id?: string | undefined;
25469
25498
  clan_name?: string | undefined;
25499
+ channel_avatar?: string | undefined;
25470
25500
  } & {
25471
25501
  clan_id?: string | undefined;
25472
25502
  category_id?: string | undefined;
@@ -25479,6 +25509,7 @@ export declare const ChannelCreatedEvent: {
25479
25509
  status?: number | undefined;
25480
25510
  app_id?: string | undefined;
25481
25511
  clan_name?: string | undefined;
25512
+ channel_avatar?: string | undefined;
25482
25513
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
25483
25514
  };
25484
25515
  export declare const CategoryEvent: {
@@ -26702,6 +26733,7 @@ export declare const UserChannelAdded: {
26702
26733
  } | undefined;
26703
26734
  create_time_second?: number | undefined;
26704
26735
  active?: number | undefined;
26736
+ member_count?: number | undefined;
26705
26737
  } & {
26706
26738
  channel_desc?: ({
26707
26739
  clan_id?: string | undefined;
@@ -26996,6 +27028,7 @@ export declare const UserChannelAdded: {
26996
27028
  } & { [K_18 in Exclude<keyof I["caller"], keyof UserProfileRedis>]: never; }) | undefined;
26997
27029
  create_time_second?: number | undefined;
26998
27030
  active?: number | undefined;
27031
+ member_count?: number | undefined;
26999
27032
  } & { [K_19 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
27000
27033
  fromPartial<I_1 extends {
27001
27034
  channel_desc?: {
@@ -27103,6 +27136,7 @@ export declare const UserChannelAdded: {
27103
27136
  } | undefined;
27104
27137
  create_time_second?: number | undefined;
27105
27138
  active?: number | undefined;
27139
+ member_count?: number | undefined;
27106
27140
  } & {
27107
27141
  channel_desc?: ({
27108
27142
  clan_id?: string | undefined;
@@ -27397,6 +27431,7 @@ export declare const UserChannelAdded: {
27397
27431
  } & { [K_38 in Exclude<keyof I_1["caller"], keyof UserProfileRedis>]: never; }) | undefined;
27398
27432
  create_time_second?: number | undefined;
27399
27433
  active?: number | undefined;
27434
+ member_count?: number | undefined;
27400
27435
  } & { [K_39 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
27401
27436
  };
27402
27437
  export declare const UserChannelRemoved: {
@@ -15842,7 +15842,7 @@ var FollowEvent = {
15842
15842
  }
15843
15843
  };
15844
15844
  function createBaseBannedUserEvent() {
15845
- return { user_ids: [], action: 0, banner_id: "" };
15845
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15846
15846
  }
15847
15847
  var BannedUserEvent = {
15848
15848
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15855,6 +15855,9 @@ var BannedUserEvent = {
15855
15855
  if (message.banner_id !== "") {
15856
15856
  writer.uint32(26).string(message.banner_id);
15857
15857
  }
15858
+ if (message.channel_id !== "") {
15859
+ writer.uint32(34).string(message.channel_id);
15860
+ }
15858
15861
  return writer;
15859
15862
  },
15860
15863
  decode(input, length) {
@@ -15882,6 +15885,12 @@ var BannedUserEvent = {
15882
15885
  }
15883
15886
  message.banner_id = reader.string();
15884
15887
  continue;
15888
+ case 4:
15889
+ if (tag !== 34) {
15890
+ break;
15891
+ }
15892
+ message.channel_id = reader.string();
15893
+ continue;
15885
15894
  }
15886
15895
  if ((tag & 7) === 4 || tag === 0) {
15887
15896
  break;
@@ -15894,7 +15903,8 @@ var BannedUserEvent = {
15894
15903
  return {
15895
15904
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15896
15905
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15897
- banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : ""
15906
+ banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15907
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15898
15908
  };
15899
15909
  },
15900
15910
  toJSON(message) {
@@ -15909,17 +15919,21 @@ var BannedUserEvent = {
15909
15919
  if (message.banner_id !== "") {
15910
15920
  obj.banner_id = message.banner_id;
15911
15921
  }
15922
+ if (message.channel_id !== "") {
15923
+ obj.channel_id = message.channel_id;
15924
+ }
15912
15925
  return obj;
15913
15926
  },
15914
15927
  create(base) {
15915
15928
  return BannedUserEvent.fromPartial(base != null ? base : {});
15916
15929
  },
15917
15930
  fromPartial(object) {
15918
- var _a, _b, _c;
15931
+ var _a, _b, _c, _d;
15919
15932
  const message = createBaseBannedUserEvent();
15920
15933
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15921
15934
  message.action = (_b = object.action) != null ? _b : 0;
15922
15935
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15936
+ message.channel_id = (_d = object.channel_id) != null ? _d : "";
15923
15937
  return message;
15924
15938
  }
15925
15939
  };
@@ -20238,7 +20252,8 @@ function createBaseChannelCreatedEvent() {
20238
20252
  channel_type: void 0,
20239
20253
  status: 0,
20240
20254
  app_id: "",
20241
- clan_name: ""
20255
+ clan_name: "",
20256
+ channel_avatar: ""
20242
20257
  };
20243
20258
  }
20244
20259
  var ChannelCreatedEvent = {
@@ -20276,6 +20291,9 @@ var ChannelCreatedEvent = {
20276
20291
  if (message.clan_name !== "") {
20277
20292
  writer.uint32(90).string(message.clan_name);
20278
20293
  }
20294
+ if (message.channel_avatar !== "") {
20295
+ writer.uint32(98).string(message.channel_avatar);
20296
+ }
20279
20297
  return writer;
20280
20298
  },
20281
20299
  decode(input, length) {
@@ -20351,6 +20369,12 @@ var ChannelCreatedEvent = {
20351
20369
  }
20352
20370
  message.clan_name = reader.string();
20353
20371
  continue;
20372
+ case 12:
20373
+ if (tag !== 98) {
20374
+ break;
20375
+ }
20376
+ message.channel_avatar = reader.string();
20377
+ continue;
20354
20378
  }
20355
20379
  if ((tag & 7) === 4 || tag === 0) {
20356
20380
  break;
@@ -20371,7 +20395,8 @@ var ChannelCreatedEvent = {
20371
20395
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
20372
20396
  status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
20373
20397
  app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
20374
- clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
20398
+ clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
20399
+ channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
20375
20400
  };
20376
20401
  },
20377
20402
  toJSON(message) {
@@ -20409,13 +20434,16 @@ var ChannelCreatedEvent = {
20409
20434
  if (message.clan_name !== "") {
20410
20435
  obj.clan_name = message.clan_name;
20411
20436
  }
20437
+ if (message.channel_avatar !== "") {
20438
+ obj.channel_avatar = message.channel_avatar;
20439
+ }
20412
20440
  return obj;
20413
20441
  },
20414
20442
  create(base) {
20415
20443
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
20416
20444
  },
20417
20445
  fromPartial(object) {
20418
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
20446
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
20419
20447
  const message = createBaseChannelCreatedEvent();
20420
20448
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
20421
20449
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -20428,6 +20456,7 @@ var ChannelCreatedEvent = {
20428
20456
  message.status = (_i = object.status) != null ? _i : 0;
20429
20457
  message.app_id = (_j = object.app_id) != null ? _j : "";
20430
20458
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
20459
+ message.channel_avatar = (_l = object.channel_avatar) != null ? _l : "";
20431
20460
  return message;
20432
20461
  }
20433
20462
  };
@@ -22142,7 +22171,8 @@ function createBaseUserChannelAdded() {
22142
22171
  clan_id: "",
22143
22172
  caller: void 0,
22144
22173
  create_time_second: 0,
22145
- active: 0
22174
+ active: 0,
22175
+ member_count: 0
22146
22176
  };
22147
22177
  }
22148
22178
  var UserChannelAdded = {
@@ -22168,6 +22198,9 @@ var UserChannelAdded = {
22168
22198
  if (message.active !== 0) {
22169
22199
  writer.uint32(56).int32(message.active);
22170
22200
  }
22201
+ if (message.member_count !== 0) {
22202
+ writer.uint32(64).int32(message.member_count);
22203
+ }
22171
22204
  return writer;
22172
22205
  },
22173
22206
  decode(input, length) {
@@ -22219,6 +22252,12 @@ var UserChannelAdded = {
22219
22252
  }
22220
22253
  message.active = reader.int32();
22221
22254
  continue;
22255
+ case 8:
22256
+ if (tag !== 64) {
22257
+ break;
22258
+ }
22259
+ message.member_count = reader.int32();
22260
+ continue;
22222
22261
  }
22223
22262
  if ((tag & 7) === 4 || tag === 0) {
22224
22263
  break;
@@ -22235,7 +22274,8 @@ var UserChannelAdded = {
22235
22274
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
22236
22275
  caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
22237
22276
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22238
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0
22277
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
22278
+ member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
22239
22279
  };
22240
22280
  },
22241
22281
  toJSON(message) {
@@ -22262,13 +22302,16 @@ var UserChannelAdded = {
22262
22302
  if (message.active !== 0) {
22263
22303
  obj.active = Math.round(message.active);
22264
22304
  }
22305
+ if (message.member_count !== 0) {
22306
+ obj.member_count = Math.round(message.member_count);
22307
+ }
22265
22308
  return obj;
22266
22309
  },
22267
22310
  create(base) {
22268
22311
  return UserChannelAdded.fromPartial(base != null ? base : {});
22269
22312
  },
22270
22313
  fromPartial(object) {
22271
- var _a, _b, _c, _d, _e;
22314
+ var _a, _b, _c, _d, _e, _f;
22272
22315
  const message = createBaseUserChannelAdded();
22273
22316
  message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
22274
22317
  message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
@@ -22277,6 +22320,7 @@ var UserChannelAdded = {
22277
22320
  message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
22278
22321
  message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
22279
22322
  message.active = (_e = object.active) != null ? _e : 0;
22323
+ message.member_count = (_f = object.member_count) != null ? _f : 0;
22280
22324
  return message;
22281
22325
  }
22282
22326
  };
@@ -15829,7 +15829,7 @@ var FollowEvent = {
15829
15829
  }
15830
15830
  };
15831
15831
  function createBaseBannedUserEvent() {
15832
- return { user_ids: [], action: 0, banner_id: "" };
15832
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15833
15833
  }
15834
15834
  var BannedUserEvent = {
15835
15835
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15842,6 +15842,9 @@ var BannedUserEvent = {
15842
15842
  if (message.banner_id !== "") {
15843
15843
  writer.uint32(26).string(message.banner_id);
15844
15844
  }
15845
+ if (message.channel_id !== "") {
15846
+ writer.uint32(34).string(message.channel_id);
15847
+ }
15845
15848
  return writer;
15846
15849
  },
15847
15850
  decode(input, length) {
@@ -15869,6 +15872,12 @@ var BannedUserEvent = {
15869
15872
  }
15870
15873
  message.banner_id = reader.string();
15871
15874
  continue;
15875
+ case 4:
15876
+ if (tag !== 34) {
15877
+ break;
15878
+ }
15879
+ message.channel_id = reader.string();
15880
+ continue;
15872
15881
  }
15873
15882
  if ((tag & 7) === 4 || tag === 0) {
15874
15883
  break;
@@ -15881,7 +15890,8 @@ var BannedUserEvent = {
15881
15890
  return {
15882
15891
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15883
15892
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15884
- banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : ""
15893
+ banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15894
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15885
15895
  };
15886
15896
  },
15887
15897
  toJSON(message) {
@@ -15896,17 +15906,21 @@ var BannedUserEvent = {
15896
15906
  if (message.banner_id !== "") {
15897
15907
  obj.banner_id = message.banner_id;
15898
15908
  }
15909
+ if (message.channel_id !== "") {
15910
+ obj.channel_id = message.channel_id;
15911
+ }
15899
15912
  return obj;
15900
15913
  },
15901
15914
  create(base) {
15902
15915
  return BannedUserEvent.fromPartial(base != null ? base : {});
15903
15916
  },
15904
15917
  fromPartial(object) {
15905
- var _a, _b, _c;
15918
+ var _a, _b, _c, _d;
15906
15919
  const message = createBaseBannedUserEvent();
15907
15920
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15908
15921
  message.action = (_b = object.action) != null ? _b : 0;
15909
15922
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15923
+ message.channel_id = (_d = object.channel_id) != null ? _d : "";
15910
15924
  return message;
15911
15925
  }
15912
15926
  };
@@ -20225,7 +20239,8 @@ function createBaseChannelCreatedEvent() {
20225
20239
  channel_type: void 0,
20226
20240
  status: 0,
20227
20241
  app_id: "",
20228
- clan_name: ""
20242
+ clan_name: "",
20243
+ channel_avatar: ""
20229
20244
  };
20230
20245
  }
20231
20246
  var ChannelCreatedEvent = {
@@ -20263,6 +20278,9 @@ var ChannelCreatedEvent = {
20263
20278
  if (message.clan_name !== "") {
20264
20279
  writer.uint32(90).string(message.clan_name);
20265
20280
  }
20281
+ if (message.channel_avatar !== "") {
20282
+ writer.uint32(98).string(message.channel_avatar);
20283
+ }
20266
20284
  return writer;
20267
20285
  },
20268
20286
  decode(input, length) {
@@ -20338,6 +20356,12 @@ var ChannelCreatedEvent = {
20338
20356
  }
20339
20357
  message.clan_name = reader.string();
20340
20358
  continue;
20359
+ case 12:
20360
+ if (tag !== 98) {
20361
+ break;
20362
+ }
20363
+ message.channel_avatar = reader.string();
20364
+ continue;
20341
20365
  }
20342
20366
  if ((tag & 7) === 4 || tag === 0) {
20343
20367
  break;
@@ -20358,7 +20382,8 @@ var ChannelCreatedEvent = {
20358
20382
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
20359
20383
  status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
20360
20384
  app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
20361
- clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
20385
+ clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
20386
+ channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
20362
20387
  };
20363
20388
  },
20364
20389
  toJSON(message) {
@@ -20396,13 +20421,16 @@ var ChannelCreatedEvent = {
20396
20421
  if (message.clan_name !== "") {
20397
20422
  obj.clan_name = message.clan_name;
20398
20423
  }
20424
+ if (message.channel_avatar !== "") {
20425
+ obj.channel_avatar = message.channel_avatar;
20426
+ }
20399
20427
  return obj;
20400
20428
  },
20401
20429
  create(base) {
20402
20430
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
20403
20431
  },
20404
20432
  fromPartial(object) {
20405
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
20433
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
20406
20434
  const message = createBaseChannelCreatedEvent();
20407
20435
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
20408
20436
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -20415,6 +20443,7 @@ var ChannelCreatedEvent = {
20415
20443
  message.status = (_i = object.status) != null ? _i : 0;
20416
20444
  message.app_id = (_j = object.app_id) != null ? _j : "";
20417
20445
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
20446
+ message.channel_avatar = (_l = object.channel_avatar) != null ? _l : "";
20418
20447
  return message;
20419
20448
  }
20420
20449
  };
@@ -22129,7 +22158,8 @@ function createBaseUserChannelAdded() {
22129
22158
  clan_id: "",
22130
22159
  caller: void 0,
22131
22160
  create_time_second: 0,
22132
- active: 0
22161
+ active: 0,
22162
+ member_count: 0
22133
22163
  };
22134
22164
  }
22135
22165
  var UserChannelAdded = {
@@ -22155,6 +22185,9 @@ var UserChannelAdded = {
22155
22185
  if (message.active !== 0) {
22156
22186
  writer.uint32(56).int32(message.active);
22157
22187
  }
22188
+ if (message.member_count !== 0) {
22189
+ writer.uint32(64).int32(message.member_count);
22190
+ }
22158
22191
  return writer;
22159
22192
  },
22160
22193
  decode(input, length) {
@@ -22206,6 +22239,12 @@ var UserChannelAdded = {
22206
22239
  }
22207
22240
  message.active = reader.int32();
22208
22241
  continue;
22242
+ case 8:
22243
+ if (tag !== 64) {
22244
+ break;
22245
+ }
22246
+ message.member_count = reader.int32();
22247
+ continue;
22209
22248
  }
22210
22249
  if ((tag & 7) === 4 || tag === 0) {
22211
22250
  break;
@@ -22222,7 +22261,8 @@ var UserChannelAdded = {
22222
22261
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
22223
22262
  caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
22224
22263
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22225
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0
22264
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
22265
+ member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
22226
22266
  };
22227
22267
  },
22228
22268
  toJSON(message) {
@@ -22249,13 +22289,16 @@ var UserChannelAdded = {
22249
22289
  if (message.active !== 0) {
22250
22290
  obj.active = Math.round(message.active);
22251
22291
  }
22292
+ if (message.member_count !== 0) {
22293
+ obj.member_count = Math.round(message.member_count);
22294
+ }
22252
22295
  return obj;
22253
22296
  },
22254
22297
  create(base) {
22255
22298
  return UserChannelAdded.fromPartial(base != null ? base : {});
22256
22299
  },
22257
22300
  fromPartial(object) {
22258
- var _a, _b, _c, _d, _e;
22301
+ var _a, _b, _c, _d, _e, _f;
22259
22302
  const message = createBaseUserChannelAdded();
22260
22303
  message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
22261
22304
  message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
@@ -22264,6 +22307,7 @@ var UserChannelAdded = {
22264
22307
  message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
22265
22308
  message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
22266
22309
  message.active = (_e = object.active) != null ? _e : 0;
22310
+ message.member_count = (_f = object.member_count) != null ? _f : 0;
22267
22311
  return message;
22268
22312
  }
22269
22313
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.51",
3
+ "version": "1.8.53",
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
@@ -1156,6 +1156,8 @@ export interface ChannelCreatedEvent {
1156
1156
  app_id: string;
1157
1157
  /** clan_name */
1158
1158
  clan_name: string;
1159
+ /** channel avatar */
1160
+ channel_avatar: string;
1159
1161
  }
1160
1162
 
1161
1163
  export interface CategoryEvent {
@@ -1387,6 +1389,8 @@ export interface UserChannelAdded {
1387
1389
  create_time_second: number;
1388
1390
  /** */
1389
1391
  active: number;
1392
+ /** member count for GROUP */
1393
+ member_count: number;
1390
1394
  }
1391
1395
 
1392
1396
  /** */
@@ -9124,6 +9128,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
9124
9128
  status: 0,
9125
9129
  app_id: "",
9126
9130
  clan_name: "",
9131
+ channel_avatar: "",
9127
9132
  };
9128
9133
  }
9129
9134
 
@@ -9162,6 +9167,9 @@ export const ChannelCreatedEvent = {
9162
9167
  if (message.clan_name !== "") {
9163
9168
  writer.uint32(90).string(message.clan_name);
9164
9169
  }
9170
+ if (message.channel_avatar !== "") {
9171
+ writer.uint32(98).string(message.channel_avatar);
9172
+ }
9165
9173
  return writer;
9166
9174
  },
9167
9175
 
@@ -9249,6 +9257,13 @@ export const ChannelCreatedEvent = {
9249
9257
 
9250
9258
  message.clan_name = reader.string();
9251
9259
  continue;
9260
+ case 12:
9261
+ if (tag !== 98) {
9262
+ break;
9263
+ }
9264
+
9265
+ message.channel_avatar = reader.string();
9266
+ continue;
9252
9267
  }
9253
9268
  if ((tag & 7) === 4 || tag === 0) {
9254
9269
  break;
@@ -9271,6 +9286,7 @@ export const ChannelCreatedEvent = {
9271
9286
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
9272
9287
  app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
9273
9288
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
9289
+ channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
9274
9290
  };
9275
9291
  },
9276
9292
 
@@ -9309,6 +9325,9 @@ export const ChannelCreatedEvent = {
9309
9325
  if (message.clan_name !== "") {
9310
9326
  obj.clan_name = message.clan_name;
9311
9327
  }
9328
+ if (message.channel_avatar !== "") {
9329
+ obj.channel_avatar = message.channel_avatar;
9330
+ }
9312
9331
  return obj;
9313
9332
  },
9314
9333
 
@@ -9328,6 +9347,7 @@ export const ChannelCreatedEvent = {
9328
9347
  message.status = object.status ?? 0;
9329
9348
  message.app_id = object.app_id ?? "";
9330
9349
  message.clan_name = object.clan_name ?? "";
9350
+ message.channel_avatar = object.channel_avatar ?? "";
9331
9351
  return message;
9332
9352
  },
9333
9353
  };
@@ -11206,6 +11226,7 @@ function createBaseUserChannelAdded(): UserChannelAdded {
11206
11226
  caller: undefined,
11207
11227
  create_time_second: 0,
11208
11228
  active: 0,
11229
+ member_count: 0,
11209
11230
  };
11210
11231
  }
11211
11232
 
@@ -11232,6 +11253,9 @@ export const UserChannelAdded = {
11232
11253
  if (message.active !== 0) {
11233
11254
  writer.uint32(56).int32(message.active);
11234
11255
  }
11256
+ if (message.member_count !== 0) {
11257
+ writer.uint32(64).int32(message.member_count);
11258
+ }
11235
11259
  return writer;
11236
11260
  },
11237
11261
 
@@ -11291,6 +11315,13 @@ export const UserChannelAdded = {
11291
11315
 
11292
11316
  message.active = reader.int32();
11293
11317
  continue;
11318
+ case 8:
11319
+ if (tag !== 64) {
11320
+ break;
11321
+ }
11322
+
11323
+ message.member_count = reader.int32();
11324
+ continue;
11294
11325
  }
11295
11326
  if ((tag & 7) === 4 || tag === 0) {
11296
11327
  break;
@@ -11309,6 +11340,7 @@ export const UserChannelAdded = {
11309
11340
  caller: isSet(object.caller) ? UserProfileRedis.fromJSON(object.caller) : undefined,
11310
11341
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
11311
11342
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
11343
+ member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
11312
11344
  };
11313
11345
  },
11314
11346
 
@@ -11335,6 +11367,9 @@ export const UserChannelAdded = {
11335
11367
  if (message.active !== 0) {
11336
11368
  obj.active = Math.round(message.active);
11337
11369
  }
11370
+ if (message.member_count !== 0) {
11371
+ obj.member_count = Math.round(message.member_count);
11372
+ }
11338
11373
  return obj;
11339
11374
  },
11340
11375
 
@@ -11354,6 +11389,7 @@ export const UserChannelAdded = {
11354
11389
  : undefined;
11355
11390
  message.create_time_second = object.create_time_second ?? 0;
11356
11391
  message.active = object.active ?? 0;
11392
+ message.member_count = object.member_count ?? 0;
11357
11393
  return message;
11358
11394
  },
11359
11395
  };