mezon-js-protobuf 1.8.53 → 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,16 +1762,19 @@ 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 */
1763
1769
  reason: string;
1764
1770
  }
1765
1771
 
1766
- export interface bannedUserList {
1772
+ export interface BannedUserListRequest {
1773
+ clan_id: string;
1774
+ channel_id: string;
1775
+ }
1776
+
1777
+ export interface BannedUserList {
1767
1778
  banned_users: BannedUser[];
1768
1779
  }
1769
1780
 
@@ -1944,10 +1955,6 @@ export interface SetNotificationRequest {
1944
1955
  channel_category_id: string;
1945
1956
  /** notification_type */
1946
1957
  notification_type: number;
1947
- /** time mute channel category */
1948
- time_mute:
1949
- | Date
1950
- | undefined;
1951
1958
  /** */
1952
1959
  clan_id: string;
1953
1960
  }
@@ -1960,11 +1967,12 @@ export interface PinMessageRequest {
1960
1967
  }
1961
1968
 
1962
1969
  /** set notification */
1963
- export interface SetMuteNotificationRequest {
1970
+ export interface SetMuteRequest {
1964
1971
  /** channel_id and category_id */
1965
1972
  id: string;
1966
- notification_type: number;
1973
+ mute_time: number;
1967
1974
  active: number;
1975
+ clan_id: string;
1968
1976
  }
1969
1977
 
1970
1978
  export interface HashtagDmListRequest {
@@ -2026,12 +2034,8 @@ export interface SetDefaultNotificationRequest {
2026
2034
  export interface RoleList {
2027
2035
  /** A list of role. */
2028
2036
  roles: Role[];
2029
- /** The cursor to send when retrieving the next page, if any. */
2030
- next_cursor: string;
2031
- /** The cursor to send when retrieving the previous page, if any. */
2032
- prev_cursor: string;
2033
- /** Cacheable cursor to list newer role description. Durable and designed to be stored, unlike next/prev cursors. */
2034
- cacheable_cursor: string;
2037
+ /** level permission max */
2038
+ max_level_permission: number;
2035
2039
  }
2036
2040
 
2037
2041
  export interface EventList {
@@ -4637,6 +4641,120 @@ export const SessionLogoutRequest = {
4637
4641
  },
4638
4642
  };
4639
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
+
4640
4758
  function createBaseBanGroupUsersRequest(): BanGroupUsersRequest {
4641
4759
  return { group_id: "", user_ids: [] };
4642
4760
  }
@@ -16444,7 +16562,7 @@ export const BanClanUsersRequest = {
16444
16562
  };
16445
16563
 
16446
16564
  function createBaseBannedUser(): BannedUser {
16447
- 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: "" };
16448
16566
  }
16449
16567
 
16450
16568
  export const BannedUser = {
@@ -16455,17 +16573,14 @@ export const BannedUser = {
16455
16573
  if (message.banned_id !== "") {
16456
16574
  writer.uint32(18).string(message.banned_id);
16457
16575
  }
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);
16576
+ if (message.banner_id !== "") {
16577
+ writer.uint32(26).string(message.banner_id);
16463
16578
  }
16464
16579
  if (message.ban_time !== 0) {
16465
- writer.uint32(40).int32(message.ban_time);
16580
+ writer.uint32(32).int32(message.ban_time);
16466
16581
  }
16467
16582
  if (message.reason !== "") {
16468
- writer.uint32(50).string(message.reason);
16583
+ writer.uint32(42).string(message.reason);
16469
16584
  }
16470
16585
  return writer;
16471
16586
  },
@@ -16496,24 +16611,17 @@ export const BannedUser = {
16496
16611
  break;
16497
16612
  }
16498
16613
 
16499
- message.banned_avatar = reader.string();
16614
+ message.banner_id = reader.string();
16500
16615
  continue;
16501
16616
  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) {
16617
+ if (tag !== 32) {
16510
16618
  break;
16511
16619
  }
16512
16620
 
16513
16621
  message.ban_time = reader.int32();
16514
16622
  continue;
16515
- case 6:
16516
- if (tag !== 50) {
16623
+ case 5:
16624
+ if (tag !== 42) {
16517
16625
  break;
16518
16626
  }
16519
16627
 
@@ -16532,8 +16640,7 @@ export const BannedUser = {
16532
16640
  return {
16533
16641
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16534
16642
  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) : "",
16643
+ banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
16537
16644
  ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
16538
16645
  reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
16539
16646
  };
@@ -16547,11 +16654,8 @@ export const BannedUser = {
16547
16654
  if (message.banned_id !== "") {
16548
16655
  obj.banned_id = message.banned_id;
16549
16656
  }
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;
16657
+ if (message.banner_id !== "") {
16658
+ obj.banner_id = message.banner_id;
16555
16659
  }
16556
16660
  if (message.ban_time !== 0) {
16557
16661
  obj.ban_time = Math.round(message.ban_time);
@@ -16569,30 +16673,103 @@ export const BannedUser = {
16569
16673
  const message = createBaseBannedUser();
16570
16674
  message.channel_id = object.channel_id ?? "";
16571
16675
  message.banned_id = object.banned_id ?? "";
16572
- message.banned_avatar = object.banned_avatar ?? "";
16573
- message.banned_name = object.banned_name ?? "";
16676
+ message.banner_id = object.banner_id ?? "";
16574
16677
  message.ban_time = object.ban_time ?? 0;
16575
16678
  message.reason = object.reason ?? "";
16576
16679
  return message;
16577
16680
  },
16578
16681
  };
16579
16682
 
16580
- function createBasebannedUserList(): bannedUserList {
16683
+ function createBaseBannedUserListRequest(): BannedUserListRequest {
16684
+ return { clan_id: "", channel_id: "" };
16685
+ }
16686
+
16687
+ export const BannedUserListRequest = {
16688
+ encode(message: BannedUserListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16689
+ if (message.clan_id !== "") {
16690
+ writer.uint32(10).string(message.clan_id);
16691
+ }
16692
+ if (message.channel_id !== "") {
16693
+ writer.uint32(18).string(message.channel_id);
16694
+ }
16695
+ return writer;
16696
+ },
16697
+
16698
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserListRequest {
16699
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16700
+ let end = length === undefined ? reader.len : reader.pos + length;
16701
+ const message = createBaseBannedUserListRequest();
16702
+ while (reader.pos < end) {
16703
+ const tag = reader.uint32();
16704
+ switch (tag >>> 3) {
16705
+ case 1:
16706
+ if (tag !== 10) {
16707
+ break;
16708
+ }
16709
+
16710
+ message.clan_id = reader.string();
16711
+ continue;
16712
+ case 2:
16713
+ if (tag !== 18) {
16714
+ break;
16715
+ }
16716
+
16717
+ message.channel_id = reader.string();
16718
+ continue;
16719
+ }
16720
+ if ((tag & 7) === 4 || tag === 0) {
16721
+ break;
16722
+ }
16723
+ reader.skipType(tag & 7);
16724
+ }
16725
+ return message;
16726
+ },
16727
+
16728
+ fromJSON(object: any): BannedUserListRequest {
16729
+ return {
16730
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16731
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16732
+ };
16733
+ },
16734
+
16735
+ toJSON(message: BannedUserListRequest): unknown {
16736
+ const obj: any = {};
16737
+ if (message.clan_id !== "") {
16738
+ obj.clan_id = message.clan_id;
16739
+ }
16740
+ if (message.channel_id !== "") {
16741
+ obj.channel_id = message.channel_id;
16742
+ }
16743
+ return obj;
16744
+ },
16745
+
16746
+ create<I extends Exact<DeepPartial<BannedUserListRequest>, I>>(base?: I): BannedUserListRequest {
16747
+ return BannedUserListRequest.fromPartial(base ?? ({} as any));
16748
+ },
16749
+ fromPartial<I extends Exact<DeepPartial<BannedUserListRequest>, I>>(object: I): BannedUserListRequest {
16750
+ const message = createBaseBannedUserListRequest();
16751
+ message.clan_id = object.clan_id ?? "";
16752
+ message.channel_id = object.channel_id ?? "";
16753
+ return message;
16754
+ },
16755
+ };
16756
+
16757
+ function createBaseBannedUserList(): BannedUserList {
16581
16758
  return { banned_users: [] };
16582
16759
  }
16583
16760
 
16584
- export const bannedUserList = {
16585
- encode(message: bannedUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16761
+ export const BannedUserList = {
16762
+ encode(message: BannedUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16586
16763
  for (const v of message.banned_users) {
16587
16764
  BannedUser.encode(v!, writer.uint32(10).fork()).ldelim();
16588
16765
  }
16589
16766
  return writer;
16590
16767
  },
16591
16768
 
16592
- decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList {
16769
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserList {
16593
16770
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
16594
16771
  let end = length === undefined ? reader.len : reader.pos + length;
16595
- const message = createBasebannedUserList();
16772
+ const message = createBaseBannedUserList();
16596
16773
  while (reader.pos < end) {
16597
16774
  const tag = reader.uint32();
16598
16775
  switch (tag >>> 3) {
@@ -16612,7 +16789,7 @@ export const bannedUserList = {
16612
16789
  return message;
16613
16790
  },
16614
16791
 
16615
- fromJSON(object: any): bannedUserList {
16792
+ fromJSON(object: any): BannedUserList {
16616
16793
  return {
16617
16794
  banned_users: globalThis.Array.isArray(object?.banned_users)
16618
16795
  ? object.banned_users.map((e: any) => BannedUser.fromJSON(e))
@@ -16620,7 +16797,7 @@ export const bannedUserList = {
16620
16797
  };
16621
16798
  },
16622
16799
 
16623
- toJSON(message: bannedUserList): unknown {
16800
+ toJSON(message: BannedUserList): unknown {
16624
16801
  const obj: any = {};
16625
16802
  if (message.banned_users?.length) {
16626
16803
  obj.banned_users = message.banned_users.map((e) => BannedUser.toJSON(e));
@@ -16628,11 +16805,11 @@ export const bannedUserList = {
16628
16805
  return obj;
16629
16806
  },
16630
16807
 
16631
- create<I extends Exact<DeepPartial<bannedUserList>, I>>(base?: I): bannedUserList {
16632
- return bannedUserList.fromPartial(base ?? ({} as any));
16808
+ create<I extends Exact<DeepPartial<BannedUserList>, I>>(base?: I): BannedUserList {
16809
+ return BannedUserList.fromPartial(base ?? ({} as any));
16633
16810
  },
16634
- fromPartial<I extends Exact<DeepPartial<bannedUserList>, I>>(object: I): bannedUserList {
16635
- const message = createBasebannedUserList();
16811
+ fromPartial<I extends Exact<DeepPartial<BannedUserList>, I>>(object: I): BannedUserList {
16812
+ const message = createBaseBannedUserList();
16636
16813
  message.banned_users = object.banned_users?.map((e) => BannedUser.fromPartial(e)) || [];
16637
16814
  return message;
16638
16815
  },
@@ -18497,7 +18674,7 @@ export const NotificationSettingList = {
18497
18674
  };
18498
18675
 
18499
18676
  function createBaseSetNotificationRequest(): SetNotificationRequest {
18500
- return { channel_category_id: "", notification_type: 0, time_mute: undefined, clan_id: "" };
18677
+ return { channel_category_id: "", notification_type: 0, clan_id: "" };
18501
18678
  }
18502
18679
 
18503
18680
  export const SetNotificationRequest = {
@@ -18508,11 +18685,8 @@ export const SetNotificationRequest = {
18508
18685
  if (message.notification_type !== 0) {
18509
18686
  writer.uint32(16).int32(message.notification_type);
18510
18687
  }
18511
- if (message.time_mute !== undefined) {
18512
- Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
18513
- }
18514
18688
  if (message.clan_id !== "") {
18515
- writer.uint32(34).string(message.clan_id);
18689
+ writer.uint32(26).string(message.clan_id);
18516
18690
  }
18517
18691
  return writer;
18518
18692
  },
@@ -18543,13 +18717,6 @@ export const SetNotificationRequest = {
18543
18717
  break;
18544
18718
  }
18545
18719
 
18546
- message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
18547
- continue;
18548
- case 4:
18549
- if (tag !== 34) {
18550
- break;
18551
- }
18552
-
18553
18720
  message.clan_id = reader.string();
18554
18721
  continue;
18555
18722
  }
@@ -18565,7 +18732,6 @@ export const SetNotificationRequest = {
18565
18732
  return {
18566
18733
  channel_category_id: isSet(object.channel_category_id) ? globalThis.String(object.channel_category_id) : "",
18567
18734
  notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
18568
- time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
18569
18735
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
18570
18736
  };
18571
18737
  },
@@ -18578,9 +18744,6 @@ export const SetNotificationRequest = {
18578
18744
  if (message.notification_type !== 0) {
18579
18745
  obj.notification_type = Math.round(message.notification_type);
18580
18746
  }
18581
- if (message.time_mute !== undefined) {
18582
- obj.time_mute = message.time_mute.toISOString();
18583
- }
18584
18747
  if (message.clan_id !== "") {
18585
18748
  obj.clan_id = message.clan_id;
18586
18749
  }
@@ -18594,7 +18757,6 @@ export const SetNotificationRequest = {
18594
18757
  const message = createBaseSetNotificationRequest();
18595
18758
  message.channel_category_id = object.channel_category_id ?? "";
18596
18759
  message.notification_type = object.notification_type ?? 0;
18597
- message.time_mute = object.time_mute ?? undefined;
18598
18760
  message.clan_id = object.clan_id ?? "";
18599
18761
  return message;
18600
18762
  },
@@ -18689,28 +18851,31 @@ export const PinMessageRequest = {
18689
18851
  },
18690
18852
  };
18691
18853
 
18692
- function createBaseSetMuteNotificationRequest(): SetMuteNotificationRequest {
18693
- return { id: "", notification_type: 0, active: 0 };
18854
+ function createBaseSetMuteRequest(): SetMuteRequest {
18855
+ return { id: "", mute_time: 0, active: 0, clan_id: "" };
18694
18856
  }
18695
18857
 
18696
- export const SetMuteNotificationRequest = {
18697
- encode(message: SetMuteNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18858
+ export const SetMuteRequest = {
18859
+ encode(message: SetMuteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18698
18860
  if (message.id !== "") {
18699
18861
  writer.uint32(10).string(message.id);
18700
18862
  }
18701
- if (message.notification_type !== 0) {
18702
- writer.uint32(16).int32(message.notification_type);
18863
+ if (message.mute_time !== 0) {
18864
+ writer.uint32(16).int32(message.mute_time);
18703
18865
  }
18704
18866
  if (message.active !== 0) {
18705
18867
  writer.uint32(24).int32(message.active);
18706
18868
  }
18869
+ if (message.clan_id !== "") {
18870
+ writer.uint32(34).string(message.clan_id);
18871
+ }
18707
18872
  return writer;
18708
18873
  },
18709
18874
 
18710
- decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteNotificationRequest {
18875
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteRequest {
18711
18876
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18712
18877
  let end = length === undefined ? reader.len : reader.pos + length;
18713
- const message = createBaseSetMuteNotificationRequest();
18878
+ const message = createBaseSetMuteRequest();
18714
18879
  while (reader.pos < end) {
18715
18880
  const tag = reader.uint32();
18716
18881
  switch (tag >>> 3) {
@@ -18726,7 +18891,7 @@ export const SetMuteNotificationRequest = {
18726
18891
  break;
18727
18892
  }
18728
18893
 
18729
- message.notification_type = reader.int32();
18894
+ message.mute_time = reader.int32();
18730
18895
  continue;
18731
18896
  case 3:
18732
18897
  if (tag !== 24) {
@@ -18735,6 +18900,13 @@ export const SetMuteNotificationRequest = {
18735
18900
 
18736
18901
  message.active = reader.int32();
18737
18902
  continue;
18903
+ case 4:
18904
+ if (tag !== 34) {
18905
+ break;
18906
+ }
18907
+
18908
+ message.clan_id = reader.string();
18909
+ continue;
18738
18910
  }
18739
18911
  if ((tag & 7) === 4 || tag === 0) {
18740
18912
  break;
@@ -18744,36 +18916,41 @@ export const SetMuteNotificationRequest = {
18744
18916
  return message;
18745
18917
  },
18746
18918
 
18747
- fromJSON(object: any): SetMuteNotificationRequest {
18919
+ fromJSON(object: any): SetMuteRequest {
18748
18920
  return {
18749
18921
  id: isSet(object.id) ? globalThis.String(object.id) : "",
18750
- notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
18922
+ mute_time: isSet(object.mute_time) ? globalThis.Number(object.mute_time) : 0,
18751
18923
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
18924
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
18752
18925
  };
18753
18926
  },
18754
18927
 
18755
- toJSON(message: SetMuteNotificationRequest): unknown {
18928
+ toJSON(message: SetMuteRequest): unknown {
18756
18929
  const obj: any = {};
18757
18930
  if (message.id !== "") {
18758
18931
  obj.id = message.id;
18759
18932
  }
18760
- if (message.notification_type !== 0) {
18761
- obj.notification_type = Math.round(message.notification_type);
18933
+ if (message.mute_time !== 0) {
18934
+ obj.mute_time = Math.round(message.mute_time);
18762
18935
  }
18763
18936
  if (message.active !== 0) {
18764
18937
  obj.active = Math.round(message.active);
18765
18938
  }
18939
+ if (message.clan_id !== "") {
18940
+ obj.clan_id = message.clan_id;
18941
+ }
18766
18942
  return obj;
18767
18943
  },
18768
18944
 
18769
- create<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(base?: I): SetMuteNotificationRequest {
18770
- return SetMuteNotificationRequest.fromPartial(base ?? ({} as any));
18945
+ create<I extends Exact<DeepPartial<SetMuteRequest>, I>>(base?: I): SetMuteRequest {
18946
+ return SetMuteRequest.fromPartial(base ?? ({} as any));
18771
18947
  },
18772
- fromPartial<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(object: I): SetMuteNotificationRequest {
18773
- const message = createBaseSetMuteNotificationRequest();
18948
+ fromPartial<I extends Exact<DeepPartial<SetMuteRequest>, I>>(object: I): SetMuteRequest {
18949
+ const message = createBaseSetMuteRequest();
18774
18950
  message.id = object.id ?? "";
18775
- message.notification_type = object.notification_type ?? 0;
18951
+ message.mute_time = object.mute_time ?? 0;
18776
18952
  message.active = object.active ?? 0;
18953
+ message.clan_id = object.clan_id ?? "";
18777
18954
  return message;
18778
18955
  },
18779
18956
  };
@@ -19382,7 +19559,7 @@ export const SetDefaultNotificationRequest = {
19382
19559
  };
19383
19560
 
19384
19561
  function createBaseRoleList(): RoleList {
19385
- return { roles: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
19562
+ return { roles: [], max_level_permission: 0 };
19386
19563
  }
19387
19564
 
19388
19565
  export const RoleList = {
@@ -19390,14 +19567,8 @@ export const RoleList = {
19390
19567
  for (const v of message.roles) {
19391
19568
  Role.encode(v!, writer.uint32(10).fork()).ldelim();
19392
19569
  }
19393
- if (message.next_cursor !== "") {
19394
- writer.uint32(18).string(message.next_cursor);
19395
- }
19396
- if (message.prev_cursor !== "") {
19397
- writer.uint32(26).string(message.prev_cursor);
19398
- }
19399
- if (message.cacheable_cursor !== "") {
19400
- writer.uint32(34).string(message.cacheable_cursor);
19570
+ if (message.max_level_permission !== 0) {
19571
+ writer.uint32(16).int32(message.max_level_permission);
19401
19572
  }
19402
19573
  return writer;
19403
19574
  },
@@ -19417,25 +19588,11 @@ export const RoleList = {
19417
19588
  message.roles.push(Role.decode(reader, reader.uint32()));
19418
19589
  continue;
19419
19590
  case 2:
19420
- if (tag !== 18) {
19421
- break;
19422
- }
19423
-
19424
- message.next_cursor = reader.string();
19425
- continue;
19426
- case 3:
19427
- if (tag !== 26) {
19428
- break;
19429
- }
19430
-
19431
- message.prev_cursor = reader.string();
19432
- continue;
19433
- case 4:
19434
- if (tag !== 34) {
19591
+ if (tag !== 16) {
19435
19592
  break;
19436
19593
  }
19437
19594
 
19438
- message.cacheable_cursor = reader.string();
19595
+ message.max_level_permission = reader.int32();
19439
19596
  continue;
19440
19597
  }
19441
19598
  if ((tag & 7) === 4 || tag === 0) {
@@ -19449,9 +19606,7 @@ export const RoleList = {
19449
19606
  fromJSON(object: any): RoleList {
19450
19607
  return {
19451
19608
  roles: globalThis.Array.isArray(object?.roles) ? object.roles.map((e: any) => Role.fromJSON(e)) : [],
19452
- next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
19453
- prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
19454
- cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
19609
+ max_level_permission: isSet(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
19455
19610
  };
19456
19611
  },
19457
19612
 
@@ -19460,14 +19615,8 @@ export const RoleList = {
19460
19615
  if (message.roles?.length) {
19461
19616
  obj.roles = message.roles.map((e) => Role.toJSON(e));
19462
19617
  }
19463
- if (message.next_cursor !== "") {
19464
- obj.next_cursor = message.next_cursor;
19465
- }
19466
- if (message.prev_cursor !== "") {
19467
- obj.prev_cursor = message.prev_cursor;
19468
- }
19469
- if (message.cacheable_cursor !== "") {
19470
- obj.cacheable_cursor = message.cacheable_cursor;
19618
+ if (message.max_level_permission !== 0) {
19619
+ obj.max_level_permission = Math.round(message.max_level_permission);
19471
19620
  }
19472
19621
  return obj;
19473
19622
  },
@@ -19478,9 +19627,7 @@ export const RoleList = {
19478
19627
  fromPartial<I extends Exact<DeepPartial<RoleList>, I>>(object: I): RoleList {
19479
19628
  const message = createBaseRoleList();
19480
19629
  message.roles = object.roles?.map((e) => Role.fromPartial(e)) || [];
19481
- message.next_cursor = object.next_cursor ?? "";
19482
- message.prev_cursor = object.prev_cursor ?? "";
19483
- message.cacheable_cursor = object.cacheable_cursor ?? "";
19630
+ message.max_level_permission = object.max_level_permission ?? 0;
19484
19631
  return message;
19485
19632
  },
19486
19633
  };