mezon-js-protobuf 1.8.77 → 1.8.79
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 +547 -693
- package/dist/mezon-js-protobuf/api/api.d.ts +890 -1545
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +726 -2214
- package/dist/mezon-js-protobuf/utils.d.ts +2 -0
- package/dist/mezon-js-protobuf.cjs.js +1802 -1963
- package/dist/mezon-js-protobuf.esm.mjs +1802 -1963
- package/package.json +1 -1
- package/rtapi/realtime.ts +20 -47
- package/utils.ts +19 -4
package/api/api.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import Long from "long";
|
|
9
9
|
import _m0 from "protobufjs/minimal";
|
|
10
10
|
import { Struct } from "../google/protobuf/struct";
|
|
11
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
12
11
|
import { BoolValue, Int32Value, StringValue } from "../google/protobuf/wrappers";
|
|
13
12
|
|
|
14
13
|
export const protobufPackage = "mezon.api";
|
|
@@ -176,13 +175,9 @@ export interface Account {
|
|
|
176
175
|
/** The qr code in the user's account. */
|
|
177
176
|
qr_code: string;
|
|
178
177
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
|
|
179
|
-
|
|
180
|
-
| Date
|
|
181
|
-
| undefined;
|
|
178
|
+
verify_time_seconds: number;
|
|
182
179
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
|
|
183
|
-
|
|
184
|
-
| Date
|
|
185
|
-
| undefined;
|
|
180
|
+
disable_time_seconds: number;
|
|
186
181
|
/** Logo url */
|
|
187
182
|
logo: string;
|
|
188
183
|
/** Splash screen url */
|
|
@@ -302,14 +297,6 @@ export interface ChannelMessage {
|
|
|
302
297
|
avatar: string;
|
|
303
298
|
/** The content payload. */
|
|
304
299
|
content: string;
|
|
305
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
306
|
-
create_time:
|
|
307
|
-
| Date
|
|
308
|
-
| undefined;
|
|
309
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
|
|
310
|
-
update_time:
|
|
311
|
-
| Date
|
|
312
|
-
| undefined;
|
|
313
300
|
/** The name of the chat room, or an empty string if this message was not sent through a chat room. */
|
|
314
301
|
channel_label: string;
|
|
315
302
|
/** The clan logo */
|
|
@@ -359,9 +346,7 @@ export interface MessageMention {
|
|
|
359
346
|
/** role name */
|
|
360
347
|
rolename: string;
|
|
361
348
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
362
|
-
|
|
363
|
-
| Date
|
|
364
|
-
| undefined;
|
|
349
|
+
create_time_second: number;
|
|
365
350
|
/** start position from text */
|
|
366
351
|
s: number;
|
|
367
352
|
/** end position from text */
|
|
@@ -539,9 +524,7 @@ export interface Event {
|
|
|
539
524
|
/** Arbitrary event property values. */
|
|
540
525
|
properties: { [key: string]: string };
|
|
541
526
|
/** The time when the event was triggered. */
|
|
542
|
-
|
|
543
|
-
| Date
|
|
544
|
-
| undefined;
|
|
527
|
+
timestamp_seconds: number;
|
|
545
528
|
/** True if the event came directly from a client call, false otherwise. */
|
|
546
529
|
external: boolean;
|
|
547
530
|
}
|
|
@@ -560,9 +543,7 @@ export interface Friend {
|
|
|
560
543
|
/** The friend status. */
|
|
561
544
|
state: number;
|
|
562
545
|
/** Time of the latest relationship update. */
|
|
563
|
-
|
|
564
|
-
| Date
|
|
565
|
-
| undefined;
|
|
546
|
+
update_time_seconds: number;
|
|
566
547
|
/** source id */
|
|
567
548
|
source_id: string;
|
|
568
549
|
}
|
|
@@ -699,10 +680,8 @@ export interface ChannelAttachment {
|
|
|
699
680
|
url: string;
|
|
700
681
|
/** uploader */
|
|
701
682
|
uploader: string;
|
|
702
|
-
/**
|
|
703
|
-
|
|
704
|
-
| Date
|
|
705
|
-
| undefined;
|
|
683
|
+
/** timestamp */
|
|
684
|
+
create_time_seconds: number;
|
|
706
685
|
/** message id. */
|
|
707
686
|
message_id: string;
|
|
708
687
|
/** width */
|
|
@@ -862,13 +841,9 @@ export interface ListChannelAttachmentRequest {
|
|
|
862
841
|
/** The channel type */
|
|
863
842
|
file_type: string;
|
|
864
843
|
/** Max number of records to return. Between 1 and 100. */
|
|
865
|
-
limit:
|
|
866
|
-
| number
|
|
867
|
-
| undefined;
|
|
844
|
+
limit: number;
|
|
868
845
|
/** The group user state to list. */
|
|
869
|
-
state:
|
|
870
|
-
| number
|
|
871
|
-
| undefined;
|
|
846
|
+
state: number;
|
|
872
847
|
/** An optional previous id for page. */
|
|
873
848
|
before: number;
|
|
874
849
|
/** An optional next id for page. */
|
|
@@ -928,9 +903,7 @@ export interface Notification {
|
|
|
928
903
|
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
929
904
|
sender_id: string;
|
|
930
905
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created. */
|
|
931
|
-
|
|
932
|
-
| Date
|
|
933
|
-
| undefined;
|
|
906
|
+
create_time_seconds: number;
|
|
934
907
|
/** True if this notification was persisted to the database. */
|
|
935
908
|
persistent: boolean;
|
|
936
909
|
/** ID of clan */
|
|
@@ -958,7 +931,7 @@ export interface EmojiRecent {
|
|
|
958
931
|
/** */
|
|
959
932
|
emoji_id: string;
|
|
960
933
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the emoji was created. */
|
|
961
|
-
|
|
934
|
+
update_time_seconds: number;
|
|
962
935
|
}
|
|
963
936
|
|
|
964
937
|
/** A collection of zero or more notifications. */
|
|
@@ -1052,9 +1025,7 @@ export interface UpdateAccountRequest {
|
|
|
1052
1025
|
| string
|
|
1053
1026
|
| undefined;
|
|
1054
1027
|
/** date of birth */
|
|
1055
|
-
|
|
1056
|
-
| Date
|
|
1057
|
-
| undefined;
|
|
1028
|
+
dob_seconds: number;
|
|
1058
1029
|
/** logo url */
|
|
1059
1030
|
logo:
|
|
1060
1031
|
| string
|
|
@@ -1125,25 +1096,17 @@ export interface User {
|
|
|
1125
1096
|
/** Number of related edges to this user. */
|
|
1126
1097
|
edge_count: number;
|
|
1127
1098
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created. */
|
|
1128
|
-
|
|
1129
|
-
| Date
|
|
1130
|
-
| undefined;
|
|
1099
|
+
create_time_seconds: number;
|
|
1131
1100
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated. */
|
|
1132
|
-
|
|
1133
|
-
| Date
|
|
1134
|
-
| undefined;
|
|
1101
|
+
update_time_seconds: number;
|
|
1135
1102
|
/** About me */
|
|
1136
1103
|
about_me: string;
|
|
1137
1104
|
/** Join time */
|
|
1138
|
-
|
|
1139
|
-
| Date
|
|
1140
|
-
| undefined;
|
|
1105
|
+
join_time_seconds: number;
|
|
1141
1106
|
/** Platform */
|
|
1142
1107
|
is_mobile: boolean;
|
|
1143
1108
|
/** dob */
|
|
1144
|
-
|
|
1145
|
-
| Date
|
|
1146
|
-
| undefined;
|
|
1109
|
+
dob_seconds: number;
|
|
1147
1110
|
/** Mezone id */
|
|
1148
1111
|
mezon_id: string;
|
|
1149
1112
|
/** list clan nick name */
|
|
@@ -1356,9 +1319,7 @@ export interface InviteUserRes {
|
|
|
1356
1319
|
/** check user exist */
|
|
1357
1320
|
user_joined: boolean;
|
|
1358
1321
|
/** expiry_time */
|
|
1359
|
-
|
|
1360
|
-
| Date
|
|
1361
|
-
| undefined;
|
|
1322
|
+
expiry_time_seconds: number;
|
|
1362
1323
|
/** */
|
|
1363
1324
|
channel_desc: ChannelDescription | undefined;
|
|
1364
1325
|
clan_logo: string;
|
|
@@ -1384,11 +1345,9 @@ export interface LinkInviteUser {
|
|
|
1384
1345
|
/** link invite */
|
|
1385
1346
|
invite_link: string;
|
|
1386
1347
|
/** create time */
|
|
1387
|
-
|
|
1388
|
-
| Date
|
|
1389
|
-
| undefined;
|
|
1348
|
+
create_time_seconds: number;
|
|
1390
1349
|
/** expiry time */
|
|
1391
|
-
|
|
1350
|
+
expiry_time_seconds: number;
|
|
1392
1351
|
id: string;
|
|
1393
1352
|
}
|
|
1394
1353
|
|
|
@@ -1506,14 +1465,6 @@ export interface ChannelMessageHeader {
|
|
|
1506
1465
|
sender_id: string;
|
|
1507
1466
|
/** the content */
|
|
1508
1467
|
content: string;
|
|
1509
|
-
/** the attachment */
|
|
1510
|
-
attachment: Uint8Array;
|
|
1511
|
-
/** the reference */
|
|
1512
|
-
reference: Uint8Array;
|
|
1513
|
-
/** the mention */
|
|
1514
|
-
mention: Uint8Array;
|
|
1515
|
-
/** the reactions */
|
|
1516
|
-
reaction: Uint8Array;
|
|
1517
1468
|
}
|
|
1518
1469
|
|
|
1519
1470
|
/** Channel description record */
|
|
@@ -1827,10 +1778,10 @@ export interface EventManagement {
|
|
|
1827
1778
|
clan_id: string;
|
|
1828
1779
|
channel_voice_id: string;
|
|
1829
1780
|
address: string;
|
|
1830
|
-
|
|
1831
|
-
|
|
1781
|
+
start_time_seconds: number;
|
|
1782
|
+
end_time_seconds: number;
|
|
1832
1783
|
user_ids: string[];
|
|
1833
|
-
|
|
1784
|
+
create_time_seconds: number;
|
|
1834
1785
|
max_permission: number;
|
|
1835
1786
|
channel_id: string;
|
|
1836
1787
|
event_status: number;
|
|
@@ -1888,10 +1839,6 @@ export interface PinMessage {
|
|
|
1888
1839
|
/** */
|
|
1889
1840
|
avatar: string;
|
|
1890
1841
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
1891
|
-
create_time:
|
|
1892
|
-
| Date
|
|
1893
|
-
| undefined;
|
|
1894
|
-
/** create time in ms */
|
|
1895
1842
|
create_time_seconds: number;
|
|
1896
1843
|
/** attachment */
|
|
1897
1844
|
attachment: string;
|
|
@@ -1908,9 +1855,7 @@ export interface NotificationUserChannel {
|
|
|
1908
1855
|
/** */
|
|
1909
1856
|
notification_setting_type: number;
|
|
1910
1857
|
/** */
|
|
1911
|
-
|
|
1912
|
-
| Date
|
|
1913
|
-
| undefined;
|
|
1858
|
+
time_mute_seconds: number;
|
|
1914
1859
|
/** */
|
|
1915
1860
|
active: number;
|
|
1916
1861
|
/** */
|
|
@@ -2147,8 +2092,8 @@ export interface CreateEventRequest {
|
|
|
2147
2092
|
clan_id: string;
|
|
2148
2093
|
channel_voice_id: string;
|
|
2149
2094
|
address: string;
|
|
2150
|
-
|
|
2151
|
-
|
|
2095
|
+
start_time_seconds: number;
|
|
2096
|
+
end_time_seconds: number;
|
|
2152
2097
|
event_id: string;
|
|
2153
2098
|
event_status: number;
|
|
2154
2099
|
channel_id: string;
|
|
@@ -2168,8 +2113,8 @@ export interface UpdateEventRequest {
|
|
|
2168
2113
|
event_id: string;
|
|
2169
2114
|
channel_id: string;
|
|
2170
2115
|
address: string;
|
|
2171
|
-
|
|
2172
|
-
|
|
2116
|
+
start_time_seconds: number;
|
|
2117
|
+
end_time_seconds: number;
|
|
2173
2118
|
clan_id: string;
|
|
2174
2119
|
creator_id: string;
|
|
2175
2120
|
channel_voice_id: string;
|
|
@@ -2415,7 +2360,7 @@ export interface ClanSticker {
|
|
|
2415
2360
|
shortname: string;
|
|
2416
2361
|
category: string;
|
|
2417
2362
|
creator_id: string;
|
|
2418
|
-
|
|
2363
|
+
create_time_seconds: number;
|
|
2419
2364
|
clan_id: string;
|
|
2420
2365
|
logo: string;
|
|
2421
2366
|
clan_name: string;
|
|
@@ -2591,13 +2536,9 @@ export interface App {
|
|
|
2591
2536
|
/** status online */
|
|
2592
2537
|
is_shadow: boolean;
|
|
2593
2538
|
/** The UNIX time when the app was disabled. */
|
|
2594
|
-
|
|
2595
|
-
| Date
|
|
2596
|
-
| undefined;
|
|
2539
|
+
disable_time_seconds: number;
|
|
2597
2540
|
/** The UNIX time when the app was created */
|
|
2598
|
-
|
|
2599
|
-
| Date
|
|
2600
|
-
| undefined;
|
|
2541
|
+
create_time_seconds: number;
|
|
2601
2542
|
/** string token */
|
|
2602
2543
|
token: string;
|
|
2603
2544
|
/** role */
|
|
@@ -2700,9 +2641,7 @@ export interface AppClan {
|
|
|
2700
2641
|
/** Delete channel messages by timestamp or/and ids. */
|
|
2701
2642
|
export interface DeleteChannelMessagesRequest {
|
|
2702
2643
|
/** Timestamp before which messages will be deleted. */
|
|
2703
|
-
|
|
2704
|
-
| Date
|
|
2705
|
-
| undefined;
|
|
2644
|
+
before_seconds: number;
|
|
2706
2645
|
/** IDs of the messages to delete. */
|
|
2707
2646
|
ids: string[];
|
|
2708
2647
|
}
|
|
@@ -3088,8 +3027,8 @@ export interface ChannelCanvasItem {
|
|
|
3088
3027
|
/** creator */
|
|
3089
3028
|
creator_id: string;
|
|
3090
3029
|
/** */
|
|
3091
|
-
|
|
3092
|
-
|
|
3030
|
+
update_time_seconds: number;
|
|
3031
|
+
create_time_seconds: number;
|
|
3093
3032
|
}
|
|
3094
3033
|
|
|
3095
3034
|
export interface ChannelCanvasListResponse {
|
|
@@ -3154,8 +3093,8 @@ export interface UserActivity {
|
|
|
3154
3093
|
activity_name: string;
|
|
3155
3094
|
activity_type: number;
|
|
3156
3095
|
activity_description: string;
|
|
3157
|
-
|
|
3158
|
-
|
|
3096
|
+
start_time_seconds: number;
|
|
3097
|
+
end_time_seconds: number;
|
|
3159
3098
|
application_id: string;
|
|
3160
3099
|
status: number;
|
|
3161
3100
|
}
|
|
@@ -3168,7 +3107,7 @@ export interface CreateActivityRequest {
|
|
|
3168
3107
|
activity_name: string;
|
|
3169
3108
|
activity_type: number;
|
|
3170
3109
|
activity_description: string;
|
|
3171
|
-
|
|
3110
|
+
start_time_seconds: number;
|
|
3172
3111
|
application_id: string;
|
|
3173
3112
|
status: number;
|
|
3174
3113
|
}
|
|
@@ -3243,7 +3182,7 @@ export interface AuditLog {
|
|
|
3243
3182
|
entity_name: string;
|
|
3244
3183
|
entity_id: string;
|
|
3245
3184
|
details: string;
|
|
3246
|
-
|
|
3185
|
+
time_log_seconds: number;
|
|
3247
3186
|
channel_id: string;
|
|
3248
3187
|
channel_label: string;
|
|
3249
3188
|
}
|
|
@@ -3328,11 +3267,9 @@ export interface OnboardingItem {
|
|
|
3328
3267
|
/** answers */
|
|
3329
3268
|
answers: OnboardingAnswer[];
|
|
3330
3269
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
3331
|
-
|
|
3332
|
-
| Date
|
|
3333
|
-
| undefined;
|
|
3270
|
+
create_time_seconds: number;
|
|
3334
3271
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
|
|
3335
|
-
|
|
3272
|
+
update_time_seconds: number;
|
|
3336
3273
|
}
|
|
3337
3274
|
|
|
3338
3275
|
export interface OnboardingAnswer {
|
|
@@ -3539,8 +3476,8 @@ export interface SdTopic {
|
|
|
3539
3476
|
clan_id: string;
|
|
3540
3477
|
channel_id: string;
|
|
3541
3478
|
status: number;
|
|
3542
|
-
|
|
3543
|
-
|
|
3479
|
+
create_time_seconds: number;
|
|
3480
|
+
update_time_seconds: number;
|
|
3544
3481
|
message: ChannelMessage | undefined;
|
|
3545
3482
|
last_sent_message: ChannelMessageHeader | undefined;
|
|
3546
3483
|
}
|
|
@@ -3616,7 +3553,7 @@ export interface MezonOauthClient {
|
|
|
3616
3553
|
client_secret_expires_at: number;
|
|
3617
3554
|
client_uri: string;
|
|
3618
3555
|
contacts: string[];
|
|
3619
|
-
|
|
3556
|
+
created_at_seconds: number;
|
|
3620
3557
|
frontchannel_logout_session_required: boolean;
|
|
3621
3558
|
frontchannel_logout_uri: string;
|
|
3622
3559
|
grant_types: string[];
|
|
@@ -3646,7 +3583,7 @@ export interface MezonOauthClient {
|
|
|
3646
3583
|
token_endpoint_auth_method: string;
|
|
3647
3584
|
token_endpoint_auth_signing_alg: string;
|
|
3648
3585
|
tos_uri: string;
|
|
3649
|
-
|
|
3586
|
+
updated_at_seconds: number;
|
|
3650
3587
|
userinfo_signed_response_alg: string;
|
|
3651
3588
|
}
|
|
3652
3589
|
|
|
@@ -3788,11 +3725,11 @@ export interface LogedDeviceList {
|
|
|
3788
3725
|
export interface LogedDevice {
|
|
3789
3726
|
device_id: string;
|
|
3790
3727
|
device_name: string;
|
|
3791
|
-
|
|
3728
|
+
login_at_seconds: number;
|
|
3792
3729
|
status: number;
|
|
3793
3730
|
platform: string;
|
|
3794
3731
|
ip: string;
|
|
3795
|
-
|
|
3732
|
+
last_active_seconds: number;
|
|
3796
3733
|
location: string;
|
|
3797
3734
|
is_current: boolean;
|
|
3798
3735
|
}
|
|
@@ -3825,6 +3762,10 @@ export interface MessageRefList {
|
|
|
3825
3762
|
refs: MessageRef[];
|
|
3826
3763
|
}
|
|
3827
3764
|
|
|
3765
|
+
export interface MessageReactionList {
|
|
3766
|
+
reactions: MessageReaction[];
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3828
3769
|
export interface ListClanBadgeCountRequest {
|
|
3829
3770
|
clan_id: string;
|
|
3830
3771
|
}
|
|
@@ -3838,8 +3779,8 @@ function createBaseAccount(): Account {
|
|
|
3838
3779
|
user: undefined,
|
|
3839
3780
|
email: "",
|
|
3840
3781
|
qr_code: "",
|
|
3841
|
-
|
|
3842
|
-
|
|
3782
|
+
verify_time_seconds: 0,
|
|
3783
|
+
disable_time_seconds: 0,
|
|
3843
3784
|
logo: "",
|
|
3844
3785
|
splash_screen: "",
|
|
3845
3786
|
encrypt_private_key: "",
|
|
@@ -3858,11 +3799,11 @@ export const Account = {
|
|
|
3858
3799
|
if (message.qr_code !== "") {
|
|
3859
3800
|
writer.uint32(26).string(message.qr_code);
|
|
3860
3801
|
}
|
|
3861
|
-
if (message.
|
|
3862
|
-
|
|
3802
|
+
if (message.verify_time_seconds !== 0) {
|
|
3803
|
+
writer.uint32(32).uint32(message.verify_time_seconds);
|
|
3863
3804
|
}
|
|
3864
|
-
if (message.
|
|
3865
|
-
|
|
3805
|
+
if (message.disable_time_seconds !== 0) {
|
|
3806
|
+
writer.uint32(40).uint32(message.disable_time_seconds);
|
|
3866
3807
|
}
|
|
3867
3808
|
if (message.logo !== "") {
|
|
3868
3809
|
writer.uint32(50).string(message.logo);
|
|
@@ -3908,18 +3849,18 @@ export const Account = {
|
|
|
3908
3849
|
message.qr_code = reader.string();
|
|
3909
3850
|
continue;
|
|
3910
3851
|
case 4:
|
|
3911
|
-
if (tag !==
|
|
3852
|
+
if (tag !== 32) {
|
|
3912
3853
|
break;
|
|
3913
3854
|
}
|
|
3914
3855
|
|
|
3915
|
-
message.
|
|
3856
|
+
message.verify_time_seconds = reader.uint32();
|
|
3916
3857
|
continue;
|
|
3917
3858
|
case 5:
|
|
3918
|
-
if (tag !==
|
|
3859
|
+
if (tag !== 40) {
|
|
3919
3860
|
break;
|
|
3920
3861
|
}
|
|
3921
3862
|
|
|
3922
|
-
message.
|
|
3863
|
+
message.disable_time_seconds = reader.uint32();
|
|
3923
3864
|
continue;
|
|
3924
3865
|
case 6:
|
|
3925
3866
|
if (tag !== 50) {
|
|
@@ -3963,8 +3904,8 @@ export const Account = {
|
|
|
3963
3904
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
3964
3905
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
3965
3906
|
qr_code: isSet(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
3966
|
-
|
|
3967
|
-
|
|
3907
|
+
verify_time_seconds: isSet(object.verify_time_seconds) ? globalThis.Number(object.verify_time_seconds) : 0,
|
|
3908
|
+
disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
|
|
3968
3909
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
3969
3910
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3970
3911
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
@@ -3983,11 +3924,11 @@ export const Account = {
|
|
|
3983
3924
|
if (message.qr_code !== "") {
|
|
3984
3925
|
obj.qr_code = message.qr_code;
|
|
3985
3926
|
}
|
|
3986
|
-
if (message.
|
|
3987
|
-
obj.
|
|
3927
|
+
if (message.verify_time_seconds !== 0) {
|
|
3928
|
+
obj.verify_time_seconds = Math.round(message.verify_time_seconds);
|
|
3988
3929
|
}
|
|
3989
|
-
if (message.
|
|
3990
|
-
obj.
|
|
3930
|
+
if (message.disable_time_seconds !== 0) {
|
|
3931
|
+
obj.disable_time_seconds = Math.round(message.disable_time_seconds);
|
|
3991
3932
|
}
|
|
3992
3933
|
if (message.logo !== "") {
|
|
3993
3934
|
obj.logo = message.logo;
|
|
@@ -4012,8 +3953,8 @@ export const Account = {
|
|
|
4012
3953
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
4013
3954
|
message.email = object.email ?? "";
|
|
4014
3955
|
message.qr_code = object.qr_code ?? "";
|
|
4015
|
-
message.
|
|
4016
|
-
message.
|
|
3956
|
+
message.verify_time_seconds = object.verify_time_seconds ?? 0;
|
|
3957
|
+
message.disable_time_seconds = object.disable_time_seconds ?? 0;
|
|
4017
3958
|
message.logo = object.logo ?? "";
|
|
4018
3959
|
message.splash_screen = object.splash_screen ?? "";
|
|
4019
3960
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
@@ -5009,8 +4950,6 @@ function createBaseChannelMessage(): ChannelMessage {
|
|
|
5009
4950
|
username: "",
|
|
5010
4951
|
avatar: "",
|
|
5011
4952
|
content: "",
|
|
5012
|
-
create_time: undefined,
|
|
5013
|
-
update_time: undefined,
|
|
5014
4953
|
channel_label: "",
|
|
5015
4954
|
clan_logo: "",
|
|
5016
4955
|
category_name: "",
|
|
@@ -5057,62 +4996,56 @@ export const ChannelMessage = {
|
|
|
5057
4996
|
if (message.content !== "") {
|
|
5058
4997
|
writer.uint32(66).string(message.content);
|
|
5059
4998
|
}
|
|
5060
|
-
if (message.create_time !== undefined) {
|
|
5061
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(74).fork()).ldelim();
|
|
5062
|
-
}
|
|
5063
|
-
if (message.update_time !== undefined) {
|
|
5064
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(82).fork()).ldelim();
|
|
5065
|
-
}
|
|
5066
4999
|
if (message.channel_label !== "") {
|
|
5067
|
-
writer.uint32(
|
|
5000
|
+
writer.uint32(74).string(message.channel_label);
|
|
5068
5001
|
}
|
|
5069
5002
|
if (message.clan_logo !== "") {
|
|
5070
|
-
writer.uint32(
|
|
5003
|
+
writer.uint32(82).string(message.clan_logo);
|
|
5071
5004
|
}
|
|
5072
5005
|
if (message.category_name !== "") {
|
|
5073
|
-
writer.uint32(
|
|
5006
|
+
writer.uint32(90).string(message.category_name);
|
|
5074
5007
|
}
|
|
5075
5008
|
if (message.display_name !== "") {
|
|
5076
|
-
writer.uint32(
|
|
5009
|
+
writer.uint32(98).string(message.display_name);
|
|
5077
5010
|
}
|
|
5078
5011
|
if (message.clan_nick !== "") {
|
|
5079
|
-
writer.uint32(
|
|
5012
|
+
writer.uint32(106).string(message.clan_nick);
|
|
5080
5013
|
}
|
|
5081
5014
|
if (message.clan_avatar !== "") {
|
|
5082
|
-
writer.uint32(
|
|
5015
|
+
writer.uint32(114).string(message.clan_avatar);
|
|
5083
5016
|
}
|
|
5084
5017
|
if (message.reactions.length !== 0) {
|
|
5085
|
-
writer.uint32(
|
|
5018
|
+
writer.uint32(122).bytes(message.reactions);
|
|
5086
5019
|
}
|
|
5087
5020
|
if (message.mentions.length !== 0) {
|
|
5088
|
-
writer.uint32(
|
|
5021
|
+
writer.uint32(130).bytes(message.mentions);
|
|
5089
5022
|
}
|
|
5090
5023
|
if (message.attachments.length !== 0) {
|
|
5091
|
-
writer.uint32(
|
|
5024
|
+
writer.uint32(138).bytes(message.attachments);
|
|
5092
5025
|
}
|
|
5093
5026
|
if (message.references.length !== 0) {
|
|
5094
|
-
writer.uint32(
|
|
5027
|
+
writer.uint32(146).bytes(message.references);
|
|
5095
5028
|
}
|
|
5096
5029
|
if (message.referenced_message.length !== 0) {
|
|
5097
|
-
writer.uint32(
|
|
5030
|
+
writer.uint32(154).bytes(message.referenced_message);
|
|
5098
5031
|
}
|
|
5099
5032
|
if (message.create_time_seconds !== 0) {
|
|
5100
|
-
writer.uint32(
|
|
5033
|
+
writer.uint32(160).uint32(message.create_time_seconds);
|
|
5101
5034
|
}
|
|
5102
5035
|
if (message.update_time_seconds !== 0) {
|
|
5103
|
-
writer.uint32(
|
|
5036
|
+
writer.uint32(168).uint32(message.update_time_seconds);
|
|
5104
5037
|
}
|
|
5105
5038
|
if (message.mode !== 0) {
|
|
5106
|
-
writer.uint32(
|
|
5039
|
+
writer.uint32(176).int32(message.mode);
|
|
5107
5040
|
}
|
|
5108
5041
|
if (message.hide_editted !== false) {
|
|
5109
|
-
writer.uint32(
|
|
5042
|
+
writer.uint32(184).bool(message.hide_editted);
|
|
5110
5043
|
}
|
|
5111
5044
|
if (message.is_public !== false) {
|
|
5112
|
-
writer.uint32(
|
|
5045
|
+
writer.uint32(192).bool(message.is_public);
|
|
5113
5046
|
}
|
|
5114
5047
|
if (message.topic_id !== "") {
|
|
5115
|
-
writer.uint32(
|
|
5048
|
+
writer.uint32(202).string(message.topic_id);
|
|
5116
5049
|
}
|
|
5117
5050
|
return writer;
|
|
5118
5051
|
},
|
|
@@ -5185,129 +5118,115 @@ export const ChannelMessage = {
|
|
|
5185
5118
|
break;
|
|
5186
5119
|
}
|
|
5187
5120
|
|
|
5188
|
-
message.
|
|
5121
|
+
message.channel_label = reader.string();
|
|
5189
5122
|
continue;
|
|
5190
5123
|
case 10:
|
|
5191
5124
|
if (tag !== 82) {
|
|
5192
5125
|
break;
|
|
5193
5126
|
}
|
|
5194
5127
|
|
|
5195
|
-
message.
|
|
5128
|
+
message.clan_logo = reader.string();
|
|
5196
5129
|
continue;
|
|
5197
5130
|
case 11:
|
|
5198
5131
|
if (tag !== 90) {
|
|
5199
5132
|
break;
|
|
5200
5133
|
}
|
|
5201
5134
|
|
|
5202
|
-
message.
|
|
5135
|
+
message.category_name = reader.string();
|
|
5203
5136
|
continue;
|
|
5204
5137
|
case 12:
|
|
5205
5138
|
if (tag !== 98) {
|
|
5206
5139
|
break;
|
|
5207
5140
|
}
|
|
5208
5141
|
|
|
5209
|
-
message.
|
|
5142
|
+
message.display_name = reader.string();
|
|
5210
5143
|
continue;
|
|
5211
5144
|
case 13:
|
|
5212
5145
|
if (tag !== 106) {
|
|
5213
5146
|
break;
|
|
5214
5147
|
}
|
|
5215
5148
|
|
|
5216
|
-
message.
|
|
5149
|
+
message.clan_nick = reader.string();
|
|
5217
5150
|
continue;
|
|
5218
5151
|
case 14:
|
|
5219
5152
|
if (tag !== 114) {
|
|
5220
5153
|
break;
|
|
5221
5154
|
}
|
|
5222
5155
|
|
|
5223
|
-
message.
|
|
5156
|
+
message.clan_avatar = reader.string();
|
|
5224
5157
|
continue;
|
|
5225
5158
|
case 15:
|
|
5226
5159
|
if (tag !== 122) {
|
|
5227
5160
|
break;
|
|
5228
5161
|
}
|
|
5229
5162
|
|
|
5230
|
-
message.
|
|
5163
|
+
message.reactions = reader.bytes();
|
|
5231
5164
|
continue;
|
|
5232
5165
|
case 16:
|
|
5233
5166
|
if (tag !== 130) {
|
|
5234
5167
|
break;
|
|
5235
5168
|
}
|
|
5236
5169
|
|
|
5237
|
-
message.
|
|
5170
|
+
message.mentions = reader.bytes();
|
|
5238
5171
|
continue;
|
|
5239
5172
|
case 17:
|
|
5240
5173
|
if (tag !== 138) {
|
|
5241
5174
|
break;
|
|
5242
5175
|
}
|
|
5243
5176
|
|
|
5244
|
-
message.
|
|
5177
|
+
message.attachments = reader.bytes();
|
|
5245
5178
|
continue;
|
|
5246
5179
|
case 18:
|
|
5247
5180
|
if (tag !== 146) {
|
|
5248
5181
|
break;
|
|
5249
5182
|
}
|
|
5250
5183
|
|
|
5251
|
-
message.
|
|
5184
|
+
message.references = reader.bytes();
|
|
5252
5185
|
continue;
|
|
5253
5186
|
case 19:
|
|
5254
5187
|
if (tag !== 154) {
|
|
5255
5188
|
break;
|
|
5256
5189
|
}
|
|
5257
5190
|
|
|
5258
|
-
message.
|
|
5191
|
+
message.referenced_message = reader.bytes();
|
|
5259
5192
|
continue;
|
|
5260
5193
|
case 20:
|
|
5261
|
-
if (tag !==
|
|
5194
|
+
if (tag !== 160) {
|
|
5262
5195
|
break;
|
|
5263
5196
|
}
|
|
5264
5197
|
|
|
5265
|
-
message.
|
|
5198
|
+
message.create_time_seconds = reader.uint32();
|
|
5266
5199
|
continue;
|
|
5267
5200
|
case 21:
|
|
5268
|
-
if (tag !==
|
|
5201
|
+
if (tag !== 168) {
|
|
5269
5202
|
break;
|
|
5270
5203
|
}
|
|
5271
5204
|
|
|
5272
|
-
message.
|
|
5205
|
+
message.update_time_seconds = reader.uint32();
|
|
5273
5206
|
continue;
|
|
5274
5207
|
case 22:
|
|
5275
5208
|
if (tag !== 176) {
|
|
5276
5209
|
break;
|
|
5277
5210
|
}
|
|
5278
5211
|
|
|
5279
|
-
message.
|
|
5212
|
+
message.mode = reader.int32();
|
|
5280
5213
|
continue;
|
|
5281
5214
|
case 23:
|
|
5282
5215
|
if (tag !== 184) {
|
|
5283
5216
|
break;
|
|
5284
5217
|
}
|
|
5285
5218
|
|
|
5286
|
-
message.
|
|
5219
|
+
message.hide_editted = reader.bool();
|
|
5287
5220
|
continue;
|
|
5288
5221
|
case 24:
|
|
5289
5222
|
if (tag !== 192) {
|
|
5290
5223
|
break;
|
|
5291
5224
|
}
|
|
5292
5225
|
|
|
5293
|
-
message.mode = reader.int32();
|
|
5294
|
-
continue;
|
|
5295
|
-
case 25:
|
|
5296
|
-
if (tag !== 200) {
|
|
5297
|
-
break;
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
message.hide_editted = reader.bool();
|
|
5301
|
-
continue;
|
|
5302
|
-
case 26:
|
|
5303
|
-
if (tag !== 208) {
|
|
5304
|
-
break;
|
|
5305
|
-
}
|
|
5306
|
-
|
|
5307
5226
|
message.is_public = reader.bool();
|
|
5308
5227
|
continue;
|
|
5309
|
-
case
|
|
5310
|
-
if (tag !==
|
|
5228
|
+
case 25:
|
|
5229
|
+
if (tag !== 202) {
|
|
5311
5230
|
break;
|
|
5312
5231
|
}
|
|
5313
5232
|
|
|
@@ -5332,8 +5251,6 @@ export const ChannelMessage = {
|
|
|
5332
5251
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
5333
5252
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
5334
5253
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
5335
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
5336
|
-
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
5337
5254
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
5338
5255
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
5339
5256
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
@@ -5382,12 +5299,6 @@ export const ChannelMessage = {
|
|
|
5382
5299
|
if (message.content !== "") {
|
|
5383
5300
|
obj.content = message.content;
|
|
5384
5301
|
}
|
|
5385
|
-
if (message.create_time !== undefined) {
|
|
5386
|
-
obj.create_time = message.create_time.toISOString();
|
|
5387
|
-
}
|
|
5388
|
-
if (message.update_time !== undefined) {
|
|
5389
|
-
obj.update_time = message.update_time.toISOString();
|
|
5390
|
-
}
|
|
5391
5302
|
if (message.channel_label !== "") {
|
|
5392
5303
|
obj.channel_label = message.channel_label;
|
|
5393
5304
|
}
|
|
@@ -5455,8 +5366,6 @@ export const ChannelMessage = {
|
|
|
5455
5366
|
message.username = object.username ?? "";
|
|
5456
5367
|
message.avatar = object.avatar ?? "";
|
|
5457
5368
|
message.content = object.content ?? "";
|
|
5458
|
-
message.create_time = object.create_time ?? undefined;
|
|
5459
|
-
message.update_time = object.update_time ?? undefined;
|
|
5460
5369
|
message.channel_label = object.channel_label ?? "";
|
|
5461
5370
|
message.clan_logo = object.clan_logo ?? "";
|
|
5462
5371
|
message.category_name = object.category_name ?? "";
|
|
@@ -5479,7 +5388,7 @@ export const ChannelMessage = {
|
|
|
5479
5388
|
};
|
|
5480
5389
|
|
|
5481
5390
|
function createBaseMessageMention(): MessageMention {
|
|
5482
|
-
return { id: "", user_id: "", username: "", role_id: "", rolename: "",
|
|
5391
|
+
return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_second: 0, s: 0, e: 0 };
|
|
5483
5392
|
}
|
|
5484
5393
|
|
|
5485
5394
|
export const MessageMention = {
|
|
@@ -5499,8 +5408,8 @@ export const MessageMention = {
|
|
|
5499
5408
|
if (message.rolename !== "") {
|
|
5500
5409
|
writer.uint32(42).string(message.rolename);
|
|
5501
5410
|
}
|
|
5502
|
-
if (message.
|
|
5503
|
-
|
|
5411
|
+
if (message.create_time_second !== 0) {
|
|
5412
|
+
writer.uint32(48).uint32(message.create_time_second);
|
|
5504
5413
|
}
|
|
5505
5414
|
if (message.s !== 0) {
|
|
5506
5415
|
writer.uint32(56).int32(message.s);
|
|
@@ -5554,11 +5463,11 @@ export const MessageMention = {
|
|
|
5554
5463
|
message.rolename = reader.string();
|
|
5555
5464
|
continue;
|
|
5556
5465
|
case 6:
|
|
5557
|
-
if (tag !==
|
|
5466
|
+
if (tag !== 48) {
|
|
5558
5467
|
break;
|
|
5559
5468
|
}
|
|
5560
5469
|
|
|
5561
|
-
message.
|
|
5470
|
+
message.create_time_second = reader.uint32();
|
|
5562
5471
|
continue;
|
|
5563
5472
|
case 7:
|
|
5564
5473
|
if (tag !== 56) {
|
|
@@ -5590,7 +5499,7 @@ export const MessageMention = {
|
|
|
5590
5499
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
5591
5500
|
role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
|
|
5592
5501
|
rolename: isSet(object.rolename) ? globalThis.String(object.rolename) : "",
|
|
5593
|
-
|
|
5502
|
+
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
5594
5503
|
s: isSet(object.s) ? globalThis.Number(object.s) : 0,
|
|
5595
5504
|
e: isSet(object.e) ? globalThis.Number(object.e) : 0,
|
|
5596
5505
|
};
|
|
@@ -5613,8 +5522,8 @@ export const MessageMention = {
|
|
|
5613
5522
|
if (message.rolename !== "") {
|
|
5614
5523
|
obj.rolename = message.rolename;
|
|
5615
5524
|
}
|
|
5616
|
-
if (message.
|
|
5617
|
-
obj.
|
|
5525
|
+
if (message.create_time_second !== 0) {
|
|
5526
|
+
obj.create_time_second = Math.round(message.create_time_second);
|
|
5618
5527
|
}
|
|
5619
5528
|
if (message.s !== 0) {
|
|
5620
5529
|
obj.s = Math.round(message.s);
|
|
@@ -5635,7 +5544,7 @@ export const MessageMention = {
|
|
|
5635
5544
|
message.username = object.username ?? "";
|
|
5636
5545
|
message.role_id = object.role_id ?? "";
|
|
5637
5546
|
message.rolename = object.rolename ?? "";
|
|
5638
|
-
message.
|
|
5547
|
+
message.create_time_second = object.create_time_second ?? 0;
|
|
5639
5548
|
message.s = object.s ?? 0;
|
|
5640
5549
|
message.e = object.e ?? 0;
|
|
5641
5550
|
return message;
|
|
@@ -7056,7 +6965,7 @@ export const DeleteNotificationsRequest = {
|
|
|
7056
6965
|
};
|
|
7057
6966
|
|
|
7058
6967
|
function createBaseEvent(): Event {
|
|
7059
|
-
return { name: "", properties: {},
|
|
6968
|
+
return { name: "", properties: {}, timestamp_seconds: 0, external: false };
|
|
7060
6969
|
}
|
|
7061
6970
|
|
|
7062
6971
|
export const Event = {
|
|
@@ -7067,8 +6976,8 @@ export const Event = {
|
|
|
7067
6976
|
Object.entries(message.properties).forEach(([key, value]) => {
|
|
7068
6977
|
Event_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
7069
6978
|
});
|
|
7070
|
-
if (message.
|
|
7071
|
-
|
|
6979
|
+
if (message.timestamp_seconds !== 0) {
|
|
6980
|
+
writer.uint32(24).uint32(message.timestamp_seconds);
|
|
7072
6981
|
}
|
|
7073
6982
|
if (message.external !== false) {
|
|
7074
6983
|
writer.uint32(32).bool(message.external);
|
|
@@ -7101,11 +7010,11 @@ export const Event = {
|
|
|
7101
7010
|
}
|
|
7102
7011
|
continue;
|
|
7103
7012
|
case 3:
|
|
7104
|
-
if (tag !==
|
|
7013
|
+
if (tag !== 24) {
|
|
7105
7014
|
break;
|
|
7106
7015
|
}
|
|
7107
7016
|
|
|
7108
|
-
message.
|
|
7017
|
+
message.timestamp_seconds = reader.uint32();
|
|
7109
7018
|
continue;
|
|
7110
7019
|
case 4:
|
|
7111
7020
|
if (tag !== 32) {
|
|
@@ -7132,7 +7041,7 @@ export const Event = {
|
|
|
7132
7041
|
return acc;
|
|
7133
7042
|
}, {})
|
|
7134
7043
|
: {},
|
|
7135
|
-
|
|
7044
|
+
timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
7136
7045
|
external: isSet(object.external) ? globalThis.Boolean(object.external) : false,
|
|
7137
7046
|
};
|
|
7138
7047
|
},
|
|
@@ -7151,8 +7060,8 @@ export const Event = {
|
|
|
7151
7060
|
});
|
|
7152
7061
|
}
|
|
7153
7062
|
}
|
|
7154
|
-
if (message.
|
|
7155
|
-
obj.
|
|
7063
|
+
if (message.timestamp_seconds !== 0) {
|
|
7064
|
+
obj.timestamp_seconds = Math.round(message.timestamp_seconds);
|
|
7156
7065
|
}
|
|
7157
7066
|
if (message.external !== false) {
|
|
7158
7067
|
obj.external = message.external;
|
|
@@ -7175,7 +7084,7 @@ export const Event = {
|
|
|
7175
7084
|
},
|
|
7176
7085
|
{},
|
|
7177
7086
|
);
|
|
7178
|
-
message.
|
|
7087
|
+
message.timestamp_seconds = object.timestamp_seconds ?? 0;
|
|
7179
7088
|
message.external = object.external ?? false;
|
|
7180
7089
|
return message;
|
|
7181
7090
|
},
|
|
@@ -7256,7 +7165,7 @@ export const Event_PropertiesEntry = {
|
|
|
7256
7165
|
};
|
|
7257
7166
|
|
|
7258
7167
|
function createBaseFriend(): Friend {
|
|
7259
|
-
return { user: undefined, state: 0,
|
|
7168
|
+
return { user: undefined, state: 0, update_time_seconds: 0, source_id: "" };
|
|
7260
7169
|
}
|
|
7261
7170
|
|
|
7262
7171
|
export const Friend = {
|
|
@@ -7267,8 +7176,8 @@ export const Friend = {
|
|
|
7267
7176
|
if (message.state !== 0) {
|
|
7268
7177
|
writer.uint32(16).int32(message.state);
|
|
7269
7178
|
}
|
|
7270
|
-
if (message.
|
|
7271
|
-
|
|
7179
|
+
if (message.update_time_seconds !== 0) {
|
|
7180
|
+
writer.uint32(24).uint32(message.update_time_seconds);
|
|
7272
7181
|
}
|
|
7273
7182
|
if (message.source_id !== "") {
|
|
7274
7183
|
writer.uint32(34).string(message.source_id);
|
|
@@ -7298,11 +7207,11 @@ export const Friend = {
|
|
|
7298
7207
|
message.state = reader.int32();
|
|
7299
7208
|
continue;
|
|
7300
7209
|
case 3:
|
|
7301
|
-
if (tag !==
|
|
7210
|
+
if (tag !== 24) {
|
|
7302
7211
|
break;
|
|
7303
7212
|
}
|
|
7304
7213
|
|
|
7305
|
-
message.
|
|
7214
|
+
message.update_time_seconds = reader.uint32();
|
|
7306
7215
|
continue;
|
|
7307
7216
|
case 4:
|
|
7308
7217
|
if (tag !== 34) {
|
|
@@ -7324,7 +7233,7 @@ export const Friend = {
|
|
|
7324
7233
|
return {
|
|
7325
7234
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
7326
7235
|
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
7327
|
-
|
|
7236
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
7328
7237
|
source_id: isSet(object.source_id) ? globalThis.String(object.source_id) : "",
|
|
7329
7238
|
};
|
|
7330
7239
|
},
|
|
@@ -7337,8 +7246,8 @@ export const Friend = {
|
|
|
7337
7246
|
if (message.state !== 0) {
|
|
7338
7247
|
obj.state = Math.round(message.state);
|
|
7339
7248
|
}
|
|
7340
|
-
if (message.
|
|
7341
|
-
obj.
|
|
7249
|
+
if (message.update_time_seconds !== 0) {
|
|
7250
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
7342
7251
|
}
|
|
7343
7252
|
if (message.source_id !== "") {
|
|
7344
7253
|
obj.source_id = message.source_id;
|
|
@@ -7353,7 +7262,7 @@ export const Friend = {
|
|
|
7353
7262
|
const message = createBaseFriend();
|
|
7354
7263
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
7355
7264
|
message.state = object.state ?? 0;
|
|
7356
|
-
message.
|
|
7265
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
7357
7266
|
message.source_id = object.source_id ?? "";
|
|
7358
7267
|
return message;
|
|
7359
7268
|
},
|
|
@@ -7976,7 +7885,7 @@ function createBaseChannelAttachment(): ChannelAttachment {
|
|
|
7976
7885
|
filesize: "",
|
|
7977
7886
|
url: "",
|
|
7978
7887
|
uploader: "",
|
|
7979
|
-
|
|
7888
|
+
create_time_seconds: 0,
|
|
7980
7889
|
message_id: "",
|
|
7981
7890
|
width: 0,
|
|
7982
7891
|
height: 0,
|
|
@@ -8003,8 +7912,8 @@ export const ChannelAttachment = {
|
|
|
8003
7912
|
if (message.uploader !== "") {
|
|
8004
7913
|
writer.uint32(50).string(message.uploader);
|
|
8005
7914
|
}
|
|
8006
|
-
if (message.
|
|
8007
|
-
|
|
7915
|
+
if (message.create_time_seconds !== 0) {
|
|
7916
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
8008
7917
|
}
|
|
8009
7918
|
if (message.message_id !== "") {
|
|
8010
7919
|
writer.uint32(66).string(message.message_id);
|
|
@@ -8068,11 +7977,11 @@ export const ChannelAttachment = {
|
|
|
8068
7977
|
message.uploader = reader.string();
|
|
8069
7978
|
continue;
|
|
8070
7979
|
case 7:
|
|
8071
|
-
if (tag !==
|
|
7980
|
+
if (tag !== 56) {
|
|
8072
7981
|
break;
|
|
8073
7982
|
}
|
|
8074
7983
|
|
|
8075
|
-
message.
|
|
7984
|
+
message.create_time_seconds = reader.uint32();
|
|
8076
7985
|
continue;
|
|
8077
7986
|
case 8:
|
|
8078
7987
|
if (tag !== 66) {
|
|
@@ -8112,7 +8021,7 @@ export const ChannelAttachment = {
|
|
|
8112
8021
|
filesize: isSet(object.filesize) ? globalThis.String(object.filesize) : "",
|
|
8113
8022
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
8114
8023
|
uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "",
|
|
8115
|
-
|
|
8024
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
8116
8025
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
8117
8026
|
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
8118
8027
|
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
@@ -8139,8 +8048,8 @@ export const ChannelAttachment = {
|
|
|
8139
8048
|
if (message.uploader !== "") {
|
|
8140
8049
|
obj.uploader = message.uploader;
|
|
8141
8050
|
}
|
|
8142
|
-
if (message.
|
|
8143
|
-
obj.
|
|
8051
|
+
if (message.create_time_seconds !== 0) {
|
|
8052
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
8144
8053
|
}
|
|
8145
8054
|
if (message.message_id !== "") {
|
|
8146
8055
|
obj.message_id = message.message_id;
|
|
@@ -8165,7 +8074,7 @@ export const ChannelAttachment = {
|
|
|
8165
8074
|
message.filesize = object.filesize ?? "";
|
|
8166
8075
|
message.url = object.url ?? "";
|
|
8167
8076
|
message.uploader = object.uploader ?? "";
|
|
8168
|
-
message.
|
|
8077
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
8169
8078
|
message.message_id = object.message_id ?? "";
|
|
8170
8079
|
message.width = object.width ?? 0;
|
|
8171
8080
|
message.height = object.height ?? 0;
|
|
@@ -9233,16 +9142,7 @@ export const ListChannelUsersRequest = {
|
|
|
9233
9142
|
};
|
|
9234
9143
|
|
|
9235
9144
|
function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest {
|
|
9236
|
-
return {
|
|
9237
|
-
clan_id: "",
|
|
9238
|
-
channel_id: "",
|
|
9239
|
-
file_type: "",
|
|
9240
|
-
limit: undefined,
|
|
9241
|
-
state: undefined,
|
|
9242
|
-
before: 0,
|
|
9243
|
-
after: 0,
|
|
9244
|
-
around: 0,
|
|
9245
|
-
};
|
|
9145
|
+
return { clan_id: "", channel_id: "", file_type: "", limit: 0, state: 0, before: 0, after: 0, around: 0 };
|
|
9246
9146
|
}
|
|
9247
9147
|
|
|
9248
9148
|
export const ListChannelAttachmentRequest = {
|
|
@@ -9256,11 +9156,11 @@ export const ListChannelAttachmentRequest = {
|
|
|
9256
9156
|
if (message.file_type !== "") {
|
|
9257
9157
|
writer.uint32(26).string(message.file_type);
|
|
9258
9158
|
}
|
|
9259
|
-
if (message.limit !==
|
|
9260
|
-
|
|
9159
|
+
if (message.limit !== 0) {
|
|
9160
|
+
writer.uint32(32).int32(message.limit);
|
|
9261
9161
|
}
|
|
9262
|
-
if (message.state !==
|
|
9263
|
-
|
|
9162
|
+
if (message.state !== 0) {
|
|
9163
|
+
writer.uint32(40).int32(message.state);
|
|
9264
9164
|
}
|
|
9265
9165
|
if (message.before !== 0) {
|
|
9266
9166
|
writer.uint32(48).uint32(message.before);
|
|
@@ -9303,18 +9203,18 @@ export const ListChannelAttachmentRequest = {
|
|
|
9303
9203
|
message.file_type = reader.string();
|
|
9304
9204
|
continue;
|
|
9305
9205
|
case 4:
|
|
9306
|
-
if (tag !==
|
|
9206
|
+
if (tag !== 32) {
|
|
9307
9207
|
break;
|
|
9308
9208
|
}
|
|
9309
9209
|
|
|
9310
|
-
message.limit =
|
|
9210
|
+
message.limit = reader.int32();
|
|
9311
9211
|
continue;
|
|
9312
9212
|
case 5:
|
|
9313
|
-
if (tag !==
|
|
9213
|
+
if (tag !== 40) {
|
|
9314
9214
|
break;
|
|
9315
9215
|
}
|
|
9316
9216
|
|
|
9317
|
-
message.state =
|
|
9217
|
+
message.state = reader.int32();
|
|
9318
9218
|
continue;
|
|
9319
9219
|
case 6:
|
|
9320
9220
|
if (tag !== 48) {
|
|
@@ -9351,8 +9251,8 @@ export const ListChannelAttachmentRequest = {
|
|
|
9351
9251
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9352
9252
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9353
9253
|
file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
9354
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
9355
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
9254
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9255
|
+
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
9356
9256
|
before: isSet(object.before) ? globalThis.Number(object.before) : 0,
|
|
9357
9257
|
after: isSet(object.after) ? globalThis.Number(object.after) : 0,
|
|
9358
9258
|
around: isSet(object.around) ? globalThis.Number(object.around) : 0,
|
|
@@ -9370,11 +9270,11 @@ export const ListChannelAttachmentRequest = {
|
|
|
9370
9270
|
if (message.file_type !== "") {
|
|
9371
9271
|
obj.file_type = message.file_type;
|
|
9372
9272
|
}
|
|
9373
|
-
if (message.limit !==
|
|
9374
|
-
obj.limit = message.limit;
|
|
9273
|
+
if (message.limit !== 0) {
|
|
9274
|
+
obj.limit = Math.round(message.limit);
|
|
9375
9275
|
}
|
|
9376
|
-
if (message.state !==
|
|
9377
|
-
obj.state = message.state;
|
|
9276
|
+
if (message.state !== 0) {
|
|
9277
|
+
obj.state = Math.round(message.state);
|
|
9378
9278
|
}
|
|
9379
9279
|
if (message.before !== 0) {
|
|
9380
9280
|
obj.before = Math.round(message.before);
|
|
@@ -9396,8 +9296,8 @@ export const ListChannelAttachmentRequest = {
|
|
|
9396
9296
|
message.clan_id = object.clan_id ?? "";
|
|
9397
9297
|
message.channel_id = object.channel_id ?? "";
|
|
9398
9298
|
message.file_type = object.file_type ?? "";
|
|
9399
|
-
message.limit = object.limit ??
|
|
9400
|
-
message.state = object.state ??
|
|
9299
|
+
message.limit = object.limit ?? 0;
|
|
9300
|
+
message.state = object.state ?? 0;
|
|
9401
9301
|
message.before = object.before ?? 0;
|
|
9402
9302
|
message.after = object.after ?? 0;
|
|
9403
9303
|
message.around = object.around ?? 0;
|
|
@@ -9692,7 +9592,7 @@ function createBaseNotification(): Notification {
|
|
|
9692
9592
|
content: new Uint8Array(0),
|
|
9693
9593
|
code: 0,
|
|
9694
9594
|
sender_id: "",
|
|
9695
|
-
|
|
9595
|
+
create_time_seconds: 0,
|
|
9696
9596
|
persistent: false,
|
|
9697
9597
|
clan_id: "",
|
|
9698
9598
|
channel_id: "",
|
|
@@ -9721,8 +9621,8 @@ export const Notification = {
|
|
|
9721
9621
|
if (message.sender_id !== "") {
|
|
9722
9622
|
writer.uint32(42).string(message.sender_id);
|
|
9723
9623
|
}
|
|
9724
|
-
if (message.
|
|
9725
|
-
|
|
9624
|
+
if (message.create_time_seconds !== 0) {
|
|
9625
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
9726
9626
|
}
|
|
9727
9627
|
if (message.persistent !== false) {
|
|
9728
9628
|
writer.uint32(56).bool(message.persistent);
|
|
@@ -9794,11 +9694,11 @@ export const Notification = {
|
|
|
9794
9694
|
message.sender_id = reader.string();
|
|
9795
9695
|
continue;
|
|
9796
9696
|
case 6:
|
|
9797
|
-
if (tag !==
|
|
9697
|
+
if (tag !== 48) {
|
|
9798
9698
|
break;
|
|
9799
9699
|
}
|
|
9800
9700
|
|
|
9801
|
-
message.
|
|
9701
|
+
message.create_time_seconds = reader.uint32();
|
|
9802
9702
|
continue;
|
|
9803
9703
|
case 7:
|
|
9804
9704
|
if (tag !== 56) {
|
|
@@ -9872,7 +9772,7 @@ export const Notification = {
|
|
|
9872
9772
|
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
9873
9773
|
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
9874
9774
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
9875
|
-
|
|
9775
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
9876
9776
|
persistent: isSet(object.persistent) ? globalThis.Boolean(object.persistent) : false,
|
|
9877
9777
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9878
9778
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
@@ -9901,8 +9801,8 @@ export const Notification = {
|
|
|
9901
9801
|
if (message.sender_id !== "") {
|
|
9902
9802
|
obj.sender_id = message.sender_id;
|
|
9903
9803
|
}
|
|
9904
|
-
if (message.
|
|
9905
|
-
obj.
|
|
9804
|
+
if (message.create_time_seconds !== 0) {
|
|
9805
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
9906
9806
|
}
|
|
9907
9807
|
if (message.persistent !== false) {
|
|
9908
9808
|
obj.persistent = message.persistent;
|
|
@@ -9941,7 +9841,7 @@ export const Notification = {
|
|
|
9941
9841
|
message.content = object.content ?? new Uint8Array(0);
|
|
9942
9842
|
message.code = object.code ?? 0;
|
|
9943
9843
|
message.sender_id = object.sender_id ?? "";
|
|
9944
|
-
message.
|
|
9844
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
9945
9845
|
message.persistent = object.persistent ?? false;
|
|
9946
9846
|
message.clan_id = object.clan_id ?? "";
|
|
9947
9847
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -9957,7 +9857,7 @@ export const Notification = {
|
|
|
9957
9857
|
};
|
|
9958
9858
|
|
|
9959
9859
|
function createBaseEmojiRecent(): EmojiRecent {
|
|
9960
|
-
return { emoji_recents_id: "", emoji_id: "",
|
|
9860
|
+
return { emoji_recents_id: "", emoji_id: "", update_time_seconds: 0 };
|
|
9961
9861
|
}
|
|
9962
9862
|
|
|
9963
9863
|
export const EmojiRecent = {
|
|
@@ -9968,8 +9868,8 @@ export const EmojiRecent = {
|
|
|
9968
9868
|
if (message.emoji_id !== "") {
|
|
9969
9869
|
writer.uint32(18).string(message.emoji_id);
|
|
9970
9870
|
}
|
|
9971
|
-
if (message.
|
|
9972
|
-
|
|
9871
|
+
if (message.update_time_seconds !== 0) {
|
|
9872
|
+
writer.uint32(24).uint32(message.update_time_seconds);
|
|
9973
9873
|
}
|
|
9974
9874
|
return writer;
|
|
9975
9875
|
},
|
|
@@ -9996,11 +9896,11 @@ export const EmojiRecent = {
|
|
|
9996
9896
|
message.emoji_id = reader.string();
|
|
9997
9897
|
continue;
|
|
9998
9898
|
case 3:
|
|
9999
|
-
if (tag !==
|
|
9899
|
+
if (tag !== 24) {
|
|
10000
9900
|
break;
|
|
10001
9901
|
}
|
|
10002
9902
|
|
|
10003
|
-
message.
|
|
9903
|
+
message.update_time_seconds = reader.uint32();
|
|
10004
9904
|
continue;
|
|
10005
9905
|
}
|
|
10006
9906
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -10015,7 +9915,7 @@ export const EmojiRecent = {
|
|
|
10015
9915
|
return {
|
|
10016
9916
|
emoji_recents_id: isSet(object.emoji_recents_id) ? globalThis.String(object.emoji_recents_id) : "",
|
|
10017
9917
|
emoji_id: isSet(object.emoji_id) ? globalThis.String(object.emoji_id) : "",
|
|
10018
|
-
|
|
9918
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
10019
9919
|
};
|
|
10020
9920
|
},
|
|
10021
9921
|
|
|
@@ -10027,8 +9927,8 @@ export const EmojiRecent = {
|
|
|
10027
9927
|
if (message.emoji_id !== "") {
|
|
10028
9928
|
obj.emoji_id = message.emoji_id;
|
|
10029
9929
|
}
|
|
10030
|
-
if (message.
|
|
10031
|
-
obj.
|
|
9930
|
+
if (message.update_time_seconds !== 0) {
|
|
9931
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
10032
9932
|
}
|
|
10033
9933
|
return obj;
|
|
10034
9934
|
},
|
|
@@ -10040,7 +9940,7 @@ export const EmojiRecent = {
|
|
|
10040
9940
|
const message = createBaseEmojiRecent();
|
|
10041
9941
|
message.emoji_recents_id = object.emoji_recents_id ?? "";
|
|
10042
9942
|
message.emoji_id = object.emoji_id ?? "";
|
|
10043
|
-
message.
|
|
9943
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
10044
9944
|
return message;
|
|
10045
9945
|
},
|
|
10046
9946
|
};
|
|
@@ -10650,7 +10550,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10650
10550
|
location: undefined,
|
|
10651
10551
|
timezone: undefined,
|
|
10652
10552
|
about_me: undefined,
|
|
10653
|
-
|
|
10553
|
+
dob_seconds: 0,
|
|
10654
10554
|
logo: undefined,
|
|
10655
10555
|
splash_screen: undefined,
|
|
10656
10556
|
encrypt_private_key: "",
|
|
@@ -10678,8 +10578,8 @@ export const UpdateAccountRequest = {
|
|
|
10678
10578
|
if (message.about_me !== undefined) {
|
|
10679
10579
|
StringValue.encode({ value: message.about_me! }, writer.uint32(50).fork()).ldelim();
|
|
10680
10580
|
}
|
|
10681
|
-
if (message.
|
|
10682
|
-
|
|
10581
|
+
if (message.dob_seconds !== 0) {
|
|
10582
|
+
writer.uint32(56).uint32(message.dob_seconds);
|
|
10683
10583
|
}
|
|
10684
10584
|
if (message.logo !== undefined) {
|
|
10685
10585
|
StringValue.encode({ value: message.logo! }, writer.uint32(66).fork()).ldelim();
|
|
@@ -10746,11 +10646,11 @@ export const UpdateAccountRequest = {
|
|
|
10746
10646
|
message.about_me = StringValue.decode(reader, reader.uint32()).value;
|
|
10747
10647
|
continue;
|
|
10748
10648
|
case 7:
|
|
10749
|
-
if (tag !==
|
|
10649
|
+
if (tag !== 56) {
|
|
10750
10650
|
break;
|
|
10751
10651
|
}
|
|
10752
10652
|
|
|
10753
|
-
message.
|
|
10653
|
+
message.dob_seconds = reader.uint32();
|
|
10754
10654
|
continue;
|
|
10755
10655
|
case 8:
|
|
10756
10656
|
if (tag !== 66) {
|
|
@@ -10797,7 +10697,7 @@ export const UpdateAccountRequest = {
|
|
|
10797
10697
|
location: isSet(object.location) ? String(object.location) : undefined,
|
|
10798
10698
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
10799
10699
|
about_me: isSet(object.about_me) ? String(object.about_me) : undefined,
|
|
10800
|
-
|
|
10700
|
+
dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
10801
10701
|
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
10802
10702
|
splash_screen: isSet(object.splash_screen) ? String(object.splash_screen) : undefined,
|
|
10803
10703
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
@@ -10825,8 +10725,8 @@ export const UpdateAccountRequest = {
|
|
|
10825
10725
|
if (message.about_me !== undefined) {
|
|
10826
10726
|
obj.about_me = message.about_me;
|
|
10827
10727
|
}
|
|
10828
|
-
if (message.
|
|
10829
|
-
obj.
|
|
10728
|
+
if (message.dob_seconds !== 0) {
|
|
10729
|
+
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
10830
10730
|
}
|
|
10831
10731
|
if (message.logo !== undefined) {
|
|
10832
10732
|
obj.logo = message.logo;
|
|
@@ -10854,7 +10754,7 @@ export const UpdateAccountRequest = {
|
|
|
10854
10754
|
message.location = object.location ?? undefined;
|
|
10855
10755
|
message.timezone = object.timezone ?? undefined;
|
|
10856
10756
|
message.about_me = object.about_me ?? undefined;
|
|
10857
|
-
message.
|
|
10757
|
+
message.dob_seconds = object.dob_seconds ?? 0;
|
|
10858
10758
|
message.logo = object.logo ?? undefined;
|
|
10859
10759
|
message.splash_screen = object.splash_screen ?? undefined;
|
|
10860
10760
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
@@ -11106,12 +11006,12 @@ function createBaseUser(): User {
|
|
|
11106
11006
|
online: false,
|
|
11107
11007
|
phone_number: "",
|
|
11108
11008
|
edge_count: 0,
|
|
11109
|
-
|
|
11110
|
-
|
|
11009
|
+
create_time_seconds: 0,
|
|
11010
|
+
update_time_seconds: 0,
|
|
11111
11011
|
about_me: "",
|
|
11112
|
-
|
|
11012
|
+
join_time_seconds: 0,
|
|
11113
11013
|
is_mobile: false,
|
|
11114
|
-
|
|
11014
|
+
dob_seconds: 0,
|
|
11115
11015
|
mezon_id: "",
|
|
11116
11016
|
list_nick_names: [],
|
|
11117
11017
|
status: "",
|
|
@@ -11153,23 +11053,23 @@ export const User = {
|
|
|
11153
11053
|
if (message.edge_count !== 0) {
|
|
11154
11054
|
writer.uint32(88).int32(message.edge_count);
|
|
11155
11055
|
}
|
|
11156
|
-
if (message.
|
|
11157
|
-
|
|
11056
|
+
if (message.create_time_seconds !== 0) {
|
|
11057
|
+
writer.uint32(96).uint32(message.create_time_seconds);
|
|
11158
11058
|
}
|
|
11159
|
-
if (message.
|
|
11160
|
-
|
|
11059
|
+
if (message.update_time_seconds !== 0) {
|
|
11060
|
+
writer.uint32(104).uint32(message.update_time_seconds);
|
|
11161
11061
|
}
|
|
11162
11062
|
if (message.about_me !== "") {
|
|
11163
11063
|
writer.uint32(114).string(message.about_me);
|
|
11164
11064
|
}
|
|
11165
|
-
if (message.
|
|
11166
|
-
|
|
11065
|
+
if (message.join_time_seconds !== 0) {
|
|
11066
|
+
writer.uint32(120).uint32(message.join_time_seconds);
|
|
11167
11067
|
}
|
|
11168
11068
|
if (message.is_mobile !== false) {
|
|
11169
11069
|
writer.uint32(128).bool(message.is_mobile);
|
|
11170
11070
|
}
|
|
11171
|
-
if (message.
|
|
11172
|
-
|
|
11071
|
+
if (message.dob_seconds !== 0) {
|
|
11072
|
+
writer.uint32(136).uint32(message.dob_seconds);
|
|
11173
11073
|
}
|
|
11174
11074
|
if (message.mezon_id !== "") {
|
|
11175
11075
|
writer.uint32(146).string(message.mezon_id);
|
|
@@ -11268,18 +11168,18 @@ export const User = {
|
|
|
11268
11168
|
message.edge_count = reader.int32();
|
|
11269
11169
|
continue;
|
|
11270
11170
|
case 12:
|
|
11271
|
-
if (tag !==
|
|
11171
|
+
if (tag !== 96) {
|
|
11272
11172
|
break;
|
|
11273
11173
|
}
|
|
11274
11174
|
|
|
11275
|
-
message.
|
|
11175
|
+
message.create_time_seconds = reader.uint32();
|
|
11276
11176
|
continue;
|
|
11277
11177
|
case 13:
|
|
11278
|
-
if (tag !==
|
|
11178
|
+
if (tag !== 104) {
|
|
11279
11179
|
break;
|
|
11280
11180
|
}
|
|
11281
11181
|
|
|
11282
|
-
message.
|
|
11182
|
+
message.update_time_seconds = reader.uint32();
|
|
11283
11183
|
continue;
|
|
11284
11184
|
case 14:
|
|
11285
11185
|
if (tag !== 114) {
|
|
@@ -11289,11 +11189,11 @@ export const User = {
|
|
|
11289
11189
|
message.about_me = reader.string();
|
|
11290
11190
|
continue;
|
|
11291
11191
|
case 15:
|
|
11292
|
-
if (tag !==
|
|
11192
|
+
if (tag !== 120) {
|
|
11293
11193
|
break;
|
|
11294
11194
|
}
|
|
11295
11195
|
|
|
11296
|
-
message.
|
|
11196
|
+
message.join_time_seconds = reader.uint32();
|
|
11297
11197
|
continue;
|
|
11298
11198
|
case 16:
|
|
11299
11199
|
if (tag !== 128) {
|
|
@@ -11303,11 +11203,11 @@ export const User = {
|
|
|
11303
11203
|
message.is_mobile = reader.bool();
|
|
11304
11204
|
continue;
|
|
11305
11205
|
case 17:
|
|
11306
|
-
if (tag !==
|
|
11206
|
+
if (tag !== 136) {
|
|
11307
11207
|
break;
|
|
11308
11208
|
}
|
|
11309
11209
|
|
|
11310
|
-
message.
|
|
11210
|
+
message.dob_seconds = reader.uint32();
|
|
11311
11211
|
continue;
|
|
11312
11212
|
case 18:
|
|
11313
11213
|
if (tag !== 146) {
|
|
@@ -11352,12 +11252,12 @@ export const User = {
|
|
|
11352
11252
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
11353
11253
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
11354
11254
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
11355
|
-
|
|
11356
|
-
|
|
11255
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
11256
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
11357
11257
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11358
|
-
|
|
11258
|
+
join_time_seconds: isSet(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
|
|
11359
11259
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
11360
|
-
|
|
11260
|
+
dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
11361
11261
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
11362
11262
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
11363
11263
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
@@ -11401,23 +11301,23 @@ export const User = {
|
|
|
11401
11301
|
if (message.edge_count !== 0) {
|
|
11402
11302
|
obj.edge_count = Math.round(message.edge_count);
|
|
11403
11303
|
}
|
|
11404
|
-
if (message.
|
|
11405
|
-
obj.
|
|
11304
|
+
if (message.create_time_seconds !== 0) {
|
|
11305
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
11406
11306
|
}
|
|
11407
|
-
if (message.
|
|
11408
|
-
obj.
|
|
11307
|
+
if (message.update_time_seconds !== 0) {
|
|
11308
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
11409
11309
|
}
|
|
11410
11310
|
if (message.about_me !== "") {
|
|
11411
11311
|
obj.about_me = message.about_me;
|
|
11412
11312
|
}
|
|
11413
|
-
if (message.
|
|
11414
|
-
obj.
|
|
11313
|
+
if (message.join_time_seconds !== 0) {
|
|
11314
|
+
obj.join_time_seconds = Math.round(message.join_time_seconds);
|
|
11415
11315
|
}
|
|
11416
11316
|
if (message.is_mobile !== false) {
|
|
11417
11317
|
obj.is_mobile = message.is_mobile;
|
|
11418
11318
|
}
|
|
11419
|
-
if (message.
|
|
11420
|
-
obj.
|
|
11319
|
+
if (message.dob_seconds !== 0) {
|
|
11320
|
+
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
11421
11321
|
}
|
|
11422
11322
|
if (message.mezon_id !== "") {
|
|
11423
11323
|
obj.mezon_id = message.mezon_id;
|
|
@@ -11447,12 +11347,12 @@ export const User = {
|
|
|
11447
11347
|
message.online = object.online ?? false;
|
|
11448
11348
|
message.phone_number = object.phone_number ?? "";
|
|
11449
11349
|
message.edge_count = object.edge_count ?? 0;
|
|
11450
|
-
message.
|
|
11451
|
-
message.
|
|
11350
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
11351
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
11452
11352
|
message.about_me = object.about_me ?? "";
|
|
11453
|
-
message.
|
|
11353
|
+
message.join_time_seconds = object.join_time_seconds ?? 0;
|
|
11454
11354
|
message.is_mobile = object.is_mobile ?? false;
|
|
11455
|
-
message.
|
|
11355
|
+
message.dob_seconds = object.dob_seconds ?? 0;
|
|
11456
11356
|
message.mezon_id = object.mezon_id ?? "";
|
|
11457
11357
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11458
11358
|
message.status = object.status ?? "";
|
|
@@ -13000,7 +12900,7 @@ function createBaseInviteUserRes(): InviteUserRes {
|
|
|
13000
12900
|
clan_name: "",
|
|
13001
12901
|
channel_label: "",
|
|
13002
12902
|
user_joined: false,
|
|
13003
|
-
|
|
12903
|
+
expiry_time_seconds: 0,
|
|
13004
12904
|
channel_desc: undefined,
|
|
13005
12905
|
clan_logo: "",
|
|
13006
12906
|
member_count: 0,
|
|
@@ -13024,8 +12924,8 @@ export const InviteUserRes = {
|
|
|
13024
12924
|
if (message.user_joined !== false) {
|
|
13025
12925
|
writer.uint32(40).bool(message.user_joined);
|
|
13026
12926
|
}
|
|
13027
|
-
if (message.
|
|
13028
|
-
|
|
12927
|
+
if (message.expiry_time_seconds !== 0) {
|
|
12928
|
+
writer.uint32(48).uint32(message.expiry_time_seconds);
|
|
13029
12929
|
}
|
|
13030
12930
|
if (message.channel_desc !== undefined) {
|
|
13031
12931
|
ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
|
|
@@ -13082,11 +12982,11 @@ export const InviteUserRes = {
|
|
|
13082
12982
|
message.user_joined = reader.bool();
|
|
13083
12983
|
continue;
|
|
13084
12984
|
case 6:
|
|
13085
|
-
if (tag !==
|
|
12985
|
+
if (tag !== 48) {
|
|
13086
12986
|
break;
|
|
13087
12987
|
}
|
|
13088
12988
|
|
|
13089
|
-
message.
|
|
12989
|
+
message.expiry_time_seconds = reader.uint32();
|
|
13090
12990
|
continue;
|
|
13091
12991
|
case 7:
|
|
13092
12992
|
if (tag !== 58) {
|
|
@@ -13125,7 +13025,7 @@ export const InviteUserRes = {
|
|
|
13125
13025
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
13126
13026
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
13127
13027
|
user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
|
|
13128
|
-
|
|
13028
|
+
expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
|
|
13129
13029
|
channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
|
|
13130
13030
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
13131
13031
|
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
@@ -13149,8 +13049,8 @@ export const InviteUserRes = {
|
|
|
13149
13049
|
if (message.user_joined !== false) {
|
|
13150
13050
|
obj.user_joined = message.user_joined;
|
|
13151
13051
|
}
|
|
13152
|
-
if (message.
|
|
13153
|
-
obj.
|
|
13052
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13053
|
+
obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
|
|
13154
13054
|
}
|
|
13155
13055
|
if (message.channel_desc !== undefined) {
|
|
13156
13056
|
obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
|
|
@@ -13174,7 +13074,7 @@ export const InviteUserRes = {
|
|
|
13174
13074
|
message.clan_name = object.clan_name ?? "";
|
|
13175
13075
|
message.channel_label = object.channel_label ?? "";
|
|
13176
13076
|
message.user_joined = object.user_joined ?? false;
|
|
13177
|
-
message.
|
|
13077
|
+
message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
|
|
13178
13078
|
message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
|
|
13179
13079
|
? ChannelDescription.fromPartial(object.channel_desc)
|
|
13180
13080
|
: undefined;
|
|
@@ -13264,8 +13164,8 @@ function createBaseLinkInviteUser(): LinkInviteUser {
|
|
|
13264
13164
|
creator_id: "",
|
|
13265
13165
|
channel_id: "",
|
|
13266
13166
|
invite_link: "",
|
|
13267
|
-
|
|
13268
|
-
|
|
13167
|
+
create_time_seconds: 0,
|
|
13168
|
+
expiry_time_seconds: 0,
|
|
13269
13169
|
id: "",
|
|
13270
13170
|
};
|
|
13271
13171
|
}
|
|
@@ -13284,11 +13184,11 @@ export const LinkInviteUser = {
|
|
|
13284
13184
|
if (message.invite_link !== "") {
|
|
13285
13185
|
writer.uint32(34).string(message.invite_link);
|
|
13286
13186
|
}
|
|
13287
|
-
if (message.
|
|
13288
|
-
|
|
13187
|
+
if (message.create_time_seconds !== 0) {
|
|
13188
|
+
writer.uint32(40).uint32(message.create_time_seconds);
|
|
13289
13189
|
}
|
|
13290
|
-
if (message.
|
|
13291
|
-
|
|
13190
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13191
|
+
writer.uint32(48).uint32(message.expiry_time_seconds);
|
|
13292
13192
|
}
|
|
13293
13193
|
if (message.id !== "") {
|
|
13294
13194
|
writer.uint32(58).string(message.id);
|
|
@@ -13332,18 +13232,18 @@ export const LinkInviteUser = {
|
|
|
13332
13232
|
message.invite_link = reader.string();
|
|
13333
13233
|
continue;
|
|
13334
13234
|
case 5:
|
|
13335
|
-
if (tag !==
|
|
13235
|
+
if (tag !== 40) {
|
|
13336
13236
|
break;
|
|
13337
13237
|
}
|
|
13338
13238
|
|
|
13339
|
-
message.
|
|
13239
|
+
message.create_time_seconds = reader.uint32();
|
|
13340
13240
|
continue;
|
|
13341
13241
|
case 6:
|
|
13342
|
-
if (tag !==
|
|
13242
|
+
if (tag !== 48) {
|
|
13343
13243
|
break;
|
|
13344
13244
|
}
|
|
13345
13245
|
|
|
13346
|
-
message.
|
|
13246
|
+
message.expiry_time_seconds = reader.uint32();
|
|
13347
13247
|
continue;
|
|
13348
13248
|
case 7:
|
|
13349
13249
|
if (tag !== 58) {
|
|
@@ -13367,8 +13267,8 @@ export const LinkInviteUser = {
|
|
|
13367
13267
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
13368
13268
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13369
13269
|
invite_link: isSet(object.invite_link) ? globalThis.String(object.invite_link) : "",
|
|
13370
|
-
|
|
13371
|
-
|
|
13270
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
13271
|
+
expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
|
|
13372
13272
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
13373
13273
|
};
|
|
13374
13274
|
},
|
|
@@ -13387,11 +13287,11 @@ export const LinkInviteUser = {
|
|
|
13387
13287
|
if (message.invite_link !== "") {
|
|
13388
13288
|
obj.invite_link = message.invite_link;
|
|
13389
13289
|
}
|
|
13390
|
-
if (message.
|
|
13391
|
-
obj.
|
|
13290
|
+
if (message.create_time_seconds !== 0) {
|
|
13291
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
13392
13292
|
}
|
|
13393
|
-
if (message.
|
|
13394
|
-
obj.
|
|
13293
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13294
|
+
obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
|
|
13395
13295
|
}
|
|
13396
13296
|
if (message.id !== "") {
|
|
13397
13297
|
obj.id = message.id;
|
|
@@ -13408,8 +13308,8 @@ export const LinkInviteUser = {
|
|
|
13408
13308
|
message.creator_id = object.creator_id ?? "";
|
|
13409
13309
|
message.channel_id = object.channel_id ?? "";
|
|
13410
13310
|
message.invite_link = object.invite_link ?? "";
|
|
13411
|
-
message.
|
|
13412
|
-
message.
|
|
13311
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
13312
|
+
message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
|
|
13413
13313
|
message.id = object.id ?? "";
|
|
13414
13314
|
return message;
|
|
13415
13315
|
},
|
|
@@ -14550,16 +14450,7 @@ export const ListCategoryDescsRequest = {
|
|
|
14550
14450
|
};
|
|
14551
14451
|
|
|
14552
14452
|
function createBaseChannelMessageHeader(): ChannelMessageHeader {
|
|
14553
|
-
return {
|
|
14554
|
-
id: "",
|
|
14555
|
-
timestamp_seconds: 0,
|
|
14556
|
-
sender_id: "",
|
|
14557
|
-
content: "",
|
|
14558
|
-
attachment: new Uint8Array(0),
|
|
14559
|
-
reference: new Uint8Array(0),
|
|
14560
|
-
mention: new Uint8Array(0),
|
|
14561
|
-
reaction: new Uint8Array(0),
|
|
14562
|
-
};
|
|
14453
|
+
return { id: "", timestamp_seconds: 0, sender_id: "", content: "" };
|
|
14563
14454
|
}
|
|
14564
14455
|
|
|
14565
14456
|
export const ChannelMessageHeader = {
|
|
@@ -14576,18 +14467,6 @@ export const ChannelMessageHeader = {
|
|
|
14576
14467
|
if (message.content !== "") {
|
|
14577
14468
|
writer.uint32(34).string(message.content);
|
|
14578
14469
|
}
|
|
14579
|
-
if (message.attachment.length !== 0) {
|
|
14580
|
-
writer.uint32(42).bytes(message.attachment);
|
|
14581
|
-
}
|
|
14582
|
-
if (message.reference.length !== 0) {
|
|
14583
|
-
writer.uint32(50).bytes(message.reference);
|
|
14584
|
-
}
|
|
14585
|
-
if (message.mention.length !== 0) {
|
|
14586
|
-
writer.uint32(58).bytes(message.mention);
|
|
14587
|
-
}
|
|
14588
|
-
if (message.reaction.length !== 0) {
|
|
14589
|
-
writer.uint32(66).bytes(message.reaction);
|
|
14590
|
-
}
|
|
14591
14470
|
return writer;
|
|
14592
14471
|
},
|
|
14593
14472
|
|
|
@@ -14626,34 +14505,6 @@ export const ChannelMessageHeader = {
|
|
|
14626
14505
|
|
|
14627
14506
|
message.content = reader.string();
|
|
14628
14507
|
continue;
|
|
14629
|
-
case 5:
|
|
14630
|
-
if (tag !== 42) {
|
|
14631
|
-
break;
|
|
14632
|
-
}
|
|
14633
|
-
|
|
14634
|
-
message.attachment = reader.bytes();
|
|
14635
|
-
continue;
|
|
14636
|
-
case 6:
|
|
14637
|
-
if (tag !== 50) {
|
|
14638
|
-
break;
|
|
14639
|
-
}
|
|
14640
|
-
|
|
14641
|
-
message.reference = reader.bytes();
|
|
14642
|
-
continue;
|
|
14643
|
-
case 7:
|
|
14644
|
-
if (tag !== 58) {
|
|
14645
|
-
break;
|
|
14646
|
-
}
|
|
14647
|
-
|
|
14648
|
-
message.mention = reader.bytes();
|
|
14649
|
-
continue;
|
|
14650
|
-
case 8:
|
|
14651
|
-
if (tag !== 66) {
|
|
14652
|
-
break;
|
|
14653
|
-
}
|
|
14654
|
-
|
|
14655
|
-
message.reaction = reader.bytes();
|
|
14656
|
-
continue;
|
|
14657
14508
|
}
|
|
14658
14509
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14659
14510
|
break;
|
|
@@ -14669,10 +14520,6 @@ export const ChannelMessageHeader = {
|
|
|
14669
14520
|
timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
14670
14521
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
14671
14522
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
14672
|
-
attachment: isSet(object.attachment) ? bytesFromBase64(object.attachment) : new Uint8Array(0),
|
|
14673
|
-
reference: isSet(object.reference) ? bytesFromBase64(object.reference) : new Uint8Array(0),
|
|
14674
|
-
mention: isSet(object.mention) ? bytesFromBase64(object.mention) : new Uint8Array(0),
|
|
14675
|
-
reaction: isSet(object.reaction) ? bytesFromBase64(object.reaction) : new Uint8Array(0),
|
|
14676
14523
|
};
|
|
14677
14524
|
},
|
|
14678
14525
|
|
|
@@ -14690,18 +14537,6 @@ export const ChannelMessageHeader = {
|
|
|
14690
14537
|
if (message.content !== "") {
|
|
14691
14538
|
obj.content = message.content;
|
|
14692
14539
|
}
|
|
14693
|
-
if (message.attachment.length !== 0) {
|
|
14694
|
-
obj.attachment = base64FromBytes(message.attachment);
|
|
14695
|
-
}
|
|
14696
|
-
if (message.reference.length !== 0) {
|
|
14697
|
-
obj.reference = base64FromBytes(message.reference);
|
|
14698
|
-
}
|
|
14699
|
-
if (message.mention.length !== 0) {
|
|
14700
|
-
obj.mention = base64FromBytes(message.mention);
|
|
14701
|
-
}
|
|
14702
|
-
if (message.reaction.length !== 0) {
|
|
14703
|
-
obj.reaction = base64FromBytes(message.reaction);
|
|
14704
|
-
}
|
|
14705
14540
|
return obj;
|
|
14706
14541
|
},
|
|
14707
14542
|
|
|
@@ -14714,10 +14549,6 @@ export const ChannelMessageHeader = {
|
|
|
14714
14549
|
message.timestamp_seconds = object.timestamp_seconds ?? 0;
|
|
14715
14550
|
message.sender_id = object.sender_id ?? "";
|
|
14716
14551
|
message.content = object.content ?? "";
|
|
14717
|
-
message.attachment = object.attachment ?? new Uint8Array(0);
|
|
14718
|
-
message.reference = object.reference ?? new Uint8Array(0);
|
|
14719
|
-
message.mention = object.mention ?? new Uint8Array(0);
|
|
14720
|
-
message.reaction = object.reaction ?? new Uint8Array(0);
|
|
14721
14552
|
return message;
|
|
14722
14553
|
},
|
|
14723
14554
|
};
|
|
@@ -17398,10 +17229,10 @@ function createBaseEventManagement(): EventManagement {
|
|
|
17398
17229
|
clan_id: "",
|
|
17399
17230
|
channel_voice_id: "",
|
|
17400
17231
|
address: "",
|
|
17401
|
-
|
|
17402
|
-
|
|
17232
|
+
start_time_seconds: 0,
|
|
17233
|
+
end_time_seconds: 0,
|
|
17403
17234
|
user_ids: [],
|
|
17404
|
-
|
|
17235
|
+
create_time_seconds: 0,
|
|
17405
17236
|
max_permission: 0,
|
|
17406
17237
|
channel_id: "",
|
|
17407
17238
|
event_status: 0,
|
|
@@ -17443,17 +17274,17 @@ export const EventManagement = {
|
|
|
17443
17274
|
if (message.address !== "") {
|
|
17444
17275
|
writer.uint32(82).string(message.address);
|
|
17445
17276
|
}
|
|
17446
|
-
if (message.
|
|
17447
|
-
|
|
17277
|
+
if (message.start_time_seconds !== 0) {
|
|
17278
|
+
writer.uint32(88).uint32(message.start_time_seconds);
|
|
17448
17279
|
}
|
|
17449
|
-
if (message.
|
|
17450
|
-
|
|
17280
|
+
if (message.end_time_seconds !== 0) {
|
|
17281
|
+
writer.uint32(96).uint32(message.end_time_seconds);
|
|
17451
17282
|
}
|
|
17452
17283
|
for (const v of message.user_ids) {
|
|
17453
17284
|
writer.uint32(106).string(v!);
|
|
17454
17285
|
}
|
|
17455
|
-
if (message.
|
|
17456
|
-
|
|
17286
|
+
if (message.create_time_seconds !== 0) {
|
|
17287
|
+
writer.uint32(112).uint32(message.create_time_seconds);
|
|
17457
17288
|
}
|
|
17458
17289
|
if (message.max_permission !== 0) {
|
|
17459
17290
|
writer.uint32(120).int32(message.max_permission);
|
|
@@ -17554,18 +17385,18 @@ export const EventManagement = {
|
|
|
17554
17385
|
message.address = reader.string();
|
|
17555
17386
|
continue;
|
|
17556
17387
|
case 11:
|
|
17557
|
-
if (tag !==
|
|
17388
|
+
if (tag !== 88) {
|
|
17558
17389
|
break;
|
|
17559
17390
|
}
|
|
17560
17391
|
|
|
17561
|
-
message.
|
|
17392
|
+
message.start_time_seconds = reader.uint32();
|
|
17562
17393
|
continue;
|
|
17563
17394
|
case 12:
|
|
17564
|
-
if (tag !==
|
|
17395
|
+
if (tag !== 96) {
|
|
17565
17396
|
break;
|
|
17566
17397
|
}
|
|
17567
17398
|
|
|
17568
|
-
message.
|
|
17399
|
+
message.end_time_seconds = reader.uint32();
|
|
17569
17400
|
continue;
|
|
17570
17401
|
case 13:
|
|
17571
17402
|
if (tag !== 106) {
|
|
@@ -17575,11 +17406,11 @@ export const EventManagement = {
|
|
|
17575
17406
|
message.user_ids.push(reader.string());
|
|
17576
17407
|
continue;
|
|
17577
17408
|
case 14:
|
|
17578
|
-
if (tag !==
|
|
17409
|
+
if (tag !== 112) {
|
|
17579
17410
|
break;
|
|
17580
17411
|
}
|
|
17581
17412
|
|
|
17582
|
-
message.
|
|
17413
|
+
message.create_time_seconds = reader.uint32();
|
|
17583
17414
|
continue;
|
|
17584
17415
|
case 15:
|
|
17585
17416
|
if (tag !== 120) {
|
|
@@ -17644,10 +17475,10 @@ export const EventManagement = {
|
|
|
17644
17475
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17645
17476
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
17646
17477
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
17647
|
-
|
|
17648
|
-
|
|
17478
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
17479
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
17649
17480
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
17650
|
-
|
|
17481
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
17651
17482
|
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
17652
17483
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17653
17484
|
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
@@ -17689,17 +17520,17 @@ export const EventManagement = {
|
|
|
17689
17520
|
if (message.address !== "") {
|
|
17690
17521
|
obj.address = message.address;
|
|
17691
17522
|
}
|
|
17692
|
-
if (message.
|
|
17693
|
-
obj.
|
|
17523
|
+
if (message.start_time_seconds !== 0) {
|
|
17524
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
17694
17525
|
}
|
|
17695
|
-
if (message.
|
|
17696
|
-
obj.
|
|
17526
|
+
if (message.end_time_seconds !== 0) {
|
|
17527
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
17697
17528
|
}
|
|
17698
17529
|
if (message.user_ids?.length) {
|
|
17699
17530
|
obj.user_ids = message.user_ids;
|
|
17700
17531
|
}
|
|
17701
|
-
if (message.
|
|
17702
|
-
obj.
|
|
17532
|
+
if (message.create_time_seconds !== 0) {
|
|
17533
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
17703
17534
|
}
|
|
17704
17535
|
if (message.max_permission !== 0) {
|
|
17705
17536
|
obj.max_permission = Math.round(message.max_permission);
|
|
@@ -17737,10 +17568,10 @@ export const EventManagement = {
|
|
|
17737
17568
|
message.clan_id = object.clan_id ?? "";
|
|
17738
17569
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
17739
17570
|
message.address = object.address ?? "";
|
|
17740
|
-
message.
|
|
17741
|
-
message.
|
|
17571
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
17572
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
17742
17573
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
17743
|
-
message.
|
|
17574
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
17744
17575
|
message.max_permission = object.max_permission ?? 0;
|
|
17745
17576
|
message.channel_id = object.channel_id ?? "";
|
|
17746
17577
|
message.event_status = object.event_status ?? 0;
|
|
@@ -18091,7 +17922,6 @@ function createBasePinMessage(): PinMessage {
|
|
|
18091
17922
|
content: "",
|
|
18092
17923
|
username: "",
|
|
18093
17924
|
avatar: "",
|
|
18094
|
-
create_time: undefined,
|
|
18095
17925
|
create_time_seconds: 0,
|
|
18096
17926
|
attachment: "",
|
|
18097
17927
|
};
|
|
@@ -18120,14 +17950,11 @@ export const PinMessage = {
|
|
|
18120
17950
|
if (message.avatar !== "") {
|
|
18121
17951
|
writer.uint32(58).string(message.avatar);
|
|
18122
17952
|
}
|
|
18123
|
-
if (message.create_time !== undefined) {
|
|
18124
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
|
|
18125
|
-
}
|
|
18126
17953
|
if (message.create_time_seconds !== 0) {
|
|
18127
|
-
writer.uint32(
|
|
17954
|
+
writer.uint32(64).uint32(message.create_time_seconds);
|
|
18128
17955
|
}
|
|
18129
17956
|
if (message.attachment !== "") {
|
|
18130
|
-
writer.uint32(
|
|
17957
|
+
writer.uint32(74).string(message.attachment);
|
|
18131
17958
|
}
|
|
18132
17959
|
return writer;
|
|
18133
17960
|
},
|
|
@@ -18189,21 +18016,14 @@ export const PinMessage = {
|
|
|
18189
18016
|
message.avatar = reader.string();
|
|
18190
18017
|
continue;
|
|
18191
18018
|
case 8:
|
|
18192
|
-
if (tag !==
|
|
18193
|
-
break;
|
|
18194
|
-
}
|
|
18195
|
-
|
|
18196
|
-
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18197
|
-
continue;
|
|
18198
|
-
case 9:
|
|
18199
|
-
if (tag !== 72) {
|
|
18019
|
+
if (tag !== 64) {
|
|
18200
18020
|
break;
|
|
18201
18021
|
}
|
|
18202
18022
|
|
|
18203
18023
|
message.create_time_seconds = reader.uint32();
|
|
18204
18024
|
continue;
|
|
18205
|
-
case
|
|
18206
|
-
if (tag !==
|
|
18025
|
+
case 9:
|
|
18026
|
+
if (tag !== 74) {
|
|
18207
18027
|
break;
|
|
18208
18028
|
}
|
|
18209
18029
|
|
|
@@ -18227,7 +18047,6 @@ export const PinMessage = {
|
|
|
18227
18047
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
18228
18048
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
18229
18049
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
18230
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
18231
18050
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
18232
18051
|
attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
|
|
18233
18052
|
};
|
|
@@ -18256,9 +18075,6 @@ export const PinMessage = {
|
|
|
18256
18075
|
if (message.avatar !== "") {
|
|
18257
18076
|
obj.avatar = message.avatar;
|
|
18258
18077
|
}
|
|
18259
|
-
if (message.create_time !== undefined) {
|
|
18260
|
-
obj.create_time = message.create_time.toISOString();
|
|
18261
|
-
}
|
|
18262
18078
|
if (message.create_time_seconds !== 0) {
|
|
18263
18079
|
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
18264
18080
|
}
|
|
@@ -18280,7 +18096,6 @@ export const PinMessage = {
|
|
|
18280
18096
|
message.content = object.content ?? "";
|
|
18281
18097
|
message.username = object.username ?? "";
|
|
18282
18098
|
message.avatar = object.avatar ?? "";
|
|
18283
|
-
message.create_time = object.create_time ?? undefined;
|
|
18284
18099
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
18285
18100
|
message.attachment = object.attachment ?? "";
|
|
18286
18101
|
return message;
|
|
@@ -18349,7 +18164,7 @@ export const PinMessagesList = {
|
|
|
18349
18164
|
};
|
|
18350
18165
|
|
|
18351
18166
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
18352
|
-
return { id: "", notification_setting_type: 0,
|
|
18167
|
+
return { id: "", notification_setting_type: 0, time_mute_seconds: 0, active: 0, channel_id: "" };
|
|
18353
18168
|
}
|
|
18354
18169
|
|
|
18355
18170
|
export const NotificationUserChannel = {
|
|
@@ -18360,8 +18175,8 @@ export const NotificationUserChannel = {
|
|
|
18360
18175
|
if (message.notification_setting_type !== 0) {
|
|
18361
18176
|
writer.uint32(16).int32(message.notification_setting_type);
|
|
18362
18177
|
}
|
|
18363
|
-
if (message.
|
|
18364
|
-
|
|
18178
|
+
if (message.time_mute_seconds !== 0) {
|
|
18179
|
+
writer.uint32(24).uint32(message.time_mute_seconds);
|
|
18365
18180
|
}
|
|
18366
18181
|
if (message.active !== 0) {
|
|
18367
18182
|
writer.uint32(32).int32(message.active);
|
|
@@ -18394,11 +18209,11 @@ export const NotificationUserChannel = {
|
|
|
18394
18209
|
message.notification_setting_type = reader.int32();
|
|
18395
18210
|
continue;
|
|
18396
18211
|
case 3:
|
|
18397
|
-
if (tag !==
|
|
18212
|
+
if (tag !== 24) {
|
|
18398
18213
|
break;
|
|
18399
18214
|
}
|
|
18400
18215
|
|
|
18401
|
-
message.
|
|
18216
|
+
message.time_mute_seconds = reader.uint32();
|
|
18402
18217
|
continue;
|
|
18403
18218
|
case 4:
|
|
18404
18219
|
if (tag !== 32) {
|
|
@@ -18429,7 +18244,7 @@ export const NotificationUserChannel = {
|
|
|
18429
18244
|
notification_setting_type: isSet(object.notification_setting_type)
|
|
18430
18245
|
? globalThis.Number(object.notification_setting_type)
|
|
18431
18246
|
: 0,
|
|
18432
|
-
|
|
18247
|
+
time_mute_seconds: isSet(object.time_mute_seconds) ? globalThis.Number(object.time_mute_seconds) : 0,
|
|
18433
18248
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
18434
18249
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
18435
18250
|
};
|
|
@@ -18443,8 +18258,8 @@ export const NotificationUserChannel = {
|
|
|
18443
18258
|
if (message.notification_setting_type !== 0) {
|
|
18444
18259
|
obj.notification_setting_type = Math.round(message.notification_setting_type);
|
|
18445
18260
|
}
|
|
18446
|
-
if (message.
|
|
18447
|
-
obj.
|
|
18261
|
+
if (message.time_mute_seconds !== 0) {
|
|
18262
|
+
obj.time_mute_seconds = Math.round(message.time_mute_seconds);
|
|
18448
18263
|
}
|
|
18449
18264
|
if (message.active !== 0) {
|
|
18450
18265
|
obj.active = Math.round(message.active);
|
|
@@ -18462,7 +18277,7 @@ export const NotificationUserChannel = {
|
|
|
18462
18277
|
const message = createBaseNotificationUserChannel();
|
|
18463
18278
|
message.id = object.id ?? "";
|
|
18464
18279
|
message.notification_setting_type = object.notification_setting_type ?? 0;
|
|
18465
|
-
message.
|
|
18280
|
+
message.time_mute_seconds = object.time_mute_seconds ?? 0;
|
|
18466
18281
|
message.active = object.active ?? 0;
|
|
18467
18282
|
message.channel_id = object.channel_id ?? "";
|
|
18468
18283
|
return message;
|
|
@@ -20752,8 +20567,8 @@ function createBaseCreateEventRequest(): CreateEventRequest {
|
|
|
20752
20567
|
clan_id: "",
|
|
20753
20568
|
channel_voice_id: "",
|
|
20754
20569
|
address: "",
|
|
20755
|
-
|
|
20756
|
-
|
|
20570
|
+
start_time_seconds: 0,
|
|
20571
|
+
end_time_seconds: 0,
|
|
20757
20572
|
event_id: "",
|
|
20758
20573
|
event_status: 0,
|
|
20759
20574
|
channel_id: "",
|
|
@@ -20786,11 +20601,11 @@ export const CreateEventRequest = {
|
|
|
20786
20601
|
if (message.address !== "") {
|
|
20787
20602
|
writer.uint32(50).string(message.address);
|
|
20788
20603
|
}
|
|
20789
|
-
if (message.
|
|
20790
|
-
|
|
20604
|
+
if (message.start_time_seconds !== 0) {
|
|
20605
|
+
writer.uint32(56).uint32(message.start_time_seconds);
|
|
20791
20606
|
}
|
|
20792
|
-
if (message.
|
|
20793
|
-
|
|
20607
|
+
if (message.end_time_seconds !== 0) {
|
|
20608
|
+
writer.uint32(64).uint32(message.end_time_seconds);
|
|
20794
20609
|
}
|
|
20795
20610
|
if (message.event_id !== "") {
|
|
20796
20611
|
writer.uint32(74).string(message.event_id);
|
|
@@ -20872,18 +20687,18 @@ export const CreateEventRequest = {
|
|
|
20872
20687
|
message.address = reader.string();
|
|
20873
20688
|
continue;
|
|
20874
20689
|
case 7:
|
|
20875
|
-
if (tag !==
|
|
20690
|
+
if (tag !== 56) {
|
|
20876
20691
|
break;
|
|
20877
20692
|
}
|
|
20878
20693
|
|
|
20879
|
-
message.
|
|
20694
|
+
message.start_time_seconds = reader.uint32();
|
|
20880
20695
|
continue;
|
|
20881
20696
|
case 8:
|
|
20882
|
-
if (tag !==
|
|
20697
|
+
if (tag !== 64) {
|
|
20883
20698
|
break;
|
|
20884
20699
|
}
|
|
20885
20700
|
|
|
20886
|
-
message.
|
|
20701
|
+
message.end_time_seconds = reader.uint32();
|
|
20887
20702
|
continue;
|
|
20888
20703
|
case 9:
|
|
20889
20704
|
if (tag !== 74) {
|
|
@@ -20965,8 +20780,8 @@ export const CreateEventRequest = {
|
|
|
20965
20780
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
20966
20781
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
20967
20782
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
20968
|
-
|
|
20969
|
-
|
|
20783
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
20784
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
20970
20785
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
20971
20786
|
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
20972
20787
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
@@ -20999,11 +20814,11 @@ export const CreateEventRequest = {
|
|
|
20999
20814
|
if (message.address !== "") {
|
|
21000
20815
|
obj.address = message.address;
|
|
21001
20816
|
}
|
|
21002
|
-
if (message.
|
|
21003
|
-
obj.
|
|
20817
|
+
if (message.start_time_seconds !== 0) {
|
|
20818
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
21004
20819
|
}
|
|
21005
|
-
if (message.
|
|
21006
|
-
obj.
|
|
20820
|
+
if (message.end_time_seconds !== 0) {
|
|
20821
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
21007
20822
|
}
|
|
21008
20823
|
if (message.event_id !== "") {
|
|
21009
20824
|
obj.event_id = message.event_id;
|
|
@@ -21046,8 +20861,8 @@ export const CreateEventRequest = {
|
|
|
21046
20861
|
message.clan_id = object.clan_id ?? "";
|
|
21047
20862
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
21048
20863
|
message.address = object.address ?? "";
|
|
21049
|
-
message.
|
|
21050
|
-
message.
|
|
20864
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
20865
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
21051
20866
|
message.event_id = object.event_id ?? "";
|
|
21052
20867
|
message.event_status = object.event_status ?? 0;
|
|
21053
20868
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -21071,8 +20886,8 @@ function createBaseUpdateEventRequest(): UpdateEventRequest {
|
|
|
21071
20886
|
event_id: "",
|
|
21072
20887
|
channel_id: "",
|
|
21073
20888
|
address: "",
|
|
21074
|
-
|
|
21075
|
-
|
|
20889
|
+
start_time_seconds: 0,
|
|
20890
|
+
end_time_seconds: 0,
|
|
21076
20891
|
clan_id: "",
|
|
21077
20892
|
creator_id: "",
|
|
21078
20893
|
channel_voice_id: "",
|
|
@@ -21101,11 +20916,11 @@ export const UpdateEventRequest = {
|
|
|
21101
20916
|
if (message.address !== "") {
|
|
21102
20917
|
writer.uint32(50).string(message.address);
|
|
21103
20918
|
}
|
|
21104
|
-
if (message.
|
|
21105
|
-
|
|
20919
|
+
if (message.start_time_seconds !== 0) {
|
|
20920
|
+
writer.uint32(56).uint32(message.start_time_seconds);
|
|
21106
20921
|
}
|
|
21107
|
-
if (message.
|
|
21108
|
-
|
|
20922
|
+
if (message.end_time_seconds !== 0) {
|
|
20923
|
+
writer.uint32(64).uint32(message.end_time_seconds);
|
|
21109
20924
|
}
|
|
21110
20925
|
if (message.clan_id !== "") {
|
|
21111
20926
|
writer.uint32(74).string(message.clan_id);
|
|
@@ -21175,18 +20990,18 @@ export const UpdateEventRequest = {
|
|
|
21175
20990
|
message.address = reader.string();
|
|
21176
20991
|
continue;
|
|
21177
20992
|
case 7:
|
|
21178
|
-
if (tag !==
|
|
20993
|
+
if (tag !== 56) {
|
|
21179
20994
|
break;
|
|
21180
20995
|
}
|
|
21181
20996
|
|
|
21182
|
-
message.
|
|
20997
|
+
message.start_time_seconds = reader.uint32();
|
|
21183
20998
|
continue;
|
|
21184
20999
|
case 8:
|
|
21185
|
-
if (tag !==
|
|
21000
|
+
if (tag !== 64) {
|
|
21186
21001
|
break;
|
|
21187
21002
|
}
|
|
21188
21003
|
|
|
21189
|
-
message.
|
|
21004
|
+
message.end_time_seconds = reader.uint32();
|
|
21190
21005
|
continue;
|
|
21191
21006
|
case 9:
|
|
21192
21007
|
if (tag !== 74) {
|
|
@@ -21240,8 +21055,8 @@ export const UpdateEventRequest = {
|
|
|
21240
21055
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
21241
21056
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
21242
21057
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
21243
|
-
|
|
21244
|
-
|
|
21058
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
21059
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
21245
21060
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
21246
21061
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
21247
21062
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
@@ -21270,11 +21085,11 @@ export const UpdateEventRequest = {
|
|
|
21270
21085
|
if (message.address !== "") {
|
|
21271
21086
|
obj.address = message.address;
|
|
21272
21087
|
}
|
|
21273
|
-
if (message.
|
|
21274
|
-
obj.
|
|
21088
|
+
if (message.start_time_seconds !== 0) {
|
|
21089
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
21275
21090
|
}
|
|
21276
|
-
if (message.
|
|
21277
|
-
obj.
|
|
21091
|
+
if (message.end_time_seconds !== 0) {
|
|
21092
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
21278
21093
|
}
|
|
21279
21094
|
if (message.clan_id !== "") {
|
|
21280
21095
|
obj.clan_id = message.clan_id;
|
|
@@ -21305,8 +21120,8 @@ export const UpdateEventRequest = {
|
|
|
21305
21120
|
message.event_id = object.event_id ?? "";
|
|
21306
21121
|
message.channel_id = object.channel_id ?? "";
|
|
21307
21122
|
message.address = object.address ?? "";
|
|
21308
|
-
message.
|
|
21309
|
-
message.
|
|
21123
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
21124
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
21310
21125
|
message.clan_id = object.clan_id ?? "";
|
|
21311
21126
|
message.creator_id = object.creator_id ?? "";
|
|
21312
21127
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
@@ -23542,7 +23357,7 @@ function createBaseClanSticker(): ClanSticker {
|
|
|
23542
23357
|
shortname: "",
|
|
23543
23358
|
category: "",
|
|
23544
23359
|
creator_id: "",
|
|
23545
|
-
|
|
23360
|
+
create_time_seconds: 0,
|
|
23546
23361
|
clan_id: "",
|
|
23547
23362
|
logo: "",
|
|
23548
23363
|
clan_name: "",
|
|
@@ -23568,8 +23383,8 @@ export const ClanSticker = {
|
|
|
23568
23383
|
if (message.creator_id !== "") {
|
|
23569
23384
|
writer.uint32(42).string(message.creator_id);
|
|
23570
23385
|
}
|
|
23571
|
-
if (message.
|
|
23572
|
-
|
|
23386
|
+
if (message.create_time_seconds !== 0) {
|
|
23387
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
23573
23388
|
}
|
|
23574
23389
|
if (message.clan_id !== "") {
|
|
23575
23390
|
writer.uint32(58).string(message.clan_id);
|
|
@@ -23632,11 +23447,11 @@ export const ClanSticker = {
|
|
|
23632
23447
|
message.creator_id = reader.string();
|
|
23633
23448
|
continue;
|
|
23634
23449
|
case 6:
|
|
23635
|
-
if (tag !==
|
|
23450
|
+
if (tag !== 48) {
|
|
23636
23451
|
break;
|
|
23637
23452
|
}
|
|
23638
23453
|
|
|
23639
|
-
message.
|
|
23454
|
+
message.create_time_seconds = reader.uint32();
|
|
23640
23455
|
continue;
|
|
23641
23456
|
case 7:
|
|
23642
23457
|
if (tag !== 58) {
|
|
@@ -23689,7 +23504,7 @@ export const ClanSticker = {
|
|
|
23689
23504
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
23690
23505
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
23691
23506
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
23692
|
-
|
|
23507
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
23693
23508
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
23694
23509
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
23695
23510
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
@@ -23715,8 +23530,8 @@ export const ClanSticker = {
|
|
|
23715
23530
|
if (message.creator_id !== "") {
|
|
23716
23531
|
obj.creator_id = message.creator_id;
|
|
23717
23532
|
}
|
|
23718
|
-
if (message.
|
|
23719
|
-
obj.
|
|
23533
|
+
if (message.create_time_seconds !== 0) {
|
|
23534
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
23720
23535
|
}
|
|
23721
23536
|
if (message.clan_id !== "") {
|
|
23722
23537
|
obj.clan_id = message.clan_id;
|
|
@@ -23746,7 +23561,7 @@ export const ClanSticker = {
|
|
|
23746
23561
|
message.shortname = object.shortname ?? "";
|
|
23747
23562
|
message.category = object.category ?? "";
|
|
23748
23563
|
message.creator_id = object.creator_id ?? "";
|
|
23749
|
-
message.
|
|
23564
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
23750
23565
|
message.clan_id = object.clan_id ?? "";
|
|
23751
23566
|
message.logo = object.logo ?? "";
|
|
23752
23567
|
message.clan_name = object.clan_name ?? "";
|
|
@@ -25925,8 +25740,8 @@ function createBaseApp(): App {
|
|
|
25925
25740
|
creator_id: "",
|
|
25926
25741
|
applogo: "",
|
|
25927
25742
|
is_shadow: false,
|
|
25928
|
-
|
|
25929
|
-
|
|
25743
|
+
disable_time_seconds: 0,
|
|
25744
|
+
create_time_seconds: 0,
|
|
25930
25745
|
token: "",
|
|
25931
25746
|
role: 0,
|
|
25932
25747
|
about: "",
|
|
@@ -25951,11 +25766,11 @@ export const App = {
|
|
|
25951
25766
|
if (message.is_shadow !== false) {
|
|
25952
25767
|
writer.uint32(40).bool(message.is_shadow);
|
|
25953
25768
|
}
|
|
25954
|
-
if (message.
|
|
25955
|
-
|
|
25769
|
+
if (message.disable_time_seconds !== 0) {
|
|
25770
|
+
writer.uint32(48).uint32(message.disable_time_seconds);
|
|
25956
25771
|
}
|
|
25957
|
-
if (message.
|
|
25958
|
-
|
|
25772
|
+
if (message.create_time_seconds !== 0) {
|
|
25773
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
25959
25774
|
}
|
|
25960
25775
|
if (message.token !== "") {
|
|
25961
25776
|
writer.uint32(66).string(message.token);
|
|
@@ -26015,18 +25830,18 @@ export const App = {
|
|
|
26015
25830
|
message.is_shadow = reader.bool();
|
|
26016
25831
|
continue;
|
|
26017
25832
|
case 6:
|
|
26018
|
-
if (tag !==
|
|
25833
|
+
if (tag !== 48) {
|
|
26019
25834
|
break;
|
|
26020
25835
|
}
|
|
26021
25836
|
|
|
26022
|
-
message.
|
|
25837
|
+
message.disable_time_seconds = reader.uint32();
|
|
26023
25838
|
continue;
|
|
26024
25839
|
case 7:
|
|
26025
|
-
if (tag !==
|
|
25840
|
+
if (tag !== 56) {
|
|
26026
25841
|
break;
|
|
26027
25842
|
}
|
|
26028
25843
|
|
|
26029
|
-
message.
|
|
25844
|
+
message.create_time_seconds = reader.uint32();
|
|
26030
25845
|
continue;
|
|
26031
25846
|
case 8:
|
|
26032
25847
|
if (tag !== 66) {
|
|
@@ -26072,8 +25887,8 @@ export const App = {
|
|
|
26072
25887
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
26073
25888
|
applogo: isSet(object.applogo) ? globalThis.String(object.applogo) : "",
|
|
26074
25889
|
is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
|
|
26075
|
-
|
|
26076
|
-
|
|
25890
|
+
disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
|
|
25891
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
26077
25892
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
26078
25893
|
role: isSet(object.role) ? globalThis.Number(object.role) : 0,
|
|
26079
25894
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
@@ -26098,11 +25913,11 @@ export const App = {
|
|
|
26098
25913
|
if (message.is_shadow !== false) {
|
|
26099
25914
|
obj.is_shadow = message.is_shadow;
|
|
26100
25915
|
}
|
|
26101
|
-
if (message.
|
|
26102
|
-
obj.
|
|
25916
|
+
if (message.disable_time_seconds !== 0) {
|
|
25917
|
+
obj.disable_time_seconds = Math.round(message.disable_time_seconds);
|
|
26103
25918
|
}
|
|
26104
|
-
if (message.
|
|
26105
|
-
obj.
|
|
25919
|
+
if (message.create_time_seconds !== 0) {
|
|
25920
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
26106
25921
|
}
|
|
26107
25922
|
if (message.token !== "") {
|
|
26108
25923
|
obj.token = message.token;
|
|
@@ -26129,8 +25944,8 @@ export const App = {
|
|
|
26129
25944
|
message.creator_id = object.creator_id ?? "";
|
|
26130
25945
|
message.applogo = object.applogo ?? "";
|
|
26131
25946
|
message.is_shadow = object.is_shadow ?? false;
|
|
26132
|
-
message.
|
|
26133
|
-
message.
|
|
25947
|
+
message.disable_time_seconds = object.disable_time_seconds ?? 0;
|
|
25948
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
26134
25949
|
message.token = object.token ?? "";
|
|
26135
25950
|
message.role = object.role ?? 0;
|
|
26136
25951
|
message.about = object.about ?? "";
|
|
@@ -26860,13 +26675,13 @@ export const AppClan = {
|
|
|
26860
26675
|
};
|
|
26861
26676
|
|
|
26862
26677
|
function createBaseDeleteChannelMessagesRequest(): DeleteChannelMessagesRequest {
|
|
26863
|
-
return {
|
|
26678
|
+
return { before_seconds: 0, ids: [] };
|
|
26864
26679
|
}
|
|
26865
26680
|
|
|
26866
26681
|
export const DeleteChannelMessagesRequest = {
|
|
26867
26682
|
encode(message: DeleteChannelMessagesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26868
|
-
if (message.
|
|
26869
|
-
|
|
26683
|
+
if (message.before_seconds !== 0) {
|
|
26684
|
+
writer.uint32(8).uint32(message.before_seconds);
|
|
26870
26685
|
}
|
|
26871
26686
|
for (const v of message.ids) {
|
|
26872
26687
|
writer.uint32(18).string(v!);
|
|
@@ -26882,11 +26697,11 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26882
26697
|
const tag = reader.uint32();
|
|
26883
26698
|
switch (tag >>> 3) {
|
|
26884
26699
|
case 1:
|
|
26885
|
-
if (tag !==
|
|
26700
|
+
if (tag !== 8) {
|
|
26886
26701
|
break;
|
|
26887
26702
|
}
|
|
26888
26703
|
|
|
26889
|
-
message.
|
|
26704
|
+
message.before_seconds = reader.uint32();
|
|
26890
26705
|
continue;
|
|
26891
26706
|
case 2:
|
|
26892
26707
|
if (tag !== 18) {
|
|
@@ -26906,15 +26721,15 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26906
26721
|
|
|
26907
26722
|
fromJSON(object: any): DeleteChannelMessagesRequest {
|
|
26908
26723
|
return {
|
|
26909
|
-
|
|
26724
|
+
before_seconds: isSet(object.before_seconds) ? globalThis.Number(object.before_seconds) : 0,
|
|
26910
26725
|
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
26911
26726
|
};
|
|
26912
26727
|
},
|
|
26913
26728
|
|
|
26914
26729
|
toJSON(message: DeleteChannelMessagesRequest): unknown {
|
|
26915
26730
|
const obj: any = {};
|
|
26916
|
-
if (message.
|
|
26917
|
-
obj.
|
|
26731
|
+
if (message.before_seconds !== 0) {
|
|
26732
|
+
obj.before_seconds = Math.round(message.before_seconds);
|
|
26918
26733
|
}
|
|
26919
26734
|
if (message.ids?.length) {
|
|
26920
26735
|
obj.ids = message.ids;
|
|
@@ -26927,7 +26742,7 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26927
26742
|
},
|
|
26928
26743
|
fromPartial<I extends Exact<DeepPartial<DeleteChannelMessagesRequest>, I>>(object: I): DeleteChannelMessagesRequest {
|
|
26929
26744
|
const message = createBaseDeleteChannelMessagesRequest();
|
|
26930
|
-
message.
|
|
26745
|
+
message.before_seconds = object.before_seconds ?? 0;
|
|
26931
26746
|
message.ids = object.ids?.map((e) => e) || [];
|
|
26932
26747
|
return message;
|
|
26933
26748
|
},
|
|
@@ -30323,8 +30138,8 @@ function createBaseChannelCanvasItem(): ChannelCanvasItem {
|
|
|
30323
30138
|
is_default: false,
|
|
30324
30139
|
content: "",
|
|
30325
30140
|
creator_id: "",
|
|
30326
|
-
|
|
30327
|
-
|
|
30141
|
+
update_time_seconds: 0,
|
|
30142
|
+
create_time_seconds: 0,
|
|
30328
30143
|
};
|
|
30329
30144
|
}
|
|
30330
30145
|
|
|
@@ -30345,11 +30160,11 @@ export const ChannelCanvasItem = {
|
|
|
30345
30160
|
if (message.creator_id !== "") {
|
|
30346
30161
|
writer.uint32(42).string(message.creator_id);
|
|
30347
30162
|
}
|
|
30348
|
-
if (message.
|
|
30349
|
-
|
|
30163
|
+
if (message.update_time_seconds !== 0) {
|
|
30164
|
+
writer.uint32(48).uint32(message.update_time_seconds);
|
|
30350
30165
|
}
|
|
30351
|
-
if (message.
|
|
30352
|
-
|
|
30166
|
+
if (message.create_time_seconds !== 0) {
|
|
30167
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
30353
30168
|
}
|
|
30354
30169
|
return writer;
|
|
30355
30170
|
},
|
|
@@ -30397,18 +30212,18 @@ export const ChannelCanvasItem = {
|
|
|
30397
30212
|
message.creator_id = reader.string();
|
|
30398
30213
|
continue;
|
|
30399
30214
|
case 6:
|
|
30400
|
-
if (tag !==
|
|
30215
|
+
if (tag !== 48) {
|
|
30401
30216
|
break;
|
|
30402
30217
|
}
|
|
30403
30218
|
|
|
30404
|
-
message.
|
|
30219
|
+
message.update_time_seconds = reader.uint32();
|
|
30405
30220
|
continue;
|
|
30406
30221
|
case 7:
|
|
30407
|
-
if (tag !==
|
|
30222
|
+
if (tag !== 56) {
|
|
30408
30223
|
break;
|
|
30409
30224
|
}
|
|
30410
30225
|
|
|
30411
|
-
message.
|
|
30226
|
+
message.create_time_seconds = reader.uint32();
|
|
30412
30227
|
continue;
|
|
30413
30228
|
}
|
|
30414
30229
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30426,8 +30241,8 @@ export const ChannelCanvasItem = {
|
|
|
30426
30241
|
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
30427
30242
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
30428
30243
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
30429
|
-
|
|
30430
|
-
|
|
30244
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
30245
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
30431
30246
|
};
|
|
30432
30247
|
},
|
|
30433
30248
|
|
|
@@ -30448,11 +30263,11 @@ export const ChannelCanvasItem = {
|
|
|
30448
30263
|
if (message.creator_id !== "") {
|
|
30449
30264
|
obj.creator_id = message.creator_id;
|
|
30450
30265
|
}
|
|
30451
|
-
if (message.
|
|
30452
|
-
obj.
|
|
30266
|
+
if (message.update_time_seconds !== 0) {
|
|
30267
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
30453
30268
|
}
|
|
30454
|
-
if (message.
|
|
30455
|
-
obj.
|
|
30269
|
+
if (message.create_time_seconds !== 0) {
|
|
30270
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
30456
30271
|
}
|
|
30457
30272
|
return obj;
|
|
30458
30273
|
},
|
|
@@ -30467,8 +30282,8 @@ export const ChannelCanvasItem = {
|
|
|
30467
30282
|
message.is_default = object.is_default ?? false;
|
|
30468
30283
|
message.content = object.content ?? "";
|
|
30469
30284
|
message.creator_id = object.creator_id ?? "";
|
|
30470
|
-
message.
|
|
30471
|
-
message.
|
|
30285
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
30286
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
30472
30287
|
return message;
|
|
30473
30288
|
},
|
|
30474
30289
|
};
|
|
@@ -31131,8 +30946,8 @@ function createBaseUserActivity(): UserActivity {
|
|
|
31131
30946
|
activity_name: "",
|
|
31132
30947
|
activity_type: 0,
|
|
31133
30948
|
activity_description: "",
|
|
31134
|
-
|
|
31135
|
-
|
|
30949
|
+
start_time_seconds: 0,
|
|
30950
|
+
end_time_seconds: 0,
|
|
31136
30951
|
application_id: "",
|
|
31137
30952
|
status: 0,
|
|
31138
30953
|
};
|
|
@@ -31152,11 +30967,11 @@ export const UserActivity = {
|
|
|
31152
30967
|
if (message.activity_description !== "") {
|
|
31153
30968
|
writer.uint32(34).string(message.activity_description);
|
|
31154
30969
|
}
|
|
31155
|
-
if (message.
|
|
31156
|
-
|
|
30970
|
+
if (message.start_time_seconds !== 0) {
|
|
30971
|
+
writer.uint32(40).uint32(message.start_time_seconds);
|
|
31157
30972
|
}
|
|
31158
|
-
if (message.
|
|
31159
|
-
|
|
30973
|
+
if (message.end_time_seconds !== 0) {
|
|
30974
|
+
writer.uint32(48).uint32(message.end_time_seconds);
|
|
31160
30975
|
}
|
|
31161
30976
|
if (message.application_id !== "") {
|
|
31162
30977
|
writer.uint32(58).string(message.application_id);
|
|
@@ -31203,18 +31018,18 @@ export const UserActivity = {
|
|
|
31203
31018
|
message.activity_description = reader.string();
|
|
31204
31019
|
continue;
|
|
31205
31020
|
case 5:
|
|
31206
|
-
if (tag !==
|
|
31021
|
+
if (tag !== 40) {
|
|
31207
31022
|
break;
|
|
31208
31023
|
}
|
|
31209
31024
|
|
|
31210
|
-
message.
|
|
31025
|
+
message.start_time_seconds = reader.uint32();
|
|
31211
31026
|
continue;
|
|
31212
31027
|
case 6:
|
|
31213
|
-
if (tag !==
|
|
31028
|
+
if (tag !== 48) {
|
|
31214
31029
|
break;
|
|
31215
31030
|
}
|
|
31216
31031
|
|
|
31217
|
-
message.
|
|
31032
|
+
message.end_time_seconds = reader.uint32();
|
|
31218
31033
|
continue;
|
|
31219
31034
|
case 7:
|
|
31220
31035
|
if (tag !== 58) {
|
|
@@ -31245,8 +31060,8 @@ export const UserActivity = {
|
|
|
31245
31060
|
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31246
31061
|
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31247
31062
|
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31248
|
-
|
|
31249
|
-
|
|
31063
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
31064
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
31250
31065
|
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31251
31066
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31252
31067
|
};
|
|
@@ -31266,11 +31081,11 @@ export const UserActivity = {
|
|
|
31266
31081
|
if (message.activity_description !== "") {
|
|
31267
31082
|
obj.activity_description = message.activity_description;
|
|
31268
31083
|
}
|
|
31269
|
-
if (message.
|
|
31270
|
-
obj.
|
|
31084
|
+
if (message.start_time_seconds !== 0) {
|
|
31085
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
31271
31086
|
}
|
|
31272
|
-
if (message.
|
|
31273
|
-
obj.
|
|
31087
|
+
if (message.end_time_seconds !== 0) {
|
|
31088
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
31274
31089
|
}
|
|
31275
31090
|
if (message.application_id !== "") {
|
|
31276
31091
|
obj.application_id = message.application_id;
|
|
@@ -31290,8 +31105,8 @@ export const UserActivity = {
|
|
|
31290
31105
|
message.activity_name = object.activity_name ?? "";
|
|
31291
31106
|
message.activity_type = object.activity_type ?? 0;
|
|
31292
31107
|
message.activity_description = object.activity_description ?? "";
|
|
31293
|
-
message.
|
|
31294
|
-
message.
|
|
31108
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
31109
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
31295
31110
|
message.application_id = object.application_id ?? "";
|
|
31296
31111
|
message.status = object.status ?? 0;
|
|
31297
31112
|
return message;
|
|
@@ -31364,7 +31179,7 @@ function createBaseCreateActivityRequest(): CreateActivityRequest {
|
|
|
31364
31179
|
activity_name: "",
|
|
31365
31180
|
activity_type: 0,
|
|
31366
31181
|
activity_description: "",
|
|
31367
|
-
|
|
31182
|
+
start_time_seconds: 0,
|
|
31368
31183
|
application_id: "",
|
|
31369
31184
|
status: 0,
|
|
31370
31185
|
};
|
|
@@ -31381,8 +31196,8 @@ export const CreateActivityRequest = {
|
|
|
31381
31196
|
if (message.activity_description !== "") {
|
|
31382
31197
|
writer.uint32(26).string(message.activity_description);
|
|
31383
31198
|
}
|
|
31384
|
-
if (message.
|
|
31385
|
-
|
|
31199
|
+
if (message.start_time_seconds !== 0) {
|
|
31200
|
+
writer.uint32(32).uint32(message.start_time_seconds);
|
|
31386
31201
|
}
|
|
31387
31202
|
if (message.application_id !== "") {
|
|
31388
31203
|
writer.uint32(42).string(message.application_id);
|
|
@@ -31422,11 +31237,11 @@ export const CreateActivityRequest = {
|
|
|
31422
31237
|
message.activity_description = reader.string();
|
|
31423
31238
|
continue;
|
|
31424
31239
|
case 4:
|
|
31425
|
-
if (tag !==
|
|
31240
|
+
if (tag !== 32) {
|
|
31426
31241
|
break;
|
|
31427
31242
|
}
|
|
31428
31243
|
|
|
31429
|
-
message.
|
|
31244
|
+
message.start_time_seconds = reader.uint32();
|
|
31430
31245
|
continue;
|
|
31431
31246
|
case 5:
|
|
31432
31247
|
if (tag !== 42) {
|
|
@@ -31456,7 +31271,7 @@ export const CreateActivityRequest = {
|
|
|
31456
31271
|
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31457
31272
|
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31458
31273
|
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31459
|
-
|
|
31274
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
31460
31275
|
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31461
31276
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31462
31277
|
};
|
|
@@ -31473,8 +31288,8 @@ export const CreateActivityRequest = {
|
|
|
31473
31288
|
if (message.activity_description !== "") {
|
|
31474
31289
|
obj.activity_description = message.activity_description;
|
|
31475
31290
|
}
|
|
31476
|
-
if (message.
|
|
31477
|
-
obj.
|
|
31291
|
+
if (message.start_time_seconds !== 0) {
|
|
31292
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
31478
31293
|
}
|
|
31479
31294
|
if (message.application_id !== "") {
|
|
31480
31295
|
obj.application_id = message.application_id;
|
|
@@ -31493,7 +31308,7 @@ export const CreateActivityRequest = {
|
|
|
31493
31308
|
message.activity_name = object.activity_name ?? "";
|
|
31494
31309
|
message.activity_type = object.activity_type ?? 0;
|
|
31495
31310
|
message.activity_description = object.activity_description ?? "";
|
|
31496
|
-
message.
|
|
31311
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
31497
31312
|
message.application_id = object.application_id ?? "";
|
|
31498
31313
|
message.status = object.status ?? 0;
|
|
31499
31314
|
return message;
|
|
@@ -32264,7 +32079,7 @@ function createBaseAuditLog(): AuditLog {
|
|
|
32264
32079
|
entity_name: "",
|
|
32265
32080
|
entity_id: "",
|
|
32266
32081
|
details: "",
|
|
32267
|
-
|
|
32082
|
+
time_log_seconds: 0,
|
|
32268
32083
|
channel_id: "",
|
|
32269
32084
|
channel_label: "",
|
|
32270
32085
|
};
|
|
@@ -32293,8 +32108,8 @@ export const AuditLog = {
|
|
|
32293
32108
|
if (message.details !== "") {
|
|
32294
32109
|
writer.uint32(58).string(message.details);
|
|
32295
32110
|
}
|
|
32296
|
-
if (message.
|
|
32297
|
-
|
|
32111
|
+
if (message.time_log_seconds !== 0) {
|
|
32112
|
+
writer.uint32(64).uint32(message.time_log_seconds);
|
|
32298
32113
|
}
|
|
32299
32114
|
if (message.channel_id !== "") {
|
|
32300
32115
|
writer.uint32(74).string(message.channel_id);
|
|
@@ -32362,11 +32177,11 @@ export const AuditLog = {
|
|
|
32362
32177
|
message.details = reader.string();
|
|
32363
32178
|
continue;
|
|
32364
32179
|
case 8:
|
|
32365
|
-
if (tag !==
|
|
32180
|
+
if (tag !== 64) {
|
|
32366
32181
|
break;
|
|
32367
32182
|
}
|
|
32368
32183
|
|
|
32369
|
-
message.
|
|
32184
|
+
message.time_log_seconds = reader.uint32();
|
|
32370
32185
|
continue;
|
|
32371
32186
|
case 9:
|
|
32372
32187
|
if (tag !== 74) {
|
|
@@ -32400,7 +32215,7 @@ export const AuditLog = {
|
|
|
32400
32215
|
entity_name: isSet(object.entity_name) ? globalThis.String(object.entity_name) : "",
|
|
32401
32216
|
entity_id: isSet(object.entity_id) ? globalThis.String(object.entity_id) : "",
|
|
32402
32217
|
details: isSet(object.details) ? globalThis.String(object.details) : "",
|
|
32403
|
-
|
|
32218
|
+
time_log_seconds: isSet(object.time_log_seconds) ? globalThis.Number(object.time_log_seconds) : 0,
|
|
32404
32219
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
32405
32220
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
32406
32221
|
};
|
|
@@ -32429,8 +32244,8 @@ export const AuditLog = {
|
|
|
32429
32244
|
if (message.details !== "") {
|
|
32430
32245
|
obj.details = message.details;
|
|
32431
32246
|
}
|
|
32432
|
-
if (message.
|
|
32433
|
-
obj.
|
|
32247
|
+
if (message.time_log_seconds !== 0) {
|
|
32248
|
+
obj.time_log_seconds = Math.round(message.time_log_seconds);
|
|
32434
32249
|
}
|
|
32435
32250
|
if (message.channel_id !== "") {
|
|
32436
32251
|
obj.channel_id = message.channel_id;
|
|
@@ -32453,7 +32268,7 @@ export const AuditLog = {
|
|
|
32453
32268
|
message.entity_name = object.entity_name ?? "";
|
|
32454
32269
|
message.entity_id = object.entity_id ?? "";
|
|
32455
32270
|
message.details = object.details ?? "";
|
|
32456
|
-
message.
|
|
32271
|
+
message.time_log_seconds = object.time_log_seconds ?? 0;
|
|
32457
32272
|
message.channel_id = object.channel_id ?? "";
|
|
32458
32273
|
message.channel_label = object.channel_label ?? "";
|
|
32459
32274
|
return message;
|
|
@@ -33117,8 +32932,8 @@ function createBaseOnboardingItem(): OnboardingItem {
|
|
|
33117
32932
|
content: "",
|
|
33118
32933
|
image_url: "",
|
|
33119
32934
|
answers: [],
|
|
33120
|
-
|
|
33121
|
-
|
|
32935
|
+
create_time_seconds: 0,
|
|
32936
|
+
update_time_seconds: 0,
|
|
33122
32937
|
};
|
|
33123
32938
|
}
|
|
33124
32939
|
|
|
@@ -33151,11 +32966,11 @@ export const OnboardingItem = {
|
|
|
33151
32966
|
for (const v of message.answers) {
|
|
33152
32967
|
OnboardingAnswer.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
33153
32968
|
}
|
|
33154
|
-
if (message.
|
|
33155
|
-
|
|
32969
|
+
if (message.create_time_seconds !== 0) {
|
|
32970
|
+
writer.uint32(80).uint32(message.create_time_seconds);
|
|
33156
32971
|
}
|
|
33157
|
-
if (message.
|
|
33158
|
-
|
|
32972
|
+
if (message.update_time_seconds !== 0) {
|
|
32973
|
+
writer.uint32(88).uint32(message.update_time_seconds);
|
|
33159
32974
|
}
|
|
33160
32975
|
return writer;
|
|
33161
32976
|
},
|
|
@@ -33231,18 +33046,18 @@ export const OnboardingItem = {
|
|
|
33231
33046
|
message.answers.push(OnboardingAnswer.decode(reader, reader.uint32()));
|
|
33232
33047
|
continue;
|
|
33233
33048
|
case 10:
|
|
33234
|
-
if (tag !==
|
|
33049
|
+
if (tag !== 80) {
|
|
33235
33050
|
break;
|
|
33236
33051
|
}
|
|
33237
33052
|
|
|
33238
|
-
message.
|
|
33053
|
+
message.create_time_seconds = reader.uint32();
|
|
33239
33054
|
continue;
|
|
33240
33055
|
case 11:
|
|
33241
|
-
if (tag !==
|
|
33056
|
+
if (tag !== 88) {
|
|
33242
33057
|
break;
|
|
33243
33058
|
}
|
|
33244
33059
|
|
|
33245
|
-
message.
|
|
33060
|
+
message.update_time_seconds = reader.uint32();
|
|
33246
33061
|
continue;
|
|
33247
33062
|
}
|
|
33248
33063
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -33266,8 +33081,8 @@ export const OnboardingItem = {
|
|
|
33266
33081
|
answers: globalThis.Array.isArray(object?.answers)
|
|
33267
33082
|
? object.answers.map((e: any) => OnboardingAnswer.fromJSON(e))
|
|
33268
33083
|
: [],
|
|
33269
|
-
|
|
33270
|
-
|
|
33084
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
33085
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
33271
33086
|
};
|
|
33272
33087
|
},
|
|
33273
33088
|
|
|
@@ -33300,11 +33115,11 @@ export const OnboardingItem = {
|
|
|
33300
33115
|
if (message.answers?.length) {
|
|
33301
33116
|
obj.answers = message.answers.map((e) => OnboardingAnswer.toJSON(e));
|
|
33302
33117
|
}
|
|
33303
|
-
if (message.
|
|
33304
|
-
obj.
|
|
33118
|
+
if (message.create_time_seconds !== 0) {
|
|
33119
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
33305
33120
|
}
|
|
33306
|
-
if (message.
|
|
33307
|
-
obj.
|
|
33121
|
+
if (message.update_time_seconds !== 0) {
|
|
33122
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
33308
33123
|
}
|
|
33309
33124
|
return obj;
|
|
33310
33125
|
},
|
|
@@ -33323,8 +33138,8 @@ export const OnboardingItem = {
|
|
|
33323
33138
|
message.content = object.content ?? "";
|
|
33324
33139
|
message.image_url = object.image_url ?? "";
|
|
33325
33140
|
message.answers = object.answers?.map((e) => OnboardingAnswer.fromPartial(e)) || [];
|
|
33326
|
-
message.
|
|
33327
|
-
message.
|
|
33141
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
33142
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
33328
33143
|
return message;
|
|
33329
33144
|
},
|
|
33330
33145
|
};
|
|
@@ -35268,8 +35083,8 @@ function createBaseSdTopic(): SdTopic {
|
|
|
35268
35083
|
clan_id: "",
|
|
35269
35084
|
channel_id: "",
|
|
35270
35085
|
status: 0,
|
|
35271
|
-
|
|
35272
|
-
|
|
35086
|
+
create_time_seconds: 0,
|
|
35087
|
+
update_time_seconds: 0,
|
|
35273
35088
|
message: undefined,
|
|
35274
35089
|
last_sent_message: undefined,
|
|
35275
35090
|
};
|
|
@@ -35295,11 +35110,11 @@ export const SdTopic = {
|
|
|
35295
35110
|
if (message.status !== 0) {
|
|
35296
35111
|
writer.uint32(48).int32(message.status);
|
|
35297
35112
|
}
|
|
35298
|
-
if (message.
|
|
35299
|
-
|
|
35113
|
+
if (message.create_time_seconds !== 0) {
|
|
35114
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
35300
35115
|
}
|
|
35301
|
-
if (message.
|
|
35302
|
-
|
|
35116
|
+
if (message.update_time_seconds !== 0) {
|
|
35117
|
+
writer.uint32(64).uint32(message.update_time_seconds);
|
|
35303
35118
|
}
|
|
35304
35119
|
if (message.message !== undefined) {
|
|
35305
35120
|
ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
|
|
@@ -35360,18 +35175,18 @@ export const SdTopic = {
|
|
|
35360
35175
|
message.status = reader.int32();
|
|
35361
35176
|
continue;
|
|
35362
35177
|
case 7:
|
|
35363
|
-
if (tag !==
|
|
35178
|
+
if (tag !== 56) {
|
|
35364
35179
|
break;
|
|
35365
35180
|
}
|
|
35366
35181
|
|
|
35367
|
-
message.
|
|
35182
|
+
message.create_time_seconds = reader.uint32();
|
|
35368
35183
|
continue;
|
|
35369
35184
|
case 8:
|
|
35370
|
-
if (tag !==
|
|
35185
|
+
if (tag !== 64) {
|
|
35371
35186
|
break;
|
|
35372
35187
|
}
|
|
35373
35188
|
|
|
35374
|
-
message.
|
|
35189
|
+
message.update_time_seconds = reader.uint32();
|
|
35375
35190
|
continue;
|
|
35376
35191
|
case 9:
|
|
35377
35192
|
if (tag !== 74) {
|
|
@@ -35404,8 +35219,8 @@ export const SdTopic = {
|
|
|
35404
35219
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
35405
35220
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
35406
35221
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
35407
|
-
|
|
35408
|
-
|
|
35222
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
35223
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
35409
35224
|
message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
|
|
35410
35225
|
last_sent_message: isSet(object.last_sent_message)
|
|
35411
35226
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
@@ -35433,11 +35248,11 @@ export const SdTopic = {
|
|
|
35433
35248
|
if (message.status !== 0) {
|
|
35434
35249
|
obj.status = Math.round(message.status);
|
|
35435
35250
|
}
|
|
35436
|
-
if (message.
|
|
35437
|
-
obj.
|
|
35251
|
+
if (message.create_time_seconds !== 0) {
|
|
35252
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
35438
35253
|
}
|
|
35439
|
-
if (message.
|
|
35440
|
-
obj.
|
|
35254
|
+
if (message.update_time_seconds !== 0) {
|
|
35255
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
35441
35256
|
}
|
|
35442
35257
|
if (message.message !== undefined) {
|
|
35443
35258
|
obj.message = ChannelMessage.toJSON(message.message);
|
|
@@ -35459,8 +35274,8 @@ export const SdTopic = {
|
|
|
35459
35274
|
message.clan_id = object.clan_id ?? "";
|
|
35460
35275
|
message.channel_id = object.channel_id ?? "";
|
|
35461
35276
|
message.status = object.status ?? 0;
|
|
35462
|
-
message.
|
|
35463
|
-
message.
|
|
35277
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
35278
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
35464
35279
|
message.message = (object.message !== undefined && object.message !== null)
|
|
35465
35280
|
? ChannelMessage.fromPartial(object.message)
|
|
35466
35281
|
: undefined;
|
|
@@ -36299,7 +36114,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
|
|
|
36299
36114
|
client_secret_expires_at: 0,
|
|
36300
36115
|
client_uri: "",
|
|
36301
36116
|
contacts: [],
|
|
36302
|
-
|
|
36117
|
+
created_at_seconds: 0,
|
|
36303
36118
|
frontchannel_logout_session_required: false,
|
|
36304
36119
|
frontchannel_logout_uri: "",
|
|
36305
36120
|
grant_types: [],
|
|
@@ -36329,7 +36144,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
|
|
|
36329
36144
|
token_endpoint_auth_method: "",
|
|
36330
36145
|
token_endpoint_auth_signing_alg: "",
|
|
36331
36146
|
tos_uri: "",
|
|
36332
|
-
|
|
36147
|
+
updated_at_seconds: 0,
|
|
36333
36148
|
userinfo_signed_response_alg: "",
|
|
36334
36149
|
};
|
|
36335
36150
|
}
|
|
@@ -36381,8 +36196,8 @@ export const MezonOauthClient = {
|
|
|
36381
36196
|
for (const v of message.contacts) {
|
|
36382
36197
|
writer.uint32(122).string(v!);
|
|
36383
36198
|
}
|
|
36384
|
-
if (message.
|
|
36385
|
-
|
|
36199
|
+
if (message.created_at_seconds !== 0) {
|
|
36200
|
+
writer.uint32(128).uint32(message.created_at_seconds);
|
|
36386
36201
|
}
|
|
36387
36202
|
if (message.frontchannel_logout_session_required !== false) {
|
|
36388
36203
|
writer.uint32(136).bool(message.frontchannel_logout_session_required);
|
|
@@ -36471,8 +36286,8 @@ export const MezonOauthClient = {
|
|
|
36471
36286
|
if (message.tos_uri !== "") {
|
|
36472
36287
|
writer.uint32(362).string(message.tos_uri);
|
|
36473
36288
|
}
|
|
36474
|
-
if (message.
|
|
36475
|
-
|
|
36289
|
+
if (message.updated_at_seconds !== 0) {
|
|
36290
|
+
writer.uint32(368).uint32(message.updated_at_seconds);
|
|
36476
36291
|
}
|
|
36477
36292
|
if (message.userinfo_signed_response_alg !== "") {
|
|
36478
36293
|
writer.uint32(378).string(message.userinfo_signed_response_alg);
|
|
@@ -36593,11 +36408,11 @@ export const MezonOauthClient = {
|
|
|
36593
36408
|
message.contacts.push(reader.string());
|
|
36594
36409
|
continue;
|
|
36595
36410
|
case 16:
|
|
36596
|
-
if (tag !==
|
|
36411
|
+
if (tag !== 128) {
|
|
36597
36412
|
break;
|
|
36598
36413
|
}
|
|
36599
36414
|
|
|
36600
|
-
message.
|
|
36415
|
+
message.created_at_seconds = reader.uint32();
|
|
36601
36416
|
continue;
|
|
36602
36417
|
case 17:
|
|
36603
36418
|
if (tag !== 136) {
|
|
@@ -36803,11 +36618,11 @@ export const MezonOauthClient = {
|
|
|
36803
36618
|
message.tos_uri = reader.string();
|
|
36804
36619
|
continue;
|
|
36805
36620
|
case 46:
|
|
36806
|
-
if (tag !==
|
|
36621
|
+
if (tag !== 368) {
|
|
36807
36622
|
break;
|
|
36808
36623
|
}
|
|
36809
36624
|
|
|
36810
|
-
message.
|
|
36625
|
+
message.updated_at_seconds = reader.uint32();
|
|
36811
36626
|
continue;
|
|
36812
36627
|
case 47:
|
|
36813
36628
|
if (tag !== 378) {
|
|
@@ -36860,7 +36675,7 @@ export const MezonOauthClient = {
|
|
|
36860
36675
|
contacts: globalThis.Array.isArray(object?.contacts)
|
|
36861
36676
|
? object.contacts.map((e: any) => globalThis.String(e))
|
|
36862
36677
|
: [],
|
|
36863
|
-
|
|
36678
|
+
created_at_seconds: isSet(object.created_at_seconds) ? globalThis.Number(object.created_at_seconds) : 0,
|
|
36864
36679
|
frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
|
|
36865
36680
|
? globalThis.Boolean(object.frontchannel_logout_session_required)
|
|
36866
36681
|
: false,
|
|
@@ -36928,7 +36743,7 @@ export const MezonOauthClient = {
|
|
|
36928
36743
|
? globalThis.String(object.token_endpoint_auth_signing_alg)
|
|
36929
36744
|
: "",
|
|
36930
36745
|
tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
|
|
36931
|
-
|
|
36746
|
+
updated_at_seconds: isSet(object.updated_at_seconds) ? globalThis.Number(object.updated_at_seconds) : 0,
|
|
36932
36747
|
userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
|
|
36933
36748
|
? globalThis.String(object.userinfo_signed_response_alg)
|
|
36934
36749
|
: "",
|
|
@@ -36982,8 +36797,8 @@ export const MezonOauthClient = {
|
|
|
36982
36797
|
if (message.contacts?.length) {
|
|
36983
36798
|
obj.contacts = message.contacts;
|
|
36984
36799
|
}
|
|
36985
|
-
if (message.
|
|
36986
|
-
obj.
|
|
36800
|
+
if (message.created_at_seconds !== 0) {
|
|
36801
|
+
obj.created_at_seconds = Math.round(message.created_at_seconds);
|
|
36987
36802
|
}
|
|
36988
36803
|
if (message.frontchannel_logout_session_required !== false) {
|
|
36989
36804
|
obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
|
|
@@ -37072,8 +36887,8 @@ export const MezonOauthClient = {
|
|
|
37072
36887
|
if (message.tos_uri !== "") {
|
|
37073
36888
|
obj.tos_uri = message.tos_uri;
|
|
37074
36889
|
}
|
|
37075
|
-
if (message.
|
|
37076
|
-
obj.
|
|
36890
|
+
if (message.updated_at_seconds !== 0) {
|
|
36891
|
+
obj.updated_at_seconds = Math.round(message.updated_at_seconds);
|
|
37077
36892
|
}
|
|
37078
36893
|
if (message.userinfo_signed_response_alg !== "") {
|
|
37079
36894
|
obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
|
|
@@ -37104,7 +36919,7 @@ export const MezonOauthClient = {
|
|
|
37104
36919
|
message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
|
|
37105
36920
|
message.client_uri = object.client_uri ?? "";
|
|
37106
36921
|
message.contacts = object.contacts?.map((e) => e) || [];
|
|
37107
|
-
message.
|
|
36922
|
+
message.created_at_seconds = object.created_at_seconds ?? 0;
|
|
37108
36923
|
message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
|
|
37109
36924
|
message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
|
|
37110
36925
|
message.grant_types = object.grant_types?.map((e) => e) || [];
|
|
@@ -37134,7 +36949,7 @@ export const MezonOauthClient = {
|
|
|
37134
36949
|
message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
|
|
37135
36950
|
message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
|
|
37136
36951
|
message.tos_uri = object.tos_uri ?? "";
|
|
37137
|
-
message.
|
|
36952
|
+
message.updated_at_seconds = object.updated_at_seconds ?? 0;
|
|
37138
36953
|
message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
|
|
37139
36954
|
return message;
|
|
37140
36955
|
},
|
|
@@ -39040,11 +38855,11 @@ function createBaseLogedDevice(): LogedDevice {
|
|
|
39040
38855
|
return {
|
|
39041
38856
|
device_id: "",
|
|
39042
38857
|
device_name: "",
|
|
39043
|
-
|
|
38858
|
+
login_at_seconds: 0,
|
|
39044
38859
|
status: 0,
|
|
39045
38860
|
platform: "",
|
|
39046
38861
|
ip: "",
|
|
39047
|
-
|
|
38862
|
+
last_active_seconds: 0,
|
|
39048
38863
|
location: "",
|
|
39049
38864
|
is_current: false,
|
|
39050
38865
|
};
|
|
@@ -39058,8 +38873,8 @@ export const LogedDevice = {
|
|
|
39058
38873
|
if (message.device_name !== "") {
|
|
39059
38874
|
writer.uint32(18).string(message.device_name);
|
|
39060
38875
|
}
|
|
39061
|
-
if (message.
|
|
39062
|
-
|
|
38876
|
+
if (message.login_at_seconds !== 0) {
|
|
38877
|
+
writer.uint32(24).uint32(message.login_at_seconds);
|
|
39063
38878
|
}
|
|
39064
38879
|
if (message.status !== 0) {
|
|
39065
38880
|
writer.uint32(32).int32(message.status);
|
|
@@ -39070,8 +38885,8 @@ export const LogedDevice = {
|
|
|
39070
38885
|
if (message.ip !== "") {
|
|
39071
38886
|
writer.uint32(50).string(message.ip);
|
|
39072
38887
|
}
|
|
39073
|
-
if (message.
|
|
39074
|
-
|
|
38888
|
+
if (message.last_active_seconds !== 0) {
|
|
38889
|
+
writer.uint32(56).uint32(message.last_active_seconds);
|
|
39075
38890
|
}
|
|
39076
38891
|
if (message.location !== "") {
|
|
39077
38892
|
writer.uint32(66).string(message.location);
|
|
@@ -39104,11 +38919,11 @@ export const LogedDevice = {
|
|
|
39104
38919
|
message.device_name = reader.string();
|
|
39105
38920
|
continue;
|
|
39106
38921
|
case 3:
|
|
39107
|
-
if (tag !==
|
|
38922
|
+
if (tag !== 24) {
|
|
39108
38923
|
break;
|
|
39109
38924
|
}
|
|
39110
38925
|
|
|
39111
|
-
message.
|
|
38926
|
+
message.login_at_seconds = reader.uint32();
|
|
39112
38927
|
continue;
|
|
39113
38928
|
case 4:
|
|
39114
38929
|
if (tag !== 32) {
|
|
@@ -39132,11 +38947,11 @@ export const LogedDevice = {
|
|
|
39132
38947
|
message.ip = reader.string();
|
|
39133
38948
|
continue;
|
|
39134
38949
|
case 7:
|
|
39135
|
-
if (tag !==
|
|
38950
|
+
if (tag !== 56) {
|
|
39136
38951
|
break;
|
|
39137
38952
|
}
|
|
39138
38953
|
|
|
39139
|
-
message.
|
|
38954
|
+
message.last_active_seconds = reader.uint32();
|
|
39140
38955
|
continue;
|
|
39141
38956
|
case 8:
|
|
39142
38957
|
if (tag !== 66) {
|
|
@@ -39165,11 +38980,11 @@ export const LogedDevice = {
|
|
|
39165
38980
|
return {
|
|
39166
38981
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
39167
38982
|
device_name: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
|
|
39168
|
-
|
|
38983
|
+
login_at_seconds: isSet(object.login_at_seconds) ? globalThis.Number(object.login_at_seconds) : 0,
|
|
39169
38984
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
39170
38985
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
39171
38986
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
39172
|
-
|
|
38987
|
+
last_active_seconds: isSet(object.last_active_seconds) ? globalThis.Number(object.last_active_seconds) : 0,
|
|
39173
38988
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
39174
38989
|
is_current: isSet(object.is_current) ? globalThis.Boolean(object.is_current) : false,
|
|
39175
38990
|
};
|
|
@@ -39183,8 +38998,8 @@ export const LogedDevice = {
|
|
|
39183
38998
|
if (message.device_name !== "") {
|
|
39184
38999
|
obj.device_name = message.device_name;
|
|
39185
39000
|
}
|
|
39186
|
-
if (message.
|
|
39187
|
-
obj.
|
|
39001
|
+
if (message.login_at_seconds !== 0) {
|
|
39002
|
+
obj.login_at_seconds = Math.round(message.login_at_seconds);
|
|
39188
39003
|
}
|
|
39189
39004
|
if (message.status !== 0) {
|
|
39190
39005
|
obj.status = Math.round(message.status);
|
|
@@ -39195,8 +39010,8 @@ export const LogedDevice = {
|
|
|
39195
39010
|
if (message.ip !== "") {
|
|
39196
39011
|
obj.ip = message.ip;
|
|
39197
39012
|
}
|
|
39198
|
-
if (message.
|
|
39199
|
-
obj.
|
|
39013
|
+
if (message.last_active_seconds !== 0) {
|
|
39014
|
+
obj.last_active_seconds = Math.round(message.last_active_seconds);
|
|
39200
39015
|
}
|
|
39201
39016
|
if (message.location !== "") {
|
|
39202
39017
|
obj.location = message.location;
|
|
@@ -39214,11 +39029,11 @@ export const LogedDevice = {
|
|
|
39214
39029
|
const message = createBaseLogedDevice();
|
|
39215
39030
|
message.device_id = object.device_id ?? "";
|
|
39216
39031
|
message.device_name = object.device_name ?? "";
|
|
39217
|
-
message.
|
|
39032
|
+
message.login_at_seconds = object.login_at_seconds ?? 0;
|
|
39218
39033
|
message.status = object.status ?? 0;
|
|
39219
39034
|
message.platform = object.platform ?? "";
|
|
39220
39035
|
message.ip = object.ip ?? "";
|
|
39221
|
-
message.
|
|
39036
|
+
message.last_active_seconds = object.last_active_seconds ?? 0;
|
|
39222
39037
|
message.location = object.location ?? "";
|
|
39223
39038
|
message.is_current = object.is_current ?? false;
|
|
39224
39039
|
return message;
|
|
@@ -39657,6 +39472,67 @@ export const MessageRefList = {
|
|
|
39657
39472
|
},
|
|
39658
39473
|
};
|
|
39659
39474
|
|
|
39475
|
+
function createBaseMessageReactionList(): MessageReactionList {
|
|
39476
|
+
return { reactions: [] };
|
|
39477
|
+
}
|
|
39478
|
+
|
|
39479
|
+
export const MessageReactionList = {
|
|
39480
|
+
encode(message: MessageReactionList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39481
|
+
for (const v of message.reactions) {
|
|
39482
|
+
MessageReaction.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
39483
|
+
}
|
|
39484
|
+
return writer;
|
|
39485
|
+
},
|
|
39486
|
+
|
|
39487
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MessageReactionList {
|
|
39488
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39489
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39490
|
+
const message = createBaseMessageReactionList();
|
|
39491
|
+
while (reader.pos < end) {
|
|
39492
|
+
const tag = reader.uint32();
|
|
39493
|
+
switch (tag >>> 3) {
|
|
39494
|
+
case 1:
|
|
39495
|
+
if (tag !== 10) {
|
|
39496
|
+
break;
|
|
39497
|
+
}
|
|
39498
|
+
|
|
39499
|
+
message.reactions.push(MessageReaction.decode(reader, reader.uint32()));
|
|
39500
|
+
continue;
|
|
39501
|
+
}
|
|
39502
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39503
|
+
break;
|
|
39504
|
+
}
|
|
39505
|
+
reader.skipType(tag & 7);
|
|
39506
|
+
}
|
|
39507
|
+
return message;
|
|
39508
|
+
},
|
|
39509
|
+
|
|
39510
|
+
fromJSON(object: any): MessageReactionList {
|
|
39511
|
+
return {
|
|
39512
|
+
reactions: globalThis.Array.isArray(object?.reactions)
|
|
39513
|
+
? object.reactions.map((e: any) => MessageReaction.fromJSON(e))
|
|
39514
|
+
: [],
|
|
39515
|
+
};
|
|
39516
|
+
},
|
|
39517
|
+
|
|
39518
|
+
toJSON(message: MessageReactionList): unknown {
|
|
39519
|
+
const obj: any = {};
|
|
39520
|
+
if (message.reactions?.length) {
|
|
39521
|
+
obj.reactions = message.reactions.map((e) => MessageReaction.toJSON(e));
|
|
39522
|
+
}
|
|
39523
|
+
return obj;
|
|
39524
|
+
},
|
|
39525
|
+
|
|
39526
|
+
create<I extends Exact<DeepPartial<MessageReactionList>, I>>(base?: I): MessageReactionList {
|
|
39527
|
+
return MessageReactionList.fromPartial(base ?? ({} as any));
|
|
39528
|
+
},
|
|
39529
|
+
fromPartial<I extends Exact<DeepPartial<MessageReactionList>, I>>(object: I): MessageReactionList {
|
|
39530
|
+
const message = createBaseMessageReactionList();
|
|
39531
|
+
message.reactions = object.reactions?.map((e) => MessageReaction.fromPartial(e)) || [];
|
|
39532
|
+
return message;
|
|
39533
|
+
},
|
|
39534
|
+
};
|
|
39535
|
+
|
|
39660
39536
|
function createBaseListClanBadgeCountRequest(): ListClanBadgeCountRequest {
|
|
39661
39537
|
return { clan_id: "" };
|
|
39662
39538
|
}
|
|
@@ -39808,28 +39684,6 @@ type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
|
39808
39684
|
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
39809
39685
|
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
39810
39686
|
|
|
39811
|
-
function toTimestamp(date: Date): Timestamp {
|
|
39812
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
39813
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
39814
|
-
return { seconds, nanos };
|
|
39815
|
-
}
|
|
39816
|
-
|
|
39817
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
39818
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
39819
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
39820
|
-
return new globalThis.Date(millis);
|
|
39821
|
-
}
|
|
39822
|
-
|
|
39823
|
-
function fromJsonTimestamp(o: any): Date {
|
|
39824
|
-
if (o instanceof globalThis.Date) {
|
|
39825
|
-
return o;
|
|
39826
|
-
} else if (typeof o === "string") {
|
|
39827
|
-
return new globalThis.Date(o);
|
|
39828
|
-
} else {
|
|
39829
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
39830
|
-
}
|
|
39831
|
-
}
|
|
39832
|
-
|
|
39833
39687
|
function longToNumber(long: Long): number {
|
|
39834
39688
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
39835
39689
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|