mezon-js-protobuf 1.8.91 → 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 +515 -961
- package/dist/mezon-js/api/api.d.ts +54 -252
- package/dist/mezon-js-protobuf/api/api.d.ts +54 -252
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +690 -1012
- package/dist/mezon-js-protobuf.cjs.js +232 -612
- package/dist/mezon-js-protobuf.esm.mjs +232 -612
- package/package.json +1 -1
- package/rtapi/realtime.ts +23 -57
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|
|
@@ -2367,13 +2282,13 @@ export interface ClanSticker {
|
|
|
2367
2282
|
|
|
2368
2283
|
export interface AllUsersAddChannelRequest {
|
|
2369
2284
|
channel_id: string;
|
|
2370
|
-
limit: number
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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 !==
|
|
4435
|
-
|
|
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 !==
|
|
4356
|
+
if (tag !== 24) {
|
|
4466
4357
|
break;
|
|
4467
4358
|
}
|
|
4468
4359
|
|
|
4469
|
-
message.is_remember =
|
|
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) :
|
|
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 !==
|
|
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 ??
|
|
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:
|
|
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 !==
|
|
8700
|
-
|
|
8590
|
+
if (message.limit !== 0) {
|
|
8591
|
+
writer.uint32(32).int32(message.limit);
|
|
8701
8592
|
}
|
|
8702
|
-
if (message.direction !==
|
|
8703
|
-
|
|
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 !==
|
|
8631
|
+
if (tag !== 32) {
|
|
8741
8632
|
break;
|
|
8742
8633
|
}
|
|
8743
8634
|
|
|
8744
|
-
message.limit =
|
|
8635
|
+
message.limit = reader.int32();
|
|
8745
8636
|
continue;
|
|
8746
8637
|
case 5:
|
|
8747
|
-
if (tag !==
|
|
8638
|
+
if (tag !== 40) {
|
|
8748
8639
|
break;
|
|
8749
8640
|
}
|
|
8750
8641
|
|
|
8751
|
-
message.direction =
|
|
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) :
|
|
8775
|
-
direction: isSet(object.direction) ? Number(object.direction) :
|
|
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 !==
|
|
8792
|
-
obj.limit = message.limit;
|
|
8682
|
+
if (message.limit !== 0) {
|
|
8683
|
+
obj.limit = Math.round(message.limit);
|
|
8793
8684
|
}
|
|
8794
|
-
if (message.direction !==
|
|
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 ??
|
|
8812
|
-
message.direction = object.direction ??
|
|
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:
|
|
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 !==
|
|
8825
|
-
|
|
8715
|
+
if (message.limit !== 0) {
|
|
8716
|
+
writer.uint32(8).int32(message.limit);
|
|
8826
8717
|
}
|
|
8827
|
-
if (message.state !==
|
|
8828
|
-
|
|
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 !==
|
|
8735
|
+
if (tag !== 8) {
|
|
8845
8736
|
break;
|
|
8846
8737
|
}
|
|
8847
8738
|
|
|
8848
|
-
message.limit =
|
|
8739
|
+
message.limit = reader.int32();
|
|
8849
8740
|
continue;
|
|
8850
8741
|
case 2:
|
|
8851
|
-
if (tag !==
|
|
8742
|
+
if (tag !== 16) {
|
|
8852
8743
|
break;
|
|
8853
8744
|
}
|
|
8854
8745
|
|
|
8855
|
-
message.state =
|
|
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) :
|
|
8876
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
8884
|
-
obj.limit = message.limit;
|
|
8774
|
+
if (message.limit !== 0) {
|
|
8775
|
+
obj.limit = Math.round(message.limit);
|
|
8885
8776
|
}
|
|
8886
|
-
if (message.state !==
|
|
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 ??
|
|
8901
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
8920
|
-
|
|
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 !==
|
|
8926
|
-
|
|
8816
|
+
if (message.members !== 0) {
|
|
8817
|
+
writer.uint32(40).int32(message.members);
|
|
8927
8818
|
}
|
|
8928
|
-
if (message.open !==
|
|
8929
|
-
|
|
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 !==
|
|
8847
|
+
if (tag !== 24) {
|
|
8957
8848
|
break;
|
|
8958
8849
|
}
|
|
8959
8850
|
|
|
8960
|
-
message.limit =
|
|
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 !==
|
|
8861
|
+
if (tag !== 40) {
|
|
8971
8862
|
break;
|
|
8972
8863
|
}
|
|
8973
8864
|
|
|
8974
|
-
message.members =
|
|
8865
|
+
message.members = reader.int32();
|
|
8975
8866
|
continue;
|
|
8976
8867
|
case 6:
|
|
8977
|
-
if (tag !==
|
|
8868
|
+
if (tag !== 48) {
|
|
8978
8869
|
break;
|
|
8979
8870
|
}
|
|
8980
8871
|
|
|
8981
|
-
message.open =
|
|
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) :
|
|
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) :
|
|
8999
|
-
open: isSet(object.open) ? Boolean(object.open) :
|
|
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 !==
|
|
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 !==
|
|
9018
|
-
obj.members = message.members;
|
|
8908
|
+
if (message.members !== 0) {
|
|
8909
|
+
obj.members = Math.round(message.members);
|
|
9019
8910
|
}
|
|
9020
|
-
if (message.open !==
|
|
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 ??
|
|
8924
|
+
message.limit = object.limit ?? 0;
|
|
9034
8925
|
message.lang_tag = object.lang_tag ?? "";
|
|
9035
|
-
message.members = object.members ??
|
|
9036
|
-
message.open = object.open ??
|
|
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:
|
|
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 !==
|
|
9051
|
-
|
|
8941
|
+
if (message.limit !== 0) {
|
|
8942
|
+
writer.uint32(16).int32(message.limit);
|
|
9052
8943
|
}
|
|
9053
|
-
if (message.state !==
|
|
9054
|
-
|
|
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 !==
|
|
8968
|
+
if (tag !== 16) {
|
|
9078
8969
|
break;
|
|
9079
8970
|
}
|
|
9080
8971
|
|
|
9081
|
-
message.limit =
|
|
8972
|
+
message.limit = reader.int32();
|
|
9082
8973
|
continue;
|
|
9083
8974
|
case 3:
|
|
9084
|
-
if (tag !==
|
|
8975
|
+
if (tag !== 24) {
|
|
9085
8976
|
break;
|
|
9086
8977
|
}
|
|
9087
8978
|
|
|
9088
|
-
message.state =
|
|
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) :
|
|
9110
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
9121
|
-
obj.limit = message.limit;
|
|
9011
|
+
if (message.limit !== 0) {
|
|
9012
|
+
obj.limit = Math.round(message.limit);
|
|
9122
9013
|
}
|
|
9123
|
-
if (message.state !==
|
|
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 ??
|
|
9139
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
9161
|
-
|
|
9051
|
+
if (message.limit !== 0) {
|
|
9052
|
+
writer.uint32(32).int32(message.limit);
|
|
9162
9053
|
}
|
|
9163
|
-
if (message.state !==
|
|
9164
|
-
|
|
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 !==
|
|
9092
|
+
if (tag !== 32) {
|
|
9202
9093
|
break;
|
|
9203
9094
|
}
|
|
9204
9095
|
|
|
9205
|
-
message.limit =
|
|
9096
|
+
message.limit = reader.int32();
|
|
9206
9097
|
continue;
|
|
9207
9098
|
case 5:
|
|
9208
|
-
if (tag !==
|
|
9099
|
+
if (tag !== 40) {
|
|
9209
9100
|
break;
|
|
9210
9101
|
}
|
|
9211
9102
|
|
|
9212
|
-
message.state =
|
|
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) :
|
|
9236
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
9253
|
-
obj.limit = message.limit;
|
|
9143
|
+
if (message.limit !== 0) {
|
|
9144
|
+
obj.limit = Math.round(message.limit);
|
|
9254
9145
|
}
|
|
9255
|
-
if (message.state !==
|
|
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 ??
|
|
9273
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
9507
|
-
|
|
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 !==
|
|
9519
|
-
|
|
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 !==
|
|
9423
|
+
if (tag !== 8) {
|
|
9533
9424
|
break;
|
|
9534
9425
|
}
|
|
9535
9426
|
|
|
9536
|
-
message.limit =
|
|
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 !==
|
|
9451
|
+
if (tag !== 40) {
|
|
9561
9452
|
break;
|
|
9562
9453
|
}
|
|
9563
9454
|
|
|
9564
|
-
message.direction =
|
|
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) :
|
|
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) :
|
|
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 !==
|
|
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 !==
|
|
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 ??
|
|
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 ??
|
|
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:
|
|
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 !==
|
|
9629
|
-
|
|
9519
|
+
if (message.limit !== 0) {
|
|
9520
|
+
writer.uint32(16).int32(message.limit);
|
|
9630
9521
|
}
|
|
9631
|
-
if (message.state !==
|
|
9632
|
-
|
|
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 !==
|
|
9546
|
+
if (tag !== 16) {
|
|
9656
9547
|
break;
|
|
9657
9548
|
}
|
|
9658
9549
|
|
|
9659
|
-
message.limit =
|
|
9550
|
+
message.limit = reader.int32();
|
|
9660
9551
|
continue;
|
|
9661
9552
|
case 3:
|
|
9662
|
-
if (tag !==
|
|
9553
|
+
if (tag !== 24) {
|
|
9663
9554
|
break;
|
|
9664
9555
|
}
|
|
9665
9556
|
|
|
9666
|
-
message.state =
|
|
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) :
|
|
9688
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
9699
|
-
obj.limit = message.limit;
|
|
9589
|
+
if (message.limit !== 0) {
|
|
9590
|
+
obj.limit = Math.round(message.limit);
|
|
9700
9591
|
}
|
|
9701
|
-
if (message.state !==
|
|
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 ??
|
|
9717
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
10954
|
-
|
|
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 !==
|
|
10893
|
+
if (tag !== 48) {
|
|
11003
10894
|
break;
|
|
11004
10895
|
}
|
|
11005
10896
|
|
|
11006
|
-
message.open =
|
|
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) :
|
|
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 !==
|
|
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 ??
|
|
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:
|
|
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 !==
|
|
12644
|
-
|
|
12534
|
+
if (message.limit !== 0) {
|
|
12535
|
+
writer.uint32(8).int32(message.limit);
|
|
12645
12536
|
}
|
|
12646
|
-
if (message.state !==
|
|
12647
|
-
|
|
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 !==
|
|
12554
|
+
if (tag !== 8) {
|
|
12664
12555
|
break;
|
|
12665
12556
|
}
|
|
12666
12557
|
|
|
12667
|
-
message.limit =
|
|
12558
|
+
message.limit = reader.int32();
|
|
12668
12559
|
continue;
|
|
12669
12560
|
case 2:
|
|
12670
|
-
if (tag !==
|
|
12561
|
+
if (tag !== 16) {
|
|
12671
12562
|
break;
|
|
12672
12563
|
}
|
|
12673
12564
|
|
|
12674
|
-
message.state =
|
|
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) :
|
|
12695
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
12703
|
-
obj.limit = message.limit;
|
|
12593
|
+
if (message.limit !== 0) {
|
|
12594
|
+
obj.limit = Math.round(message.limit);
|
|
12704
12595
|
}
|
|
12705
|
-
if (message.state !==
|
|
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 ??
|
|
12720
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
14529
|
-
|
|
14419
|
+
if (message.limit !== 0) {
|
|
14420
|
+
writer.uint32(8).int32(message.limit);
|
|
14530
14421
|
}
|
|
14531
|
-
if (message.state !==
|
|
14532
|
-
|
|
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 !==
|
|
14439
|
+
if (tag !== 8) {
|
|
14549
14440
|
break;
|
|
14550
14441
|
}
|
|
14551
14442
|
|
|
14552
|
-
message.limit =
|
|
14443
|
+
message.limit = reader.int32();
|
|
14553
14444
|
continue;
|
|
14554
14445
|
case 2:
|
|
14555
|
-
if (tag !==
|
|
14446
|
+
if (tag !== 16) {
|
|
14556
14447
|
break;
|
|
14557
14448
|
}
|
|
14558
14449
|
|
|
14559
|
-
message.state =
|
|
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) :
|
|
14580
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
14588
|
-
obj.limit = message.limit;
|
|
14478
|
+
if (message.limit !== 0) {
|
|
14479
|
+
obj.limit = Math.round(message.limit);
|
|
14589
14480
|
}
|
|
14590
|
-
if (message.state !==
|
|
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 ??
|
|
14605
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
15436
|
-
|
|
15326
|
+
if (message.limit !== 0) {
|
|
15327
|
+
writer.uint32(8).int32(message.limit);
|
|
15437
15328
|
}
|
|
15438
|
-
if (message.state !==
|
|
15439
|
-
|
|
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 !==
|
|
15451
|
-
|
|
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 !==
|
|
15355
|
+
if (tag !== 8) {
|
|
15465
15356
|
break;
|
|
15466
15357
|
}
|
|
15467
15358
|
|
|
15468
|
-
message.limit =
|
|
15359
|
+
message.limit = reader.int32();
|
|
15469
15360
|
continue;
|
|
15470
15361
|
case 2:
|
|
15471
|
-
if (tag !==
|
|
15362
|
+
if (tag !== 16) {
|
|
15472
15363
|
break;
|
|
15473
15364
|
}
|
|
15474
15365
|
|
|
15475
|
-
message.state =
|
|
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 !==
|
|
15390
|
+
if (tag !== 48) {
|
|
15500
15391
|
break;
|
|
15501
15392
|
}
|
|
15502
15393
|
|
|
15503
|
-
message.page =
|
|
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) :
|
|
15517
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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) :
|
|
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 !==
|
|
15528
|
-
obj.limit = message.limit;
|
|
15418
|
+
if (message.limit !== 0) {
|
|
15419
|
+
obj.limit = Math.round(message.limit);
|
|
15529
15420
|
}
|
|
15530
|
-
if (message.state !==
|
|
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 !==
|
|
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 ??
|
|
15554
|
-
message.state = object.state ??
|
|
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 ??
|
|
15449
|
+
message.page = object.page ?? 0;
|
|
15559
15450
|
return message;
|
|
15560
15451
|
},
|
|
15561
15452
|
};
|
|
15562
15453
|
|
|
15563
15454
|
function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
|
|
15564
|
-
return { limit:
|
|
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 !==
|
|
15570
|
-
|
|
15460
|
+
if (message.limit !== 0) {
|
|
15461
|
+
writer.uint32(8).int32(message.limit);
|
|
15571
15462
|
}
|
|
15572
|
-
if (message.state !==
|
|
15573
|
-
|
|
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 !==
|
|
15489
|
+
if (tag !== 8) {
|
|
15599
15490
|
break;
|
|
15600
15491
|
}
|
|
15601
15492
|
|
|
15602
|
-
message.limit =
|
|
15493
|
+
message.limit = reader.int32();
|
|
15603
15494
|
continue;
|
|
15604
15495
|
case 2:
|
|
15605
|
-
if (tag !==
|
|
15496
|
+
if (tag !== 16) {
|
|
15606
15497
|
break;
|
|
15607
15498
|
}
|
|
15608
15499
|
|
|
15609
|
-
message.state =
|
|
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) :
|
|
15651
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
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 !==
|
|
15662
|
-
obj.limit = message.limit;
|
|
15552
|
+
if (message.limit !== 0) {
|
|
15553
|
+
obj.limit = Math.round(message.limit);
|
|
15663
15554
|
}
|
|
15664
|
-
if (message.state !==
|
|
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 ??
|
|
15688
|
-
message.state = object.state ??
|
|
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:
|
|
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 !==
|
|
20131
|
-
|
|
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 !==
|
|
19725
|
+
if (tag !== 16) {
|
|
20155
19726
|
break;
|
|
20156
19727
|
}
|
|
20157
19728
|
|
|
20158
|
-
message.limit =
|
|
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) :
|
|
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 !==
|
|
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 ??
|
|
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:
|
|
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 !==
|
|
20959
|
-
|
|
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 !==
|
|
20651
|
+
if (tag !== 128) {
|
|
21081
20652
|
break;
|
|
21082
20653
|
}
|
|
21083
20654
|
|
|
21084
|
-
message.is_private =
|
|
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) :
|
|
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 !==
|
|
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 ??
|
|
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:
|
|
21692
|
-
allow_mention:
|
|
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 !==
|
|
21720
|
-
|
|
21290
|
+
if (message.display_online !== 0) {
|
|
21291
|
+
writer.uint32(48).int32(message.display_online);
|
|
21721
21292
|
}
|
|
21722
|
-
if (message.allow_mention !==
|
|
21723
|
-
|
|
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 !==
|
|
21368
|
+
if (tag !== 48) {
|
|
21798
21369
|
break;
|
|
21799
21370
|
}
|
|
21800
21371
|
|
|
21801
|
-
message.display_online =
|
|
21372
|
+
message.display_online = reader.int32();
|
|
21802
21373
|
continue;
|
|
21803
21374
|
case 7:
|
|
21804
|
-
if (tag !==
|
|
21375
|
+
if (tag !== 56) {
|
|
21805
21376
|
break;
|
|
21806
21377
|
}
|
|
21807
21378
|
|
|
21808
|
-
message.allow_mention =
|
|
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) :
|
|
21909
|
-
allow_mention: isSet(object.allow_mention) ? Number(object.allow_mention) :
|
|
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 !==
|
|
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 !==
|
|
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 ??
|
|
21982
|
-
message.allow_mention = object.allow_mention ??
|
|
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:
|
|
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 !==
|
|
22344
|
-
|
|
21914
|
+
if (message.limit !== 0) {
|
|
21915
|
+
writer.uint32(8).int32(message.limit);
|
|
22345
21916
|
}
|
|
22346
|
-
if (message.forward !==
|
|
22347
|
-
|
|
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 !==
|
|
21934
|
+
if (tag !== 8) {
|
|
22364
21935
|
break;
|
|
22365
21936
|
}
|
|
22366
21937
|
|
|
22367
|
-
message.limit =
|
|
21938
|
+
message.limit = reader.int32();
|
|
22368
21939
|
continue;
|
|
22369
21940
|
case 2:
|
|
22370
|
-
if (tag !==
|
|
21941
|
+
if (tag !== 16) {
|
|
22371
21942
|
break;
|
|
22372
21943
|
}
|
|
22373
21944
|
|
|
22374
|
-
message.forward =
|
|
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) :
|
|
22395
|
-
forward: isSet(object.forward) ? Boolean(object.forward) :
|
|
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 !==
|
|
22403
|
-
obj.limit = message.limit;
|
|
21973
|
+
if (message.limit !== 0) {
|
|
21974
|
+
obj.limit = Math.round(message.limit);
|
|
22404
21975
|
}
|
|
22405
|
-
if (message.forward !==
|
|
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 ??
|
|
22420
|
-
message.forward = object.forward ??
|
|
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:
|
|
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 !==
|
|
22510
|
-
|
|
22080
|
+
if (message.from !== 0) {
|
|
22081
|
+
writer.uint32(24).int32(message.from);
|
|
22511
22082
|
}
|
|
22512
|
-
if (message.size !==
|
|
22513
|
-
|
|
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 !==
|
|
22107
|
+
if (tag !== 24) {
|
|
22537
22108
|
break;
|
|
22538
22109
|
}
|
|
22539
22110
|
|
|
22540
|
-
message.from =
|
|
22111
|
+
message.from = reader.int32();
|
|
22541
22112
|
continue;
|
|
22542
22113
|
case 4:
|
|
22543
|
-
if (tag !==
|
|
22114
|
+
if (tag !== 32) {
|
|
22544
22115
|
break;
|
|
22545
22116
|
}
|
|
22546
22117
|
|
|
22547
|
-
message.size =
|
|
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) :
|
|
22569
|
-
size: isSet(object.size) ? Number(object.size) :
|
|
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 !==
|
|
22580
|
-
obj.from = message.from;
|
|
22150
|
+
if (message.from !== 0) {
|
|
22151
|
+
obj.from = Math.round(message.from);
|
|
22581
22152
|
}
|
|
22582
|
-
if (message.size !==
|
|
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 ??
|
|
22598
|
-
message.size = object.size ??
|
|
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
|
},
|
|
@@ -23945,7 +23516,7 @@ export const ClanSticker = {
|
|
|
23945
23516
|
};
|
|
23946
23517
|
|
|
23947
23518
|
function createBaseAllUsersAddChannelRequest(): AllUsersAddChannelRequest {
|
|
23948
|
-
return { channel_id: "0", limit:
|
|
23519
|
+
return { channel_id: "0", limit: 0 };
|
|
23949
23520
|
}
|
|
23950
23521
|
|
|
23951
23522
|
export const AllUsersAddChannelRequest = {
|
|
@@ -23953,8 +23524,8 @@ export const AllUsersAddChannelRequest = {
|
|
|
23953
23524
|
if (message.channel_id !== "0") {
|
|
23954
23525
|
writer.uint32(8).int64(message.channel_id);
|
|
23955
23526
|
}
|
|
23956
|
-
if (message.limit !==
|
|
23957
|
-
|
|
23527
|
+
if (message.limit !== 0) {
|
|
23528
|
+
writer.uint32(16).int32(message.limit);
|
|
23958
23529
|
}
|
|
23959
23530
|
return writer;
|
|
23960
23531
|
},
|
|
@@ -23974,11 +23545,11 @@ export const AllUsersAddChannelRequest = {
|
|
|
23974
23545
|
message.channel_id = longToString(reader.int64() as Long);
|
|
23975
23546
|
continue;
|
|
23976
23547
|
case 2:
|
|
23977
|
-
if (tag !==
|
|
23548
|
+
if (tag !== 16) {
|
|
23978
23549
|
break;
|
|
23979
23550
|
}
|
|
23980
23551
|
|
|
23981
|
-
message.limit =
|
|
23552
|
+
message.limit = reader.int32();
|
|
23982
23553
|
continue;
|
|
23983
23554
|
}
|
|
23984
23555
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -23992,7 +23563,7 @@ export const AllUsersAddChannelRequest = {
|
|
|
23992
23563
|
fromJSON(object: any): AllUsersAddChannelRequest {
|
|
23993
23564
|
return {
|
|
23994
23565
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
23995
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
23566
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
23996
23567
|
};
|
|
23997
23568
|
},
|
|
23998
23569
|
|
|
@@ -24001,8 +23572,8 @@ export const AllUsersAddChannelRequest = {
|
|
|
24001
23572
|
if (message.channel_id !== "0") {
|
|
24002
23573
|
obj.channel_id = message.channel_id;
|
|
24003
23574
|
}
|
|
24004
|
-
if (message.limit !==
|
|
24005
|
-
obj.limit = message.limit;
|
|
23575
|
+
if (message.limit !== 0) {
|
|
23576
|
+
obj.limit = Math.round(message.limit);
|
|
24006
23577
|
}
|
|
24007
23578
|
return obj;
|
|
24008
23579
|
},
|
|
@@ -24013,21 +23584,13 @@ export const AllUsersAddChannelRequest = {
|
|
|
24013
23584
|
fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(object: I): AllUsersAddChannelRequest {
|
|
24014
23585
|
const message = createBaseAllUsersAddChannelRequest();
|
|
24015
23586
|
message.channel_id = object.channel_id ?? "0";
|
|
24016
|
-
message.limit = object.limit ??
|
|
23587
|
+
message.limit = object.limit ?? 0;
|
|
24017
23588
|
return message;
|
|
24018
23589
|
},
|
|
24019
23590
|
};
|
|
24020
23591
|
|
|
24021
23592
|
function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
|
|
24022
|
-
return {
|
|
24023
|
-
channel_id: "0",
|
|
24024
|
-
user_ids: [],
|
|
24025
|
-
limit: undefined,
|
|
24026
|
-
usernames: [],
|
|
24027
|
-
display_names: [],
|
|
24028
|
-
avatars: [],
|
|
24029
|
-
onlines: [],
|
|
24030
|
-
};
|
|
23593
|
+
return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
|
|
24031
23594
|
}
|
|
24032
23595
|
|
|
24033
23596
|
export const AllUsersAddChannelResponse = {
|
|
@@ -24040,8 +23603,8 @@ export const AllUsersAddChannelResponse = {
|
|
|
24040
23603
|
writer.int64(v);
|
|
24041
23604
|
}
|
|
24042
23605
|
writer.ldelim();
|
|
24043
|
-
if (message.limit !==
|
|
24044
|
-
|
|
23606
|
+
if (message.limit !== 0) {
|
|
23607
|
+
writer.uint32(24).int32(message.limit);
|
|
24045
23608
|
}
|
|
24046
23609
|
for (const v of message.usernames) {
|
|
24047
23610
|
writer.uint32(34).string(v!);
|
|
@@ -24092,11 +23655,11 @@ export const AllUsersAddChannelResponse = {
|
|
|
24092
23655
|
|
|
24093
23656
|
break;
|
|
24094
23657
|
case 3:
|
|
24095
|
-
if (tag !==
|
|
23658
|
+
if (tag !== 24) {
|
|
24096
23659
|
break;
|
|
24097
23660
|
}
|
|
24098
23661
|
|
|
24099
|
-
message.limit =
|
|
23662
|
+
message.limit = reader.int32();
|
|
24100
23663
|
continue;
|
|
24101
23664
|
case 4:
|
|
24102
23665
|
if (tag !== 34) {
|
|
@@ -24149,7 +23712,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
24149
23712
|
return {
|
|
24150
23713
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
24151
23714
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
24152
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
23715
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
24153
23716
|
usernames: globalThis.Array.isArray(object?.usernames)
|
|
24154
23717
|
? object.usernames.map((e: any) => globalThis.String(e))
|
|
24155
23718
|
: [],
|
|
@@ -24169,8 +23732,8 @@ export const AllUsersAddChannelResponse = {
|
|
|
24169
23732
|
if (message.user_ids?.length) {
|
|
24170
23733
|
obj.user_ids = message.user_ids;
|
|
24171
23734
|
}
|
|
24172
|
-
if (message.limit !==
|
|
24173
|
-
obj.limit = message.limit;
|
|
23735
|
+
if (message.limit !== 0) {
|
|
23736
|
+
obj.limit = Math.round(message.limit);
|
|
24174
23737
|
}
|
|
24175
23738
|
if (message.usernames?.length) {
|
|
24176
23739
|
obj.usernames = message.usernames;
|
|
@@ -24194,7 +23757,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
24194
23757
|
const message = createBaseAllUsersAddChannelResponse();
|
|
24195
23758
|
message.channel_id = object.channel_id ?? "0";
|
|
24196
23759
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
24197
|
-
message.limit = object.limit ??
|
|
23760
|
+
message.limit = object.limit ?? 0;
|
|
24198
23761
|
message.usernames = object.usernames?.map((e) => e) || [];
|
|
24199
23762
|
message.display_names = object.display_names?.map((e) => e) || [];
|
|
24200
23763
|
message.avatars = object.avatars?.map((e) => e) || [];
|
|
@@ -26348,7 +25911,7 @@ export const App = {
|
|
|
26348
25911
|
};
|
|
26349
25912
|
|
|
26350
25913
|
function createBaseAppDeleteRequest(): AppDeleteRequest {
|
|
26351
|
-
return { id: "0", record_deletion:
|
|
25914
|
+
return { id: "0", record_deletion: false };
|
|
26352
25915
|
}
|
|
26353
25916
|
|
|
26354
25917
|
export const AppDeleteRequest = {
|
|
@@ -26356,8 +25919,8 @@ export const AppDeleteRequest = {
|
|
|
26356
25919
|
if (message.id !== "0") {
|
|
26357
25920
|
writer.uint32(8).int64(message.id);
|
|
26358
25921
|
}
|
|
26359
|
-
if (message.record_deletion !==
|
|
26360
|
-
|
|
25922
|
+
if (message.record_deletion !== false) {
|
|
25923
|
+
writer.uint32(16).bool(message.record_deletion);
|
|
26361
25924
|
}
|
|
26362
25925
|
return writer;
|
|
26363
25926
|
},
|
|
@@ -26377,11 +25940,11 @@ export const AppDeleteRequest = {
|
|
|
26377
25940
|
message.id = longToString(reader.int64() as Long);
|
|
26378
25941
|
continue;
|
|
26379
25942
|
case 2:
|
|
26380
|
-
if (tag !==
|
|
25943
|
+
if (tag !== 16) {
|
|
26381
25944
|
break;
|
|
26382
25945
|
}
|
|
26383
25946
|
|
|
26384
|
-
message.record_deletion =
|
|
25947
|
+
message.record_deletion = reader.bool();
|
|
26385
25948
|
continue;
|
|
26386
25949
|
}
|
|
26387
25950
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -26395,7 +25958,7 @@ export const AppDeleteRequest = {
|
|
|
26395
25958
|
fromJSON(object: any): AppDeleteRequest {
|
|
26396
25959
|
return {
|
|
26397
25960
|
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
26398
|
-
record_deletion: isSet(object.record_deletion) ? Boolean(object.record_deletion) :
|
|
25961
|
+
record_deletion: isSet(object.record_deletion) ? globalThis.Boolean(object.record_deletion) : false,
|
|
26399
25962
|
};
|
|
26400
25963
|
},
|
|
26401
25964
|
|
|
@@ -26404,7 +25967,7 @@ export const AppDeleteRequest = {
|
|
|
26404
25967
|
if (message.id !== "0") {
|
|
26405
25968
|
obj.id = message.id;
|
|
26406
25969
|
}
|
|
26407
|
-
if (message.record_deletion !==
|
|
25970
|
+
if (message.record_deletion !== false) {
|
|
26408
25971
|
obj.record_deletion = message.record_deletion;
|
|
26409
25972
|
}
|
|
26410
25973
|
return obj;
|
|
@@ -26416,7 +25979,7 @@ export const AppDeleteRequest = {
|
|
|
26416
25979
|
fromPartial<I extends Exact<DeepPartial<AppDeleteRequest>, I>>(object: I): AppDeleteRequest {
|
|
26417
25980
|
const message = createBaseAppDeleteRequest();
|
|
26418
25981
|
message.id = object.id ?? "0";
|
|
26419
|
-
message.record_deletion = object.record_deletion ??
|
|
25982
|
+
message.record_deletion = object.record_deletion ?? false;
|
|
26420
25983
|
return message;
|
|
26421
25984
|
},
|
|
26422
25985
|
};
|
|
@@ -27957,13 +27520,13 @@ export const StreamHttpCallbackRequest = {
|
|
|
27957
27520
|
};
|
|
27958
27521
|
|
|
27959
27522
|
function createBaseStreamHttpCallbackResponse(): StreamHttpCallbackResponse {
|
|
27960
|
-
return { code:
|
|
27523
|
+
return { code: 0, msg: "" };
|
|
27961
27524
|
}
|
|
27962
27525
|
|
|
27963
27526
|
export const StreamHttpCallbackResponse = {
|
|
27964
27527
|
encode(message: StreamHttpCallbackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27965
|
-
if (message.code !==
|
|
27966
|
-
|
|
27528
|
+
if (message.code !== 0) {
|
|
27529
|
+
writer.uint32(8).int32(message.code);
|
|
27967
27530
|
}
|
|
27968
27531
|
if (message.msg !== "") {
|
|
27969
27532
|
writer.uint32(18).string(message.msg);
|
|
@@ -27979,11 +27542,11 @@ export const StreamHttpCallbackResponse = {
|
|
|
27979
27542
|
const tag = reader.uint32();
|
|
27980
27543
|
switch (tag >>> 3) {
|
|
27981
27544
|
case 1:
|
|
27982
|
-
if (tag !==
|
|
27545
|
+
if (tag !== 8) {
|
|
27983
27546
|
break;
|
|
27984
27547
|
}
|
|
27985
27548
|
|
|
27986
|
-
message.code =
|
|
27549
|
+
message.code = reader.int32();
|
|
27987
27550
|
continue;
|
|
27988
27551
|
case 2:
|
|
27989
27552
|
if (tag !== 18) {
|
|
@@ -28003,15 +27566,15 @@ export const StreamHttpCallbackResponse = {
|
|
|
28003
27566
|
|
|
28004
27567
|
fromJSON(object: any): StreamHttpCallbackResponse {
|
|
28005
27568
|
return {
|
|
28006
|
-
code: isSet(object.code) ? Number(object.code) :
|
|
27569
|
+
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
28007
27570
|
msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
|
|
28008
27571
|
};
|
|
28009
27572
|
},
|
|
28010
27573
|
|
|
28011
27574
|
toJSON(message: StreamHttpCallbackResponse): unknown {
|
|
28012
27575
|
const obj: any = {};
|
|
28013
|
-
if (message.code !==
|
|
28014
|
-
obj.code = message.code;
|
|
27576
|
+
if (message.code !== 0) {
|
|
27577
|
+
obj.code = Math.round(message.code);
|
|
28015
27578
|
}
|
|
28016
27579
|
if (message.msg !== "") {
|
|
28017
27580
|
obj.msg = message.msg;
|
|
@@ -28024,7 +27587,7 @@ export const StreamHttpCallbackResponse = {
|
|
|
28024
27587
|
},
|
|
28025
27588
|
fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackResponse>, I>>(object: I): StreamHttpCallbackResponse {
|
|
28026
27589
|
const message = createBaseStreamHttpCallbackResponse();
|
|
28027
|
-
message.code = object.code ??
|
|
27590
|
+
message.code = object.code ?? 0;
|
|
28028
27591
|
message.msg = object.msg ?? "";
|
|
28029
27592
|
return message;
|
|
28030
27593
|
},
|
|
@@ -29504,12 +29067,12 @@ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
|
|
|
29504
29067
|
clan_id: "0",
|
|
29505
29068
|
parent_id: "0",
|
|
29506
29069
|
category_id: "0",
|
|
29507
|
-
private_channel:
|
|
29508
|
-
active:
|
|
29509
|
-
status:
|
|
29510
|
-
type:
|
|
29511
|
-
limit:
|
|
29512
|
-
page:
|
|
29070
|
+
private_channel: 0,
|
|
29071
|
+
active: 0,
|
|
29072
|
+
status: 0,
|
|
29073
|
+
type: 0,
|
|
29074
|
+
limit: 0,
|
|
29075
|
+
page: 0,
|
|
29513
29076
|
channel_label: "",
|
|
29514
29077
|
};
|
|
29515
29078
|
}
|
|
@@ -29525,23 +29088,23 @@ export const ChannelSettingListRequest = {
|
|
|
29525
29088
|
if (message.category_id !== "0") {
|
|
29526
29089
|
writer.uint32(24).int64(message.category_id);
|
|
29527
29090
|
}
|
|
29528
|
-
if (message.private_channel !==
|
|
29529
|
-
|
|
29091
|
+
if (message.private_channel !== 0) {
|
|
29092
|
+
writer.uint32(32).int32(message.private_channel);
|
|
29530
29093
|
}
|
|
29531
|
-
if (message.active !==
|
|
29532
|
-
|
|
29094
|
+
if (message.active !== 0) {
|
|
29095
|
+
writer.uint32(40).int32(message.active);
|
|
29533
29096
|
}
|
|
29534
|
-
if (message.status !==
|
|
29535
|
-
|
|
29097
|
+
if (message.status !== 0) {
|
|
29098
|
+
writer.uint32(48).int32(message.status);
|
|
29536
29099
|
}
|
|
29537
|
-
if (message.type !==
|
|
29538
|
-
|
|
29100
|
+
if (message.type !== 0) {
|
|
29101
|
+
writer.uint32(56).int32(message.type);
|
|
29539
29102
|
}
|
|
29540
|
-
if (message.limit !==
|
|
29541
|
-
|
|
29103
|
+
if (message.limit !== 0) {
|
|
29104
|
+
writer.uint32(64).int32(message.limit);
|
|
29542
29105
|
}
|
|
29543
|
-
if (message.page !==
|
|
29544
|
-
|
|
29106
|
+
if (message.page !== 0) {
|
|
29107
|
+
writer.uint32(72).int32(message.page);
|
|
29545
29108
|
}
|
|
29546
29109
|
if (message.channel_label !== "") {
|
|
29547
29110
|
writer.uint32(82).string(message.channel_label);
|
|
@@ -29578,46 +29141,46 @@ export const ChannelSettingListRequest = {
|
|
|
29578
29141
|
message.category_id = longToString(reader.int64() as Long);
|
|
29579
29142
|
continue;
|
|
29580
29143
|
case 4:
|
|
29581
|
-
if (tag !==
|
|
29144
|
+
if (tag !== 32) {
|
|
29582
29145
|
break;
|
|
29583
29146
|
}
|
|
29584
29147
|
|
|
29585
|
-
message.private_channel =
|
|
29148
|
+
message.private_channel = reader.int32();
|
|
29586
29149
|
continue;
|
|
29587
29150
|
case 5:
|
|
29588
|
-
if (tag !==
|
|
29151
|
+
if (tag !== 40) {
|
|
29589
29152
|
break;
|
|
29590
29153
|
}
|
|
29591
29154
|
|
|
29592
|
-
message.active =
|
|
29155
|
+
message.active = reader.int32();
|
|
29593
29156
|
continue;
|
|
29594
29157
|
case 6:
|
|
29595
|
-
if (tag !==
|
|
29158
|
+
if (tag !== 48) {
|
|
29596
29159
|
break;
|
|
29597
29160
|
}
|
|
29598
29161
|
|
|
29599
|
-
message.status =
|
|
29162
|
+
message.status = reader.int32();
|
|
29600
29163
|
continue;
|
|
29601
29164
|
case 7:
|
|
29602
|
-
if (tag !==
|
|
29165
|
+
if (tag !== 56) {
|
|
29603
29166
|
break;
|
|
29604
29167
|
}
|
|
29605
29168
|
|
|
29606
|
-
message.type =
|
|
29169
|
+
message.type = reader.int32();
|
|
29607
29170
|
continue;
|
|
29608
29171
|
case 8:
|
|
29609
|
-
if (tag !==
|
|
29172
|
+
if (tag !== 64) {
|
|
29610
29173
|
break;
|
|
29611
29174
|
}
|
|
29612
29175
|
|
|
29613
|
-
message.limit =
|
|
29176
|
+
message.limit = reader.int32();
|
|
29614
29177
|
continue;
|
|
29615
29178
|
case 9:
|
|
29616
|
-
if (tag !==
|
|
29179
|
+
if (tag !== 72) {
|
|
29617
29180
|
break;
|
|
29618
29181
|
}
|
|
29619
29182
|
|
|
29620
|
-
message.page =
|
|
29183
|
+
message.page = reader.int32();
|
|
29621
29184
|
continue;
|
|
29622
29185
|
case 10:
|
|
29623
29186
|
if (tag !== 82) {
|
|
@@ -29640,12 +29203,12 @@ export const ChannelSettingListRequest = {
|
|
|
29640
29203
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
29641
29204
|
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "0",
|
|
29642
29205
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "0",
|
|
29643
|
-
private_channel: isSet(object.private_channel) ? Number(object.private_channel) :
|
|
29644
|
-
active: isSet(object.active) ? Number(object.active) :
|
|
29645
|
-
status: isSet(object.status) ? Number(object.status) :
|
|
29646
|
-
type: isSet(object.type) ? Number(object.type) :
|
|
29647
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
29648
|
-
page: isSet(object.page) ? Number(object.page) :
|
|
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,
|
|
29649
29212
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
29650
29213
|
};
|
|
29651
29214
|
},
|
|
@@ -29661,23 +29224,23 @@ export const ChannelSettingListRequest = {
|
|
|
29661
29224
|
if (message.category_id !== "0") {
|
|
29662
29225
|
obj.category_id = message.category_id;
|
|
29663
29226
|
}
|
|
29664
|
-
if (message.private_channel !==
|
|
29665
|
-
obj.private_channel = message.private_channel;
|
|
29227
|
+
if (message.private_channel !== 0) {
|
|
29228
|
+
obj.private_channel = Math.round(message.private_channel);
|
|
29666
29229
|
}
|
|
29667
|
-
if (message.active !==
|
|
29668
|
-
obj.active = message.active;
|
|
29230
|
+
if (message.active !== 0) {
|
|
29231
|
+
obj.active = Math.round(message.active);
|
|
29669
29232
|
}
|
|
29670
|
-
if (message.status !==
|
|
29671
|
-
obj.status = message.status;
|
|
29233
|
+
if (message.status !== 0) {
|
|
29234
|
+
obj.status = Math.round(message.status);
|
|
29672
29235
|
}
|
|
29673
|
-
if (message.type !==
|
|
29674
|
-
obj.type = message.type;
|
|
29236
|
+
if (message.type !== 0) {
|
|
29237
|
+
obj.type = Math.round(message.type);
|
|
29675
29238
|
}
|
|
29676
|
-
if (message.limit !==
|
|
29677
|
-
obj.limit = message.limit;
|
|
29239
|
+
if (message.limit !== 0) {
|
|
29240
|
+
obj.limit = Math.round(message.limit);
|
|
29678
29241
|
}
|
|
29679
|
-
if (message.page !==
|
|
29680
|
-
obj.page = message.page;
|
|
29242
|
+
if (message.page !== 0) {
|
|
29243
|
+
obj.page = Math.round(message.page);
|
|
29681
29244
|
}
|
|
29682
29245
|
if (message.channel_label !== "") {
|
|
29683
29246
|
obj.channel_label = message.channel_label;
|
|
@@ -29693,12 +29256,12 @@ export const ChannelSettingListRequest = {
|
|
|
29693
29256
|
message.clan_id = object.clan_id ?? "0";
|
|
29694
29257
|
message.parent_id = object.parent_id ?? "0";
|
|
29695
29258
|
message.category_id = object.category_id ?? "0";
|
|
29696
|
-
message.private_channel = object.private_channel ??
|
|
29697
|
-
message.active = object.active ??
|
|
29698
|
-
message.status = object.status ??
|
|
29699
|
-
message.type = object.type ??
|
|
29700
|
-
message.limit = object.limit ??
|
|
29701
|
-
message.page = object.page ??
|
|
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;
|
|
29702
29265
|
message.channel_label = object.channel_label ?? "";
|
|
29703
29266
|
return message;
|
|
29704
29267
|
},
|
|
@@ -30448,7 +30011,7 @@ export const DeleteChannelCanvasRequest = {
|
|
|
30448
30011
|
};
|
|
30449
30012
|
|
|
30450
30013
|
function createBaseChannelCanvasListRequest(): ChannelCanvasListRequest {
|
|
30451
|
-
return { clan_id: "0", channel_id: "0", limit:
|
|
30014
|
+
return { clan_id: "0", channel_id: "0", limit: 0, page: 0, cursor: "" };
|
|
30452
30015
|
}
|
|
30453
30016
|
|
|
30454
30017
|
export const ChannelCanvasListRequest = {
|
|
@@ -30459,11 +30022,11 @@ export const ChannelCanvasListRequest = {
|
|
|
30459
30022
|
if (message.channel_id !== "0") {
|
|
30460
30023
|
writer.uint32(16).int64(message.channel_id);
|
|
30461
30024
|
}
|
|
30462
|
-
if (message.limit !==
|
|
30463
|
-
|
|
30025
|
+
if (message.limit !== 0) {
|
|
30026
|
+
writer.uint32(24).int32(message.limit);
|
|
30464
30027
|
}
|
|
30465
|
-
if (message.page !==
|
|
30466
|
-
|
|
30028
|
+
if (message.page !== 0) {
|
|
30029
|
+
writer.uint32(32).int32(message.page);
|
|
30467
30030
|
}
|
|
30468
30031
|
if (message.cursor !== "") {
|
|
30469
30032
|
writer.uint32(42).string(message.cursor);
|
|
@@ -30493,18 +30056,18 @@ export const ChannelCanvasListRequest = {
|
|
|
30493
30056
|
message.channel_id = longToString(reader.int64() as Long);
|
|
30494
30057
|
continue;
|
|
30495
30058
|
case 3:
|
|
30496
|
-
if (tag !==
|
|
30059
|
+
if (tag !== 24) {
|
|
30497
30060
|
break;
|
|
30498
30061
|
}
|
|
30499
30062
|
|
|
30500
|
-
message.limit =
|
|
30063
|
+
message.limit = reader.int32();
|
|
30501
30064
|
continue;
|
|
30502
30065
|
case 4:
|
|
30503
|
-
if (tag !==
|
|
30066
|
+
if (tag !== 32) {
|
|
30504
30067
|
break;
|
|
30505
30068
|
}
|
|
30506
30069
|
|
|
30507
|
-
message.page =
|
|
30070
|
+
message.page = reader.int32();
|
|
30508
30071
|
continue;
|
|
30509
30072
|
case 5:
|
|
30510
30073
|
if (tag !== 42) {
|
|
@@ -30526,8 +30089,8 @@ export const ChannelCanvasListRequest = {
|
|
|
30526
30089
|
return {
|
|
30527
30090
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
30528
30091
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
30529
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
30530
|
-
page: isSet(object.page) ? Number(object.page) :
|
|
30092
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
30093
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
30531
30094
|
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
30532
30095
|
};
|
|
30533
30096
|
},
|
|
@@ -30540,11 +30103,11 @@ export const ChannelCanvasListRequest = {
|
|
|
30540
30103
|
if (message.channel_id !== "0") {
|
|
30541
30104
|
obj.channel_id = message.channel_id;
|
|
30542
30105
|
}
|
|
30543
|
-
if (message.limit !==
|
|
30544
|
-
obj.limit = message.limit;
|
|
30106
|
+
if (message.limit !== 0) {
|
|
30107
|
+
obj.limit = Math.round(message.limit);
|
|
30545
30108
|
}
|
|
30546
|
-
if (message.page !==
|
|
30547
|
-
obj.page = message.page;
|
|
30109
|
+
if (message.page !== 0) {
|
|
30110
|
+
obj.page = Math.round(message.page);
|
|
30548
30111
|
}
|
|
30549
30112
|
if (message.cursor !== "") {
|
|
30550
30113
|
obj.cursor = message.cursor;
|
|
@@ -30559,8 +30122,8 @@ export const ChannelCanvasListRequest = {
|
|
|
30559
30122
|
const message = createBaseChannelCanvasListRequest();
|
|
30560
30123
|
message.clan_id = object.clan_id ?? "0";
|
|
30561
30124
|
message.channel_id = object.channel_id ?? "0";
|
|
30562
|
-
message.limit = object.limit ??
|
|
30563
|
-
message.page = object.page ??
|
|
30125
|
+
message.limit = object.limit ?? 0;
|
|
30126
|
+
message.page = object.page ?? 0;
|
|
30564
30127
|
message.cursor = object.cursor ?? "";
|
|
30565
30128
|
return message;
|
|
30566
30129
|
},
|
|
@@ -31986,7 +31549,7 @@ export const LoginRequest = {
|
|
|
31986
31549
|
};
|
|
31987
31550
|
|
|
31988
31551
|
function createBaseConfirmLoginRequest(): ConfirmLoginRequest {
|
|
31989
|
-
return { login_id: "0", is_remember:
|
|
31552
|
+
return { login_id: "0", is_remember: false };
|
|
31990
31553
|
}
|
|
31991
31554
|
|
|
31992
31555
|
export const ConfirmLoginRequest = {
|
|
@@ -31994,8 +31557,8 @@ export const ConfirmLoginRequest = {
|
|
|
31994
31557
|
if (message.login_id !== "0") {
|
|
31995
31558
|
writer.uint32(8).int64(message.login_id);
|
|
31996
31559
|
}
|
|
31997
|
-
if (message.is_remember !==
|
|
31998
|
-
|
|
31560
|
+
if (message.is_remember !== false) {
|
|
31561
|
+
writer.uint32(16).bool(message.is_remember);
|
|
31999
31562
|
}
|
|
32000
31563
|
return writer;
|
|
32001
31564
|
},
|
|
@@ -32015,11 +31578,11 @@ export const ConfirmLoginRequest = {
|
|
|
32015
31578
|
message.login_id = longToString(reader.int64() as Long);
|
|
32016
31579
|
continue;
|
|
32017
31580
|
case 2:
|
|
32018
|
-
if (tag !==
|
|
31581
|
+
if (tag !== 16) {
|
|
32019
31582
|
break;
|
|
32020
31583
|
}
|
|
32021
31584
|
|
|
32022
|
-
message.is_remember =
|
|
31585
|
+
message.is_remember = reader.bool();
|
|
32023
31586
|
continue;
|
|
32024
31587
|
}
|
|
32025
31588
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -32033,7 +31596,7 @@ export const ConfirmLoginRequest = {
|
|
|
32033
31596
|
fromJSON(object: any): ConfirmLoginRequest {
|
|
32034
31597
|
return {
|
|
32035
31598
|
login_id: isSet(object.login_id) ? globalThis.String(object.login_id) : "0",
|
|
32036
|
-
is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) :
|
|
31599
|
+
is_remember: isSet(object.is_remember) ? globalThis.Boolean(object.is_remember) : false,
|
|
32037
31600
|
};
|
|
32038
31601
|
},
|
|
32039
31602
|
|
|
@@ -32042,7 +31605,7 @@ export const ConfirmLoginRequest = {
|
|
|
32042
31605
|
if (message.login_id !== "0") {
|
|
32043
31606
|
obj.login_id = message.login_id;
|
|
32044
31607
|
}
|
|
32045
|
-
if (message.is_remember !==
|
|
31608
|
+
if (message.is_remember !== false) {
|
|
32046
31609
|
obj.is_remember = message.is_remember;
|
|
32047
31610
|
}
|
|
32048
31611
|
return obj;
|
|
@@ -32054,7 +31617,7 @@ export const ConfirmLoginRequest = {
|
|
|
32054
31617
|
fromPartial<I extends Exact<DeepPartial<ConfirmLoginRequest>, I>>(object: I): ConfirmLoginRequest {
|
|
32055
31618
|
const message = createBaseConfirmLoginRequest();
|
|
32056
31619
|
message.login_id = object.login_id ?? "0";
|
|
32057
|
-
message.is_remember = object.is_remember ??
|
|
31620
|
+
message.is_remember = object.is_remember ?? false;
|
|
32058
31621
|
return message;
|
|
32059
31622
|
},
|
|
32060
31623
|
};
|
|
@@ -33216,7 +32779,7 @@ export const UnlockedItemResponse = {
|
|
|
33216
32779
|
};
|
|
33217
32780
|
|
|
33218
32781
|
function createBaseListOnboardingRequest(): ListOnboardingRequest {
|
|
33219
|
-
return { clan_id: "0", guide_type:
|
|
32782
|
+
return { clan_id: "0", guide_type: 0, limit: 0, page: 0 };
|
|
33220
32783
|
}
|
|
33221
32784
|
|
|
33222
32785
|
export const ListOnboardingRequest = {
|
|
@@ -33224,14 +32787,14 @@ export const ListOnboardingRequest = {
|
|
|
33224
32787
|
if (message.clan_id !== "0") {
|
|
33225
32788
|
writer.uint32(8).int64(message.clan_id);
|
|
33226
32789
|
}
|
|
33227
|
-
if (message.guide_type !==
|
|
33228
|
-
|
|
32790
|
+
if (message.guide_type !== 0) {
|
|
32791
|
+
writer.uint32(16).int32(message.guide_type);
|
|
33229
32792
|
}
|
|
33230
|
-
if (message.limit !==
|
|
33231
|
-
|
|
32793
|
+
if (message.limit !== 0) {
|
|
32794
|
+
writer.uint32(24).int32(message.limit);
|
|
33232
32795
|
}
|
|
33233
|
-
if (message.page !==
|
|
33234
|
-
|
|
32796
|
+
if (message.page !== 0) {
|
|
32797
|
+
writer.uint32(32).int32(message.page);
|
|
33235
32798
|
}
|
|
33236
32799
|
return writer;
|
|
33237
32800
|
},
|
|
@@ -33251,25 +32814,25 @@ export const ListOnboardingRequest = {
|
|
|
33251
32814
|
message.clan_id = longToString(reader.int64() as Long);
|
|
33252
32815
|
continue;
|
|
33253
32816
|
case 2:
|
|
33254
|
-
if (tag !==
|
|
32817
|
+
if (tag !== 16) {
|
|
33255
32818
|
break;
|
|
33256
32819
|
}
|
|
33257
32820
|
|
|
33258
|
-
message.guide_type =
|
|
32821
|
+
message.guide_type = reader.int32();
|
|
33259
32822
|
continue;
|
|
33260
32823
|
case 3:
|
|
33261
|
-
if (tag !==
|
|
32824
|
+
if (tag !== 24) {
|
|
33262
32825
|
break;
|
|
33263
32826
|
}
|
|
33264
32827
|
|
|
33265
|
-
message.limit =
|
|
32828
|
+
message.limit = reader.int32();
|
|
33266
32829
|
continue;
|
|
33267
32830
|
case 4:
|
|
33268
|
-
if (tag !==
|
|
32831
|
+
if (tag !== 32) {
|
|
33269
32832
|
break;
|
|
33270
32833
|
}
|
|
33271
32834
|
|
|
33272
|
-
message.page =
|
|
32835
|
+
message.page = reader.int32();
|
|
33273
32836
|
continue;
|
|
33274
32837
|
}
|
|
33275
32838
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -33283,9 +32846,9 @@ export const ListOnboardingRequest = {
|
|
|
33283
32846
|
fromJSON(object: any): ListOnboardingRequest {
|
|
33284
32847
|
return {
|
|
33285
32848
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
33286
|
-
guide_type: isSet(object.guide_type) ? Number(object.guide_type) :
|
|
33287
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
33288
|
-
page: isSet(object.page) ? Number(object.page) :
|
|
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,
|
|
33289
32852
|
};
|
|
33290
32853
|
},
|
|
33291
32854
|
|
|
@@ -33294,14 +32857,14 @@ export const ListOnboardingRequest = {
|
|
|
33294
32857
|
if (message.clan_id !== "0") {
|
|
33295
32858
|
obj.clan_id = message.clan_id;
|
|
33296
32859
|
}
|
|
33297
|
-
if (message.guide_type !==
|
|
33298
|
-
obj.guide_type = message.guide_type;
|
|
32860
|
+
if (message.guide_type !== 0) {
|
|
32861
|
+
obj.guide_type = Math.round(message.guide_type);
|
|
33299
32862
|
}
|
|
33300
|
-
if (message.limit !==
|
|
33301
|
-
obj.limit = message.limit;
|
|
32863
|
+
if (message.limit !== 0) {
|
|
32864
|
+
obj.limit = Math.round(message.limit);
|
|
33302
32865
|
}
|
|
33303
|
-
if (message.page !==
|
|
33304
|
-
obj.page = message.page;
|
|
32866
|
+
if (message.page !== 0) {
|
|
32867
|
+
obj.page = Math.round(message.page);
|
|
33305
32868
|
}
|
|
33306
32869
|
return obj;
|
|
33307
32870
|
},
|
|
@@ -33312,9 +32875,9 @@ export const ListOnboardingRequest = {
|
|
|
33312
32875
|
fromPartial<I extends Exact<DeepPartial<ListOnboardingRequest>, I>>(object: I): ListOnboardingRequest {
|
|
33313
32876
|
const message = createBaseListOnboardingRequest();
|
|
33314
32877
|
message.clan_id = object.clan_id ?? "0";
|
|
33315
|
-
message.guide_type = object.guide_type ??
|
|
33316
|
-
message.limit = object.limit ??
|
|
33317
|
-
message.page = object.page ??
|
|
32878
|
+
message.guide_type = object.guide_type ?? 0;
|
|
32879
|
+
message.limit = object.limit ?? 0;
|
|
32880
|
+
message.page = object.page ?? 0;
|
|
33318
32881
|
return message;
|
|
33319
32882
|
},
|
|
33320
32883
|
};
|
|
@@ -33935,16 +33498,7 @@ export const CreateOnboardingRequest = {
|
|
|
33935
33498
|
};
|
|
33936
33499
|
|
|
33937
33500
|
function createBaseUpdateOnboardingRequest(): UpdateOnboardingRequest {
|
|
33938
|
-
return {
|
|
33939
|
-
id: "0",
|
|
33940
|
-
clan_id: "0",
|
|
33941
|
-
task_type: undefined,
|
|
33942
|
-
channel_id: "0",
|
|
33943
|
-
title: "",
|
|
33944
|
-
content: "",
|
|
33945
|
-
image_url: "",
|
|
33946
|
-
answers: [],
|
|
33947
|
-
};
|
|
33501
|
+
return { id: "0", clan_id: "0", task_type: 0, channel_id: "0", title: "", content: "", image_url: "", answers: [] };
|
|
33948
33502
|
}
|
|
33949
33503
|
|
|
33950
33504
|
export const UpdateOnboardingRequest = {
|
|
@@ -33955,8 +33509,8 @@ export const UpdateOnboardingRequest = {
|
|
|
33955
33509
|
if (message.clan_id !== "0") {
|
|
33956
33510
|
writer.uint32(16).int64(message.clan_id);
|
|
33957
33511
|
}
|
|
33958
|
-
if (message.task_type !==
|
|
33959
|
-
|
|
33512
|
+
if (message.task_type !== 0) {
|
|
33513
|
+
writer.uint32(24).int32(message.task_type);
|
|
33960
33514
|
}
|
|
33961
33515
|
if (message.channel_id !== "0") {
|
|
33962
33516
|
writer.uint32(32).int64(message.channel_id);
|
|
@@ -33998,11 +33552,11 @@ export const UpdateOnboardingRequest = {
|
|
|
33998
33552
|
message.clan_id = longToString(reader.int64() as Long);
|
|
33999
33553
|
continue;
|
|
34000
33554
|
case 3:
|
|
34001
|
-
if (tag !==
|
|
33555
|
+
if (tag !== 24) {
|
|
34002
33556
|
break;
|
|
34003
33557
|
}
|
|
34004
33558
|
|
|
34005
|
-
message.task_type =
|
|
33559
|
+
message.task_type = reader.int32();
|
|
34006
33560
|
continue;
|
|
34007
33561
|
case 4:
|
|
34008
33562
|
if (tag !== 32) {
|
|
@@ -34052,7 +33606,7 @@ export const UpdateOnboardingRequest = {
|
|
|
34052
33606
|
return {
|
|
34053
33607
|
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
34054
33608
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
34055
|
-
task_type: isSet(object.task_type) ? Number(object.task_type) :
|
|
33609
|
+
task_type: isSet(object.task_type) ? globalThis.Number(object.task_type) : 0,
|
|
34056
33610
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
34057
33611
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
34058
33612
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
@@ -34071,8 +33625,8 @@ export const UpdateOnboardingRequest = {
|
|
|
34071
33625
|
if (message.clan_id !== "0") {
|
|
34072
33626
|
obj.clan_id = message.clan_id;
|
|
34073
33627
|
}
|
|
34074
|
-
if (message.task_type !==
|
|
34075
|
-
obj.task_type = message.task_type;
|
|
33628
|
+
if (message.task_type !== 0) {
|
|
33629
|
+
obj.task_type = Math.round(message.task_type);
|
|
34076
33630
|
}
|
|
34077
33631
|
if (message.channel_id !== "0") {
|
|
34078
33632
|
obj.channel_id = message.channel_id;
|
|
@@ -34099,7 +33653,7 @@ export const UpdateOnboardingRequest = {
|
|
|
34099
33653
|
const message = createBaseUpdateOnboardingRequest();
|
|
34100
33654
|
message.id = object.id ?? "0";
|
|
34101
33655
|
message.clan_id = object.clan_id ?? "0";
|
|
34102
|
-
message.task_type = object.task_type ??
|
|
33656
|
+
message.task_type = object.task_type ?? 0;
|
|
34103
33657
|
message.channel_id = object.channel_id ?? "0";
|
|
34104
33658
|
message.title = object.title ?? "";
|
|
34105
33659
|
message.content = object.content ?? "";
|
|
@@ -35372,7 +34926,7 @@ export const ListOnboardingStepResponse = {
|
|
|
35372
34926
|
};
|
|
35373
34927
|
|
|
35374
34928
|
function createBaseListOnboardingStepRequest(): ListOnboardingStepRequest {
|
|
35375
|
-
return { clan_id: "0", limit:
|
|
34929
|
+
return { clan_id: "0", limit: 0, page: 0 };
|
|
35376
34930
|
}
|
|
35377
34931
|
|
|
35378
34932
|
export const ListOnboardingStepRequest = {
|
|
@@ -35380,11 +34934,11 @@ export const ListOnboardingStepRequest = {
|
|
|
35380
34934
|
if (message.clan_id !== "0") {
|
|
35381
34935
|
writer.uint32(8).int64(message.clan_id);
|
|
35382
34936
|
}
|
|
35383
|
-
if (message.limit !==
|
|
35384
|
-
|
|
34937
|
+
if (message.limit !== 0) {
|
|
34938
|
+
writer.uint32(16).int32(message.limit);
|
|
35385
34939
|
}
|
|
35386
|
-
if (message.page !==
|
|
35387
|
-
|
|
34940
|
+
if (message.page !== 0) {
|
|
34941
|
+
writer.uint32(24).int32(message.page);
|
|
35388
34942
|
}
|
|
35389
34943
|
return writer;
|
|
35390
34944
|
},
|
|
@@ -35404,18 +34958,18 @@ export const ListOnboardingStepRequest = {
|
|
|
35404
34958
|
message.clan_id = longToString(reader.int64() as Long);
|
|
35405
34959
|
continue;
|
|
35406
34960
|
case 2:
|
|
35407
|
-
if (tag !==
|
|
34961
|
+
if (tag !== 16) {
|
|
35408
34962
|
break;
|
|
35409
34963
|
}
|
|
35410
34964
|
|
|
35411
|
-
message.limit =
|
|
34965
|
+
message.limit = reader.int32();
|
|
35412
34966
|
continue;
|
|
35413
34967
|
case 3:
|
|
35414
|
-
if (tag !==
|
|
34968
|
+
if (tag !== 24) {
|
|
35415
34969
|
break;
|
|
35416
34970
|
}
|
|
35417
34971
|
|
|
35418
|
-
message.page =
|
|
34972
|
+
message.page = reader.int32();
|
|
35419
34973
|
continue;
|
|
35420
34974
|
}
|
|
35421
34975
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -35429,8 +34983,8 @@ export const ListOnboardingStepRequest = {
|
|
|
35429
34983
|
fromJSON(object: any): ListOnboardingStepRequest {
|
|
35430
34984
|
return {
|
|
35431
34985
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35432
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
35433
|
-
page: isSet(object.page) ? Number(object.page) :
|
|
34986
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
34987
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
35434
34988
|
};
|
|
35435
34989
|
},
|
|
35436
34990
|
|
|
@@ -35439,11 +34993,11 @@ export const ListOnboardingStepRequest = {
|
|
|
35439
34993
|
if (message.clan_id !== "0") {
|
|
35440
34994
|
obj.clan_id = message.clan_id;
|
|
35441
34995
|
}
|
|
35442
|
-
if (message.limit !==
|
|
35443
|
-
obj.limit = message.limit;
|
|
34996
|
+
if (message.limit !== 0) {
|
|
34997
|
+
obj.limit = Math.round(message.limit);
|
|
35444
34998
|
}
|
|
35445
|
-
if (message.page !==
|
|
35446
|
-
obj.page = message.page;
|
|
34999
|
+
if (message.page !== 0) {
|
|
35000
|
+
obj.page = Math.round(message.page);
|
|
35447
35001
|
}
|
|
35448
35002
|
return obj;
|
|
35449
35003
|
},
|
|
@@ -35454,14 +35008,14 @@ export const ListOnboardingStepRequest = {
|
|
|
35454
35008
|
fromPartial<I extends Exact<DeepPartial<ListOnboardingStepRequest>, I>>(object: I): ListOnboardingStepRequest {
|
|
35455
35009
|
const message = createBaseListOnboardingStepRequest();
|
|
35456
35010
|
message.clan_id = object.clan_id ?? "0";
|
|
35457
|
-
message.limit = object.limit ??
|
|
35458
|
-
message.page = object.page ??
|
|
35011
|
+
message.limit = object.limit ?? 0;
|
|
35012
|
+
message.page = object.page ?? 0;
|
|
35459
35013
|
return message;
|
|
35460
35014
|
},
|
|
35461
35015
|
};
|
|
35462
35016
|
|
|
35463
35017
|
function createBaseUpdateOnboardingStepRequest(): UpdateOnboardingStepRequest {
|
|
35464
|
-
return { clan_id: "0", onboarding_step:
|
|
35018
|
+
return { clan_id: "0", onboarding_step: 0 };
|
|
35465
35019
|
}
|
|
35466
35020
|
|
|
35467
35021
|
export const UpdateOnboardingStepRequest = {
|
|
@@ -35469,8 +35023,8 @@ export const UpdateOnboardingStepRequest = {
|
|
|
35469
35023
|
if (message.clan_id !== "0") {
|
|
35470
35024
|
writer.uint32(8).int64(message.clan_id);
|
|
35471
35025
|
}
|
|
35472
|
-
if (message.onboarding_step !==
|
|
35473
|
-
|
|
35026
|
+
if (message.onboarding_step !== 0) {
|
|
35027
|
+
writer.uint32(16).int32(message.onboarding_step);
|
|
35474
35028
|
}
|
|
35475
35029
|
return writer;
|
|
35476
35030
|
},
|
|
@@ -35490,11 +35044,11 @@ export const UpdateOnboardingStepRequest = {
|
|
|
35490
35044
|
message.clan_id = longToString(reader.int64() as Long);
|
|
35491
35045
|
continue;
|
|
35492
35046
|
case 2:
|
|
35493
|
-
if (tag !==
|
|
35047
|
+
if (tag !== 16) {
|
|
35494
35048
|
break;
|
|
35495
35049
|
}
|
|
35496
35050
|
|
|
35497
|
-
message.onboarding_step =
|
|
35051
|
+
message.onboarding_step = reader.int32();
|
|
35498
35052
|
continue;
|
|
35499
35053
|
}
|
|
35500
35054
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -35508,7 +35062,7 @@ export const UpdateOnboardingStepRequest = {
|
|
|
35508
35062
|
fromJSON(object: any): UpdateOnboardingStepRequest {
|
|
35509
35063
|
return {
|
|
35510
35064
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35511
|
-
onboarding_step: isSet(object.onboarding_step) ? Number(object.onboarding_step) :
|
|
35065
|
+
onboarding_step: isSet(object.onboarding_step) ? globalThis.Number(object.onboarding_step) : 0,
|
|
35512
35066
|
};
|
|
35513
35067
|
},
|
|
35514
35068
|
|
|
@@ -35517,8 +35071,8 @@ export const UpdateOnboardingStepRequest = {
|
|
|
35517
35071
|
if (message.clan_id !== "0") {
|
|
35518
35072
|
obj.clan_id = message.clan_id;
|
|
35519
35073
|
}
|
|
35520
|
-
if (message.onboarding_step !==
|
|
35521
|
-
obj.onboarding_step = message.onboarding_step;
|
|
35074
|
+
if (message.onboarding_step !== 0) {
|
|
35075
|
+
obj.onboarding_step = Math.round(message.onboarding_step);
|
|
35522
35076
|
}
|
|
35523
35077
|
return obj;
|
|
35524
35078
|
},
|
|
@@ -35529,7 +35083,7 @@ export const UpdateOnboardingStepRequest = {
|
|
|
35529
35083
|
fromPartial<I extends Exact<DeepPartial<UpdateOnboardingStepRequest>, I>>(object: I): UpdateOnboardingStepRequest {
|
|
35530
35084
|
const message = createBaseUpdateOnboardingStepRequest();
|
|
35531
35085
|
message.clan_id = object.clan_id ?? "0";
|
|
35532
|
-
message.onboarding_step = object.onboarding_step ??
|
|
35086
|
+
message.onboarding_step = object.onboarding_step ?? 0;
|
|
35533
35087
|
return message;
|
|
35534
35088
|
},
|
|
35535
35089
|
};
|