mezon-js-protobuf 1.8.90 → 1.8.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  import Long from "long";
9
9
  import _m0 from "protobufjs/minimal";
10
10
  import { Struct } from "../google/protobuf/struct";
11
- import { BoolValue, Int32Value, StringValue } from "../google/protobuf/wrappers";
11
+ import { BoolValue, StringValue } from "../google/protobuf/wrappers";
12
12
 
13
13
  export const protobufPackage = "mezon.api";
14
14
 
@@ -232,7 +232,7 @@ export interface SessionRefreshRequest {
232
232
  /** Extra information that will be bundled in the session token. */
233
233
  vars: { [key: string]: string };
234
234
  /** Whether to enable "Remember Me" for extended session duration. */
235
- is_remember: boolean | undefined;
235
+ is_remember: boolean;
236
236
  }
237
237
 
238
238
  export interface SessionRefreshRequest_VarsEntry {
@@ -751,13 +751,9 @@ export interface ListChannelMessagesRequest {
751
751
  /** The current message ID. */
752
752
  message_id: string;
753
753
  /** Max number of records to return. Between 1 and 100. */
754
- limit:
755
- | number
756
- | undefined;
754
+ limit: number;
757
755
  /** True if listing should be older messages to newer, false if reverse. */
758
- direction:
759
- | number
760
- | undefined;
756
+ direction: number;
761
757
  /** */
762
758
  topic_id: string;
763
759
  }
@@ -765,13 +761,9 @@ export interface ListChannelMessagesRequest {
765
761
  /** List friends for a user. */
766
762
  export interface ListFriendsRequest {
767
763
  /** Max number of records to return. Between 1 and 100. */
768
- limit:
769
- | number
770
- | undefined;
764
+ limit: number;
771
765
  /** The friend state to list. */
772
- state:
773
- | number
774
- | undefined;
766
+ state: number;
775
767
  /** An optional next page cursor. */
776
768
  cursor: string;
777
769
  }
@@ -783,17 +775,13 @@ export interface ListGroupsRequest {
783
775
  /** Optional pagination cursor. */
784
776
  cursor: string;
785
777
  /** Max number of groups to return. Between 1 and 100. */
786
- limit:
787
- | number
788
- | undefined;
778
+ limit: number;
789
779
  /** Language tag filter */
790
780
  lang_tag: string;
791
781
  /** Number of group members */
792
- members:
793
- | number
794
- | undefined;
782
+ members: number;
795
783
  /** Optional Open/Closed filter. */
796
- open: boolean | undefined;
784
+ open: boolean;
797
785
  }
798
786
 
799
787
  /** List all users that are part of a group. */
@@ -801,13 +789,9 @@ export interface ListGroupUsersRequest {
801
789
  /** The group ID to list from. */
802
790
  group_id: string;
803
791
  /** Max number of records to return. Between 1 and 100. */
804
- limit:
805
- | number
806
- | undefined;
792
+ limit: number;
807
793
  /** The group user state to list. */
808
- state:
809
- | number
810
- | undefined;
794
+ state: number;
811
795
  /** An optional next page cursor. */
812
796
  cursor: string;
813
797
  }
@@ -821,13 +805,9 @@ export interface ListChannelUsersRequest {
821
805
  /** The channel type */
822
806
  channel_type: number;
823
807
  /** Max number of records to return. Between 1 and 100. */
824
- limit:
825
- | number
826
- | undefined;
808
+ limit: number;
827
809
  /** The group user state to list. */
828
- state:
829
- | number
830
- | undefined;
810
+ state: number;
831
811
  /** An optional next page cursor. */
832
812
  cursor: string;
833
813
  }
@@ -861,9 +841,7 @@ export interface ListClanUsersRequest {
861
841
  /** Get a list of unexpired notifications. */
862
842
  export interface ListNotificationsRequest {
863
843
  /** The number of notifications to get. Between 1 and 100. */
864
- limit:
865
- | number
866
- | undefined;
844
+ limit: number;
867
845
  /** The clan id */
868
846
  clan_id: string;
869
847
  /** The current notification Id. */
@@ -871,7 +849,7 @@ export interface ListNotificationsRequest {
871
849
  /** The category (1: mentions, 2: mesages, 3: for you). */
872
850
  category: number;
873
851
  /** True if listing should be older notifications to newer, false if reverse. */
874
- direction: number | undefined;
852
+ direction: number;
875
853
  }
876
854
 
877
855
  /** List the groups a user is part of, and their relationship to each. */
@@ -879,13 +857,9 @@ export interface ListUserGroupsRequest {
879
857
  /** ID of the user. */
880
858
  user_id: string;
881
859
  /** Max number of records to return. Between 1 and 100. */
882
- limit:
883
- | number
884
- | undefined;
860
+ limit: number;
885
861
  /** The user group state to list. */
886
- state:
887
- | number
888
- | undefined;
862
+ state: number;
889
863
  /** An optional next page cursor. */
890
864
  cursor: string;
891
865
  }
@@ -1061,7 +1035,7 @@ export interface UpdateGroupRequest {
1061
1035
  | string
1062
1036
  | undefined;
1063
1037
  /** Open is true if anyone should be allowed to join, or false if joins must be approved by a group admin. */
1064
- open: boolean | undefined;
1038
+ open: boolean;
1065
1039
  }
1066
1040
 
1067
1041
  export interface UpdateCategoryDescRequest {
@@ -1265,13 +1239,9 @@ export interface DeleteClanDescRequest {
1265
1239
  /** List (and optionally filter) channels. */
1266
1240
  export interface ListClanDescRequest {
1267
1241
  /** Max number of records to return. Between 1 and 100. */
1268
- limit:
1269
- | number
1270
- | undefined;
1242
+ limit: number;
1271
1243
  /** The friend state to list. */
1272
- state:
1273
- | number
1274
- | undefined;
1244
+ state: number;
1275
1245
  /** Cursor to start from */
1276
1246
  cursor: string;
1277
1247
  }
@@ -1445,13 +1415,9 @@ export interface CategoryDescList {
1445
1415
  /** List (and optionally filter) channels. */
1446
1416
  export interface ListCategoryDescsRequest {
1447
1417
  /** Max number of records to return. Between 1 and 100. */
1448
- limit:
1449
- | number
1450
- | undefined;
1418
+ limit: number;
1451
1419
  /** The friend state to list. */
1452
- state:
1453
- | number
1454
- | undefined;
1420
+ state: number;
1455
1421
  /** Cursor to start from */
1456
1422
  cursor: string;
1457
1423
  }
@@ -1553,13 +1519,9 @@ export interface ChannelDescListNoPool {
1553
1519
 
1554
1520
  export interface ListThreadRequest {
1555
1521
  /** Max number of records to return. Between 1 and 100. */
1556
- limit:
1557
- | number
1558
- | undefined;
1522
+ limit: number;
1559
1523
  /** The channel state to list. */
1560
- state:
1561
- | number
1562
- | undefined;
1524
+ state: number;
1563
1525
  /** The clan of this channel */
1564
1526
  clan_id: string;
1565
1527
  /** channel id */
@@ -1567,19 +1529,15 @@ export interface ListThreadRequest {
1567
1529
  /** thread id */
1568
1530
  thread_id: string;
1569
1531
  /** Number of page */
1570
- page: number | undefined;
1532
+ page: number;
1571
1533
  }
1572
1534
 
1573
1535
  /** List (and optionally filter) channels. */
1574
1536
  export interface ListChannelDescsRequest {
1575
1537
  /** Max number of records to return. Between 1 and 100. */
1576
- limit:
1577
- | number
1578
- | undefined;
1538
+ limit: number;
1579
1539
  /** The channel state to list. */
1580
- state:
1581
- | number
1582
- | undefined;
1540
+ state: number;
1583
1541
  /** Cursor to start from */
1584
1542
  cursor: string;
1585
1543
  /** The clan of this channel */
@@ -1924,37 +1882,6 @@ export interface SetMuteRequest {
1924
1882
  clan_id: string;
1925
1883
  }
1926
1884
 
1927
- export interface HashtagDmListRequest {
1928
- /** user Id */
1929
- user_id: string[];
1930
- /** Max number of records to return. Between 1 and 100. */
1931
- limit: number | undefined;
1932
- }
1933
-
1934
- export interface HashtagDmList {
1935
- hashtag_dm: HashtagDm[];
1936
- }
1937
-
1938
- /** hashtagDM */
1939
- export interface HashtagDm {
1940
- /** The channel id. */
1941
- channel_id: string;
1942
- /** The channel lable */
1943
- channel_label: string;
1944
- /** The clan of this channel */
1945
- clan_id: string;
1946
- /** The clan name */
1947
- clan_name: string;
1948
- /** */
1949
- meeting_code: string;
1950
- /** */
1951
- type: number;
1952
- /** */
1953
- channel_private: number;
1954
- /** */
1955
- parent_id: string;
1956
- }
1957
-
1958
1885
  export interface NotificationChannelCategorySettingList {
1959
1886
  notification_channel_category_settings_list: NotificationChannelCategorySetting[];
1960
1887
  }
@@ -2009,9 +1936,7 @@ export interface ListPermissionsRequest {
2009
1936
  export interface ListRoleUsersRequest {
2010
1937
  role_id: string;
2011
1938
  /** Max number of records to return. Between 1 and 100. */
2012
- limit:
2013
- | number
2014
- | undefined;
1939
+ limit: number;
2015
1940
  /** An optional next page cursor. */
2016
1941
  cursor: string;
2017
1942
  }
@@ -2097,7 +2022,7 @@ export interface CreateEventRequest {
2097
2022
  repeat_type: number;
2098
2023
  creator_id: string;
2099
2024
  user_id: string;
2100
- is_private: boolean | undefined;
2025
+ is_private: boolean;
2101
2026
  meet_room: GenerateMezonMeetResponse | undefined;
2102
2027
  }
2103
2028
 
@@ -2151,10 +2076,8 @@ export interface UpdateRoleRequest {
2151
2076
  color: string | undefined;
2152
2077
  role_icon: string | undefined;
2153
2078
  description: string | undefined;
2154
- display_online: number | undefined;
2155
- allow_mention:
2156
- | number
2157
- | undefined;
2079
+ display_online: number;
2080
+ allow_mention: number;
2158
2081
  /** The users to add. */
2159
2082
  add_user_ids: string[];
2160
2083
  /** The permissions to add. */
@@ -2208,13 +2131,9 @@ export interface UploadAttachmentRequest {
2208
2131
 
2209
2132
  export interface ListMessageMentionRequest {
2210
2133
  /** Max number of records to return. Between 1 and 100. */
2211
- limit:
2212
- | number
2213
- | undefined;
2134
+ limit: number;
2214
2135
  /** True if listing should be older messages to newer, false if reverse. */
2215
- forward:
2216
- | boolean
2217
- | undefined;
2136
+ forward: boolean;
2218
2137
  /** A pagination cursor, if any. */
2219
2138
  cursor: string;
2220
2139
  }
@@ -2229,13 +2148,9 @@ export interface UploadAttachment {
2229
2148
  export interface SearchMessageRequest {
2230
2149
  filters: FilterParam[];
2231
2150
  /** Offset value */
2232
- from:
2233
- | number
2234
- | undefined;
2151
+ from: number;
2235
2152
  /** Page size */
2236
- size:
2237
- | number
2238
- | undefined;
2153
+ size: number;
2239
2154
  /** Sort information */
2240
2155
  sorts: SortParam[];
2241
2156
  }
@@ -2270,7 +2185,7 @@ export interface SearchMessageDocument {
2270
2185
  /** Reactions */
2271
2186
  reactions: string;
2272
2187
  /** Attachment */
2273
- attachments: MessageAttachment[];
2188
+ attachments: string;
2274
2189
  /** Reference users */
2275
2190
  references: string;
2276
2191
  /** Message create time */
@@ -2367,13 +2282,13 @@ export interface ClanSticker {
2367
2282
 
2368
2283
  export interface AllUsersAddChannelRequest {
2369
2284
  channel_id: string;
2370
- limit: number | undefined;
2285
+ limit: number;
2371
2286
  }
2372
2287
 
2373
2288
  export interface AllUsersAddChannelResponse {
2374
2289
  channel_id: string;
2375
2290
  user_ids: string[];
2376
- limit: number | undefined;
2291
+ limit: number;
2377
2292
  usernames: string[];
2378
2293
  display_names: string[];
2379
2294
  avatars: string[];
@@ -2550,7 +2465,7 @@ export interface AppDeleteRequest {
2550
2465
  /** The unique identifier of the app. */
2551
2466
  id: string;
2552
2467
  /** Record the app deletion - used for GDPR compliance. */
2553
- record_deletion: boolean | undefined;
2468
+ record_deletion: boolean;
2554
2469
  }
2555
2470
 
2556
2471
  /** A list of apps. */
@@ -2726,7 +2641,7 @@ export interface StreamHttpCallbackRequest {
2726
2641
  }
2727
2642
 
2728
2643
  export interface StreamHttpCallbackResponse {
2729
- code: number | undefined;
2644
+ code: number;
2730
2645
  msg: string;
2731
2646
  }
2732
2647
 
@@ -2887,29 +2802,17 @@ export interface ChannelSettingListRequest {
2887
2802
  /** category id */
2888
2803
  category_id: string;
2889
2804
  /** is private channel */
2890
- private_channel:
2891
- | number
2892
- | undefined;
2805
+ private_channel: number;
2893
2806
  /** is active */
2894
- active:
2895
- | number
2896
- | undefined;
2807
+ active: number;
2897
2808
  /** status */
2898
- status:
2899
- | number
2900
- | undefined;
2809
+ status: number;
2901
2810
  /** type */
2902
- type:
2903
- | number
2904
- | undefined;
2811
+ type: number;
2905
2812
  /** limit */
2906
- limit:
2907
- | number
2908
- | undefined;
2813
+ limit: number;
2909
2814
  /** page */
2910
- page:
2911
- | number
2912
- | undefined;
2815
+ page: number;
2913
2816
  /** channel label */
2914
2817
  channel_label: string;
2915
2818
  }
@@ -2998,13 +2901,9 @@ export interface ChannelCanvasListRequest {
2998
2901
  /** channel id */
2999
2902
  channel_id: string;
3000
2903
  /** limit */
3001
- limit:
3002
- | number
3003
- | undefined;
2904
+ limit: number;
3004
2905
  /** page */
3005
- page:
3006
- | number
3007
- | undefined;
2906
+ page: number;
3008
2907
  /** */
3009
2908
  cursor: string;
3010
2909
  }
@@ -3134,7 +3033,7 @@ export interface ConfirmLoginRequest {
3134
3033
  /** loginId */
3135
3034
  login_id: string;
3136
3035
  /** Whether to enable "Remember Me" for extended session duration. */
3137
- is_remember: boolean | undefined;
3036
+ is_remember: boolean;
3138
3037
  }
3139
3038
 
3140
3039
  export interface PubKey {
@@ -3226,15 +3125,11 @@ export interface ListOnboardingRequest {
3226
3125
  /** clan id */
3227
3126
  clan_id: string;
3228
3127
  /** guide_type: 0 = greeting, 1 = rule, 2 = task, 3 = question */
3229
- guide_type:
3230
- | number
3231
- | undefined;
3128
+ guide_type: number;
3232
3129
  /** limit */
3233
- limit:
3234
- | number
3235
- | undefined;
3130
+ limit: number;
3236
3131
  /** page */
3237
- page: number | undefined;
3132
+ page: number;
3238
3133
  }
3239
3134
 
3240
3135
  export interface ListOnboardingResponse {
@@ -3307,9 +3202,7 @@ export interface UpdateOnboardingRequest {
3307
3202
  /** clan id */
3308
3203
  clan_id: string;
3309
3204
  /** task type */
3310
- task_type:
3311
- | number
3312
- | undefined;
3205
+ task_type: number;
3313
3206
  /** channel id */
3314
3207
  channel_id: string;
3315
3208
  /** title */
@@ -3449,18 +3342,16 @@ export interface ListOnboardingStepRequest {
3449
3342
  /** clan id. */
3450
3343
  clan_id: string;
3451
3344
  /** limit */
3452
- limit:
3453
- | number
3454
- | undefined;
3345
+ limit: number;
3455
3346
  /** page */
3456
- page: number | undefined;
3347
+ page: number;
3457
3348
  }
3458
3349
 
3459
3350
  export interface UpdateOnboardingStepRequest {
3460
3351
  /** clan id. */
3461
3352
  clan_id: string;
3462
3353
  /** onboarding step. */
3463
- onboarding_step: number | undefined;
3354
+ onboarding_step: number;
3464
3355
  }
3465
3356
 
3466
3357
  export interface SdTopic {
@@ -4420,7 +4311,7 @@ export const AddGroupUsersRequest = {
4420
4311
  };
4421
4312
 
4422
4313
  function createBaseSessionRefreshRequest(): SessionRefreshRequest {
4423
- return { token: "", vars: {}, is_remember: undefined };
4314
+ return { token: "", vars: {}, is_remember: false };
4424
4315
  }
4425
4316
 
4426
4317
  export const SessionRefreshRequest = {
@@ -4431,8 +4322,8 @@ export const SessionRefreshRequest = {
4431
4322
  Object.entries(message.vars).forEach(([key, value]) => {
4432
4323
  SessionRefreshRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4433
4324
  });
4434
- if (message.is_remember !== undefined) {
4435
- BoolValue.encode({ value: message.is_remember! }, writer.uint32(26).fork()).ldelim();
4325
+ if (message.is_remember !== false) {
4326
+ writer.uint32(24).bool(message.is_remember);
4436
4327
  }
4437
4328
  return writer;
4438
4329
  },
@@ -4462,11 +4353,11 @@ export const SessionRefreshRequest = {
4462
4353
  }
4463
4354
  continue;
4464
4355
  case 3:
4465
- if (tag !== 26) {
4356
+ if (tag !== 24) {
4466
4357
  break;
4467
4358
  }
4468
4359
 
4469
- message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
4360
+ message.is_remember = reader.bool();
4470
4361
  continue;
4471
4362
  }
4472
4363
  if ((tag & 7) === 4 || tag === 0) {
@@ -4486,7 +4377,7 @@ export const SessionRefreshRequest = {
4486
4377
  return acc;
4487
4378
  }, {})
4488
4379
  : {},
4489
- is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
4380
+ is_remember: isSet(object.is_remember) ? globalThis.Boolean(object.is_remember) : false,
4490
4381
  };
4491
4382
  },
4492
4383
 
@@ -4504,7 +4395,7 @@ export const SessionRefreshRequest = {
4504
4395
  });
4505
4396
  }
4506
4397
  }
4507
- if (message.is_remember !== undefined) {
4398
+ if (message.is_remember !== false) {
4508
4399
  obj.is_remember = message.is_remember;
4509
4400
  }
4510
4401
  return obj;
@@ -4522,7 +4413,7 @@ export const SessionRefreshRequest = {
4522
4413
  }
4523
4414
  return acc;
4524
4415
  }, {});
4525
- message.is_remember = object.is_remember ?? undefined;
4416
+ message.is_remember = object.is_remember ?? false;
4526
4417
  return message;
4527
4418
  },
4528
4419
  };
@@ -8682,7 +8573,7 @@ export const RegistFcmDeviceTokenResponse = {
8682
8573
  };
8683
8574
 
8684
8575
  function createBaseListChannelMessagesRequest(): ListChannelMessagesRequest {
8685
- return { clan_id: "0", channel_id: "0", message_id: "0", limit: undefined, direction: undefined, topic_id: "0" };
8576
+ return { clan_id: "0", channel_id: "0", message_id: "0", limit: 0, direction: 0, topic_id: "0" };
8686
8577
  }
8687
8578
 
8688
8579
  export const ListChannelMessagesRequest = {
@@ -8696,11 +8587,11 @@ export const ListChannelMessagesRequest = {
8696
8587
  if (message.message_id !== "0") {
8697
8588
  writer.uint32(24).int64(message.message_id);
8698
8589
  }
8699
- if (message.limit !== undefined) {
8700
- Int32Value.encode({ value: message.limit! }, writer.uint32(34).fork()).ldelim();
8590
+ if (message.limit !== 0) {
8591
+ writer.uint32(32).int32(message.limit);
8701
8592
  }
8702
- if (message.direction !== undefined) {
8703
- Int32Value.encode({ value: message.direction! }, writer.uint32(42).fork()).ldelim();
8593
+ if (message.direction !== 0) {
8594
+ writer.uint32(40).int32(message.direction);
8704
8595
  }
8705
8596
  if (message.topic_id !== "0") {
8706
8597
  writer.uint32(48).int64(message.topic_id);
@@ -8737,18 +8628,18 @@ export const ListChannelMessagesRequest = {
8737
8628
  message.message_id = longToString(reader.int64() as Long);
8738
8629
  continue;
8739
8630
  case 4:
8740
- if (tag !== 34) {
8631
+ if (tag !== 32) {
8741
8632
  break;
8742
8633
  }
8743
8634
 
8744
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
8635
+ message.limit = reader.int32();
8745
8636
  continue;
8746
8637
  case 5:
8747
- if (tag !== 42) {
8638
+ if (tag !== 40) {
8748
8639
  break;
8749
8640
  }
8750
8641
 
8751
- message.direction = Int32Value.decode(reader, reader.uint32()).value;
8642
+ message.direction = reader.int32();
8752
8643
  continue;
8753
8644
  case 6:
8754
8645
  if (tag !== 48) {
@@ -8771,8 +8662,8 @@ export const ListChannelMessagesRequest = {
8771
8662
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
8772
8663
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
8773
8664
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
8774
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
8775
- direction: isSet(object.direction) ? Number(object.direction) : undefined,
8665
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
8666
+ direction: isSet(object.direction) ? globalThis.Number(object.direction) : 0,
8776
8667
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "0",
8777
8668
  };
8778
8669
  },
@@ -8788,11 +8679,11 @@ export const ListChannelMessagesRequest = {
8788
8679
  if (message.message_id !== "0") {
8789
8680
  obj.message_id = message.message_id;
8790
8681
  }
8791
- if (message.limit !== undefined) {
8792
- obj.limit = message.limit;
8682
+ if (message.limit !== 0) {
8683
+ obj.limit = Math.round(message.limit);
8793
8684
  }
8794
- if (message.direction !== undefined) {
8795
- obj.direction = message.direction;
8685
+ if (message.direction !== 0) {
8686
+ obj.direction = Math.round(message.direction);
8796
8687
  }
8797
8688
  if (message.topic_id !== "0") {
8798
8689
  obj.topic_id = message.topic_id;
@@ -8808,24 +8699,24 @@ export const ListChannelMessagesRequest = {
8808
8699
  message.clan_id = object.clan_id ?? "0";
8809
8700
  message.channel_id = object.channel_id ?? "0";
8810
8701
  message.message_id = object.message_id ?? "0";
8811
- message.limit = object.limit ?? undefined;
8812
- message.direction = object.direction ?? undefined;
8702
+ message.limit = object.limit ?? 0;
8703
+ message.direction = object.direction ?? 0;
8813
8704
  message.topic_id = object.topic_id ?? "0";
8814
8705
  return message;
8815
8706
  },
8816
8707
  };
8817
8708
 
8818
8709
  function createBaseListFriendsRequest(): ListFriendsRequest {
8819
- return { limit: undefined, state: undefined, cursor: "" };
8710
+ return { limit: 0, state: 0, cursor: "" };
8820
8711
  }
8821
8712
 
8822
8713
  export const ListFriendsRequest = {
8823
8714
  encode(message: ListFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8824
- if (message.limit !== undefined) {
8825
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
8715
+ if (message.limit !== 0) {
8716
+ writer.uint32(8).int32(message.limit);
8826
8717
  }
8827
- if (message.state !== undefined) {
8828
- Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
8718
+ if (message.state !== 0) {
8719
+ writer.uint32(16).int32(message.state);
8829
8720
  }
8830
8721
  if (message.cursor !== "") {
8831
8722
  writer.uint32(26).string(message.cursor);
@@ -8841,18 +8732,18 @@ export const ListFriendsRequest = {
8841
8732
  const tag = reader.uint32();
8842
8733
  switch (tag >>> 3) {
8843
8734
  case 1:
8844
- if (tag !== 10) {
8735
+ if (tag !== 8) {
8845
8736
  break;
8846
8737
  }
8847
8738
 
8848
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
8739
+ message.limit = reader.int32();
8849
8740
  continue;
8850
8741
  case 2:
8851
- if (tag !== 18) {
8742
+ if (tag !== 16) {
8852
8743
  break;
8853
8744
  }
8854
8745
 
8855
- message.state = Int32Value.decode(reader, reader.uint32()).value;
8746
+ message.state = reader.int32();
8856
8747
  continue;
8857
8748
  case 3:
8858
8749
  if (tag !== 26) {
@@ -8872,19 +8763,19 @@ export const ListFriendsRequest = {
8872
8763
 
8873
8764
  fromJSON(object: any): ListFriendsRequest {
8874
8765
  return {
8875
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
8876
- state: isSet(object.state) ? Number(object.state) : undefined,
8766
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
8767
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
8877
8768
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
8878
8769
  };
8879
8770
  },
8880
8771
 
8881
8772
  toJSON(message: ListFriendsRequest): unknown {
8882
8773
  const obj: any = {};
8883
- if (message.limit !== undefined) {
8884
- obj.limit = message.limit;
8774
+ if (message.limit !== 0) {
8775
+ obj.limit = Math.round(message.limit);
8885
8776
  }
8886
- if (message.state !== undefined) {
8887
- obj.state = message.state;
8777
+ if (message.state !== 0) {
8778
+ obj.state = Math.round(message.state);
8888
8779
  }
8889
8780
  if (message.cursor !== "") {
8890
8781
  obj.cursor = message.cursor;
@@ -8897,15 +8788,15 @@ export const ListFriendsRequest = {
8897
8788
  },
8898
8789
  fromPartial<I extends Exact<DeepPartial<ListFriendsRequest>, I>>(object: I): ListFriendsRequest {
8899
8790
  const message = createBaseListFriendsRequest();
8900
- message.limit = object.limit ?? undefined;
8901
- message.state = object.state ?? undefined;
8791
+ message.limit = object.limit ?? 0;
8792
+ message.state = object.state ?? 0;
8902
8793
  message.cursor = object.cursor ?? "";
8903
8794
  return message;
8904
8795
  },
8905
8796
  };
8906
8797
 
8907
8798
  function createBaseListGroupsRequest(): ListGroupsRequest {
8908
- return { name: "", cursor: "", limit: undefined, lang_tag: "", members: undefined, open: undefined };
8799
+ return { name: "", cursor: "", limit: 0, lang_tag: "", members: 0, open: false };
8909
8800
  }
8910
8801
 
8911
8802
  export const ListGroupsRequest = {
@@ -8916,17 +8807,17 @@ export const ListGroupsRequest = {
8916
8807
  if (message.cursor !== "") {
8917
8808
  writer.uint32(18).string(message.cursor);
8918
8809
  }
8919
- if (message.limit !== undefined) {
8920
- Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
8810
+ if (message.limit !== 0) {
8811
+ writer.uint32(24).int32(message.limit);
8921
8812
  }
8922
8813
  if (message.lang_tag !== "") {
8923
8814
  writer.uint32(34).string(message.lang_tag);
8924
8815
  }
8925
- if (message.members !== undefined) {
8926
- Int32Value.encode({ value: message.members! }, writer.uint32(42).fork()).ldelim();
8816
+ if (message.members !== 0) {
8817
+ writer.uint32(40).int32(message.members);
8927
8818
  }
8928
- if (message.open !== undefined) {
8929
- BoolValue.encode({ value: message.open! }, writer.uint32(50).fork()).ldelim();
8819
+ if (message.open !== false) {
8820
+ writer.uint32(48).bool(message.open);
8930
8821
  }
8931
8822
  return writer;
8932
8823
  },
@@ -8953,11 +8844,11 @@ export const ListGroupsRequest = {
8953
8844
  message.cursor = reader.string();
8954
8845
  continue;
8955
8846
  case 3:
8956
- if (tag !== 26) {
8847
+ if (tag !== 24) {
8957
8848
  break;
8958
8849
  }
8959
8850
 
8960
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
8851
+ message.limit = reader.int32();
8961
8852
  continue;
8962
8853
  case 4:
8963
8854
  if (tag !== 34) {
@@ -8967,18 +8858,18 @@ export const ListGroupsRequest = {
8967
8858
  message.lang_tag = reader.string();
8968
8859
  continue;
8969
8860
  case 5:
8970
- if (tag !== 42) {
8861
+ if (tag !== 40) {
8971
8862
  break;
8972
8863
  }
8973
8864
 
8974
- message.members = Int32Value.decode(reader, reader.uint32()).value;
8865
+ message.members = reader.int32();
8975
8866
  continue;
8976
8867
  case 6:
8977
- if (tag !== 50) {
8868
+ if (tag !== 48) {
8978
8869
  break;
8979
8870
  }
8980
8871
 
8981
- message.open = BoolValue.decode(reader, reader.uint32()).value;
8872
+ message.open = reader.bool();
8982
8873
  continue;
8983
8874
  }
8984
8875
  if ((tag & 7) === 4 || tag === 0) {
@@ -8993,10 +8884,10 @@ export const ListGroupsRequest = {
8993
8884
  return {
8994
8885
  name: isSet(object.name) ? globalThis.String(object.name) : "",
8995
8886
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
8996
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
8887
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
8997
8888
  lang_tag: isSet(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
8998
- members: isSet(object.members) ? Number(object.members) : undefined,
8999
- open: isSet(object.open) ? Boolean(object.open) : undefined,
8889
+ members: isSet(object.members) ? globalThis.Number(object.members) : 0,
8890
+ open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
9000
8891
  };
9001
8892
  },
9002
8893
 
@@ -9008,16 +8899,16 @@ export const ListGroupsRequest = {
9008
8899
  if (message.cursor !== "") {
9009
8900
  obj.cursor = message.cursor;
9010
8901
  }
9011
- if (message.limit !== undefined) {
9012
- obj.limit = message.limit;
8902
+ if (message.limit !== 0) {
8903
+ obj.limit = Math.round(message.limit);
9013
8904
  }
9014
8905
  if (message.lang_tag !== "") {
9015
8906
  obj.lang_tag = message.lang_tag;
9016
8907
  }
9017
- if (message.members !== undefined) {
9018
- obj.members = message.members;
8908
+ if (message.members !== 0) {
8909
+ obj.members = Math.round(message.members);
9019
8910
  }
9020
- if (message.open !== undefined) {
8911
+ if (message.open !== false) {
9021
8912
  obj.open = message.open;
9022
8913
  }
9023
8914
  return obj;
@@ -9030,16 +8921,16 @@ export const ListGroupsRequest = {
9030
8921
  const message = createBaseListGroupsRequest();
9031
8922
  message.name = object.name ?? "";
9032
8923
  message.cursor = object.cursor ?? "";
9033
- message.limit = object.limit ?? undefined;
8924
+ message.limit = object.limit ?? 0;
9034
8925
  message.lang_tag = object.lang_tag ?? "";
9035
- message.members = object.members ?? undefined;
9036
- message.open = object.open ?? undefined;
8926
+ message.members = object.members ?? 0;
8927
+ message.open = object.open ?? false;
9037
8928
  return message;
9038
8929
  },
9039
8930
  };
9040
8931
 
9041
8932
  function createBaseListGroupUsersRequest(): ListGroupUsersRequest {
9042
- return { group_id: "0", limit: undefined, state: undefined, cursor: "" };
8933
+ return { group_id: "0", limit: 0, state: 0, cursor: "" };
9043
8934
  }
9044
8935
 
9045
8936
  export const ListGroupUsersRequest = {
@@ -9047,11 +8938,11 @@ export const ListGroupUsersRequest = {
9047
8938
  if (message.group_id !== "0") {
9048
8939
  writer.uint32(8).int64(message.group_id);
9049
8940
  }
9050
- if (message.limit !== undefined) {
9051
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
8941
+ if (message.limit !== 0) {
8942
+ writer.uint32(16).int32(message.limit);
9052
8943
  }
9053
- if (message.state !== undefined) {
9054
- Int32Value.encode({ value: message.state! }, writer.uint32(26).fork()).ldelim();
8944
+ if (message.state !== 0) {
8945
+ writer.uint32(24).int32(message.state);
9055
8946
  }
9056
8947
  if (message.cursor !== "") {
9057
8948
  writer.uint32(34).string(message.cursor);
@@ -9074,18 +8965,18 @@ export const ListGroupUsersRequest = {
9074
8965
  message.group_id = longToString(reader.int64() as Long);
9075
8966
  continue;
9076
8967
  case 2:
9077
- if (tag !== 18) {
8968
+ if (tag !== 16) {
9078
8969
  break;
9079
8970
  }
9080
8971
 
9081
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
8972
+ message.limit = reader.int32();
9082
8973
  continue;
9083
8974
  case 3:
9084
- if (tag !== 26) {
8975
+ if (tag !== 24) {
9085
8976
  break;
9086
8977
  }
9087
8978
 
9088
- message.state = Int32Value.decode(reader, reader.uint32()).value;
8979
+ message.state = reader.int32();
9089
8980
  continue;
9090
8981
  case 4:
9091
8982
  if (tag !== 34) {
@@ -9106,8 +8997,8 @@ export const ListGroupUsersRequest = {
9106
8997
  fromJSON(object: any): ListGroupUsersRequest {
9107
8998
  return {
9108
8999
  group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "0",
9109
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
9110
- state: isSet(object.state) ? Number(object.state) : undefined,
9000
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
9001
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
9111
9002
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
9112
9003
  };
9113
9004
  },
@@ -9117,11 +9008,11 @@ export const ListGroupUsersRequest = {
9117
9008
  if (message.group_id !== "0") {
9118
9009
  obj.group_id = message.group_id;
9119
9010
  }
9120
- if (message.limit !== undefined) {
9121
- obj.limit = message.limit;
9011
+ if (message.limit !== 0) {
9012
+ obj.limit = Math.round(message.limit);
9122
9013
  }
9123
- if (message.state !== undefined) {
9124
- obj.state = message.state;
9014
+ if (message.state !== 0) {
9015
+ obj.state = Math.round(message.state);
9125
9016
  }
9126
9017
  if (message.cursor !== "") {
9127
9018
  obj.cursor = message.cursor;
@@ -9135,15 +9026,15 @@ export const ListGroupUsersRequest = {
9135
9026
  fromPartial<I extends Exact<DeepPartial<ListGroupUsersRequest>, I>>(object: I): ListGroupUsersRequest {
9136
9027
  const message = createBaseListGroupUsersRequest();
9137
9028
  message.group_id = object.group_id ?? "0";
9138
- message.limit = object.limit ?? undefined;
9139
- message.state = object.state ?? undefined;
9029
+ message.limit = object.limit ?? 0;
9030
+ message.state = object.state ?? 0;
9140
9031
  message.cursor = object.cursor ?? "";
9141
9032
  return message;
9142
9033
  },
9143
9034
  };
9144
9035
 
9145
9036
  function createBaseListChannelUsersRequest(): ListChannelUsersRequest {
9146
- return { clan_id: "0", channel_id: "0", channel_type: 0, limit: undefined, state: undefined, cursor: "" };
9037
+ return { clan_id: "0", channel_id: "0", channel_type: 0, limit: 0, state: 0, cursor: "" };
9147
9038
  }
9148
9039
 
9149
9040
  export const ListChannelUsersRequest = {
@@ -9157,11 +9048,11 @@ export const ListChannelUsersRequest = {
9157
9048
  if (message.channel_type !== 0) {
9158
9049
  writer.uint32(24).int32(message.channel_type);
9159
9050
  }
9160
- if (message.limit !== undefined) {
9161
- Int32Value.encode({ value: message.limit! }, writer.uint32(34).fork()).ldelim();
9051
+ if (message.limit !== 0) {
9052
+ writer.uint32(32).int32(message.limit);
9162
9053
  }
9163
- if (message.state !== undefined) {
9164
- Int32Value.encode({ value: message.state! }, writer.uint32(42).fork()).ldelim();
9054
+ if (message.state !== 0) {
9055
+ writer.uint32(40).int32(message.state);
9165
9056
  }
9166
9057
  if (message.cursor !== "") {
9167
9058
  writer.uint32(50).string(message.cursor);
@@ -9198,18 +9089,18 @@ export const ListChannelUsersRequest = {
9198
9089
  message.channel_type = reader.int32();
9199
9090
  continue;
9200
9091
  case 4:
9201
- if (tag !== 34) {
9092
+ if (tag !== 32) {
9202
9093
  break;
9203
9094
  }
9204
9095
 
9205
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
9096
+ message.limit = reader.int32();
9206
9097
  continue;
9207
9098
  case 5:
9208
- if (tag !== 42) {
9099
+ if (tag !== 40) {
9209
9100
  break;
9210
9101
  }
9211
9102
 
9212
- message.state = Int32Value.decode(reader, reader.uint32()).value;
9103
+ message.state = reader.int32();
9213
9104
  continue;
9214
9105
  case 6:
9215
9106
  if (tag !== 50) {
@@ -9232,8 +9123,8 @@ export const ListChannelUsersRequest = {
9232
9123
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
9233
9124
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
9234
9125
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
9235
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
9236
- state: isSet(object.state) ? Number(object.state) : undefined,
9126
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
9127
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
9237
9128
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
9238
9129
  };
9239
9130
  },
@@ -9249,11 +9140,11 @@ export const ListChannelUsersRequest = {
9249
9140
  if (message.channel_type !== 0) {
9250
9141
  obj.channel_type = Math.round(message.channel_type);
9251
9142
  }
9252
- if (message.limit !== undefined) {
9253
- obj.limit = message.limit;
9143
+ if (message.limit !== 0) {
9144
+ obj.limit = Math.round(message.limit);
9254
9145
  }
9255
- if (message.state !== undefined) {
9256
- obj.state = message.state;
9146
+ if (message.state !== 0) {
9147
+ obj.state = Math.round(message.state);
9257
9148
  }
9258
9149
  if (message.cursor !== "") {
9259
9150
  obj.cursor = message.cursor;
@@ -9269,8 +9160,8 @@ export const ListChannelUsersRequest = {
9269
9160
  message.clan_id = object.clan_id ?? "0";
9270
9161
  message.channel_id = object.channel_id ?? "0";
9271
9162
  message.channel_type = object.channel_type ?? 0;
9272
- message.limit = object.limit ?? undefined;
9273
- message.state = object.state ?? undefined;
9163
+ message.limit = object.limit ?? 0;
9164
+ message.state = object.state ?? 0;
9274
9165
  message.cursor = object.cursor ?? "";
9275
9166
  return message;
9276
9167
  },
@@ -9498,13 +9389,13 @@ export const ListClanUsersRequest = {
9498
9389
  };
9499
9390
 
9500
9391
  function createBaseListNotificationsRequest(): ListNotificationsRequest {
9501
- return { limit: undefined, clan_id: "0", notification_id: "0", category: 0, direction: undefined };
9392
+ return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
9502
9393
  }
9503
9394
 
9504
9395
  export const ListNotificationsRequest = {
9505
9396
  encode(message: ListNotificationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
9506
- if (message.limit !== undefined) {
9507
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
9397
+ if (message.limit !== 0) {
9398
+ writer.uint32(8).int32(message.limit);
9508
9399
  }
9509
9400
  if (message.clan_id !== "0") {
9510
9401
  writer.uint32(16).int64(message.clan_id);
@@ -9515,8 +9406,8 @@ export const ListNotificationsRequest = {
9515
9406
  if (message.category !== 0) {
9516
9407
  writer.uint32(32).int32(message.category);
9517
9408
  }
9518
- if (message.direction !== undefined) {
9519
- Int32Value.encode({ value: message.direction! }, writer.uint32(42).fork()).ldelim();
9409
+ if (message.direction !== 0) {
9410
+ writer.uint32(40).int32(message.direction);
9520
9411
  }
9521
9412
  return writer;
9522
9413
  },
@@ -9529,11 +9420,11 @@ export const ListNotificationsRequest = {
9529
9420
  const tag = reader.uint32();
9530
9421
  switch (tag >>> 3) {
9531
9422
  case 1:
9532
- if (tag !== 10) {
9423
+ if (tag !== 8) {
9533
9424
  break;
9534
9425
  }
9535
9426
 
9536
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
9427
+ message.limit = reader.int32();
9537
9428
  continue;
9538
9429
  case 2:
9539
9430
  if (tag !== 16) {
@@ -9557,11 +9448,11 @@ export const ListNotificationsRequest = {
9557
9448
  message.category = reader.int32();
9558
9449
  continue;
9559
9450
  case 5:
9560
- if (tag !== 42) {
9451
+ if (tag !== 40) {
9561
9452
  break;
9562
9453
  }
9563
9454
 
9564
- message.direction = Int32Value.decode(reader, reader.uint32()).value;
9455
+ message.direction = reader.int32();
9565
9456
  continue;
9566
9457
  }
9567
9458
  if ((tag & 7) === 4 || tag === 0) {
@@ -9574,18 +9465,18 @@ export const ListNotificationsRequest = {
9574
9465
 
9575
9466
  fromJSON(object: any): ListNotificationsRequest {
9576
9467
  return {
9577
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
9468
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
9578
9469
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
9579
9470
  notification_id: isSet(object.notification_id) ? globalThis.String(object.notification_id) : "0",
9580
9471
  category: isSet(object.category) ? globalThis.Number(object.category) : 0,
9581
- direction: isSet(object.direction) ? Number(object.direction) : undefined,
9472
+ direction: isSet(object.direction) ? globalThis.Number(object.direction) : 0,
9582
9473
  };
9583
9474
  },
9584
9475
 
9585
9476
  toJSON(message: ListNotificationsRequest): unknown {
9586
9477
  const obj: any = {};
9587
- if (message.limit !== undefined) {
9588
- obj.limit = message.limit;
9478
+ if (message.limit !== 0) {
9479
+ obj.limit = Math.round(message.limit);
9589
9480
  }
9590
9481
  if (message.clan_id !== "0") {
9591
9482
  obj.clan_id = message.clan_id;
@@ -9596,8 +9487,8 @@ export const ListNotificationsRequest = {
9596
9487
  if (message.category !== 0) {
9597
9488
  obj.category = Math.round(message.category);
9598
9489
  }
9599
- if (message.direction !== undefined) {
9600
- obj.direction = message.direction;
9490
+ if (message.direction !== 0) {
9491
+ obj.direction = Math.round(message.direction);
9601
9492
  }
9602
9493
  return obj;
9603
9494
  },
@@ -9607,17 +9498,17 @@ export const ListNotificationsRequest = {
9607
9498
  },
9608
9499
  fromPartial<I extends Exact<DeepPartial<ListNotificationsRequest>, I>>(object: I): ListNotificationsRequest {
9609
9500
  const message = createBaseListNotificationsRequest();
9610
- message.limit = object.limit ?? undefined;
9501
+ message.limit = object.limit ?? 0;
9611
9502
  message.clan_id = object.clan_id ?? "0";
9612
9503
  message.notification_id = object.notification_id ?? "0";
9613
9504
  message.category = object.category ?? 0;
9614
- message.direction = object.direction ?? undefined;
9505
+ message.direction = object.direction ?? 0;
9615
9506
  return message;
9616
9507
  },
9617
9508
  };
9618
9509
 
9619
9510
  function createBaseListUserGroupsRequest(): ListUserGroupsRequest {
9620
- return { user_id: "0", limit: undefined, state: undefined, cursor: "" };
9511
+ return { user_id: "0", limit: 0, state: 0, cursor: "" };
9621
9512
  }
9622
9513
 
9623
9514
  export const ListUserGroupsRequest = {
@@ -9625,11 +9516,11 @@ export const ListUserGroupsRequest = {
9625
9516
  if (message.user_id !== "0") {
9626
9517
  writer.uint32(8).int64(message.user_id);
9627
9518
  }
9628
- if (message.limit !== undefined) {
9629
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
9519
+ if (message.limit !== 0) {
9520
+ writer.uint32(16).int32(message.limit);
9630
9521
  }
9631
- if (message.state !== undefined) {
9632
- Int32Value.encode({ value: message.state! }, writer.uint32(26).fork()).ldelim();
9522
+ if (message.state !== 0) {
9523
+ writer.uint32(24).int32(message.state);
9633
9524
  }
9634
9525
  if (message.cursor !== "") {
9635
9526
  writer.uint32(34).string(message.cursor);
@@ -9652,18 +9543,18 @@ export const ListUserGroupsRequest = {
9652
9543
  message.user_id = longToString(reader.int64() as Long);
9653
9544
  continue;
9654
9545
  case 2:
9655
- if (tag !== 18) {
9546
+ if (tag !== 16) {
9656
9547
  break;
9657
9548
  }
9658
9549
 
9659
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
9550
+ message.limit = reader.int32();
9660
9551
  continue;
9661
9552
  case 3:
9662
- if (tag !== 26) {
9553
+ if (tag !== 24) {
9663
9554
  break;
9664
9555
  }
9665
9556
 
9666
- message.state = Int32Value.decode(reader, reader.uint32()).value;
9557
+ message.state = reader.int32();
9667
9558
  continue;
9668
9559
  case 4:
9669
9560
  if (tag !== 34) {
@@ -9684,8 +9575,8 @@ export const ListUserGroupsRequest = {
9684
9575
  fromJSON(object: any): ListUserGroupsRequest {
9685
9576
  return {
9686
9577
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "0",
9687
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
9688
- state: isSet(object.state) ? Number(object.state) : undefined,
9578
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
9579
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
9689
9580
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
9690
9581
  };
9691
9582
  },
@@ -9695,11 +9586,11 @@ export const ListUserGroupsRequest = {
9695
9586
  if (message.user_id !== "0") {
9696
9587
  obj.user_id = message.user_id;
9697
9588
  }
9698
- if (message.limit !== undefined) {
9699
- obj.limit = message.limit;
9589
+ if (message.limit !== 0) {
9590
+ obj.limit = Math.round(message.limit);
9700
9591
  }
9701
- if (message.state !== undefined) {
9702
- obj.state = message.state;
9592
+ if (message.state !== 0) {
9593
+ obj.state = Math.round(message.state);
9703
9594
  }
9704
9595
  if (message.cursor !== "") {
9705
9596
  obj.cursor = message.cursor;
@@ -9713,8 +9604,8 @@ export const ListUserGroupsRequest = {
9713
9604
  fromPartial<I extends Exact<DeepPartial<ListUserGroupsRequest>, I>>(object: I): ListUserGroupsRequest {
9714
9605
  const message = createBaseListUserGroupsRequest();
9715
9606
  message.user_id = object.user_id ?? "0";
9716
- message.limit = object.limit ?? undefined;
9717
- message.state = object.state ?? undefined;
9607
+ message.limit = object.limit ?? 0;
9608
+ message.state = object.state ?? 0;
9718
9609
  message.cursor = object.cursor ?? "";
9719
9610
  return message;
9720
9611
  },
@@ -10929,7 +10820,7 @@ function createBaseUpdateGroupRequest(): UpdateGroupRequest {
10929
10820
  description: undefined,
10930
10821
  lang_tag: undefined,
10931
10822
  avatar_url: undefined,
10932
- open: undefined,
10823
+ open: false,
10933
10824
  };
10934
10825
  }
10935
10826
 
@@ -10950,8 +10841,8 @@ export const UpdateGroupRequest = {
10950
10841
  if (message.avatar_url !== undefined) {
10951
10842
  StringValue.encode({ value: message.avatar_url! }, writer.uint32(42).fork()).ldelim();
10952
10843
  }
10953
- if (message.open !== undefined) {
10954
- BoolValue.encode({ value: message.open! }, writer.uint32(50).fork()).ldelim();
10844
+ if (message.open !== false) {
10845
+ writer.uint32(48).bool(message.open);
10955
10846
  }
10956
10847
  return writer;
10957
10848
  },
@@ -10999,11 +10890,11 @@ export const UpdateGroupRequest = {
10999
10890
  message.avatar_url = StringValue.decode(reader, reader.uint32()).value;
11000
10891
  continue;
11001
10892
  case 6:
11002
- if (tag !== 50) {
10893
+ if (tag !== 48) {
11003
10894
  break;
11004
10895
  }
11005
10896
 
11006
- message.open = BoolValue.decode(reader, reader.uint32()).value;
10897
+ message.open = reader.bool();
11007
10898
  continue;
11008
10899
  }
11009
10900
  if ((tag & 7) === 4 || tag === 0) {
@@ -11021,7 +10912,7 @@ export const UpdateGroupRequest = {
11021
10912
  description: isSet(object.description) ? String(object.description) : undefined,
11022
10913
  lang_tag: isSet(object.lang_tag) ? String(object.lang_tag) : undefined,
11023
10914
  avatar_url: isSet(object.avatar_url) ? String(object.avatar_url) : undefined,
11024
- open: isSet(object.open) ? Boolean(object.open) : undefined,
10915
+ open: isSet(object.open) ? globalThis.Boolean(object.open) : false,
11025
10916
  };
11026
10917
  },
11027
10918
 
@@ -11042,7 +10933,7 @@ export const UpdateGroupRequest = {
11042
10933
  if (message.avatar_url !== undefined) {
11043
10934
  obj.avatar_url = message.avatar_url;
11044
10935
  }
11045
- if (message.open !== undefined) {
10936
+ if (message.open !== false) {
11046
10937
  obj.open = message.open;
11047
10938
  }
11048
10939
  return obj;
@@ -11058,7 +10949,7 @@ export const UpdateGroupRequest = {
11058
10949
  message.description = object.description ?? undefined;
11059
10950
  message.lang_tag = object.lang_tag ?? undefined;
11060
10951
  message.avatar_url = object.avatar_url ?? undefined;
11061
- message.open = object.open ?? undefined;
10952
+ message.open = object.open ?? false;
11062
10953
  return message;
11063
10954
  },
11064
10955
  };
@@ -12635,16 +12526,16 @@ export const DeleteClanDescRequest = {
12635
12526
  };
12636
12527
 
12637
12528
  function createBaseListClanDescRequest(): ListClanDescRequest {
12638
- return { limit: undefined, state: undefined, cursor: "" };
12529
+ return { limit: 0, state: 0, cursor: "" };
12639
12530
  }
12640
12531
 
12641
12532
  export const ListClanDescRequest = {
12642
12533
  encode(message: ListClanDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
12643
- if (message.limit !== undefined) {
12644
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
12534
+ if (message.limit !== 0) {
12535
+ writer.uint32(8).int32(message.limit);
12645
12536
  }
12646
- if (message.state !== undefined) {
12647
- Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
12537
+ if (message.state !== 0) {
12538
+ writer.uint32(16).int32(message.state);
12648
12539
  }
12649
12540
  if (message.cursor !== "") {
12650
12541
  writer.uint32(26).string(message.cursor);
@@ -12660,18 +12551,18 @@ export const ListClanDescRequest = {
12660
12551
  const tag = reader.uint32();
12661
12552
  switch (tag >>> 3) {
12662
12553
  case 1:
12663
- if (tag !== 10) {
12554
+ if (tag !== 8) {
12664
12555
  break;
12665
12556
  }
12666
12557
 
12667
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
12558
+ message.limit = reader.int32();
12668
12559
  continue;
12669
12560
  case 2:
12670
- if (tag !== 18) {
12561
+ if (tag !== 16) {
12671
12562
  break;
12672
12563
  }
12673
12564
 
12674
- message.state = Int32Value.decode(reader, reader.uint32()).value;
12565
+ message.state = reader.int32();
12675
12566
  continue;
12676
12567
  case 3:
12677
12568
  if (tag !== 26) {
@@ -12691,19 +12582,19 @@ export const ListClanDescRequest = {
12691
12582
 
12692
12583
  fromJSON(object: any): ListClanDescRequest {
12693
12584
  return {
12694
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
12695
- state: isSet(object.state) ? Number(object.state) : undefined,
12585
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
12586
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
12696
12587
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
12697
12588
  };
12698
12589
  },
12699
12590
 
12700
12591
  toJSON(message: ListClanDescRequest): unknown {
12701
12592
  const obj: any = {};
12702
- if (message.limit !== undefined) {
12703
- obj.limit = message.limit;
12593
+ if (message.limit !== 0) {
12594
+ obj.limit = Math.round(message.limit);
12704
12595
  }
12705
- if (message.state !== undefined) {
12706
- obj.state = message.state;
12596
+ if (message.state !== 0) {
12597
+ obj.state = Math.round(message.state);
12707
12598
  }
12708
12599
  if (message.cursor !== "") {
12709
12600
  obj.cursor = message.cursor;
@@ -12716,8 +12607,8 @@ export const ListClanDescRequest = {
12716
12607
  },
12717
12608
  fromPartial<I extends Exact<DeepPartial<ListClanDescRequest>, I>>(object: I): ListClanDescRequest {
12718
12609
  const message = createBaseListClanDescRequest();
12719
- message.limit = object.limit ?? undefined;
12720
- message.state = object.state ?? undefined;
12610
+ message.limit = object.limit ?? 0;
12611
+ message.state = object.state ?? 0;
12721
12612
  message.cursor = object.cursor ?? "";
12722
12613
  return message;
12723
12614
  },
@@ -14520,16 +14411,16 @@ export const CategoryDescList = {
14520
14411
  };
14521
14412
 
14522
14413
  function createBaseListCategoryDescsRequest(): ListCategoryDescsRequest {
14523
- return { limit: undefined, state: undefined, cursor: "" };
14414
+ return { limit: 0, state: 0, cursor: "" };
14524
14415
  }
14525
14416
 
14526
14417
  export const ListCategoryDescsRequest = {
14527
14418
  encode(message: ListCategoryDescsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
14528
- if (message.limit !== undefined) {
14529
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
14419
+ if (message.limit !== 0) {
14420
+ writer.uint32(8).int32(message.limit);
14530
14421
  }
14531
- if (message.state !== undefined) {
14532
- Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
14422
+ if (message.state !== 0) {
14423
+ writer.uint32(16).int32(message.state);
14533
14424
  }
14534
14425
  if (message.cursor !== "") {
14535
14426
  writer.uint32(26).string(message.cursor);
@@ -14545,18 +14436,18 @@ export const ListCategoryDescsRequest = {
14545
14436
  const tag = reader.uint32();
14546
14437
  switch (tag >>> 3) {
14547
14438
  case 1:
14548
- if (tag !== 10) {
14439
+ if (tag !== 8) {
14549
14440
  break;
14550
14441
  }
14551
14442
 
14552
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
14443
+ message.limit = reader.int32();
14553
14444
  continue;
14554
14445
  case 2:
14555
- if (tag !== 18) {
14446
+ if (tag !== 16) {
14556
14447
  break;
14557
14448
  }
14558
14449
 
14559
- message.state = Int32Value.decode(reader, reader.uint32()).value;
14450
+ message.state = reader.int32();
14560
14451
  continue;
14561
14452
  case 3:
14562
14453
  if (tag !== 26) {
@@ -14576,19 +14467,19 @@ export const ListCategoryDescsRequest = {
14576
14467
 
14577
14468
  fromJSON(object: any): ListCategoryDescsRequest {
14578
14469
  return {
14579
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
14580
- state: isSet(object.state) ? Number(object.state) : undefined,
14470
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
14471
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
14581
14472
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
14582
14473
  };
14583
14474
  },
14584
14475
 
14585
14476
  toJSON(message: ListCategoryDescsRequest): unknown {
14586
14477
  const obj: any = {};
14587
- if (message.limit !== undefined) {
14588
- obj.limit = message.limit;
14478
+ if (message.limit !== 0) {
14479
+ obj.limit = Math.round(message.limit);
14589
14480
  }
14590
- if (message.state !== undefined) {
14591
- obj.state = message.state;
14481
+ if (message.state !== 0) {
14482
+ obj.state = Math.round(message.state);
14592
14483
  }
14593
14484
  if (message.cursor !== "") {
14594
14485
  obj.cursor = message.cursor;
@@ -14601,8 +14492,8 @@ export const ListCategoryDescsRequest = {
14601
14492
  },
14602
14493
  fromPartial<I extends Exact<DeepPartial<ListCategoryDescsRequest>, I>>(object: I): ListCategoryDescsRequest {
14603
14494
  const message = createBaseListCategoryDescsRequest();
14604
- message.limit = object.limit ?? undefined;
14605
- message.state = object.state ?? undefined;
14495
+ message.limit = object.limit ?? 0;
14496
+ message.state = object.state ?? 0;
14606
14497
  message.cursor = object.cursor ?? "";
14607
14498
  return message;
14608
14499
  },
@@ -15427,16 +15318,16 @@ export const ChannelDescListNoPool = {
15427
15318
  };
15428
15319
 
15429
15320
  function createBaseListThreadRequest(): ListThreadRequest {
15430
- return { limit: undefined, state: undefined, clan_id: "0", channel_id: "0", thread_id: "0", page: undefined };
15321
+ return { limit: 0, state: 0, clan_id: "0", channel_id: "0", thread_id: "0", page: 0 };
15431
15322
  }
15432
15323
 
15433
15324
  export const ListThreadRequest = {
15434
15325
  encode(message: ListThreadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15435
- if (message.limit !== undefined) {
15436
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
15326
+ if (message.limit !== 0) {
15327
+ writer.uint32(8).int32(message.limit);
15437
15328
  }
15438
- if (message.state !== undefined) {
15439
- Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
15329
+ if (message.state !== 0) {
15330
+ writer.uint32(16).int32(message.state);
15440
15331
  }
15441
15332
  if (message.clan_id !== "0") {
15442
15333
  writer.uint32(24).int64(message.clan_id);
@@ -15447,8 +15338,8 @@ export const ListThreadRequest = {
15447
15338
  if (message.thread_id !== "0") {
15448
15339
  writer.uint32(40).int64(message.thread_id);
15449
15340
  }
15450
- if (message.page !== undefined) {
15451
- Int32Value.encode({ value: message.page! }, writer.uint32(50).fork()).ldelim();
15341
+ if (message.page !== 0) {
15342
+ writer.uint32(48).int32(message.page);
15452
15343
  }
15453
15344
  return writer;
15454
15345
  },
@@ -15461,18 +15352,18 @@ export const ListThreadRequest = {
15461
15352
  const tag = reader.uint32();
15462
15353
  switch (tag >>> 3) {
15463
15354
  case 1:
15464
- if (tag !== 10) {
15355
+ if (tag !== 8) {
15465
15356
  break;
15466
15357
  }
15467
15358
 
15468
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
15359
+ message.limit = reader.int32();
15469
15360
  continue;
15470
15361
  case 2:
15471
- if (tag !== 18) {
15362
+ if (tag !== 16) {
15472
15363
  break;
15473
15364
  }
15474
15365
 
15475
- message.state = Int32Value.decode(reader, reader.uint32()).value;
15366
+ message.state = reader.int32();
15476
15367
  continue;
15477
15368
  case 3:
15478
15369
  if (tag !== 24) {
@@ -15496,11 +15387,11 @@ export const ListThreadRequest = {
15496
15387
  message.thread_id = longToString(reader.int64() as Long);
15497
15388
  continue;
15498
15389
  case 6:
15499
- if (tag !== 50) {
15390
+ if (tag !== 48) {
15500
15391
  break;
15501
15392
  }
15502
15393
 
15503
- message.page = Int32Value.decode(reader, reader.uint32()).value;
15394
+ message.page = reader.int32();
15504
15395
  continue;
15505
15396
  }
15506
15397
  if ((tag & 7) === 4 || tag === 0) {
@@ -15513,22 +15404,22 @@ export const ListThreadRequest = {
15513
15404
 
15514
15405
  fromJSON(object: any): ListThreadRequest {
15515
15406
  return {
15516
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
15517
- state: isSet(object.state) ? Number(object.state) : undefined,
15407
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
15408
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
15518
15409
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
15519
15410
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
15520
15411
  thread_id: isSet(object.thread_id) ? globalThis.String(object.thread_id) : "0",
15521
- page: isSet(object.page) ? Number(object.page) : undefined,
15412
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
15522
15413
  };
15523
15414
  },
15524
15415
 
15525
15416
  toJSON(message: ListThreadRequest): unknown {
15526
15417
  const obj: any = {};
15527
- if (message.limit !== undefined) {
15528
- obj.limit = message.limit;
15418
+ if (message.limit !== 0) {
15419
+ obj.limit = Math.round(message.limit);
15529
15420
  }
15530
- if (message.state !== undefined) {
15531
- obj.state = message.state;
15421
+ if (message.state !== 0) {
15422
+ obj.state = Math.round(message.state);
15532
15423
  }
15533
15424
  if (message.clan_id !== "0") {
15534
15425
  obj.clan_id = message.clan_id;
@@ -15539,8 +15430,8 @@ export const ListThreadRequest = {
15539
15430
  if (message.thread_id !== "0") {
15540
15431
  obj.thread_id = message.thread_id;
15541
15432
  }
15542
- if (message.page !== undefined) {
15543
- obj.page = message.page;
15433
+ if (message.page !== 0) {
15434
+ obj.page = Math.round(message.page);
15544
15435
  }
15545
15436
  return obj;
15546
15437
  },
@@ -15550,27 +15441,27 @@ export const ListThreadRequest = {
15550
15441
  },
15551
15442
  fromPartial<I extends Exact<DeepPartial<ListThreadRequest>, I>>(object: I): ListThreadRequest {
15552
15443
  const message = createBaseListThreadRequest();
15553
- message.limit = object.limit ?? undefined;
15554
- message.state = object.state ?? undefined;
15444
+ message.limit = object.limit ?? 0;
15445
+ message.state = object.state ?? 0;
15555
15446
  message.clan_id = object.clan_id ?? "0";
15556
15447
  message.channel_id = object.channel_id ?? "0";
15557
15448
  message.thread_id = object.thread_id ?? "0";
15558
- message.page = object.page ?? undefined;
15449
+ message.page = object.page ?? 0;
15559
15450
  return message;
15560
15451
  },
15561
15452
  };
15562
15453
 
15563
15454
  function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
15564
- return { limit: undefined, state: undefined, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
15455
+ return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
15565
15456
  }
15566
15457
 
15567
15458
  export const ListChannelDescsRequest = {
15568
15459
  encode(message: ListChannelDescsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15569
- if (message.limit !== undefined) {
15570
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
15460
+ if (message.limit !== 0) {
15461
+ writer.uint32(8).int32(message.limit);
15571
15462
  }
15572
- if (message.state !== undefined) {
15573
- Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
15463
+ if (message.state !== 0) {
15464
+ writer.uint32(16).int32(message.state);
15574
15465
  }
15575
15466
  if (message.cursor !== "") {
15576
15467
  writer.uint32(26).string(message.cursor);
@@ -15595,18 +15486,18 @@ export const ListChannelDescsRequest = {
15595
15486
  const tag = reader.uint32();
15596
15487
  switch (tag >>> 3) {
15597
15488
  case 1:
15598
- if (tag !== 10) {
15489
+ if (tag !== 8) {
15599
15490
  break;
15600
15491
  }
15601
15492
 
15602
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
15493
+ message.limit = reader.int32();
15603
15494
  continue;
15604
15495
  case 2:
15605
- if (tag !== 18) {
15496
+ if (tag !== 16) {
15606
15497
  break;
15607
15498
  }
15608
15499
 
15609
- message.state = Int32Value.decode(reader, reader.uint32()).value;
15500
+ message.state = reader.int32();
15610
15501
  continue;
15611
15502
  case 3:
15612
15503
  if (tag !== 26) {
@@ -15647,8 +15538,8 @@ export const ListChannelDescsRequest = {
15647
15538
 
15648
15539
  fromJSON(object: any): ListChannelDescsRequest {
15649
15540
  return {
15650
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
15651
- state: isSet(object.state) ? Number(object.state) : undefined,
15541
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
15542
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
15652
15543
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
15653
15544
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
15654
15545
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
@@ -15658,11 +15549,11 @@ export const ListChannelDescsRequest = {
15658
15549
 
15659
15550
  toJSON(message: ListChannelDescsRequest): unknown {
15660
15551
  const obj: any = {};
15661
- if (message.limit !== undefined) {
15662
- obj.limit = message.limit;
15552
+ if (message.limit !== 0) {
15553
+ obj.limit = Math.round(message.limit);
15663
15554
  }
15664
- if (message.state !== undefined) {
15665
- obj.state = message.state;
15555
+ if (message.state !== 0) {
15556
+ obj.state = Math.round(message.state);
15666
15557
  }
15667
15558
  if (message.cursor !== "") {
15668
15559
  obj.cursor = message.cursor;
@@ -15684,8 +15575,8 @@ export const ListChannelDescsRequest = {
15684
15575
  },
15685
15576
  fromPartial<I extends Exact<DeepPartial<ListChannelDescsRequest>, I>>(object: I): ListChannelDescsRequest {
15686
15577
  const message = createBaseListChannelDescsRequest();
15687
- message.limit = object.limit ?? undefined;
15688
- message.state = object.state ?? undefined;
15578
+ message.limit = object.limit ?? 0;
15579
+ message.state = object.state ?? 0;
15689
15580
  message.cursor = object.cursor ?? "";
15690
15581
  message.clan_id = object.clan_id ?? "0";
15691
15582
  message.channel_type = object.channel_type ?? 0;
@@ -19235,326 +19126,6 @@ export const SetMuteRequest = {
19235
19126
  },
19236
19127
  };
19237
19128
 
19238
- function createBaseHashtagDmListRequest(): HashtagDmListRequest {
19239
- return { user_id: [], limit: undefined };
19240
- }
19241
-
19242
- export const HashtagDmListRequest = {
19243
- encode(message: HashtagDmListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
19244
- writer.uint32(10).fork();
19245
- for (const v of message.user_id) {
19246
- writer.int64(v);
19247
- }
19248
- writer.ldelim();
19249
- if (message.limit !== undefined) {
19250
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
19251
- }
19252
- return writer;
19253
- },
19254
-
19255
- decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDmListRequest {
19256
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19257
- let end = length === undefined ? reader.len : reader.pos + length;
19258
- const message = createBaseHashtagDmListRequest();
19259
- while (reader.pos < end) {
19260
- const tag = reader.uint32();
19261
- switch (tag >>> 3) {
19262
- case 1:
19263
- if (tag === 8) {
19264
- message.user_id.push(longToString(reader.int64() as Long));
19265
-
19266
- continue;
19267
- }
19268
-
19269
- if (tag === 10) {
19270
- const end2 = reader.uint32() + reader.pos;
19271
- while (reader.pos < end2) {
19272
- message.user_id.push(longToString(reader.int64() as Long));
19273
- }
19274
-
19275
- continue;
19276
- }
19277
-
19278
- break;
19279
- case 2:
19280
- if (tag !== 18) {
19281
- break;
19282
- }
19283
-
19284
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
19285
- continue;
19286
- }
19287
- if ((tag & 7) === 4 || tag === 0) {
19288
- break;
19289
- }
19290
- reader.skipType(tag & 7);
19291
- }
19292
- return message;
19293
- },
19294
-
19295
- fromJSON(object: any): HashtagDmListRequest {
19296
- return {
19297
- user_id: globalThis.Array.isArray(object?.user_id) ? object.user_id.map((e: any) => globalThis.String(e)) : [],
19298
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
19299
- };
19300
- },
19301
-
19302
- toJSON(message: HashtagDmListRequest): unknown {
19303
- const obj: any = {};
19304
- if (message.user_id?.length) {
19305
- obj.user_id = message.user_id;
19306
- }
19307
- if (message.limit !== undefined) {
19308
- obj.limit = message.limit;
19309
- }
19310
- return obj;
19311
- },
19312
-
19313
- create<I extends Exact<DeepPartial<HashtagDmListRequest>, I>>(base?: I): HashtagDmListRequest {
19314
- return HashtagDmListRequest.fromPartial(base ?? ({} as any));
19315
- },
19316
- fromPartial<I extends Exact<DeepPartial<HashtagDmListRequest>, I>>(object: I): HashtagDmListRequest {
19317
- const message = createBaseHashtagDmListRequest();
19318
- message.user_id = object.user_id?.map((e) => e) || [];
19319
- message.limit = object.limit ?? undefined;
19320
- return message;
19321
- },
19322
- };
19323
-
19324
- function createBaseHashtagDmList(): HashtagDmList {
19325
- return { hashtag_dm: [] };
19326
- }
19327
-
19328
- export const HashtagDmList = {
19329
- encode(message: HashtagDmList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
19330
- for (const v of message.hashtag_dm) {
19331
- HashtagDm.encode(v!, writer.uint32(10).fork()).ldelim();
19332
- }
19333
- return writer;
19334
- },
19335
-
19336
- decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDmList {
19337
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19338
- let end = length === undefined ? reader.len : reader.pos + length;
19339
- const message = createBaseHashtagDmList();
19340
- while (reader.pos < end) {
19341
- const tag = reader.uint32();
19342
- switch (tag >>> 3) {
19343
- case 1:
19344
- if (tag !== 10) {
19345
- break;
19346
- }
19347
-
19348
- message.hashtag_dm.push(HashtagDm.decode(reader, reader.uint32()));
19349
- continue;
19350
- }
19351
- if ((tag & 7) === 4 || tag === 0) {
19352
- break;
19353
- }
19354
- reader.skipType(tag & 7);
19355
- }
19356
- return message;
19357
- },
19358
-
19359
- fromJSON(object: any): HashtagDmList {
19360
- return {
19361
- hashtag_dm: globalThis.Array.isArray(object?.hashtag_dm)
19362
- ? object.hashtag_dm.map((e: any) => HashtagDm.fromJSON(e))
19363
- : [],
19364
- };
19365
- },
19366
-
19367
- toJSON(message: HashtagDmList): unknown {
19368
- const obj: any = {};
19369
- if (message.hashtag_dm?.length) {
19370
- obj.hashtag_dm = message.hashtag_dm.map((e) => HashtagDm.toJSON(e));
19371
- }
19372
- return obj;
19373
- },
19374
-
19375
- create<I extends Exact<DeepPartial<HashtagDmList>, I>>(base?: I): HashtagDmList {
19376
- return HashtagDmList.fromPartial(base ?? ({} as any));
19377
- },
19378
- fromPartial<I extends Exact<DeepPartial<HashtagDmList>, I>>(object: I): HashtagDmList {
19379
- const message = createBaseHashtagDmList();
19380
- message.hashtag_dm = object.hashtag_dm?.map((e) => HashtagDm.fromPartial(e)) || [];
19381
- return message;
19382
- },
19383
- };
19384
-
19385
- function createBaseHashtagDm(): HashtagDm {
19386
- return {
19387
- channel_id: "0",
19388
- channel_label: "",
19389
- clan_id: "0",
19390
- clan_name: "",
19391
- meeting_code: "",
19392
- type: 0,
19393
- channel_private: 0,
19394
- parent_id: "0",
19395
- };
19396
- }
19397
-
19398
- export const HashtagDm = {
19399
- encode(message: HashtagDm, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
19400
- if (message.channel_id !== "0") {
19401
- writer.uint32(8).int64(message.channel_id);
19402
- }
19403
- if (message.channel_label !== "") {
19404
- writer.uint32(18).string(message.channel_label);
19405
- }
19406
- if (message.clan_id !== "0") {
19407
- writer.uint32(24).int64(message.clan_id);
19408
- }
19409
- if (message.clan_name !== "") {
19410
- writer.uint32(34).string(message.clan_name);
19411
- }
19412
- if (message.meeting_code !== "") {
19413
- writer.uint32(42).string(message.meeting_code);
19414
- }
19415
- if (message.type !== 0) {
19416
- writer.uint32(48).int32(message.type);
19417
- }
19418
- if (message.channel_private !== 0) {
19419
- writer.uint32(56).int32(message.channel_private);
19420
- }
19421
- if (message.parent_id !== "0") {
19422
- writer.uint32(64).int64(message.parent_id);
19423
- }
19424
- return writer;
19425
- },
19426
-
19427
- decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDm {
19428
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19429
- let end = length === undefined ? reader.len : reader.pos + length;
19430
- const message = createBaseHashtagDm();
19431
- while (reader.pos < end) {
19432
- const tag = reader.uint32();
19433
- switch (tag >>> 3) {
19434
- case 1:
19435
- if (tag !== 8) {
19436
- break;
19437
- }
19438
-
19439
- message.channel_id = longToString(reader.int64() as Long);
19440
- continue;
19441
- case 2:
19442
- if (tag !== 18) {
19443
- break;
19444
- }
19445
-
19446
- message.channel_label = reader.string();
19447
- continue;
19448
- case 3:
19449
- if (tag !== 24) {
19450
- break;
19451
- }
19452
-
19453
- message.clan_id = longToString(reader.int64() as Long);
19454
- continue;
19455
- case 4:
19456
- if (tag !== 34) {
19457
- break;
19458
- }
19459
-
19460
- message.clan_name = reader.string();
19461
- continue;
19462
- case 5:
19463
- if (tag !== 42) {
19464
- break;
19465
- }
19466
-
19467
- message.meeting_code = reader.string();
19468
- continue;
19469
- case 6:
19470
- if (tag !== 48) {
19471
- break;
19472
- }
19473
-
19474
- message.type = reader.int32();
19475
- continue;
19476
- case 7:
19477
- if (tag !== 56) {
19478
- break;
19479
- }
19480
-
19481
- message.channel_private = reader.int32();
19482
- continue;
19483
- case 8:
19484
- if (tag !== 64) {
19485
- break;
19486
- }
19487
-
19488
- message.parent_id = longToString(reader.int64() as Long);
19489
- continue;
19490
- }
19491
- if ((tag & 7) === 4 || tag === 0) {
19492
- break;
19493
- }
19494
- reader.skipType(tag & 7);
19495
- }
19496
- return message;
19497
- },
19498
-
19499
- fromJSON(object: any): HashtagDm {
19500
- return {
19501
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
19502
- channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
19503
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
19504
- clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
19505
- meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
19506
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
19507
- channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
19508
- parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "0",
19509
- };
19510
- },
19511
-
19512
- toJSON(message: HashtagDm): unknown {
19513
- const obj: any = {};
19514
- if (message.channel_id !== "0") {
19515
- obj.channel_id = message.channel_id;
19516
- }
19517
- if (message.channel_label !== "") {
19518
- obj.channel_label = message.channel_label;
19519
- }
19520
- if (message.clan_id !== "0") {
19521
- obj.clan_id = message.clan_id;
19522
- }
19523
- if (message.clan_name !== "") {
19524
- obj.clan_name = message.clan_name;
19525
- }
19526
- if (message.meeting_code !== "") {
19527
- obj.meeting_code = message.meeting_code;
19528
- }
19529
- if (message.type !== 0) {
19530
- obj.type = Math.round(message.type);
19531
- }
19532
- if (message.channel_private !== 0) {
19533
- obj.channel_private = Math.round(message.channel_private);
19534
- }
19535
- if (message.parent_id !== "0") {
19536
- obj.parent_id = message.parent_id;
19537
- }
19538
- return obj;
19539
- },
19540
-
19541
- create<I extends Exact<DeepPartial<HashtagDm>, I>>(base?: I): HashtagDm {
19542
- return HashtagDm.fromPartial(base ?? ({} as any));
19543
- },
19544
- fromPartial<I extends Exact<DeepPartial<HashtagDm>, I>>(object: I): HashtagDm {
19545
- const message = createBaseHashtagDm();
19546
- message.channel_id = object.channel_id ?? "0";
19547
- message.channel_label = object.channel_label ?? "";
19548
- message.clan_id = object.clan_id ?? "0";
19549
- message.clan_name = object.clan_name ?? "";
19550
- message.meeting_code = object.meeting_code ?? "";
19551
- message.type = object.type ?? 0;
19552
- message.channel_private = object.channel_private ?? 0;
19553
- message.parent_id = object.parent_id ?? "0";
19554
- return message;
19555
- },
19556
- };
19557
-
19558
19129
  function createBaseNotificationChannelCategorySettingList(): NotificationChannelCategorySettingList {
19559
19130
  return { notification_channel_category_settings_list: [] };
19560
19131
  }
@@ -20119,7 +19690,7 @@ export const ListPermissionsRequest = {
20119
19690
  };
20120
19691
 
20121
19692
  function createBaseListRoleUsersRequest(): ListRoleUsersRequest {
20122
- return { role_id: "0", limit: undefined, cursor: "" };
19693
+ return { role_id: "0", limit: 0, cursor: "" };
20123
19694
  }
20124
19695
 
20125
19696
  export const ListRoleUsersRequest = {
@@ -20127,8 +19698,8 @@ export const ListRoleUsersRequest = {
20127
19698
  if (message.role_id !== "0") {
20128
19699
  writer.uint32(8).int64(message.role_id);
20129
19700
  }
20130
- if (message.limit !== undefined) {
20131
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
19701
+ if (message.limit !== 0) {
19702
+ writer.uint32(16).int32(message.limit);
20132
19703
  }
20133
19704
  if (message.cursor !== "") {
20134
19705
  writer.uint32(26).string(message.cursor);
@@ -20151,11 +19722,11 @@ export const ListRoleUsersRequest = {
20151
19722
  message.role_id = longToString(reader.int64() as Long);
20152
19723
  continue;
20153
19724
  case 2:
20154
- if (tag !== 18) {
19725
+ if (tag !== 16) {
20155
19726
  break;
20156
19727
  }
20157
19728
 
20158
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
19729
+ message.limit = reader.int32();
20159
19730
  continue;
20160
19731
  case 3:
20161
19732
  if (tag !== 26) {
@@ -20176,7 +19747,7 @@ export const ListRoleUsersRequest = {
20176
19747
  fromJSON(object: any): ListRoleUsersRequest {
20177
19748
  return {
20178
19749
  role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "0",
20179
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
19750
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
20180
19751
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
20181
19752
  };
20182
19753
  },
@@ -20186,8 +19757,8 @@ export const ListRoleUsersRequest = {
20186
19757
  if (message.role_id !== "0") {
20187
19758
  obj.role_id = message.role_id;
20188
19759
  }
20189
- if (message.limit !== undefined) {
20190
- obj.limit = message.limit;
19760
+ if (message.limit !== 0) {
19761
+ obj.limit = Math.round(message.limit);
20191
19762
  }
20192
19763
  if (message.cursor !== "") {
20193
19764
  obj.cursor = message.cursor;
@@ -20201,7 +19772,7 @@ export const ListRoleUsersRequest = {
20201
19772
  fromPartial<I extends Exact<DeepPartial<ListRoleUsersRequest>, I>>(object: I): ListRoleUsersRequest {
20202
19773
  const message = createBaseListRoleUsersRequest();
20203
19774
  message.role_id = object.role_id ?? "0";
20204
- message.limit = object.limit ?? undefined;
19775
+ message.limit = object.limit ?? 0;
20205
19776
  message.cursor = object.cursor ?? "";
20206
19777
  return message;
20207
19778
  },
@@ -20903,7 +20474,7 @@ function createBaseCreateEventRequest(): CreateEventRequest {
20903
20474
  repeat_type: 0,
20904
20475
  creator_id: "0",
20905
20476
  user_id: "0",
20906
- is_private: undefined,
20477
+ is_private: false,
20907
20478
  meet_room: undefined,
20908
20479
  };
20909
20480
  }
@@ -20955,8 +20526,8 @@ export const CreateEventRequest = {
20955
20526
  if (message.user_id !== "0") {
20956
20527
  writer.uint32(120).int64(message.user_id);
20957
20528
  }
20958
- if (message.is_private !== undefined) {
20959
- BoolValue.encode({ value: message.is_private! }, writer.uint32(130).fork()).ldelim();
20529
+ if (message.is_private !== false) {
20530
+ writer.uint32(128).bool(message.is_private);
20960
20531
  }
20961
20532
  if (message.meet_room !== undefined) {
20962
20533
  GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
@@ -21077,11 +20648,11 @@ export const CreateEventRequest = {
21077
20648
  message.user_id = longToString(reader.int64() as Long);
21078
20649
  continue;
21079
20650
  case 16:
21080
- if (tag !== 130) {
20651
+ if (tag !== 128) {
21081
20652
  break;
21082
20653
  }
21083
20654
 
21084
- message.is_private = BoolValue.decode(reader, reader.uint32()).value;
20655
+ message.is_private = reader.bool();
21085
20656
  continue;
21086
20657
  case 17:
21087
20658
  if (tag !== 138) {
@@ -21116,7 +20687,7 @@ export const CreateEventRequest = {
21116
20687
  repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
21117
20688
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "0",
21118
20689
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "0",
21119
- is_private: isSet(object.is_private) ? Boolean(object.is_private) : undefined,
20690
+ is_private: isSet(object.is_private) ? globalThis.Boolean(object.is_private) : false,
21120
20691
  meet_room: isSet(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : undefined,
21121
20692
  };
21122
20693
  },
@@ -21168,7 +20739,7 @@ export const CreateEventRequest = {
21168
20739
  if (message.user_id !== "0") {
21169
20740
  obj.user_id = message.user_id;
21170
20741
  }
21171
- if (message.is_private !== undefined) {
20742
+ if (message.is_private !== false) {
21172
20743
  obj.is_private = message.is_private;
21173
20744
  }
21174
20745
  if (message.meet_room !== undefined) {
@@ -21197,7 +20768,7 @@ export const CreateEventRequest = {
21197
20768
  message.repeat_type = object.repeat_type ?? 0;
21198
20769
  message.creator_id = object.creator_id ?? "0";
21199
20770
  message.user_id = object.user_id ?? "0";
21200
- message.is_private = object.is_private ?? undefined;
20771
+ message.is_private = object.is_private ?? false;
21201
20772
  message.meet_room = (object.meet_room !== undefined && object.meet_room !== null)
21202
20773
  ? GenerateMezonMeetResponse.fromPartial(object.meet_room)
21203
20774
  : undefined;
@@ -21688,8 +21259,8 @@ function createBaseUpdateRoleRequest(): UpdateRoleRequest {
21688
21259
  color: undefined,
21689
21260
  role_icon: undefined,
21690
21261
  description: undefined,
21691
- display_online: undefined,
21692
- allow_mention: undefined,
21262
+ display_online: 0,
21263
+ allow_mention: 0,
21693
21264
  add_user_ids: [],
21694
21265
  active_permission_ids: [],
21695
21266
  remove_user_ids: [],
@@ -21716,11 +21287,11 @@ export const UpdateRoleRequest = {
21716
21287
  if (message.description !== undefined) {
21717
21288
  StringValue.encode({ value: message.description! }, writer.uint32(42).fork()).ldelim();
21718
21289
  }
21719
- if (message.display_online !== undefined) {
21720
- Int32Value.encode({ value: message.display_online! }, writer.uint32(50).fork()).ldelim();
21290
+ if (message.display_online !== 0) {
21291
+ writer.uint32(48).int32(message.display_online);
21721
21292
  }
21722
- if (message.allow_mention !== undefined) {
21723
- Int32Value.encode({ value: message.allow_mention! }, writer.uint32(58).fork()).ldelim();
21293
+ if (message.allow_mention !== 0) {
21294
+ writer.uint32(56).int32(message.allow_mention);
21724
21295
  }
21725
21296
  writer.uint32(66).fork();
21726
21297
  for (const v of message.add_user_ids) {
@@ -21794,18 +21365,18 @@ export const UpdateRoleRequest = {
21794
21365
  message.description = StringValue.decode(reader, reader.uint32()).value;
21795
21366
  continue;
21796
21367
  case 6:
21797
- if (tag !== 50) {
21368
+ if (tag !== 48) {
21798
21369
  break;
21799
21370
  }
21800
21371
 
21801
- message.display_online = Int32Value.decode(reader, reader.uint32()).value;
21372
+ message.display_online = reader.int32();
21802
21373
  continue;
21803
21374
  case 7:
21804
- if (tag !== 58) {
21375
+ if (tag !== 56) {
21805
21376
  break;
21806
21377
  }
21807
21378
 
21808
- message.allow_mention = Int32Value.decode(reader, reader.uint32()).value;
21379
+ message.allow_mention = reader.int32();
21809
21380
  continue;
21810
21381
  case 8:
21811
21382
  if (tag === 64) {
@@ -21905,8 +21476,8 @@ export const UpdateRoleRequest = {
21905
21476
  color: isSet(object.color) ? String(object.color) : undefined,
21906
21477
  role_icon: isSet(object.role_icon) ? String(object.role_icon) : undefined,
21907
21478
  description: isSet(object.description) ? String(object.description) : undefined,
21908
- display_online: isSet(object.display_online) ? Number(object.display_online) : undefined,
21909
- allow_mention: isSet(object.allow_mention) ? Number(object.allow_mention) : undefined,
21479
+ display_online: isSet(object.display_online) ? globalThis.Number(object.display_online) : 0,
21480
+ allow_mention: isSet(object.allow_mention) ? globalThis.Number(object.allow_mention) : 0,
21910
21481
  add_user_ids: globalThis.Array.isArray(object?.add_user_ids)
21911
21482
  ? object.add_user_ids.map((e: any) => globalThis.String(e))
21912
21483
  : [],
@@ -21941,11 +21512,11 @@ export const UpdateRoleRequest = {
21941
21512
  if (message.description !== undefined) {
21942
21513
  obj.description = message.description;
21943
21514
  }
21944
- if (message.display_online !== undefined) {
21945
- obj.display_online = message.display_online;
21515
+ if (message.display_online !== 0) {
21516
+ obj.display_online = Math.round(message.display_online);
21946
21517
  }
21947
- if (message.allow_mention !== undefined) {
21948
- obj.allow_mention = message.allow_mention;
21518
+ if (message.allow_mention !== 0) {
21519
+ obj.allow_mention = Math.round(message.allow_mention);
21949
21520
  }
21950
21521
  if (message.add_user_ids?.length) {
21951
21522
  obj.add_user_ids = message.add_user_ids;
@@ -21978,8 +21549,8 @@ export const UpdateRoleRequest = {
21978
21549
  message.color = object.color ?? undefined;
21979
21550
  message.role_icon = object.role_icon ?? undefined;
21980
21551
  message.description = object.description ?? undefined;
21981
- message.display_online = object.display_online ?? undefined;
21982
- message.allow_mention = object.allow_mention ?? undefined;
21552
+ message.display_online = object.display_online ?? 0;
21553
+ message.allow_mention = object.allow_mention ?? 0;
21983
21554
  message.add_user_ids = object.add_user_ids?.map((e) => e) || [];
21984
21555
  message.active_permission_ids = object.active_permission_ids?.map((e) => e) || [];
21985
21556
  message.remove_user_ids = object.remove_user_ids?.map((e) => e) || [];
@@ -22335,16 +21906,16 @@ export const UploadAttachmentRequest = {
22335
21906
  };
22336
21907
 
22337
21908
  function createBaseListMessageMentionRequest(): ListMessageMentionRequest {
22338
- return { limit: undefined, forward: undefined, cursor: "" };
21909
+ return { limit: 0, forward: false, cursor: "" };
22339
21910
  }
22340
21911
 
22341
21912
  export const ListMessageMentionRequest = {
22342
21913
  encode(message: ListMessageMentionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22343
- if (message.limit !== undefined) {
22344
- Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
21914
+ if (message.limit !== 0) {
21915
+ writer.uint32(8).int32(message.limit);
22345
21916
  }
22346
- if (message.forward !== undefined) {
22347
- BoolValue.encode({ value: message.forward! }, writer.uint32(18).fork()).ldelim();
21917
+ if (message.forward !== false) {
21918
+ writer.uint32(16).bool(message.forward);
22348
21919
  }
22349
21920
  if (message.cursor !== "") {
22350
21921
  writer.uint32(26).string(message.cursor);
@@ -22360,18 +21931,18 @@ export const ListMessageMentionRequest = {
22360
21931
  const tag = reader.uint32();
22361
21932
  switch (tag >>> 3) {
22362
21933
  case 1:
22363
- if (tag !== 10) {
21934
+ if (tag !== 8) {
22364
21935
  break;
22365
21936
  }
22366
21937
 
22367
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
21938
+ message.limit = reader.int32();
22368
21939
  continue;
22369
21940
  case 2:
22370
- if (tag !== 18) {
21941
+ if (tag !== 16) {
22371
21942
  break;
22372
21943
  }
22373
21944
 
22374
- message.forward = BoolValue.decode(reader, reader.uint32()).value;
21945
+ message.forward = reader.bool();
22375
21946
  continue;
22376
21947
  case 3:
22377
21948
  if (tag !== 26) {
@@ -22391,18 +21962,18 @@ export const ListMessageMentionRequest = {
22391
21962
 
22392
21963
  fromJSON(object: any): ListMessageMentionRequest {
22393
21964
  return {
22394
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
22395
- forward: isSet(object.forward) ? Boolean(object.forward) : undefined,
21965
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
21966
+ forward: isSet(object.forward) ? globalThis.Boolean(object.forward) : false,
22396
21967
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
22397
21968
  };
22398
21969
  },
22399
21970
 
22400
21971
  toJSON(message: ListMessageMentionRequest): unknown {
22401
21972
  const obj: any = {};
22402
- if (message.limit !== undefined) {
22403
- obj.limit = message.limit;
21973
+ if (message.limit !== 0) {
21974
+ obj.limit = Math.round(message.limit);
22404
21975
  }
22405
- if (message.forward !== undefined) {
21976
+ if (message.forward !== false) {
22406
21977
  obj.forward = message.forward;
22407
21978
  }
22408
21979
  if (message.cursor !== "") {
@@ -22416,8 +21987,8 @@ export const ListMessageMentionRequest = {
22416
21987
  },
22417
21988
  fromPartial<I extends Exact<DeepPartial<ListMessageMentionRequest>, I>>(object: I): ListMessageMentionRequest {
22418
21989
  const message = createBaseListMessageMentionRequest();
22419
- message.limit = object.limit ?? undefined;
22420
- message.forward = object.forward ?? undefined;
21990
+ message.limit = object.limit ?? 0;
21991
+ message.forward = object.forward ?? false;
22421
21992
  message.cursor = object.cursor ?? "";
22422
21993
  return message;
22423
21994
  },
@@ -22498,7 +22069,7 @@ export const UploadAttachment = {
22498
22069
  };
22499
22070
 
22500
22071
  function createBaseSearchMessageRequest(): SearchMessageRequest {
22501
- return { filters: [], from: undefined, size: undefined, sorts: [] };
22072
+ return { filters: [], from: 0, size: 0, sorts: [] };
22502
22073
  }
22503
22074
 
22504
22075
  export const SearchMessageRequest = {
@@ -22506,11 +22077,11 @@ export const SearchMessageRequest = {
22506
22077
  for (const v of message.filters) {
22507
22078
  FilterParam.encode(v!, writer.uint32(10).fork()).ldelim();
22508
22079
  }
22509
- if (message.from !== undefined) {
22510
- Int32Value.encode({ value: message.from! }, writer.uint32(26).fork()).ldelim();
22080
+ if (message.from !== 0) {
22081
+ writer.uint32(24).int32(message.from);
22511
22082
  }
22512
- if (message.size !== undefined) {
22513
- Int32Value.encode({ value: message.size! }, writer.uint32(34).fork()).ldelim();
22083
+ if (message.size !== 0) {
22084
+ writer.uint32(32).int32(message.size);
22514
22085
  }
22515
22086
  for (const v of message.sorts) {
22516
22087
  SortParam.encode(v!, writer.uint32(42).fork()).ldelim();
@@ -22533,18 +22104,18 @@ export const SearchMessageRequest = {
22533
22104
  message.filters.push(FilterParam.decode(reader, reader.uint32()));
22534
22105
  continue;
22535
22106
  case 3:
22536
- if (tag !== 26) {
22107
+ if (tag !== 24) {
22537
22108
  break;
22538
22109
  }
22539
22110
 
22540
- message.from = Int32Value.decode(reader, reader.uint32()).value;
22111
+ message.from = reader.int32();
22541
22112
  continue;
22542
22113
  case 4:
22543
- if (tag !== 34) {
22114
+ if (tag !== 32) {
22544
22115
  break;
22545
22116
  }
22546
22117
 
22547
- message.size = Int32Value.decode(reader, reader.uint32()).value;
22118
+ message.size = reader.int32();
22548
22119
  continue;
22549
22120
  case 5:
22550
22121
  if (tag !== 42) {
@@ -22565,8 +22136,8 @@ export const SearchMessageRequest = {
22565
22136
  fromJSON(object: any): SearchMessageRequest {
22566
22137
  return {
22567
22138
  filters: globalThis.Array.isArray(object?.filters) ? object.filters.map((e: any) => FilterParam.fromJSON(e)) : [],
22568
- from: isSet(object.from) ? Number(object.from) : undefined,
22569
- size: isSet(object.size) ? Number(object.size) : undefined,
22139
+ from: isSet(object.from) ? globalThis.Number(object.from) : 0,
22140
+ size: isSet(object.size) ? globalThis.Number(object.size) : 0,
22570
22141
  sorts: globalThis.Array.isArray(object?.sorts) ? object.sorts.map((e: any) => SortParam.fromJSON(e)) : [],
22571
22142
  };
22572
22143
  },
@@ -22576,11 +22147,11 @@ export const SearchMessageRequest = {
22576
22147
  if (message.filters?.length) {
22577
22148
  obj.filters = message.filters.map((e) => FilterParam.toJSON(e));
22578
22149
  }
22579
- if (message.from !== undefined) {
22580
- obj.from = message.from;
22150
+ if (message.from !== 0) {
22151
+ obj.from = Math.round(message.from);
22581
22152
  }
22582
- if (message.size !== undefined) {
22583
- obj.size = message.size;
22153
+ if (message.size !== 0) {
22154
+ obj.size = Math.round(message.size);
22584
22155
  }
22585
22156
  if (message.sorts?.length) {
22586
22157
  obj.sorts = message.sorts.map((e) => SortParam.toJSON(e));
@@ -22594,8 +22165,8 @@ export const SearchMessageRequest = {
22594
22165
  fromPartial<I extends Exact<DeepPartial<SearchMessageRequest>, I>>(object: I): SearchMessageRequest {
22595
22166
  const message = createBaseSearchMessageRequest();
22596
22167
  message.filters = object.filters?.map((e) => FilterParam.fromPartial(e)) || [];
22597
- message.from = object.from ?? undefined;
22598
- message.size = object.size ?? undefined;
22168
+ message.from = object.from ?? 0;
22169
+ message.size = object.size ?? 0;
22599
22170
  message.sorts = object.sorts?.map((e) => SortParam.fromPartial(e)) || [];
22600
22171
  return message;
22601
22172
  },
@@ -22751,14 +22322,14 @@ export const FilterParam = {
22751
22322
 
22752
22323
  function createBaseSearchMessageDocument(): SearchMessageDocument {
22753
22324
  return {
22754
- message_id: "0",
22755
- channel_id: "0",
22756
- clan_id: "0",
22757
- sender_id: "0",
22325
+ message_id: "",
22326
+ channel_id: "",
22327
+ clan_id: "",
22328
+ sender_id: "",
22758
22329
  content: "",
22759
22330
  mentions: "",
22760
22331
  reactions: "",
22761
- attachments: [],
22332
+ attachments: "",
22762
22333
  references: "",
22763
22334
  create_time: "",
22764
22335
  update_time: "",
@@ -22773,17 +22344,17 @@ function createBaseSearchMessageDocument(): SearchMessageDocument {
22773
22344
 
22774
22345
  export const SearchMessageDocument = {
22775
22346
  encode(message: SearchMessageDocument, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22776
- if (message.message_id !== "0") {
22777
- writer.uint32(8).int64(message.message_id);
22347
+ if (message.message_id !== "") {
22348
+ writer.uint32(10).string(message.message_id);
22778
22349
  }
22779
- if (message.channel_id !== "0") {
22780
- writer.uint32(16).int64(message.channel_id);
22350
+ if (message.channel_id !== "") {
22351
+ writer.uint32(18).string(message.channel_id);
22781
22352
  }
22782
- if (message.clan_id !== "0") {
22783
- writer.uint32(24).int64(message.clan_id);
22353
+ if (message.clan_id !== "") {
22354
+ writer.uint32(26).string(message.clan_id);
22784
22355
  }
22785
- if (message.sender_id !== "0") {
22786
- writer.uint32(32).int64(message.sender_id);
22356
+ if (message.sender_id !== "") {
22357
+ writer.uint32(34).string(message.sender_id);
22787
22358
  }
22788
22359
  if (message.content !== "") {
22789
22360
  writer.uint32(42).string(message.content);
@@ -22794,8 +22365,8 @@ export const SearchMessageDocument = {
22794
22365
  if (message.reactions !== "") {
22795
22366
  writer.uint32(58).string(message.reactions);
22796
22367
  }
22797
- for (const v of message.attachments) {
22798
- MessageAttachment.encode(v!, writer.uint32(66).fork()).ldelim();
22368
+ if (message.attachments !== "") {
22369
+ writer.uint32(66).string(message.attachments);
22799
22370
  }
22800
22371
  if (message.references !== "") {
22801
22372
  writer.uint32(74).string(message.references);
@@ -22835,32 +22406,32 @@ export const SearchMessageDocument = {
22835
22406
  const tag = reader.uint32();
22836
22407
  switch (tag >>> 3) {
22837
22408
  case 1:
22838
- if (tag !== 8) {
22409
+ if (tag !== 10) {
22839
22410
  break;
22840
22411
  }
22841
22412
 
22842
- message.message_id = longToString(reader.int64() as Long);
22413
+ message.message_id = reader.string();
22843
22414
  continue;
22844
22415
  case 2:
22845
- if (tag !== 16) {
22416
+ if (tag !== 18) {
22846
22417
  break;
22847
22418
  }
22848
22419
 
22849
- message.channel_id = longToString(reader.int64() as Long);
22420
+ message.channel_id = reader.string();
22850
22421
  continue;
22851
22422
  case 3:
22852
- if (tag !== 24) {
22423
+ if (tag !== 26) {
22853
22424
  break;
22854
22425
  }
22855
22426
 
22856
- message.clan_id = longToString(reader.int64() as Long);
22427
+ message.clan_id = reader.string();
22857
22428
  continue;
22858
22429
  case 4:
22859
- if (tag !== 32) {
22430
+ if (tag !== 34) {
22860
22431
  break;
22861
22432
  }
22862
22433
 
22863
- message.sender_id = longToString(reader.int64() as Long);
22434
+ message.sender_id = reader.string();
22864
22435
  continue;
22865
22436
  case 5:
22866
22437
  if (tag !== 42) {
@@ -22888,7 +22459,7 @@ export const SearchMessageDocument = {
22888
22459
  break;
22889
22460
  }
22890
22461
 
22891
- message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
22462
+ message.attachments = reader.string();
22892
22463
  continue;
22893
22464
  case 9:
22894
22465
  if (tag !== 74) {
@@ -22964,16 +22535,14 @@ export const SearchMessageDocument = {
22964
22535
 
22965
22536
  fromJSON(object: any): SearchMessageDocument {
22966
22537
  return {
22967
- message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
22968
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
22969
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
22970
- sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "0",
22538
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
22539
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22540
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22541
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
22971
22542
  content: isSet(object.content) ? globalThis.String(object.content) : "",
22972
22543
  mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
22973
22544
  reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
22974
- attachments: globalThis.Array.isArray(object?.attachments)
22975
- ? object.attachments.map((e: any) => MessageAttachment.fromJSON(e))
22976
- : [],
22545
+ attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
22977
22546
  references: isSet(object.references) ? globalThis.String(object.references) : "",
22978
22547
  create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
22979
22548
  update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
@@ -22988,16 +22557,16 @@ export const SearchMessageDocument = {
22988
22557
 
22989
22558
  toJSON(message: SearchMessageDocument): unknown {
22990
22559
  const obj: any = {};
22991
- if (message.message_id !== "0") {
22560
+ if (message.message_id !== "") {
22992
22561
  obj.message_id = message.message_id;
22993
22562
  }
22994
- if (message.channel_id !== "0") {
22563
+ if (message.channel_id !== "") {
22995
22564
  obj.channel_id = message.channel_id;
22996
22565
  }
22997
- if (message.clan_id !== "0") {
22566
+ if (message.clan_id !== "") {
22998
22567
  obj.clan_id = message.clan_id;
22999
22568
  }
23000
- if (message.sender_id !== "0") {
22569
+ if (message.sender_id !== "") {
23001
22570
  obj.sender_id = message.sender_id;
23002
22571
  }
23003
22572
  if (message.content !== "") {
@@ -23009,8 +22578,8 @@ export const SearchMessageDocument = {
23009
22578
  if (message.reactions !== "") {
23010
22579
  obj.reactions = message.reactions;
23011
22580
  }
23012
- if (message.attachments?.length) {
23013
- obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
22581
+ if (message.attachments !== "") {
22582
+ obj.attachments = message.attachments;
23014
22583
  }
23015
22584
  if (message.references !== "") {
23016
22585
  obj.references = message.references;
@@ -23047,14 +22616,14 @@ export const SearchMessageDocument = {
23047
22616
  },
23048
22617
  fromPartial<I extends Exact<DeepPartial<SearchMessageDocument>, I>>(object: I): SearchMessageDocument {
23049
22618
  const message = createBaseSearchMessageDocument();
23050
- message.message_id = object.message_id ?? "0";
23051
- message.channel_id = object.channel_id ?? "0";
23052
- message.clan_id = object.clan_id ?? "0";
23053
- message.sender_id = object.sender_id ?? "0";
22619
+ message.message_id = object.message_id ?? "";
22620
+ message.channel_id = object.channel_id ?? "";
22621
+ message.clan_id = object.clan_id ?? "";
22622
+ message.sender_id = object.sender_id ?? "";
23054
22623
  message.content = object.content ?? "";
23055
22624
  message.mentions = object.mentions ?? "";
23056
22625
  message.reactions = object.reactions ?? "";
23057
- message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
22626
+ message.attachments = object.attachments ?? "";
23058
22627
  message.references = object.references ?? "";
23059
22628
  message.create_time = object.create_time ?? "";
23060
22629
  message.update_time = object.update_time ?? "";
@@ -23947,7 +23516,7 @@ export const ClanSticker = {
23947
23516
  };
23948
23517
 
23949
23518
  function createBaseAllUsersAddChannelRequest(): AllUsersAddChannelRequest {
23950
- return { channel_id: "0", limit: undefined };
23519
+ return { channel_id: "0", limit: 0 };
23951
23520
  }
23952
23521
 
23953
23522
  export const AllUsersAddChannelRequest = {
@@ -23955,8 +23524,8 @@ export const AllUsersAddChannelRequest = {
23955
23524
  if (message.channel_id !== "0") {
23956
23525
  writer.uint32(8).int64(message.channel_id);
23957
23526
  }
23958
- if (message.limit !== undefined) {
23959
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
23527
+ if (message.limit !== 0) {
23528
+ writer.uint32(16).int32(message.limit);
23960
23529
  }
23961
23530
  return writer;
23962
23531
  },
@@ -23976,11 +23545,11 @@ export const AllUsersAddChannelRequest = {
23976
23545
  message.channel_id = longToString(reader.int64() as Long);
23977
23546
  continue;
23978
23547
  case 2:
23979
- if (tag !== 18) {
23548
+ if (tag !== 16) {
23980
23549
  break;
23981
23550
  }
23982
23551
 
23983
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
23552
+ message.limit = reader.int32();
23984
23553
  continue;
23985
23554
  }
23986
23555
  if ((tag & 7) === 4 || tag === 0) {
@@ -23994,7 +23563,7 @@ export const AllUsersAddChannelRequest = {
23994
23563
  fromJSON(object: any): AllUsersAddChannelRequest {
23995
23564
  return {
23996
23565
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
23997
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
23566
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
23998
23567
  };
23999
23568
  },
24000
23569
 
@@ -24003,8 +23572,8 @@ export const AllUsersAddChannelRequest = {
24003
23572
  if (message.channel_id !== "0") {
24004
23573
  obj.channel_id = message.channel_id;
24005
23574
  }
24006
- if (message.limit !== undefined) {
24007
- obj.limit = message.limit;
23575
+ if (message.limit !== 0) {
23576
+ obj.limit = Math.round(message.limit);
24008
23577
  }
24009
23578
  return obj;
24010
23579
  },
@@ -24015,21 +23584,13 @@ export const AllUsersAddChannelRequest = {
24015
23584
  fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(object: I): AllUsersAddChannelRequest {
24016
23585
  const message = createBaseAllUsersAddChannelRequest();
24017
23586
  message.channel_id = object.channel_id ?? "0";
24018
- message.limit = object.limit ?? undefined;
23587
+ message.limit = object.limit ?? 0;
24019
23588
  return message;
24020
23589
  },
24021
23590
  };
24022
23591
 
24023
23592
  function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
24024
- return {
24025
- channel_id: "0",
24026
- user_ids: [],
24027
- limit: undefined,
24028
- usernames: [],
24029
- display_names: [],
24030
- avatars: [],
24031
- onlines: [],
24032
- };
23593
+ return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
24033
23594
  }
24034
23595
 
24035
23596
  export const AllUsersAddChannelResponse = {
@@ -24042,8 +23603,8 @@ export const AllUsersAddChannelResponse = {
24042
23603
  writer.int64(v);
24043
23604
  }
24044
23605
  writer.ldelim();
24045
- if (message.limit !== undefined) {
24046
- Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
23606
+ if (message.limit !== 0) {
23607
+ writer.uint32(24).int32(message.limit);
24047
23608
  }
24048
23609
  for (const v of message.usernames) {
24049
23610
  writer.uint32(34).string(v!);
@@ -24094,11 +23655,11 @@ export const AllUsersAddChannelResponse = {
24094
23655
 
24095
23656
  break;
24096
23657
  case 3:
24097
- if (tag !== 26) {
23658
+ if (tag !== 24) {
24098
23659
  break;
24099
23660
  }
24100
23661
 
24101
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
23662
+ message.limit = reader.int32();
24102
23663
  continue;
24103
23664
  case 4:
24104
23665
  if (tag !== 34) {
@@ -24151,7 +23712,7 @@ export const AllUsersAddChannelResponse = {
24151
23712
  return {
24152
23713
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
24153
23714
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
24154
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
23715
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
24155
23716
  usernames: globalThis.Array.isArray(object?.usernames)
24156
23717
  ? object.usernames.map((e: any) => globalThis.String(e))
24157
23718
  : [],
@@ -24171,8 +23732,8 @@ export const AllUsersAddChannelResponse = {
24171
23732
  if (message.user_ids?.length) {
24172
23733
  obj.user_ids = message.user_ids;
24173
23734
  }
24174
- if (message.limit !== undefined) {
24175
- obj.limit = message.limit;
23735
+ if (message.limit !== 0) {
23736
+ obj.limit = Math.round(message.limit);
24176
23737
  }
24177
23738
  if (message.usernames?.length) {
24178
23739
  obj.usernames = message.usernames;
@@ -24196,7 +23757,7 @@ export const AllUsersAddChannelResponse = {
24196
23757
  const message = createBaseAllUsersAddChannelResponse();
24197
23758
  message.channel_id = object.channel_id ?? "0";
24198
23759
  message.user_ids = object.user_ids?.map((e) => e) || [];
24199
- message.limit = object.limit ?? undefined;
23760
+ message.limit = object.limit ?? 0;
24200
23761
  message.usernames = object.usernames?.map((e) => e) || [];
24201
23762
  message.display_names = object.display_names?.map((e) => e) || [];
24202
23763
  message.avatars = object.avatars?.map((e) => e) || [];
@@ -26350,7 +25911,7 @@ export const App = {
26350
25911
  };
26351
25912
 
26352
25913
  function createBaseAppDeleteRequest(): AppDeleteRequest {
26353
- return { id: "0", record_deletion: undefined };
25914
+ return { id: "0", record_deletion: false };
26354
25915
  }
26355
25916
 
26356
25917
  export const AppDeleteRequest = {
@@ -26358,8 +25919,8 @@ export const AppDeleteRequest = {
26358
25919
  if (message.id !== "0") {
26359
25920
  writer.uint32(8).int64(message.id);
26360
25921
  }
26361
- if (message.record_deletion !== undefined) {
26362
- BoolValue.encode({ value: message.record_deletion! }, writer.uint32(18).fork()).ldelim();
25922
+ if (message.record_deletion !== false) {
25923
+ writer.uint32(16).bool(message.record_deletion);
26363
25924
  }
26364
25925
  return writer;
26365
25926
  },
@@ -26379,11 +25940,11 @@ export const AppDeleteRequest = {
26379
25940
  message.id = longToString(reader.int64() as Long);
26380
25941
  continue;
26381
25942
  case 2:
26382
- if (tag !== 18) {
25943
+ if (tag !== 16) {
26383
25944
  break;
26384
25945
  }
26385
25946
 
26386
- message.record_deletion = BoolValue.decode(reader, reader.uint32()).value;
25947
+ message.record_deletion = reader.bool();
26387
25948
  continue;
26388
25949
  }
26389
25950
  if ((tag & 7) === 4 || tag === 0) {
@@ -26397,7 +25958,7 @@ export const AppDeleteRequest = {
26397
25958
  fromJSON(object: any): AppDeleteRequest {
26398
25959
  return {
26399
25960
  id: isSet(object.id) ? globalThis.String(object.id) : "0",
26400
- record_deletion: isSet(object.record_deletion) ? Boolean(object.record_deletion) : undefined,
25961
+ record_deletion: isSet(object.record_deletion) ? globalThis.Boolean(object.record_deletion) : false,
26401
25962
  };
26402
25963
  },
26403
25964
 
@@ -26406,7 +25967,7 @@ export const AppDeleteRequest = {
26406
25967
  if (message.id !== "0") {
26407
25968
  obj.id = message.id;
26408
25969
  }
26409
- if (message.record_deletion !== undefined) {
25970
+ if (message.record_deletion !== false) {
26410
25971
  obj.record_deletion = message.record_deletion;
26411
25972
  }
26412
25973
  return obj;
@@ -26418,7 +25979,7 @@ export const AppDeleteRequest = {
26418
25979
  fromPartial<I extends Exact<DeepPartial<AppDeleteRequest>, I>>(object: I): AppDeleteRequest {
26419
25980
  const message = createBaseAppDeleteRequest();
26420
25981
  message.id = object.id ?? "0";
26421
- message.record_deletion = object.record_deletion ?? undefined;
25982
+ message.record_deletion = object.record_deletion ?? false;
26422
25983
  return message;
26423
25984
  },
26424
25985
  };
@@ -27959,13 +27520,13 @@ export const StreamHttpCallbackRequest = {
27959
27520
  };
27960
27521
 
27961
27522
  function createBaseStreamHttpCallbackResponse(): StreamHttpCallbackResponse {
27962
- return { code: undefined, msg: "" };
27523
+ return { code: 0, msg: "" };
27963
27524
  }
27964
27525
 
27965
27526
  export const StreamHttpCallbackResponse = {
27966
27527
  encode(message: StreamHttpCallbackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
27967
- if (message.code !== undefined) {
27968
- Int32Value.encode({ value: message.code! }, writer.uint32(10).fork()).ldelim();
27528
+ if (message.code !== 0) {
27529
+ writer.uint32(8).int32(message.code);
27969
27530
  }
27970
27531
  if (message.msg !== "") {
27971
27532
  writer.uint32(18).string(message.msg);
@@ -27981,11 +27542,11 @@ export const StreamHttpCallbackResponse = {
27981
27542
  const tag = reader.uint32();
27982
27543
  switch (tag >>> 3) {
27983
27544
  case 1:
27984
- if (tag !== 10) {
27545
+ if (tag !== 8) {
27985
27546
  break;
27986
27547
  }
27987
27548
 
27988
- message.code = Int32Value.decode(reader, reader.uint32()).value;
27549
+ message.code = reader.int32();
27989
27550
  continue;
27990
27551
  case 2:
27991
27552
  if (tag !== 18) {
@@ -28005,15 +27566,15 @@ export const StreamHttpCallbackResponse = {
28005
27566
 
28006
27567
  fromJSON(object: any): StreamHttpCallbackResponse {
28007
27568
  return {
28008
- code: isSet(object.code) ? Number(object.code) : undefined,
27569
+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,
28009
27570
  msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
28010
27571
  };
28011
27572
  },
28012
27573
 
28013
27574
  toJSON(message: StreamHttpCallbackResponse): unknown {
28014
27575
  const obj: any = {};
28015
- if (message.code !== undefined) {
28016
- obj.code = message.code;
27576
+ if (message.code !== 0) {
27577
+ obj.code = Math.round(message.code);
28017
27578
  }
28018
27579
  if (message.msg !== "") {
28019
27580
  obj.msg = message.msg;
@@ -28026,7 +27587,7 @@ export const StreamHttpCallbackResponse = {
28026
27587
  },
28027
27588
  fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackResponse>, I>>(object: I): StreamHttpCallbackResponse {
28028
27589
  const message = createBaseStreamHttpCallbackResponse();
28029
- message.code = object.code ?? undefined;
27590
+ message.code = object.code ?? 0;
28030
27591
  message.msg = object.msg ?? "";
28031
27592
  return message;
28032
27593
  },
@@ -29506,12 +29067,12 @@ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
29506
29067
  clan_id: "0",
29507
29068
  parent_id: "0",
29508
29069
  category_id: "0",
29509
- private_channel: undefined,
29510
- active: undefined,
29511
- status: undefined,
29512
- type: undefined,
29513
- limit: undefined,
29514
- page: undefined,
29070
+ private_channel: 0,
29071
+ active: 0,
29072
+ status: 0,
29073
+ type: 0,
29074
+ limit: 0,
29075
+ page: 0,
29515
29076
  channel_label: "",
29516
29077
  };
29517
29078
  }
@@ -29527,23 +29088,23 @@ export const ChannelSettingListRequest = {
29527
29088
  if (message.category_id !== "0") {
29528
29089
  writer.uint32(24).int64(message.category_id);
29529
29090
  }
29530
- if (message.private_channel !== undefined) {
29531
- Int32Value.encode({ value: message.private_channel! }, writer.uint32(34).fork()).ldelim();
29091
+ if (message.private_channel !== 0) {
29092
+ writer.uint32(32).int32(message.private_channel);
29532
29093
  }
29533
- if (message.active !== undefined) {
29534
- Int32Value.encode({ value: message.active! }, writer.uint32(42).fork()).ldelim();
29094
+ if (message.active !== 0) {
29095
+ writer.uint32(40).int32(message.active);
29535
29096
  }
29536
- if (message.status !== undefined) {
29537
- Int32Value.encode({ value: message.status! }, writer.uint32(50).fork()).ldelim();
29097
+ if (message.status !== 0) {
29098
+ writer.uint32(48).int32(message.status);
29538
29099
  }
29539
- if (message.type !== undefined) {
29540
- Int32Value.encode({ value: message.type! }, writer.uint32(58).fork()).ldelim();
29100
+ if (message.type !== 0) {
29101
+ writer.uint32(56).int32(message.type);
29541
29102
  }
29542
- if (message.limit !== undefined) {
29543
- Int32Value.encode({ value: message.limit! }, writer.uint32(66).fork()).ldelim();
29103
+ if (message.limit !== 0) {
29104
+ writer.uint32(64).int32(message.limit);
29544
29105
  }
29545
- if (message.page !== undefined) {
29546
- Int32Value.encode({ value: message.page! }, writer.uint32(74).fork()).ldelim();
29106
+ if (message.page !== 0) {
29107
+ writer.uint32(72).int32(message.page);
29547
29108
  }
29548
29109
  if (message.channel_label !== "") {
29549
29110
  writer.uint32(82).string(message.channel_label);
@@ -29580,46 +29141,46 @@ export const ChannelSettingListRequest = {
29580
29141
  message.category_id = longToString(reader.int64() as Long);
29581
29142
  continue;
29582
29143
  case 4:
29583
- if (tag !== 34) {
29144
+ if (tag !== 32) {
29584
29145
  break;
29585
29146
  }
29586
29147
 
29587
- message.private_channel = Int32Value.decode(reader, reader.uint32()).value;
29148
+ message.private_channel = reader.int32();
29588
29149
  continue;
29589
29150
  case 5:
29590
- if (tag !== 42) {
29151
+ if (tag !== 40) {
29591
29152
  break;
29592
29153
  }
29593
29154
 
29594
- message.active = Int32Value.decode(reader, reader.uint32()).value;
29155
+ message.active = reader.int32();
29595
29156
  continue;
29596
29157
  case 6:
29597
- if (tag !== 50) {
29158
+ if (tag !== 48) {
29598
29159
  break;
29599
29160
  }
29600
29161
 
29601
- message.status = Int32Value.decode(reader, reader.uint32()).value;
29162
+ message.status = reader.int32();
29602
29163
  continue;
29603
29164
  case 7:
29604
- if (tag !== 58) {
29165
+ if (tag !== 56) {
29605
29166
  break;
29606
29167
  }
29607
29168
 
29608
- message.type = Int32Value.decode(reader, reader.uint32()).value;
29169
+ message.type = reader.int32();
29609
29170
  continue;
29610
29171
  case 8:
29611
- if (tag !== 66) {
29172
+ if (tag !== 64) {
29612
29173
  break;
29613
29174
  }
29614
29175
 
29615
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
29176
+ message.limit = reader.int32();
29616
29177
  continue;
29617
29178
  case 9:
29618
- if (tag !== 74) {
29179
+ if (tag !== 72) {
29619
29180
  break;
29620
29181
  }
29621
29182
 
29622
- message.page = Int32Value.decode(reader, reader.uint32()).value;
29183
+ message.page = reader.int32();
29623
29184
  continue;
29624
29185
  case 10:
29625
29186
  if (tag !== 82) {
@@ -29642,12 +29203,12 @@ export const ChannelSettingListRequest = {
29642
29203
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
29643
29204
  parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "0",
29644
29205
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "0",
29645
- private_channel: isSet(object.private_channel) ? Number(object.private_channel) : undefined,
29646
- active: isSet(object.active) ? Number(object.active) : undefined,
29647
- status: isSet(object.status) ? Number(object.status) : undefined,
29648
- type: isSet(object.type) ? Number(object.type) : undefined,
29649
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
29650
- page: isSet(object.page) ? Number(object.page) : undefined,
29206
+ private_channel: isSet(object.private_channel) ? globalThis.Number(object.private_channel) : 0,
29207
+ active: isSet(object.active) ? globalThis.Number(object.active) : 0,
29208
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
29209
+ type: isSet(object.type) ? globalThis.Number(object.type) : 0,
29210
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
29211
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
29651
29212
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
29652
29213
  };
29653
29214
  },
@@ -29663,23 +29224,23 @@ export const ChannelSettingListRequest = {
29663
29224
  if (message.category_id !== "0") {
29664
29225
  obj.category_id = message.category_id;
29665
29226
  }
29666
- if (message.private_channel !== undefined) {
29667
- obj.private_channel = message.private_channel;
29227
+ if (message.private_channel !== 0) {
29228
+ obj.private_channel = Math.round(message.private_channel);
29668
29229
  }
29669
- if (message.active !== undefined) {
29670
- obj.active = message.active;
29230
+ if (message.active !== 0) {
29231
+ obj.active = Math.round(message.active);
29671
29232
  }
29672
- if (message.status !== undefined) {
29673
- obj.status = message.status;
29233
+ if (message.status !== 0) {
29234
+ obj.status = Math.round(message.status);
29674
29235
  }
29675
- if (message.type !== undefined) {
29676
- obj.type = message.type;
29236
+ if (message.type !== 0) {
29237
+ obj.type = Math.round(message.type);
29677
29238
  }
29678
- if (message.limit !== undefined) {
29679
- obj.limit = message.limit;
29239
+ if (message.limit !== 0) {
29240
+ obj.limit = Math.round(message.limit);
29680
29241
  }
29681
- if (message.page !== undefined) {
29682
- obj.page = message.page;
29242
+ if (message.page !== 0) {
29243
+ obj.page = Math.round(message.page);
29683
29244
  }
29684
29245
  if (message.channel_label !== "") {
29685
29246
  obj.channel_label = message.channel_label;
@@ -29695,12 +29256,12 @@ export const ChannelSettingListRequest = {
29695
29256
  message.clan_id = object.clan_id ?? "0";
29696
29257
  message.parent_id = object.parent_id ?? "0";
29697
29258
  message.category_id = object.category_id ?? "0";
29698
- message.private_channel = object.private_channel ?? undefined;
29699
- message.active = object.active ?? undefined;
29700
- message.status = object.status ?? undefined;
29701
- message.type = object.type ?? undefined;
29702
- message.limit = object.limit ?? undefined;
29703
- message.page = object.page ?? undefined;
29259
+ message.private_channel = object.private_channel ?? 0;
29260
+ message.active = object.active ?? 0;
29261
+ message.status = object.status ?? 0;
29262
+ message.type = object.type ?? 0;
29263
+ message.limit = object.limit ?? 0;
29264
+ message.page = object.page ?? 0;
29704
29265
  message.channel_label = object.channel_label ?? "";
29705
29266
  return message;
29706
29267
  },
@@ -30450,7 +30011,7 @@ export const DeleteChannelCanvasRequest = {
30450
30011
  };
30451
30012
 
30452
30013
  function createBaseChannelCanvasListRequest(): ChannelCanvasListRequest {
30453
- return { clan_id: "0", channel_id: "0", limit: undefined, page: undefined, cursor: "" };
30014
+ return { clan_id: "0", channel_id: "0", limit: 0, page: 0, cursor: "" };
30454
30015
  }
30455
30016
 
30456
30017
  export const ChannelCanvasListRequest = {
@@ -30461,11 +30022,11 @@ export const ChannelCanvasListRequest = {
30461
30022
  if (message.channel_id !== "0") {
30462
30023
  writer.uint32(16).int64(message.channel_id);
30463
30024
  }
30464
- if (message.limit !== undefined) {
30465
- Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
30025
+ if (message.limit !== 0) {
30026
+ writer.uint32(24).int32(message.limit);
30466
30027
  }
30467
- if (message.page !== undefined) {
30468
- Int32Value.encode({ value: message.page! }, writer.uint32(34).fork()).ldelim();
30028
+ if (message.page !== 0) {
30029
+ writer.uint32(32).int32(message.page);
30469
30030
  }
30470
30031
  if (message.cursor !== "") {
30471
30032
  writer.uint32(42).string(message.cursor);
@@ -30495,18 +30056,18 @@ export const ChannelCanvasListRequest = {
30495
30056
  message.channel_id = longToString(reader.int64() as Long);
30496
30057
  continue;
30497
30058
  case 3:
30498
- if (tag !== 26) {
30059
+ if (tag !== 24) {
30499
30060
  break;
30500
30061
  }
30501
30062
 
30502
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
30063
+ message.limit = reader.int32();
30503
30064
  continue;
30504
30065
  case 4:
30505
- if (tag !== 34) {
30066
+ if (tag !== 32) {
30506
30067
  break;
30507
30068
  }
30508
30069
 
30509
- message.page = Int32Value.decode(reader, reader.uint32()).value;
30070
+ message.page = reader.int32();
30510
30071
  continue;
30511
30072
  case 5:
30512
30073
  if (tag !== 42) {
@@ -30528,8 +30089,8 @@ export const ChannelCanvasListRequest = {
30528
30089
  return {
30529
30090
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
30530
30091
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
30531
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
30532
- page: isSet(object.page) ? Number(object.page) : undefined,
30092
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
30093
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
30533
30094
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
30534
30095
  };
30535
30096
  },
@@ -30542,11 +30103,11 @@ export const ChannelCanvasListRequest = {
30542
30103
  if (message.channel_id !== "0") {
30543
30104
  obj.channel_id = message.channel_id;
30544
30105
  }
30545
- if (message.limit !== undefined) {
30546
- obj.limit = message.limit;
30106
+ if (message.limit !== 0) {
30107
+ obj.limit = Math.round(message.limit);
30547
30108
  }
30548
- if (message.page !== undefined) {
30549
- obj.page = message.page;
30109
+ if (message.page !== 0) {
30110
+ obj.page = Math.round(message.page);
30550
30111
  }
30551
30112
  if (message.cursor !== "") {
30552
30113
  obj.cursor = message.cursor;
@@ -30561,8 +30122,8 @@ export const ChannelCanvasListRequest = {
30561
30122
  const message = createBaseChannelCanvasListRequest();
30562
30123
  message.clan_id = object.clan_id ?? "0";
30563
30124
  message.channel_id = object.channel_id ?? "0";
30564
- message.limit = object.limit ?? undefined;
30565
- message.page = object.page ?? undefined;
30125
+ message.limit = object.limit ?? 0;
30126
+ message.page = object.page ?? 0;
30566
30127
  message.cursor = object.cursor ?? "";
30567
30128
  return message;
30568
30129
  },
@@ -31988,7 +31549,7 @@ export const LoginRequest = {
31988
31549
  };
31989
31550
 
31990
31551
  function createBaseConfirmLoginRequest(): ConfirmLoginRequest {
31991
- return { login_id: "0", is_remember: undefined };
31552
+ return { login_id: "0", is_remember: false };
31992
31553
  }
31993
31554
 
31994
31555
  export const ConfirmLoginRequest = {
@@ -31996,8 +31557,8 @@ export const ConfirmLoginRequest = {
31996
31557
  if (message.login_id !== "0") {
31997
31558
  writer.uint32(8).int64(message.login_id);
31998
31559
  }
31999
- if (message.is_remember !== undefined) {
32000
- BoolValue.encode({ value: message.is_remember! }, writer.uint32(18).fork()).ldelim();
31560
+ if (message.is_remember !== false) {
31561
+ writer.uint32(16).bool(message.is_remember);
32001
31562
  }
32002
31563
  return writer;
32003
31564
  },
@@ -32017,11 +31578,11 @@ export const ConfirmLoginRequest = {
32017
31578
  message.login_id = longToString(reader.int64() as Long);
32018
31579
  continue;
32019
31580
  case 2:
32020
- if (tag !== 18) {
31581
+ if (tag !== 16) {
32021
31582
  break;
32022
31583
  }
32023
31584
 
32024
- message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
31585
+ message.is_remember = reader.bool();
32025
31586
  continue;
32026
31587
  }
32027
31588
  if ((tag & 7) === 4 || tag === 0) {
@@ -32035,7 +31596,7 @@ export const ConfirmLoginRequest = {
32035
31596
  fromJSON(object: any): ConfirmLoginRequest {
32036
31597
  return {
32037
31598
  login_id: isSet(object.login_id) ? globalThis.String(object.login_id) : "0",
32038
- is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
31599
+ is_remember: isSet(object.is_remember) ? globalThis.Boolean(object.is_remember) : false,
32039
31600
  };
32040
31601
  },
32041
31602
 
@@ -32044,7 +31605,7 @@ export const ConfirmLoginRequest = {
32044
31605
  if (message.login_id !== "0") {
32045
31606
  obj.login_id = message.login_id;
32046
31607
  }
32047
- if (message.is_remember !== undefined) {
31608
+ if (message.is_remember !== false) {
32048
31609
  obj.is_remember = message.is_remember;
32049
31610
  }
32050
31611
  return obj;
@@ -32056,7 +31617,7 @@ export const ConfirmLoginRequest = {
32056
31617
  fromPartial<I extends Exact<DeepPartial<ConfirmLoginRequest>, I>>(object: I): ConfirmLoginRequest {
32057
31618
  const message = createBaseConfirmLoginRequest();
32058
31619
  message.login_id = object.login_id ?? "0";
32059
- message.is_remember = object.is_remember ?? undefined;
31620
+ message.is_remember = object.is_remember ?? false;
32060
31621
  return message;
32061
31622
  },
32062
31623
  };
@@ -33218,7 +32779,7 @@ export const UnlockedItemResponse = {
33218
32779
  };
33219
32780
 
33220
32781
  function createBaseListOnboardingRequest(): ListOnboardingRequest {
33221
- return { clan_id: "0", guide_type: undefined, limit: undefined, page: undefined };
32782
+ return { clan_id: "0", guide_type: 0, limit: 0, page: 0 };
33222
32783
  }
33223
32784
 
33224
32785
  export const ListOnboardingRequest = {
@@ -33226,14 +32787,14 @@ export const ListOnboardingRequest = {
33226
32787
  if (message.clan_id !== "0") {
33227
32788
  writer.uint32(8).int64(message.clan_id);
33228
32789
  }
33229
- if (message.guide_type !== undefined) {
33230
- Int32Value.encode({ value: message.guide_type! }, writer.uint32(18).fork()).ldelim();
32790
+ if (message.guide_type !== 0) {
32791
+ writer.uint32(16).int32(message.guide_type);
33231
32792
  }
33232
- if (message.limit !== undefined) {
33233
- Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
32793
+ if (message.limit !== 0) {
32794
+ writer.uint32(24).int32(message.limit);
33234
32795
  }
33235
- if (message.page !== undefined) {
33236
- Int32Value.encode({ value: message.page! }, writer.uint32(34).fork()).ldelim();
32796
+ if (message.page !== 0) {
32797
+ writer.uint32(32).int32(message.page);
33237
32798
  }
33238
32799
  return writer;
33239
32800
  },
@@ -33253,25 +32814,25 @@ export const ListOnboardingRequest = {
33253
32814
  message.clan_id = longToString(reader.int64() as Long);
33254
32815
  continue;
33255
32816
  case 2:
33256
- if (tag !== 18) {
32817
+ if (tag !== 16) {
33257
32818
  break;
33258
32819
  }
33259
32820
 
33260
- message.guide_type = Int32Value.decode(reader, reader.uint32()).value;
32821
+ message.guide_type = reader.int32();
33261
32822
  continue;
33262
32823
  case 3:
33263
- if (tag !== 26) {
32824
+ if (tag !== 24) {
33264
32825
  break;
33265
32826
  }
33266
32827
 
33267
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
32828
+ message.limit = reader.int32();
33268
32829
  continue;
33269
32830
  case 4:
33270
- if (tag !== 34) {
32831
+ if (tag !== 32) {
33271
32832
  break;
33272
32833
  }
33273
32834
 
33274
- message.page = Int32Value.decode(reader, reader.uint32()).value;
32835
+ message.page = reader.int32();
33275
32836
  continue;
33276
32837
  }
33277
32838
  if ((tag & 7) === 4 || tag === 0) {
@@ -33285,9 +32846,9 @@ export const ListOnboardingRequest = {
33285
32846
  fromJSON(object: any): ListOnboardingRequest {
33286
32847
  return {
33287
32848
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
33288
- guide_type: isSet(object.guide_type) ? Number(object.guide_type) : undefined,
33289
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
33290
- page: isSet(object.page) ? Number(object.page) : undefined,
32849
+ guide_type: isSet(object.guide_type) ? globalThis.Number(object.guide_type) : 0,
32850
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
32851
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
33291
32852
  };
33292
32853
  },
33293
32854
 
@@ -33296,14 +32857,14 @@ export const ListOnboardingRequest = {
33296
32857
  if (message.clan_id !== "0") {
33297
32858
  obj.clan_id = message.clan_id;
33298
32859
  }
33299
- if (message.guide_type !== undefined) {
33300
- obj.guide_type = message.guide_type;
32860
+ if (message.guide_type !== 0) {
32861
+ obj.guide_type = Math.round(message.guide_type);
33301
32862
  }
33302
- if (message.limit !== undefined) {
33303
- obj.limit = message.limit;
32863
+ if (message.limit !== 0) {
32864
+ obj.limit = Math.round(message.limit);
33304
32865
  }
33305
- if (message.page !== undefined) {
33306
- obj.page = message.page;
32866
+ if (message.page !== 0) {
32867
+ obj.page = Math.round(message.page);
33307
32868
  }
33308
32869
  return obj;
33309
32870
  },
@@ -33314,9 +32875,9 @@ export const ListOnboardingRequest = {
33314
32875
  fromPartial<I extends Exact<DeepPartial<ListOnboardingRequest>, I>>(object: I): ListOnboardingRequest {
33315
32876
  const message = createBaseListOnboardingRequest();
33316
32877
  message.clan_id = object.clan_id ?? "0";
33317
- message.guide_type = object.guide_type ?? undefined;
33318
- message.limit = object.limit ?? undefined;
33319
- message.page = object.page ?? undefined;
32878
+ message.guide_type = object.guide_type ?? 0;
32879
+ message.limit = object.limit ?? 0;
32880
+ message.page = object.page ?? 0;
33320
32881
  return message;
33321
32882
  },
33322
32883
  };
@@ -33937,16 +33498,7 @@ export const CreateOnboardingRequest = {
33937
33498
  };
33938
33499
 
33939
33500
  function createBaseUpdateOnboardingRequest(): UpdateOnboardingRequest {
33940
- return {
33941
- id: "0",
33942
- clan_id: "0",
33943
- task_type: undefined,
33944
- channel_id: "0",
33945
- title: "",
33946
- content: "",
33947
- image_url: "",
33948
- answers: [],
33949
- };
33501
+ return { id: "0", clan_id: "0", task_type: 0, channel_id: "0", title: "", content: "", image_url: "", answers: [] };
33950
33502
  }
33951
33503
 
33952
33504
  export const UpdateOnboardingRequest = {
@@ -33957,8 +33509,8 @@ export const UpdateOnboardingRequest = {
33957
33509
  if (message.clan_id !== "0") {
33958
33510
  writer.uint32(16).int64(message.clan_id);
33959
33511
  }
33960
- if (message.task_type !== undefined) {
33961
- Int32Value.encode({ value: message.task_type! }, writer.uint32(26).fork()).ldelim();
33512
+ if (message.task_type !== 0) {
33513
+ writer.uint32(24).int32(message.task_type);
33962
33514
  }
33963
33515
  if (message.channel_id !== "0") {
33964
33516
  writer.uint32(32).int64(message.channel_id);
@@ -34000,11 +33552,11 @@ export const UpdateOnboardingRequest = {
34000
33552
  message.clan_id = longToString(reader.int64() as Long);
34001
33553
  continue;
34002
33554
  case 3:
34003
- if (tag !== 26) {
33555
+ if (tag !== 24) {
34004
33556
  break;
34005
33557
  }
34006
33558
 
34007
- message.task_type = Int32Value.decode(reader, reader.uint32()).value;
33559
+ message.task_type = reader.int32();
34008
33560
  continue;
34009
33561
  case 4:
34010
33562
  if (tag !== 32) {
@@ -34054,7 +33606,7 @@ export const UpdateOnboardingRequest = {
34054
33606
  return {
34055
33607
  id: isSet(object.id) ? globalThis.String(object.id) : "0",
34056
33608
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
34057
- task_type: isSet(object.task_type) ? Number(object.task_type) : undefined,
33609
+ task_type: isSet(object.task_type) ? globalThis.Number(object.task_type) : 0,
34058
33610
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
34059
33611
  title: isSet(object.title) ? globalThis.String(object.title) : "",
34060
33612
  content: isSet(object.content) ? globalThis.String(object.content) : "",
@@ -34073,8 +33625,8 @@ export const UpdateOnboardingRequest = {
34073
33625
  if (message.clan_id !== "0") {
34074
33626
  obj.clan_id = message.clan_id;
34075
33627
  }
34076
- if (message.task_type !== undefined) {
34077
- obj.task_type = message.task_type;
33628
+ if (message.task_type !== 0) {
33629
+ obj.task_type = Math.round(message.task_type);
34078
33630
  }
34079
33631
  if (message.channel_id !== "0") {
34080
33632
  obj.channel_id = message.channel_id;
@@ -34101,7 +33653,7 @@ export const UpdateOnboardingRequest = {
34101
33653
  const message = createBaseUpdateOnboardingRequest();
34102
33654
  message.id = object.id ?? "0";
34103
33655
  message.clan_id = object.clan_id ?? "0";
34104
- message.task_type = object.task_type ?? undefined;
33656
+ message.task_type = object.task_type ?? 0;
34105
33657
  message.channel_id = object.channel_id ?? "0";
34106
33658
  message.title = object.title ?? "";
34107
33659
  message.content = object.content ?? "";
@@ -35374,7 +34926,7 @@ export const ListOnboardingStepResponse = {
35374
34926
  };
35375
34927
 
35376
34928
  function createBaseListOnboardingStepRequest(): ListOnboardingStepRequest {
35377
- return { clan_id: "0", limit: undefined, page: undefined };
34929
+ return { clan_id: "0", limit: 0, page: 0 };
35378
34930
  }
35379
34931
 
35380
34932
  export const ListOnboardingStepRequest = {
@@ -35382,11 +34934,11 @@ export const ListOnboardingStepRequest = {
35382
34934
  if (message.clan_id !== "0") {
35383
34935
  writer.uint32(8).int64(message.clan_id);
35384
34936
  }
35385
- if (message.limit !== undefined) {
35386
- Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
34937
+ if (message.limit !== 0) {
34938
+ writer.uint32(16).int32(message.limit);
35387
34939
  }
35388
- if (message.page !== undefined) {
35389
- Int32Value.encode({ value: message.page! }, writer.uint32(26).fork()).ldelim();
34940
+ if (message.page !== 0) {
34941
+ writer.uint32(24).int32(message.page);
35390
34942
  }
35391
34943
  return writer;
35392
34944
  },
@@ -35406,18 +34958,18 @@ export const ListOnboardingStepRequest = {
35406
34958
  message.clan_id = longToString(reader.int64() as Long);
35407
34959
  continue;
35408
34960
  case 2:
35409
- if (tag !== 18) {
34961
+ if (tag !== 16) {
35410
34962
  break;
35411
34963
  }
35412
34964
 
35413
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
34965
+ message.limit = reader.int32();
35414
34966
  continue;
35415
34967
  case 3:
35416
- if (tag !== 26) {
34968
+ if (tag !== 24) {
35417
34969
  break;
35418
34970
  }
35419
34971
 
35420
- message.page = Int32Value.decode(reader, reader.uint32()).value;
34972
+ message.page = reader.int32();
35421
34973
  continue;
35422
34974
  }
35423
34975
  if ((tag & 7) === 4 || tag === 0) {
@@ -35431,8 +34983,8 @@ export const ListOnboardingStepRequest = {
35431
34983
  fromJSON(object: any): ListOnboardingStepRequest {
35432
34984
  return {
35433
34985
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
35434
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
35435
- page: isSet(object.page) ? Number(object.page) : undefined,
34986
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
34987
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
35436
34988
  };
35437
34989
  },
35438
34990
 
@@ -35441,11 +34993,11 @@ export const ListOnboardingStepRequest = {
35441
34993
  if (message.clan_id !== "0") {
35442
34994
  obj.clan_id = message.clan_id;
35443
34995
  }
35444
- if (message.limit !== undefined) {
35445
- obj.limit = message.limit;
34996
+ if (message.limit !== 0) {
34997
+ obj.limit = Math.round(message.limit);
35446
34998
  }
35447
- if (message.page !== undefined) {
35448
- obj.page = message.page;
34999
+ if (message.page !== 0) {
35000
+ obj.page = Math.round(message.page);
35449
35001
  }
35450
35002
  return obj;
35451
35003
  },
@@ -35456,14 +35008,14 @@ export const ListOnboardingStepRequest = {
35456
35008
  fromPartial<I extends Exact<DeepPartial<ListOnboardingStepRequest>, I>>(object: I): ListOnboardingStepRequest {
35457
35009
  const message = createBaseListOnboardingStepRequest();
35458
35010
  message.clan_id = object.clan_id ?? "0";
35459
- message.limit = object.limit ?? undefined;
35460
- message.page = object.page ?? undefined;
35011
+ message.limit = object.limit ?? 0;
35012
+ message.page = object.page ?? 0;
35461
35013
  return message;
35462
35014
  },
35463
35015
  };
35464
35016
 
35465
35017
  function createBaseUpdateOnboardingStepRequest(): UpdateOnboardingStepRequest {
35466
- return { clan_id: "0", onboarding_step: undefined };
35018
+ return { clan_id: "0", onboarding_step: 0 };
35467
35019
  }
35468
35020
 
35469
35021
  export const UpdateOnboardingStepRequest = {
@@ -35471,8 +35023,8 @@ export const UpdateOnboardingStepRequest = {
35471
35023
  if (message.clan_id !== "0") {
35472
35024
  writer.uint32(8).int64(message.clan_id);
35473
35025
  }
35474
- if (message.onboarding_step !== undefined) {
35475
- Int32Value.encode({ value: message.onboarding_step! }, writer.uint32(18).fork()).ldelim();
35026
+ if (message.onboarding_step !== 0) {
35027
+ writer.uint32(16).int32(message.onboarding_step);
35476
35028
  }
35477
35029
  return writer;
35478
35030
  },
@@ -35492,11 +35044,11 @@ export const UpdateOnboardingStepRequest = {
35492
35044
  message.clan_id = longToString(reader.int64() as Long);
35493
35045
  continue;
35494
35046
  case 2:
35495
- if (tag !== 18) {
35047
+ if (tag !== 16) {
35496
35048
  break;
35497
35049
  }
35498
35050
 
35499
- message.onboarding_step = Int32Value.decode(reader, reader.uint32()).value;
35051
+ message.onboarding_step = reader.int32();
35500
35052
  continue;
35501
35053
  }
35502
35054
  if ((tag & 7) === 4 || tag === 0) {
@@ -35510,7 +35062,7 @@ export const UpdateOnboardingStepRequest = {
35510
35062
  fromJSON(object: any): UpdateOnboardingStepRequest {
35511
35063
  return {
35512
35064
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
35513
- onboarding_step: isSet(object.onboarding_step) ? Number(object.onboarding_step) : undefined,
35065
+ onboarding_step: isSet(object.onboarding_step) ? globalThis.Number(object.onboarding_step) : 0,
35514
35066
  };
35515
35067
  },
35516
35068
 
@@ -35519,8 +35071,8 @@ export const UpdateOnboardingStepRequest = {
35519
35071
  if (message.clan_id !== "0") {
35520
35072
  obj.clan_id = message.clan_id;
35521
35073
  }
35522
- if (message.onboarding_step !== undefined) {
35523
- obj.onboarding_step = message.onboarding_step;
35074
+ if (message.onboarding_step !== 0) {
35075
+ obj.onboarding_step = Math.round(message.onboarding_step);
35524
35076
  }
35525
35077
  return obj;
35526
35078
  },
@@ -35531,7 +35083,7 @@ export const UpdateOnboardingStepRequest = {
35531
35083
  fromPartial<I extends Exact<DeepPartial<UpdateOnboardingStepRequest>, I>>(object: I): UpdateOnboardingStepRequest {
35532
35084
  const message = createBaseUpdateOnboardingStepRequest();
35533
35085
  message.clan_id = object.clan_id ?? "0";
35534
- message.onboarding_step = object.onboarding_step ?? undefined;
35086
+ message.onboarding_step = object.onboarding_step ?? 0;
35535
35087
  return message;
35536
35088
  },
35537
35089
  };