mezon-js-protobuf 1.8.52 → 1.8.54

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,33 @@ 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 BannedUserListRequest {
1767
+ clan_id: string;
1768
+ channel_id: string;
1769
+ }
1770
+
1771
+ export interface BannedUserList {
1772
+ banned_users: BannedUser[];
1744
1773
  }
1745
1774
 
1746
1775
  /** Leave a channel. */
@@ -1920,10 +1949,6 @@ export interface SetNotificationRequest {
1920
1949
  channel_category_id: string;
1921
1950
  /** notification_type */
1922
1951
  notification_type: number;
1923
- /** time mute channel category */
1924
- time_mute:
1925
- | Date
1926
- | undefined;
1927
1952
  /** */
1928
1953
  clan_id: string;
1929
1954
  }
@@ -1936,11 +1961,12 @@ export interface PinMessageRequest {
1936
1961
  }
1937
1962
 
1938
1963
  /** set notification */
1939
- export interface SetMuteNotificationRequest {
1964
+ export interface SetMuteRequest {
1940
1965
  /** channel_id and category_id */
1941
1966
  id: string;
1942
- notification_type: number;
1967
+ mute_time: number;
1943
1968
  active: number;
1969
+ clan_id: string;
1944
1970
  }
1945
1971
 
1946
1972
  export interface HashtagDmListRequest {
@@ -2002,12 +2028,8 @@ export interface SetDefaultNotificationRequest {
2002
2028
  export interface RoleList {
2003
2029
  /** A list of role. */
2004
2030
  roles: Role[];
2005
- /** The cursor to send when retrieving the next page, if any. */
2006
- next_cursor: string;
2007
- /** The cursor to send when retrieving the previous page, if any. */
2008
- prev_cursor: string;
2009
- /** Cacheable cursor to list newer role description. Durable and designed to be stored, unlike next/prev cursors. */
2010
- cacheable_cursor: string;
2031
+ /** level permission max */
2032
+ max_level_permission: number;
2011
2033
  }
2012
2034
 
2013
2035
  export interface EventList {
@@ -13276,7 +13298,7 @@ export const ClanProfileRequest = {
13276
13298
  };
13277
13299
 
13278
13300
  function createBaseUpdateClanProfileRequest(): UpdateClanProfileRequest {
13279
- return { clan_id: "", nick_name: "", avatar: "" };
13301
+ return { clan_id: "", nick_name: undefined, avatar: undefined };
13280
13302
  }
13281
13303
 
13282
13304
  export const UpdateClanProfileRequest = {
@@ -13284,11 +13306,11 @@ export const UpdateClanProfileRequest = {
13284
13306
  if (message.clan_id !== "") {
13285
13307
  writer.uint32(10).string(message.clan_id);
13286
13308
  }
13287
- if (message.nick_name !== "") {
13288
- writer.uint32(18).string(message.nick_name);
13309
+ if (message.nick_name !== undefined) {
13310
+ StringValue.encode({ value: message.nick_name! }, writer.uint32(18).fork()).ldelim();
13289
13311
  }
13290
- if (message.avatar !== "") {
13291
- writer.uint32(26).string(message.avatar);
13312
+ if (message.avatar !== undefined) {
13313
+ StringValue.encode({ value: message.avatar! }, writer.uint32(26).fork()).ldelim();
13292
13314
  }
13293
13315
  return writer;
13294
13316
  },
@@ -13312,14 +13334,14 @@ export const UpdateClanProfileRequest = {
13312
13334
  break;
13313
13335
  }
13314
13336
 
13315
- message.nick_name = reader.string();
13337
+ message.nick_name = StringValue.decode(reader, reader.uint32()).value;
13316
13338
  continue;
13317
13339
  case 3:
13318
13340
  if (tag !== 26) {
13319
13341
  break;
13320
13342
  }
13321
13343
 
13322
- message.avatar = reader.string();
13344
+ message.avatar = StringValue.decode(reader, reader.uint32()).value;
13323
13345
  continue;
13324
13346
  }
13325
13347
  if ((tag & 7) === 4 || tag === 0) {
@@ -13333,8 +13355,8 @@ export const UpdateClanProfileRequest = {
13333
13355
  fromJSON(object: any): UpdateClanProfileRequest {
13334
13356
  return {
13335
13357
  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) : "",
13358
+ nick_name: isSet(object.nick_name) ? String(object.nick_name) : undefined,
13359
+ avatar: isSet(object.avatar) ? String(object.avatar) : undefined,
13338
13360
  };
13339
13361
  },
13340
13362
 
@@ -13343,10 +13365,10 @@ export const UpdateClanProfileRequest = {
13343
13365
  if (message.clan_id !== "") {
13344
13366
  obj.clan_id = message.clan_id;
13345
13367
  }
13346
- if (message.nick_name !== "") {
13368
+ if (message.nick_name !== undefined) {
13347
13369
  obj.nick_name = message.nick_name;
13348
13370
  }
13349
- if (message.avatar !== "") {
13371
+ if (message.avatar !== undefined) {
13350
13372
  obj.avatar = message.avatar;
13351
13373
  }
13352
13374
  return obj;
@@ -13358,8 +13380,8 @@ export const UpdateClanProfileRequest = {
13358
13380
  fromPartial<I extends Exact<DeepPartial<UpdateClanProfileRequest>, I>>(object: I): UpdateClanProfileRequest {
13359
13381
  const message = createBaseUpdateClanProfileRequest();
13360
13382
  message.clan_id = object.clan_id ?? "";
13361
- message.nick_name = object.nick_name ?? "";
13362
- message.avatar = object.avatar ?? "";
13383
+ message.nick_name = object.nick_name ?? undefined;
13384
+ message.avatar = object.avatar ?? undefined;
13363
13385
  return message;
13364
13386
  },
13365
13387
  };
@@ -16301,7 +16323,7 @@ export const RemoveClanUsersRequest = {
16301
16323
  };
16302
16324
 
16303
16325
  function createBaseBanClanUsersRequest(): BanClanUsersRequest {
16304
- return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0 };
16326
+ return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0, reason: "" };
16305
16327
  }
16306
16328
 
16307
16329
  export const BanClanUsersRequest = {
@@ -16318,6 +16340,9 @@ export const BanClanUsersRequest = {
16318
16340
  if (message.ban_time !== 0) {
16319
16341
  writer.uint32(32).int32(message.ban_time);
16320
16342
  }
16343
+ if (message.reason !== "") {
16344
+ writer.uint32(42).string(message.reason);
16345
+ }
16321
16346
  return writer;
16322
16347
  },
16323
16348
 
@@ -16356,6 +16381,13 @@ export const BanClanUsersRequest = {
16356
16381
 
16357
16382
  message.ban_time = reader.int32();
16358
16383
  continue;
16384
+ case 5:
16385
+ if (tag !== 42) {
16386
+ break;
16387
+ }
16388
+
16389
+ message.reason = reader.string();
16390
+ continue;
16359
16391
  }
16360
16392
  if ((tag & 7) === 4 || tag === 0) {
16361
16393
  break;
@@ -16371,6 +16403,7 @@ export const BanClanUsersRequest = {
16371
16403
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16372
16404
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
16373
16405
  ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16406
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16374
16407
  };
16375
16408
  },
16376
16409
 
@@ -16388,6 +16421,9 @@ export const BanClanUsersRequest = {
16388
16421
  if (message.ban_time !== 0) {
16389
16422
  obj.ban_time = Math.round(message.ban_time);
16390
16423
  }
16424
+ if (message.reason !== "") {
16425
+ obj.reason = message.reason;
16426
+ }
16391
16427
  return obj;
16392
16428
  },
16393
16429
 
@@ -16400,6 +16436,276 @@ export const BanClanUsersRequest = {
16400
16436
  message.channel_id = object.channel_id ?? "";
16401
16437
  message.user_ids = object.user_ids?.map((e) => e) || [];
16402
16438
  message.ban_time = object.ban_time ?? 0;
16439
+ message.reason = object.reason ?? "";
16440
+ return message;
16441
+ },
16442
+ };
16443
+
16444
+ function createBaseBannedUser(): BannedUser {
16445
+ return { channel_id: "", banned_id: "", banned_avatar: "", banned_name: "", ban_time: 0, reason: "" };
16446
+ }
16447
+
16448
+ export const BannedUser = {
16449
+ encode(message: BannedUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16450
+ if (message.channel_id !== "") {
16451
+ writer.uint32(10).string(message.channel_id);
16452
+ }
16453
+ if (message.banned_id !== "") {
16454
+ writer.uint32(18).string(message.banned_id);
16455
+ }
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);
16461
+ }
16462
+ if (message.ban_time !== 0) {
16463
+ writer.uint32(40).int32(message.ban_time);
16464
+ }
16465
+ if (message.reason !== "") {
16466
+ writer.uint32(50).string(message.reason);
16467
+ }
16468
+ return writer;
16469
+ },
16470
+
16471
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUser {
16472
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16473
+ let end = length === undefined ? reader.len : reader.pos + length;
16474
+ const message = createBaseBannedUser();
16475
+ while (reader.pos < end) {
16476
+ const tag = reader.uint32();
16477
+ switch (tag >>> 3) {
16478
+ case 1:
16479
+ if (tag !== 10) {
16480
+ break;
16481
+ }
16482
+
16483
+ message.channel_id = reader.string();
16484
+ continue;
16485
+ case 2:
16486
+ if (tag !== 18) {
16487
+ break;
16488
+ }
16489
+
16490
+ message.banned_id = reader.string();
16491
+ continue;
16492
+ case 3:
16493
+ if (tag !== 26) {
16494
+ break;
16495
+ }
16496
+
16497
+ message.banned_avatar = reader.string();
16498
+ continue;
16499
+ 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) {
16508
+ break;
16509
+ }
16510
+
16511
+ message.ban_time = reader.int32();
16512
+ continue;
16513
+ case 6:
16514
+ if (tag !== 50) {
16515
+ break;
16516
+ }
16517
+
16518
+ message.reason = reader.string();
16519
+ continue;
16520
+ }
16521
+ if ((tag & 7) === 4 || tag === 0) {
16522
+ break;
16523
+ }
16524
+ reader.skipType(tag & 7);
16525
+ }
16526
+ return message;
16527
+ },
16528
+
16529
+ fromJSON(object: any): BannedUser {
16530
+ return {
16531
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16532
+ 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) : "",
16535
+ ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16536
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16537
+ };
16538
+ },
16539
+
16540
+ toJSON(message: BannedUser): unknown {
16541
+ const obj: any = {};
16542
+ if (message.channel_id !== "") {
16543
+ obj.channel_id = message.channel_id;
16544
+ }
16545
+ if (message.banned_id !== "") {
16546
+ obj.banned_id = message.banned_id;
16547
+ }
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;
16553
+ }
16554
+ if (message.ban_time !== 0) {
16555
+ obj.ban_time = Math.round(message.ban_time);
16556
+ }
16557
+ if (message.reason !== "") {
16558
+ obj.reason = message.reason;
16559
+ }
16560
+ return obj;
16561
+ },
16562
+
16563
+ create<I extends Exact<DeepPartial<BannedUser>, I>>(base?: I): BannedUser {
16564
+ return BannedUser.fromPartial(base ?? ({} as any));
16565
+ },
16566
+ fromPartial<I extends Exact<DeepPartial<BannedUser>, I>>(object: I): BannedUser {
16567
+ const message = createBaseBannedUser();
16568
+ message.channel_id = object.channel_id ?? "";
16569
+ message.banned_id = object.banned_id ?? "";
16570
+ message.banned_avatar = object.banned_avatar ?? "";
16571
+ message.banned_name = object.banned_name ?? "";
16572
+ message.ban_time = object.ban_time ?? 0;
16573
+ message.reason = object.reason ?? "";
16574
+ return message;
16575
+ },
16576
+ };
16577
+
16578
+ function createBaseBannedUserListRequest(): BannedUserListRequest {
16579
+ return { clan_id: "", channel_id: "" };
16580
+ }
16581
+
16582
+ export const BannedUserListRequest = {
16583
+ encode(message: BannedUserListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16584
+ if (message.clan_id !== "") {
16585
+ writer.uint32(10).string(message.clan_id);
16586
+ }
16587
+ if (message.channel_id !== "") {
16588
+ writer.uint32(18).string(message.channel_id);
16589
+ }
16590
+ return writer;
16591
+ },
16592
+
16593
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserListRequest {
16594
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16595
+ let end = length === undefined ? reader.len : reader.pos + length;
16596
+ const message = createBaseBannedUserListRequest();
16597
+ while (reader.pos < end) {
16598
+ const tag = reader.uint32();
16599
+ switch (tag >>> 3) {
16600
+ case 1:
16601
+ if (tag !== 10) {
16602
+ break;
16603
+ }
16604
+
16605
+ message.clan_id = reader.string();
16606
+ continue;
16607
+ case 2:
16608
+ if (tag !== 18) {
16609
+ break;
16610
+ }
16611
+
16612
+ message.channel_id = reader.string();
16613
+ continue;
16614
+ }
16615
+ if ((tag & 7) === 4 || tag === 0) {
16616
+ break;
16617
+ }
16618
+ reader.skipType(tag & 7);
16619
+ }
16620
+ return message;
16621
+ },
16622
+
16623
+ fromJSON(object: any): BannedUserListRequest {
16624
+ return {
16625
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16626
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16627
+ };
16628
+ },
16629
+
16630
+ toJSON(message: BannedUserListRequest): unknown {
16631
+ const obj: any = {};
16632
+ if (message.clan_id !== "") {
16633
+ obj.clan_id = message.clan_id;
16634
+ }
16635
+ if (message.channel_id !== "") {
16636
+ obj.channel_id = message.channel_id;
16637
+ }
16638
+ return obj;
16639
+ },
16640
+
16641
+ create<I extends Exact<DeepPartial<BannedUserListRequest>, I>>(base?: I): BannedUserListRequest {
16642
+ return BannedUserListRequest.fromPartial(base ?? ({} as any));
16643
+ },
16644
+ fromPartial<I extends Exact<DeepPartial<BannedUserListRequest>, I>>(object: I): BannedUserListRequest {
16645
+ const message = createBaseBannedUserListRequest();
16646
+ message.clan_id = object.clan_id ?? "";
16647
+ message.channel_id = object.channel_id ?? "";
16648
+ return message;
16649
+ },
16650
+ };
16651
+
16652
+ function createBaseBannedUserList(): BannedUserList {
16653
+ return { banned_users: [] };
16654
+ }
16655
+
16656
+ export const BannedUserList = {
16657
+ encode(message: BannedUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16658
+ for (const v of message.banned_users) {
16659
+ BannedUser.encode(v!, writer.uint32(10).fork()).ldelim();
16660
+ }
16661
+ return writer;
16662
+ },
16663
+
16664
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserList {
16665
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16666
+ let end = length === undefined ? reader.len : reader.pos + length;
16667
+ const message = createBaseBannedUserList();
16668
+ while (reader.pos < end) {
16669
+ const tag = reader.uint32();
16670
+ switch (tag >>> 3) {
16671
+ case 1:
16672
+ if (tag !== 10) {
16673
+ break;
16674
+ }
16675
+
16676
+ message.banned_users.push(BannedUser.decode(reader, reader.uint32()));
16677
+ continue;
16678
+ }
16679
+ if ((tag & 7) === 4 || tag === 0) {
16680
+ break;
16681
+ }
16682
+ reader.skipType(tag & 7);
16683
+ }
16684
+ return message;
16685
+ },
16686
+
16687
+ fromJSON(object: any): BannedUserList {
16688
+ return {
16689
+ banned_users: globalThis.Array.isArray(object?.banned_users)
16690
+ ? object.banned_users.map((e: any) => BannedUser.fromJSON(e))
16691
+ : [],
16692
+ };
16693
+ },
16694
+
16695
+ toJSON(message: BannedUserList): unknown {
16696
+ const obj: any = {};
16697
+ if (message.banned_users?.length) {
16698
+ obj.banned_users = message.banned_users.map((e) => BannedUser.toJSON(e));
16699
+ }
16700
+ return obj;
16701
+ },
16702
+
16703
+ create<I extends Exact<DeepPartial<BannedUserList>, I>>(base?: I): BannedUserList {
16704
+ return BannedUserList.fromPartial(base ?? ({} as any));
16705
+ },
16706
+ fromPartial<I extends Exact<DeepPartial<BannedUserList>, I>>(object: I): BannedUserList {
16707
+ const message = createBaseBannedUserList();
16708
+ message.banned_users = object.banned_users?.map((e) => BannedUser.fromPartial(e)) || [];
16403
16709
  return message;
16404
16710
  },
16405
16711
  };
@@ -18263,7 +18569,7 @@ export const NotificationSettingList = {
18263
18569
  };
18264
18570
 
18265
18571
  function createBaseSetNotificationRequest(): SetNotificationRequest {
18266
- return { channel_category_id: "", notification_type: 0, time_mute: undefined, clan_id: "" };
18572
+ return { channel_category_id: "", notification_type: 0, clan_id: "" };
18267
18573
  }
18268
18574
 
18269
18575
  export const SetNotificationRequest = {
@@ -18274,11 +18580,8 @@ export const SetNotificationRequest = {
18274
18580
  if (message.notification_type !== 0) {
18275
18581
  writer.uint32(16).int32(message.notification_type);
18276
18582
  }
18277
- if (message.time_mute !== undefined) {
18278
- Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
18279
- }
18280
18583
  if (message.clan_id !== "") {
18281
- writer.uint32(34).string(message.clan_id);
18584
+ writer.uint32(26).string(message.clan_id);
18282
18585
  }
18283
18586
  return writer;
18284
18587
  },
@@ -18309,13 +18612,6 @@ export const SetNotificationRequest = {
18309
18612
  break;
18310
18613
  }
18311
18614
 
18312
- message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
18313
- continue;
18314
- case 4:
18315
- if (tag !== 34) {
18316
- break;
18317
- }
18318
-
18319
18615
  message.clan_id = reader.string();
18320
18616
  continue;
18321
18617
  }
@@ -18331,7 +18627,6 @@ export const SetNotificationRequest = {
18331
18627
  return {
18332
18628
  channel_category_id: isSet(object.channel_category_id) ? globalThis.String(object.channel_category_id) : "",
18333
18629
  notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
18334
- time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
18335
18630
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
18336
18631
  };
18337
18632
  },
@@ -18344,9 +18639,6 @@ export const SetNotificationRequest = {
18344
18639
  if (message.notification_type !== 0) {
18345
18640
  obj.notification_type = Math.round(message.notification_type);
18346
18641
  }
18347
- if (message.time_mute !== undefined) {
18348
- obj.time_mute = message.time_mute.toISOString();
18349
- }
18350
18642
  if (message.clan_id !== "") {
18351
18643
  obj.clan_id = message.clan_id;
18352
18644
  }
@@ -18360,7 +18652,6 @@ export const SetNotificationRequest = {
18360
18652
  const message = createBaseSetNotificationRequest();
18361
18653
  message.channel_category_id = object.channel_category_id ?? "";
18362
18654
  message.notification_type = object.notification_type ?? 0;
18363
- message.time_mute = object.time_mute ?? undefined;
18364
18655
  message.clan_id = object.clan_id ?? "";
18365
18656
  return message;
18366
18657
  },
@@ -18455,28 +18746,31 @@ export const PinMessageRequest = {
18455
18746
  },
18456
18747
  };
18457
18748
 
18458
- function createBaseSetMuteNotificationRequest(): SetMuteNotificationRequest {
18459
- return { id: "", notification_type: 0, active: 0 };
18749
+ function createBaseSetMuteRequest(): SetMuteRequest {
18750
+ return { id: "", mute_time: 0, active: 0, clan_id: "" };
18460
18751
  }
18461
18752
 
18462
- export const SetMuteNotificationRequest = {
18463
- encode(message: SetMuteNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18753
+ export const SetMuteRequest = {
18754
+ encode(message: SetMuteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18464
18755
  if (message.id !== "") {
18465
18756
  writer.uint32(10).string(message.id);
18466
18757
  }
18467
- if (message.notification_type !== 0) {
18468
- writer.uint32(16).int32(message.notification_type);
18758
+ if (message.mute_time !== 0) {
18759
+ writer.uint32(16).int32(message.mute_time);
18469
18760
  }
18470
18761
  if (message.active !== 0) {
18471
18762
  writer.uint32(24).int32(message.active);
18472
18763
  }
18764
+ if (message.clan_id !== "") {
18765
+ writer.uint32(34).string(message.clan_id);
18766
+ }
18473
18767
  return writer;
18474
18768
  },
18475
18769
 
18476
- decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteNotificationRequest {
18770
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteRequest {
18477
18771
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18478
18772
  let end = length === undefined ? reader.len : reader.pos + length;
18479
- const message = createBaseSetMuteNotificationRequest();
18773
+ const message = createBaseSetMuteRequest();
18480
18774
  while (reader.pos < end) {
18481
18775
  const tag = reader.uint32();
18482
18776
  switch (tag >>> 3) {
@@ -18492,7 +18786,7 @@ export const SetMuteNotificationRequest = {
18492
18786
  break;
18493
18787
  }
18494
18788
 
18495
- message.notification_type = reader.int32();
18789
+ message.mute_time = reader.int32();
18496
18790
  continue;
18497
18791
  case 3:
18498
18792
  if (tag !== 24) {
@@ -18501,6 +18795,13 @@ export const SetMuteNotificationRequest = {
18501
18795
 
18502
18796
  message.active = reader.int32();
18503
18797
  continue;
18798
+ case 4:
18799
+ if (tag !== 34) {
18800
+ break;
18801
+ }
18802
+
18803
+ message.clan_id = reader.string();
18804
+ continue;
18504
18805
  }
18505
18806
  if ((tag & 7) === 4 || tag === 0) {
18506
18807
  break;
@@ -18510,36 +18811,41 @@ export const SetMuteNotificationRequest = {
18510
18811
  return message;
18511
18812
  },
18512
18813
 
18513
- fromJSON(object: any): SetMuteNotificationRequest {
18814
+ fromJSON(object: any): SetMuteRequest {
18514
18815
  return {
18515
18816
  id: isSet(object.id) ? globalThis.String(object.id) : "",
18516
- notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
18817
+ mute_time: isSet(object.mute_time) ? globalThis.Number(object.mute_time) : 0,
18517
18818
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
18819
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
18518
18820
  };
18519
18821
  },
18520
18822
 
18521
- toJSON(message: SetMuteNotificationRequest): unknown {
18823
+ toJSON(message: SetMuteRequest): unknown {
18522
18824
  const obj: any = {};
18523
18825
  if (message.id !== "") {
18524
18826
  obj.id = message.id;
18525
18827
  }
18526
- if (message.notification_type !== 0) {
18527
- obj.notification_type = Math.round(message.notification_type);
18828
+ if (message.mute_time !== 0) {
18829
+ obj.mute_time = Math.round(message.mute_time);
18528
18830
  }
18529
18831
  if (message.active !== 0) {
18530
18832
  obj.active = Math.round(message.active);
18531
18833
  }
18834
+ if (message.clan_id !== "") {
18835
+ obj.clan_id = message.clan_id;
18836
+ }
18532
18837
  return obj;
18533
18838
  },
18534
18839
 
18535
- create<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(base?: I): SetMuteNotificationRequest {
18536
- return SetMuteNotificationRequest.fromPartial(base ?? ({} as any));
18840
+ create<I extends Exact<DeepPartial<SetMuteRequest>, I>>(base?: I): SetMuteRequest {
18841
+ return SetMuteRequest.fromPartial(base ?? ({} as any));
18537
18842
  },
18538
- fromPartial<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(object: I): SetMuteNotificationRequest {
18539
- const message = createBaseSetMuteNotificationRequest();
18843
+ fromPartial<I extends Exact<DeepPartial<SetMuteRequest>, I>>(object: I): SetMuteRequest {
18844
+ const message = createBaseSetMuteRequest();
18540
18845
  message.id = object.id ?? "";
18541
- message.notification_type = object.notification_type ?? 0;
18846
+ message.mute_time = object.mute_time ?? 0;
18542
18847
  message.active = object.active ?? 0;
18848
+ message.clan_id = object.clan_id ?? "";
18543
18849
  return message;
18544
18850
  },
18545
18851
  };
@@ -19148,7 +19454,7 @@ export const SetDefaultNotificationRequest = {
19148
19454
  };
19149
19455
 
19150
19456
  function createBaseRoleList(): RoleList {
19151
- return { roles: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
19457
+ return { roles: [], max_level_permission: 0 };
19152
19458
  }
19153
19459
 
19154
19460
  export const RoleList = {
@@ -19156,14 +19462,8 @@ export const RoleList = {
19156
19462
  for (const v of message.roles) {
19157
19463
  Role.encode(v!, writer.uint32(10).fork()).ldelim();
19158
19464
  }
19159
- if (message.next_cursor !== "") {
19160
- writer.uint32(18).string(message.next_cursor);
19161
- }
19162
- if (message.prev_cursor !== "") {
19163
- writer.uint32(26).string(message.prev_cursor);
19164
- }
19165
- if (message.cacheable_cursor !== "") {
19166
- writer.uint32(34).string(message.cacheable_cursor);
19465
+ if (message.max_level_permission !== 0) {
19466
+ writer.uint32(16).int32(message.max_level_permission);
19167
19467
  }
19168
19468
  return writer;
19169
19469
  },
@@ -19183,25 +19483,11 @@ export const RoleList = {
19183
19483
  message.roles.push(Role.decode(reader, reader.uint32()));
19184
19484
  continue;
19185
19485
  case 2:
19186
- if (tag !== 18) {
19187
- break;
19188
- }
19189
-
19190
- message.next_cursor = reader.string();
19191
- continue;
19192
- case 3:
19193
- if (tag !== 26) {
19194
- break;
19195
- }
19196
-
19197
- message.prev_cursor = reader.string();
19198
- continue;
19199
- case 4:
19200
- if (tag !== 34) {
19486
+ if (tag !== 16) {
19201
19487
  break;
19202
19488
  }
19203
19489
 
19204
- message.cacheable_cursor = reader.string();
19490
+ message.max_level_permission = reader.int32();
19205
19491
  continue;
19206
19492
  }
19207
19493
  if ((tag & 7) === 4 || tag === 0) {
@@ -19215,9 +19501,7 @@ export const RoleList = {
19215
19501
  fromJSON(object: any): RoleList {
19216
19502
  return {
19217
19503
  roles: globalThis.Array.isArray(object?.roles) ? object.roles.map((e: any) => Role.fromJSON(e)) : [],
19218
- next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
19219
- prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
19220
- cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
19504
+ max_level_permission: isSet(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
19221
19505
  };
19222
19506
  },
19223
19507
 
@@ -19226,14 +19510,8 @@ export const RoleList = {
19226
19510
  if (message.roles?.length) {
19227
19511
  obj.roles = message.roles.map((e) => Role.toJSON(e));
19228
19512
  }
19229
- if (message.next_cursor !== "") {
19230
- obj.next_cursor = message.next_cursor;
19231
- }
19232
- if (message.prev_cursor !== "") {
19233
- obj.prev_cursor = message.prev_cursor;
19234
- }
19235
- if (message.cacheable_cursor !== "") {
19236
- obj.cacheable_cursor = message.cacheable_cursor;
19513
+ if (message.max_level_permission !== 0) {
19514
+ obj.max_level_permission = Math.round(message.max_level_permission);
19237
19515
  }
19238
19516
  return obj;
19239
19517
  },
@@ -19244,9 +19522,7 @@ export const RoleList = {
19244
19522
  fromPartial<I extends Exact<DeepPartial<RoleList>, I>>(object: I): RoleList {
19245
19523
  const message = createBaseRoleList();
19246
19524
  message.roles = object.roles?.map((e) => Role.fromPartial(e)) || [];
19247
- message.next_cursor = object.next_cursor ?? "";
19248
- message.prev_cursor = object.prev_cursor ?? "";
19249
- message.cacheable_cursor = object.cacheable_cursor ?? "";
19525
+ message.max_level_permission = object.max_level_permission ?? 0;
19250
19526
  return message;
19251
19527
  },
19252
19528
  };