mezon-js-protobuf 1.8.78 → 1.8.80
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 +413 -573
- package/dist/mezon-js-protobuf/api/api.d.ts +679 -1923
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +623 -2007
- package/dist/mezon-js-protobuf/utils.d.ts +2 -1
- package/dist/mezon-js-protobuf.cjs.js +1625 -2043
- package/dist/mezon-js-protobuf.esm.mjs +1625 -2043
- package/package.json +1 -1
- package/rtapi/realtime.ts +30 -59
- package/utils.ts +11 -3
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 */
|
|
@@ -351,9 +346,7 @@ export interface MessageMention {
|
|
|
351
346
|
/** role name */
|
|
352
347
|
rolename: string;
|
|
353
348
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
354
|
-
|
|
355
|
-
| Date
|
|
356
|
-
| undefined;
|
|
349
|
+
create_time_second: number;
|
|
357
350
|
/** start position from text */
|
|
358
351
|
s: number;
|
|
359
352
|
/** end position from text */
|
|
@@ -531,9 +524,7 @@ export interface Event {
|
|
|
531
524
|
/** Arbitrary event property values. */
|
|
532
525
|
properties: { [key: string]: string };
|
|
533
526
|
/** The time when the event was triggered. */
|
|
534
|
-
|
|
535
|
-
| Date
|
|
536
|
-
| undefined;
|
|
527
|
+
timestamp_seconds: number;
|
|
537
528
|
/** True if the event came directly from a client call, false otherwise. */
|
|
538
529
|
external: boolean;
|
|
539
530
|
}
|
|
@@ -552,9 +543,7 @@ export interface Friend {
|
|
|
552
543
|
/** The friend status. */
|
|
553
544
|
state: number;
|
|
554
545
|
/** Time of the latest relationship update. */
|
|
555
|
-
|
|
556
|
-
| Date
|
|
557
|
-
| undefined;
|
|
546
|
+
update_time_seconds: number;
|
|
558
547
|
/** source id */
|
|
559
548
|
source_id: string;
|
|
560
549
|
}
|
|
@@ -914,9 +903,7 @@ export interface Notification {
|
|
|
914
903
|
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
915
904
|
sender_id: string;
|
|
916
905
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created. */
|
|
917
|
-
|
|
918
|
-
| Date
|
|
919
|
-
| undefined;
|
|
906
|
+
create_time_seconds: number;
|
|
920
907
|
/** True if this notification was persisted to the database. */
|
|
921
908
|
persistent: boolean;
|
|
922
909
|
/** ID of clan */
|
|
@@ -944,7 +931,7 @@ export interface EmojiRecent {
|
|
|
944
931
|
/** */
|
|
945
932
|
emoji_id: string;
|
|
946
933
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the emoji was created. */
|
|
947
|
-
|
|
934
|
+
update_time_seconds: number;
|
|
948
935
|
}
|
|
949
936
|
|
|
950
937
|
/** A collection of zero or more notifications. */
|
|
@@ -1038,9 +1025,7 @@ export interface UpdateAccountRequest {
|
|
|
1038
1025
|
| string
|
|
1039
1026
|
| undefined;
|
|
1040
1027
|
/** date of birth */
|
|
1041
|
-
|
|
1042
|
-
| Date
|
|
1043
|
-
| undefined;
|
|
1028
|
+
dob_seconds: number;
|
|
1044
1029
|
/** logo url */
|
|
1045
1030
|
logo:
|
|
1046
1031
|
| string
|
|
@@ -1111,25 +1096,17 @@ export interface User {
|
|
|
1111
1096
|
/** Number of related edges to this user. */
|
|
1112
1097
|
edge_count: number;
|
|
1113
1098
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created. */
|
|
1114
|
-
|
|
1115
|
-
| Date
|
|
1116
|
-
| undefined;
|
|
1099
|
+
create_time_seconds: number;
|
|
1117
1100
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated. */
|
|
1118
|
-
|
|
1119
|
-
| Date
|
|
1120
|
-
| undefined;
|
|
1101
|
+
update_time_seconds: number;
|
|
1121
1102
|
/** About me */
|
|
1122
1103
|
about_me: string;
|
|
1123
1104
|
/** Join time */
|
|
1124
|
-
|
|
1125
|
-
| Date
|
|
1126
|
-
| undefined;
|
|
1105
|
+
join_time_seconds: number;
|
|
1127
1106
|
/** Platform */
|
|
1128
1107
|
is_mobile: boolean;
|
|
1129
1108
|
/** dob */
|
|
1130
|
-
|
|
1131
|
-
| Date
|
|
1132
|
-
| undefined;
|
|
1109
|
+
dob_seconds: number;
|
|
1133
1110
|
/** Mezone id */
|
|
1134
1111
|
mezon_id: string;
|
|
1135
1112
|
/** list clan nick name */
|
|
@@ -1342,9 +1319,7 @@ export interface InviteUserRes {
|
|
|
1342
1319
|
/** check user exist */
|
|
1343
1320
|
user_joined: boolean;
|
|
1344
1321
|
/** expiry_time */
|
|
1345
|
-
|
|
1346
|
-
| Date
|
|
1347
|
-
| undefined;
|
|
1322
|
+
expiry_time_seconds: number;
|
|
1348
1323
|
/** */
|
|
1349
1324
|
channel_desc: ChannelDescription | undefined;
|
|
1350
1325
|
clan_logo: string;
|
|
@@ -1370,11 +1345,9 @@ export interface LinkInviteUser {
|
|
|
1370
1345
|
/** link invite */
|
|
1371
1346
|
invite_link: string;
|
|
1372
1347
|
/** create time */
|
|
1373
|
-
|
|
1374
|
-
| Date
|
|
1375
|
-
| undefined;
|
|
1348
|
+
create_time_seconds: number;
|
|
1376
1349
|
/** expiry time */
|
|
1377
|
-
|
|
1350
|
+
expiry_time_seconds: number;
|
|
1378
1351
|
id: string;
|
|
1379
1352
|
}
|
|
1380
1353
|
|
|
@@ -1492,14 +1465,6 @@ export interface ChannelMessageHeader {
|
|
|
1492
1465
|
sender_id: string;
|
|
1493
1466
|
/** the content */
|
|
1494
1467
|
content: string;
|
|
1495
|
-
/** the attachment */
|
|
1496
|
-
attachment: Uint8Array;
|
|
1497
|
-
/** the reference */
|
|
1498
|
-
reference: Uint8Array;
|
|
1499
|
-
/** the mention */
|
|
1500
|
-
mention: Uint8Array;
|
|
1501
|
-
/** the reactions */
|
|
1502
|
-
reaction: Uint8Array;
|
|
1503
1468
|
}
|
|
1504
1469
|
|
|
1505
1470
|
/** Channel description record */
|
|
@@ -1650,9 +1615,7 @@ export interface CreateChannelDescRequest {
|
|
|
1650
1615
|
/** The category of channel */
|
|
1651
1616
|
category_id: string;
|
|
1652
1617
|
/** The channel type. */
|
|
1653
|
-
type:
|
|
1654
|
-
| number
|
|
1655
|
-
| undefined;
|
|
1618
|
+
type: number;
|
|
1656
1619
|
/** The channel lable */
|
|
1657
1620
|
channel_label: string;
|
|
1658
1621
|
/** The channel private */
|
|
@@ -1874,13 +1837,9 @@ export interface PinMessage {
|
|
|
1874
1837
|
/** */
|
|
1875
1838
|
avatar: string;
|
|
1876
1839
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
1877
|
-
create_time:
|
|
1878
|
-
| Date
|
|
1879
|
-
| undefined;
|
|
1880
|
-
/** create time in ms */
|
|
1881
1840
|
create_time_seconds: number;
|
|
1882
1841
|
/** attachment */
|
|
1883
|
-
attachment:
|
|
1842
|
+
attachment: Uint8Array;
|
|
1884
1843
|
}
|
|
1885
1844
|
|
|
1886
1845
|
export interface PinMessagesList {
|
|
@@ -1894,9 +1853,7 @@ export interface NotificationUserChannel {
|
|
|
1894
1853
|
/** */
|
|
1895
1854
|
notification_setting_type: number;
|
|
1896
1855
|
/** */
|
|
1897
|
-
|
|
1898
|
-
| Date
|
|
1899
|
-
| undefined;
|
|
1856
|
+
time_mute_seconds: number;
|
|
1900
1857
|
/** */
|
|
1901
1858
|
active: number;
|
|
1902
1859
|
/** */
|
|
@@ -2133,8 +2090,8 @@ export interface CreateEventRequest {
|
|
|
2133
2090
|
clan_id: string;
|
|
2134
2091
|
channel_voice_id: string;
|
|
2135
2092
|
address: string;
|
|
2136
|
-
|
|
2137
|
-
|
|
2093
|
+
start_time_seconds: number;
|
|
2094
|
+
end_time_seconds: number;
|
|
2138
2095
|
event_id: string;
|
|
2139
2096
|
event_status: number;
|
|
2140
2097
|
channel_id: string;
|
|
@@ -2154,8 +2111,8 @@ export interface UpdateEventRequest {
|
|
|
2154
2111
|
event_id: string;
|
|
2155
2112
|
channel_id: string;
|
|
2156
2113
|
address: string;
|
|
2157
|
-
|
|
2158
|
-
|
|
2114
|
+
start_time_seconds: number;
|
|
2115
|
+
end_time_seconds: number;
|
|
2159
2116
|
clan_id: string;
|
|
2160
2117
|
creator_id: string;
|
|
2161
2118
|
channel_voice_id: string;
|
|
@@ -2401,7 +2358,7 @@ export interface ClanSticker {
|
|
|
2401
2358
|
shortname: string;
|
|
2402
2359
|
category: string;
|
|
2403
2360
|
creator_id: string;
|
|
2404
|
-
|
|
2361
|
+
create_time_seconds: number;
|
|
2405
2362
|
clan_id: string;
|
|
2406
2363
|
logo: string;
|
|
2407
2364
|
clan_name: string;
|
|
@@ -2577,13 +2534,9 @@ export interface App {
|
|
|
2577
2534
|
/** status online */
|
|
2578
2535
|
is_shadow: boolean;
|
|
2579
2536
|
/** The UNIX time when the app was disabled. */
|
|
2580
|
-
|
|
2581
|
-
| Date
|
|
2582
|
-
| undefined;
|
|
2537
|
+
disable_time_seconds: number;
|
|
2583
2538
|
/** The UNIX time when the app was created */
|
|
2584
|
-
|
|
2585
|
-
| Date
|
|
2586
|
-
| undefined;
|
|
2539
|
+
create_time_seconds: number;
|
|
2587
2540
|
/** string token */
|
|
2588
2541
|
token: string;
|
|
2589
2542
|
/** role */
|
|
@@ -2686,9 +2639,7 @@ export interface AppClan {
|
|
|
2686
2639
|
/** Delete channel messages by timestamp or/and ids. */
|
|
2687
2640
|
export interface DeleteChannelMessagesRequest {
|
|
2688
2641
|
/** Timestamp before which messages will be deleted. */
|
|
2689
|
-
|
|
2690
|
-
| Date
|
|
2691
|
-
| undefined;
|
|
2642
|
+
before_seconds: number;
|
|
2692
2643
|
/** IDs of the messages to delete. */
|
|
2693
2644
|
ids: string[];
|
|
2694
2645
|
}
|
|
@@ -3074,8 +3025,8 @@ export interface ChannelCanvasItem {
|
|
|
3074
3025
|
/** creator */
|
|
3075
3026
|
creator_id: string;
|
|
3076
3027
|
/** */
|
|
3077
|
-
|
|
3078
|
-
|
|
3028
|
+
update_time_seconds: number;
|
|
3029
|
+
create_time_seconds: number;
|
|
3079
3030
|
}
|
|
3080
3031
|
|
|
3081
3032
|
export interface ChannelCanvasListResponse {
|
|
@@ -3140,8 +3091,8 @@ export interface UserActivity {
|
|
|
3140
3091
|
activity_name: string;
|
|
3141
3092
|
activity_type: number;
|
|
3142
3093
|
activity_description: string;
|
|
3143
|
-
|
|
3144
|
-
|
|
3094
|
+
start_time_seconds: number;
|
|
3095
|
+
end_time_seconds: number;
|
|
3145
3096
|
application_id: string;
|
|
3146
3097
|
status: number;
|
|
3147
3098
|
}
|
|
@@ -3154,7 +3105,7 @@ export interface CreateActivityRequest {
|
|
|
3154
3105
|
activity_name: string;
|
|
3155
3106
|
activity_type: number;
|
|
3156
3107
|
activity_description: string;
|
|
3157
|
-
|
|
3108
|
+
start_time_seconds: number;
|
|
3158
3109
|
application_id: string;
|
|
3159
3110
|
status: number;
|
|
3160
3111
|
}
|
|
@@ -3229,7 +3180,7 @@ export interface AuditLog {
|
|
|
3229
3180
|
entity_name: string;
|
|
3230
3181
|
entity_id: string;
|
|
3231
3182
|
details: string;
|
|
3232
|
-
|
|
3183
|
+
time_log_seconds: number;
|
|
3233
3184
|
channel_id: string;
|
|
3234
3185
|
channel_label: string;
|
|
3235
3186
|
}
|
|
@@ -3314,11 +3265,9 @@ export interface OnboardingItem {
|
|
|
3314
3265
|
/** answers */
|
|
3315
3266
|
answers: OnboardingAnswer[];
|
|
3316
3267
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
3317
|
-
|
|
3318
|
-
| Date
|
|
3319
|
-
| undefined;
|
|
3268
|
+
create_time_seconds: number;
|
|
3320
3269
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
|
|
3321
|
-
|
|
3270
|
+
update_time_seconds: number;
|
|
3322
3271
|
}
|
|
3323
3272
|
|
|
3324
3273
|
export interface OnboardingAnswer {
|
|
@@ -3525,9 +3474,9 @@ export interface SdTopic {
|
|
|
3525
3474
|
clan_id: string;
|
|
3526
3475
|
channel_id: string;
|
|
3527
3476
|
status: number;
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3477
|
+
create_time_seconds: number;
|
|
3478
|
+
update_time_seconds: number;
|
|
3479
|
+
content: string;
|
|
3531
3480
|
last_sent_message: ChannelMessageHeader | undefined;
|
|
3532
3481
|
}
|
|
3533
3482
|
|
|
@@ -3602,7 +3551,7 @@ export interface MezonOauthClient {
|
|
|
3602
3551
|
client_secret_expires_at: number;
|
|
3603
3552
|
client_uri: string;
|
|
3604
3553
|
contacts: string[];
|
|
3605
|
-
|
|
3554
|
+
created_at_seconds: number;
|
|
3606
3555
|
frontchannel_logout_session_required: boolean;
|
|
3607
3556
|
frontchannel_logout_uri: string;
|
|
3608
3557
|
grant_types: string[];
|
|
@@ -3632,7 +3581,7 @@ export interface MezonOauthClient {
|
|
|
3632
3581
|
token_endpoint_auth_method: string;
|
|
3633
3582
|
token_endpoint_auth_signing_alg: string;
|
|
3634
3583
|
tos_uri: string;
|
|
3635
|
-
|
|
3584
|
+
updated_at_seconds: number;
|
|
3636
3585
|
userinfo_signed_response_alg: string;
|
|
3637
3586
|
}
|
|
3638
3587
|
|
|
@@ -3774,11 +3723,11 @@ export interface LogedDeviceList {
|
|
|
3774
3723
|
export interface LogedDevice {
|
|
3775
3724
|
device_id: string;
|
|
3776
3725
|
device_name: string;
|
|
3777
|
-
|
|
3726
|
+
login_at_seconds: number;
|
|
3778
3727
|
status: number;
|
|
3779
3728
|
platform: string;
|
|
3780
3729
|
ip: string;
|
|
3781
|
-
|
|
3730
|
+
last_active_seconds: number;
|
|
3782
3731
|
location: string;
|
|
3783
3732
|
is_current: boolean;
|
|
3784
3733
|
}
|
|
@@ -3828,8 +3777,8 @@ function createBaseAccount(): Account {
|
|
|
3828
3777
|
user: undefined,
|
|
3829
3778
|
email: "",
|
|
3830
3779
|
qr_code: "",
|
|
3831
|
-
|
|
3832
|
-
|
|
3780
|
+
verify_time_seconds: 0,
|
|
3781
|
+
disable_time_seconds: 0,
|
|
3833
3782
|
logo: "",
|
|
3834
3783
|
splash_screen: "",
|
|
3835
3784
|
encrypt_private_key: "",
|
|
@@ -3848,11 +3797,11 @@ export const Account = {
|
|
|
3848
3797
|
if (message.qr_code !== "") {
|
|
3849
3798
|
writer.uint32(26).string(message.qr_code);
|
|
3850
3799
|
}
|
|
3851
|
-
if (message.
|
|
3852
|
-
|
|
3800
|
+
if (message.verify_time_seconds !== 0) {
|
|
3801
|
+
writer.uint32(32).uint32(message.verify_time_seconds);
|
|
3853
3802
|
}
|
|
3854
|
-
if (message.
|
|
3855
|
-
|
|
3803
|
+
if (message.disable_time_seconds !== 0) {
|
|
3804
|
+
writer.uint32(40).uint32(message.disable_time_seconds);
|
|
3856
3805
|
}
|
|
3857
3806
|
if (message.logo !== "") {
|
|
3858
3807
|
writer.uint32(50).string(message.logo);
|
|
@@ -3898,18 +3847,18 @@ export const Account = {
|
|
|
3898
3847
|
message.qr_code = reader.string();
|
|
3899
3848
|
continue;
|
|
3900
3849
|
case 4:
|
|
3901
|
-
if (tag !==
|
|
3850
|
+
if (tag !== 32) {
|
|
3902
3851
|
break;
|
|
3903
3852
|
}
|
|
3904
3853
|
|
|
3905
|
-
message.
|
|
3854
|
+
message.verify_time_seconds = reader.uint32();
|
|
3906
3855
|
continue;
|
|
3907
3856
|
case 5:
|
|
3908
|
-
if (tag !==
|
|
3857
|
+
if (tag !== 40) {
|
|
3909
3858
|
break;
|
|
3910
3859
|
}
|
|
3911
3860
|
|
|
3912
|
-
message.
|
|
3861
|
+
message.disable_time_seconds = reader.uint32();
|
|
3913
3862
|
continue;
|
|
3914
3863
|
case 6:
|
|
3915
3864
|
if (tag !== 50) {
|
|
@@ -3953,8 +3902,8 @@ export const Account = {
|
|
|
3953
3902
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
3954
3903
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
3955
3904
|
qr_code: isSet(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
3956
|
-
|
|
3957
|
-
|
|
3905
|
+
verify_time_seconds: isSet(object.verify_time_seconds) ? globalThis.Number(object.verify_time_seconds) : 0,
|
|
3906
|
+
disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
|
|
3958
3907
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
3959
3908
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3960
3909
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
@@ -3973,11 +3922,11 @@ export const Account = {
|
|
|
3973
3922
|
if (message.qr_code !== "") {
|
|
3974
3923
|
obj.qr_code = message.qr_code;
|
|
3975
3924
|
}
|
|
3976
|
-
if (message.
|
|
3977
|
-
obj.
|
|
3925
|
+
if (message.verify_time_seconds !== 0) {
|
|
3926
|
+
obj.verify_time_seconds = Math.round(message.verify_time_seconds);
|
|
3978
3927
|
}
|
|
3979
|
-
if (message.
|
|
3980
|
-
obj.
|
|
3928
|
+
if (message.disable_time_seconds !== 0) {
|
|
3929
|
+
obj.disable_time_seconds = Math.round(message.disable_time_seconds);
|
|
3981
3930
|
}
|
|
3982
3931
|
if (message.logo !== "") {
|
|
3983
3932
|
obj.logo = message.logo;
|
|
@@ -4002,8 +3951,8 @@ export const Account = {
|
|
|
4002
3951
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
4003
3952
|
message.email = object.email ?? "";
|
|
4004
3953
|
message.qr_code = object.qr_code ?? "";
|
|
4005
|
-
message.
|
|
4006
|
-
message.
|
|
3954
|
+
message.verify_time_seconds = object.verify_time_seconds ?? 0;
|
|
3955
|
+
message.disable_time_seconds = object.disable_time_seconds ?? 0;
|
|
4007
3956
|
message.logo = object.logo ?? "";
|
|
4008
3957
|
message.splash_screen = object.splash_screen ?? "";
|
|
4009
3958
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
@@ -5437,7 +5386,7 @@ export const ChannelMessage = {
|
|
|
5437
5386
|
};
|
|
5438
5387
|
|
|
5439
5388
|
function createBaseMessageMention(): MessageMention {
|
|
5440
|
-
return { id: "", user_id: "", username: "", role_id: "", rolename: "",
|
|
5389
|
+
return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_second: 0, s: 0, e: 0 };
|
|
5441
5390
|
}
|
|
5442
5391
|
|
|
5443
5392
|
export const MessageMention = {
|
|
@@ -5457,8 +5406,8 @@ export const MessageMention = {
|
|
|
5457
5406
|
if (message.rolename !== "") {
|
|
5458
5407
|
writer.uint32(42).string(message.rolename);
|
|
5459
5408
|
}
|
|
5460
|
-
if (message.
|
|
5461
|
-
|
|
5409
|
+
if (message.create_time_second !== 0) {
|
|
5410
|
+
writer.uint32(48).uint32(message.create_time_second);
|
|
5462
5411
|
}
|
|
5463
5412
|
if (message.s !== 0) {
|
|
5464
5413
|
writer.uint32(56).int32(message.s);
|
|
@@ -5512,11 +5461,11 @@ export const MessageMention = {
|
|
|
5512
5461
|
message.rolename = reader.string();
|
|
5513
5462
|
continue;
|
|
5514
5463
|
case 6:
|
|
5515
|
-
if (tag !==
|
|
5464
|
+
if (tag !== 48) {
|
|
5516
5465
|
break;
|
|
5517
5466
|
}
|
|
5518
5467
|
|
|
5519
|
-
message.
|
|
5468
|
+
message.create_time_second = reader.uint32();
|
|
5520
5469
|
continue;
|
|
5521
5470
|
case 7:
|
|
5522
5471
|
if (tag !== 56) {
|
|
@@ -5548,7 +5497,7 @@ export const MessageMention = {
|
|
|
5548
5497
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
5549
5498
|
role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
|
|
5550
5499
|
rolename: isSet(object.rolename) ? globalThis.String(object.rolename) : "",
|
|
5551
|
-
|
|
5500
|
+
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
5552
5501
|
s: isSet(object.s) ? globalThis.Number(object.s) : 0,
|
|
5553
5502
|
e: isSet(object.e) ? globalThis.Number(object.e) : 0,
|
|
5554
5503
|
};
|
|
@@ -5571,8 +5520,8 @@ export const MessageMention = {
|
|
|
5571
5520
|
if (message.rolename !== "") {
|
|
5572
5521
|
obj.rolename = message.rolename;
|
|
5573
5522
|
}
|
|
5574
|
-
if (message.
|
|
5575
|
-
obj.
|
|
5523
|
+
if (message.create_time_second !== 0) {
|
|
5524
|
+
obj.create_time_second = Math.round(message.create_time_second);
|
|
5576
5525
|
}
|
|
5577
5526
|
if (message.s !== 0) {
|
|
5578
5527
|
obj.s = Math.round(message.s);
|
|
@@ -5593,7 +5542,7 @@ export const MessageMention = {
|
|
|
5593
5542
|
message.username = object.username ?? "";
|
|
5594
5543
|
message.role_id = object.role_id ?? "";
|
|
5595
5544
|
message.rolename = object.rolename ?? "";
|
|
5596
|
-
message.
|
|
5545
|
+
message.create_time_second = object.create_time_second ?? 0;
|
|
5597
5546
|
message.s = object.s ?? 0;
|
|
5598
5547
|
message.e = object.e ?? 0;
|
|
5599
5548
|
return message;
|
|
@@ -7014,7 +6963,7 @@ export const DeleteNotificationsRequest = {
|
|
|
7014
6963
|
};
|
|
7015
6964
|
|
|
7016
6965
|
function createBaseEvent(): Event {
|
|
7017
|
-
return { name: "", properties: {},
|
|
6966
|
+
return { name: "", properties: {}, timestamp_seconds: 0, external: false };
|
|
7018
6967
|
}
|
|
7019
6968
|
|
|
7020
6969
|
export const Event = {
|
|
@@ -7025,8 +6974,8 @@ export const Event = {
|
|
|
7025
6974
|
Object.entries(message.properties).forEach(([key, value]) => {
|
|
7026
6975
|
Event_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
7027
6976
|
});
|
|
7028
|
-
if (message.
|
|
7029
|
-
|
|
6977
|
+
if (message.timestamp_seconds !== 0) {
|
|
6978
|
+
writer.uint32(24).uint32(message.timestamp_seconds);
|
|
7030
6979
|
}
|
|
7031
6980
|
if (message.external !== false) {
|
|
7032
6981
|
writer.uint32(32).bool(message.external);
|
|
@@ -7059,11 +7008,11 @@ export const Event = {
|
|
|
7059
7008
|
}
|
|
7060
7009
|
continue;
|
|
7061
7010
|
case 3:
|
|
7062
|
-
if (tag !==
|
|
7011
|
+
if (tag !== 24) {
|
|
7063
7012
|
break;
|
|
7064
7013
|
}
|
|
7065
7014
|
|
|
7066
|
-
message.
|
|
7015
|
+
message.timestamp_seconds = reader.uint32();
|
|
7067
7016
|
continue;
|
|
7068
7017
|
case 4:
|
|
7069
7018
|
if (tag !== 32) {
|
|
@@ -7090,7 +7039,7 @@ export const Event = {
|
|
|
7090
7039
|
return acc;
|
|
7091
7040
|
}, {})
|
|
7092
7041
|
: {},
|
|
7093
|
-
|
|
7042
|
+
timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
7094
7043
|
external: isSet(object.external) ? globalThis.Boolean(object.external) : false,
|
|
7095
7044
|
};
|
|
7096
7045
|
},
|
|
@@ -7109,8 +7058,8 @@ export const Event = {
|
|
|
7109
7058
|
});
|
|
7110
7059
|
}
|
|
7111
7060
|
}
|
|
7112
|
-
if (message.
|
|
7113
|
-
obj.
|
|
7061
|
+
if (message.timestamp_seconds !== 0) {
|
|
7062
|
+
obj.timestamp_seconds = Math.round(message.timestamp_seconds);
|
|
7114
7063
|
}
|
|
7115
7064
|
if (message.external !== false) {
|
|
7116
7065
|
obj.external = message.external;
|
|
@@ -7133,7 +7082,7 @@ export const Event = {
|
|
|
7133
7082
|
},
|
|
7134
7083
|
{},
|
|
7135
7084
|
);
|
|
7136
|
-
message.
|
|
7085
|
+
message.timestamp_seconds = object.timestamp_seconds ?? 0;
|
|
7137
7086
|
message.external = object.external ?? false;
|
|
7138
7087
|
return message;
|
|
7139
7088
|
},
|
|
@@ -7214,7 +7163,7 @@ export const Event_PropertiesEntry = {
|
|
|
7214
7163
|
};
|
|
7215
7164
|
|
|
7216
7165
|
function createBaseFriend(): Friend {
|
|
7217
|
-
return { user: undefined, state: 0,
|
|
7166
|
+
return { user: undefined, state: 0, update_time_seconds: 0, source_id: "" };
|
|
7218
7167
|
}
|
|
7219
7168
|
|
|
7220
7169
|
export const Friend = {
|
|
@@ -7225,8 +7174,8 @@ export const Friend = {
|
|
|
7225
7174
|
if (message.state !== 0) {
|
|
7226
7175
|
writer.uint32(16).int32(message.state);
|
|
7227
7176
|
}
|
|
7228
|
-
if (message.
|
|
7229
|
-
|
|
7177
|
+
if (message.update_time_seconds !== 0) {
|
|
7178
|
+
writer.uint32(24).uint32(message.update_time_seconds);
|
|
7230
7179
|
}
|
|
7231
7180
|
if (message.source_id !== "") {
|
|
7232
7181
|
writer.uint32(34).string(message.source_id);
|
|
@@ -7256,11 +7205,11 @@ export const Friend = {
|
|
|
7256
7205
|
message.state = reader.int32();
|
|
7257
7206
|
continue;
|
|
7258
7207
|
case 3:
|
|
7259
|
-
if (tag !==
|
|
7208
|
+
if (tag !== 24) {
|
|
7260
7209
|
break;
|
|
7261
7210
|
}
|
|
7262
7211
|
|
|
7263
|
-
message.
|
|
7212
|
+
message.update_time_seconds = reader.uint32();
|
|
7264
7213
|
continue;
|
|
7265
7214
|
case 4:
|
|
7266
7215
|
if (tag !== 34) {
|
|
@@ -7282,7 +7231,7 @@ export const Friend = {
|
|
|
7282
7231
|
return {
|
|
7283
7232
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
7284
7233
|
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
7285
|
-
|
|
7234
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
7286
7235
|
source_id: isSet(object.source_id) ? globalThis.String(object.source_id) : "",
|
|
7287
7236
|
};
|
|
7288
7237
|
},
|
|
@@ -7295,8 +7244,8 @@ export const Friend = {
|
|
|
7295
7244
|
if (message.state !== 0) {
|
|
7296
7245
|
obj.state = Math.round(message.state);
|
|
7297
7246
|
}
|
|
7298
|
-
if (message.
|
|
7299
|
-
obj.
|
|
7247
|
+
if (message.update_time_seconds !== 0) {
|
|
7248
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
7300
7249
|
}
|
|
7301
7250
|
if (message.source_id !== "") {
|
|
7302
7251
|
obj.source_id = message.source_id;
|
|
@@ -7311,7 +7260,7 @@ export const Friend = {
|
|
|
7311
7260
|
const message = createBaseFriend();
|
|
7312
7261
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
7313
7262
|
message.state = object.state ?? 0;
|
|
7314
|
-
message.
|
|
7263
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
7315
7264
|
message.source_id = object.source_id ?? "";
|
|
7316
7265
|
return message;
|
|
7317
7266
|
},
|
|
@@ -9641,7 +9590,7 @@ function createBaseNotification(): Notification {
|
|
|
9641
9590
|
content: new Uint8Array(0),
|
|
9642
9591
|
code: 0,
|
|
9643
9592
|
sender_id: "",
|
|
9644
|
-
|
|
9593
|
+
create_time_seconds: 0,
|
|
9645
9594
|
persistent: false,
|
|
9646
9595
|
clan_id: "",
|
|
9647
9596
|
channel_id: "",
|
|
@@ -9670,8 +9619,8 @@ export const Notification = {
|
|
|
9670
9619
|
if (message.sender_id !== "") {
|
|
9671
9620
|
writer.uint32(42).string(message.sender_id);
|
|
9672
9621
|
}
|
|
9673
|
-
if (message.
|
|
9674
|
-
|
|
9622
|
+
if (message.create_time_seconds !== 0) {
|
|
9623
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
9675
9624
|
}
|
|
9676
9625
|
if (message.persistent !== false) {
|
|
9677
9626
|
writer.uint32(56).bool(message.persistent);
|
|
@@ -9743,11 +9692,11 @@ export const Notification = {
|
|
|
9743
9692
|
message.sender_id = reader.string();
|
|
9744
9693
|
continue;
|
|
9745
9694
|
case 6:
|
|
9746
|
-
if (tag !==
|
|
9695
|
+
if (tag !== 48) {
|
|
9747
9696
|
break;
|
|
9748
9697
|
}
|
|
9749
9698
|
|
|
9750
|
-
message.
|
|
9699
|
+
message.create_time_seconds = reader.uint32();
|
|
9751
9700
|
continue;
|
|
9752
9701
|
case 7:
|
|
9753
9702
|
if (tag !== 56) {
|
|
@@ -9821,7 +9770,7 @@ export const Notification = {
|
|
|
9821
9770
|
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
9822
9771
|
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
9823
9772
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
9824
|
-
|
|
9773
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
9825
9774
|
persistent: isSet(object.persistent) ? globalThis.Boolean(object.persistent) : false,
|
|
9826
9775
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9827
9776
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
@@ -9850,8 +9799,8 @@ export const Notification = {
|
|
|
9850
9799
|
if (message.sender_id !== "") {
|
|
9851
9800
|
obj.sender_id = message.sender_id;
|
|
9852
9801
|
}
|
|
9853
|
-
if (message.
|
|
9854
|
-
obj.
|
|
9802
|
+
if (message.create_time_seconds !== 0) {
|
|
9803
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
9855
9804
|
}
|
|
9856
9805
|
if (message.persistent !== false) {
|
|
9857
9806
|
obj.persistent = message.persistent;
|
|
@@ -9890,7 +9839,7 @@ export const Notification = {
|
|
|
9890
9839
|
message.content = object.content ?? new Uint8Array(0);
|
|
9891
9840
|
message.code = object.code ?? 0;
|
|
9892
9841
|
message.sender_id = object.sender_id ?? "";
|
|
9893
|
-
message.
|
|
9842
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
9894
9843
|
message.persistent = object.persistent ?? false;
|
|
9895
9844
|
message.clan_id = object.clan_id ?? "";
|
|
9896
9845
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -9906,7 +9855,7 @@ export const Notification = {
|
|
|
9906
9855
|
};
|
|
9907
9856
|
|
|
9908
9857
|
function createBaseEmojiRecent(): EmojiRecent {
|
|
9909
|
-
return { emoji_recents_id: "", emoji_id: "",
|
|
9858
|
+
return { emoji_recents_id: "", emoji_id: "", update_time_seconds: 0 };
|
|
9910
9859
|
}
|
|
9911
9860
|
|
|
9912
9861
|
export const EmojiRecent = {
|
|
@@ -9917,8 +9866,8 @@ export const EmojiRecent = {
|
|
|
9917
9866
|
if (message.emoji_id !== "") {
|
|
9918
9867
|
writer.uint32(18).string(message.emoji_id);
|
|
9919
9868
|
}
|
|
9920
|
-
if (message.
|
|
9921
|
-
|
|
9869
|
+
if (message.update_time_seconds !== 0) {
|
|
9870
|
+
writer.uint32(24).uint32(message.update_time_seconds);
|
|
9922
9871
|
}
|
|
9923
9872
|
return writer;
|
|
9924
9873
|
},
|
|
@@ -9945,11 +9894,11 @@ export const EmojiRecent = {
|
|
|
9945
9894
|
message.emoji_id = reader.string();
|
|
9946
9895
|
continue;
|
|
9947
9896
|
case 3:
|
|
9948
|
-
if (tag !==
|
|
9897
|
+
if (tag !== 24) {
|
|
9949
9898
|
break;
|
|
9950
9899
|
}
|
|
9951
9900
|
|
|
9952
|
-
message.
|
|
9901
|
+
message.update_time_seconds = reader.uint32();
|
|
9953
9902
|
continue;
|
|
9954
9903
|
}
|
|
9955
9904
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9964,7 +9913,7 @@ export const EmojiRecent = {
|
|
|
9964
9913
|
return {
|
|
9965
9914
|
emoji_recents_id: isSet(object.emoji_recents_id) ? globalThis.String(object.emoji_recents_id) : "",
|
|
9966
9915
|
emoji_id: isSet(object.emoji_id) ? globalThis.String(object.emoji_id) : "",
|
|
9967
|
-
|
|
9916
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
9968
9917
|
};
|
|
9969
9918
|
},
|
|
9970
9919
|
|
|
@@ -9976,8 +9925,8 @@ export const EmojiRecent = {
|
|
|
9976
9925
|
if (message.emoji_id !== "") {
|
|
9977
9926
|
obj.emoji_id = message.emoji_id;
|
|
9978
9927
|
}
|
|
9979
|
-
if (message.
|
|
9980
|
-
obj.
|
|
9928
|
+
if (message.update_time_seconds !== 0) {
|
|
9929
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
9981
9930
|
}
|
|
9982
9931
|
return obj;
|
|
9983
9932
|
},
|
|
@@ -9989,7 +9938,7 @@ export const EmojiRecent = {
|
|
|
9989
9938
|
const message = createBaseEmojiRecent();
|
|
9990
9939
|
message.emoji_recents_id = object.emoji_recents_id ?? "";
|
|
9991
9940
|
message.emoji_id = object.emoji_id ?? "";
|
|
9992
|
-
message.
|
|
9941
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
9993
9942
|
return message;
|
|
9994
9943
|
},
|
|
9995
9944
|
};
|
|
@@ -10599,7 +10548,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10599
10548
|
location: undefined,
|
|
10600
10549
|
timezone: undefined,
|
|
10601
10550
|
about_me: undefined,
|
|
10602
|
-
|
|
10551
|
+
dob_seconds: 0,
|
|
10603
10552
|
logo: undefined,
|
|
10604
10553
|
splash_screen: undefined,
|
|
10605
10554
|
encrypt_private_key: "",
|
|
@@ -10627,8 +10576,8 @@ export const UpdateAccountRequest = {
|
|
|
10627
10576
|
if (message.about_me !== undefined) {
|
|
10628
10577
|
StringValue.encode({ value: message.about_me! }, writer.uint32(50).fork()).ldelim();
|
|
10629
10578
|
}
|
|
10630
|
-
if (message.
|
|
10631
|
-
|
|
10579
|
+
if (message.dob_seconds !== 0) {
|
|
10580
|
+
writer.uint32(56).uint32(message.dob_seconds);
|
|
10632
10581
|
}
|
|
10633
10582
|
if (message.logo !== undefined) {
|
|
10634
10583
|
StringValue.encode({ value: message.logo! }, writer.uint32(66).fork()).ldelim();
|
|
@@ -10695,11 +10644,11 @@ export const UpdateAccountRequest = {
|
|
|
10695
10644
|
message.about_me = StringValue.decode(reader, reader.uint32()).value;
|
|
10696
10645
|
continue;
|
|
10697
10646
|
case 7:
|
|
10698
|
-
if (tag !==
|
|
10647
|
+
if (tag !== 56) {
|
|
10699
10648
|
break;
|
|
10700
10649
|
}
|
|
10701
10650
|
|
|
10702
|
-
message.
|
|
10651
|
+
message.dob_seconds = reader.uint32();
|
|
10703
10652
|
continue;
|
|
10704
10653
|
case 8:
|
|
10705
10654
|
if (tag !== 66) {
|
|
@@ -10746,7 +10695,7 @@ export const UpdateAccountRequest = {
|
|
|
10746
10695
|
location: isSet(object.location) ? String(object.location) : undefined,
|
|
10747
10696
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
10748
10697
|
about_me: isSet(object.about_me) ? String(object.about_me) : undefined,
|
|
10749
|
-
|
|
10698
|
+
dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
10750
10699
|
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
10751
10700
|
splash_screen: isSet(object.splash_screen) ? String(object.splash_screen) : undefined,
|
|
10752
10701
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
@@ -10774,8 +10723,8 @@ export const UpdateAccountRequest = {
|
|
|
10774
10723
|
if (message.about_me !== undefined) {
|
|
10775
10724
|
obj.about_me = message.about_me;
|
|
10776
10725
|
}
|
|
10777
|
-
if (message.
|
|
10778
|
-
obj.
|
|
10726
|
+
if (message.dob_seconds !== 0) {
|
|
10727
|
+
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
10779
10728
|
}
|
|
10780
10729
|
if (message.logo !== undefined) {
|
|
10781
10730
|
obj.logo = message.logo;
|
|
@@ -10803,7 +10752,7 @@ export const UpdateAccountRequest = {
|
|
|
10803
10752
|
message.location = object.location ?? undefined;
|
|
10804
10753
|
message.timezone = object.timezone ?? undefined;
|
|
10805
10754
|
message.about_me = object.about_me ?? undefined;
|
|
10806
|
-
message.
|
|
10755
|
+
message.dob_seconds = object.dob_seconds ?? 0;
|
|
10807
10756
|
message.logo = object.logo ?? undefined;
|
|
10808
10757
|
message.splash_screen = object.splash_screen ?? undefined;
|
|
10809
10758
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
@@ -11055,12 +11004,12 @@ function createBaseUser(): User {
|
|
|
11055
11004
|
online: false,
|
|
11056
11005
|
phone_number: "",
|
|
11057
11006
|
edge_count: 0,
|
|
11058
|
-
|
|
11059
|
-
|
|
11007
|
+
create_time_seconds: 0,
|
|
11008
|
+
update_time_seconds: 0,
|
|
11060
11009
|
about_me: "",
|
|
11061
|
-
|
|
11010
|
+
join_time_seconds: 0,
|
|
11062
11011
|
is_mobile: false,
|
|
11063
|
-
|
|
11012
|
+
dob_seconds: 0,
|
|
11064
11013
|
mezon_id: "",
|
|
11065
11014
|
list_nick_names: [],
|
|
11066
11015
|
status: "",
|
|
@@ -11102,23 +11051,23 @@ export const User = {
|
|
|
11102
11051
|
if (message.edge_count !== 0) {
|
|
11103
11052
|
writer.uint32(88).int32(message.edge_count);
|
|
11104
11053
|
}
|
|
11105
|
-
if (message.
|
|
11106
|
-
|
|
11054
|
+
if (message.create_time_seconds !== 0) {
|
|
11055
|
+
writer.uint32(96).uint32(message.create_time_seconds);
|
|
11107
11056
|
}
|
|
11108
|
-
if (message.
|
|
11109
|
-
|
|
11057
|
+
if (message.update_time_seconds !== 0) {
|
|
11058
|
+
writer.uint32(104).uint32(message.update_time_seconds);
|
|
11110
11059
|
}
|
|
11111
11060
|
if (message.about_me !== "") {
|
|
11112
11061
|
writer.uint32(114).string(message.about_me);
|
|
11113
11062
|
}
|
|
11114
|
-
if (message.
|
|
11115
|
-
|
|
11063
|
+
if (message.join_time_seconds !== 0) {
|
|
11064
|
+
writer.uint32(120).uint32(message.join_time_seconds);
|
|
11116
11065
|
}
|
|
11117
11066
|
if (message.is_mobile !== false) {
|
|
11118
11067
|
writer.uint32(128).bool(message.is_mobile);
|
|
11119
11068
|
}
|
|
11120
|
-
if (message.
|
|
11121
|
-
|
|
11069
|
+
if (message.dob_seconds !== 0) {
|
|
11070
|
+
writer.uint32(136).uint32(message.dob_seconds);
|
|
11122
11071
|
}
|
|
11123
11072
|
if (message.mezon_id !== "") {
|
|
11124
11073
|
writer.uint32(146).string(message.mezon_id);
|
|
@@ -11217,18 +11166,18 @@ export const User = {
|
|
|
11217
11166
|
message.edge_count = reader.int32();
|
|
11218
11167
|
continue;
|
|
11219
11168
|
case 12:
|
|
11220
|
-
if (tag !==
|
|
11169
|
+
if (tag !== 96) {
|
|
11221
11170
|
break;
|
|
11222
11171
|
}
|
|
11223
11172
|
|
|
11224
|
-
message.
|
|
11173
|
+
message.create_time_seconds = reader.uint32();
|
|
11225
11174
|
continue;
|
|
11226
11175
|
case 13:
|
|
11227
|
-
if (tag !==
|
|
11176
|
+
if (tag !== 104) {
|
|
11228
11177
|
break;
|
|
11229
11178
|
}
|
|
11230
11179
|
|
|
11231
|
-
message.
|
|
11180
|
+
message.update_time_seconds = reader.uint32();
|
|
11232
11181
|
continue;
|
|
11233
11182
|
case 14:
|
|
11234
11183
|
if (tag !== 114) {
|
|
@@ -11238,11 +11187,11 @@ export const User = {
|
|
|
11238
11187
|
message.about_me = reader.string();
|
|
11239
11188
|
continue;
|
|
11240
11189
|
case 15:
|
|
11241
|
-
if (tag !==
|
|
11190
|
+
if (tag !== 120) {
|
|
11242
11191
|
break;
|
|
11243
11192
|
}
|
|
11244
11193
|
|
|
11245
|
-
message.
|
|
11194
|
+
message.join_time_seconds = reader.uint32();
|
|
11246
11195
|
continue;
|
|
11247
11196
|
case 16:
|
|
11248
11197
|
if (tag !== 128) {
|
|
@@ -11252,11 +11201,11 @@ export const User = {
|
|
|
11252
11201
|
message.is_mobile = reader.bool();
|
|
11253
11202
|
continue;
|
|
11254
11203
|
case 17:
|
|
11255
|
-
if (tag !==
|
|
11204
|
+
if (tag !== 136) {
|
|
11256
11205
|
break;
|
|
11257
11206
|
}
|
|
11258
11207
|
|
|
11259
|
-
message.
|
|
11208
|
+
message.dob_seconds = reader.uint32();
|
|
11260
11209
|
continue;
|
|
11261
11210
|
case 18:
|
|
11262
11211
|
if (tag !== 146) {
|
|
@@ -11301,12 +11250,12 @@ export const User = {
|
|
|
11301
11250
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
11302
11251
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
11303
11252
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
11304
|
-
|
|
11305
|
-
|
|
11253
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
11254
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
11306
11255
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11307
|
-
|
|
11256
|
+
join_time_seconds: isSet(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
|
|
11308
11257
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
11309
|
-
|
|
11258
|
+
dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
11310
11259
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
11311
11260
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
11312
11261
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
@@ -11350,23 +11299,23 @@ export const User = {
|
|
|
11350
11299
|
if (message.edge_count !== 0) {
|
|
11351
11300
|
obj.edge_count = Math.round(message.edge_count);
|
|
11352
11301
|
}
|
|
11353
|
-
if (message.
|
|
11354
|
-
obj.
|
|
11302
|
+
if (message.create_time_seconds !== 0) {
|
|
11303
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
11355
11304
|
}
|
|
11356
|
-
if (message.
|
|
11357
|
-
obj.
|
|
11305
|
+
if (message.update_time_seconds !== 0) {
|
|
11306
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
11358
11307
|
}
|
|
11359
11308
|
if (message.about_me !== "") {
|
|
11360
11309
|
obj.about_me = message.about_me;
|
|
11361
11310
|
}
|
|
11362
|
-
if (message.
|
|
11363
|
-
obj.
|
|
11311
|
+
if (message.join_time_seconds !== 0) {
|
|
11312
|
+
obj.join_time_seconds = Math.round(message.join_time_seconds);
|
|
11364
11313
|
}
|
|
11365
11314
|
if (message.is_mobile !== false) {
|
|
11366
11315
|
obj.is_mobile = message.is_mobile;
|
|
11367
11316
|
}
|
|
11368
|
-
if (message.
|
|
11369
|
-
obj.
|
|
11317
|
+
if (message.dob_seconds !== 0) {
|
|
11318
|
+
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
11370
11319
|
}
|
|
11371
11320
|
if (message.mezon_id !== "") {
|
|
11372
11321
|
obj.mezon_id = message.mezon_id;
|
|
@@ -11396,12 +11345,12 @@ export const User = {
|
|
|
11396
11345
|
message.online = object.online ?? false;
|
|
11397
11346
|
message.phone_number = object.phone_number ?? "";
|
|
11398
11347
|
message.edge_count = object.edge_count ?? 0;
|
|
11399
|
-
message.
|
|
11400
|
-
message.
|
|
11348
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
11349
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
11401
11350
|
message.about_me = object.about_me ?? "";
|
|
11402
|
-
message.
|
|
11351
|
+
message.join_time_seconds = object.join_time_seconds ?? 0;
|
|
11403
11352
|
message.is_mobile = object.is_mobile ?? false;
|
|
11404
|
-
message.
|
|
11353
|
+
message.dob_seconds = object.dob_seconds ?? 0;
|
|
11405
11354
|
message.mezon_id = object.mezon_id ?? "";
|
|
11406
11355
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11407
11356
|
message.status = object.status ?? "";
|
|
@@ -12949,7 +12898,7 @@ function createBaseInviteUserRes(): InviteUserRes {
|
|
|
12949
12898
|
clan_name: "",
|
|
12950
12899
|
channel_label: "",
|
|
12951
12900
|
user_joined: false,
|
|
12952
|
-
|
|
12901
|
+
expiry_time_seconds: 0,
|
|
12953
12902
|
channel_desc: undefined,
|
|
12954
12903
|
clan_logo: "",
|
|
12955
12904
|
member_count: 0,
|
|
@@ -12973,8 +12922,8 @@ export const InviteUserRes = {
|
|
|
12973
12922
|
if (message.user_joined !== false) {
|
|
12974
12923
|
writer.uint32(40).bool(message.user_joined);
|
|
12975
12924
|
}
|
|
12976
|
-
if (message.
|
|
12977
|
-
|
|
12925
|
+
if (message.expiry_time_seconds !== 0) {
|
|
12926
|
+
writer.uint32(48).uint32(message.expiry_time_seconds);
|
|
12978
12927
|
}
|
|
12979
12928
|
if (message.channel_desc !== undefined) {
|
|
12980
12929
|
ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
|
|
@@ -13031,11 +12980,11 @@ export const InviteUserRes = {
|
|
|
13031
12980
|
message.user_joined = reader.bool();
|
|
13032
12981
|
continue;
|
|
13033
12982
|
case 6:
|
|
13034
|
-
if (tag !==
|
|
12983
|
+
if (tag !== 48) {
|
|
13035
12984
|
break;
|
|
13036
12985
|
}
|
|
13037
12986
|
|
|
13038
|
-
message.
|
|
12987
|
+
message.expiry_time_seconds = reader.uint32();
|
|
13039
12988
|
continue;
|
|
13040
12989
|
case 7:
|
|
13041
12990
|
if (tag !== 58) {
|
|
@@ -13074,7 +13023,7 @@ export const InviteUserRes = {
|
|
|
13074
13023
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
13075
13024
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
13076
13025
|
user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
|
|
13077
|
-
|
|
13026
|
+
expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
|
|
13078
13027
|
channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
|
|
13079
13028
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
13080
13029
|
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
@@ -13098,8 +13047,8 @@ export const InviteUserRes = {
|
|
|
13098
13047
|
if (message.user_joined !== false) {
|
|
13099
13048
|
obj.user_joined = message.user_joined;
|
|
13100
13049
|
}
|
|
13101
|
-
if (message.
|
|
13102
|
-
obj.
|
|
13050
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13051
|
+
obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
|
|
13103
13052
|
}
|
|
13104
13053
|
if (message.channel_desc !== undefined) {
|
|
13105
13054
|
obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
|
|
@@ -13123,7 +13072,7 @@ export const InviteUserRes = {
|
|
|
13123
13072
|
message.clan_name = object.clan_name ?? "";
|
|
13124
13073
|
message.channel_label = object.channel_label ?? "";
|
|
13125
13074
|
message.user_joined = object.user_joined ?? false;
|
|
13126
|
-
message.
|
|
13075
|
+
message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
|
|
13127
13076
|
message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
|
|
13128
13077
|
? ChannelDescription.fromPartial(object.channel_desc)
|
|
13129
13078
|
: undefined;
|
|
@@ -13213,8 +13162,8 @@ function createBaseLinkInviteUser(): LinkInviteUser {
|
|
|
13213
13162
|
creator_id: "",
|
|
13214
13163
|
channel_id: "",
|
|
13215
13164
|
invite_link: "",
|
|
13216
|
-
|
|
13217
|
-
|
|
13165
|
+
create_time_seconds: 0,
|
|
13166
|
+
expiry_time_seconds: 0,
|
|
13218
13167
|
id: "",
|
|
13219
13168
|
};
|
|
13220
13169
|
}
|
|
@@ -13233,11 +13182,11 @@ export const LinkInviteUser = {
|
|
|
13233
13182
|
if (message.invite_link !== "") {
|
|
13234
13183
|
writer.uint32(34).string(message.invite_link);
|
|
13235
13184
|
}
|
|
13236
|
-
if (message.
|
|
13237
|
-
|
|
13185
|
+
if (message.create_time_seconds !== 0) {
|
|
13186
|
+
writer.uint32(40).uint32(message.create_time_seconds);
|
|
13238
13187
|
}
|
|
13239
|
-
if (message.
|
|
13240
|
-
|
|
13188
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13189
|
+
writer.uint32(48).uint32(message.expiry_time_seconds);
|
|
13241
13190
|
}
|
|
13242
13191
|
if (message.id !== "") {
|
|
13243
13192
|
writer.uint32(58).string(message.id);
|
|
@@ -13281,18 +13230,18 @@ export const LinkInviteUser = {
|
|
|
13281
13230
|
message.invite_link = reader.string();
|
|
13282
13231
|
continue;
|
|
13283
13232
|
case 5:
|
|
13284
|
-
if (tag !==
|
|
13233
|
+
if (tag !== 40) {
|
|
13285
13234
|
break;
|
|
13286
13235
|
}
|
|
13287
13236
|
|
|
13288
|
-
message.
|
|
13237
|
+
message.create_time_seconds = reader.uint32();
|
|
13289
13238
|
continue;
|
|
13290
13239
|
case 6:
|
|
13291
|
-
if (tag !==
|
|
13240
|
+
if (tag !== 48) {
|
|
13292
13241
|
break;
|
|
13293
13242
|
}
|
|
13294
13243
|
|
|
13295
|
-
message.
|
|
13244
|
+
message.expiry_time_seconds = reader.uint32();
|
|
13296
13245
|
continue;
|
|
13297
13246
|
case 7:
|
|
13298
13247
|
if (tag !== 58) {
|
|
@@ -13316,8 +13265,8 @@ export const LinkInviteUser = {
|
|
|
13316
13265
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
13317
13266
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13318
13267
|
invite_link: isSet(object.invite_link) ? globalThis.String(object.invite_link) : "",
|
|
13319
|
-
|
|
13320
|
-
|
|
13268
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
13269
|
+
expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
|
|
13321
13270
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
13322
13271
|
};
|
|
13323
13272
|
},
|
|
@@ -13336,11 +13285,11 @@ export const LinkInviteUser = {
|
|
|
13336
13285
|
if (message.invite_link !== "") {
|
|
13337
13286
|
obj.invite_link = message.invite_link;
|
|
13338
13287
|
}
|
|
13339
|
-
if (message.
|
|
13340
|
-
obj.
|
|
13288
|
+
if (message.create_time_seconds !== 0) {
|
|
13289
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
13341
13290
|
}
|
|
13342
|
-
if (message.
|
|
13343
|
-
obj.
|
|
13291
|
+
if (message.expiry_time_seconds !== 0) {
|
|
13292
|
+
obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
|
|
13344
13293
|
}
|
|
13345
13294
|
if (message.id !== "") {
|
|
13346
13295
|
obj.id = message.id;
|
|
@@ -13357,8 +13306,8 @@ export const LinkInviteUser = {
|
|
|
13357
13306
|
message.creator_id = object.creator_id ?? "";
|
|
13358
13307
|
message.channel_id = object.channel_id ?? "";
|
|
13359
13308
|
message.invite_link = object.invite_link ?? "";
|
|
13360
|
-
message.
|
|
13361
|
-
message.
|
|
13309
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
13310
|
+
message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
|
|
13362
13311
|
message.id = object.id ?? "";
|
|
13363
13312
|
return message;
|
|
13364
13313
|
},
|
|
@@ -14499,16 +14448,7 @@ export const ListCategoryDescsRequest = {
|
|
|
14499
14448
|
};
|
|
14500
14449
|
|
|
14501
14450
|
function createBaseChannelMessageHeader(): ChannelMessageHeader {
|
|
14502
|
-
return {
|
|
14503
|
-
id: "",
|
|
14504
|
-
timestamp_seconds: 0,
|
|
14505
|
-
sender_id: "",
|
|
14506
|
-
content: "",
|
|
14507
|
-
attachment: new Uint8Array(0),
|
|
14508
|
-
reference: new Uint8Array(0),
|
|
14509
|
-
mention: new Uint8Array(0),
|
|
14510
|
-
reaction: new Uint8Array(0),
|
|
14511
|
-
};
|
|
14451
|
+
return { id: "", timestamp_seconds: 0, sender_id: "", content: "" };
|
|
14512
14452
|
}
|
|
14513
14453
|
|
|
14514
14454
|
export const ChannelMessageHeader = {
|
|
@@ -14525,18 +14465,6 @@ export const ChannelMessageHeader = {
|
|
|
14525
14465
|
if (message.content !== "") {
|
|
14526
14466
|
writer.uint32(34).string(message.content);
|
|
14527
14467
|
}
|
|
14528
|
-
if (message.attachment.length !== 0) {
|
|
14529
|
-
writer.uint32(42).bytes(message.attachment);
|
|
14530
|
-
}
|
|
14531
|
-
if (message.reference.length !== 0) {
|
|
14532
|
-
writer.uint32(50).bytes(message.reference);
|
|
14533
|
-
}
|
|
14534
|
-
if (message.mention.length !== 0) {
|
|
14535
|
-
writer.uint32(58).bytes(message.mention);
|
|
14536
|
-
}
|
|
14537
|
-
if (message.reaction.length !== 0) {
|
|
14538
|
-
writer.uint32(66).bytes(message.reaction);
|
|
14539
|
-
}
|
|
14540
14468
|
return writer;
|
|
14541
14469
|
},
|
|
14542
14470
|
|
|
@@ -14575,34 +14503,6 @@ export const ChannelMessageHeader = {
|
|
|
14575
14503
|
|
|
14576
14504
|
message.content = reader.string();
|
|
14577
14505
|
continue;
|
|
14578
|
-
case 5:
|
|
14579
|
-
if (tag !== 42) {
|
|
14580
|
-
break;
|
|
14581
|
-
}
|
|
14582
|
-
|
|
14583
|
-
message.attachment = reader.bytes();
|
|
14584
|
-
continue;
|
|
14585
|
-
case 6:
|
|
14586
|
-
if (tag !== 50) {
|
|
14587
|
-
break;
|
|
14588
|
-
}
|
|
14589
|
-
|
|
14590
|
-
message.reference = reader.bytes();
|
|
14591
|
-
continue;
|
|
14592
|
-
case 7:
|
|
14593
|
-
if (tag !== 58) {
|
|
14594
|
-
break;
|
|
14595
|
-
}
|
|
14596
|
-
|
|
14597
|
-
message.mention = reader.bytes();
|
|
14598
|
-
continue;
|
|
14599
|
-
case 8:
|
|
14600
|
-
if (tag !== 66) {
|
|
14601
|
-
break;
|
|
14602
|
-
}
|
|
14603
|
-
|
|
14604
|
-
message.reaction = reader.bytes();
|
|
14605
|
-
continue;
|
|
14606
14506
|
}
|
|
14607
14507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14608
14508
|
break;
|
|
@@ -14618,10 +14518,6 @@ export const ChannelMessageHeader = {
|
|
|
14618
14518
|
timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
|
|
14619
14519
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
14620
14520
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
14621
|
-
attachment: isSet(object.attachment) ? bytesFromBase64(object.attachment) : new Uint8Array(0),
|
|
14622
|
-
reference: isSet(object.reference) ? bytesFromBase64(object.reference) : new Uint8Array(0),
|
|
14623
|
-
mention: isSet(object.mention) ? bytesFromBase64(object.mention) : new Uint8Array(0),
|
|
14624
|
-
reaction: isSet(object.reaction) ? bytesFromBase64(object.reaction) : new Uint8Array(0),
|
|
14625
14521
|
};
|
|
14626
14522
|
},
|
|
14627
14523
|
|
|
@@ -14639,18 +14535,6 @@ export const ChannelMessageHeader = {
|
|
|
14639
14535
|
if (message.content !== "") {
|
|
14640
14536
|
obj.content = message.content;
|
|
14641
14537
|
}
|
|
14642
|
-
if (message.attachment.length !== 0) {
|
|
14643
|
-
obj.attachment = base64FromBytes(message.attachment);
|
|
14644
|
-
}
|
|
14645
|
-
if (message.reference.length !== 0) {
|
|
14646
|
-
obj.reference = base64FromBytes(message.reference);
|
|
14647
|
-
}
|
|
14648
|
-
if (message.mention.length !== 0) {
|
|
14649
|
-
obj.mention = base64FromBytes(message.mention);
|
|
14650
|
-
}
|
|
14651
|
-
if (message.reaction.length !== 0) {
|
|
14652
|
-
obj.reaction = base64FromBytes(message.reaction);
|
|
14653
|
-
}
|
|
14654
14538
|
return obj;
|
|
14655
14539
|
},
|
|
14656
14540
|
|
|
@@ -14663,10 +14547,6 @@ export const ChannelMessageHeader = {
|
|
|
14663
14547
|
message.timestamp_seconds = object.timestamp_seconds ?? 0;
|
|
14664
14548
|
message.sender_id = object.sender_id ?? "";
|
|
14665
14549
|
message.content = object.content ?? "";
|
|
14666
|
-
message.attachment = object.attachment ?? new Uint8Array(0);
|
|
14667
|
-
message.reference = object.reference ?? new Uint8Array(0);
|
|
14668
|
-
message.mention = object.mention ?? new Uint8Array(0);
|
|
14669
|
-
message.reaction = object.reaction ?? new Uint8Array(0);
|
|
14670
14550
|
return message;
|
|
14671
14551
|
},
|
|
14672
14552
|
};
|
|
@@ -15778,7 +15658,7 @@ function createBaseCreateChannelDescRequest(): CreateChannelDescRequest {
|
|
|
15778
15658
|
parent_id: "",
|
|
15779
15659
|
channel_id: "",
|
|
15780
15660
|
category_id: "",
|
|
15781
|
-
type:
|
|
15661
|
+
type: 0,
|
|
15782
15662
|
channel_label: "",
|
|
15783
15663
|
channel_private: 0,
|
|
15784
15664
|
user_ids: [],
|
|
@@ -15800,8 +15680,8 @@ export const CreateChannelDescRequest = {
|
|
|
15800
15680
|
if (message.category_id !== "") {
|
|
15801
15681
|
writer.uint32(34).string(message.category_id);
|
|
15802
15682
|
}
|
|
15803
|
-
if (message.type !==
|
|
15804
|
-
|
|
15683
|
+
if (message.type !== 0) {
|
|
15684
|
+
writer.uint32(40).int32(message.type);
|
|
15805
15685
|
}
|
|
15806
15686
|
if (message.channel_label !== "") {
|
|
15807
15687
|
writer.uint32(50).string(message.channel_label);
|
|
@@ -15854,11 +15734,11 @@ export const CreateChannelDescRequest = {
|
|
|
15854
15734
|
message.category_id = reader.string();
|
|
15855
15735
|
continue;
|
|
15856
15736
|
case 5:
|
|
15857
|
-
if (tag !==
|
|
15737
|
+
if (tag !== 40) {
|
|
15858
15738
|
break;
|
|
15859
15739
|
}
|
|
15860
15740
|
|
|
15861
|
-
message.type =
|
|
15741
|
+
message.type = reader.int32();
|
|
15862
15742
|
continue;
|
|
15863
15743
|
case 6:
|
|
15864
15744
|
if (tag !== 50) {
|
|
@@ -15903,7 +15783,7 @@ export const CreateChannelDescRequest = {
|
|
|
15903
15783
|
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
15904
15784
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15905
15785
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
15906
|
-
type: isSet(object.type) ? Number(object.type) :
|
|
15786
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
15907
15787
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
15908
15788
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
15909
15789
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
@@ -15925,8 +15805,8 @@ export const CreateChannelDescRequest = {
|
|
|
15925
15805
|
if (message.category_id !== "") {
|
|
15926
15806
|
obj.category_id = message.category_id;
|
|
15927
15807
|
}
|
|
15928
|
-
if (message.type !==
|
|
15929
|
-
obj.type = message.type;
|
|
15808
|
+
if (message.type !== 0) {
|
|
15809
|
+
obj.type = Math.round(message.type);
|
|
15930
15810
|
}
|
|
15931
15811
|
if (message.channel_label !== "") {
|
|
15932
15812
|
obj.channel_label = message.channel_label;
|
|
@@ -15952,7 +15832,7 @@ export const CreateChannelDescRequest = {
|
|
|
15952
15832
|
message.parent_id = object.parent_id ?? "";
|
|
15953
15833
|
message.channel_id = object.channel_id ?? "";
|
|
15954
15834
|
message.category_id = object.category_id ?? "";
|
|
15955
|
-
message.type = object.type ??
|
|
15835
|
+
message.type = object.type ?? 0;
|
|
15956
15836
|
message.channel_label = object.channel_label ?? "";
|
|
15957
15837
|
message.channel_private = object.channel_private ?? 0;
|
|
15958
15838
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
@@ -18040,9 +17920,8 @@ function createBasePinMessage(): PinMessage {
|
|
|
18040
17920
|
content: "",
|
|
18041
17921
|
username: "",
|
|
18042
17922
|
avatar: "",
|
|
18043
|
-
create_time: undefined,
|
|
18044
17923
|
create_time_seconds: 0,
|
|
18045
|
-
attachment:
|
|
17924
|
+
attachment: new Uint8Array(0),
|
|
18046
17925
|
};
|
|
18047
17926
|
}
|
|
18048
17927
|
|
|
@@ -18069,14 +17948,11 @@ export const PinMessage = {
|
|
|
18069
17948
|
if (message.avatar !== "") {
|
|
18070
17949
|
writer.uint32(58).string(message.avatar);
|
|
18071
17950
|
}
|
|
18072
|
-
if (message.create_time !== undefined) {
|
|
18073
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
|
|
18074
|
-
}
|
|
18075
17951
|
if (message.create_time_seconds !== 0) {
|
|
18076
|
-
writer.uint32(
|
|
17952
|
+
writer.uint32(64).uint32(message.create_time_seconds);
|
|
18077
17953
|
}
|
|
18078
|
-
if (message.attachment !==
|
|
18079
|
-
writer.uint32(
|
|
17954
|
+
if (message.attachment.length !== 0) {
|
|
17955
|
+
writer.uint32(74).bytes(message.attachment);
|
|
18080
17956
|
}
|
|
18081
17957
|
return writer;
|
|
18082
17958
|
},
|
|
@@ -18138,25 +18014,18 @@ export const PinMessage = {
|
|
|
18138
18014
|
message.avatar = reader.string();
|
|
18139
18015
|
continue;
|
|
18140
18016
|
case 8:
|
|
18141
|
-
if (tag !==
|
|
18142
|
-
break;
|
|
18143
|
-
}
|
|
18144
|
-
|
|
18145
|
-
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18146
|
-
continue;
|
|
18147
|
-
case 9:
|
|
18148
|
-
if (tag !== 72) {
|
|
18017
|
+
if (tag !== 64) {
|
|
18149
18018
|
break;
|
|
18150
18019
|
}
|
|
18151
18020
|
|
|
18152
18021
|
message.create_time_seconds = reader.uint32();
|
|
18153
18022
|
continue;
|
|
18154
|
-
case
|
|
18155
|
-
if (tag !==
|
|
18023
|
+
case 9:
|
|
18024
|
+
if (tag !== 74) {
|
|
18156
18025
|
break;
|
|
18157
18026
|
}
|
|
18158
18027
|
|
|
18159
|
-
message.attachment = reader.
|
|
18028
|
+
message.attachment = reader.bytes();
|
|
18160
18029
|
continue;
|
|
18161
18030
|
}
|
|
18162
18031
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -18176,9 +18045,8 @@ export const PinMessage = {
|
|
|
18176
18045
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
18177
18046
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
18178
18047
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
18179
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
18180
18048
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
18181
|
-
attachment: isSet(object.attachment) ?
|
|
18049
|
+
attachment: isSet(object.attachment) ? bytesFromBase64(object.attachment) : new Uint8Array(0),
|
|
18182
18050
|
};
|
|
18183
18051
|
},
|
|
18184
18052
|
|
|
@@ -18205,14 +18073,11 @@ export const PinMessage = {
|
|
|
18205
18073
|
if (message.avatar !== "") {
|
|
18206
18074
|
obj.avatar = message.avatar;
|
|
18207
18075
|
}
|
|
18208
|
-
if (message.create_time !== undefined) {
|
|
18209
|
-
obj.create_time = message.create_time.toISOString();
|
|
18210
|
-
}
|
|
18211
18076
|
if (message.create_time_seconds !== 0) {
|
|
18212
18077
|
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
18213
18078
|
}
|
|
18214
|
-
if (message.attachment !==
|
|
18215
|
-
obj.attachment = message.attachment;
|
|
18079
|
+
if (message.attachment.length !== 0) {
|
|
18080
|
+
obj.attachment = base64FromBytes(message.attachment);
|
|
18216
18081
|
}
|
|
18217
18082
|
return obj;
|
|
18218
18083
|
},
|
|
@@ -18229,9 +18094,8 @@ export const PinMessage = {
|
|
|
18229
18094
|
message.content = object.content ?? "";
|
|
18230
18095
|
message.username = object.username ?? "";
|
|
18231
18096
|
message.avatar = object.avatar ?? "";
|
|
18232
|
-
message.create_time = object.create_time ?? undefined;
|
|
18233
18097
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
18234
|
-
message.attachment = object.attachment ??
|
|
18098
|
+
message.attachment = object.attachment ?? new Uint8Array(0);
|
|
18235
18099
|
return message;
|
|
18236
18100
|
},
|
|
18237
18101
|
};
|
|
@@ -18298,7 +18162,7 @@ export const PinMessagesList = {
|
|
|
18298
18162
|
};
|
|
18299
18163
|
|
|
18300
18164
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
18301
|
-
return { id: "", notification_setting_type: 0,
|
|
18165
|
+
return { id: "", notification_setting_type: 0, time_mute_seconds: 0, active: 0, channel_id: "" };
|
|
18302
18166
|
}
|
|
18303
18167
|
|
|
18304
18168
|
export const NotificationUserChannel = {
|
|
@@ -18309,8 +18173,8 @@ export const NotificationUserChannel = {
|
|
|
18309
18173
|
if (message.notification_setting_type !== 0) {
|
|
18310
18174
|
writer.uint32(16).int32(message.notification_setting_type);
|
|
18311
18175
|
}
|
|
18312
|
-
if (message.
|
|
18313
|
-
|
|
18176
|
+
if (message.time_mute_seconds !== 0) {
|
|
18177
|
+
writer.uint32(24).uint32(message.time_mute_seconds);
|
|
18314
18178
|
}
|
|
18315
18179
|
if (message.active !== 0) {
|
|
18316
18180
|
writer.uint32(32).int32(message.active);
|
|
@@ -18343,11 +18207,11 @@ export const NotificationUserChannel = {
|
|
|
18343
18207
|
message.notification_setting_type = reader.int32();
|
|
18344
18208
|
continue;
|
|
18345
18209
|
case 3:
|
|
18346
|
-
if (tag !==
|
|
18210
|
+
if (tag !== 24) {
|
|
18347
18211
|
break;
|
|
18348
18212
|
}
|
|
18349
18213
|
|
|
18350
|
-
message.
|
|
18214
|
+
message.time_mute_seconds = reader.uint32();
|
|
18351
18215
|
continue;
|
|
18352
18216
|
case 4:
|
|
18353
18217
|
if (tag !== 32) {
|
|
@@ -18378,7 +18242,7 @@ export const NotificationUserChannel = {
|
|
|
18378
18242
|
notification_setting_type: isSet(object.notification_setting_type)
|
|
18379
18243
|
? globalThis.Number(object.notification_setting_type)
|
|
18380
18244
|
: 0,
|
|
18381
|
-
|
|
18245
|
+
time_mute_seconds: isSet(object.time_mute_seconds) ? globalThis.Number(object.time_mute_seconds) : 0,
|
|
18382
18246
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
18383
18247
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
18384
18248
|
};
|
|
@@ -18392,8 +18256,8 @@ export const NotificationUserChannel = {
|
|
|
18392
18256
|
if (message.notification_setting_type !== 0) {
|
|
18393
18257
|
obj.notification_setting_type = Math.round(message.notification_setting_type);
|
|
18394
18258
|
}
|
|
18395
|
-
if (message.
|
|
18396
|
-
obj.
|
|
18259
|
+
if (message.time_mute_seconds !== 0) {
|
|
18260
|
+
obj.time_mute_seconds = Math.round(message.time_mute_seconds);
|
|
18397
18261
|
}
|
|
18398
18262
|
if (message.active !== 0) {
|
|
18399
18263
|
obj.active = Math.round(message.active);
|
|
@@ -18411,7 +18275,7 @@ export const NotificationUserChannel = {
|
|
|
18411
18275
|
const message = createBaseNotificationUserChannel();
|
|
18412
18276
|
message.id = object.id ?? "";
|
|
18413
18277
|
message.notification_setting_type = object.notification_setting_type ?? 0;
|
|
18414
|
-
message.
|
|
18278
|
+
message.time_mute_seconds = object.time_mute_seconds ?? 0;
|
|
18415
18279
|
message.active = object.active ?? 0;
|
|
18416
18280
|
message.channel_id = object.channel_id ?? "";
|
|
18417
18281
|
return message;
|
|
@@ -20701,8 +20565,8 @@ function createBaseCreateEventRequest(): CreateEventRequest {
|
|
|
20701
20565
|
clan_id: "",
|
|
20702
20566
|
channel_voice_id: "",
|
|
20703
20567
|
address: "",
|
|
20704
|
-
|
|
20705
|
-
|
|
20568
|
+
start_time_seconds: 0,
|
|
20569
|
+
end_time_seconds: 0,
|
|
20706
20570
|
event_id: "",
|
|
20707
20571
|
event_status: 0,
|
|
20708
20572
|
channel_id: "",
|
|
@@ -20735,11 +20599,11 @@ export const CreateEventRequest = {
|
|
|
20735
20599
|
if (message.address !== "") {
|
|
20736
20600
|
writer.uint32(50).string(message.address);
|
|
20737
20601
|
}
|
|
20738
|
-
if (message.
|
|
20739
|
-
|
|
20602
|
+
if (message.start_time_seconds !== 0) {
|
|
20603
|
+
writer.uint32(56).uint32(message.start_time_seconds);
|
|
20740
20604
|
}
|
|
20741
|
-
if (message.
|
|
20742
|
-
|
|
20605
|
+
if (message.end_time_seconds !== 0) {
|
|
20606
|
+
writer.uint32(64).uint32(message.end_time_seconds);
|
|
20743
20607
|
}
|
|
20744
20608
|
if (message.event_id !== "") {
|
|
20745
20609
|
writer.uint32(74).string(message.event_id);
|
|
@@ -20821,18 +20685,18 @@ export const CreateEventRequest = {
|
|
|
20821
20685
|
message.address = reader.string();
|
|
20822
20686
|
continue;
|
|
20823
20687
|
case 7:
|
|
20824
|
-
if (tag !==
|
|
20688
|
+
if (tag !== 56) {
|
|
20825
20689
|
break;
|
|
20826
20690
|
}
|
|
20827
20691
|
|
|
20828
|
-
message.
|
|
20692
|
+
message.start_time_seconds = reader.uint32();
|
|
20829
20693
|
continue;
|
|
20830
20694
|
case 8:
|
|
20831
|
-
if (tag !==
|
|
20695
|
+
if (tag !== 64) {
|
|
20832
20696
|
break;
|
|
20833
20697
|
}
|
|
20834
20698
|
|
|
20835
|
-
message.
|
|
20699
|
+
message.end_time_seconds = reader.uint32();
|
|
20836
20700
|
continue;
|
|
20837
20701
|
case 9:
|
|
20838
20702
|
if (tag !== 74) {
|
|
@@ -20914,8 +20778,8 @@ export const CreateEventRequest = {
|
|
|
20914
20778
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
20915
20779
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
20916
20780
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
20917
|
-
|
|
20918
|
-
|
|
20781
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
20782
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
20919
20783
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
20920
20784
|
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
20921
20785
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
@@ -20948,11 +20812,11 @@ export const CreateEventRequest = {
|
|
|
20948
20812
|
if (message.address !== "") {
|
|
20949
20813
|
obj.address = message.address;
|
|
20950
20814
|
}
|
|
20951
|
-
if (message.
|
|
20952
|
-
obj.
|
|
20815
|
+
if (message.start_time_seconds !== 0) {
|
|
20816
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
20953
20817
|
}
|
|
20954
|
-
if (message.
|
|
20955
|
-
obj.
|
|
20818
|
+
if (message.end_time_seconds !== 0) {
|
|
20819
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
20956
20820
|
}
|
|
20957
20821
|
if (message.event_id !== "") {
|
|
20958
20822
|
obj.event_id = message.event_id;
|
|
@@ -20995,8 +20859,8 @@ export const CreateEventRequest = {
|
|
|
20995
20859
|
message.clan_id = object.clan_id ?? "";
|
|
20996
20860
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
20997
20861
|
message.address = object.address ?? "";
|
|
20998
|
-
message.
|
|
20999
|
-
message.
|
|
20862
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
20863
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
21000
20864
|
message.event_id = object.event_id ?? "";
|
|
21001
20865
|
message.event_status = object.event_status ?? 0;
|
|
21002
20866
|
message.channel_id = object.channel_id ?? "";
|
|
@@ -21020,8 +20884,8 @@ function createBaseUpdateEventRequest(): UpdateEventRequest {
|
|
|
21020
20884
|
event_id: "",
|
|
21021
20885
|
channel_id: "",
|
|
21022
20886
|
address: "",
|
|
21023
|
-
|
|
21024
|
-
|
|
20887
|
+
start_time_seconds: 0,
|
|
20888
|
+
end_time_seconds: 0,
|
|
21025
20889
|
clan_id: "",
|
|
21026
20890
|
creator_id: "",
|
|
21027
20891
|
channel_voice_id: "",
|
|
@@ -21050,11 +20914,11 @@ export const UpdateEventRequest = {
|
|
|
21050
20914
|
if (message.address !== "") {
|
|
21051
20915
|
writer.uint32(50).string(message.address);
|
|
21052
20916
|
}
|
|
21053
|
-
if (message.
|
|
21054
|
-
|
|
20917
|
+
if (message.start_time_seconds !== 0) {
|
|
20918
|
+
writer.uint32(56).uint32(message.start_time_seconds);
|
|
21055
20919
|
}
|
|
21056
|
-
if (message.
|
|
21057
|
-
|
|
20920
|
+
if (message.end_time_seconds !== 0) {
|
|
20921
|
+
writer.uint32(64).uint32(message.end_time_seconds);
|
|
21058
20922
|
}
|
|
21059
20923
|
if (message.clan_id !== "") {
|
|
21060
20924
|
writer.uint32(74).string(message.clan_id);
|
|
@@ -21124,18 +20988,18 @@ export const UpdateEventRequest = {
|
|
|
21124
20988
|
message.address = reader.string();
|
|
21125
20989
|
continue;
|
|
21126
20990
|
case 7:
|
|
21127
|
-
if (tag !==
|
|
20991
|
+
if (tag !== 56) {
|
|
21128
20992
|
break;
|
|
21129
20993
|
}
|
|
21130
20994
|
|
|
21131
|
-
message.
|
|
20995
|
+
message.start_time_seconds = reader.uint32();
|
|
21132
20996
|
continue;
|
|
21133
20997
|
case 8:
|
|
21134
|
-
if (tag !==
|
|
20998
|
+
if (tag !== 64) {
|
|
21135
20999
|
break;
|
|
21136
21000
|
}
|
|
21137
21001
|
|
|
21138
|
-
message.
|
|
21002
|
+
message.end_time_seconds = reader.uint32();
|
|
21139
21003
|
continue;
|
|
21140
21004
|
case 9:
|
|
21141
21005
|
if (tag !== 74) {
|
|
@@ -21189,8 +21053,8 @@ export const UpdateEventRequest = {
|
|
|
21189
21053
|
event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
|
|
21190
21054
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
21191
21055
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
21192
|
-
|
|
21193
|
-
|
|
21056
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
21057
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
21194
21058
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
21195
21059
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
21196
21060
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
@@ -21219,11 +21083,11 @@ export const UpdateEventRequest = {
|
|
|
21219
21083
|
if (message.address !== "") {
|
|
21220
21084
|
obj.address = message.address;
|
|
21221
21085
|
}
|
|
21222
|
-
if (message.
|
|
21223
|
-
obj.
|
|
21086
|
+
if (message.start_time_seconds !== 0) {
|
|
21087
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
21224
21088
|
}
|
|
21225
|
-
if (message.
|
|
21226
|
-
obj.
|
|
21089
|
+
if (message.end_time_seconds !== 0) {
|
|
21090
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
21227
21091
|
}
|
|
21228
21092
|
if (message.clan_id !== "") {
|
|
21229
21093
|
obj.clan_id = message.clan_id;
|
|
@@ -21254,8 +21118,8 @@ export const UpdateEventRequest = {
|
|
|
21254
21118
|
message.event_id = object.event_id ?? "";
|
|
21255
21119
|
message.channel_id = object.channel_id ?? "";
|
|
21256
21120
|
message.address = object.address ?? "";
|
|
21257
|
-
message.
|
|
21258
|
-
message.
|
|
21121
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
21122
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
21259
21123
|
message.clan_id = object.clan_id ?? "";
|
|
21260
21124
|
message.creator_id = object.creator_id ?? "";
|
|
21261
21125
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
@@ -23491,7 +23355,7 @@ function createBaseClanSticker(): ClanSticker {
|
|
|
23491
23355
|
shortname: "",
|
|
23492
23356
|
category: "",
|
|
23493
23357
|
creator_id: "",
|
|
23494
|
-
|
|
23358
|
+
create_time_seconds: 0,
|
|
23495
23359
|
clan_id: "",
|
|
23496
23360
|
logo: "",
|
|
23497
23361
|
clan_name: "",
|
|
@@ -23517,8 +23381,8 @@ export const ClanSticker = {
|
|
|
23517
23381
|
if (message.creator_id !== "") {
|
|
23518
23382
|
writer.uint32(42).string(message.creator_id);
|
|
23519
23383
|
}
|
|
23520
|
-
if (message.
|
|
23521
|
-
|
|
23384
|
+
if (message.create_time_seconds !== 0) {
|
|
23385
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
23522
23386
|
}
|
|
23523
23387
|
if (message.clan_id !== "") {
|
|
23524
23388
|
writer.uint32(58).string(message.clan_id);
|
|
@@ -23581,11 +23445,11 @@ export const ClanSticker = {
|
|
|
23581
23445
|
message.creator_id = reader.string();
|
|
23582
23446
|
continue;
|
|
23583
23447
|
case 6:
|
|
23584
|
-
if (tag !==
|
|
23448
|
+
if (tag !== 48) {
|
|
23585
23449
|
break;
|
|
23586
23450
|
}
|
|
23587
23451
|
|
|
23588
|
-
message.
|
|
23452
|
+
message.create_time_seconds = reader.uint32();
|
|
23589
23453
|
continue;
|
|
23590
23454
|
case 7:
|
|
23591
23455
|
if (tag !== 58) {
|
|
@@ -23638,7 +23502,7 @@ export const ClanSticker = {
|
|
|
23638
23502
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
23639
23503
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
23640
23504
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
23641
|
-
|
|
23505
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
23642
23506
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
23643
23507
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
23644
23508
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
@@ -23664,8 +23528,8 @@ export const ClanSticker = {
|
|
|
23664
23528
|
if (message.creator_id !== "") {
|
|
23665
23529
|
obj.creator_id = message.creator_id;
|
|
23666
23530
|
}
|
|
23667
|
-
if (message.
|
|
23668
|
-
obj.
|
|
23531
|
+
if (message.create_time_seconds !== 0) {
|
|
23532
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
23669
23533
|
}
|
|
23670
23534
|
if (message.clan_id !== "") {
|
|
23671
23535
|
obj.clan_id = message.clan_id;
|
|
@@ -23695,7 +23559,7 @@ export const ClanSticker = {
|
|
|
23695
23559
|
message.shortname = object.shortname ?? "";
|
|
23696
23560
|
message.category = object.category ?? "";
|
|
23697
23561
|
message.creator_id = object.creator_id ?? "";
|
|
23698
|
-
message.
|
|
23562
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
23699
23563
|
message.clan_id = object.clan_id ?? "";
|
|
23700
23564
|
message.logo = object.logo ?? "";
|
|
23701
23565
|
message.clan_name = object.clan_name ?? "";
|
|
@@ -25874,8 +25738,8 @@ function createBaseApp(): App {
|
|
|
25874
25738
|
creator_id: "",
|
|
25875
25739
|
applogo: "",
|
|
25876
25740
|
is_shadow: false,
|
|
25877
|
-
|
|
25878
|
-
|
|
25741
|
+
disable_time_seconds: 0,
|
|
25742
|
+
create_time_seconds: 0,
|
|
25879
25743
|
token: "",
|
|
25880
25744
|
role: 0,
|
|
25881
25745
|
about: "",
|
|
@@ -25900,11 +25764,11 @@ export const App = {
|
|
|
25900
25764
|
if (message.is_shadow !== false) {
|
|
25901
25765
|
writer.uint32(40).bool(message.is_shadow);
|
|
25902
25766
|
}
|
|
25903
|
-
if (message.
|
|
25904
|
-
|
|
25767
|
+
if (message.disable_time_seconds !== 0) {
|
|
25768
|
+
writer.uint32(48).uint32(message.disable_time_seconds);
|
|
25905
25769
|
}
|
|
25906
|
-
if (message.
|
|
25907
|
-
|
|
25770
|
+
if (message.create_time_seconds !== 0) {
|
|
25771
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
25908
25772
|
}
|
|
25909
25773
|
if (message.token !== "") {
|
|
25910
25774
|
writer.uint32(66).string(message.token);
|
|
@@ -25964,18 +25828,18 @@ export const App = {
|
|
|
25964
25828
|
message.is_shadow = reader.bool();
|
|
25965
25829
|
continue;
|
|
25966
25830
|
case 6:
|
|
25967
|
-
if (tag !==
|
|
25831
|
+
if (tag !== 48) {
|
|
25968
25832
|
break;
|
|
25969
25833
|
}
|
|
25970
25834
|
|
|
25971
|
-
message.
|
|
25835
|
+
message.disable_time_seconds = reader.uint32();
|
|
25972
25836
|
continue;
|
|
25973
25837
|
case 7:
|
|
25974
|
-
if (tag !==
|
|
25838
|
+
if (tag !== 56) {
|
|
25975
25839
|
break;
|
|
25976
25840
|
}
|
|
25977
25841
|
|
|
25978
|
-
message.
|
|
25842
|
+
message.create_time_seconds = reader.uint32();
|
|
25979
25843
|
continue;
|
|
25980
25844
|
case 8:
|
|
25981
25845
|
if (tag !== 66) {
|
|
@@ -26021,8 +25885,8 @@ export const App = {
|
|
|
26021
25885
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
26022
25886
|
applogo: isSet(object.applogo) ? globalThis.String(object.applogo) : "",
|
|
26023
25887
|
is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
|
|
26024
|
-
|
|
26025
|
-
|
|
25888
|
+
disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
|
|
25889
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
26026
25890
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
26027
25891
|
role: isSet(object.role) ? globalThis.Number(object.role) : 0,
|
|
26028
25892
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
@@ -26047,11 +25911,11 @@ export const App = {
|
|
|
26047
25911
|
if (message.is_shadow !== false) {
|
|
26048
25912
|
obj.is_shadow = message.is_shadow;
|
|
26049
25913
|
}
|
|
26050
|
-
if (message.
|
|
26051
|
-
obj.
|
|
25914
|
+
if (message.disable_time_seconds !== 0) {
|
|
25915
|
+
obj.disable_time_seconds = Math.round(message.disable_time_seconds);
|
|
26052
25916
|
}
|
|
26053
|
-
if (message.
|
|
26054
|
-
obj.
|
|
25917
|
+
if (message.create_time_seconds !== 0) {
|
|
25918
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
26055
25919
|
}
|
|
26056
25920
|
if (message.token !== "") {
|
|
26057
25921
|
obj.token = message.token;
|
|
@@ -26078,8 +25942,8 @@ export const App = {
|
|
|
26078
25942
|
message.creator_id = object.creator_id ?? "";
|
|
26079
25943
|
message.applogo = object.applogo ?? "";
|
|
26080
25944
|
message.is_shadow = object.is_shadow ?? false;
|
|
26081
|
-
message.
|
|
26082
|
-
message.
|
|
25945
|
+
message.disable_time_seconds = object.disable_time_seconds ?? 0;
|
|
25946
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
26083
25947
|
message.token = object.token ?? "";
|
|
26084
25948
|
message.role = object.role ?? 0;
|
|
26085
25949
|
message.about = object.about ?? "";
|
|
@@ -26809,13 +26673,13 @@ export const AppClan = {
|
|
|
26809
26673
|
};
|
|
26810
26674
|
|
|
26811
26675
|
function createBaseDeleteChannelMessagesRequest(): DeleteChannelMessagesRequest {
|
|
26812
|
-
return {
|
|
26676
|
+
return { before_seconds: 0, ids: [] };
|
|
26813
26677
|
}
|
|
26814
26678
|
|
|
26815
26679
|
export const DeleteChannelMessagesRequest = {
|
|
26816
26680
|
encode(message: DeleteChannelMessagesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26817
|
-
if (message.
|
|
26818
|
-
|
|
26681
|
+
if (message.before_seconds !== 0) {
|
|
26682
|
+
writer.uint32(8).uint32(message.before_seconds);
|
|
26819
26683
|
}
|
|
26820
26684
|
for (const v of message.ids) {
|
|
26821
26685
|
writer.uint32(18).string(v!);
|
|
@@ -26831,11 +26695,11 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26831
26695
|
const tag = reader.uint32();
|
|
26832
26696
|
switch (tag >>> 3) {
|
|
26833
26697
|
case 1:
|
|
26834
|
-
if (tag !==
|
|
26698
|
+
if (tag !== 8) {
|
|
26835
26699
|
break;
|
|
26836
26700
|
}
|
|
26837
26701
|
|
|
26838
|
-
message.
|
|
26702
|
+
message.before_seconds = reader.uint32();
|
|
26839
26703
|
continue;
|
|
26840
26704
|
case 2:
|
|
26841
26705
|
if (tag !== 18) {
|
|
@@ -26855,15 +26719,15 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26855
26719
|
|
|
26856
26720
|
fromJSON(object: any): DeleteChannelMessagesRequest {
|
|
26857
26721
|
return {
|
|
26858
|
-
|
|
26722
|
+
before_seconds: isSet(object.before_seconds) ? globalThis.Number(object.before_seconds) : 0,
|
|
26859
26723
|
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
26860
26724
|
};
|
|
26861
26725
|
},
|
|
26862
26726
|
|
|
26863
26727
|
toJSON(message: DeleteChannelMessagesRequest): unknown {
|
|
26864
26728
|
const obj: any = {};
|
|
26865
|
-
if (message.
|
|
26866
|
-
obj.
|
|
26729
|
+
if (message.before_seconds !== 0) {
|
|
26730
|
+
obj.before_seconds = Math.round(message.before_seconds);
|
|
26867
26731
|
}
|
|
26868
26732
|
if (message.ids?.length) {
|
|
26869
26733
|
obj.ids = message.ids;
|
|
@@ -26876,7 +26740,7 @@ export const DeleteChannelMessagesRequest = {
|
|
|
26876
26740
|
},
|
|
26877
26741
|
fromPartial<I extends Exact<DeepPartial<DeleteChannelMessagesRequest>, I>>(object: I): DeleteChannelMessagesRequest {
|
|
26878
26742
|
const message = createBaseDeleteChannelMessagesRequest();
|
|
26879
|
-
message.
|
|
26743
|
+
message.before_seconds = object.before_seconds ?? 0;
|
|
26880
26744
|
message.ids = object.ids?.map((e) => e) || [];
|
|
26881
26745
|
return message;
|
|
26882
26746
|
},
|
|
@@ -30272,8 +30136,8 @@ function createBaseChannelCanvasItem(): ChannelCanvasItem {
|
|
|
30272
30136
|
is_default: false,
|
|
30273
30137
|
content: "",
|
|
30274
30138
|
creator_id: "",
|
|
30275
|
-
|
|
30276
|
-
|
|
30139
|
+
update_time_seconds: 0,
|
|
30140
|
+
create_time_seconds: 0,
|
|
30277
30141
|
};
|
|
30278
30142
|
}
|
|
30279
30143
|
|
|
@@ -30294,11 +30158,11 @@ export const ChannelCanvasItem = {
|
|
|
30294
30158
|
if (message.creator_id !== "") {
|
|
30295
30159
|
writer.uint32(42).string(message.creator_id);
|
|
30296
30160
|
}
|
|
30297
|
-
if (message.
|
|
30298
|
-
|
|
30161
|
+
if (message.update_time_seconds !== 0) {
|
|
30162
|
+
writer.uint32(48).uint32(message.update_time_seconds);
|
|
30299
30163
|
}
|
|
30300
|
-
if (message.
|
|
30301
|
-
|
|
30164
|
+
if (message.create_time_seconds !== 0) {
|
|
30165
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
30302
30166
|
}
|
|
30303
30167
|
return writer;
|
|
30304
30168
|
},
|
|
@@ -30346,18 +30210,18 @@ export const ChannelCanvasItem = {
|
|
|
30346
30210
|
message.creator_id = reader.string();
|
|
30347
30211
|
continue;
|
|
30348
30212
|
case 6:
|
|
30349
|
-
if (tag !==
|
|
30213
|
+
if (tag !== 48) {
|
|
30350
30214
|
break;
|
|
30351
30215
|
}
|
|
30352
30216
|
|
|
30353
|
-
message.
|
|
30217
|
+
message.update_time_seconds = reader.uint32();
|
|
30354
30218
|
continue;
|
|
30355
30219
|
case 7:
|
|
30356
|
-
if (tag !==
|
|
30220
|
+
if (tag !== 56) {
|
|
30357
30221
|
break;
|
|
30358
30222
|
}
|
|
30359
30223
|
|
|
30360
|
-
message.
|
|
30224
|
+
message.create_time_seconds = reader.uint32();
|
|
30361
30225
|
continue;
|
|
30362
30226
|
}
|
|
30363
30227
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30375,8 +30239,8 @@ export const ChannelCanvasItem = {
|
|
|
30375
30239
|
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
30376
30240
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
30377
30241
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
30378
|
-
|
|
30379
|
-
|
|
30242
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
30243
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
30380
30244
|
};
|
|
30381
30245
|
},
|
|
30382
30246
|
|
|
@@ -30397,11 +30261,11 @@ export const ChannelCanvasItem = {
|
|
|
30397
30261
|
if (message.creator_id !== "") {
|
|
30398
30262
|
obj.creator_id = message.creator_id;
|
|
30399
30263
|
}
|
|
30400
|
-
if (message.
|
|
30401
|
-
obj.
|
|
30264
|
+
if (message.update_time_seconds !== 0) {
|
|
30265
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
30402
30266
|
}
|
|
30403
|
-
if (message.
|
|
30404
|
-
obj.
|
|
30267
|
+
if (message.create_time_seconds !== 0) {
|
|
30268
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
30405
30269
|
}
|
|
30406
30270
|
return obj;
|
|
30407
30271
|
},
|
|
@@ -30416,8 +30280,8 @@ export const ChannelCanvasItem = {
|
|
|
30416
30280
|
message.is_default = object.is_default ?? false;
|
|
30417
30281
|
message.content = object.content ?? "";
|
|
30418
30282
|
message.creator_id = object.creator_id ?? "";
|
|
30419
|
-
message.
|
|
30420
|
-
message.
|
|
30283
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
30284
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
30421
30285
|
return message;
|
|
30422
30286
|
},
|
|
30423
30287
|
};
|
|
@@ -31080,8 +30944,8 @@ function createBaseUserActivity(): UserActivity {
|
|
|
31080
30944
|
activity_name: "",
|
|
31081
30945
|
activity_type: 0,
|
|
31082
30946
|
activity_description: "",
|
|
31083
|
-
|
|
31084
|
-
|
|
30947
|
+
start_time_seconds: 0,
|
|
30948
|
+
end_time_seconds: 0,
|
|
31085
30949
|
application_id: "",
|
|
31086
30950
|
status: 0,
|
|
31087
30951
|
};
|
|
@@ -31101,11 +30965,11 @@ export const UserActivity = {
|
|
|
31101
30965
|
if (message.activity_description !== "") {
|
|
31102
30966
|
writer.uint32(34).string(message.activity_description);
|
|
31103
30967
|
}
|
|
31104
|
-
if (message.
|
|
31105
|
-
|
|
30968
|
+
if (message.start_time_seconds !== 0) {
|
|
30969
|
+
writer.uint32(40).uint32(message.start_time_seconds);
|
|
31106
30970
|
}
|
|
31107
|
-
if (message.
|
|
31108
|
-
|
|
30971
|
+
if (message.end_time_seconds !== 0) {
|
|
30972
|
+
writer.uint32(48).uint32(message.end_time_seconds);
|
|
31109
30973
|
}
|
|
31110
30974
|
if (message.application_id !== "") {
|
|
31111
30975
|
writer.uint32(58).string(message.application_id);
|
|
@@ -31152,18 +31016,18 @@ export const UserActivity = {
|
|
|
31152
31016
|
message.activity_description = reader.string();
|
|
31153
31017
|
continue;
|
|
31154
31018
|
case 5:
|
|
31155
|
-
if (tag !==
|
|
31019
|
+
if (tag !== 40) {
|
|
31156
31020
|
break;
|
|
31157
31021
|
}
|
|
31158
31022
|
|
|
31159
|
-
message.
|
|
31023
|
+
message.start_time_seconds = reader.uint32();
|
|
31160
31024
|
continue;
|
|
31161
31025
|
case 6:
|
|
31162
|
-
if (tag !==
|
|
31026
|
+
if (tag !== 48) {
|
|
31163
31027
|
break;
|
|
31164
31028
|
}
|
|
31165
31029
|
|
|
31166
|
-
message.
|
|
31030
|
+
message.end_time_seconds = reader.uint32();
|
|
31167
31031
|
continue;
|
|
31168
31032
|
case 7:
|
|
31169
31033
|
if (tag !== 58) {
|
|
@@ -31194,8 +31058,8 @@ export const UserActivity = {
|
|
|
31194
31058
|
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31195
31059
|
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31196
31060
|
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31197
|
-
|
|
31198
|
-
|
|
31061
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
31062
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
31199
31063
|
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31200
31064
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31201
31065
|
};
|
|
@@ -31215,11 +31079,11 @@ export const UserActivity = {
|
|
|
31215
31079
|
if (message.activity_description !== "") {
|
|
31216
31080
|
obj.activity_description = message.activity_description;
|
|
31217
31081
|
}
|
|
31218
|
-
if (message.
|
|
31219
|
-
obj.
|
|
31082
|
+
if (message.start_time_seconds !== 0) {
|
|
31083
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
31220
31084
|
}
|
|
31221
|
-
if (message.
|
|
31222
|
-
obj.
|
|
31085
|
+
if (message.end_time_seconds !== 0) {
|
|
31086
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
31223
31087
|
}
|
|
31224
31088
|
if (message.application_id !== "") {
|
|
31225
31089
|
obj.application_id = message.application_id;
|
|
@@ -31239,8 +31103,8 @@ export const UserActivity = {
|
|
|
31239
31103
|
message.activity_name = object.activity_name ?? "";
|
|
31240
31104
|
message.activity_type = object.activity_type ?? 0;
|
|
31241
31105
|
message.activity_description = object.activity_description ?? "";
|
|
31242
|
-
message.
|
|
31243
|
-
message.
|
|
31106
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
31107
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
31244
31108
|
message.application_id = object.application_id ?? "";
|
|
31245
31109
|
message.status = object.status ?? 0;
|
|
31246
31110
|
return message;
|
|
@@ -31313,7 +31177,7 @@ function createBaseCreateActivityRequest(): CreateActivityRequest {
|
|
|
31313
31177
|
activity_name: "",
|
|
31314
31178
|
activity_type: 0,
|
|
31315
31179
|
activity_description: "",
|
|
31316
|
-
|
|
31180
|
+
start_time_seconds: 0,
|
|
31317
31181
|
application_id: "",
|
|
31318
31182
|
status: 0,
|
|
31319
31183
|
};
|
|
@@ -31330,8 +31194,8 @@ export const CreateActivityRequest = {
|
|
|
31330
31194
|
if (message.activity_description !== "") {
|
|
31331
31195
|
writer.uint32(26).string(message.activity_description);
|
|
31332
31196
|
}
|
|
31333
|
-
if (message.
|
|
31334
|
-
|
|
31197
|
+
if (message.start_time_seconds !== 0) {
|
|
31198
|
+
writer.uint32(32).uint32(message.start_time_seconds);
|
|
31335
31199
|
}
|
|
31336
31200
|
if (message.application_id !== "") {
|
|
31337
31201
|
writer.uint32(42).string(message.application_id);
|
|
@@ -31371,11 +31235,11 @@ export const CreateActivityRequest = {
|
|
|
31371
31235
|
message.activity_description = reader.string();
|
|
31372
31236
|
continue;
|
|
31373
31237
|
case 4:
|
|
31374
|
-
if (tag !==
|
|
31238
|
+
if (tag !== 32) {
|
|
31375
31239
|
break;
|
|
31376
31240
|
}
|
|
31377
31241
|
|
|
31378
|
-
message.
|
|
31242
|
+
message.start_time_seconds = reader.uint32();
|
|
31379
31243
|
continue;
|
|
31380
31244
|
case 5:
|
|
31381
31245
|
if (tag !== 42) {
|
|
@@ -31405,7 +31269,7 @@ export const CreateActivityRequest = {
|
|
|
31405
31269
|
activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
|
|
31406
31270
|
activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
|
|
31407
31271
|
activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
|
|
31408
|
-
|
|
31272
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
31409
31273
|
application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
|
|
31410
31274
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
31411
31275
|
};
|
|
@@ -31422,8 +31286,8 @@ export const CreateActivityRequest = {
|
|
|
31422
31286
|
if (message.activity_description !== "") {
|
|
31423
31287
|
obj.activity_description = message.activity_description;
|
|
31424
31288
|
}
|
|
31425
|
-
if (message.
|
|
31426
|
-
obj.
|
|
31289
|
+
if (message.start_time_seconds !== 0) {
|
|
31290
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
31427
31291
|
}
|
|
31428
31292
|
if (message.application_id !== "") {
|
|
31429
31293
|
obj.application_id = message.application_id;
|
|
@@ -31442,7 +31306,7 @@ export const CreateActivityRequest = {
|
|
|
31442
31306
|
message.activity_name = object.activity_name ?? "";
|
|
31443
31307
|
message.activity_type = object.activity_type ?? 0;
|
|
31444
31308
|
message.activity_description = object.activity_description ?? "";
|
|
31445
|
-
message.
|
|
31309
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
31446
31310
|
message.application_id = object.application_id ?? "";
|
|
31447
31311
|
message.status = object.status ?? 0;
|
|
31448
31312
|
return message;
|
|
@@ -32213,7 +32077,7 @@ function createBaseAuditLog(): AuditLog {
|
|
|
32213
32077
|
entity_name: "",
|
|
32214
32078
|
entity_id: "",
|
|
32215
32079
|
details: "",
|
|
32216
|
-
|
|
32080
|
+
time_log_seconds: 0,
|
|
32217
32081
|
channel_id: "",
|
|
32218
32082
|
channel_label: "",
|
|
32219
32083
|
};
|
|
@@ -32242,8 +32106,8 @@ export const AuditLog = {
|
|
|
32242
32106
|
if (message.details !== "") {
|
|
32243
32107
|
writer.uint32(58).string(message.details);
|
|
32244
32108
|
}
|
|
32245
|
-
if (message.
|
|
32246
|
-
|
|
32109
|
+
if (message.time_log_seconds !== 0) {
|
|
32110
|
+
writer.uint32(64).uint32(message.time_log_seconds);
|
|
32247
32111
|
}
|
|
32248
32112
|
if (message.channel_id !== "") {
|
|
32249
32113
|
writer.uint32(74).string(message.channel_id);
|
|
@@ -32311,11 +32175,11 @@ export const AuditLog = {
|
|
|
32311
32175
|
message.details = reader.string();
|
|
32312
32176
|
continue;
|
|
32313
32177
|
case 8:
|
|
32314
|
-
if (tag !==
|
|
32178
|
+
if (tag !== 64) {
|
|
32315
32179
|
break;
|
|
32316
32180
|
}
|
|
32317
32181
|
|
|
32318
|
-
message.
|
|
32182
|
+
message.time_log_seconds = reader.uint32();
|
|
32319
32183
|
continue;
|
|
32320
32184
|
case 9:
|
|
32321
32185
|
if (tag !== 74) {
|
|
@@ -32349,7 +32213,7 @@ export const AuditLog = {
|
|
|
32349
32213
|
entity_name: isSet(object.entity_name) ? globalThis.String(object.entity_name) : "",
|
|
32350
32214
|
entity_id: isSet(object.entity_id) ? globalThis.String(object.entity_id) : "",
|
|
32351
32215
|
details: isSet(object.details) ? globalThis.String(object.details) : "",
|
|
32352
|
-
|
|
32216
|
+
time_log_seconds: isSet(object.time_log_seconds) ? globalThis.Number(object.time_log_seconds) : 0,
|
|
32353
32217
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
32354
32218
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
32355
32219
|
};
|
|
@@ -32378,8 +32242,8 @@ export const AuditLog = {
|
|
|
32378
32242
|
if (message.details !== "") {
|
|
32379
32243
|
obj.details = message.details;
|
|
32380
32244
|
}
|
|
32381
|
-
if (message.
|
|
32382
|
-
obj.
|
|
32245
|
+
if (message.time_log_seconds !== 0) {
|
|
32246
|
+
obj.time_log_seconds = Math.round(message.time_log_seconds);
|
|
32383
32247
|
}
|
|
32384
32248
|
if (message.channel_id !== "") {
|
|
32385
32249
|
obj.channel_id = message.channel_id;
|
|
@@ -32402,7 +32266,7 @@ export const AuditLog = {
|
|
|
32402
32266
|
message.entity_name = object.entity_name ?? "";
|
|
32403
32267
|
message.entity_id = object.entity_id ?? "";
|
|
32404
32268
|
message.details = object.details ?? "";
|
|
32405
|
-
message.
|
|
32269
|
+
message.time_log_seconds = object.time_log_seconds ?? 0;
|
|
32406
32270
|
message.channel_id = object.channel_id ?? "";
|
|
32407
32271
|
message.channel_label = object.channel_label ?? "";
|
|
32408
32272
|
return message;
|
|
@@ -33066,8 +32930,8 @@ function createBaseOnboardingItem(): OnboardingItem {
|
|
|
33066
32930
|
content: "",
|
|
33067
32931
|
image_url: "",
|
|
33068
32932
|
answers: [],
|
|
33069
|
-
|
|
33070
|
-
|
|
32933
|
+
create_time_seconds: 0,
|
|
32934
|
+
update_time_seconds: 0,
|
|
33071
32935
|
};
|
|
33072
32936
|
}
|
|
33073
32937
|
|
|
@@ -33100,11 +32964,11 @@ export const OnboardingItem = {
|
|
|
33100
32964
|
for (const v of message.answers) {
|
|
33101
32965
|
OnboardingAnswer.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
33102
32966
|
}
|
|
33103
|
-
if (message.
|
|
33104
|
-
|
|
32967
|
+
if (message.create_time_seconds !== 0) {
|
|
32968
|
+
writer.uint32(80).uint32(message.create_time_seconds);
|
|
33105
32969
|
}
|
|
33106
|
-
if (message.
|
|
33107
|
-
|
|
32970
|
+
if (message.update_time_seconds !== 0) {
|
|
32971
|
+
writer.uint32(88).uint32(message.update_time_seconds);
|
|
33108
32972
|
}
|
|
33109
32973
|
return writer;
|
|
33110
32974
|
},
|
|
@@ -33180,18 +33044,18 @@ export const OnboardingItem = {
|
|
|
33180
33044
|
message.answers.push(OnboardingAnswer.decode(reader, reader.uint32()));
|
|
33181
33045
|
continue;
|
|
33182
33046
|
case 10:
|
|
33183
|
-
if (tag !==
|
|
33047
|
+
if (tag !== 80) {
|
|
33184
33048
|
break;
|
|
33185
33049
|
}
|
|
33186
33050
|
|
|
33187
|
-
message.
|
|
33051
|
+
message.create_time_seconds = reader.uint32();
|
|
33188
33052
|
continue;
|
|
33189
33053
|
case 11:
|
|
33190
|
-
if (tag !==
|
|
33054
|
+
if (tag !== 88) {
|
|
33191
33055
|
break;
|
|
33192
33056
|
}
|
|
33193
33057
|
|
|
33194
|
-
message.
|
|
33058
|
+
message.update_time_seconds = reader.uint32();
|
|
33195
33059
|
continue;
|
|
33196
33060
|
}
|
|
33197
33061
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -33215,8 +33079,8 @@ export const OnboardingItem = {
|
|
|
33215
33079
|
answers: globalThis.Array.isArray(object?.answers)
|
|
33216
33080
|
? object.answers.map((e: any) => OnboardingAnswer.fromJSON(e))
|
|
33217
33081
|
: [],
|
|
33218
|
-
|
|
33219
|
-
|
|
33082
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
33083
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
33220
33084
|
};
|
|
33221
33085
|
},
|
|
33222
33086
|
|
|
@@ -33249,11 +33113,11 @@ export const OnboardingItem = {
|
|
|
33249
33113
|
if (message.answers?.length) {
|
|
33250
33114
|
obj.answers = message.answers.map((e) => OnboardingAnswer.toJSON(e));
|
|
33251
33115
|
}
|
|
33252
|
-
if (message.
|
|
33253
|
-
obj.
|
|
33116
|
+
if (message.create_time_seconds !== 0) {
|
|
33117
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
33254
33118
|
}
|
|
33255
|
-
if (message.
|
|
33256
|
-
obj.
|
|
33119
|
+
if (message.update_time_seconds !== 0) {
|
|
33120
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
33257
33121
|
}
|
|
33258
33122
|
return obj;
|
|
33259
33123
|
},
|
|
@@ -33272,8 +33136,8 @@ export const OnboardingItem = {
|
|
|
33272
33136
|
message.content = object.content ?? "";
|
|
33273
33137
|
message.image_url = object.image_url ?? "";
|
|
33274
33138
|
message.answers = object.answers?.map((e) => OnboardingAnswer.fromPartial(e)) || [];
|
|
33275
|
-
message.
|
|
33276
|
-
message.
|
|
33139
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
33140
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
33277
33141
|
return message;
|
|
33278
33142
|
},
|
|
33279
33143
|
};
|
|
@@ -35217,9 +35081,9 @@ function createBaseSdTopic(): SdTopic {
|
|
|
35217
35081
|
clan_id: "",
|
|
35218
35082
|
channel_id: "",
|
|
35219
35083
|
status: 0,
|
|
35220
|
-
|
|
35221
|
-
|
|
35222
|
-
|
|
35084
|
+
create_time_seconds: 0,
|
|
35085
|
+
update_time_seconds: 0,
|
|
35086
|
+
content: "",
|
|
35223
35087
|
last_sent_message: undefined,
|
|
35224
35088
|
};
|
|
35225
35089
|
}
|
|
@@ -35244,14 +35108,14 @@ export const SdTopic = {
|
|
|
35244
35108
|
if (message.status !== 0) {
|
|
35245
35109
|
writer.uint32(48).int32(message.status);
|
|
35246
35110
|
}
|
|
35247
|
-
if (message.
|
|
35248
|
-
|
|
35111
|
+
if (message.create_time_seconds !== 0) {
|
|
35112
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
35249
35113
|
}
|
|
35250
|
-
if (message.
|
|
35251
|
-
|
|
35114
|
+
if (message.update_time_seconds !== 0) {
|
|
35115
|
+
writer.uint32(64).uint32(message.update_time_seconds);
|
|
35252
35116
|
}
|
|
35253
|
-
if (message.
|
|
35254
|
-
|
|
35117
|
+
if (message.content !== "") {
|
|
35118
|
+
writer.uint32(74).string(message.content);
|
|
35255
35119
|
}
|
|
35256
35120
|
if (message.last_sent_message !== undefined) {
|
|
35257
35121
|
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
|
|
@@ -35309,25 +35173,25 @@ export const SdTopic = {
|
|
|
35309
35173
|
message.status = reader.int32();
|
|
35310
35174
|
continue;
|
|
35311
35175
|
case 7:
|
|
35312
|
-
if (tag !==
|
|
35176
|
+
if (tag !== 56) {
|
|
35313
35177
|
break;
|
|
35314
35178
|
}
|
|
35315
35179
|
|
|
35316
|
-
message.
|
|
35180
|
+
message.create_time_seconds = reader.uint32();
|
|
35317
35181
|
continue;
|
|
35318
35182
|
case 8:
|
|
35319
|
-
if (tag !==
|
|
35183
|
+
if (tag !== 64) {
|
|
35320
35184
|
break;
|
|
35321
35185
|
}
|
|
35322
35186
|
|
|
35323
|
-
message.
|
|
35187
|
+
message.update_time_seconds = reader.uint32();
|
|
35324
35188
|
continue;
|
|
35325
35189
|
case 9:
|
|
35326
35190
|
if (tag !== 74) {
|
|
35327
35191
|
break;
|
|
35328
35192
|
}
|
|
35329
35193
|
|
|
35330
|
-
message.
|
|
35194
|
+
message.content = reader.string();
|
|
35331
35195
|
continue;
|
|
35332
35196
|
case 10:
|
|
35333
35197
|
if (tag !== 82) {
|
|
@@ -35353,9 +35217,9 @@ export const SdTopic = {
|
|
|
35353
35217
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
35354
35218
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
35355
35219
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
35356
|
-
|
|
35357
|
-
|
|
35358
|
-
|
|
35220
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
35221
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
35222
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
35359
35223
|
last_sent_message: isSet(object.last_sent_message)
|
|
35360
35224
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
35361
35225
|
: undefined,
|
|
@@ -35382,14 +35246,14 @@ export const SdTopic = {
|
|
|
35382
35246
|
if (message.status !== 0) {
|
|
35383
35247
|
obj.status = Math.round(message.status);
|
|
35384
35248
|
}
|
|
35385
|
-
if (message.
|
|
35386
|
-
obj.
|
|
35249
|
+
if (message.create_time_seconds !== 0) {
|
|
35250
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
35387
35251
|
}
|
|
35388
|
-
if (message.
|
|
35389
|
-
obj.
|
|
35252
|
+
if (message.update_time_seconds !== 0) {
|
|
35253
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
35390
35254
|
}
|
|
35391
|
-
if (message.
|
|
35392
|
-
obj.
|
|
35255
|
+
if (message.content !== "") {
|
|
35256
|
+
obj.content = message.content;
|
|
35393
35257
|
}
|
|
35394
35258
|
if (message.last_sent_message !== undefined) {
|
|
35395
35259
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
@@ -35408,11 +35272,9 @@ export const SdTopic = {
|
|
|
35408
35272
|
message.clan_id = object.clan_id ?? "";
|
|
35409
35273
|
message.channel_id = object.channel_id ?? "";
|
|
35410
35274
|
message.status = object.status ?? 0;
|
|
35411
|
-
message.
|
|
35412
|
-
message.
|
|
35413
|
-
message.
|
|
35414
|
-
? ChannelMessage.fromPartial(object.message)
|
|
35415
|
-
: undefined;
|
|
35275
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
35276
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
35277
|
+
message.content = object.content ?? "";
|
|
35416
35278
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
35417
35279
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
35418
35280
|
: undefined;
|
|
@@ -36248,7 +36110,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
|
|
|
36248
36110
|
client_secret_expires_at: 0,
|
|
36249
36111
|
client_uri: "",
|
|
36250
36112
|
contacts: [],
|
|
36251
|
-
|
|
36113
|
+
created_at_seconds: 0,
|
|
36252
36114
|
frontchannel_logout_session_required: false,
|
|
36253
36115
|
frontchannel_logout_uri: "",
|
|
36254
36116
|
grant_types: [],
|
|
@@ -36278,7 +36140,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
|
|
|
36278
36140
|
token_endpoint_auth_method: "",
|
|
36279
36141
|
token_endpoint_auth_signing_alg: "",
|
|
36280
36142
|
tos_uri: "",
|
|
36281
|
-
|
|
36143
|
+
updated_at_seconds: 0,
|
|
36282
36144
|
userinfo_signed_response_alg: "",
|
|
36283
36145
|
};
|
|
36284
36146
|
}
|
|
@@ -36330,8 +36192,8 @@ export const MezonOauthClient = {
|
|
|
36330
36192
|
for (const v of message.contacts) {
|
|
36331
36193
|
writer.uint32(122).string(v!);
|
|
36332
36194
|
}
|
|
36333
|
-
if (message.
|
|
36334
|
-
|
|
36195
|
+
if (message.created_at_seconds !== 0) {
|
|
36196
|
+
writer.uint32(128).uint32(message.created_at_seconds);
|
|
36335
36197
|
}
|
|
36336
36198
|
if (message.frontchannel_logout_session_required !== false) {
|
|
36337
36199
|
writer.uint32(136).bool(message.frontchannel_logout_session_required);
|
|
@@ -36420,8 +36282,8 @@ export const MezonOauthClient = {
|
|
|
36420
36282
|
if (message.tos_uri !== "") {
|
|
36421
36283
|
writer.uint32(362).string(message.tos_uri);
|
|
36422
36284
|
}
|
|
36423
|
-
if (message.
|
|
36424
|
-
|
|
36285
|
+
if (message.updated_at_seconds !== 0) {
|
|
36286
|
+
writer.uint32(368).uint32(message.updated_at_seconds);
|
|
36425
36287
|
}
|
|
36426
36288
|
if (message.userinfo_signed_response_alg !== "") {
|
|
36427
36289
|
writer.uint32(378).string(message.userinfo_signed_response_alg);
|
|
@@ -36542,11 +36404,11 @@ export const MezonOauthClient = {
|
|
|
36542
36404
|
message.contacts.push(reader.string());
|
|
36543
36405
|
continue;
|
|
36544
36406
|
case 16:
|
|
36545
|
-
if (tag !==
|
|
36407
|
+
if (tag !== 128) {
|
|
36546
36408
|
break;
|
|
36547
36409
|
}
|
|
36548
36410
|
|
|
36549
|
-
message.
|
|
36411
|
+
message.created_at_seconds = reader.uint32();
|
|
36550
36412
|
continue;
|
|
36551
36413
|
case 17:
|
|
36552
36414
|
if (tag !== 136) {
|
|
@@ -36752,11 +36614,11 @@ export const MezonOauthClient = {
|
|
|
36752
36614
|
message.tos_uri = reader.string();
|
|
36753
36615
|
continue;
|
|
36754
36616
|
case 46:
|
|
36755
|
-
if (tag !==
|
|
36617
|
+
if (tag !== 368) {
|
|
36756
36618
|
break;
|
|
36757
36619
|
}
|
|
36758
36620
|
|
|
36759
|
-
message.
|
|
36621
|
+
message.updated_at_seconds = reader.uint32();
|
|
36760
36622
|
continue;
|
|
36761
36623
|
case 47:
|
|
36762
36624
|
if (tag !== 378) {
|
|
@@ -36809,7 +36671,7 @@ export const MezonOauthClient = {
|
|
|
36809
36671
|
contacts: globalThis.Array.isArray(object?.contacts)
|
|
36810
36672
|
? object.contacts.map((e: any) => globalThis.String(e))
|
|
36811
36673
|
: [],
|
|
36812
|
-
|
|
36674
|
+
created_at_seconds: isSet(object.created_at_seconds) ? globalThis.Number(object.created_at_seconds) : 0,
|
|
36813
36675
|
frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
|
|
36814
36676
|
? globalThis.Boolean(object.frontchannel_logout_session_required)
|
|
36815
36677
|
: false,
|
|
@@ -36877,7 +36739,7 @@ export const MezonOauthClient = {
|
|
|
36877
36739
|
? globalThis.String(object.token_endpoint_auth_signing_alg)
|
|
36878
36740
|
: "",
|
|
36879
36741
|
tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
|
|
36880
|
-
|
|
36742
|
+
updated_at_seconds: isSet(object.updated_at_seconds) ? globalThis.Number(object.updated_at_seconds) : 0,
|
|
36881
36743
|
userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
|
|
36882
36744
|
? globalThis.String(object.userinfo_signed_response_alg)
|
|
36883
36745
|
: "",
|
|
@@ -36931,8 +36793,8 @@ export const MezonOauthClient = {
|
|
|
36931
36793
|
if (message.contacts?.length) {
|
|
36932
36794
|
obj.contacts = message.contacts;
|
|
36933
36795
|
}
|
|
36934
|
-
if (message.
|
|
36935
|
-
obj.
|
|
36796
|
+
if (message.created_at_seconds !== 0) {
|
|
36797
|
+
obj.created_at_seconds = Math.round(message.created_at_seconds);
|
|
36936
36798
|
}
|
|
36937
36799
|
if (message.frontchannel_logout_session_required !== false) {
|
|
36938
36800
|
obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
|
|
@@ -37021,8 +36883,8 @@ export const MezonOauthClient = {
|
|
|
37021
36883
|
if (message.tos_uri !== "") {
|
|
37022
36884
|
obj.tos_uri = message.tos_uri;
|
|
37023
36885
|
}
|
|
37024
|
-
if (message.
|
|
37025
|
-
obj.
|
|
36886
|
+
if (message.updated_at_seconds !== 0) {
|
|
36887
|
+
obj.updated_at_seconds = Math.round(message.updated_at_seconds);
|
|
37026
36888
|
}
|
|
37027
36889
|
if (message.userinfo_signed_response_alg !== "") {
|
|
37028
36890
|
obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
|
|
@@ -37053,7 +36915,7 @@ export const MezonOauthClient = {
|
|
|
37053
36915
|
message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
|
|
37054
36916
|
message.client_uri = object.client_uri ?? "";
|
|
37055
36917
|
message.contacts = object.contacts?.map((e) => e) || [];
|
|
37056
|
-
message.
|
|
36918
|
+
message.created_at_seconds = object.created_at_seconds ?? 0;
|
|
37057
36919
|
message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
|
|
37058
36920
|
message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
|
|
37059
36921
|
message.grant_types = object.grant_types?.map((e) => e) || [];
|
|
@@ -37083,7 +36945,7 @@ export const MezonOauthClient = {
|
|
|
37083
36945
|
message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
|
|
37084
36946
|
message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
|
|
37085
36947
|
message.tos_uri = object.tos_uri ?? "";
|
|
37086
|
-
message.
|
|
36948
|
+
message.updated_at_seconds = object.updated_at_seconds ?? 0;
|
|
37087
36949
|
message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
|
|
37088
36950
|
return message;
|
|
37089
36951
|
},
|
|
@@ -38989,11 +38851,11 @@ function createBaseLogedDevice(): LogedDevice {
|
|
|
38989
38851
|
return {
|
|
38990
38852
|
device_id: "",
|
|
38991
38853
|
device_name: "",
|
|
38992
|
-
|
|
38854
|
+
login_at_seconds: 0,
|
|
38993
38855
|
status: 0,
|
|
38994
38856
|
platform: "",
|
|
38995
38857
|
ip: "",
|
|
38996
|
-
|
|
38858
|
+
last_active_seconds: 0,
|
|
38997
38859
|
location: "",
|
|
38998
38860
|
is_current: false,
|
|
38999
38861
|
};
|
|
@@ -39007,8 +38869,8 @@ export const LogedDevice = {
|
|
|
39007
38869
|
if (message.device_name !== "") {
|
|
39008
38870
|
writer.uint32(18).string(message.device_name);
|
|
39009
38871
|
}
|
|
39010
|
-
if (message.
|
|
39011
|
-
|
|
38872
|
+
if (message.login_at_seconds !== 0) {
|
|
38873
|
+
writer.uint32(24).uint32(message.login_at_seconds);
|
|
39012
38874
|
}
|
|
39013
38875
|
if (message.status !== 0) {
|
|
39014
38876
|
writer.uint32(32).int32(message.status);
|
|
@@ -39019,8 +38881,8 @@ export const LogedDevice = {
|
|
|
39019
38881
|
if (message.ip !== "") {
|
|
39020
38882
|
writer.uint32(50).string(message.ip);
|
|
39021
38883
|
}
|
|
39022
|
-
if (message.
|
|
39023
|
-
|
|
38884
|
+
if (message.last_active_seconds !== 0) {
|
|
38885
|
+
writer.uint32(56).uint32(message.last_active_seconds);
|
|
39024
38886
|
}
|
|
39025
38887
|
if (message.location !== "") {
|
|
39026
38888
|
writer.uint32(66).string(message.location);
|
|
@@ -39053,11 +38915,11 @@ export const LogedDevice = {
|
|
|
39053
38915
|
message.device_name = reader.string();
|
|
39054
38916
|
continue;
|
|
39055
38917
|
case 3:
|
|
39056
|
-
if (tag !==
|
|
38918
|
+
if (tag !== 24) {
|
|
39057
38919
|
break;
|
|
39058
38920
|
}
|
|
39059
38921
|
|
|
39060
|
-
message.
|
|
38922
|
+
message.login_at_seconds = reader.uint32();
|
|
39061
38923
|
continue;
|
|
39062
38924
|
case 4:
|
|
39063
38925
|
if (tag !== 32) {
|
|
@@ -39081,11 +38943,11 @@ export const LogedDevice = {
|
|
|
39081
38943
|
message.ip = reader.string();
|
|
39082
38944
|
continue;
|
|
39083
38945
|
case 7:
|
|
39084
|
-
if (tag !==
|
|
38946
|
+
if (tag !== 56) {
|
|
39085
38947
|
break;
|
|
39086
38948
|
}
|
|
39087
38949
|
|
|
39088
|
-
message.
|
|
38950
|
+
message.last_active_seconds = reader.uint32();
|
|
39089
38951
|
continue;
|
|
39090
38952
|
case 8:
|
|
39091
38953
|
if (tag !== 66) {
|
|
@@ -39114,11 +38976,11 @@ export const LogedDevice = {
|
|
|
39114
38976
|
return {
|
|
39115
38977
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
39116
38978
|
device_name: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
|
|
39117
|
-
|
|
38979
|
+
login_at_seconds: isSet(object.login_at_seconds) ? globalThis.Number(object.login_at_seconds) : 0,
|
|
39118
38980
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
39119
38981
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
39120
38982
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
39121
|
-
|
|
38983
|
+
last_active_seconds: isSet(object.last_active_seconds) ? globalThis.Number(object.last_active_seconds) : 0,
|
|
39122
38984
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
39123
38985
|
is_current: isSet(object.is_current) ? globalThis.Boolean(object.is_current) : false,
|
|
39124
38986
|
};
|
|
@@ -39132,8 +38994,8 @@ export const LogedDevice = {
|
|
|
39132
38994
|
if (message.device_name !== "") {
|
|
39133
38995
|
obj.device_name = message.device_name;
|
|
39134
38996
|
}
|
|
39135
|
-
if (message.
|
|
39136
|
-
obj.
|
|
38997
|
+
if (message.login_at_seconds !== 0) {
|
|
38998
|
+
obj.login_at_seconds = Math.round(message.login_at_seconds);
|
|
39137
38999
|
}
|
|
39138
39000
|
if (message.status !== 0) {
|
|
39139
39001
|
obj.status = Math.round(message.status);
|
|
@@ -39144,8 +39006,8 @@ export const LogedDevice = {
|
|
|
39144
39006
|
if (message.ip !== "") {
|
|
39145
39007
|
obj.ip = message.ip;
|
|
39146
39008
|
}
|
|
39147
|
-
if (message.
|
|
39148
|
-
obj.
|
|
39009
|
+
if (message.last_active_seconds !== 0) {
|
|
39010
|
+
obj.last_active_seconds = Math.round(message.last_active_seconds);
|
|
39149
39011
|
}
|
|
39150
39012
|
if (message.location !== "") {
|
|
39151
39013
|
obj.location = message.location;
|
|
@@ -39163,11 +39025,11 @@ export const LogedDevice = {
|
|
|
39163
39025
|
const message = createBaseLogedDevice();
|
|
39164
39026
|
message.device_id = object.device_id ?? "";
|
|
39165
39027
|
message.device_name = object.device_name ?? "";
|
|
39166
|
-
message.
|
|
39028
|
+
message.login_at_seconds = object.login_at_seconds ?? 0;
|
|
39167
39029
|
message.status = object.status ?? 0;
|
|
39168
39030
|
message.platform = object.platform ?? "";
|
|
39169
39031
|
message.ip = object.ip ?? "";
|
|
39170
|
-
message.
|
|
39032
|
+
message.last_active_seconds = object.last_active_seconds ?? 0;
|
|
39171
39033
|
message.location = object.location ?? "";
|
|
39172
39034
|
message.is_current = object.is_current ?? false;
|
|
39173
39035
|
return message;
|
|
@@ -39818,28 +39680,6 @@ type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
|
39818
39680
|
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
39819
39681
|
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
39820
39682
|
|
|
39821
|
-
function toTimestamp(date: Date): Timestamp {
|
|
39822
|
-
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
39823
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
39824
|
-
return { seconds, nanos };
|
|
39825
|
-
}
|
|
39826
|
-
|
|
39827
|
-
function fromTimestamp(t: Timestamp): Date {
|
|
39828
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
39829
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
39830
|
-
return new globalThis.Date(millis);
|
|
39831
|
-
}
|
|
39832
|
-
|
|
39833
|
-
function fromJsonTimestamp(o: any): Date {
|
|
39834
|
-
if (o instanceof globalThis.Date) {
|
|
39835
|
-
return o;
|
|
39836
|
-
} else if (typeof o === "string") {
|
|
39837
|
-
return new globalThis.Date(o);
|
|
39838
|
-
} else {
|
|
39839
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
39840
|
-
}
|
|
39841
|
-
}
|
|
39842
|
-
|
|
39843
39683
|
function longToNumber(long: Long): number {
|
|
39844
39684
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
39845
39685
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|