mezon-js 2.14.31 → 2.14.33

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.gen.ts CHANGED
@@ -12,19 +12,19 @@ export interface ChannelUserListChannelUser {
12
12
  //
13
13
  clan_avatar?: string;
14
14
  //
15
- clan_id?: bigint;
15
+ clan_id?: string;
16
16
  //
17
17
  clan_nick?: string;
18
18
  //
19
- id?: bigint;
19
+ id?: string;
20
20
  //Their relationship to the role.
21
- role_id?: Array<bigint>;
21
+ role_id?: Array<string>;
22
22
  //
23
- thread_id?: bigint;
23
+ thread_id?: string;
24
24
  //User.
25
- user_id?: bigint;
25
+ user_id?: string;
26
26
  //Added by
27
- added_by?: bigint;
27
+ added_by?: string;
28
28
  // is banned
29
29
  is_banned?: boolean;
30
30
  // expired time
@@ -34,15 +34,15 @@ export interface ChannelUserListChannelUser {
34
34
  /** A message sent on a channel. */
35
35
  export interface ChannelMessage {
36
36
  //The unique ID of this message.
37
- id: bigint;
37
+ id: string;
38
38
  //
39
39
  avatar?: string;
40
40
  //The channel this message belongs to.
41
- channel_id: bigint;
41
+ channel_id: string;
42
42
  //The name of the chat room, or an empty string if this message was not sent through a chat room.
43
43
  channel_label: string;
44
44
  //The clan this message belong to.
45
- clan_id?: bigint;
45
+ clan_id?: string;
46
46
  //The code representing a message type or category.
47
47
  code: number;
48
48
  //The content payload.
@@ -60,7 +60,7 @@ export interface ChannelMessage {
60
60
  //True if the message was persisted to the channel's history, false otherwise.
61
61
  persistent?: boolean;
62
62
  //Message sender, usually a user ID.
63
- sender_id: bigint;
63
+ sender_id: string;
64
64
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
65
65
  update_time?: string;
66
66
  //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
@@ -82,13 +82,13 @@ export interface ChannelMessage {
82
82
  //
83
83
  mode?: number;
84
84
  //
85
- message_id?: bigint;
85
+ message_id?: string;
86
86
  //
87
87
  hide_editted?: boolean;
88
88
  //
89
89
  is_public?: boolean;
90
90
  //
91
- topic_id?: bigint;
91
+ topic_id?: string;
92
92
  }
93
93
 
94
94
  /** */
@@ -96,11 +96,11 @@ export interface ApiBannedUser {
96
96
  //
97
97
  ban_time?: number;
98
98
  //The banned user.
99
- banned_id?: bigint;
99
+ banned_id?: string;
100
100
  //
101
- banner_id?: bigint;
101
+ banner_id?: string;
102
102
  //
103
- channel_id?: bigint;
103
+ channel_id?: string;
104
104
  //
105
105
  reason?: string;
106
106
  }
@@ -116,11 +116,11 @@ export interface ClanUserListClanUser {
116
116
  //from the `avatar_url` field in the `clan_desc_profile` table.
117
117
  clan_avatar?: string;
118
118
  //
119
- clan_id?: bigint;
119
+ clan_id?: string;
120
120
  //from the `nick_name` field in the `clan_desc_profile` table.
121
121
  clan_nick?: string;
122
122
  //Their relationship to the role.
123
- role_id?: Array<bigint>;
123
+ role_id?: Array<string>;
124
124
  //User.
125
125
  user?: ApiUser;
126
126
  }
@@ -130,13 +130,13 @@ export interface GetPubKeysResponseUserPubKey {
130
130
  //
131
131
  PK?: ApiPubKey;
132
132
  //
133
- user_id?: bigint;
133
+ user_id?: string;
134
134
  }
135
135
 
136
136
  /** */
137
137
  export interface CountClanBadgeResponseBadge {
138
138
  //
139
- clan_id?: bigint;
139
+ clan_id?: string;
140
140
  //
141
141
  count?: number;
142
142
  }
@@ -144,9 +144,9 @@ export interface CountClanBadgeResponseBadge {
144
144
  /** */
145
145
  export interface MezonChangeChannelCategoryBody {
146
146
  //
147
- channel_id?: bigint;
147
+ channel_id?: string;
148
148
  //
149
- clan_id?: bigint;
149
+ clan_id?: string;
150
150
  }
151
151
 
152
152
  /** */
@@ -158,9 +158,9 @@ export interface MezonSetChanEncryptionMethodBody {
158
158
  /** */
159
159
  export interface MezonDeleteWebhookByIdBody {
160
160
  //
161
- channel_id?: bigint;
161
+ channel_id?: string;
162
162
  //
163
- clan_id?: bigint;
163
+ clan_id?: string;
164
164
  }
165
165
 
166
166
  /** Update app information. */
@@ -184,7 +184,7 @@ export interface MezonUpdateAppBody {
184
184
  /** */
185
185
  export interface MezonUpdateCategoryBody {
186
186
  //The ID of the group to update.
187
- category_id?: bigint;
187
+ category_id?: string;
188
188
  //
189
189
  category_name?: string;
190
190
  }
@@ -200,7 +200,7 @@ export interface ApiAddAppRequest {
200
200
  //The appname.
201
201
  appname?: string;
202
202
  //Creator of the app.
203
- creator_id?: bigint;
203
+ creator_id?: string;
204
204
  //Is shadow.
205
205
  is_shadow?: boolean;
206
206
  //Role of this app.
@@ -230,7 +230,7 @@ export interface MezonUpdateChannelDescBody {
230
230
  //
231
231
  age_restricted?: number;
232
232
  //
233
- category_id?: bigint;
233
+ category_id?: string;
234
234
  //
235
235
  channel_label?: string;
236
236
  //
@@ -238,11 +238,11 @@ export interface MezonUpdateChannelDescBody {
238
238
  //
239
239
  topic?: string;
240
240
  /** The clan ID */
241
- clan_id: bigint;
241
+ clan_id: string;
242
242
  /** The ID of the channel to update. */
243
- channel_id: bigint;
243
+ channel_id: string;
244
244
  /** app url for channel type app */
245
- app_id: bigint;
245
+ app_id: string;
246
246
  /** channel avatar */
247
247
  channel_avatar: string | undefined;
248
248
  }
@@ -250,7 +250,7 @@ export interface MezonUpdateChannelDescBody {
250
250
  /** */
251
251
  export interface ApiLogedDevice {
252
252
  //
253
- device_id?: bigint;
253
+ device_id?: string;
254
254
  //
255
255
  device_name?: string;
256
256
  //
@@ -282,7 +282,7 @@ export interface MezonUpdateClanDescBody {
282
282
  //
283
283
  clan_name?: string;
284
284
  //
285
- creator_id?: bigint;
285
+ creator_id?: string;
286
286
  //
287
287
  logo?: string;
288
288
  //
@@ -290,7 +290,7 @@ export interface MezonUpdateClanDescBody {
290
290
  // is onboarding.
291
291
  is_onboarding?: boolean;
292
292
  // welcome channel id.
293
- welcome_channel_id?: bigint;
293
+ welcome_channel_id?: string;
294
294
  //Onboarding_banner.
295
295
  onboarding_banner?: string;
296
296
  // is community.
@@ -321,9 +321,9 @@ export interface MezonUpdateClanDescProfileBody {
321
321
 
322
322
  /** */
323
323
  export interface MezonUpdateClanEmojiByIdBody {
324
- id: bigint;
324
+ id: string;
325
325
  shortname: string;
326
- clan_id: bigint;
326
+ clan_id: string;
327
327
  source: string;
328
328
  }
329
329
 
@@ -332,7 +332,7 @@ export interface MezonUpdateClanStickerByIdBody {
332
332
  //
333
333
  category?: string;
334
334
  //
335
- clan_id?: bigint;
335
+ clan_id?: string;
336
336
  //
337
337
  shortname?: string;
338
338
  //
@@ -342,17 +342,17 @@ export interface MezonUpdateClanStickerByIdBody {
342
342
  /** update a event within clan. */
343
343
  export interface MezonUpdateEventBody {
344
344
  //
345
- event_id?: bigint;
345
+ event_id?: string;
346
346
  //
347
347
  address?: string;
348
348
  //
349
- channel_id?: bigint;
349
+ channel_id?: string;
350
350
  //
351
- channel_voice_id?: bigint;
351
+ channel_voice_id?: string;
352
352
  //
353
- clan_id?: bigint;
353
+ clan_id?: string;
354
354
  //
355
- creator_id?: bigint;
355
+ creator_id?: string;
356
356
  //
357
357
  description?: string;
358
358
  //
@@ -364,7 +364,7 @@ export interface MezonUpdateEventBody {
364
364
  //
365
365
  title?: string;
366
366
  //
367
- channel_id_old?: bigint;
367
+ channel_id_old?: string;
368
368
  //
369
369
  repeat_type?: number;
370
370
  }
@@ -372,13 +372,13 @@ export interface MezonUpdateEventBody {
372
372
  /** Update fields in a given role. */
373
373
  export interface MezonUpdateRoleBody {
374
374
  //The permissions to add.
375
- active_permission_ids?: Array<bigint>;
375
+ active_permission_ids?: Array<string>;
376
376
  //The users to add.
377
- add_user_ids?: Array<bigint>;
377
+ add_user_ids?: Array<string>;
378
378
  //
379
379
  allow_mention?: number;
380
380
  //
381
- clan_id?: bigint;
381
+ clan_id?: string;
382
382
  //
383
383
  color?: string;
384
384
  //
@@ -386,11 +386,11 @@ export interface MezonUpdateRoleBody {
386
386
  //
387
387
  display_online?: number;
388
388
  //
389
- max_permission_id: bigint;
389
+ max_permission_id: string;
390
390
  //The permissions to remove.
391
- remove_permission_ids?: Array<bigint>;
391
+ remove_permission_ids?: Array<string>;
392
392
  //The users to remove.
393
- remove_user_ids?: Array<bigint>;
393
+ remove_user_ids?: Array<string>;
394
394
  //
395
395
  role_icon?: string;
396
396
  //
@@ -400,7 +400,7 @@ export interface MezonUpdateRoleBody {
400
400
  /** Delete a role the user has access to. */
401
401
  export interface MezonUpdateRoleDeleteBody {
402
402
  //
403
- clan_id?: bigint;
403
+ clan_id?: string;
404
404
  }
405
405
 
406
406
  /** Request to get system message by clan and channel IDs. */
@@ -408,7 +408,7 @@ export interface MezonUpdateSystemMessageBody {
408
408
  //
409
409
  boost_message?: string;
410
410
  //
411
- channel_id?: bigint;
411
+ channel_id?: string;
412
412
  //
413
413
  hide_audit_log?: string;
414
414
  //
@@ -432,11 +432,11 @@ export interface MezonUpdateWebhookByIdBody {
432
432
  //
433
433
  avatar?: string;
434
434
  //
435
- channel_id?: bigint;
435
+ channel_id?: string;
436
436
  //
437
- channel_id_update?: bigint;
437
+ channel_id_update?: string;
438
438
  //
439
- clan_id?: bigint;
439
+ clan_id?: string;
440
440
  //
441
441
  webhook_name?: string;
442
442
  }
@@ -448,7 +448,7 @@ export interface RoleUserListRoleUser {
448
448
  //The display name of the user.
449
449
  display_name?: string;
450
450
  //The id of the user's account.
451
- id?: bigint;
451
+ id?: string;
452
452
  //The language expected to be a tag which follows the BCP-47 spec.
453
453
  lang_tag?: string;
454
454
  //The location set by the user.
@@ -462,7 +462,7 @@ export interface RoleUserListRoleUser {
462
462
  /** */
463
463
  export interface UpdateClanOrderRequestClanOrder {
464
464
  //
465
- clan_id?: bigint;
465
+ clan_id?: string;
466
466
  //
467
467
  order?: number;
468
468
  }
@@ -476,7 +476,7 @@ export interface ApiUpdateClanOrderRequest {
476
476
  /** A user with additional account details. Always the current user. */
477
477
  export interface ApiAccount {
478
478
  //The custom id in the user's account.
479
- custom_id?: bigint;
479
+ custom_id?: string;
480
480
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned.
481
481
  disable_time?: string;
482
482
  //The email address of the user.
@@ -500,7 +500,7 @@ export interface ApiAccount {
500
500
  /** Send a app token to the server. Used with authenticate/link/unlink. */
501
501
  export interface ApiAccountApp {
502
502
  //
503
- appid?: bigint;
503
+ appid?: string;
504
504
  //
505
505
  appname?: string;
506
506
  //The account token when create apps to access their profile API.
@@ -546,33 +546,33 @@ export interface ApiLinkAccountMezon {
546
546
  /** */
547
547
  export interface ApiAddFavoriteChannelRequest {
548
548
  //
549
- channel_id?: bigint;
549
+ channel_id?: string;
550
550
  //
551
- clan_id?: bigint;
551
+ clan_id?: string;
552
552
  }
553
553
 
554
554
  /** */
555
555
  export interface ApiAddFavoriteChannelResponse {
556
556
  //
557
- channel_id?: bigint;
557
+ channel_id?: string;
558
558
  }
559
559
 
560
560
  /** Add a role for channel. */
561
561
  export interface ApiAddRoleChannelDescRequest {
562
562
  //
563
- channel_id?: bigint;
563
+ channel_id?: string;
564
564
  //
565
- role_ids?: Array<bigint>;
565
+ role_ids?: Array<string>;
566
566
  }
567
567
 
568
568
  /** */
569
569
  export interface ApiAllUsersAddChannelResponse {
570
570
  //
571
- channel_id?: bigint;
571
+ channel_id?: string;
572
572
  //
573
573
  limit?: number;
574
574
  //
575
- user_ids?: Array<bigint>;
575
+ user_ids?: Array<string>;
576
576
  //
577
577
  usernames?: Array<string>;
578
578
  //
@@ -600,13 +600,13 @@ export interface ApiApp {
600
600
  //
601
601
  appname?: string;
602
602
  //
603
- creator_id?: bigint;
603
+ creator_id?: string;
604
604
  //The UNIX time when the app was disabled.
605
605
  disable_time?: string;
606
606
  //The UNIX time when the app was created.
607
607
  create_time?: string;
608
608
  //
609
- id?: bigint;
609
+ id?: string;
610
610
  //
611
611
  is_shadow?: boolean;
612
612
  //
@@ -630,23 +630,23 @@ export interface ApiAuditLog {
630
630
  //
631
631
  action_log?: string;
632
632
  //
633
- channel_id?: bigint;
633
+ channel_id?: string;
634
634
  //
635
635
  channel_label?: string;
636
636
  //
637
- clan_id?: bigint;
637
+ clan_id?: string;
638
638
  //
639
639
  details?: string;
640
640
  //
641
- entity_id?: bigint;
641
+ entity_id?: string;
642
642
  //
643
643
  entity_name?: string;
644
644
  //
645
- id?: bigint;
645
+ id?: string;
646
646
  //
647
647
  time_log?: string;
648
648
  //
649
- user_id?: bigint;
649
+ user_id?: string;
650
650
  }
651
651
 
652
652
  /** Authenticate against the server with email+password. */
@@ -672,15 +672,15 @@ export interface ApiAuthenticateEmailRequest {
672
672
  /** */
673
673
  export interface ApiCategoryDesc {
674
674
  //
675
- category_id?: bigint;
675
+ category_id?: string;
676
676
  //
677
677
  category_name?: string;
678
678
  //
679
679
  category_order?: number;
680
680
  //
681
- clan_id?: bigint;
681
+ clan_id?: string;
682
682
  //
683
- creator_id?: bigint;
683
+ creator_id?: string;
684
684
  }
685
685
 
686
686
  /** */
@@ -698,7 +698,7 @@ export interface ApiUpdateUsernameRequest {
698
698
  /** */
699
699
  export interface ApiCategoryOrderUpdate {
700
700
  //
701
- category_id?: bigint;
701
+ category_id?: string;
702
702
  //
703
703
  order?: number;
704
704
  }
@@ -706,7 +706,7 @@ export interface ApiCategoryOrderUpdate {
706
706
  /** */
707
707
  export interface ApiChanEncryptionMethod {
708
708
  //
709
- channel_id?: bigint;
709
+ channel_id?: string;
710
710
  //
711
711
  method?: string;
712
712
  }
@@ -719,27 +719,27 @@ export interface ApiListChannelAppsResponse {
719
719
  /** Update fields in a given channel. */
720
720
  export interface ApiChangeChannelPrivateRequest {
721
721
  //The clan id
722
- clan_id?: bigint;
722
+ clan_id?: string;
723
723
  //The ID of the channel to update.
724
- channel_id?: bigint;
724
+ channel_id?: string;
725
725
  //
726
726
  channel_private?: number;
727
727
  //
728
- role_ids?: Array<bigint>;
728
+ role_ids?: Array<string>;
729
729
  //The users to add.
730
- user_ids?: Array<bigint>;
730
+ user_ids?: Array<string>;
731
731
  }
732
732
 
733
733
  /** */
734
734
  export interface ApiChannelAppResponse {
735
735
  //
736
- app_id?: bigint;
736
+ app_id?: string;
737
737
  //
738
- channel_id?: bigint;
738
+ channel_id?: string;
739
739
  //
740
- clan_id?: bigint;
740
+ clan_id?: string;
741
741
  //
742
- id?: bigint;
742
+ id?: string;
743
743
  //
744
744
  app_url?: string;
745
745
  //
@@ -759,13 +759,13 @@ export interface ApiChannelAttachment {
759
759
  //
760
760
  filetype?: string;
761
761
  //
762
- id?: bigint;
762
+ id?: string;
763
763
  //
764
764
  uploader?: string;
765
765
  //
766
766
  url?: string;
767
767
  //message id.
768
- message_id?: bigint;
768
+ message_id?: string;
769
769
  //width.
770
770
  width?: number;
771
771
  //height.
@@ -783,11 +783,11 @@ export interface ApiChannelCanvasDetailResponse {
783
783
  //
784
784
  content?: string;
785
785
  //
786
- creator_id?: bigint;
786
+ creator_id?: string;
787
787
  //
788
- editor_id?: bigint;
788
+ editor_id?: string;
789
789
  //
790
- id?: bigint;
790
+ id?: string;
791
791
  //
792
792
  is_default?: boolean;
793
793
  //
@@ -799,9 +799,9 @@ export interface ApiChannelCanvasItem {
799
799
  //
800
800
  content?: string;
801
801
  //
802
- creator_id?: bigint;
802
+ creator_id?: string;
803
803
  //
804
- id?: bigint;
804
+ id?: string;
805
805
  //
806
806
  is_default?: boolean;
807
807
  //
@@ -817,9 +817,9 @@ export interface ApiChannelCanvasListResponse {
817
817
  //
818
818
  channel_canvases?: Array<ApiChannelCanvasItem>;
819
819
  //
820
- channel_id?: bigint;
820
+ channel_id?: string;
821
821
  //
822
- clan_id?: bigint;
822
+ clan_id?: string;
823
823
  //
824
824
  count?: number;
825
825
  }
@@ -827,13 +827,13 @@ export interface ApiChannelCanvasListResponse {
827
827
  /** */
828
828
  export interface ApiEditChannelCanvasRequest {
829
829
  //
830
- channel_id?: bigint;
830
+ channel_id?: string;
831
831
  //
832
- clan_id?: bigint;
832
+ clan_id?: string;
833
833
  //
834
834
  content?: string;
835
835
  //
836
- id?: bigint;
836
+ id?: string;
837
837
  //
838
838
  is_default?: boolean;
839
839
  //
@@ -845,7 +845,7 @@ export interface ApiEditChannelCanvasRequest {
845
845
  /** */
846
846
  export interface ApiEditChannelCanvasResponse {
847
847
  //
848
- id?: bigint;
848
+ id?: string;
849
849
  }
850
850
 
851
851
  /** A list of channel description, usually a result of a list operation. */
@@ -869,7 +869,7 @@ export interface ApiAddChannelAppRequest {
869
869
  //The appname.
870
870
  appname?: string;
871
871
  //Creator of the app.
872
- creator_id?: bigint;
872
+ creator_id?: string;
873
873
  //Role of this app.
874
874
  role?: number;
875
875
  //The password.
@@ -883,17 +883,17 @@ export interface ApiChannelDescription {
883
883
  //
884
884
  age_restricted?: number;
885
885
  //
886
- category_id?: bigint;
886
+ category_id?: string;
887
887
  //
888
888
  category_name?: string;
889
889
  //The channel this message belongs to.
890
- channel_id?: bigint;
890
+ channel_id?: string;
891
891
  //
892
892
  channel_label?: string;
893
893
  //
894
894
  channel_private?: number;
895
895
  //
896
- clan_id?: bigint;
896
+ clan_id?: string;
897
897
  //
898
898
  clan_name?: string;
899
899
  //
@@ -901,7 +901,7 @@ export interface ApiChannelDescription {
901
901
  //
902
902
  create_time_seconds?: number;
903
903
  //creator ID.
904
- creator_id?: bigint;
904
+ creator_id?: string;
905
905
  //
906
906
  creator_name?: string;
907
907
  //
@@ -919,17 +919,17 @@ export interface ApiChannelDescription {
919
919
  //
920
920
  channel_avatar?: string;
921
921
  //The parent channel this message belongs to.
922
- parent_id?: bigint;
922
+ parent_id?: string;
923
923
  //The channel type.
924
924
  type?: number;
925
925
  //
926
926
  update_time_seconds?: number;
927
927
  //
928
- app_id?: bigint;
928
+ app_id?: string;
929
929
  //
930
930
  topic?: string;
931
931
  //
932
- user_ids?: Array<bigint>;
932
+ user_ids?: Array<string>;
933
933
  //
934
934
  usernames?: Array<string>;
935
935
  //
@@ -949,7 +949,7 @@ export interface ApiChannelMessageHeader {
949
949
  //
950
950
  content?: string;
951
951
  //
952
- id?: bigint;
952
+ id?: string;
953
953
  //
954
954
  mention?: Uint8Array;
955
955
  //
@@ -957,9 +957,9 @@ export interface ApiChannelMessageHeader {
957
957
  //
958
958
  reference?: Uint8Array;
959
959
  //
960
- repliers?: Array<bigint>;
960
+ repliers?: Array<string>;
961
961
  //
962
- sender_id?: bigint;
962
+ sender_id?: string;
963
963
  //
964
964
  timestamp_seconds?: number;
965
965
  }
@@ -979,7 +979,7 @@ export interface ApiChannelSettingItem {
979
979
  //
980
980
  active?: number;
981
981
  //
982
- category_id?: bigint;
982
+ category_id?: string;
983
983
  //
984
984
  channel_label?: string;
985
985
  //
@@ -987,9 +987,9 @@ export interface ApiChannelSettingItem {
987
987
  //
988
988
  channel_type?: number;
989
989
  //
990
- creator_id?: bigint;
990
+ creator_id?: string;
991
991
  //
992
- id?: bigint;
992
+ id?: string;
993
993
  //
994
994
  last_sent_message?: ApiChannelMessageHeader;
995
995
  //
@@ -997,9 +997,9 @@ export interface ApiChannelSettingItem {
997
997
  //
998
998
  message_count?: string;
999
999
  //
1000
- parent_id?: bigint;
1000
+ parent_id?: string;
1001
1001
  //
1002
- user_ids?: Array<bigint>;
1002
+ user_ids?: Array<string>;
1003
1003
  }
1004
1004
 
1005
1005
  /** */
@@ -1009,7 +1009,7 @@ export interface ApiChannelSettingListResponse {
1009
1009
  //
1010
1010
  channel_setting_list?: Array<ApiChannelSettingItem>;
1011
1011
  //
1012
- clan_id?: bigint;
1012
+ clan_id?: string;
1013
1013
  //
1014
1014
  thread_count?: number;
1015
1015
  }
@@ -1017,7 +1017,7 @@ export interface ApiChannelSettingListResponse {
1017
1017
  /** A list of users belonging to a channel, along with their role. */
1018
1018
  export interface ApiChannelUserList {
1019
1019
  //
1020
- channel_id?: bigint;
1020
+ channel_id?: string;
1021
1021
  //User-role pairs for a channel.
1022
1022
  channel_users?: Array<ChannelUserListChannelUser>;
1023
1023
  //Cursor for the next page of results, if any.
@@ -1035,11 +1035,11 @@ export interface ApiClanDesc {
1035
1035
  //
1036
1036
  banner?: string;
1037
1037
  //
1038
- clan_id?: bigint;
1038
+ clan_id?: string;
1039
1039
  //
1040
1040
  clan_name?: string;
1041
1041
  //
1042
- creator_id?: bigint;
1042
+ creator_id?: string;
1043
1043
  //
1044
1044
  logo?: string;
1045
1045
  //
@@ -1049,7 +1049,7 @@ export interface ApiClanDesc {
1049
1049
  // is onboarding.
1050
1050
  is_onboarding?: boolean;
1051
1051
  // welcome channel id.
1052
- welcome_channel_id?: bigint;
1052
+ welcome_channel_id?: string;
1053
1053
  //Onboarding_banner.
1054
1054
  onboarding_banner?: string;
1055
1055
  // is community.
@@ -1079,13 +1079,13 @@ export interface ApiClanEmoji {
1079
1079
  //
1080
1080
  category?: string;
1081
1081
  //
1082
- clan_id?: bigint;
1082
+ clan_id?: string;
1083
1083
  //
1084
1084
  clan_name?: string;
1085
1085
  //
1086
- creator_id?: bigint;
1086
+ creator_id?: string;
1087
1087
  //
1088
- id?: bigint;
1088
+ id?: string;
1089
1089
  //
1090
1090
  logo?: string;
1091
1091
  //
@@ -1101,9 +1101,9 @@ export interface ApiClanEmojiCreateRequest {
1101
1101
  //
1102
1102
  category?: string;
1103
1103
  //
1104
- clan_id?: bigint;
1104
+ clan_id?: string;
1105
1105
  //
1106
- id?: bigint;
1106
+ id?: string;
1107
1107
  //
1108
1108
  shortname?: string;
1109
1109
  //
@@ -1117,11 +1117,11 @@ export interface ApiClanProfile {
1117
1117
  //
1118
1118
  avatar?: string;
1119
1119
  //
1120
- clan_id?: bigint;
1120
+ clan_id?: string;
1121
1121
  //
1122
1122
  nick_name?: string;
1123
1123
  //
1124
- user_id?: bigint;
1124
+ user_id?: string;
1125
1125
  //
1126
1126
  about?: string;
1127
1127
  }
@@ -1131,15 +1131,15 @@ export interface ApiClanSticker {
1131
1131
  //
1132
1132
  category?: string;
1133
1133
  //
1134
- clan_id?: bigint;
1134
+ clan_id?: string;
1135
1135
  //
1136
1136
  clan_name?: string;
1137
1137
  //
1138
1138
  create_time?: string;
1139
1139
  //
1140
- creator_id?: bigint;
1140
+ creator_id?: string;
1141
1141
  //
1142
- id?: bigint;
1142
+ id?: string;
1143
1143
  //
1144
1144
  logo?: string;
1145
1145
  //
@@ -1157,9 +1157,9 @@ export interface ApiClanStickerAddRequest {
1157
1157
  //
1158
1158
  category?: string;
1159
1159
  //
1160
- clan_id?: bigint;
1160
+ clan_id?: string;
1161
1161
  //
1162
- id?: bigint;
1162
+ id?: string;
1163
1163
  //
1164
1164
  shortname?: string;
1165
1165
  //
@@ -1173,7 +1173,7 @@ export interface ApiClanStickerAddRequest {
1173
1173
  /** A list of users belonging to a clan, along with their role. */
1174
1174
  export interface ApiClanUserList {
1175
1175
  //
1176
- clan_id?: bigint;
1176
+ clan_id?: string;
1177
1177
  //User-role pairs for a clan.
1178
1178
  clan_users?: Array<ClanUserListClanUser>;
1179
1179
  //Cursor for the next page of results, if any.
@@ -1185,7 +1185,7 @@ export interface ApiConfirmLoginRequest {
1185
1185
  //Whether to enable "Remember Me" for extended session duration.
1186
1186
  is_remember?: boolean;
1187
1187
  //
1188
- login_id?: bigint;
1188
+ login_id?: string;
1189
1189
  }
1190
1190
 
1191
1191
  /** */
@@ -1197,7 +1197,7 @@ export interface ApiCreateActivityRequest {
1197
1197
  //
1198
1198
  activity_type?: number;
1199
1199
  //
1200
- application_id?: bigint;
1200
+ application_id?: string;
1201
1201
  //
1202
1202
  //start_time?: string;
1203
1203
  //
@@ -1209,29 +1209,29 @@ export interface ApiCreateCategoryDescRequest {
1209
1209
  //
1210
1210
  category_name?: string;
1211
1211
  //
1212
- clan_id?: bigint;
1212
+ clan_id?: string;
1213
1213
  }
1214
1214
 
1215
1215
  /** Create a channel within clan. */
1216
1216
  export interface ApiCreateChannelDescRequest {
1217
1217
  //
1218
- app_id?: bigint;
1218
+ app_id?: string;
1219
1219
  //
1220
- category_id?: bigint;
1220
+ category_id?: string;
1221
1221
  //The channel this message belongs to.
1222
- channel_id?: bigint;
1222
+ channel_id?: string;
1223
1223
  //
1224
1224
  channel_label?: string;
1225
1225
  //
1226
1226
  channel_private?: number;
1227
1227
  //
1228
- clan_id?: bigint;
1228
+ clan_id?: string;
1229
1229
  //The parent channel this message belongs to.
1230
- parent_id?: bigint;
1230
+ parent_id?: string;
1231
1231
  //The channel type.
1232
1232
  type?: number;
1233
1233
  //The users to add.
1234
- user_ids?: Array<bigint>;
1234
+ user_ids?: Array<string>;
1235
1235
  }
1236
1236
 
1237
1237
  /** */
@@ -1241,7 +1241,7 @@ export interface ApiCreateClanDescRequest {
1241
1241
  //
1242
1242
  clan_name?: string;
1243
1243
  //
1244
- creator_id?: bigint;
1244
+ creator_id?: string;
1245
1245
  //
1246
1246
  logo?: string;
1247
1247
  }
@@ -1251,9 +1251,9 @@ export interface ApiCreateEventRequest {
1251
1251
  //
1252
1252
  address?: string;
1253
1253
  //
1254
- channel_voice_id?: bigint;
1254
+ channel_voice_id?: string;
1255
1255
  //
1256
- clan_id?: bigint;
1256
+ clan_id?: string;
1257
1257
  //
1258
1258
  description?: string;
1259
1259
  //
@@ -1265,7 +1265,7 @@ export interface ApiCreateEventRequest {
1265
1265
  //
1266
1266
  title?: string;
1267
1267
  //
1268
- channel_id?: bigint;
1268
+ channel_id?: string;
1269
1269
  //
1270
1270
  action?: number;
1271
1271
  //
@@ -1273,9 +1273,9 @@ export interface ApiCreateEventRequest {
1273
1273
  //
1274
1274
  repeat_type?: number;
1275
1275
  //
1276
- creator_id?: bigint;
1276
+ creator_id?: string;
1277
1277
  //
1278
- user_id?: bigint;
1278
+ user_id?: string;
1279
1279
  //
1280
1280
  is_private?: boolean;
1281
1281
  //
@@ -1287,9 +1287,9 @@ export interface ApiUpdateEventRequest {
1287
1287
  //
1288
1288
  address?: string;
1289
1289
  //
1290
- channel_id?: bigint;
1290
+ channel_id?: string;
1291
1291
  //
1292
- event_id?: bigint;
1292
+ event_id?: string;
1293
1293
  //
1294
1294
  description?: string;
1295
1295
  //
@@ -1301,19 +1301,19 @@ export interface ApiUpdateEventRequest {
1301
1301
  //
1302
1302
  title?: string;
1303
1303
  //
1304
- clan_id?: bigint;
1304
+ clan_id?: string;
1305
1305
  }
1306
1306
 
1307
1307
  /** Create a role within clan. */
1308
1308
  export interface ApiCreateRoleRequest {
1309
1309
  //The permissions to add.
1310
- active_permission_ids?: Array<bigint>;
1310
+ active_permission_ids?: Array<string>;
1311
1311
  //The users to add.
1312
- add_user_ids?: Array<bigint>;
1312
+ add_user_ids?: Array<string>;
1313
1313
  //
1314
1314
  allow_mention?: number;
1315
1315
  //
1316
- clan_id?: bigint;
1316
+ clan_id?: string;
1317
1317
  //
1318
1318
  color?: string;
1319
1319
  //
@@ -1321,7 +1321,7 @@ export interface ApiCreateRoleRequest {
1321
1321
  //
1322
1322
  display_online?: number;
1323
1323
  //
1324
- max_permission_id: bigint;
1324
+ max_permission_id: string;
1325
1325
  //
1326
1326
  role_icon?: string;
1327
1327
  //
@@ -1333,21 +1333,21 @@ export interface ApiCreateRoleRequest {
1333
1333
  /** Delete a channel the user has access to. */
1334
1334
  export interface ApiDeleteChannelDescRequest {
1335
1335
  //The clan id
1336
- clan_id?: bigint;
1336
+ clan_id?: string;
1337
1337
  //The id of a channel.
1338
- channel_id?: bigint;
1338
+ channel_id?: string;
1339
1339
  }
1340
1340
 
1341
1341
  /** */
1342
1342
  export interface ApiDeleteEventRequest {
1343
1343
  //
1344
- channel_id?: bigint;
1344
+ channel_id?: string;
1345
1345
  //
1346
- clan_id?: bigint;
1346
+ clan_id?: string;
1347
1347
  //
1348
- creator_id?: bigint;
1348
+ creator_id?: string;
1349
1349
  //The id of a event.
1350
- event_id?: bigint;
1350
+ event_id?: string;
1351
1351
  //
1352
1352
  event_label?: string;
1353
1353
  }
@@ -1355,11 +1355,11 @@ export interface ApiDeleteEventRequest {
1355
1355
  /** Delete a role the user has access to. */
1356
1356
  export interface ApiDeleteRoleRequest {
1357
1357
  //
1358
- channel_id?: bigint;
1358
+ channel_id?: string;
1359
1359
  //
1360
- clan_id?: bigint;
1360
+ clan_id?: string;
1361
1361
  //The id of a role.
1362
- role_id?: bigint;
1362
+ role_id?: string;
1363
1363
  //
1364
1364
  role_label?: string;
1365
1365
  }
@@ -1395,17 +1395,17 @@ export interface ApiEvent {
1395
1395
  /** */
1396
1396
  export interface ApiRegisterStreamingChannelRequest {
1397
1397
  //
1398
- channel_id?: bigint;
1398
+ channel_id?: string;
1399
1399
  //
1400
- clan_id?: bigint;
1400
+ clan_id?: string;
1401
1401
  }
1402
1402
 
1403
1403
  /** */
1404
1404
  export interface ApiRegisterStreamingChannelResponse {
1405
1405
  //
1406
- channel_id?: bigint;
1406
+ channel_id?: string;
1407
1407
  //
1408
- clan_id?: bigint;
1408
+ clan_id?: string;
1409
1409
  //
1410
1410
  streaming_url?: string;
1411
1411
  }
@@ -1424,15 +1424,15 @@ export interface ApiEmojiListedResponse {
1424
1424
  /** */
1425
1425
  export interface ApiEmojiRecent {
1426
1426
  //ID of the emoji.
1427
- emoji_recents_id?: bigint;
1427
+ emoji_recents_id?: string;
1428
1428
  //
1429
- emoji_id?: bigint;
1429
+ emoji_id?: string;
1430
1430
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the emoji was created.
1431
1431
  update_time?: string;
1432
1432
  }
1433
1433
 
1434
1434
  export interface ApiAddFriendsResponse {
1435
- ids?: Array<bigint>;
1435
+ ids?: Array<string>;
1436
1436
  usernames?: Array<string>;
1437
1437
  }
1438
1438
 
@@ -1449,17 +1449,17 @@ export interface ApiEventManagement {
1449
1449
  //
1450
1450
  address?: string;
1451
1451
  //
1452
- channel_voice_id?: bigint;
1452
+ channel_voice_id?: string;
1453
1453
  //
1454
- clan_id?: bigint;
1454
+ clan_id?: string;
1455
1455
  //
1456
- creator_id?: bigint;
1456
+ creator_id?: string;
1457
1457
  //
1458
1458
  description?: string;
1459
1459
  //
1460
1460
  end_time_seconds?: number;
1461
1461
  //
1462
- id?: bigint;
1462
+ id?: string;
1463
1463
  //
1464
1464
  logo?: string;
1465
1465
  //
@@ -1471,11 +1471,11 @@ export interface ApiEventManagement {
1471
1471
  //
1472
1472
  title?: string;
1473
1473
  //
1474
- user_ids?: Array<bigint>;
1474
+ user_ids?: Array<string>;
1475
1475
  //
1476
1476
  create_time?: string;
1477
1477
  //
1478
- channel_id?: bigint;
1478
+ channel_id?: string;
1479
1479
  //
1480
1480
  event_status?: number;
1481
1481
  //
@@ -1489,7 +1489,7 @@ export interface ApiEventManagement {
1489
1489
  /** */
1490
1490
  export interface ApiListFavoriteChannelResponse {
1491
1491
  //
1492
- channel_ids?: Array<bigint>;
1492
+ channel_ids?: Array<string>;
1493
1493
  }
1494
1494
 
1495
1495
  /** */
@@ -1509,7 +1509,7 @@ export interface ApiFriend {
1509
1509
  //The user object.
1510
1510
  user?: ApiUser;
1511
1511
  //Source ID
1512
- source_id?: bigint;
1512
+ source_id?: string;
1513
1513
  }
1514
1514
 
1515
1515
  /** A collection of zero or more friends of the user. */
@@ -1529,21 +1529,21 @@ export interface ApiGetKeyServerResp {
1529
1529
  /** */
1530
1530
  export interface ApiGenerateMezonMeetResponse {
1531
1531
  //
1532
- meet_id?: bigint;
1532
+ meet_id?: string;
1533
1533
  //
1534
1534
  room_name?: string;
1535
1535
  //
1536
1536
  external_link?: string;
1537
1537
  //
1538
- creator_id?: bigint;
1538
+ creator_id?: string;
1539
1539
  //
1540
- event_id?: bigint;
1540
+ event_id?: string;
1541
1541
  }
1542
1542
 
1543
1543
  /** */
1544
1544
  export interface ApiGenerateMeetTokenExternalResponse {
1545
1545
  //
1546
- guest_user_id?: bigint;
1546
+ guest_user_id?: string;
1547
1547
  //
1548
1548
  token?: string;
1549
1549
  //
@@ -1557,9 +1557,9 @@ export interface ApiMeetParticipantRequest {
1557
1557
  //
1558
1558
  username?: string;
1559
1559
  //
1560
- channel_id?: bigint;
1560
+ channel_id?: string;
1561
1561
  //
1562
- clan_id?: bigint;
1562
+ clan_id?: string;
1563
1563
  }
1564
1564
 
1565
1565
  /** */
@@ -1571,15 +1571,15 @@ export interface ApiGetPubKeysResponse {
1571
1571
  /** */
1572
1572
  export interface ApiGiveCoffeeEvent {
1573
1573
  //
1574
- channel_id?: bigint;
1574
+ channel_id?: string;
1575
1575
  //
1576
- clan_id?: bigint;
1576
+ clan_id?: string;
1577
1577
  //
1578
- message_ref_id?: bigint;
1578
+ message_ref_id?: string;
1579
1579
  //
1580
- receiver_id?: bigint;
1580
+ receiver_id?: string;
1581
1581
  //
1582
- sender_id?: bigint;
1582
+ sender_id?: string;
1583
1583
  //
1584
1584
  token_count?: number;
1585
1585
  }
@@ -1587,19 +1587,19 @@ export interface ApiGiveCoffeeEvent {
1587
1587
  /** */
1588
1588
  export interface ApiHashtagDm {
1589
1589
  //The channel id.
1590
- channel_id?: bigint;
1590
+ channel_id?: string;
1591
1591
  //
1592
1592
  channel_label?: string;
1593
1593
  //
1594
1594
  channel_private?: number;
1595
1595
  //
1596
- clan_id?: bigint;
1596
+ clan_id?: string;
1597
1597
  //
1598
1598
  clan_name?: string;
1599
1599
  //
1600
1600
  meeting_code?: string;
1601
1601
  //
1602
- parent_id?: bigint;
1602
+ parent_id?: string;
1603
1603
  //
1604
1604
  type?: number;
1605
1605
  }
@@ -1615,11 +1615,11 @@ export interface ApiInviteUserRes {
1615
1615
  //
1616
1616
  channel_desc?: ApiChannelDescription;
1617
1617
  //id channel to add link to.
1618
- channel_id?: bigint;
1618
+ channel_id?: string;
1619
1619
  //
1620
1620
  channel_label?: string;
1621
1621
  //id clan to add link to .
1622
- clan_id?: bigint;
1622
+ clan_id?: string;
1623
1623
  //
1624
1624
  clan_name?: string;
1625
1625
  //
@@ -1635,17 +1635,17 @@ export interface ApiInviteUserRes {
1635
1635
  /** Add link invite users to. */
1636
1636
  export interface ApiLinkInviteUser {
1637
1637
  //
1638
- channel_id?: bigint;
1638
+ channel_id?: string;
1639
1639
  //
1640
- clan_id?: bigint;
1640
+ clan_id?: string;
1641
1641
  //
1642
1642
  create_time?: string;
1643
1643
  //The user to add.
1644
- creator_id?: bigint;
1644
+ creator_id?: string;
1645
1645
  //
1646
1646
  expiry_time?: string;
1647
1647
  //
1648
- id?: bigint;
1648
+ id?: string;
1649
1649
  //
1650
1650
  invite_link?: string;
1651
1651
  }
@@ -1653,20 +1653,20 @@ export interface ApiLinkInviteUser {
1653
1653
  /** Add link invite users to. */
1654
1654
  export interface ApiLinkInviteUserRequest {
1655
1655
  //id channel to add link to.
1656
- channel_id?: bigint;
1656
+ channel_id?: string;
1657
1657
  //id clan to add link to .
1658
- clan_id?: bigint;
1658
+ clan_id?: string;
1659
1659
  //
1660
1660
  expiry_time?: number;
1661
1661
  }
1662
1662
 
1663
1663
  export interface ApiNotifiReactMessage {
1664
1664
  //
1665
- channel_id?: bigint;
1665
+ channel_id?: string;
1666
1666
  //
1667
- id?: bigint;
1667
+ id?: string;
1668
1668
  //
1669
- user_id?: bigint;
1669
+ user_id?: string;
1670
1670
  }
1671
1671
 
1672
1672
  /** */
@@ -1674,13 +1674,13 @@ export interface ApiMessage2InboxRequest {
1674
1674
  //
1675
1675
  avatar?: string;
1676
1676
  //
1677
- channel_id?: bigint;
1677
+ channel_id?: string;
1678
1678
  //
1679
- clan_id?: bigint;
1679
+ clan_id?: string;
1680
1680
  //
1681
1681
  content?: string;
1682
1682
  //
1683
- message_id?: bigint;
1683
+ message_id?: string;
1684
1684
  //
1685
1685
  reactions?: Array<ApiMessageReaction>;
1686
1686
  //
@@ -1708,15 +1708,15 @@ export interface ApiMessageAttachment {
1708
1708
  //
1709
1709
  thumbnail?: string;
1710
1710
  // The channel this message belongs to.
1711
- channel_id?: bigint;
1711
+ channel_id?: string;
1712
1712
  // The mode
1713
1713
  mode?: number;
1714
1714
  // The channel label
1715
1715
  channel_label?: string;
1716
1716
  // The message that user react
1717
- message_id?: bigint;
1717
+ message_id?: string;
1718
1718
  // Message sender, usually a user ID.
1719
- sender_id?: bigint;
1719
+ sender_id?: string;
1720
1720
  // duration for video in seconds
1721
1721
  duration?: number;
1722
1722
  }
@@ -1726,7 +1726,7 @@ export interface ApiMessageDeleted {
1726
1726
  //
1727
1727
  deletor?: string;
1728
1728
  //
1729
- message_id?: bigint;
1729
+ message_id?: string;
1730
1730
  }
1731
1731
 
1732
1732
  /** */
@@ -1741,13 +1741,13 @@ export interface ApiLoginIDResponse {
1741
1741
  //
1742
1742
  create_time_second?: string;
1743
1743
  //
1744
- login_id?: bigint;
1744
+ login_id?: string;
1745
1745
  //
1746
1746
  platform?: string;
1747
1747
  //
1748
1748
  status?: number;
1749
1749
  //
1750
- user_id?: bigint;
1750
+ user_id?: string;
1751
1751
  //
1752
1752
  username?: string;
1753
1753
  }
@@ -1755,11 +1755,11 @@ export interface ApiLoginIDResponse {
1755
1755
  /** */
1756
1756
  export interface ApiMarkAsReadRequest {
1757
1757
  //
1758
- category_id?: bigint;
1758
+ category_id?: string;
1759
1759
  //
1760
- channel_id?: bigint;
1760
+ channel_id?: string;
1761
1761
  //
1762
- clan_id?: bigint;
1762
+ clan_id?: string;
1763
1763
  }
1764
1764
 
1765
1765
  /** */
@@ -1767,13 +1767,13 @@ export interface ApiMessageMention {
1767
1767
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
1768
1768
  create_time?: string;
1769
1769
  //
1770
- id?: bigint;
1770
+ id?: string;
1771
1771
  //
1772
- user_id?: bigint;
1772
+ user_id?: string;
1773
1773
  //
1774
1774
  username?: string;
1775
1775
  // role id
1776
- role_id?: bigint;
1776
+ role_id?: string;
1777
1777
  // role name
1778
1778
  rolename?: string;
1779
1779
  // start position
@@ -1781,15 +1781,15 @@ export interface ApiMessageMention {
1781
1781
  // end position
1782
1782
  e?: number;
1783
1783
  /** The channel this message belongs to. */
1784
- channel_id?: bigint;
1784
+ channel_id?: string;
1785
1785
  // The mode
1786
1786
  mode?: number;
1787
1787
  // The channel label
1788
1788
  channel_label?: string;
1789
1789
  /** The message that user react */
1790
- message_id?: bigint;
1790
+ message_id?: string;
1791
1791
  /** Message sender, usually a user ID. */
1792
- sender_id?: bigint;
1792
+ sender_id?: string;
1793
1793
  }
1794
1794
 
1795
1795
  /** */
@@ -1805,13 +1805,13 @@ export interface ApiMessageReaction {
1805
1805
  //
1806
1806
  action?: boolean;
1807
1807
  //
1808
- emoji_id: bigint;
1808
+ emoji_id: string;
1809
1809
  //
1810
1810
  emoji: string;
1811
1811
  //
1812
- id?: bigint;
1812
+ id?: string;
1813
1813
  //
1814
- sender_id?: bigint;
1814
+ sender_id?: string;
1815
1815
  //
1816
1816
  sender_name?: string;
1817
1817
  //
@@ -1819,7 +1819,7 @@ export interface ApiMessageReaction {
1819
1819
  // count of emoji
1820
1820
  count: number;
1821
1821
  /** The channel this message belongs to. */
1822
- channel_id: bigint;
1822
+ channel_id: string;
1823
1823
  // The mode
1824
1824
  mode: number;
1825
1825
  // Is public
@@ -1827,11 +1827,11 @@ export interface ApiMessageReaction {
1827
1827
  // The channel label
1828
1828
  channel_label?: string;
1829
1829
  /** The message that user react */
1830
- message_id: bigint;
1830
+ message_id: string;
1831
1831
  //
1832
- topic_id?: bigint;
1832
+ topic_id?: string;
1833
1833
  //
1834
- emoji_recent_id?: bigint;
1834
+ emoji_recent_id?: string;
1835
1835
  }
1836
1836
 
1837
1837
  export interface ApiListChannelAppsResponse {
@@ -1952,13 +1952,13 @@ export interface ApiMezonOauthClientList {
1952
1952
  /** */
1953
1953
  export interface ApiMessageRef {
1954
1954
  //
1955
- message_id?: bigint;
1955
+ message_id?: string;
1956
1956
  //
1957
- message_ref_id?: bigint;
1957
+ message_ref_id?: string;
1958
1958
  //
1959
1959
  ref_type?: number;
1960
1960
  //
1961
- message_sender_id?: bigint;
1961
+ message_sender_id?: string;
1962
1962
  // original message sendre username
1963
1963
  message_sender_username?: string;
1964
1964
  // original message sender avatar
@@ -1972,7 +1972,7 @@ export interface ApiMessageRef {
1972
1972
  //
1973
1973
  has_attachment: boolean;
1974
1974
  /** The channel this message belongs to. */
1975
- channel_id?: bigint;
1975
+ channel_id?: string;
1976
1976
  // The mode
1977
1977
  mode?: number;
1978
1978
  // The channel label
@@ -1984,11 +1984,11 @@ export interface ApiNotification {
1984
1984
  //
1985
1985
  avatar_url?: string;
1986
1986
  //
1987
- channel_id?: bigint;
1987
+ channel_id?: string;
1988
1988
  //
1989
1989
  channel_type?: number;
1990
1990
  //
1991
- clan_id?: bigint;
1991
+ clan_id?: string;
1992
1992
  //Category code for this notification.
1993
1993
  code?: number;
1994
1994
  //Content of the notification in JSON.
@@ -1996,17 +1996,17 @@ export interface ApiNotification {
1996
1996
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
1997
1997
  create_time?: string;
1998
1998
  //ID of the Notification.
1999
- id?: bigint;
1999
+ id?: string;
2000
2000
  //True if this notification was persisted to the database.
2001
2001
  persistent?: boolean;
2002
2002
  //ID of the sender, if a user. Otherwise 'null'.
2003
- sender_id?: bigint;
2003
+ sender_id?: string;
2004
2004
  //Subject of the notification.
2005
2005
  subject?: string;
2006
2006
  //category.
2007
2007
  category?: number;
2008
2008
  //
2009
- topic_id?: bigint;
2009
+ topic_id?: string;
2010
2010
  //
2011
2011
  channel?: ApiChannelDescription;
2012
2012
  }
@@ -2014,7 +2014,7 @@ export interface ApiNotification {
2014
2014
  /** */
2015
2015
  export interface ApiNotificationChannel {
2016
2016
  //
2017
- channel_id?: bigint;
2017
+ channel_id?: string;
2018
2018
  }
2019
2019
 
2020
2020
  /** */
@@ -2026,7 +2026,7 @@ export interface ApiNotificationChannelCategorySetting {
2026
2026
  //
2027
2027
  channel_category_title?: string;
2028
2028
  //
2029
- id?: bigint;
2029
+ id?: string;
2030
2030
  //
2031
2031
  notification_setting_type?: number;
2032
2032
  }
@@ -2048,7 +2048,7 @@ export interface ApiNotificationList {
2048
2048
  /** */
2049
2049
  export interface ApiNotificationSetting {
2050
2050
  //
2051
- id?: bigint;
2051
+ id?: string;
2052
2052
  //
2053
2053
  notification_setting_type?: number;
2054
2054
  }
@@ -2058,13 +2058,13 @@ export interface ApiNotificationUserChannel {
2058
2058
  //
2059
2059
  active?: number;
2060
2060
  //
2061
- id?: bigint;
2061
+ id?: string;
2062
2062
  //
2063
2063
  notification_setting_type?: number;
2064
2064
  //
2065
2065
  time_mute?: string;
2066
2066
  //
2067
- channel_id?: bigint;
2067
+ channel_id?: string;
2068
2068
  }
2069
2069
 
2070
2070
  /** */
@@ -2074,7 +2074,7 @@ export interface ApiStreamHttpCallbackRequest {
2074
2074
  //
2075
2075
  app?: string;
2076
2076
  //
2077
- client_id?: bigint;
2077
+ client_id?: string;
2078
2078
  //
2079
2079
  ip?: string;
2080
2080
  //
@@ -2082,13 +2082,13 @@ export interface ApiStreamHttpCallbackRequest {
2082
2082
  //
2083
2083
  param?: string;
2084
2084
  //
2085
- server_id?: bigint;
2085
+ server_id?: string;
2086
2086
  //
2087
- service_id?: bigint;
2087
+ service_id?: string;
2088
2088
  //
2089
2089
  stream?: string;
2090
2090
  //
2091
- stream_id?: bigint;
2091
+ stream_id?: string;
2092
2092
  //
2093
2093
  stream_url?: string;
2094
2094
  //
@@ -2112,7 +2112,7 @@ export interface ApiPermission {
2112
2112
  //
2113
2113
  description?: string;
2114
2114
  //
2115
- id?: bigint;
2115
+ id?: string;
2116
2116
  //
2117
2117
  level?: number;
2118
2118
  //
@@ -2136,25 +2136,25 @@ export interface ApiPermissionRoleChannel {
2136
2136
  //
2137
2137
  active?: boolean;
2138
2138
  //
2139
- permission_id?: bigint;
2139
+ permission_id?: string;
2140
2140
  }
2141
2141
 
2142
2142
  /** */
2143
2143
  export interface ApiPermissionRoleChannelListEventResponse {
2144
2144
  //
2145
- channel_id?: bigint;
2145
+ channel_id?: string;
2146
2146
  //
2147
2147
  permission_role_channel?: Array<ApiPermissionRoleChannel>;
2148
2148
  //
2149
- role_id?: bigint;
2149
+ role_id?: string;
2150
2150
  //
2151
- user_id?: bigint;
2151
+ user_id?: string;
2152
2152
  }
2153
2153
 
2154
2154
  /** */
2155
2155
  export interface ApiPermissionUpdate {
2156
2156
  //
2157
- permission_id?: bigint;
2157
+ permission_id?: string;
2158
2158
  //
2159
2159
  slug?: string;
2160
2160
  //
@@ -2166,7 +2166,7 @@ export interface ApiPinMessage {
2166
2166
  //
2167
2167
  avatar?: string;
2168
2168
  //
2169
- channel_id?: bigint;
2169
+ channel_id?: string;
2170
2170
  //
2171
2171
  content?: string;
2172
2172
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
@@ -2174,11 +2174,11 @@ export interface ApiPinMessage {
2174
2174
  //
2175
2175
  create_time_seconds?: number;
2176
2176
  //
2177
- id?: bigint;
2177
+ id?: string;
2178
2178
  //
2179
- message_id?: bigint;
2179
+ message_id?: string;
2180
2180
  //
2181
- sender_id?: bigint;
2181
+ sender_id?: string;
2182
2182
  //
2183
2183
  username?: string;
2184
2184
  //
@@ -2188,11 +2188,11 @@ export interface ApiPinMessage {
2188
2188
  /** */
2189
2189
  export interface ApiPinMessageRequest {
2190
2190
  //
2191
- channel_id?: bigint;
2191
+ channel_id?: string;
2192
2192
  //
2193
- clan_id?: bigint;
2193
+ clan_id?: string;
2194
2194
  //
2195
- message_id?: bigint;
2195
+ message_id?: string;
2196
2196
  }
2197
2197
 
2198
2198
  /** */
@@ -2216,7 +2216,7 @@ export interface ApiPushPubKeyRequest {
2216
2216
  /** */
2217
2217
  export interface ApiRegistFcmDeviceTokenResponse {
2218
2218
  //
2219
- device_id?: bigint;
2219
+ device_id?: string;
2220
2220
  //
2221
2221
  platform?: string;
2222
2222
  //
@@ -2226,17 +2226,17 @@ export interface ApiRegistFcmDeviceTokenResponse {
2226
2226
  /** */
2227
2227
  export interface ApiRegisterStreamingChannelRequest {
2228
2228
  //
2229
- channel_id?: bigint;
2229
+ channel_id?: string;
2230
2230
  //
2231
- clan_id?: bigint;
2231
+ clan_id?: string;
2232
2232
  }
2233
2233
 
2234
2234
  /** */
2235
2235
  export interface ApiRegisterStreamingChannelResponse {
2236
2236
  //
2237
- channel_id?: bigint;
2237
+ channel_id?: string;
2238
2238
  //
2239
- clan_id?: bigint;
2239
+ clan_id?: string;
2240
2240
  //
2241
2241
  streaming_url?: string;
2242
2242
  }
@@ -2248,7 +2248,7 @@ export interface ApiReadStorageObjectId {
2248
2248
  //The key of the object within the collection.
2249
2249
  key?: string;
2250
2250
  //The user owner of the object.
2251
- user_id?: bigint;
2251
+ user_id?: string;
2252
2252
  }
2253
2253
 
2254
2254
  /** Batch get storage objects. */
@@ -2280,7 +2280,7 @@ export interface ApiRegistrationEmailRequest {
2280
2280
  /** */
2281
2281
  export interface ApiUpdateRoleOrderRequest {
2282
2282
  //
2283
- clan_id?: bigint;
2283
+ clan_id?: string;
2284
2284
  //
2285
2285
  roles?: Array<ApiRoleOrderUpdate>;
2286
2286
  }
@@ -2290,7 +2290,7 @@ export interface ApiRoleOrderUpdate {
2290
2290
  //
2291
2291
  order?: number;
2292
2292
  //
2293
- role_id?: bigint;
2293
+ role_id?: string;
2294
2294
  }
2295
2295
 
2296
2296
  /** */
@@ -2300,19 +2300,19 @@ export interface ApiRole {
2300
2300
  //
2301
2301
  allow_mention?: number;
2302
2302
  //
2303
- channel_ids?: Array<bigint>;
2303
+ channel_ids?: Array<string>;
2304
2304
  //
2305
- clan_id?: bigint;
2305
+ clan_id?: string;
2306
2306
  //
2307
2307
  color?: string;
2308
2308
  //
2309
- creator_id?: bigint;
2309
+ creator_id?: string;
2310
2310
  //
2311
2311
  description?: string;
2312
2312
  //
2313
2313
  display_online?: number;
2314
2314
  //
2315
- id?: bigint;
2315
+ id?: string;
2316
2316
  //
2317
2317
  max_level_permission?: number;
2318
2318
  //
@@ -2348,7 +2348,7 @@ export interface ApiRoleList {
2348
2348
  /** */
2349
2349
  export interface ApiRoleListEventResponse {
2350
2350
  //
2351
- clan_id?: bigint;
2351
+ clan_id?: string;
2352
2352
  //
2353
2353
  cursor?: string;
2354
2354
  //
@@ -2372,7 +2372,7 @@ export interface ApiRpc {
2372
2372
  //The authentication key used when executed as a non-client HTTP request.
2373
2373
  http_key?: string;
2374
2374
  //The identifier of the function.
2375
- id?: bigint;
2375
+ id?: string;
2376
2376
  //The payload of the function which must be a JSON object.
2377
2377
  payload?: string;
2378
2378
  }
@@ -2380,19 +2380,19 @@ export interface ApiRpc {
2380
2380
  /** */
2381
2381
  export interface ApiSdTopic {
2382
2382
  //
2383
- channel_id?: bigint;
2383
+ channel_id?: string;
2384
2384
  //
2385
- clan_id?: bigint;
2385
+ clan_id?: string;
2386
2386
  //
2387
2387
  create_time?: string;
2388
2388
  //
2389
- creator_id?: bigint;
2389
+ creator_id?: string;
2390
2390
  //
2391
- id?: bigint;
2391
+ id?: string;
2392
2392
  //
2393
2393
  last_sent_message?: ApiChannelMessageHeader;
2394
2394
  //
2395
- message_id?: bigint;
2395
+ message_id?: string;
2396
2396
  //
2397
2397
  status?: number;
2398
2398
  //
@@ -2412,27 +2412,27 @@ export interface ApiSdTopicList {
2412
2412
  /** */
2413
2413
  export interface ApiSdTopicRequest {
2414
2414
  //
2415
- channel_id?: bigint;
2415
+ channel_id?: string;
2416
2416
  //
2417
- clan_id?: bigint;
2417
+ clan_id?: string;
2418
2418
  //
2419
- message_id?: bigint;
2419
+ message_id?: string;
2420
2420
  }
2421
2421
 
2422
2422
  /** */
2423
2423
  export interface ApiSearchMessageDocument {
2424
2424
  //
2425
- attachments?: Array<ApiMessageAttachment>;
2425
+ attachments?: string;
2426
2426
  //
2427
2427
  avatar_url?: string;
2428
2428
  //The channel ID.
2429
- channel_id?: bigint;
2429
+ channel_id?: string;
2430
2430
  //
2431
2431
  channel_label?: string;
2432
2432
  //
2433
2433
  channel_type?: number;
2434
2434
  //The clan ID.
2435
- clan_id?: bigint;
2435
+ clan_id?: string;
2436
2436
  //
2437
2437
  clan_name?: string;
2438
2438
  //
@@ -2444,13 +2444,13 @@ export interface ApiSearchMessageDocument {
2444
2444
  //
2445
2445
  mentions?: string;
2446
2446
  //The message ID.
2447
- message_id?: bigint;
2447
+ message_id?: string;
2448
2448
  //
2449
2449
  reactions?: string;
2450
2450
  //
2451
2451
  references?: string;
2452
2452
  //The user ID of sender.
2453
- sender_id?: bigint;
2453
+ sender_id?: string;
2454
2454
  //
2455
2455
  update_time?: string;
2456
2456
  //
@@ -2518,9 +2518,9 @@ export interface ApiSessionRefreshRequest {
2518
2518
  /** */
2519
2519
  export interface ApiSetDefaultNotificationRequest {
2520
2520
  //
2521
- category_id?: bigint;
2521
+ category_id?: string;
2522
2522
  //
2523
- clan_id?: bigint;
2523
+ clan_id?: string;
2524
2524
  //
2525
2525
  notification_type?: number;
2526
2526
  }
@@ -2530,21 +2530,21 @@ export interface ApiSetMuteRequest {
2530
2530
  //
2531
2531
  active?: number;
2532
2532
  //
2533
- id?: bigint;
2533
+ id?: string;
2534
2534
  //
2535
2535
  mute_time?: number;
2536
2536
  //
2537
- clan_id?: bigint;
2537
+ clan_id?: string;
2538
2538
  }
2539
2539
 
2540
2540
  /** */
2541
2541
  export interface ApiSetNotificationRequest {
2542
2542
  //
2543
- channel_category_id?: bigint;
2543
+ channel_category_id?: string;
2544
2544
  //
2545
2545
  notification_type?: number;
2546
2546
  // clan_id
2547
- clan_id?: bigint;
2547
+ clan_id?: string;
2548
2548
  }
2549
2549
 
2550
2550
  /** */
@@ -2564,9 +2564,9 @@ export interface ApiStickerListedResponse {
2564
2564
  /** */
2565
2565
  export interface ApiStreamingChannelResponse {
2566
2566
  //
2567
- channel_id?: bigint;
2567
+ channel_id?: string;
2568
2568
  //
2569
- clan_id?: bigint;
2569
+ clan_id?: string;
2570
2570
  //
2571
2571
  is_streaming?: boolean;
2572
2572
  //
@@ -2576,13 +2576,13 @@ export interface ApiStreamingChannelResponse {
2576
2576
  /** A list of users belonging to a channel, along with their role. */
2577
2577
  export interface ApiStreamingChannelUser {
2578
2578
  //
2579
- channel_id?: bigint;
2579
+ channel_id?: string;
2580
2580
  //
2581
- id?: bigint;
2581
+ id?: string;
2582
2582
  //
2583
2583
  participant?: string;
2584
2584
  //user for a channel.
2585
- user_id?: bigint;
2585
+ user_id?: string;
2586
2586
  }
2587
2587
 
2588
2588
  /** A list of users belonging to a channel, along with their role. */
@@ -2596,13 +2596,13 @@ export interface ApiSystemMessage {
2596
2596
  //
2597
2597
  boost_message?: string;
2598
2598
  //
2599
- channel_id?: bigint;
2599
+ channel_id?: string;
2600
2600
  //
2601
- clan_id?: bigint;
2601
+ clan_id?: string;
2602
2602
  //
2603
2603
  hide_audit_log?: string;
2604
2604
  //
2605
- id?: bigint;
2605
+ id?: string;
2606
2606
  //
2607
2607
  setup_tips?: string;
2608
2608
  //
@@ -2616,9 +2616,9 @@ export interface ApiSystemMessageRequest {
2616
2616
  //
2617
2617
  boost_message?: string;
2618
2618
  //
2619
- channel_id?: bigint;
2619
+ channel_id?: string;
2620
2620
  //
2621
- clan_id?: bigint;
2621
+ clan_id?: string;
2622
2622
  //
2623
2623
  hide_audit_log?: string;
2624
2624
  //
@@ -2642,9 +2642,9 @@ export interface ApiTokenSentEvent {
2642
2642
  //
2643
2643
  note?: string;
2644
2644
  //
2645
- receiver_id?: bigint;
2645
+ receiver_id?: string;
2646
2646
  //
2647
- sender_id?: bigint;
2647
+ sender_id?: string;
2648
2648
  //
2649
2649
  sender_name?: string;
2650
2650
  //
@@ -2662,17 +2662,17 @@ export interface ApiTransactionDetail {
2662
2662
  //
2663
2663
  update_time?: string;
2664
2664
  //
2665
- receiver_id?: bigint;
2665
+ receiver_id?: string;
2666
2666
  //
2667
2667
  receiver_username?: string;
2668
2668
  //
2669
- sender_id?: bigint;
2669
+ sender_id?: string;
2670
2670
  //
2671
2671
  sender_username?: string;
2672
2672
  //
2673
2673
  metadata?: string;
2674
2674
  //
2675
- trans_id?: bigint;
2675
+ trans_id?: string;
2676
2676
  }
2677
2677
 
2678
2678
  /** Update a user's account details. */
@@ -2704,34 +2704,34 @@ export interface ApiUpdateAccountRequest {
2704
2704
  /** */
2705
2705
  export interface ApiUpdateCategoryDescRequest {
2706
2706
  //The ID of the group to update.
2707
- category_id?: bigint;
2707
+ category_id?: string;
2708
2708
  //
2709
2709
  category_name?: string;
2710
2710
  // clan ID
2711
- Clanid: bigint;
2711
+ Clanid: string;
2712
2712
  }
2713
2713
  /** */
2714
2714
  export interface ApiUpdateCategoryOrderRequest {
2715
2715
  //
2716
2716
  categories?: Array<ApiCategoryOrderUpdate>;
2717
2717
  //
2718
- clan_id?: bigint;
2718
+ clan_id?: string;
2719
2719
  }
2720
2720
 
2721
2721
  /** */
2722
2722
  export interface ApiUpdateRoleChannelRequest {
2723
2723
  //
2724
- channel_id: bigint;
2724
+ channel_id: string;
2725
2725
  //
2726
- max_permission_id: bigint;
2726
+ max_permission_id: string;
2727
2727
  //The permissions to add.
2728
2728
  permission_update?: Array<ApiPermissionUpdate>;
2729
2729
  //The ID of the role to update.
2730
- role_id?: bigint;
2730
+ role_id?: string;
2731
2731
  //
2732
2732
  role_label?: string;
2733
2733
  //The ID of the role to update.
2734
- user_id?: bigint;
2734
+ user_id?: string;
2735
2735
  }
2736
2736
 
2737
2737
  /** Fetch a batch of zero or more users from the server. */
@@ -2779,7 +2779,7 @@ export interface ApiUser {
2779
2779
  //Number of related edges to this user.
2780
2780
  edge_count?: number;
2781
2781
  //The id of the user's account.
2782
- id?: bigint;
2782
+ id?: string;
2783
2783
  //
2784
2784
  is_mobile?: boolean;
2785
2785
  //
@@ -2801,7 +2801,7 @@ export interface ApiUser {
2801
2801
  //The username of the user's account.
2802
2802
  username?: string;
2803
2803
  // mezon_id
2804
- mezon_id?: bigint;
2804
+ mezon_id?: string;
2805
2805
  // list nick name
2806
2806
  list_nick_names?: Array<string>;
2807
2807
  // phone number
@@ -2817,7 +2817,7 @@ export interface ApiUserActivity {
2817
2817
  //
2818
2818
  activity_type?: number;
2819
2819
  //
2820
- application_id?: bigint;
2820
+ application_id?: string;
2821
2821
  //
2822
2822
  end_time_seconds?: number;
2823
2823
  //
@@ -2825,7 +2825,7 @@ export interface ApiUserActivity {
2825
2825
  //
2826
2826
  status?: number;
2827
2827
  //
2828
- user_id?: bigint;
2828
+ user_id?: string;
2829
2829
  }
2830
2830
 
2831
2831
  /** */
@@ -2835,13 +2835,13 @@ export interface ApiQuickMenuAccess {
2835
2835
  //
2836
2836
  background?: string;
2837
2837
  //
2838
- bot_id?: bigint;
2838
+ bot_id?: string;
2839
2839
  //
2840
- channel_id?: bigint;
2840
+ channel_id?: string;
2841
2841
  //
2842
- clan_id?: bigint;
2842
+ clan_id?: string;
2843
2843
  //
2844
- id?: bigint;
2844
+ id?: string;
2845
2845
  //
2846
2846
  menu_name?: string;
2847
2847
  //
@@ -2861,13 +2861,13 @@ export interface ApiQuickMenuAccessRequest {
2861
2861
  //
2862
2862
  background?: string;
2863
2863
  //
2864
- bot_id?: bigint;
2864
+ bot_id?: string;
2865
2865
  //
2866
- channel_id?: bigint;
2866
+ channel_id?: string;
2867
2867
  //
2868
- clan_id?: bigint;
2868
+ clan_id?: string;
2869
2869
  //
2870
- id?: bigint;
2870
+ id?: string;
2871
2871
  //
2872
2872
  menu_name?: string;
2873
2873
  //
@@ -2877,9 +2877,9 @@ export interface ApiQuickMenuAccessRequest {
2877
2877
  /** */
2878
2878
  export interface ApiUserPermissionInChannelListResponse {
2879
2879
  //
2880
- channel_id?: bigint;
2880
+ channel_id?: string;
2881
2881
  //
2882
- clan_id?: bigint;
2882
+ clan_id?: string;
2883
2883
  //A list of permission.
2884
2884
  permissions?: ApiPermissionList;
2885
2885
  }
@@ -2889,7 +2889,7 @@ export interface ApiUserStatus {
2889
2889
  //
2890
2890
  status?: string;
2891
2891
  //
2892
- user_id?: bigint;
2892
+ user_id?: string;
2893
2893
  }
2894
2894
 
2895
2895
  /** */
@@ -2911,13 +2911,13 @@ export interface ApiUsers {
2911
2911
  /** A list of users belonging to a channel, along with their role. */
2912
2912
  export interface ApiVoiceChannelUser {
2913
2913
  //Cursor for the next page of results, if any.
2914
- id?: bigint;
2914
+ id?: string;
2915
2915
  //
2916
- channel_id?: bigint;
2916
+ channel_id?: string;
2917
2917
  //
2918
2918
  participant?: string;
2919
2919
  //User for a channel.
2920
- user_id?: bigint;
2920
+ user_id?: string;
2921
2921
  }
2922
2922
 
2923
2923
  /** A list of users belonging to a channel, along with their role. */
@@ -2933,13 +2933,13 @@ export interface ApiWebhook {
2933
2933
  //
2934
2934
  avatar?: string;
2935
2935
  //
2936
- channel_id?: bigint;
2936
+ channel_id?: string;
2937
2937
  //
2938
2938
  create_time?: string;
2939
2939
  //
2940
- creator_id?: bigint;
2940
+ creator_id?: string;
2941
2941
  //
2942
- id?: bigint;
2942
+ id?: string;
2943
2943
  //
2944
2944
  status?: number;
2945
2945
  //
@@ -2949,7 +2949,7 @@ export interface ApiWebhook {
2949
2949
  //
2950
2950
  webhook_name?: string;
2951
2951
  //
2952
- clan_id?: bigint;
2952
+ clan_id?: string;
2953
2953
  }
2954
2954
 
2955
2955
  /** */
@@ -2957,9 +2957,9 @@ export interface ApiWebhookCreateRequest {
2957
2957
  //
2958
2958
  avatar?: string;
2959
2959
  //
2960
- channel_id?: bigint;
2960
+ channel_id?: string;
2961
2961
  //
2962
- clan_id?: bigint;
2962
+ clan_id?: string;
2963
2963
  //
2964
2964
  webhook_name?: string;
2965
2965
  }
@@ -2969,7 +2969,7 @@ export interface ApiWebhookGenerateResponse {
2969
2969
  //
2970
2970
  avatar?: string;
2971
2971
  //
2972
- channel_id?: bigint;
2972
+ channel_id?: string;
2973
2973
  //
2974
2974
  hook_name?: string;
2975
2975
  //
@@ -3051,7 +3051,7 @@ export interface ApiOnboardingContent {
3051
3051
  //
3052
3052
  answers?: Array<OnboardingAnswer>;
3053
3053
  //
3054
- channel_id?: bigint;
3054
+ channel_id?: string;
3055
3055
  //
3056
3056
  content?: string;
3057
3057
  //
@@ -3069,9 +3069,9 @@ export interface MezonUpdateOnboardingBody {
3069
3069
  //
3070
3070
  answers?: Array<OnboardingAnswer>;
3071
3071
  //
3072
- channel_id?: bigint;
3072
+ channel_id?: string;
3073
3073
  //
3074
- clan_id?: bigint;
3074
+ clan_id?: string;
3075
3075
  //
3076
3076
  content?: string;
3077
3077
  //
@@ -3085,7 +3085,7 @@ export interface MezonUpdateOnboardingBody {
3085
3085
  /** */
3086
3086
  export interface ApiCreateOnboardingRequest {
3087
3087
  //
3088
- clan_id?: bigint;
3088
+ clan_id?: string;
3089
3089
  //
3090
3090
  contents?: Array<ApiOnboardingContent>;
3091
3091
  }
@@ -3095,9 +3095,9 @@ export interface ApiOnboardingItem {
3095
3095
  //
3096
3096
  answers?: Array<OnboardingAnswer>;
3097
3097
  //
3098
- channel_id?: bigint;
3098
+ channel_id?: string;
3099
3099
  //
3100
- clan_id?: bigint;
3100
+ clan_id?: string;
3101
3101
  //
3102
3102
  content?: string;
3103
3103
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
@@ -3105,7 +3105,7 @@ export interface ApiOnboardingItem {
3105
3105
  //
3106
3106
  guide_type?: number;
3107
3107
  //
3108
- id?: bigint;
3108
+ id?: string;
3109
3109
  //
3110
3110
  task_type?: number;
3111
3111
  //
@@ -3121,7 +3121,7 @@ export interface MezonUpdateClanWebhookByIdBody {
3121
3121
  //avatar.
3122
3122
  avatar?: string;
3123
3123
  //clan id.
3124
- clan_id?: bigint;
3124
+ clan_id?: string;
3125
3125
  //reset token.
3126
3126
  reset_token?: boolean;
3127
3127
  //webhook name.
@@ -3135,13 +3135,13 @@ export interface ApiClanWebhook {
3135
3135
  //
3136
3136
  avatar?: string;
3137
3137
  //clan id.
3138
- clan_id?: bigint;
3138
+ clan_id?: string;
3139
3139
  //create time.
3140
3140
  create_time?: string;
3141
3141
  //creator id.
3142
- creator_id?: bigint;
3142
+ creator_id?: string;
3143
3143
  //id.
3144
- id?: bigint;
3144
+ id?: string;
3145
3145
  //update time.
3146
3146
  update_time?: string;
3147
3147
  //URL of the webhook, which is automatically generated and different from the avatar.
@@ -3155,7 +3155,7 @@ export interface ApiGenerateClanWebhookRequest {
3155
3155
  //avatar.
3156
3156
  avatar?: string;
3157
3157
  //clan id.
3158
- clan_id?: bigint;
3158
+ clan_id?: string;
3159
3159
  //webhook name.
3160
3160
  webhook_name?: string;
3161
3161
  }
@@ -3165,7 +3165,7 @@ export interface ApiGenerateClanWebhookResponse {
3165
3165
  //avatar.
3166
3166
  avatar?: string;
3167
3167
  //clan id.
3168
- clan_id?: bigint;
3168
+ clan_id?: string;
3169
3169
  //url.
3170
3170
  url?: string;
3171
3171
  //webhook name.
@@ -3193,19 +3193,19 @@ export interface ApiListOnboardingStepResponse {
3193
3193
  /** */
3194
3194
  export interface ApiOnboardingSteps {
3195
3195
  //clan id.
3196
- clan_id?: bigint;
3196
+ clan_id?: string;
3197
3197
  //id.
3198
- id?: bigint;
3198
+ id?: string;
3199
3199
  //onboarding step.
3200
3200
  onboarding_step?: number;
3201
3201
  //user id.
3202
- user_id?: bigint;
3202
+ user_id?: string;
3203
3203
  }
3204
3204
 
3205
3205
  /** */
3206
3206
  export interface MezonapiCreateRoomChannelApps {
3207
3207
  //
3208
- channel_id?: bigint;
3208
+ channel_id?: string;
3209
3209
  //
3210
3210
  room_name?: string;
3211
3211
  }
@@ -3213,7 +3213,7 @@ export interface MezonapiCreateRoomChannelApps {
3213
3213
  /** */
3214
3214
  export interface ApiGenerateMeetTokenRequest {
3215
3215
  //
3216
- channel_id?: bigint;
3216
+ channel_id?: string;
3217
3217
  //
3218
3218
  room_name?: string;
3219
3219
  }
@@ -3227,7 +3227,7 @@ export interface ApiGenerateMeetTokenResponse {
3227
3227
  /** */
3228
3228
  export interface ApiUnlockedItemRequest {
3229
3229
  //
3230
- item_id?: bigint;
3230
+ item_id?: string;
3231
3231
  //
3232
3232
  item_type?: number;
3233
3233
  }
@@ -3345,9 +3345,9 @@ export interface ApiCreateHashChannelAppsResponse {
3345
3345
  /** */
3346
3346
  export interface ApiUserEventRequest {
3347
3347
  // The ID of the clan to be updated.
3348
- clan_id?: bigint;
3348
+ clan_id?: string;
3349
3349
  //The ID of the event to be updated.
3350
- event_id?: bigint;
3350
+ event_id?: string;
3351
3351
  }
3352
3352
 
3353
3353
  /** */
@@ -3357,7 +3357,7 @@ export interface ApiClanDiscover {
3357
3357
  //
3358
3358
  banner?: string;
3359
3359
  //
3360
- clan_id?: bigint;
3360
+ clan_id?: string;
3361
3361
  //
3362
3362
  clan_logo?: string;
3363
3363
  //
@@ -3365,7 +3365,7 @@ export interface ApiClanDiscover {
3365
3365
  //
3366
3366
  description?: string;
3367
3367
  //
3368
- invite_id?: bigint;
3368
+ invite_id?: string;
3369
3369
  //
3370
3370
  online_members?: number;
3371
3371
  //
@@ -3417,7 +3417,7 @@ export interface ApiListClanUnreadMsgIndicatorResponse {
3417
3417
  /** */
3418
3418
  export interface ApiClanDiscoverRequest {
3419
3419
  //
3420
- clan_id?: bigint;
3420
+ clan_id?: string;
3421
3421
  //
3422
3422
  item_per_page?: number;
3423
3423
  //
@@ -3427,7 +3427,7 @@ export interface ApiClanDiscoverRequest {
3427
3427
  /** */
3428
3428
  export interface ApiIsFollowerRequest {
3429
3429
  //
3430
- follow_id?: bigint;
3430
+ follow_id?: string;
3431
3431
  }
3432
3432
 
3433
3433
  /** */
@@ -3435,7 +3435,7 @@ export interface ApiLinkAccountConfirmRequest {
3435
3435
  //
3436
3436
  otp_code?: string;
3437
3437
  //
3438
- req_id?: bigint;
3438
+ req_id?: string;
3439
3439
  //
3440
3440
  status?: number;
3441
3441
  }
@@ -3445,15 +3445,15 @@ export interface ApiIsFollowerResponse {
3445
3445
  //
3446
3446
  is_follower?: boolean;
3447
3447
  //
3448
- follow_id?: bigint;
3448
+ follow_id?: string;
3449
3449
  }
3450
3450
 
3451
3451
  /** */
3452
3452
  export interface ApiTransferOwnershipRequest {
3453
3453
  //
3454
- clan_id?: bigint;
3454
+ clan_id?: string;
3455
3455
  //
3456
- new_owner_id?: bigint;
3456
+ new_owner_id?: string;
3457
3457
  }
3458
3458
 
3459
3459
  export class MezonApi {
@@ -4032,7 +4032,10 @@ export class MezonApi {
4032
4032
  const queryParams = new Map<string, any>();
4033
4033
 
4034
4034
  const bodyWriter = tsproto.LinkAccountConfirmRequest.encode(
4035
- tsproto.LinkAccountConfirmRequest.fromPartial(body),
4035
+ tsproto.LinkAccountConfirmRequest.fromPartial({
4036
+ ...body,
4037
+ req_id: BigInt(body.req_id || "0"),
4038
+ }),
4036
4039
  );
4037
4040
  const encodedBody = bodyWriter.finish();
4038
4041
 
@@ -4304,7 +4307,10 @@ export class MezonApi {
4304
4307
  const queryParams = new Map<string, any>();
4305
4308
 
4306
4309
  const bodyWriter = tsproto.CreateActivityRequest.encode(
4307
- tsproto.CreateActivityRequest.fromPartial(body),
4310
+ tsproto.CreateActivityRequest.fromPartial({
4311
+ ...body,
4312
+ application_id: BigInt(body.application_id || "0"),
4313
+ }),
4308
4314
  );
4309
4315
  const encodedBody = bodyWriter.finish();
4310
4316
 
@@ -4352,7 +4358,10 @@ export class MezonApi {
4352
4358
  const queryParams = new Map<string, any>();
4353
4359
 
4354
4360
  const bodyWriter = tsproto.AddAppRequest.encode(
4355
- tsproto.AddAppRequest.fromPartial(body),
4361
+ tsproto.AddAppRequest.fromPartial({
4362
+ ...body,
4363
+ creator_id: BigInt(body.creator_id || "0"),
4364
+ }),
4356
4365
  );
4357
4366
  const encodedBody = bodyWriter.finish();
4358
4367
 
@@ -4437,8 +4446,8 @@ export class MezonApi {
4437
4446
  /** Add an app to clan. */
4438
4447
  addAppToClan(
4439
4448
  bearerToken: string,
4440
- appId: bigint,
4441
- clanId: bigint,
4449
+ appId: string,
4450
+ clanId: string,
4442
4451
  options: any = {},
4443
4452
  ): Promise<any> {
4444
4453
  if (appId === null || appId === undefined) {
@@ -4456,8 +4465,8 @@ export class MezonApi {
4456
4465
 
4457
4466
  const bodyWriter = tsproto.AppClan.encode(
4458
4467
  tsproto.AppClan.fromPartial({
4459
- app_id: appId,
4460
- clan_id: clanId,
4468
+ app_id: BigInt(appId),
4469
+ clan_id: BigInt(clanId),
4461
4470
  }),
4462
4471
  );
4463
4472
  const encodedBody = bodyWriter.finish();
@@ -4486,7 +4495,7 @@ export class MezonApi {
4486
4495
  }
4487
4496
 
4488
4497
  /** Delete all information stored for an app. */
4489
- deleteApp(bearerToken: string, id: bigint, options: any = {}): Promise<any> {
4498
+ deleteApp(bearerToken: string, id: string, options: any = {}): Promise<any> {
4490
4499
  if (id === null || id === undefined) {
4491
4500
  throw new Error("'id' is a required parameter but is null or undefined.");
4492
4501
  }
@@ -4495,7 +4504,7 @@ export class MezonApi {
4495
4504
 
4496
4505
  const bodyWriter = tsproto.App.encode(
4497
4506
  tsproto.App.fromPartial({
4498
- id: id,
4507
+ id: BigInt(id),
4499
4508
  }),
4500
4509
  );
4501
4510
  const encodedBody = bodyWriter.finish();
@@ -4524,7 +4533,7 @@ export class MezonApi {
4524
4533
  }
4525
4534
 
4526
4535
  /** Get detailed app information. */
4527
- getApp(bearerToken: string, id: bigint, options: any = {}): Promise<ApiApp> {
4536
+ getApp(bearerToken: string, id: string, options: any = {}): Promise<ApiApp> {
4528
4537
  if (id === null || id === undefined) {
4529
4538
  throw new Error("'id' is a required parameter but is null or undefined.");
4530
4539
  }
@@ -4533,7 +4542,7 @@ export class MezonApi {
4533
4542
 
4534
4543
  const bodyWriter = tsproto.App.encode(
4535
4544
  tsproto.App.fromPartial({
4536
- id: id,
4545
+ id: BigInt(id),
4537
4546
  }),
4538
4547
  );
4539
4548
  const encodedBody = bodyWriter.finish();
@@ -4570,7 +4579,7 @@ export class MezonApi {
4570
4579
  /** Update one or more fields on a app. */
4571
4580
  updateApp(
4572
4581
  bearerToken: string,
4573
- id: bigint,
4582
+ id: string,
4574
4583
  body: MezonUpdateAppBody,
4575
4584
  options: any = {},
4576
4585
  ): Promise<ApiApp> {
@@ -4586,7 +4595,7 @@ export class MezonApi {
4586
4595
  const queryParams = new Map<string, any>();
4587
4596
 
4588
4597
  const bodyWriter = tsproto.UpdateAppRequest.encode(
4589
- tsproto.UpdateAppRequest.fromPartial({ ...body, id: id }),
4598
+ tsproto.UpdateAppRequest.fromPartial({ ...body, id: BigInt(id) }),
4590
4599
  );
4591
4600
  const encodedBody = bodyWriter.finish();
4592
4601
 
@@ -4623,8 +4632,8 @@ export class MezonApi {
4623
4632
  listAuditLog(
4624
4633
  bearerToken: string,
4625
4634
  actionLog?: string,
4626
- userId?: bigint,
4627
- clanId?: bigint,
4635
+ userId?: string,
4636
+ clanId?: string,
4628
4637
  dateLog?: string,
4629
4638
  options: any = {},
4630
4639
  ): Promise<MezonapiListAuditLog> {
@@ -4633,8 +4642,8 @@ export class MezonApi {
4633
4642
 
4634
4643
  const bodyWriter = tsproto.ListAuditLogRequest.encode(
4635
4644
  tsproto.ListAuditLogRequest.fromPartial({
4636
- clan_id: clanId,
4637
- user_id: userId,
4645
+ clan_id: BigInt(clanId || "0"),
4646
+ user_id: BigInt(userId || "0"),
4638
4647
  action_log: actionLog,
4639
4648
  date_log: dateLog,
4640
4649
  }),
@@ -4684,7 +4693,16 @@ export class MezonApi {
4684
4693
  const queryParams = new Map<string, any>();
4685
4694
 
4686
4695
  const bodyWriter = tsproto.UpdateCategoryOrderRequest.encode(
4687
- tsproto.UpdateCategoryOrderRequest.fromPartial(body),
4696
+ tsproto.UpdateCategoryOrderRequest.fromPartial({
4697
+ ...body,
4698
+ clan_id: BigInt(body.clan_id || "0"),
4699
+ categories: body.categories?.map((cat) => {
4700
+ return {
4701
+ ...cat,
4702
+ category_id: BigInt(cat.category_id || "0"),
4703
+ };
4704
+ }),
4705
+ }),
4688
4706
  );
4689
4707
  const encodedBody = bodyWriter.finish();
4690
4708
 
@@ -4714,10 +4732,10 @@ export class MezonApi {
4714
4732
  /** */
4715
4733
  listCategoryDescs(
4716
4734
  bearerToken: string,
4717
- clanId: bigint,
4718
- creatorId?: bigint,
4735
+ clanId: string,
4736
+ creatorId?: string,
4719
4737
  categoryName?: string,
4720
- categoryId?: bigint,
4738
+ categoryId?: string,
4721
4739
  categoryOrder?: number,
4722
4740
  options: any = {},
4723
4741
  ): Promise<ApiCategoryDescList> {
@@ -4731,10 +4749,10 @@ export class MezonApi {
4731
4749
 
4732
4750
  const bodyWriter = tsproto.CategoryDesc.encode(
4733
4751
  tsproto.CategoryDesc.fromPartial({
4734
- clan_id: clanId,
4735
- creator_id: creatorId,
4752
+ clan_id: BigInt(clanId || "0"),
4753
+ creator_id: BigInt(creatorId || "0"),
4736
4754
  category_name: categoryName,
4737
- category_id: categoryId,
4755
+ category_id: BigInt(categoryId || "0"),
4738
4756
  category_order: categoryOrder,
4739
4757
  }),
4740
4758
  );
@@ -4772,7 +4790,7 @@ export class MezonApi {
4772
4790
  /** List channel apps. */
4773
4791
  listChannelApps(
4774
4792
  bearerToken: string,
4775
- clanId?: bigint,
4793
+ clanId?: string,
4776
4794
  options: any = {},
4777
4795
  ): Promise<ApiListChannelAppsResponse> {
4778
4796
  const urlPath = "/mezon.api.Mezon/ListChannelApps";
@@ -4780,7 +4798,7 @@ export class MezonApi {
4780
4798
 
4781
4799
  const bodyWriter = tsproto.ListChannelAppsRequest.encode(
4782
4800
  tsproto.ListChannelAppsRequest.fromPartial({
4783
- clan_id: clanId,
4801
+ clan_id: BigInt(clanId || "0"),
4784
4802
  }),
4785
4803
  );
4786
4804
  const encodedBody = bodyWriter.finish();
@@ -4817,8 +4835,8 @@ export class MezonApi {
4817
4835
  /** */
4818
4836
  getChannelCanvasList(
4819
4837
  bearerToken: string,
4820
- channelId: bigint,
4821
- clanId?: bigint,
4838
+ channelId: string,
4839
+ clanId?: string,
4822
4840
  limit?: number,
4823
4841
  page?: number,
4824
4842
  options: any = {},
@@ -4833,8 +4851,8 @@ export class MezonApi {
4833
4851
 
4834
4852
  const bodyWriter = tsproto.ChannelCanvasListRequest.encode(
4835
4853
  tsproto.ChannelCanvasListRequest.fromPartial({
4836
- channel_id: channelId,
4837
- clan_id: clanId,
4854
+ channel_id: BigInt(channelId || "0"),
4855
+ clan_id: BigInt(clanId || "0"),
4838
4856
  limit: limit,
4839
4857
  page: page,
4840
4858
  }),
@@ -4885,7 +4903,11 @@ export class MezonApi {
4885
4903
  const queryParams = new Map<string, any>();
4886
4904
 
4887
4905
  const bodyWriter = tsproto.AddFavoriteChannelRequest.encode(
4888
- tsproto.AddFavoriteChannelRequest.fromPartial(body),
4906
+ tsproto.AddFavoriteChannelRequest.fromPartial({
4907
+ ...body,
4908
+ channel_id: BigInt(body.channel_id || "0"),
4909
+ clan_id: BigInt(body.clan_id || "0"),
4910
+ }),
4889
4911
  );
4890
4912
  const encodedBody = bodyWriter.finish();
4891
4913
 
@@ -4918,8 +4940,8 @@ export class MezonApi {
4918
4940
  /** */
4919
4941
  removeChannelFavorite(
4920
4942
  bearerToken: string,
4921
- channelId: bigint,
4922
- clanId?: bigint,
4943
+ channelId: string,
4944
+ clanId?: string,
4923
4945
  options: any = {},
4924
4946
  ): Promise<any> {
4925
4947
  if (channelId === null || channelId === undefined) {
@@ -4932,8 +4954,8 @@ export class MezonApi {
4932
4954
 
4933
4955
  const bodyWriter = tsproto.RemoveFavoriteChannelRequest.encode(
4934
4956
  tsproto.RemoveFavoriteChannelRequest.fromPartial({
4935
- channel_id: channelId,
4936
- clan_id: clanId,
4957
+ channel_id: BigInt(channelId || "0"),
4958
+ clan_id: BigInt(clanId || "0"),
4937
4959
  }),
4938
4960
  );
4939
4961
  const encodedBody = bodyWriter.finish();
@@ -4964,7 +4986,7 @@ export class MezonApi {
4964
4986
  /** */
4965
4987
  getListFavoriteChannel(
4966
4988
  bearerToken: string,
4967
- clanId: bigint,
4989
+ clanId: string,
4968
4990
  options: any = {},
4969
4991
  ): Promise<ApiListFavoriteChannelResponse> {
4970
4992
  if (clanId === null || clanId === undefined) {
@@ -4977,7 +4999,7 @@ export class MezonApi {
4977
4999
 
4978
5000
  const bodyWriter = tsproto.ListFavoriteChannelRequest.encode(
4979
5001
  tsproto.ListFavoriteChannelRequest.fromPartial({
4980
- clan_id: clanId,
5002
+ clan_id: BigInt(clanId || "0"),
4981
5003
  }),
4982
5004
  );
4983
5005
  const encodedBody = bodyWriter.finish();
@@ -5014,12 +5036,12 @@ export class MezonApi {
5014
5036
  /** List a channel's message history. */
5015
5037
  listChannelMessages(
5016
5038
  bearerToken: string,
5017
- clanId: bigint,
5018
- channelId: bigint,
5019
- messageId?: bigint,
5039
+ clanId: string,
5040
+ channelId: string,
5041
+ messageId?: string,
5020
5042
  direction?: number,
5021
5043
  limit?: number,
5022
- topicId?: bigint,
5044
+ topicId?: string,
5023
5045
  options: any = {},
5024
5046
  ): Promise<ApiChannelMessageList> {
5025
5047
  if (channelId === null || channelId === undefined) {
@@ -5032,12 +5054,12 @@ export class MezonApi {
5032
5054
 
5033
5055
  const bodyWriter = tsproto.ListChannelMessagesRequest.encode(
5034
5056
  tsproto.ListChannelMessagesRequest.fromPartial({
5035
- clan_id: clanId,
5036
- channel_id: channelId,
5037
- message_id: messageId,
5057
+ clan_id: BigInt(clanId || "0"),
5058
+ channel_id: BigInt(channelId || "0"),
5059
+ message_id: BigInt(messageId || "0"),
5038
5060
  direction,
5039
5061
  limit,
5040
- topic_id: topicId,
5062
+ topic_id: BigInt(topicId || "0"),
5041
5063
  }),
5042
5064
  );
5043
5065
  const encodedBody = bodyWriter.finish();
@@ -5074,8 +5096,8 @@ export class MezonApi {
5074
5096
  /** Add users to a channel. */
5075
5097
  addChannelUsers(
5076
5098
  bearerToken: string,
5077
- channelId: bigint,
5078
- userIds?: Array<bigint>,
5099
+ channelId: string,
5100
+ userIds?: Array<string>,
5079
5101
  options: any = {},
5080
5102
  ): Promise<any> {
5081
5103
  if (channelId === null || channelId === undefined) {
@@ -5088,8 +5110,8 @@ export class MezonApi {
5088
5110
 
5089
5111
  const bodyWriter = tsproto.AddChannelUsersRequest.encode(
5090
5112
  tsproto.AddChannelUsersRequest.fromPartial({
5091
- channel_id: channelId,
5092
- user_ids: userIds,
5113
+ channel_id: BigInt(channelId || "0"),
5114
+ user_ids: userIds?.map((user) => BigInt(user)),
5093
5115
  }),
5094
5116
  );
5095
5117
  const encodedBody = bodyWriter.finish();
@@ -5120,8 +5142,8 @@ export class MezonApi {
5120
5142
  /** List all attachment that are part of a channel. */
5121
5143
  listChannelAttachment(
5122
5144
  bearerToken: string,
5123
- channelId: bigint,
5124
- clanId?: bigint,
5145
+ channelId: string,
5146
+ clanId?: string,
5125
5147
  fileType?: string,
5126
5148
  limit?: number,
5127
5149
  state?: number,
@@ -5140,8 +5162,8 @@ export class MezonApi {
5140
5162
 
5141
5163
  const bodyWriter = tsproto.ListChannelAttachmentRequest.encode(
5142
5164
  tsproto.ListChannelAttachmentRequest.fromPartial({
5143
- channel_id: channelId,
5144
- clan_id: clanId,
5165
+ channel_id: BigInt(channelId || "0"),
5166
+ clan_id: BigInt(clanId || "0"),
5145
5167
  file_type: fileType,
5146
5168
  limit: limit,
5147
5169
  state: state,
@@ -5184,7 +5206,7 @@ export class MezonApi {
5184
5206
  /** get channel encryption method */
5185
5207
  getChanEncryptionMethod(
5186
5208
  bearerToken: string,
5187
- channelId: bigint,
5209
+ channelId: string,
5188
5210
  method?: string,
5189
5211
  options: any = {},
5190
5212
  ): Promise<ApiChanEncryptionMethod> {
@@ -5198,7 +5220,7 @@ export class MezonApi {
5198
5220
 
5199
5221
  const bodyWriter = tsproto.ChanEncryptionMethod.encode(
5200
5222
  tsproto.ChanEncryptionMethod.fromPartial({
5201
- channel_id: channelId,
5223
+ channel_id: BigInt(channelId || "0"),
5202
5224
  method: method,
5203
5225
  }),
5204
5226
  );
@@ -5236,7 +5258,7 @@ export class MezonApi {
5236
5258
  /** store channel encryption method */
5237
5259
  setChanEncryptionMethod(
5238
5260
  bearerToken: string,
5239
- channelId: bigint,
5261
+ channelId: string,
5240
5262
  body: MezonSetChanEncryptionMethodBody,
5241
5263
  options: any = {},
5242
5264
  ): Promise<any> {
@@ -5256,7 +5278,7 @@ export class MezonApi {
5256
5278
  const bodyWriter = tsproto.ChanEncryptionMethod.encode(
5257
5279
  tsproto.ChanEncryptionMethod.fromPartial({
5258
5280
  ...body,
5259
- channel_id: channelId,
5281
+ channel_id: BigInt(channelId || "0"),
5260
5282
  }),
5261
5283
  );
5262
5284
  const encodedBody = bodyWriter.finish();
@@ -5287,8 +5309,8 @@ export class MezonApi {
5287
5309
  /** Leave a channel the user is a member of. */
5288
5310
  leaveThread(
5289
5311
  bearerToken: string,
5290
- clanId: bigint,
5291
- channelId: bigint,
5312
+ clanId: string,
5313
+ channelId: string,
5292
5314
  options: any = {},
5293
5315
  ): Promise<any> {
5294
5316
  if (channelId === null || channelId === undefined) {
@@ -5301,8 +5323,8 @@ export class MezonApi {
5301
5323
 
5302
5324
  const bodyWriter = tsproto.LeaveThreadRequest.encode(
5303
5325
  tsproto.LeaveThreadRequest.fromPartial({
5304
- channel_id: channelId,
5305
- clan_id: clanId,
5326
+ channel_id: BigInt(channelId || "0"),
5327
+ clan_id: BigInt(clanId || "0"),
5306
5328
  }),
5307
5329
  );
5308
5330
  const encodedBody = bodyWriter.finish();
@@ -5333,8 +5355,8 @@ export class MezonApi {
5333
5355
  /** Kick a set of users from a channel. */
5334
5356
  removeChannelUsers(
5335
5357
  bearerToken: string,
5336
- channelId: bigint,
5337
- userIds?: Array<bigint>,
5358
+ channelId: string,
5359
+ userIds?: Array<string>,
5338
5360
  options: any = {},
5339
5361
  ): Promise<any> {
5340
5362
  if (channelId === null || channelId === undefined) {
@@ -5347,8 +5369,12 @@ export class MezonApi {
5347
5369
 
5348
5370
  const bodyWriter = tsproto.RemoveChannelUsersRequest.encode(
5349
5371
  tsproto.RemoveChannelUsersRequest.fromPartial({
5350
- channel_id: channelId,
5351
- user_ids: userIds,
5372
+ channel_id: BigInt(channelId || "0"),
5373
+ user_ids: userIds
5374
+ ?.map((user) => BigInt(user))
5375
+ ?.map((user) => {
5376
+ return BigInt(user);
5377
+ }),
5352
5378
  }),
5353
5379
  );
5354
5380
  const encodedBody = bodyWriter.finish();
@@ -5379,8 +5405,8 @@ export class MezonApi {
5379
5405
  /** List all users that are part of a channel. */
5380
5406
  listChannelUsers(
5381
5407
  bearerToken: string,
5382
- clanId: bigint,
5383
- channelId: bigint,
5408
+ clanId: string,
5409
+ channelId: string,
5384
5410
  channelType?: number,
5385
5411
  limit?: number,
5386
5412
  state?: number,
@@ -5397,8 +5423,8 @@ export class MezonApi {
5397
5423
 
5398
5424
  const bodyWriter = tsproto.ListChannelUsersRequest.encode(
5399
5425
  tsproto.ListChannelUsersRequest.fromPartial({
5400
- clan_id: clanId,
5401
- channel_id: channelId,
5426
+ clan_id: BigInt(clanId || "0"),
5427
+ channel_id: BigInt(channelId || "0"),
5402
5428
  channel_type: channelType,
5403
5429
  limit: limit,
5404
5430
  state: state,
@@ -5442,7 +5468,7 @@ export class MezonApi {
5442
5468
  limit?: number,
5443
5469
  state?: number,
5444
5470
  cursor?: string,
5445
- clanId?: bigint,
5471
+ clanId?: string,
5446
5472
  channelType?: number,
5447
5473
  isMobile?: boolean,
5448
5474
  options: any = {},
@@ -5455,7 +5481,7 @@ export class MezonApi {
5455
5481
  limit,
5456
5482
  state,
5457
5483
  cursor,
5458
- clan_id: clanId,
5484
+ clan_id: BigInt(clanId || "0"),
5459
5485
  channel_type: channelType,
5460
5486
  is_mobile: isMobile,
5461
5487
  }),
@@ -5506,7 +5532,17 @@ export class MezonApi {
5506
5532
  const queryParams = new Map<string, any>();
5507
5533
 
5508
5534
  const bodyWriter = tsproto.CreateChannelDescRequest.encode(
5509
- tsproto.CreateChannelDescRequest.fromPartial(body),
5535
+ tsproto.CreateChannelDescRequest.fromPartial({
5536
+ ...body,
5537
+ clan_id: BigInt(body.clan_id || "0"),
5538
+ parent_id: BigInt(body.parent_id || "0"),
5539
+ channel_id: BigInt(body.channel_id || "0"),
5540
+ category_id: BigInt(body.category_id || "0"),
5541
+ app_id: BigInt(body.app_id || "0"),
5542
+ user_ids: body.user_ids?.map((user) => {
5543
+ return BigInt(user);
5544
+ }),
5545
+ }),
5510
5546
  );
5511
5547
  const encodedBody = bodyWriter.finish();
5512
5548
 
@@ -5542,7 +5578,7 @@ export class MezonApi {
5542
5578
  /** list user add channel by channel ids */
5543
5579
  listChannelUsersUC(
5544
5580
  bearerToken: string,
5545
- channelId?: bigint,
5581
+ channelId?: string,
5546
5582
  limit?: number,
5547
5583
  options: any = {},
5548
5584
  ): Promise<ApiAllUsersAddChannelResponse> {
@@ -5551,7 +5587,7 @@ export class MezonApi {
5551
5587
 
5552
5588
  const bodyWriter = tsproto.AllUsersAddChannelRequest.encode(
5553
5589
  tsproto.AllUsersAddChannelRequest.fromPartial({
5554
- channel_id: channelId,
5590
+ channel_id: BigInt(channelId || "0"),
5555
5591
  limit: limit,
5556
5592
  }),
5557
5593
  );
@@ -5589,8 +5625,8 @@ export class MezonApi {
5589
5625
  /** Delete a channel by ID. */
5590
5626
  deleteChannelDesc(
5591
5627
  bearerToken: string,
5592
- clanId: bigint,
5593
- channelId: bigint,
5628
+ clanId: string,
5629
+ channelId: string,
5594
5630
  options: any = {},
5595
5631
  ): Promise<any> {
5596
5632
  if (channelId === null || channelId === undefined) {
@@ -5603,8 +5639,8 @@ export class MezonApi {
5603
5639
 
5604
5640
  const bodyWriter = tsproto.DeleteChannelDescRequest.encode(
5605
5641
  tsproto.DeleteChannelDescRequest.fromPartial({
5606
- clan_id: clanId,
5607
- channel_id: channelId,
5642
+ clan_id: BigInt(clanId || "0"),
5643
+ channel_id: BigInt(channelId || "0"),
5608
5644
  }),
5609
5645
  );
5610
5646
  const encodedBody = bodyWriter.finish();
@@ -5635,7 +5671,7 @@ export class MezonApi {
5635
5671
  /** Update fields in a given channel. */
5636
5672
  updateChannelDesc(
5637
5673
  bearerToken: string,
5638
- channelId: bigint,
5674
+ channelId: string,
5639
5675
  body: ApiUpdateChannelDescRequest,
5640
5676
  options: any = {},
5641
5677
  ): Promise<any> {
@@ -5655,7 +5691,9 @@ export class MezonApi {
5655
5691
  const bodyWriter = tsproto.UpdateChannelDescRequest.encode(
5656
5692
  tsproto.UpdateChannelDescRequest.fromPartial({
5657
5693
  ...body,
5658
- channel_id: channelId,
5694
+ channel_id: BigInt(channelId || "0"),
5695
+ category_id: BigInt(body.category_id || "0"),
5696
+ app_id: BigInt(body.app_id || "0")
5659
5697
  }),
5660
5698
  );
5661
5699
  const encodedBody = bodyWriter.finish();
@@ -5686,9 +5724,9 @@ export class MezonApi {
5686
5724
  /** List channel setting */
5687
5725
  listChannelSetting(
5688
5726
  bearerToken: string,
5689
- clanId: bigint,
5690
- parentId?: bigint,
5691
- categoryId?: bigint,
5727
+ clanId: string,
5728
+ parentId?: string,
5729
+ categoryId?: string,
5692
5730
  privateChannel?: number,
5693
5731
  active?: number,
5694
5732
  status?: number,
@@ -5708,9 +5746,9 @@ export class MezonApi {
5708
5746
 
5709
5747
  const bodyWriter = tsproto.ChannelSettingListRequest.encode(
5710
5748
  tsproto.ChannelSettingListRequest.fromPartial({
5711
- clan_id: clanId,
5712
- parent_id: parentId,
5713
- category_id: categoryId,
5749
+ clan_id: BigInt(clanId || "0"),
5750
+ parent_id: BigInt(parentId || "0"),
5751
+ category_id: BigInt(categoryId || "0"),
5714
5752
  active: active,
5715
5753
  private_channel: privateChannel,
5716
5754
  status: status,
@@ -5754,8 +5792,8 @@ export class MezonApi {
5754
5792
  /** List all users that are part of a channel. */
5755
5793
  listChannelVoiceUsers(
5756
5794
  bearerToken: string,
5757
- clanId?: bigint,
5758
- channelId?: bigint,
5795
+ clanId?: string,
5796
+ channelId?: string,
5759
5797
  channelType?: number,
5760
5798
  limit?: number,
5761
5799
  state?: number,
@@ -5767,8 +5805,8 @@ export class MezonApi {
5767
5805
 
5768
5806
  const bodyWriter = tsproto.ListChannelUsersRequest.encode(
5769
5807
  tsproto.ListChannelUsersRequest.fromPartial({
5770
- clan_id: clanId,
5771
- channel_id: channelId,
5808
+ clan_id: BigInt(clanId || "0"),
5809
+ channel_id: BigInt(channelId || "0"),
5772
5810
  channel_type: channelType,
5773
5811
  limit: limit,
5774
5812
  state: state,
@@ -5809,7 +5847,7 @@ export class MezonApi {
5809
5847
  /** List clans */
5810
5848
  listClanUnreadMsgIndicator(
5811
5849
  bearerToken: string,
5812
- clanId: bigint,
5850
+ clanId: string,
5813
5851
  options: any = {},
5814
5852
  ): Promise<ApiListClanUnreadMsgIndicatorResponse> {
5815
5853
  if (clanId === null || clanId === undefined) {
@@ -5822,7 +5860,7 @@ export class MezonApi {
5822
5860
 
5823
5861
  const bodyWriter = tsproto.ListClanUnreadMsgIndicatorRequest.encode(
5824
5862
  tsproto.ListClanUnreadMsgIndicatorRequest.fromPartial({
5825
- clan_id: clanId,
5863
+ clan_id: BigInt(clanId || "0"),
5826
5864
  }),
5827
5865
  );
5828
5866
  const encodedBody = bodyWriter.finish();
@@ -5956,7 +5994,7 @@ export class MezonApi {
5956
5994
  /** Delete a clan desc by ID. */
5957
5995
  deleteClanDesc(
5958
5996
  bearerToken: string,
5959
- clanDescId: bigint,
5997
+ clanDescId: string,
5960
5998
  options: any = {},
5961
5999
  ): Promise<any> {
5962
6000
  if (clanDescId === null || clanDescId === undefined) {
@@ -5968,7 +6006,9 @@ export class MezonApi {
5968
6006
  const queryParams = new Map<string, any>();
5969
6007
 
5970
6008
  const bodyWriter = tsproto.DeleteClanDescRequest.encode(
5971
- tsproto.DeleteClanDescRequest.fromPartial({ clan_desc_id: clanDescId }),
6009
+ tsproto.DeleteClanDescRequest.fromPartial({
6010
+ clan_desc_id: BigInt(clanDescId),
6011
+ }),
5972
6012
  );
5973
6013
  const encodedBody = bodyWriter.finish();
5974
6014
 
@@ -5998,7 +6038,7 @@ export class MezonApi {
5998
6038
  /** Update fields in a given clan. */
5999
6039
  updateClanDesc(
6000
6040
  bearerToken: string,
6001
- clanId: bigint,
6041
+ clanId: string,
6002
6042
  body: {},
6003
6043
  options: any = {},
6004
6044
  ): Promise<any> {
@@ -6016,7 +6056,10 @@ export class MezonApi {
6016
6056
  const queryParams = new Map<string, any>();
6017
6057
 
6018
6058
  const bodyWriter = tsproto.UpdateClanDescRequest.encode(
6019
- tsproto.UpdateClanDescRequest.fromPartial({ clan_id: clanId, ...body }),
6059
+ tsproto.UpdateClanDescRequest.fromPartial({
6060
+ clan_id: BigInt(clanId || "0"),
6061
+ ...body,
6062
+ }),
6020
6063
  );
6021
6064
  const encodedBody = bodyWriter.finish();
6022
6065
 
@@ -6046,8 +6089,8 @@ export class MezonApi {
6046
6089
  /** Kick a set of users from a clan. */
6047
6090
  removeClanUsers(
6048
6091
  bearerToken: string,
6049
- clanId: bigint,
6050
- userIds?: Array<bigint>,
6092
+ clanId: string,
6093
+ userIds?: Array<string>,
6051
6094
  options: any = {},
6052
6095
  ): Promise<any> {
6053
6096
  if (clanId === null || clanId === undefined) {
@@ -6060,8 +6103,10 @@ export class MezonApi {
6060
6103
 
6061
6104
  const bodyWriter = tsproto.RemoveClanUsersRequest.encode(
6062
6105
  tsproto.RemoveClanUsersRequest.fromPartial({
6063
- clan_id: clanId,
6064
- user_ids: userIds,
6106
+ clan_id: BigInt(clanId || "0"),
6107
+ user_ids: userIds
6108
+ ?.map((user) => BigInt(user))
6109
+ ?.map((user) => BigInt(user)),
6065
6110
  }),
6066
6111
  );
6067
6112
  const encodedBody = bodyWriter.finish();
@@ -6096,8 +6141,8 @@ export class MezonApi {
6096
6141
  /** List banned user */
6097
6142
  listBannedUsers(
6098
6143
  bearerToken: string,
6099
- clanId?: bigint,
6100
- channelId?: bigint,
6144
+ clanId?: string,
6145
+ channelId?: string,
6101
6146
  options: any = {},
6102
6147
  ): Promise<ApiBannedUserList> {
6103
6148
  const urlPath = "/mezon.api.Mezon/ListBannedUsers";
@@ -6105,8 +6150,8 @@ export class MezonApi {
6105
6150
 
6106
6151
  const bodyWriter = tsproto.BannedUserListRequest.encode(
6107
6152
  tsproto.BannedUserListRequest.fromPartial({
6108
- clan_id: clanId,
6109
- channel_id: channelId,
6153
+ clan_id: BigInt(clanId || "0"),
6154
+ channel_id: BigInt(channelId || "0"),
6110
6155
  }),
6111
6156
  );
6112
6157
  const encodedBody = bodyWriter.finish();
@@ -6143,9 +6188,9 @@ export class MezonApi {
6143
6188
  /** Ban a set of users from a channel. */
6144
6189
  unbanClanUsers(
6145
6190
  bearerToken: string,
6146
- clanId: bigint,
6147
- channelId?: bigint,
6148
- userIds?: Array<bigint>,
6191
+ clanId: string,
6192
+ channelId?: string,
6193
+ userIds?: Array<string>,
6149
6194
  banTime?: number,
6150
6195
  options: any = {},
6151
6196
  ): Promise<any> {
@@ -6159,9 +6204,11 @@ export class MezonApi {
6159
6204
 
6160
6205
  const bodyWriter = tsproto.BanClanUsersRequest.encode(
6161
6206
  tsproto.BanClanUsersRequest.fromPartial({
6162
- clan_id: clanId,
6163
- channel_id: channelId,
6164
- user_ids: userIds,
6207
+ clan_id: BigInt(clanId || "0"),
6208
+ channel_id: BigInt(channelId || "0"),
6209
+ user_ids: userIds
6210
+ ?.map((user) => BigInt(user))
6211
+ ?.map((user) => BigInt(user)),
6165
6212
  ban_time: banTime,
6166
6213
  }),
6167
6214
  );
@@ -6197,9 +6244,9 @@ export class MezonApi {
6197
6244
  /** Ban a set of users from a channel. */
6198
6245
  banClanUsers(
6199
6246
  bearerToken: string,
6200
- clanId: bigint,
6201
- channelId?: bigint,
6202
- userIds?: Array<bigint>,
6247
+ clanId: string,
6248
+ channelId?: string,
6249
+ userIds?: Array<string>,
6203
6250
  banTime?: number,
6204
6251
  options: any = {},
6205
6252
  ): Promise<any> {
@@ -6213,9 +6260,9 @@ export class MezonApi {
6213
6260
 
6214
6261
  const bodyWriter = tsproto.BanClanUsersRequest.encode(
6215
6262
  tsproto.BanClanUsersRequest.fromPartial({
6216
- clan_id: clanId,
6217
- channel_id: channelId,
6218
- user_ids: userIds,
6263
+ clan_id: BigInt(clanId || "0"),
6264
+ channel_id: BigInt(channelId || "0"),
6265
+ user_ids: userIds?.map((user) => BigInt(user)),
6219
6266
  ban_time: banTime,
6220
6267
  }),
6221
6268
  );
@@ -6251,7 +6298,7 @@ export class MezonApi {
6251
6298
  /** List all users that are part of a clan. */
6252
6299
  listClanUsers(
6253
6300
  bearerToken: string,
6254
- clanId: bigint,
6301
+ clanId: string,
6255
6302
  options: any = {},
6256
6303
  ): Promise<ApiClanUserList> {
6257
6304
  if (clanId === null || clanId === undefined) {
@@ -6263,7 +6310,9 @@ export class MezonApi {
6263
6310
  const queryParams = new Map<string, any>();
6264
6311
 
6265
6312
  const bodyWriter = tsproto.ListClanUsersRequest.encode(
6266
- tsproto.ListClanUsersRequest.fromPartial({ clan_id: clanId }),
6313
+ tsproto.ListClanUsersRequest.fromPartial({
6314
+ clan_id: BigInt(clanId || "0"),
6315
+ }),
6267
6316
  );
6268
6317
  const encodedBody = bodyWriter.finish();
6269
6318
 
@@ -6311,7 +6360,10 @@ export class MezonApi {
6311
6360
  const queryParams = new Map<string, any>();
6312
6361
 
6313
6362
  const bodyWriter = tsproto.CreateCategoryDescRequest.encode(
6314
- tsproto.CreateCategoryDescRequest.fromPartial(body),
6363
+ tsproto.CreateCategoryDescRequest.fromPartial({
6364
+ ...body,
6365
+ clan_id: BigInt(body.clan_id || "0"),
6366
+ }),
6315
6367
  );
6316
6368
  const encodedBody = bodyWriter.finish();
6317
6369
 
@@ -6347,8 +6399,8 @@ export class MezonApi {
6347
6399
  /** */
6348
6400
  deleteCategoryDesc(
6349
6401
  bearerToken: string,
6350
- categoryId: bigint,
6351
- clanId: bigint,
6402
+ categoryId: string,
6403
+ clanId: string,
6352
6404
  categoryLabel?: string,
6353
6405
  options: any = {},
6354
6406
  ): Promise<any> {
@@ -6367,8 +6419,8 @@ export class MezonApi {
6367
6419
 
6368
6420
  const bodyWriter = tsproto.DeleteCategoryDescRequest.encode(
6369
6421
  tsproto.DeleteCategoryDescRequest.fromPartial({
6370
- category_id: categoryId,
6371
- clan_id: clanId,
6422
+ category_id: BigInt(categoryId || "0"),
6423
+ clan_id: BigInt(clanId || "0"),
6372
6424
  category_label: categoryLabel,
6373
6425
  }),
6374
6426
  );
@@ -6464,7 +6516,11 @@ export class MezonApi {
6464
6516
  const queryParams = new Map<string, any>();
6465
6517
 
6466
6518
  const bodyWriter = tsproto.DeleteChannelDescRequest.encode(
6467
- tsproto.DeleteChannelDescRequest.fromPartial(body),
6519
+ tsproto.DeleteChannelDescRequest.fromPartial({
6520
+ ...body,
6521
+ clan_id: BigInt(body.clan_id || "0"),
6522
+ channel_id: BigInt(body.channel_id || "0"),
6523
+ }),
6468
6524
  );
6469
6525
  const encodedBody = bodyWriter.finish();
6470
6526
 
@@ -6510,7 +6566,11 @@ export class MezonApi {
6510
6566
  const queryParams = new Map<string, any>();
6511
6567
 
6512
6568
  const bodyWriter = tsproto.DeleteChannelDescRequest.encode(
6513
- tsproto.DeleteChannelDescRequest.fromPartial(body),
6569
+ tsproto.DeleteChannelDescRequest.fromPartial({
6570
+ ...body,
6571
+ clan_id: BigInt(body.clan_id || "0"),
6572
+ channel_id: BigInt(body.channel_id || "0"),
6573
+ }),
6514
6574
  );
6515
6575
  const encodedBody = bodyWriter.finish();
6516
6576
 
@@ -6556,7 +6616,11 @@ export class MezonApi {
6556
6616
  const queryParams = new Map<string, any>();
6557
6617
 
6558
6618
  const bodyWriter = tsproto.ClanEmojiCreateRequest.encode(
6559
- tsproto.ClanEmojiCreateRequest.fromPartial(body),
6619
+ tsproto.ClanEmojiCreateRequest.fromPartial({
6620
+ ...body,
6621
+ id: BigInt(body.id || "0"),
6622
+ clan_id: BigInt(body.clan_id || "0"),
6623
+ }),
6560
6624
  );
6561
6625
  const encodedBody = bodyWriter.finish();
6562
6626
 
@@ -6590,8 +6654,8 @@ export class MezonApi {
6590
6654
  /** Delete a emoji by ID. */
6591
6655
  deleteClanEmojiById(
6592
6656
  bearerToken: string,
6593
- id: bigint,
6594
- clanId?: bigint,
6657
+ id: string,
6658
+ clanId?: string,
6595
6659
  emojiLabel?: string,
6596
6660
  options: any = {},
6597
6661
  ): Promise<any> {
@@ -6603,8 +6667,8 @@ export class MezonApi {
6603
6667
 
6604
6668
  const bodyWriter = tsproto.ClanEmojiDeleteRequest.encode(
6605
6669
  tsproto.ClanEmojiDeleteRequest.fromPartial({
6606
- id,
6607
- clan_id: clanId,
6670
+ id: BigInt(id),
6671
+ clan_id: BigInt(clanId || "0"),
6608
6672
  emoji_label: emojiLabel,
6609
6673
  }),
6610
6674
  );
@@ -6640,7 +6704,7 @@ export class MezonApi {
6640
6704
  /** Update ClanEmoj By id */
6641
6705
  updateClanEmojiById(
6642
6706
  bearerToken: string,
6643
- id: bigint,
6707
+ id: string,
6644
6708
  body: MezonUpdateClanEmojiByIdBody,
6645
6709
  options: any = {},
6646
6710
  ): Promise<any> {
@@ -6657,9 +6721,9 @@ export class MezonApi {
6657
6721
 
6658
6722
  const bodyWriter = tsproto.ClanEmojiUpdateRequest.encode(
6659
6723
  tsproto.ClanEmojiUpdateRequest.fromPartial({
6660
- id: body.id,
6724
+ id: BigInt(body.id),
6661
6725
  shortname: body.shortname,
6662
- clan_id: body.clan_id,
6726
+ clan_id: BigInt(body.clan_id),
6663
6727
  }),
6664
6728
  );
6665
6729
  const encodedBody = bodyWriter.finish();
@@ -6860,14 +6924,16 @@ export class MezonApi {
6860
6924
  /** List user events */
6861
6925
  listEvents(
6862
6926
  bearerToken: string,
6863
- clanId?: bigint,
6927
+ clanId?: string,
6864
6928
  options: any = {},
6865
6929
  ): Promise<ApiEventList> {
6866
6930
  const urlPath = "/mezon.api.Mezon/ListEvents";
6867
6931
  const queryParams = new Map<string, any>();
6868
6932
 
6869
6933
  const bodyWriter = tsproto.ListEventsRequest.encode(
6870
- tsproto.ListEventsRequest.fromPartial({ clan_id: clanId }),
6934
+ tsproto.ListEventsRequest.fromPartial({
6935
+ clan_id: BigInt(clanId || "0"),
6936
+ }),
6871
6937
  );
6872
6938
  const encodedBody = bodyWriter.finish();
6873
6939
 
@@ -6915,7 +6981,20 @@ export class MezonApi {
6915
6981
  const queryParams = new Map<string, any>();
6916
6982
 
6917
6983
  const bodyWriter = tsproto.CreateEventRequest.encode(
6918
- tsproto.CreateEventRequest.fromPartial(body),
6984
+ tsproto.CreateEventRequest.fromPartial({
6985
+ ...body,
6986
+ clan_id: BigInt(body.clan_id || "0"),
6987
+ channel_id: BigInt(body.channel_id || "0"),
6988
+ creator_id: BigInt(body.creator_id || "0"),
6989
+ user_id: BigInt(body.user_id || "0"),
6990
+ channel_voice_id: BigInt(body.channel_voice_id || "0"),
6991
+ meet_room: {
6992
+ ...body.meet_room,
6993
+ meet_id: BigInt(body.meet_room?.meet_id as string),
6994
+ creator_id: BigInt(body.meet_room?.creator_id as string),
6995
+ event_id: BigInt(body.meet_room?.event_id as string),
6996
+ },
6997
+ }),
6919
6998
  );
6920
6999
  const encodedBody = bodyWriter.finish();
6921
7000
 
@@ -6963,7 +7042,13 @@ export class MezonApi {
6963
7042
  const queryParams = new Map<string, any>();
6964
7043
 
6965
7044
  const bodyWriter = tsproto.DeleteEventRequest.encode(
6966
- tsproto.DeleteEventRequest.fromPartial(body),
7045
+ tsproto.DeleteEventRequest.fromPartial({
7046
+ ...body,
7047
+ clan_id: BigInt(body.clan_id || "0"),
7048
+ channel_id: BigInt(body.channel_id || "0"),
7049
+ event_id: BigInt(body.event_id || "0"),
7050
+ creator_id: BigInt(body.creator_id || "0"),
7051
+ }),
6967
7052
  );
6968
7053
  const encodedBody = bodyWriter.finish();
6969
7054
 
@@ -6996,11 +7081,11 @@ export class MezonApi {
6996
7081
  /** Delete a event by ID. */
6997
7082
  deleteEvent(
6998
7083
  bearerToken: string,
6999
- eventId: bigint,
7000
- clanId?: bigint,
7001
- creatorId?: bigint,
7084
+ eventId: string,
7085
+ clanId?: string,
7086
+ creatorId?: string,
7002
7087
  eventLabel?: string,
7003
- channelId?: bigint,
7088
+ channelId?: string,
7004
7089
  options: any = {},
7005
7090
  ): Promise<any> {
7006
7091
  if (eventId === null || eventId === undefined) {
@@ -7013,11 +7098,11 @@ export class MezonApi {
7013
7098
 
7014
7099
  const bodyWriter = tsproto.DeleteEventRequest.encode(
7015
7100
  tsproto.DeleteEventRequest.fromPartial({
7016
- event_id: eventId,
7017
- clan_id: clanId,
7018
- creator_id: creatorId,
7101
+ event_id: BigInt(eventId),
7102
+ clan_id: BigInt(clanId || "0"),
7103
+ creator_id: BigInt(creatorId || "0"),
7019
7104
  event_label: eventLabel,
7020
- channel_id: channelId,
7105
+ channel_id: BigInt(channelId || "0"),
7021
7106
  }),
7022
7107
  );
7023
7108
  const encodedBody = bodyWriter.finish();
@@ -7051,7 +7136,7 @@ export class MezonApi {
7051
7136
  /** Update fields in a given event. */
7052
7137
  updateEvent(
7053
7138
  bearerToken: string,
7054
- eventId: bigint,
7139
+ eventId: string,
7055
7140
  body: MezonUpdateEventBody,
7056
7141
  options: any = {},
7057
7142
  ): Promise<any> {
@@ -7069,7 +7154,15 @@ export class MezonApi {
7069
7154
  const queryParams = new Map<string, any>();
7070
7155
 
7071
7156
  const bodyWriter = tsproto.UpdateEventRequest.encode(
7072
- tsproto.UpdateEventRequest.fromPartial(body),
7157
+ tsproto.UpdateEventRequest.fromPartial({
7158
+ ...body,
7159
+ clan_id: BigInt(body.clan_id || "0"),
7160
+ channel_id: BigInt(body.channel_id || "0"),
7161
+ event_id: BigInt(body.event_id || "0"),
7162
+ creator_id: BigInt(body.creator_id || "0"),
7163
+ channel_voice_id: BigInt(body.channel_voice_id || "0"),
7164
+ channel_id_old: BigInt(body.channel_id_old || "0"),
7165
+ }),
7073
7166
  );
7074
7167
  const encodedBody = bodyWriter.finish();
7075
7168
 
@@ -7102,7 +7195,7 @@ export class MezonApi {
7102
7195
  /** Delete one or more users by ID or username. */
7103
7196
  deleteFriends(
7104
7197
  bearerToken: string,
7105
- ids?: Array<bigint>,
7198
+ ids?: Array<string>,
7106
7199
  usernames?: Array<string>,
7107
7200
  options: any = {},
7108
7201
  ): Promise<any> {
@@ -7110,7 +7203,10 @@ export class MezonApi {
7110
7203
  const queryParams = new Map<string, any>();
7111
7204
 
7112
7205
  const bodyWriter = tsproto.DeleteFriendsRequest.encode(
7113
- tsproto.DeleteFriendsRequest.fromPartial({ ids, usernames }),
7206
+ tsproto.DeleteFriendsRequest.fromPartial({
7207
+ ids: ids?.map((id) => BigInt(id)),
7208
+ usernames,
7209
+ }),
7114
7210
  );
7115
7211
  const encodedBody = bodyWriter.finish();
7116
7212
 
@@ -7185,7 +7281,7 @@ export class MezonApi {
7185
7281
  /** Add friends by ID or username to a user's account. */
7186
7282
  addFriends(
7187
7283
  bearerToken: string,
7188
- ids?: Array<bigint>,
7284
+ ids?: Array<string>,
7189
7285
  usernames?: Array<string>,
7190
7286
  options: any = {},
7191
7287
  ): Promise<ApiAddFriendsResponse> {
@@ -7193,7 +7289,10 @@ export class MezonApi {
7193
7289
  const queryParams = new Map<string, any>();
7194
7290
 
7195
7291
  const bodyWriter = tsproto.AddFriendsRequest.encode(
7196
- tsproto.AddFriendsRequest.fromPartial({ ids, usernames }),
7292
+ tsproto.AddFriendsRequest.fromPartial({
7293
+ ids: ids?.map((id) => BigInt(id)),
7294
+ usernames,
7295
+ }),
7197
7296
  );
7198
7297
  const encodedBody = bodyWriter.finish();
7199
7298
 
@@ -7229,7 +7328,7 @@ export class MezonApi {
7229
7328
  /** Block one or more users by ID or username. */
7230
7329
  blockFriends(
7231
7330
  bearerToken: string,
7232
- ids?: Array<bigint>,
7331
+ ids?: Array<string>,
7233
7332
  usernames?: Array<string>,
7234
7333
  options: any = {},
7235
7334
  ): Promise<any> {
@@ -7237,7 +7336,10 @@ export class MezonApi {
7237
7336
  const queryParams = new Map<string, any>();
7238
7337
 
7239
7338
  const bodyWriter = tsproto.BlockFriendsRequest.encode(
7240
- tsproto.BlockFriendsRequest.fromPartial({ ids, usernames }),
7339
+ tsproto.BlockFriendsRequest.fromPartial({
7340
+ ids: ids?.map((id) => BigInt(id)),
7341
+ usernames,
7342
+ }),
7241
7343
  );
7242
7344
  const encodedBody = bodyWriter.finish();
7243
7345
 
@@ -7267,7 +7369,7 @@ export class MezonApi {
7267
7369
  /** Block one or more users by ID or username. */
7268
7370
  unblockFriends(
7269
7371
  bearerToken: string,
7270
- ids?: Array<bigint>,
7372
+ ids?: Array<string>,
7271
7373
  usernames?: Array<string>,
7272
7374
  options: any = {},
7273
7375
  ): Promise<any> {
@@ -7275,7 +7377,10 @@ export class MezonApi {
7275
7377
  const queryParams = new Map<string, any>();
7276
7378
 
7277
7379
  const bodyWriter = tsproto.BlockFriendsRequest.encode(
7278
- tsproto.BlockFriendsRequest.fromPartial({ ids, usernames }),
7380
+ tsproto.BlockFriendsRequest.fromPartial({
7381
+ ids: ids?.map((id) => BigInt(id)),
7382
+ usernames,
7383
+ }),
7279
7384
  );
7280
7385
  const encodedBody = bodyWriter.finish();
7281
7386
 
@@ -7305,14 +7410,16 @@ export class MezonApi {
7305
7410
  /** List GetChannelCategoryNotiSettingsList */
7306
7411
  getChannelCategoryNotiSettingsList(
7307
7412
  bearerToken: string,
7308
- clanId?: bigint,
7413
+ clanId?: string,
7309
7414
  options: any = {},
7310
7415
  ): Promise<ApiNotificationChannelCategorySettingList> {
7311
7416
  const urlPath = "/mezon.api.Mezon/GetChannelCategoryNotiSettingsList";
7312
7417
  const queryParams = new Map<string, any>();
7313
7418
 
7314
7419
  const bodyWriter = tsproto.NotificationClan.encode(
7315
- tsproto.NotificationClan.fromPartial({ clan_id: clanId }),
7420
+ tsproto.NotificationClan.fromPartial({
7421
+ clan_id: BigInt(clanId || "0"),
7422
+ }),
7316
7423
  );
7317
7424
  const encodedBody = bodyWriter.finish();
7318
7425
 
@@ -7348,7 +7455,7 @@ export class MezonApi {
7348
7455
  /** */
7349
7456
  getUserProfileOnClan(
7350
7457
  bearerToken: string,
7351
- clanId: bigint,
7458
+ clanId: string,
7352
7459
  options: any = {},
7353
7460
  ): Promise<ApiClanProfile> {
7354
7461
  if (clanId === null || clanId === undefined) {
@@ -7360,7 +7467,9 @@ export class MezonApi {
7360
7467
  const queryParams = new Map<string, any>();
7361
7468
 
7362
7469
  const bodyWriter = tsproto.ClanProfileRequest.encode(
7363
- tsproto.ClanProfileRequest.fromPartial({ clan_id: clanId }),
7470
+ tsproto.ClanProfileRequest.fromPartial({
7471
+ clan_id: BigInt(clanId || "0"),
7472
+ }),
7364
7473
  );
7365
7474
  const encodedBody = bodyWriter.finish();
7366
7475
 
@@ -7396,7 +7505,7 @@ export class MezonApi {
7396
7505
  /** List GetNotificationChannel */
7397
7506
  getNotificationCategory(
7398
7507
  bearerToken: string,
7399
- categoryId?: bigint,
7508
+ categoryId?: string,
7400
7509
  options: any = {},
7401
7510
  ): Promise<ApiNotificationUserChannel> {
7402
7511
  const urlPath = "/mezon.api.Mezon/GetNotificationCategory";
@@ -7404,7 +7513,7 @@ export class MezonApi {
7404
7513
 
7405
7514
  const bodyWriter = tsproto.DefaultNotificationCategory.encode(
7406
7515
  tsproto.DefaultNotificationCategory.fromPartial({
7407
- category_id: categoryId,
7516
+ category_id: BigInt(categoryId || "0"),
7408
7517
  }),
7409
7518
  );
7410
7519
  const encodedBody = bodyWriter.finish();
@@ -7441,14 +7550,16 @@ export class MezonApi {
7441
7550
  /** List GetNotificationChannel */
7442
7551
  getNotificationChannel(
7443
7552
  bearerToken: string,
7444
- channelId?: bigint,
7553
+ channelId?: string,
7445
7554
  options: any = {},
7446
7555
  ): Promise<ApiNotificationUserChannel> {
7447
7556
  const urlPath = "/mezon.api.Mezon/GetNotificationChannel";
7448
7557
  const queryParams = new Map<string, any>();
7449
7558
 
7450
7559
  const bodyWriter = tsproto.NotificationChannel.encode(
7451
- tsproto.NotificationChannel.fromPartial({ channel_id: channelId }),
7560
+ tsproto.NotificationChannel.fromPartial({
7561
+ channel_id: BigInt(channelId || "0"),
7562
+ }),
7452
7563
  );
7453
7564
  const encodedBody = bodyWriter.finish();
7454
7565
 
@@ -7484,14 +7595,16 @@ export class MezonApi {
7484
7595
  /** List GetNotificationClan */
7485
7596
  getNotificationClan(
7486
7597
  bearerToken: string,
7487
- clanId?: bigint,
7598
+ clanId?: string,
7488
7599
  options: any = {},
7489
7600
  ): Promise<ApiNotificationSetting> {
7490
7601
  const urlPath = "/mezon.api.Mezon/GetNotificationClan";
7491
7602
  const queryParams = new Map<string, any>();
7492
7603
 
7493
7604
  const bodyWriter = tsproto.NotificationClan.encode(
7494
- tsproto.NotificationClan.fromPartial({ clan_id: clanId }),
7605
+ tsproto.NotificationClan.fromPartial({
7606
+ clan_id: BigInt(clanId || "0"),
7607
+ }),
7495
7608
  );
7496
7609
  const encodedBody = bodyWriter.finish();
7497
7610
 
@@ -7527,14 +7640,16 @@ export class MezonApi {
7527
7640
  /** List GetNotificationReactMessage */
7528
7641
  getNotificationReactMessage(
7529
7642
  bearerToken: string,
7530
- channelId?: bigint,
7643
+ channelId?: string,
7531
7644
  options: any = {},
7532
7645
  ): Promise<ApiNotifiReactMessage> {
7533
7646
  const urlPath = "/mezon.api.Mezon/GetNotificationReactMessage";
7534
7647
  const queryParams = new Map<string, any>();
7535
7648
 
7536
7649
  const bodyWriter = tsproto.NotifiReactMessage.encode(
7537
- tsproto.NotifiReactMessage.fromPartial({ channel_id: channelId }),
7650
+ tsproto.NotifiReactMessage.fromPartial({
7651
+ channel_id: BigInt(channelId || "0"),
7652
+ }),
7538
7653
  );
7539
7654
  const encodedBody = bodyWriter.finish();
7540
7655
 
@@ -7567,51 +7682,6 @@ export class MezonApi {
7567
7682
  ]);
7568
7683
  }
7569
7684
 
7570
- /** Give a coffee */
7571
- giveMeACoffee(
7572
- bearerToken: string,
7573
- body: ApiGiveCoffeeEvent,
7574
- options: any = {},
7575
- ): Promise<any> {
7576
- if (body === null || body === undefined) {
7577
- throw new Error(
7578
- "'body' is a required parameter but is null or undefined.",
7579
- );
7580
- }
7581
- const urlPath = "/mezon.api.Mezon/GiveMeACoffee";
7582
- const queryParams = new Map<string, any>();
7583
-
7584
- const bodyWriter = tsproto.GiveCoffeeEvent.encode(
7585
- tsproto.GiveCoffeeEvent.fromPartial(body),
7586
- );
7587
- const encodedBody = bodyWriter.finish();
7588
-
7589
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
7590
- const fetchOptions = buildFetchOptions("POST", options, "");
7591
- fetchOptions.body = encodedBody;
7592
- if (bearerToken) {
7593
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
7594
- }
7595
-
7596
- return Promise.race([
7597
- fetch(fullUrl, fetchOptions).then(async (response) => {
7598
- if (response.status == 204) {
7599
- return {} as any;
7600
- } else if (response.status >= 200 && response.status < 300) {
7601
- return {} as any;
7602
- } else {
7603
- throw response;
7604
- }
7605
- }),
7606
- new Promise<never>((_, reject) =>
7607
- setTimeout(
7608
- () => reject(new Error("Request timed out.")),
7609
- this.timeoutMs,
7610
- ),
7611
- ),
7612
- ]);
7613
- }
7614
-
7615
7685
  /** get key server */
7616
7686
  getKeyServer(
7617
7687
  bearerToken: string,
@@ -7663,7 +7733,11 @@ export class MezonApi {
7663
7733
  const queryParams = new Map<string, any>();
7664
7734
 
7665
7735
  const bodyWriter = tsproto.LinkInviteUserRequest.encode(
7666
- tsproto.LinkInviteUserRequest.fromPartial(body),
7736
+ tsproto.LinkInviteUserRequest.fromPartial({
7737
+ ...body,
7738
+ clan_id: BigInt(body.clan_id || "0"),
7739
+ channel_id: BigInt(body.channel_id || "0"),
7740
+ }),
7667
7741
  );
7668
7742
  const encodedBody = bodyWriter.finish();
7669
7743
 
@@ -7699,7 +7773,7 @@ export class MezonApi {
7699
7773
  /** Add users to a channel. */
7700
7774
  inviteUser(
7701
7775
  bearerToken: string,
7702
- inviteId: bigint,
7776
+ inviteId: string,
7703
7777
  options: any = {},
7704
7778
  ): Promise<ApiInviteUserRes> {
7705
7779
  if (inviteId === null || inviteId === undefined) {
@@ -7711,7 +7785,7 @@ export class MezonApi {
7711
7785
  const queryParams = new Map<string, any>();
7712
7786
 
7713
7787
  const bodyWriter = tsproto.InviteUserRequest.encode(
7714
- tsproto.InviteUserRequest.fromPartial({ invite_id: inviteId }),
7788
+ tsproto.InviteUserRequest.fromPartial({ invite_id: BigInt(inviteId) }),
7715
7789
  );
7716
7790
  const encodedBody = bodyWriter.finish();
7717
7791
 
@@ -7748,7 +7822,7 @@ export class MezonApi {
7748
7822
  getLinkInvite(
7749
7823
  basicAuthUsername: string,
7750
7824
  basicAuthPassword: string,
7751
- inviteId: bigint,
7825
+ inviteId: string,
7752
7826
  options: any = {},
7753
7827
  ): Promise<ApiInviteUserRes> {
7754
7828
  if (inviteId === null || inviteId === undefined) {
@@ -7846,7 +7920,12 @@ export class MezonApi {
7846
7920
  const queryParams = new Map<string, any>();
7847
7921
 
7848
7922
  const bodyWriter = tsproto.MarkAsReadRequest.encode(
7849
- tsproto.MarkAsReadRequest.fromPartial(body),
7923
+ tsproto.MarkAsReadRequest.fromPartial({
7924
+ ...body,
7925
+ clan_id: BigInt(body.clan_id || "0"),
7926
+ channel_id: BigInt(body.channel_id || "0"),
7927
+ category_id: BigInt(body.category_id || "0"),
7928
+ }),
7850
7929
  );
7851
7930
  const encodedBody = bodyWriter.finish();
7852
7931
 
@@ -7927,7 +8006,11 @@ export class MezonApi {
7927
8006
  const queryParams = new Map<string, any>();
7928
8007
 
7929
8008
  const bodyWriter = tsproto.SetMuteRequest.encode(
7930
- tsproto.SetMuteRequest.fromPartial(body),
8009
+ tsproto.SetMuteRequest.fromPartial({
8010
+ ...body,
8011
+ id: BigInt(body.id || "0"),
8012
+ clan_id: BigInt(body.clan_id || "0"),
8013
+ }),
7931
8014
  );
7932
8015
  const encodedBody = bodyWriter.finish();
7933
8016
 
@@ -7972,7 +8055,11 @@ export class MezonApi {
7972
8055
  const queryParams = new Map<string, any>();
7973
8056
 
7974
8057
  const bodyWriter = tsproto.SetMuteRequest.encode(
7975
- tsproto.SetMuteRequest.fromPartial(body),
8058
+ tsproto.SetMuteRequest.fromPartial({
8059
+ ...body,
8060
+ id: BigInt(body.id || "0"),
8061
+ clan_id: BigInt(body.clan_id || "0"),
8062
+ }),
7976
8063
  );
7977
8064
  const encodedBody = bodyWriter.finish();
7978
8065
 
@@ -8005,7 +8092,7 @@ export class MezonApi {
8005
8092
  /** Delete one or more notifications for the current user. */
8006
8093
  deleteNotifications(
8007
8094
  bearerToken: string,
8008
- ids?: Array<bigint>,
8095
+ ids?: Array<string>,
8009
8096
  category?: number,
8010
8097
  options: any = {},
8011
8098
  ): Promise<any> {
@@ -8014,7 +8101,7 @@ export class MezonApi {
8014
8101
 
8015
8102
  const bodyWriter = tsproto.DeleteNotificationsRequest.encode(
8016
8103
  tsproto.DeleteNotificationsRequest.fromPartial({
8017
- ids: ids || [],
8104
+ ids: ids?.map((id) => BigInt(id)),
8018
8105
  category: category,
8019
8106
  }),
8020
8107
  );
@@ -8047,8 +8134,8 @@ export class MezonApi {
8047
8134
  listNotifications(
8048
8135
  bearerToken: string,
8049
8136
  limit?: number,
8050
- clanId?: bigint,
8051
- notificationId?: bigint,
8137
+ clanId?: string,
8138
+ notificationId?: string,
8052
8139
  category?: number,
8053
8140
  direction?: number,
8054
8141
  options: any = {},
@@ -8059,8 +8146,8 @@ export class MezonApi {
8059
8146
  const bodyWriter = tsproto.ListNotificationsRequest.encode(
8060
8147
  tsproto.ListNotificationsRequest.fromPartial({
8061
8148
  limit: limit,
8062
- clan_id: clanId,
8063
- notification_id: notificationId,
8149
+ clan_id: BigInt(clanId || "0"),
8150
+ notification_id: BigInt(notificationId || "0"),
8064
8151
  category: category,
8065
8152
  direction: direction,
8066
8153
  }),
@@ -8111,7 +8198,11 @@ export class MezonApi {
8111
8198
  const queryParams = new Map<string, any>();
8112
8199
 
8113
8200
  const bodyWriter = tsproto.SetNotificationRequest.encode(
8114
- tsproto.SetNotificationRequest.fromPartial(body),
8201
+ tsproto.SetNotificationRequest.fromPartial({
8202
+ ...body,
8203
+ clan_id: BigInt(body.clan_id || "0"),
8204
+ channel_category_id: BigInt(body.channel_category_id || "0"),
8205
+ }),
8115
8206
  );
8116
8207
  const encodedBody = bodyWriter.finish();
8117
8208
 
@@ -8153,7 +8244,11 @@ export class MezonApi {
8153
8244
  const queryParams = new Map<string, any>();
8154
8245
 
8155
8246
  const bodyWriter = tsproto.SetDefaultNotificationRequest.encode(
8156
- tsproto.SetDefaultNotificationRequest.fromPartial(body),
8247
+ tsproto.SetDefaultNotificationRequest.fromPartial({
8248
+ ...body,
8249
+ clan_id: BigInt(body.clan_id || "0"),
8250
+ category_id: BigInt(body.category_id || "0"),
8251
+ }),
8157
8252
  );
8158
8253
  const encodedBody = bodyWriter.finish();
8159
8254
 
@@ -8195,7 +8290,11 @@ export class MezonApi {
8195
8290
  const queryParams = new Map<string, any>();
8196
8291
 
8197
8292
  const bodyWriter = tsproto.SetNotificationRequest.encode(
8198
- tsproto.SetNotificationRequest.fromPartial(body),
8293
+ tsproto.SetNotificationRequest.fromPartial({
8294
+ ...body,
8295
+ clan_id: BigInt(body.clan_id || "0"),
8296
+ channel_category_id: BigInt(body.channel_category_id || "0"),
8297
+ }),
8199
8298
  );
8200
8299
  const encodedBody = bodyWriter.finish();
8201
8300
 
@@ -8225,7 +8324,7 @@ export class MezonApi {
8225
8324
  /** */
8226
8325
  deleteNotificationCategorySetting(
8227
8326
  bearerToken: string,
8228
- categoryId?: bigint,
8327
+ categoryId?: string,
8229
8328
  options: any = {},
8230
8329
  ): Promise<any> {
8231
8330
  const urlPath = "/mezon.api.Mezon/DeleteNotificationCategorySetting";
@@ -8233,7 +8332,7 @@ export class MezonApi {
8233
8332
 
8234
8333
  const bodyWriter = tsproto.DefaultNotificationCategory.encode(
8235
8334
  tsproto.DefaultNotificationCategory.fromPartial({
8236
- category_id: categoryId,
8335
+ category_id: BigInt(categoryId || "0"),
8237
8336
  }),
8238
8337
  );
8239
8338
  const encodedBody = bodyWriter.finish();
@@ -8264,14 +8363,16 @@ export class MezonApi {
8264
8363
  /** */
8265
8364
  deleteNotificationChannel(
8266
8365
  bearerToken: string,
8267
- channelId?: bigint,
8366
+ channelId?: string,
8268
8367
  options: any = {},
8269
8368
  ): Promise<any> {
8270
8369
  const urlPath = "/mezon.api.Mezon/DeleteNotificationChannel";
8271
8370
  const queryParams = new Map<string, any>();
8272
8371
 
8273
8372
  const bodyWriter = tsproto.NotificationChannel.encode(
8274
- tsproto.NotificationChannel.fromPartial({ channel_id: channelId }),
8373
+ tsproto.NotificationChannel.fromPartial({
8374
+ channel_id: BigInt(channelId || "0"),
8375
+ }),
8275
8376
  );
8276
8377
  const encodedBody = bodyWriter.finish();
8277
8378
 
@@ -8301,14 +8402,16 @@ export class MezonApi {
8301
8402
  /** */
8302
8403
  deleteNotiReactMessage(
8303
8404
  bearerToken: string,
8304
- channelId?: bigint,
8405
+ channelId?: string,
8305
8406
  options: any = {},
8306
8407
  ): Promise<any> {
8307
8408
  const urlPath = "/mezon.api.Mezon/DeleteNotiReactMessage";
8308
8409
  const queryParams = new Map<string, any>();
8309
8410
 
8310
8411
  const bodyWriter = tsproto.NotificationChannel.encode(
8311
- tsproto.NotificationChannel.fromPartial({ channel_id: channelId }),
8412
+ tsproto.NotificationChannel.fromPartial({
8413
+ channel_id: BigInt(channelId || "0"),
8414
+ }),
8312
8415
  );
8313
8416
  const encodedBody = bodyWriter.finish();
8314
8417
 
@@ -8350,7 +8453,10 @@ export class MezonApi {
8350
8453
  const queryParams = new Map<string, any>();
8351
8454
 
8352
8455
  const bodyWriter = tsproto.NotificationChannel.encode(
8353
- tsproto.NotificationChannel.fromPartial(body),
8456
+ tsproto.NotificationChannel.fromPartial({
8457
+ ...body,
8458
+ channel_id: BigInt(body.channel_id || "0"),
8459
+ }),
8354
8460
  );
8355
8461
  const encodedBody = bodyWriter.finish();
8356
8462
 
@@ -8392,7 +8498,19 @@ export class MezonApi {
8392
8498
  const queryParams = new Map<string, any>();
8393
8499
 
8394
8500
  const bodyWriter = tsproto.UpdateRoleChannelRequest.encode(
8395
- tsproto.UpdateRoleChannelRequest.fromPartial(body),
8501
+ tsproto.UpdateRoleChannelRequest.fromPartial({
8502
+ ...body,
8503
+ channel_id: BigInt(body.channel_id || "0"),
8504
+ role_id: BigInt(body.role_id || "0"),
8505
+ user_id: BigInt(body.user_id || "0"),
8506
+ max_permission_id: BigInt(body.max_permission_id || "0"),
8507
+ permission_update: body.permission_update?.map((p) => {
8508
+ return {
8509
+ ...p,
8510
+ permission_id: BigInt(p.permission_id || "0"),
8511
+ };
8512
+ }),
8513
+ }),
8396
8514
  );
8397
8515
  const encodedBody = bodyWriter.finish();
8398
8516
 
@@ -8458,9 +8576,9 @@ export class MezonApi {
8458
8576
  /** GetPermissionByRoleIdChannelId */
8459
8577
  getPermissionByRoleIdChannelId(
8460
8578
  bearerToken: string,
8461
- roleId?: bigint,
8462
- channelId?: bigint,
8463
- userId?: bigint,
8579
+ roleId?: string,
8580
+ channelId?: string,
8581
+ userId?: string,
8464
8582
  options: any = {},
8465
8583
  ): Promise<ApiPermissionRoleChannelListEventResponse> {
8466
8584
  const urlPath = "/mezon.api.Mezon/GetPermissionByRoleIdChannelId";
@@ -8468,9 +8586,9 @@ export class MezonApi {
8468
8586
 
8469
8587
  const bodyWriter = tsproto.PermissionRoleChannelListEventRequest.encode(
8470
8588
  tsproto.PermissionRoleChannelListEventRequest.fromPartial({
8471
- role_id: roleId,
8472
- channel_id: channelId,
8473
- user_id: userId,
8589
+ role_id: BigInt(roleId || "0"),
8590
+ channel_id: BigInt(channelId || "0"),
8591
+ user_id: BigInt(userId || "0"),
8474
8592
  }),
8475
8593
  );
8476
8594
  const encodedBody = bodyWriter.finish();
@@ -8507,10 +8625,10 @@ export class MezonApi {
8507
8625
  /** */
8508
8626
  deletePinMessage(
8509
8627
  bearerToken: string,
8510
- id?: bigint,
8511
- messageId?: bigint,
8512
- channelId?: bigint,
8513
- clanId?: bigint,
8628
+ id?: string,
8629
+ messageId?: string,
8630
+ channelId?: string,
8631
+ clanId?: string,
8514
8632
  options: any = {},
8515
8633
  ): Promise<any> {
8516
8634
  const urlPath = "/mezon.api.Mezon/DeletePinMessage";
@@ -8518,10 +8636,10 @@ export class MezonApi {
8518
8636
 
8519
8637
  const bodyWriter = tsproto.DeletePinMessage.encode(
8520
8638
  tsproto.DeletePinMessage.fromPartial({
8521
- id: id,
8522
- message_id: messageId,
8523
- channel_id: channelId,
8524
- clan_id: clanId,
8639
+ id: BigInt(id || "0"),
8640
+ message_id: BigInt(messageId || "0"),
8641
+ channel_id: BigInt(channelId || "0"),
8642
+ clan_id: BigInt(clanId || "0"),
8525
8643
  }),
8526
8644
  );
8527
8645
  const encodedBody = bodyWriter.finish();
@@ -8552,9 +8670,9 @@ export class MezonApi {
8552
8670
  /** */
8553
8671
  getPinMessagesList(
8554
8672
  bearerToken: string,
8555
- messageId?: bigint,
8556
- channelId?: bigint,
8557
- clanId?: bigint,
8673
+ messageId?: string,
8674
+ channelId?: string,
8675
+ clanId?: string,
8558
8676
  options: any = {},
8559
8677
  ): Promise<PinMessagesList> {
8560
8678
  const urlPath = "/mezon.api.Mezon/GetPinMessagesList";
@@ -8562,9 +8680,9 @@ export class MezonApi {
8562
8680
 
8563
8681
  const bodyWriter = tsproto.PinMessageRequest.encode(
8564
8682
  tsproto.PinMessageRequest.fromPartial({
8565
- message_id: messageId,
8566
- channel_id: channelId,
8567
- clan_id: clanId,
8683
+ message_id: BigInt(messageId || "0"),
8684
+ channel_id: BigInt(channelId || "0"),
8685
+ clan_id: BigInt(clanId || "0"),
8568
8686
  }),
8569
8687
  );
8570
8688
  const encodedBody = bodyWriter.finish();
@@ -8613,7 +8731,40 @@ export class MezonApi {
8613
8731
  const queryParams = new Map<string, any>();
8614
8732
 
8615
8733
  const bodyWriter = tsproto.Message2InboxRequest.encode(
8616
- tsproto.Message2InboxRequest.fromPartial(body),
8734
+ tsproto.Message2InboxRequest.fromPartial({
8735
+ ...body,
8736
+ clan_id: BigInt(body.clan_id || "0"),
8737
+ channel_id: BigInt(body.channel_id || "0"),
8738
+ message_id: BigInt(body.message_id || "0"),
8739
+ references: body.references?.map((r) => {
8740
+ return {
8741
+ ...r,
8742
+ message_id: BigInt(r.message_id || "0"),
8743
+ message_ref_id: BigInt(r.message_ref_id || "0"),
8744
+ message_sender_id: BigInt(r.message_sender_id || "0"),
8745
+ };
8746
+ }),
8747
+ mentions: body.mentions?.map((m) => {
8748
+ return {
8749
+ ...m,
8750
+ id: BigInt(m.id || "0"),
8751
+ user_id: BigInt(m.user_id || "0"),
8752
+ role_id: BigInt(m.role_id || "0"),
8753
+ };
8754
+ }),
8755
+ reactions: body.reactions?.map((r) => {
8756
+ return {
8757
+ ...r,
8758
+ id: BigInt(r.id || "0"),
8759
+ emoji_id: BigInt(r.emoji_id || "0"),
8760
+ sender_id: BigInt(r.sender_id || "0"),
8761
+ channel_id: BigInt(r.channel_id || "0"),
8762
+ emoji_recent_id: BigInt(r.emoji_recent_id || "0"),
8763
+ message_id: BigInt(r.message_id || "0"),
8764
+ topic_id: BigInt(r.topic_id || "0"),
8765
+ };
8766
+ }),
8767
+ }),
8617
8768
  );
8618
8769
  const encodedBody = bodyWriter.finish();
8619
8770
 
@@ -8661,7 +8812,12 @@ export class MezonApi {
8661
8812
  const queryParams = new Map<string, any>();
8662
8813
 
8663
8814
  const bodyWriter = tsproto.PinMessageRequest.encode(
8664
- tsproto.PinMessageRequest.fromPartial(body),
8815
+ tsproto.PinMessageRequest.fromPartial({
8816
+ ...body,
8817
+ clan_id: BigInt(body.clan_id || "0"),
8818
+ channel_id: BigInt(body.channel_id || "0"),
8819
+ message_id: BigInt(body.message_id || "0"),
8820
+ }),
8665
8821
  );
8666
8822
  const encodedBody = bodyWriter.finish();
8667
8823
 
@@ -8697,14 +8853,16 @@ export class MezonApi {
8697
8853
  /** get pubkey */
8698
8854
  getPubKeys(
8699
8855
  bearerToken: string,
8700
- userIds?: Array<bigint>,
8856
+ userIds?: Array<string>,
8701
8857
  options: any = {},
8702
8858
  ): Promise<ApiGetPubKeysResponse> {
8703
8859
  const urlPath = "/mezon.api.Mezon/GetPubKeys";
8704
8860
  const queryParams = new Map<string, any>();
8705
8861
 
8706
8862
  const bodyWriter = tsproto.GetPubKeysRequest.encode(
8707
- tsproto.GetPubKeysRequest.fromPartial({ user_ids: userIds || [] }),
8863
+ tsproto.GetPubKeysRequest.fromPartial({
8864
+ user_ids: userIds?.map((user) => BigInt(user)) || [],
8865
+ }),
8708
8866
  );
8709
8867
  const encodedBody = bodyWriter.finish();
8710
8868
 
@@ -8794,7 +8952,11 @@ export class MezonApi {
8794
8952
  const queryParams = new Map<string, any>();
8795
8953
 
8796
8954
  const bodyWriter = tsproto.AddRoleChannelDescRequest.encode(
8797
- tsproto.AddRoleChannelDescRequest.fromPartial(body),
8955
+ tsproto.AddRoleChannelDescRequest.fromPartial({
8956
+ ...body,
8957
+ channel_id: BigInt(body.channel_id || "0"),
8958
+ role_ids: body.role_ids?.map((r) => BigInt(r)),
8959
+ }),
8798
8960
  );
8799
8961
  const encodedBody = bodyWriter.finish();
8800
8962
 
@@ -8824,7 +8986,7 @@ export class MezonApi {
8824
8986
  /** update the category of a channel */
8825
8987
  changeChannelCategory(
8826
8988
  bearerToken: string,
8827
- newCategoryId: bigint,
8989
+ newCategoryId: string,
8828
8990
  body: MezonChangeChannelCategoryBody,
8829
8991
  options: any = {},
8830
8992
  ): Promise<any> {
@@ -8844,7 +9006,9 @@ export class MezonApi {
8844
9006
  const bodyWriter = tsproto.ChangeChannelCategoryRequest.encode(
8845
9007
  tsproto.ChangeChannelCategoryRequest.fromPartial({
8846
9008
  ...body,
8847
- new_category_id: newCategoryId,
9009
+ clan_id: BigInt(body.clan_id || "0"),
9010
+ channel_id: BigInt(body.channel_id || "0"),
9011
+ new_category_id: BigInt(newCategoryId),
8848
9012
  }),
8849
9013
  );
8850
9014
  const encodedBody = bodyWriter.finish();
@@ -8887,7 +9051,12 @@ export class MezonApi {
8887
9051
  const queryParams = new Map<string, any>();
8888
9052
 
8889
9053
  const bodyWriter = tsproto.DeleteRoleRequest.encode(
8890
- tsproto.DeleteRoleRequest.fromPartial(body),
9054
+ tsproto.DeleteRoleRequest.fromPartial({
9055
+ ...body,
9056
+ clan_id: BigInt(body.clan_id || "0"),
9057
+ channel_id: BigInt(body.channel_id || "0"),
9058
+ role_id: BigInt(body.role_id || "0"),
9059
+ }),
8891
9060
  );
8892
9061
  const encodedBody = bodyWriter.finish();
8893
9062
 
@@ -8917,7 +9086,7 @@ export class MezonApi {
8917
9086
  /** ListRoles */
8918
9087
  listRoles(
8919
9088
  bearerToken: string,
8920
- clanId?: bigint,
9089
+ clanId?: string,
8921
9090
  limit?: number,
8922
9091
  state?: number,
8923
9092
  cursor?: string,
@@ -8928,7 +9097,7 @@ export class MezonApi {
8928
9097
 
8929
9098
  const bodyWriter = tsproto.RoleListEventRequest.encode(
8930
9099
  tsproto.RoleListEventRequest.fromPartial({
8931
- clan_id: clanId,
9100
+ clan_id: BigInt(clanId || "0"),
8932
9101
  limit: limit,
8933
9102
  state: state,
8934
9103
  cursor: cursor,
@@ -8980,7 +9149,15 @@ export class MezonApi {
8980
9149
  const queryParams = new Map<string, any>();
8981
9150
 
8982
9151
  const bodyWriter = tsproto.CreateRoleRequest.encode(
8983
- tsproto.CreateRoleRequest.fromPartial(body),
9152
+ tsproto.CreateRoleRequest.fromPartial({
9153
+ ...body,
9154
+ clan_id: BigInt(body.clan_id || "0"),
9155
+ max_permission_id: BigInt(body.max_permission_id || "0"),
9156
+ add_user_ids: body.add_user_ids?.map((u) => BigInt(u)),
9157
+ active_permission_ids: body.active_permission_ids?.map((p) =>
9158
+ BigInt(p),
9159
+ ),
9160
+ }),
8984
9161
  );
8985
9162
  const encodedBody = bodyWriter.finish();
8986
9163
 
@@ -9016,7 +9193,7 @@ export class MezonApi {
9016
9193
  /** Update a role when Delete a role by ID. */
9017
9194
  updateRoleDelete(
9018
9195
  bearerToken: string,
9019
- roleId: bigint,
9196
+ roleId: string,
9020
9197
  body: MezonUpdateRoleDeleteBody,
9021
9198
  options: any = {},
9022
9199
  ): Promise<any> {
@@ -9034,7 +9211,11 @@ export class MezonApi {
9034
9211
  const queryParams = new Map<string, any>();
9035
9212
 
9036
9213
  const bodyWriter = tsproto.DeleteRoleRequest.encode(
9037
- tsproto.DeleteRoleRequest.fromPartial({ ...body, role_id: roleId }),
9214
+ tsproto.DeleteRoleRequest.fromPartial({
9215
+ ...body,
9216
+ role_id: BigInt(roleId),
9217
+ clan_id: BigInt(body.clan_id || "0"),
9218
+ }),
9038
9219
  );
9039
9220
  const encodedBody = bodyWriter.finish();
9040
9221
 
@@ -9064,9 +9245,9 @@ export class MezonApi {
9064
9245
  /** Delete a role by ID. */
9065
9246
  deleteRole(
9066
9247
  bearerToken: string,
9067
- roleId: bigint,
9068
- channelId?: bigint,
9069
- clanId?: bigint,
9248
+ roleId: string,
9249
+ channelId?: string,
9250
+ clanId?: string,
9070
9251
  roleLabel?: string,
9071
9252
  options: any = {},
9072
9253
  ): Promise<any> {
@@ -9080,9 +9261,9 @@ export class MezonApi {
9080
9261
 
9081
9262
  const bodyWriter = tsproto.DeleteRoleRequest.encode(
9082
9263
  tsproto.DeleteRoleRequest.fromPartial({
9083
- role_id: roleId,
9084
- channel_id: channelId,
9085
- clan_id: clanId,
9264
+ role_id: BigInt(roleId),
9265
+ channel_id: BigInt(channelId || "0"),
9266
+ clan_id: BigInt(clanId || "0"),
9086
9267
  role_label: roleLabel,
9087
9268
  }),
9088
9269
  );
@@ -9114,7 +9295,7 @@ export class MezonApi {
9114
9295
  /** Update fields in a given role. */
9115
9296
  updateRole(
9116
9297
  bearerToken: string,
9117
- roleId: bigint,
9298
+ roleId: string,
9118
9299
  body: MezonUpdateRoleBody,
9119
9300
  options: any = {},
9120
9301
  ): Promise<any> {
@@ -9132,7 +9313,20 @@ export class MezonApi {
9132
9313
  const queryParams = new Map<string, any>();
9133
9314
 
9134
9315
  const bodyWriter = tsproto.UpdateRoleRequest.encode(
9135
- tsproto.UpdateRoleRequest.fromPartial({ ...body, role_id: roleId }),
9316
+ tsproto.UpdateRoleRequest.fromPartial({
9317
+ ...body,
9318
+ role_id: BigInt(roleId),
9319
+ clan_id: BigInt(body.clan_id || "0"),
9320
+ max_permission_id: BigInt(body.max_permission_id || "0"),
9321
+ add_user_ids: body.add_user_ids?.map((u) => BigInt(u)),
9322
+ active_permission_ids: body.active_permission_ids?.map((p) =>
9323
+ BigInt(p),
9324
+ ),
9325
+ remove_permission_ids: body.remove_permission_ids?.map((p) =>
9326
+ BigInt(p),
9327
+ ),
9328
+ remove_user_ids: body.remove_permission_ids?.map((p) => BigInt(p)),
9329
+ }),
9136
9330
  );
9137
9331
  const encodedBody = bodyWriter.finish();
9138
9332
 
@@ -9162,7 +9356,7 @@ export class MezonApi {
9162
9356
  /** List role permissions */
9163
9357
  listRolePermissions(
9164
9358
  bearerToken: string,
9165
- roleId: bigint,
9359
+ roleId: string,
9166
9360
  options: any = {},
9167
9361
  ): Promise<ApiPermissionList> {
9168
9362
  if (roleId === null || roleId === undefined) {
@@ -9174,7 +9368,7 @@ export class MezonApi {
9174
9368
  const queryParams = new Map<string, any>();
9175
9369
 
9176
9370
  const bodyWriter = tsproto.ListPermissionsRequest.encode(
9177
- tsproto.ListPermissionsRequest.fromPartial({ role_id: roleId }),
9371
+ tsproto.ListPermissionsRequest.fromPartial({ role_id: BigInt(roleId) }),
9178
9372
  );
9179
9373
  const encodedBody = bodyWriter.finish();
9180
9374
 
@@ -9210,7 +9404,7 @@ export class MezonApi {
9210
9404
  /** List role permissions */
9211
9405
  listRoleUsers(
9212
9406
  bearerToken: string,
9213
- roleId: bigint,
9407
+ roleId: string,
9214
9408
  limit?: number,
9215
9409
  cursor?: string,
9216
9410
  options: any = {},
@@ -9225,7 +9419,7 @@ export class MezonApi {
9225
9419
 
9226
9420
  const bodyWriter = tsproto.ListRoleUsersRequest.encode(
9227
9421
  tsproto.ListRoleUsersRequest.fromPartial({
9228
- role_id: roleId,
9422
+ role_id: BigInt(roleId),
9229
9423
  limit: limit,
9230
9424
  cursor: cursor,
9231
9425
  }),
@@ -9264,8 +9458,8 @@ export class MezonApi {
9264
9458
  /** */
9265
9459
  getRoleOfUserInTheClan(
9266
9460
  bearerToken: string,
9267
- clanId: bigint,
9268
- channelId?: bigint,
9461
+ clanId: string,
9462
+ channelId?: string,
9269
9463
  options: any = {},
9270
9464
  ): Promise<ApiRoleList> {
9271
9465
  if (clanId === null || clanId === undefined) {
@@ -9278,8 +9472,8 @@ export class MezonApi {
9278
9472
 
9279
9473
  const bodyWriter = tsproto.ListPermissionOfUsersRequest.encode(
9280
9474
  tsproto.ListPermissionOfUsersRequest.fromPartial({
9281
- clan_id: clanId,
9282
- channel_id: channelId,
9475
+ clan_id: BigInt(clanId || "0"),
9476
+ channel_id: BigInt(channelId || "0"),
9283
9477
  }),
9284
9478
  );
9285
9479
  const encodedBody = bodyWriter.finish();
@@ -9316,8 +9510,8 @@ export class MezonApi {
9316
9510
  /** */
9317
9511
  searchThread(
9318
9512
  bearerToken: string,
9319
- clanId?: bigint,
9320
- channelId?: bigint,
9513
+ clanId?: string,
9514
+ channelId?: string,
9321
9515
  label?: string,
9322
9516
  options: any = {},
9323
9517
  ): Promise<ApiChannelDescList> {
@@ -9326,8 +9520,8 @@ export class MezonApi {
9326
9520
 
9327
9521
  const bodyWriter = tsproto.SearchThreadRequest.encode(
9328
9522
  tsproto.SearchThreadRequest.fromPartial({
9329
- clan_id: clanId,
9330
- channel_id: channelId,
9523
+ clan_id: BigInt(clanId || "0"),
9524
+ channel_id: BigInt(channelId || "0"),
9331
9525
  label: label,
9332
9526
  }),
9333
9527
  );
@@ -9362,51 +9556,6 @@ export class MezonApi {
9362
9556
  ]);
9363
9557
  }
9364
9558
 
9365
- /** UpdateWallets */
9366
- sendToken(
9367
- bearerToken: string,
9368
- body: ApiTokenSentEvent,
9369
- options: any = {},
9370
- ): Promise<any> {
9371
- if (body === null || body === undefined) {
9372
- throw new Error(
9373
- "'body' is a required parameter but is null or undefined.",
9374
- );
9375
- }
9376
- const urlPath = "/mezon.api.Mezon/SendToken";
9377
- const queryParams = new Map<string, any>();
9378
-
9379
- const bodyWriter = tsproto.TokenSentEvent.encode(
9380
- tsproto.TokenSentEvent.fromPartial(body),
9381
- );
9382
- const encodedBody = bodyWriter.finish();
9383
-
9384
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
9385
- const fetchOptions = buildFetchOptions("POST", options, "");
9386
- fetchOptions.body = encodedBody;
9387
- if (bearerToken) {
9388
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
9389
- }
9390
-
9391
- return Promise.race([
9392
- fetch(fullUrl, fetchOptions).then(async (response) => {
9393
- if (response.status == 204) {
9394
- return {};
9395
- } else if (response.status >= 200 && response.status < 300) {
9396
- return {};
9397
- } else {
9398
- throw response;
9399
- }
9400
- }),
9401
- new Promise<never>((_, reject) =>
9402
- setTimeout(
9403
- () => reject(new Error("Request timed out.")),
9404
- this.timeoutMs,
9405
- ),
9406
- ),
9407
- ]);
9408
- }
9409
-
9410
9559
  /** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
9411
9560
  sessionLogout(
9412
9561
  bearerToken: string,
@@ -9464,7 +9613,11 @@ export class MezonApi {
9464
9613
  const queryParams = new Map<string, any>();
9465
9614
 
9466
9615
  const bodyWriter = tsproto.ClanStickerAddRequest.encode(
9467
- tsproto.ClanStickerAddRequest.fromPartial(body),
9616
+ tsproto.ClanStickerAddRequest.fromPartial({
9617
+ ...body,
9618
+ id: BigInt(body.id || "0"),
9619
+ clan_id: BigInt(body.clan_id || "0"),
9620
+ }),
9468
9621
  );
9469
9622
  const encodedBody = bodyWriter.finish();
9470
9623
 
@@ -9497,8 +9650,8 @@ export class MezonApi {
9497
9650
  /** Delete a sticker by ID */
9498
9651
  deleteClanStickerById(
9499
9652
  bearerToken: string,
9500
- id: bigint,
9501
- clanId?: bigint,
9653
+ id: string,
9654
+ clanId?: string,
9502
9655
  stickerLabel?: string,
9503
9656
  options: any = {},
9504
9657
  ): Promise<any> {
@@ -9510,8 +9663,8 @@ export class MezonApi {
9510
9663
 
9511
9664
  const bodyWriter = tsproto.ClanStickerDeleteRequest.encode(
9512
9665
  tsproto.ClanStickerDeleteRequest.fromPartial({
9513
- id: id,
9514
- clan_id: clanId,
9666
+ id: BigInt(id),
9667
+ clan_id: BigInt(clanId || "0"),
9515
9668
  sticker_label: stickerLabel,
9516
9669
  }),
9517
9670
  );
@@ -9546,7 +9699,7 @@ export class MezonApi {
9546
9699
  /** Update a sticker by ID */
9547
9700
  updateClanStickerById(
9548
9701
  bearerToken: string,
9549
- id: bigint,
9702
+ id: string,
9550
9703
  body: MezonUpdateClanStickerByIdBody,
9551
9704
  options: any = {},
9552
9705
  ): Promise<any> {
@@ -9562,7 +9715,11 @@ export class MezonApi {
9562
9715
  const queryParams = new Map<string, any>();
9563
9716
 
9564
9717
  const bodyWriter = tsproto.ClanStickerUpdateByIdRequest.encode(
9565
- tsproto.ClanStickerUpdateByIdRequest.fromPartial({ ...body, id: id }),
9718
+ tsproto.ClanStickerUpdateByIdRequest.fromPartial({
9719
+ ...body,
9720
+ id: BigInt(id),
9721
+ clan_id: BigInt(body.clan_id || "0"),
9722
+ }),
9566
9723
  );
9567
9724
  const encodedBody = bodyWriter.finish();
9568
9725
 
@@ -9643,7 +9800,11 @@ export class MezonApi {
9643
9800
  const queryParams = new Map<string, any>();
9644
9801
 
9645
9802
  const bodyWriter = tsproto.RegisterStreamingChannelRequest.encode(
9646
- tsproto.RegisterStreamingChannelRequest.fromPartial(body),
9803
+ tsproto.RegisterStreamingChannelRequest.fromPartial({
9804
+ ...body,
9805
+ clan_id: BigInt(body.clan_id || "0"),
9806
+ channel_id: BigInt(body.channel_id || "0"),
9807
+ }),
9647
9808
  );
9648
9809
  const encodedBody = bodyWriter.finish();
9649
9810
 
@@ -9679,8 +9840,8 @@ export class MezonApi {
9679
9840
  /** List all users that are part of a channel. */
9680
9841
  listStreamingChannelUsers(
9681
9842
  bearerToken: string,
9682
- clanId?: bigint,
9683
- channelId?: bigint,
9843
+ clanId?: string,
9844
+ channelId?: string,
9684
9845
  channelType?: number,
9685
9846
  limit?: number,
9686
9847
  state?: number,
@@ -9692,8 +9853,8 @@ export class MezonApi {
9692
9853
 
9693
9854
  const bodyWriter = tsproto.ListChannelUsersRequest.encode(
9694
9855
  tsproto.ListChannelUsersRequest.fromPartial({
9695
- clan_id: clanId,
9696
- channel_id: channelId,
9856
+ clan_id: BigInt(clanId || "0"),
9857
+ channel_id: BigInt(channelId || "0"),
9697
9858
  channel_type: channelType,
9698
9859
  limit: limit,
9699
9860
  state: state,
@@ -9782,7 +9943,11 @@ export class MezonApi {
9782
9943
  const queryParams = new Map<string, any>();
9783
9944
 
9784
9945
  const bodyWriter = tsproto.SystemMessageRequest.encode(
9785
- tsproto.SystemMessageRequest.fromPartial(body),
9946
+ tsproto.SystemMessageRequest.fromPartial({
9947
+ ...body,
9948
+ clan_id: BigInt(body.clan_id || "0"),
9949
+ channel_id: BigInt(body.channel_id || "0"),
9950
+ }),
9786
9951
  );
9787
9952
  const encodedBody = bodyWriter.finish();
9788
9953
 
@@ -9815,7 +9980,7 @@ export class MezonApi {
9815
9980
  /** List Sd Topic */
9816
9981
  listSdTopic(
9817
9982
  bearerToken: string,
9818
- clanId?: bigint,
9983
+ clanId?: string,
9819
9984
  limit?: number,
9820
9985
  options: any = {},
9821
9986
  ): Promise<ApiSdTopicList> {
@@ -9824,7 +9989,7 @@ export class MezonApi {
9824
9989
 
9825
9990
  const bodyWriter = tsproto.ListSdTopicRequest.encode(
9826
9991
  tsproto.ListSdTopicRequest.fromPartial({
9827
- clan_id: clanId,
9992
+ clan_id: BigInt(clanId || "0"),
9828
9993
  limit: limit,
9829
9994
  }),
9830
9995
  );
@@ -9874,7 +10039,12 @@ export class MezonApi {
9874
10039
  const queryParams = new Map<string, any>();
9875
10040
 
9876
10041
  const bodyWriter = tsproto.SdTopicRequest.encode(
9877
- tsproto.SdTopicRequest.fromPartial(body),
10042
+ tsproto.SdTopicRequest.fromPartial({
10043
+ ...body,
10044
+ clan_id: BigInt(body.clan_id || "0"),
10045
+ channel_id: BigInt(body.channel_id || "0"),
10046
+ message_id: BigInt(body.message_id || "0"),
10047
+ }),
9878
10048
  );
9879
10049
  const encodedBody = bodyWriter.finish();
9880
10050
 
@@ -9910,7 +10080,7 @@ export class MezonApi {
9910
10080
  /** Delete a specific system messages. */
9911
10081
  deleteSystemMessage(
9912
10082
  bearerToken: string,
9913
- clanId: bigint,
10083
+ clanId: string,
9914
10084
  options: any = {},
9915
10085
  ): Promise<any> {
9916
10086
  if (clanId === null || clanId === undefined) {
@@ -9922,7 +10092,9 @@ export class MezonApi {
9922
10092
  const queryParams = new Map<string, any>();
9923
10093
 
9924
10094
  const bodyWriter = tsproto.DeleteSystemMessage.encode(
9925
- tsproto.DeleteSystemMessage.fromPartial({ clan_id: clanId }),
10095
+ tsproto.DeleteSystemMessage.fromPartial({
10096
+ clan_id: BigInt(clanId || "0"),
10097
+ }),
9926
10098
  );
9927
10099
  const encodedBody = bodyWriter.finish();
9928
10100
 
@@ -9955,7 +10127,7 @@ export class MezonApi {
9955
10127
  /** Get details of a specific system messages. */
9956
10128
  getSystemMessageByClanId(
9957
10129
  bearerToken: string,
9958
- clanId: bigint,
10130
+ clanId: string,
9959
10131
  options: any = {},
9960
10132
  ): Promise<ApiSystemMessage> {
9961
10133
  if (clanId === null || clanId === undefined) {
@@ -9967,7 +10139,9 @@ export class MezonApi {
9967
10139
  const queryParams = new Map<string, any>();
9968
10140
 
9969
10141
  const bodyWriter = tsproto.GetSystemMessage.encode(
9970
- tsproto.GetSystemMessage.fromPartial({ clan_id: clanId }),
10142
+ tsproto.GetSystemMessage.fromPartial({
10143
+ clan_id: BigInt(clanId || "0"),
10144
+ }),
9971
10145
  );
9972
10146
  const encodedBody = bodyWriter.finish();
9973
10147
 
@@ -10003,7 +10177,7 @@ export class MezonApi {
10003
10177
  /** Update a system messages. */
10004
10178
  updateSystemMessage(
10005
10179
  bearerToken: string,
10006
- clanId: bigint,
10180
+ clanId: string,
10007
10181
  body: MezonUpdateSystemMessageBody,
10008
10182
  options: any = {},
10009
10183
  ): Promise<any> {
@@ -10021,7 +10195,11 @@ export class MezonApi {
10021
10195
  const queryParams = new Map<string, any>();
10022
10196
 
10023
10197
  const bodyWriter = tsproto.SystemMessageRequest.encode(
10024
- tsproto.SystemMessageRequest.fromPartial({ ...body, clan_id: clanId }),
10198
+ tsproto.SystemMessageRequest.fromPartial({
10199
+ ...body,
10200
+ clan_id: BigInt(clanId || "0"),
10201
+ channel_id: BigInt(body.channel_id || "0"),
10202
+ }),
10025
10203
  );
10026
10204
  const encodedBody = bodyWriter.finish();
10027
10205
 
@@ -10054,11 +10232,11 @@ export class MezonApi {
10054
10232
  /** List user channels */
10055
10233
  listThreadDescs(
10056
10234
  bearerToken: string,
10057
- channelId: bigint,
10235
+ channelId: string,
10058
10236
  limit?: number,
10059
10237
  state?: number,
10060
- clanId?: bigint,
10061
- threadId?: bigint,
10238
+ clanId?: string,
10239
+ threadId?: string,
10062
10240
  page?: number,
10063
10241
  options: any = {},
10064
10242
  ): Promise<ApiChannelDescList> {
@@ -10072,11 +10250,11 @@ export class MezonApi {
10072
10250
 
10073
10251
  const bodyWriter = tsproto.ListThreadRequest.encode(
10074
10252
  tsproto.ListThreadRequest.fromPartial({
10075
- channel_id: channelId,
10253
+ channel_id: BigInt(channelId || "0"),
10076
10254
  limit: limit,
10077
10255
  state: state,
10078
- clan_id: clanId,
10079
- thread_id: threadId,
10256
+ clan_id: BigInt(clanId || "0"),
10257
+ thread_id: BigInt(threadId || "0"),
10080
10258
  page: page,
10081
10259
  }),
10082
10260
  );
@@ -10113,7 +10291,7 @@ export class MezonApi {
10113
10291
  /** Update fields in a given category. */
10114
10292
  updateCategory(
10115
10293
  bearerToken: string,
10116
- clanId: bigint,
10294
+ clanId: string,
10117
10295
  body: MezonUpdateCategoryBody,
10118
10296
  options: any = {},
10119
10297
  ): Promise<any> {
@@ -10133,7 +10311,8 @@ export class MezonApi {
10133
10311
  const bodyWriter = tsproto.UpdateCategoryDescRequest.encode(
10134
10312
  tsproto.UpdateCategoryDescRequest.fromPartial({
10135
10313
  ...body,
10136
- clan_id: clanId,
10314
+ clan_id: BigInt(clanId || "0"),
10315
+ category_id: BigInt(body.category_id || "0"),
10137
10316
  }),
10138
10317
  );
10139
10318
  const encodedBody = bodyWriter.finish();
@@ -10179,7 +10358,13 @@ export class MezonApi {
10179
10358
  const queryParams = new Map<string, any>();
10180
10359
 
10181
10360
  const bodyWriter = tsproto.ChangeChannelPrivateRequest.encode(
10182
- tsproto.ChangeChannelPrivateRequest.fromPartial(body),
10361
+ tsproto.ChangeChannelPrivateRequest.fromPartial({
10362
+ ...body,
10363
+ clan_id: BigInt(body.clan_id || "0"),
10364
+ channel_id: BigInt(body.channel_id || "0"),
10365
+ user_ids: body.user_ids?.map((u) => BigInt(u)),
10366
+ role_ids: body.role_ids?.map((r) => BigInt(r)),
10367
+ }),
10183
10368
  );
10184
10369
  const encodedBody = bodyWriter.finish();
10185
10370
 
@@ -10212,7 +10397,7 @@ export class MezonApi {
10212
10397
  /** */
10213
10398
  updateUserProfileByClan(
10214
10399
  bearerToken: string,
10215
- clanId: bigint,
10400
+ clanId: string,
10216
10401
  body: MezonUpdateUserProfileByClanBody,
10217
10402
  options: any = {},
10218
10403
  ): Promise<any> {
@@ -10232,7 +10417,7 @@ export class MezonApi {
10232
10417
  const bodyWriter = tsproto.UpdateClanProfileRequest.encode(
10233
10418
  tsproto.UpdateClanProfileRequest.fromPartial({
10234
10419
  ...body,
10235
- clan_id: clanId,
10420
+ clan_id: BigInt(clanId || "0"),
10236
10421
  }),
10237
10422
  );
10238
10423
  const encodedBody = bodyWriter.finish();
@@ -10440,8 +10625,8 @@ export class MezonApi {
10440
10625
  /** ListUserPermissionInChannel */
10441
10626
  listUserPermissionInChannel(
10442
10627
  bearerToken: string,
10443
- clanId?: bigint,
10444
- channelId?: bigint,
10628
+ clanId?: string,
10629
+ channelId?: string,
10445
10630
  options: any = {},
10446
10631
  ): Promise<ApiUserPermissionInChannelListResponse> {
10447
10632
  const urlPath = "/mezon.api.Mezon/ListUserPermissionInChannel";
@@ -10449,8 +10634,8 @@ export class MezonApi {
10449
10634
 
10450
10635
  const bodyWriter = tsproto.UserPermissionInChannelListRequest.encode(
10451
10636
  tsproto.UserPermissionInChannelListRequest.fromPartial({
10452
- clan_id: clanId,
10453
- channel_id: channelId,
10637
+ clan_id: BigInt(clanId || "0"),
10638
+ channel_id: BigInt(channelId || "0"),
10454
10639
  }),
10455
10640
  );
10456
10641
  const encodedBody = bodyWriter.finish();
@@ -10577,7 +10762,11 @@ export class MezonApi {
10577
10762
  const queryParams = new Map<string, any>();
10578
10763
 
10579
10764
  const bodyWriter = tsproto.WebhookCreateRequest.encode(
10580
- tsproto.WebhookCreateRequest.fromPartial(body),
10765
+ tsproto.WebhookCreateRequest.fromPartial({
10766
+ ...body,
10767
+ clan_id: BigInt(body.clan_id || "0"),
10768
+ channel_id: BigInt(body.channel_id || "0"),
10769
+ }),
10581
10770
  );
10582
10771
  const encodedBody = bodyWriter.finish();
10583
10772
 
@@ -10611,7 +10800,7 @@ export class MezonApi {
10611
10800
  /** update webhook name by id */
10612
10801
  updateWebhookById(
10613
10802
  bearerToken: string,
10614
- id: bigint,
10803
+ id: string,
10615
10804
  body: MezonUpdateWebhookByIdBody,
10616
10805
  options: any = {},
10617
10806
  ): Promise<any> {
@@ -10629,7 +10818,10 @@ export class MezonApi {
10629
10818
  const bodyWriter = tsproto.WebhookUpdateRequestById.encode(
10630
10819
  tsproto.WebhookUpdateRequestById.fromPartial({
10631
10820
  ...body,
10632
- id: id,
10821
+ id: BigInt(id),
10822
+ channel_id: BigInt(body.channel_id || "0"),
10823
+ channel_id_update: BigInt(body.channel_id_update || "0"),
10824
+ clan_id: BigInt(body.clan_id || "0"),
10633
10825
  }),
10634
10826
  );
10635
10827
  const encodedBody = bodyWriter.finish();
@@ -10660,8 +10852,8 @@ export class MezonApi {
10660
10852
  /** list webhook belong to the channel */
10661
10853
  listWebhookByChannelId(
10662
10854
  bearerToken: string,
10663
- channelId: bigint,
10664
- clanId?: bigint,
10855
+ channelId: string,
10856
+ clanId?: string,
10665
10857
  options: any = {},
10666
10858
  ): Promise<ApiWebhookListResponse> {
10667
10859
  if (channelId === null || channelId === undefined) {
@@ -10674,8 +10866,8 @@ export class MezonApi {
10674
10866
 
10675
10867
  const bodyWriter = tsproto.WebhookListRequest.encode(
10676
10868
  tsproto.WebhookListRequest.fromPartial({
10677
- channel_id: channelId,
10678
- clan_id: clanId,
10869
+ channel_id: BigInt(channelId || "0"),
10870
+ clan_id: BigInt(clanId || "0"),
10679
10871
  }),
10680
10872
  );
10681
10873
  const encodedBody = bodyWriter.finish();
@@ -10712,7 +10904,7 @@ export class MezonApi {
10712
10904
  /** disabled webhook */
10713
10905
  deleteWebhookById(
10714
10906
  bearerToken: string,
10715
- id: bigint,
10907
+ id: string,
10716
10908
  body: MezonDeleteWebhookByIdBody,
10717
10909
  options: any = {},
10718
10910
  ): Promise<any> {
@@ -10730,7 +10922,9 @@ export class MezonApi {
10730
10922
  const bodyWriter = tsproto.WebhookDeleteRequestById.encode(
10731
10923
  tsproto.WebhookDeleteRequestById.fromPartial({
10732
10924
  ...body,
10733
- id: id,
10925
+ id: BigInt(id),
10926
+ clan_id: BigInt(body.clan_id || "0"),
10927
+ channel_id: BigInt(body.channel_id || "0"),
10734
10928
  }),
10735
10929
  );
10736
10930
  const encodedBody = bodyWriter.finish();
@@ -10797,7 +10991,12 @@ export class MezonApi {
10797
10991
  const queryParams = new Map<string, any>();
10798
10992
 
10799
10993
  const bodyWriter = tsproto.EditChannelCanvasRequest.encode(
10800
- tsproto.EditChannelCanvasRequest.fromPartial(body),
10994
+ tsproto.EditChannelCanvasRequest.fromPartial({
10995
+ ...body,
10996
+ clan_id: BigInt(body.clan_id || "0"),
10997
+ channel_id: BigInt(body.channel_id || "0"),
10998
+ id: BigInt(body.id || "0"),
10999
+ }),
10801
11000
  );
10802
11001
  const encodedBody = bodyWriter.finish();
10803
11002
 
@@ -10833,9 +11032,9 @@ export class MezonApi {
10833
11032
  /** */
10834
11033
  getChannelCanvasDetail(
10835
11034
  bearerToken: string,
10836
- id: bigint,
10837
- clanId?: bigint,
10838
- channelId?: bigint,
11035
+ id: string,
11036
+ clanId?: string,
11037
+ channelId?: string,
10839
11038
  options: any = {},
10840
11039
  ): Promise<ApiChannelCanvasDetailResponse> {
10841
11040
  if (id === null || id === undefined) {
@@ -10846,9 +11045,9 @@ export class MezonApi {
10846
11045
 
10847
11046
  const bodyWriter = tsproto.ChannelCanvasDetailRequest.encode(
10848
11047
  tsproto.ChannelCanvasDetailRequest.fromPartial({
10849
- id: id,
10850
- clan_id: clanId,
10851
- channel_id: channelId,
11048
+ id: BigInt(id),
11049
+ clan_id: BigInt(clanId || "0"),
11050
+ channel_id: BigInt(channelId || "0"),
10852
11051
  }),
10853
11052
  );
10854
11053
  const encodedBody = bodyWriter.finish();
@@ -10885,9 +11084,9 @@ export class MezonApi {
10885
11084
  /** */
10886
11085
  deleteChannelCanvas(
10887
11086
  bearerToken: string,
10888
- canvasId: bigint,
10889
- clanId?: bigint,
10890
- channelId?: bigint,
11087
+ canvasId: string,
11088
+ clanId?: string,
11089
+ channelId?: string,
10891
11090
  options: any = {},
10892
11091
  ): Promise<any> {
10893
11092
  if (canvasId === null || canvasId === undefined) {
@@ -10900,9 +11099,9 @@ export class MezonApi {
10900
11099
 
10901
11100
  const bodyWriter = tsproto.DeleteChannelCanvasRequest.encode(
10902
11101
  tsproto.DeleteChannelCanvasRequest.fromPartial({
10903
- canvas_id: canvasId,
10904
- clan_id: clanId,
10905
- channel_id: channelId,
11102
+ canvas_id: BigInt(canvasId),
11103
+ clan_id: BigInt(clanId || "0"),
11104
+ channel_id: BigInt(channelId || "0"),
10906
11105
  }),
10907
11106
  );
10908
11107
  const encodedBody = bodyWriter.finish();
@@ -10933,7 +11132,7 @@ export class MezonApi {
10933
11132
  /** list onboarding. */
10934
11133
  listOnboarding(
10935
11134
  bearerToken: string,
10936
- clanId?: bigint,
11135
+ clanId?: string,
10937
11136
  guideType?: number,
10938
11137
  limit?: number,
10939
11138
  page?: number,
@@ -10944,7 +11143,7 @@ export class MezonApi {
10944
11143
 
10945
11144
  const bodyWriter = tsproto.ListOnboardingRequest.encode(
10946
11145
  tsproto.ListOnboardingRequest.fromPartial({
10947
- clan_id: clanId,
11146
+ clan_id: BigInt(clanId || "0"),
10948
11147
  guide_type: guideType,
10949
11148
  limit: limit,
10950
11149
  page: page,
@@ -10996,7 +11195,16 @@ export class MezonApi {
10996
11195
  const queryParams = new Map<string, any>();
10997
11196
 
10998
11197
  const bodyWriter = tsproto.CreateOnboardingRequest.encode(
10999
- tsproto.CreateOnboardingRequest.fromPartial(body),
11198
+ tsproto.CreateOnboardingRequest.fromPartial({
11199
+ ...body,
11200
+ clan_id: BigInt(body.clan_id || "0"),
11201
+ contents: body.contents?.map((c) => {
11202
+ return {
11203
+ ...c,
11204
+ channel_id: BigInt(c.channel_id || "0"),
11205
+ };
11206
+ }),
11207
+ }),
11000
11208
  );
11001
11209
  const encodedBody = bodyWriter.finish();
11002
11210
 
@@ -11032,8 +11240,8 @@ export class MezonApi {
11032
11240
  /** delete onboarding. */
11033
11241
  deleteOnboarding(
11034
11242
  bearerToken: string,
11035
- id: bigint,
11036
- clanId?: bigint,
11243
+ id: string,
11244
+ clanId?: string,
11037
11245
  options: any = {},
11038
11246
  ): Promise<any> {
11039
11247
  if (id === null || id === undefined) {
@@ -11044,8 +11252,8 @@ export class MezonApi {
11044
11252
 
11045
11253
  const bodyWriter = tsproto.OnboardingRequest.encode(
11046
11254
  tsproto.OnboardingRequest.fromPartial({
11047
- id: id,
11048
- clan_id: clanId,
11255
+ id: BigInt(id),
11256
+ clan_id: BigInt(clanId || "0"),
11049
11257
  }),
11050
11258
  );
11051
11259
  const encodedBody = bodyWriter.finish();
@@ -11076,8 +11284,8 @@ export class MezonApi {
11076
11284
  /** get detailed onboarding information. */
11077
11285
  getOnboardingDetail(
11078
11286
  bearerToken: string,
11079
- id: bigint,
11080
- clanId?: bigint,
11287
+ id: string,
11288
+ clanId?: string,
11081
11289
  options: any = {},
11082
11290
  ): Promise<ApiOnboardingItem> {
11083
11291
  if (id === null || id === undefined) {
@@ -11088,8 +11296,8 @@ export class MezonApi {
11088
11296
 
11089
11297
  const bodyWriter = tsproto.OnboardingRequest.encode(
11090
11298
  tsproto.OnboardingRequest.fromPartial({
11091
- id: id,
11092
- clan_id: clanId,
11299
+ id: BigInt(id),
11300
+ clan_id: BigInt(clanId || "0"),
11093
11301
  }),
11094
11302
  );
11095
11303
  const encodedBody = bodyWriter.finish();
@@ -11126,7 +11334,7 @@ export class MezonApi {
11126
11334
  /** update onboarding. */
11127
11335
  updateOnboarding(
11128
11336
  bearerToken: string,
11129
- id: bigint,
11337
+ id: string,
11130
11338
  body: MezonUpdateOnboardingBody,
11131
11339
  options: any = {},
11132
11340
  ): Promise<any> {
@@ -11144,7 +11352,9 @@ export class MezonApi {
11144
11352
  const bodyWriter = tsproto.UpdateOnboardingRequest.encode(
11145
11353
  tsproto.UpdateOnboardingRequest.fromPartial({
11146
11354
  ...body,
11147
- id: id,
11355
+ id: BigInt(id),
11356
+ clan_id: BigInt(body.clan_id || "0"),
11357
+ channel_id: BigInt(body.channel_id || "0"),
11148
11358
  }),
11149
11359
  );
11150
11360
  const encodedBody = bodyWriter.finish();
@@ -11187,7 +11397,10 @@ export class MezonApi {
11187
11397
  const queryParams = new Map<string, any>();
11188
11398
 
11189
11399
  const bodyWriter = tsproto.GenerateClanWebhookRequest.encode(
11190
- tsproto.GenerateClanWebhookRequest.fromPartial(body),
11400
+ tsproto.GenerateClanWebhookRequest.fromPartial({
11401
+ ...body,
11402
+ clan_id: BigInt(body.clan_id || "0"),
11403
+ }),
11191
11404
  );
11192
11405
  const encodedBody = bodyWriter.finish();
11193
11406
 
@@ -11223,7 +11436,7 @@ export class MezonApi {
11223
11436
  /** List clan webhook. */
11224
11437
  listClanWebhook(
11225
11438
  bearerToken: string,
11226
- clanId: bigint,
11439
+ clanId: string,
11227
11440
  options: any = {},
11228
11441
  ): Promise<ApiListClanWebhookResponse> {
11229
11442
  if (clanId === null || clanId === undefined) {
@@ -11236,7 +11449,7 @@ export class MezonApi {
11236
11449
 
11237
11450
  const bodyWriter = tsproto.ListClanWebhookRequest.encode(
11238
11451
  tsproto.ListClanWebhookRequest.fromPartial({
11239
- clan_id: clanId,
11452
+ clan_id: BigInt(clanId || "0"),
11240
11453
  }),
11241
11454
  );
11242
11455
  const encodedBody = bodyWriter.finish();
@@ -11273,8 +11486,8 @@ export class MezonApi {
11273
11486
  /** Disabled clan webhook. */
11274
11487
  deleteClanWebhookById(
11275
11488
  bearerToken: string,
11276
- id: bigint,
11277
- clanId?: bigint,
11489
+ id: string,
11490
+ clanId?: string,
11278
11491
  options: any = {},
11279
11492
  ): Promise<any> {
11280
11493
  if (id === null || id === undefined) {
@@ -11284,8 +11497,8 @@ export class MezonApi {
11284
11497
  const queryParams = new Map<string, any>();
11285
11498
 
11286
11499
  const body = {
11287
- id: id,
11288
- clan_id: clanId,
11500
+ id: BigInt(id),
11501
+ clan_id: BigInt(clanId || "0"),
11289
11502
  };
11290
11503
 
11291
11504
  const bodyWriter = tsproto.ClanWebhookRequest.encode(
@@ -11319,7 +11532,7 @@ export class MezonApi {
11319
11532
  /** Update clan webhook by id. */
11320
11533
  updateClanWebhookById(
11321
11534
  bearerToken: string,
11322
- id: bigint,
11535
+ id: string,
11323
11536
  body: MezonUpdateClanWebhookByIdBody,
11324
11537
  options: any = {},
11325
11538
  ): Promise<any> {
@@ -11336,7 +11549,8 @@ export class MezonApi {
11336
11549
 
11337
11550
  const bodyData = {
11338
11551
  ...body,
11339
- id: id,
11552
+ id: BigInt(id),
11553
+ clan_id: BigInt(body.clan_id || "0"),
11340
11554
  };
11341
11555
 
11342
11556
  const bodyWriter = tsproto.UpdateClanWebhookRequest.encode(
@@ -11370,14 +11584,14 @@ export class MezonApi {
11370
11584
  /** Sd Topic */
11371
11585
  getTopicDetail(
11372
11586
  bearerToken: string,
11373
- topicId?: bigint,
11587
+ topicId?: string,
11374
11588
  options: any = {},
11375
11589
  ): Promise<ApiSdTopic> {
11376
11590
  const urlPath = "/mezon.api.Mezon/GetTopicDetail";
11377
11591
  const queryParams = new Map<string, any>();
11378
11592
 
11379
11593
  const body = {
11380
- topic_id: topicId,
11594
+ topic_id: BigInt(topicId || "0"),
11381
11595
  };
11382
11596
 
11383
11597
  const bodyWriter = tsproto.SdTopicDetailRequest.encode(
@@ -11417,7 +11631,7 @@ export class MezonApi {
11417
11631
  /** List onboarding step. */
11418
11632
  listOnboardingStep(
11419
11633
  bearerToken: string,
11420
- clanId?: bigint,
11634
+ clanId?: string,
11421
11635
  limit?: number,
11422
11636
  page?: number,
11423
11637
  options: any = {},
@@ -11426,7 +11640,7 @@ export class MezonApi {
11426
11640
  const queryParams = new Map<string, any>();
11427
11641
 
11428
11642
  const body = {
11429
- clan_id: clanId,
11643
+ clan_id: BigInt(clanId || "0"),
11430
11644
  limit: limit,
11431
11645
  page: page,
11432
11646
  };
@@ -11468,7 +11682,7 @@ export class MezonApi {
11468
11682
  /** Update onboarding step. */
11469
11683
  updateOnboardingStepByClanId(
11470
11684
  bearerToken: string,
11471
- clanId: bigint,
11685
+ clanId: string,
11472
11686
  body: MezonUpdateOnboardingStepByClanIdBody,
11473
11687
  options: any = {},
11474
11688
  ): Promise<any> {
@@ -11487,7 +11701,7 @@ export class MezonApi {
11487
11701
 
11488
11702
  const bodyData = {
11489
11703
  ...body,
11490
- clan_id: clanId,
11704
+ clan_id: BigInt(clanId || "0"),
11491
11705
  };
11492
11706
 
11493
11707
  const bodyWriter = tsproto.UpdateOnboardingStepRequest.encode(
@@ -11533,7 +11747,10 @@ export class MezonApi {
11533
11747
  const queryParams = new Map<string, any>();
11534
11748
 
11535
11749
  const bodyWriter = tsproto.CreateRoomChannelApps.encode(
11536
- tsproto.CreateRoomChannelApps.fromPartial(body),
11750
+ tsproto.CreateRoomChannelApps.fromPartial({
11751
+ ...body,
11752
+ channel_id: BigInt(body.channel_id || "0"),
11753
+ }),
11537
11754
  );
11538
11755
  const encodedBody = bodyWriter.finish();
11539
11756
 
@@ -11581,7 +11798,10 @@ export class MezonApi {
11581
11798
  const queryParams = new Map<string, any>();
11582
11799
 
11583
11800
  const bodyWriter = tsproto.GenerateMeetTokenRequest.encode(
11584
- tsproto.GenerateMeetTokenRequest.fromPartial(body),
11801
+ tsproto.GenerateMeetTokenRequest.fromPartial({
11802
+ ...body,
11803
+ channel_id: BigInt(body.channel_id || "0"),
11804
+ }),
11585
11805
  );
11586
11806
  const encodedBody = bodyWriter.finish();
11587
11807
 
@@ -11713,14 +11933,14 @@ export class MezonApi {
11713
11933
  /** */
11714
11934
  generateHashChannelApps(
11715
11935
  bearerToken: string,
11716
- appId?: bigint,
11936
+ appId?: string,
11717
11937
  options: any = {},
11718
11938
  ): Promise<ApiCreateHashChannelAppsResponse> {
11719
11939
  const urlPath = "/mezon.api.Mezon/GenerateHashChannelApps";
11720
11940
  const queryParams = new Map<string, any>();
11721
11941
 
11722
11942
  const body = {
11723
- app_id: appId,
11943
+ app_id: BigInt(appId || "0"),
11724
11944
  };
11725
11945
 
11726
11946
  const bodyWriter = tsproto.GenerateHashChannelAppsRequest.encode(
@@ -11772,7 +11992,11 @@ export class MezonApi {
11772
11992
  const queryParams = new Map<string, any>();
11773
11993
 
11774
11994
  const bodyWriter = tsproto.UserEventRequest.encode(
11775
- tsproto.UserEventRequest.fromPartial(body),
11995
+ tsproto.UserEventRequest.fromPartial({
11996
+ ...body,
11997
+ clan_id: BigInt(body.clan_id || "0"),
11998
+ event_id: BigInt(body.event_id || "0"),
11999
+ }),
11776
12000
  );
11777
12001
  const encodedBody = bodyWriter.finish();
11778
12002
 
@@ -11802,16 +12026,16 @@ export class MezonApi {
11802
12026
  /** Delete user event */
11803
12027
  deleteUserEvent(
11804
12028
  bearerToken: string,
11805
- clanId?: bigint,
11806
- eventId?: bigint,
12029
+ clanId?: string,
12030
+ eventId?: string,
11807
12031
  options: any = {},
11808
12032
  ): Promise<any> {
11809
12033
  const urlPath = "/mezon.api.Mezon/DeleteUserEvent";
11810
12034
  const queryParams = new Map<string, any>();
11811
12035
 
11812
12036
  const body = {
11813
- clan_id: clanId,
11814
- event_id: eventId,
12037
+ clan_id: BigInt(clanId || "0"),
12038
+ event_id: BigInt(eventId || "0"),
11815
12039
  };
11816
12040
 
11817
12041
  const bodyWriter = tsproto.UserEventRequest.encode(
@@ -11857,7 +12081,16 @@ export class MezonApi {
11857
12081
  const queryParams = new Map<string, any>();
11858
12082
 
11859
12083
  const bodyWriter = tsproto.UpdateRoleOrderRequest.encode(
11860
- tsproto.UpdateRoleOrderRequest.fromPartial(body),
12084
+ tsproto.UpdateRoleOrderRequest.fromPartial({
12085
+ ...body,
12086
+ clan_id: BigInt(body.clan_id || "0"),
12087
+ roles: body.roles?.map((r) => {
12088
+ return {
12089
+ ...r,
12090
+ role_id: BigInt(r.role_id || "0"),
12091
+ };
12092
+ }),
12093
+ }),
11861
12094
  );
11862
12095
  const encodedBody = bodyWriter.finish();
11863
12096
 
@@ -11988,7 +12221,11 @@ export class MezonApi {
11988
12221
  const queryParams = new Map<string, any>();
11989
12222
 
11990
12223
  const bodyWriter = tsproto.MeetParticipantRequest.encode(
11991
- tsproto.MeetParticipantRequest.fromPartial(body),
12224
+ tsproto.MeetParticipantRequest.fromPartial({
12225
+ ...body,
12226
+ clan_id: BigInt(body.clan_id || "0"),
12227
+ channel_id: BigInt(body.channel_id || "0"),
12228
+ }),
11992
12229
  );
11993
12230
  const encodedBody = bodyWriter.finish();
11994
12231
 
@@ -12030,7 +12267,11 @@ export class MezonApi {
12030
12267
  const queryParams = new Map<string, any>();
12031
12268
 
12032
12269
  const bodyWriter = tsproto.MeetParticipantRequest.encode(
12033
- tsproto.MeetParticipantRequest.fromPartial(body),
12270
+ tsproto.MeetParticipantRequest.fromPartial({
12271
+ ...body,
12272
+ clan_id: BigInt(body.clan_id || "0"),
12273
+ channel_id: BigInt(body.channel_id || "0"),
12274
+ }),
12034
12275
  );
12035
12276
  const encodedBody = bodyWriter.finish();
12036
12277
 
@@ -12060,7 +12301,7 @@ export class MezonApi {
12060
12301
  /** List channels detail */
12061
12302
  listChannelDetail(
12062
12303
  bearerToken: string,
12063
- channelId: bigint,
12304
+ channelId: string,
12064
12305
  options: any = {},
12065
12306
  ): Promise<ApiChannelDescription> {
12066
12307
  if (channelId === null || channelId === undefined) {
@@ -12072,7 +12313,7 @@ export class MezonApi {
12072
12313
  const queryParams = new Map<string, any>();
12073
12314
 
12074
12315
  const body = {
12075
- channel_id: channelId,
12316
+ channel_id: BigInt(channelId || "0"),
12076
12317
  };
12077
12318
 
12078
12319
  const bodyWriter = tsproto.ListChannelDetailRequest.encode(
@@ -12124,7 +12365,15 @@ export class MezonApi {
12124
12365
  const queryParams = new Map<string, any>();
12125
12366
 
12126
12367
  const bodyWriter = tsproto.UpdateClanOrderRequest.encode(
12127
- tsproto.UpdateClanOrderRequest.fromPartial(body),
12368
+ tsproto.UpdateClanOrderRequest.fromPartial({
12369
+ ...body,
12370
+ clans_order: body.clans_order?.map((order) => {
12371
+ return {
12372
+ ...order,
12373
+ clan_id: BigInt(order.clan_id || "0"),
12374
+ };
12375
+ }),
12376
+ }),
12128
12377
  );
12129
12378
  const encodedBody = bodyWriter.finish();
12130
12379
 
@@ -12203,9 +12452,9 @@ export class MezonApi {
12203
12452
  /** */
12204
12453
  deleteQuickMenuAccess(
12205
12454
  bearerToken: string,
12206
- id?: bigint,
12207
- clanId?: bigint,
12208
- botId?: bigint,
12455
+ id?: string,
12456
+ clanId?: string,
12457
+ botId?: string,
12209
12458
  menuName?: string,
12210
12459
  background?: string,
12211
12460
  actionMsg?: string,
@@ -12215,9 +12464,9 @@ export class MezonApi {
12215
12464
  const queryParams = new Map<string, any>();
12216
12465
 
12217
12466
  const body = {
12218
- id: id,
12219
- clan_id: clanId,
12220
- bot_id: botId,
12467
+ id: BigInt(id || "0"),
12468
+ clan_id: BigInt(clanId || "0"),
12469
+ bot_id: BigInt(botId || "0"),
12221
12470
  menu_name: menuName,
12222
12471
  background: background,
12223
12472
  action_msg: actionMsg,
@@ -12254,8 +12503,8 @@ export class MezonApi {
12254
12503
  /** */
12255
12504
  listQuickMenuAccess(
12256
12505
  bearerToken: string,
12257
- botId?: bigint,
12258
- channelId?: bigint,
12506
+ botId?: string,
12507
+ channelId?: string,
12259
12508
  menuType?: number,
12260
12509
  options: any = {},
12261
12510
  ): Promise<ApiQuickMenuAccessList> {
@@ -12263,8 +12512,8 @@ export class MezonApi {
12263
12512
  const queryParams = new Map<string, any>();
12264
12513
 
12265
12514
  const body = {
12266
- bot_id: botId,
12267
- channel_id: channelId,
12515
+ bot_id: BigInt(botId || "0"),
12516
+ channel_id: BigInt(channelId || "0"),
12268
12517
  menu_type: menuType,
12269
12518
  };
12270
12519
 
@@ -12317,7 +12566,13 @@ export class MezonApi {
12317
12566
  const queryParams = new Map<string, any>();
12318
12567
 
12319
12568
  const bodyWriter = tsproto.QuickMenuAccess.encode(
12320
- tsproto.QuickMenuAccess.fromPartial(body),
12569
+ tsproto.QuickMenuAccess.fromPartial({
12570
+ ...body,
12571
+ clan_id: BigInt(body.clan_id || "0"),
12572
+ channel_id: BigInt(body.channel_id || "0"),
12573
+ id: BigInt(body.id || "0"),
12574
+ bot_id: BigInt(body.bot_id || "0"),
12575
+ }),
12321
12576
  );
12322
12577
  const encodedBody = bodyWriter.finish();
12323
12578
 
@@ -12359,7 +12614,13 @@ export class MezonApi {
12359
12614
  const queryParams = new Map<string, any>();
12360
12615
 
12361
12616
  const bodyWriter = tsproto.QuickMenuAccess.encode(
12362
- tsproto.QuickMenuAccess.fromPartial(body),
12617
+ tsproto.QuickMenuAccess.fromPartial({
12618
+ ...body,
12619
+ clan_id: BigInt(body.clan_id || "0"),
12620
+ channel_id: BigInt(body.channel_id || "0"),
12621
+ id: BigInt(body.id || "0"),
12622
+ bot_id: BigInt(body.bot_id || "0"),
12623
+ }),
12363
12624
  );
12364
12625
  const encodedBody = bodyWriter.finish();
12365
12626
 
@@ -12448,7 +12709,10 @@ export class MezonApi {
12448
12709
  const queryParams = new Map<string, any>();
12449
12710
 
12450
12711
  const bodyWriter = tsproto.IsFollowerRequest.encode(
12451
- tsproto.IsFollowerRequest.fromPartial(body),
12712
+ tsproto.IsFollowerRequest.fromPartial({
12713
+ ...body,
12714
+ follow_id: BigInt(body.follow_id || "0"),
12715
+ }),
12452
12716
  );
12453
12717
  const encodedBody = bodyWriter.finish();
12454
12718
 
@@ -12496,7 +12760,11 @@ export class MezonApi {
12496
12760
  const queryParams = new Map<string, any>();
12497
12761
 
12498
12762
  const bodyWriter = tsproto.TransferOwnershipRequest.encode(
12499
- tsproto.TransferOwnershipRequest.fromPartial(body),
12763
+ tsproto.TransferOwnershipRequest.fromPartial({
12764
+ ...body,
12765
+ clan_id: BigInt(body.clan_id || "0"),
12766
+ new_owner_id: BigInt(body.new_owner_id || "0"),
12767
+ }),
12500
12768
  );
12501
12769
  const encodedBody = bodyWriter.finish();
12502
12770
 
@@ -12574,7 +12842,7 @@ export class MezonApi {
12574
12842
  /** Ban a set of users from a channel. */
12575
12843
  isBanned(
12576
12844
  bearerToken: string,
12577
- channelId: bigint,
12845
+ channelId: string,
12578
12846
  options: any = {},
12579
12847
  ): Promise<ApiIsBannedResponse> {
12580
12848
  if (channelId === null || channelId === undefined) {
@@ -12586,7 +12854,7 @@ export class MezonApi {
12586
12854
  const queryParams = new Map<string, any>();
12587
12855
 
12588
12856
  const body = {
12589
- channel_id: channelId,
12857
+ channel_id: BigInt(channelId || "0"),
12590
12858
  };
12591
12859
 
12592
12860
  const bodyWriter = tsproto.IsBannedRequest.encode(
@@ -12626,7 +12894,7 @@ export class MezonApi {
12626
12894
  /** */
12627
12895
  reportMessageAbuse(
12628
12896
  bearerToken: string,
12629
- messageId?: bigint,
12897
+ messageId?: string,
12630
12898
  abuseType?: string,
12631
12899
  options: any = {},
12632
12900
  ): Promise<any> {
@@ -12634,7 +12902,7 @@ export class MezonApi {
12634
12902
  const queryParams = new Map<string, any>();
12635
12903
 
12636
12904
  const body = {
12637
- message_id: messageId,
12905
+ message_id: BigInt(messageId || "0"),
12638
12906
  abuse_type: abuseType,
12639
12907
  };
12640
12908