mezon-js-protobuf 1.8.78 → 1.8.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts 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
- verify_time:
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
- disable_time:
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
- create_time:
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
- timestamp:
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
- update_time:
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
- create_time:
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
- update_time: Date | undefined;
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
- dob:
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
- create_time:
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
- update_time:
1119
- | Date
1120
- | undefined;
1101
+ update_time_seconds: number;
1121
1102
  /** About me */
1122
1103
  about_me: string;
1123
1104
  /** Join time */
1124
- join_time:
1125
- | Date
1126
- | undefined;
1105
+ join_time_seconds: number;
1127
1106
  /** Platform */
1128
1107
  is_mobile: boolean;
1129
1108
  /** dob */
1130
- dob:
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
- expiry_time:
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
- create_time:
1374
- | Date
1375
- | undefined;
1348
+ create_time_seconds: number;
1376
1349
  /** expiry time */
1377
- expiry_time: Date | undefined;
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 */
@@ -1874,10 +1839,6 @@ export interface PinMessage {
1874
1839
  /** */
1875
1840
  avatar: string;
1876
1841
  /** 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
1842
  create_time_seconds: number;
1882
1843
  /** attachment */
1883
1844
  attachment: string;
@@ -1894,9 +1855,7 @@ export interface NotificationUserChannel {
1894
1855
  /** */
1895
1856
  notification_setting_type: number;
1896
1857
  /** */
1897
- time_mute:
1898
- | Date
1899
- | undefined;
1858
+ time_mute_seconds: number;
1900
1859
  /** */
1901
1860
  active: number;
1902
1861
  /** */
@@ -2133,8 +2092,8 @@ export interface CreateEventRequest {
2133
2092
  clan_id: string;
2134
2093
  channel_voice_id: string;
2135
2094
  address: string;
2136
- start_time: Date | undefined;
2137
- end_time: Date | undefined;
2095
+ start_time_seconds: number;
2096
+ end_time_seconds: number;
2138
2097
  event_id: string;
2139
2098
  event_status: number;
2140
2099
  channel_id: string;
@@ -2154,8 +2113,8 @@ export interface UpdateEventRequest {
2154
2113
  event_id: string;
2155
2114
  channel_id: string;
2156
2115
  address: string;
2157
- start_time: Date | undefined;
2158
- end_time: Date | undefined;
2116
+ start_time_seconds: number;
2117
+ end_time_seconds: number;
2159
2118
  clan_id: string;
2160
2119
  creator_id: string;
2161
2120
  channel_voice_id: string;
@@ -2401,7 +2360,7 @@ export interface ClanSticker {
2401
2360
  shortname: string;
2402
2361
  category: string;
2403
2362
  creator_id: string;
2404
- create_time: Date | undefined;
2363
+ create_time_seconds: number;
2405
2364
  clan_id: string;
2406
2365
  logo: string;
2407
2366
  clan_name: string;
@@ -2577,13 +2536,9 @@ export interface App {
2577
2536
  /** status online */
2578
2537
  is_shadow: boolean;
2579
2538
  /** The UNIX time when the app was disabled. */
2580
- disable_time:
2581
- | Date
2582
- | undefined;
2539
+ disable_time_seconds: number;
2583
2540
  /** The UNIX time when the app was created */
2584
- create_time:
2585
- | Date
2586
- | undefined;
2541
+ create_time_seconds: number;
2587
2542
  /** string token */
2588
2543
  token: string;
2589
2544
  /** role */
@@ -2686,9 +2641,7 @@ export interface AppClan {
2686
2641
  /** Delete channel messages by timestamp or/and ids. */
2687
2642
  export interface DeleteChannelMessagesRequest {
2688
2643
  /** Timestamp before which messages will be deleted. */
2689
- before:
2690
- | Date
2691
- | undefined;
2644
+ before_seconds: number;
2692
2645
  /** IDs of the messages to delete. */
2693
2646
  ids: string[];
2694
2647
  }
@@ -3074,8 +3027,8 @@ export interface ChannelCanvasItem {
3074
3027
  /** creator */
3075
3028
  creator_id: string;
3076
3029
  /** */
3077
- update_time: Date | undefined;
3078
- create_time: Date | undefined;
3030
+ update_time_seconds: number;
3031
+ create_time_seconds: number;
3079
3032
  }
3080
3033
 
3081
3034
  export interface ChannelCanvasListResponse {
@@ -3140,8 +3093,8 @@ export interface UserActivity {
3140
3093
  activity_name: string;
3141
3094
  activity_type: number;
3142
3095
  activity_description: string;
3143
- start_time: Date | undefined;
3144
- end_time: Date | undefined;
3096
+ start_time_seconds: number;
3097
+ end_time_seconds: number;
3145
3098
  application_id: string;
3146
3099
  status: number;
3147
3100
  }
@@ -3154,7 +3107,7 @@ export interface CreateActivityRequest {
3154
3107
  activity_name: string;
3155
3108
  activity_type: number;
3156
3109
  activity_description: string;
3157
- start_time: Date | undefined;
3110
+ start_time_seconds: number;
3158
3111
  application_id: string;
3159
3112
  status: number;
3160
3113
  }
@@ -3229,7 +3182,7 @@ export interface AuditLog {
3229
3182
  entity_name: string;
3230
3183
  entity_id: string;
3231
3184
  details: string;
3232
- time_log: Date | undefined;
3185
+ time_log_seconds: number;
3233
3186
  channel_id: string;
3234
3187
  channel_label: string;
3235
3188
  }
@@ -3314,11 +3267,9 @@ export interface OnboardingItem {
3314
3267
  /** answers */
3315
3268
  answers: OnboardingAnswer[];
3316
3269
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
3317
- create_time:
3318
- | Date
3319
- | undefined;
3270
+ create_time_seconds: number;
3320
3271
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
3321
- update_time: Date | undefined;
3272
+ update_time_seconds: number;
3322
3273
  }
3323
3274
 
3324
3275
  export interface OnboardingAnswer {
@@ -3525,8 +3476,8 @@ export interface SdTopic {
3525
3476
  clan_id: string;
3526
3477
  channel_id: string;
3527
3478
  status: number;
3528
- create_time: Date | undefined;
3529
- update_time: Date | undefined;
3479
+ create_time_seconds: number;
3480
+ update_time_seconds: number;
3530
3481
  message: ChannelMessage | undefined;
3531
3482
  last_sent_message: ChannelMessageHeader | undefined;
3532
3483
  }
@@ -3602,7 +3553,7 @@ export interface MezonOauthClient {
3602
3553
  client_secret_expires_at: number;
3603
3554
  client_uri: string;
3604
3555
  contacts: string[];
3605
- created_at: Date | undefined;
3556
+ created_at_seconds: number;
3606
3557
  frontchannel_logout_session_required: boolean;
3607
3558
  frontchannel_logout_uri: string;
3608
3559
  grant_types: string[];
@@ -3632,7 +3583,7 @@ export interface MezonOauthClient {
3632
3583
  token_endpoint_auth_method: string;
3633
3584
  token_endpoint_auth_signing_alg: string;
3634
3585
  tos_uri: string;
3635
- updated_at: Date | undefined;
3586
+ updated_at_seconds: number;
3636
3587
  userinfo_signed_response_alg: string;
3637
3588
  }
3638
3589
 
@@ -3774,11 +3725,11 @@ export interface LogedDeviceList {
3774
3725
  export interface LogedDevice {
3775
3726
  device_id: string;
3776
3727
  device_name: string;
3777
- login_at: Date | undefined;
3728
+ login_at_seconds: number;
3778
3729
  status: number;
3779
3730
  platform: string;
3780
3731
  ip: string;
3781
- last_active: Date | undefined;
3732
+ last_active_seconds: number;
3782
3733
  location: string;
3783
3734
  is_current: boolean;
3784
3735
  }
@@ -3828,8 +3779,8 @@ function createBaseAccount(): Account {
3828
3779
  user: undefined,
3829
3780
  email: "",
3830
3781
  qr_code: "",
3831
- verify_time: undefined,
3832
- disable_time: undefined,
3782
+ verify_time_seconds: 0,
3783
+ disable_time_seconds: 0,
3833
3784
  logo: "",
3834
3785
  splash_screen: "",
3835
3786
  encrypt_private_key: "",
@@ -3848,11 +3799,11 @@ export const Account = {
3848
3799
  if (message.qr_code !== "") {
3849
3800
  writer.uint32(26).string(message.qr_code);
3850
3801
  }
3851
- if (message.verify_time !== undefined) {
3852
- Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
3802
+ if (message.verify_time_seconds !== 0) {
3803
+ writer.uint32(32).uint32(message.verify_time_seconds);
3853
3804
  }
3854
- if (message.disable_time !== undefined) {
3855
- Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(42).fork()).ldelim();
3805
+ if (message.disable_time_seconds !== 0) {
3806
+ writer.uint32(40).uint32(message.disable_time_seconds);
3856
3807
  }
3857
3808
  if (message.logo !== "") {
3858
3809
  writer.uint32(50).string(message.logo);
@@ -3898,18 +3849,18 @@ export const Account = {
3898
3849
  message.qr_code = reader.string();
3899
3850
  continue;
3900
3851
  case 4:
3901
- if (tag !== 34) {
3852
+ if (tag !== 32) {
3902
3853
  break;
3903
3854
  }
3904
3855
 
3905
- message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3856
+ message.verify_time_seconds = reader.uint32();
3906
3857
  continue;
3907
3858
  case 5:
3908
- if (tag !== 42) {
3859
+ if (tag !== 40) {
3909
3860
  break;
3910
3861
  }
3911
3862
 
3912
- message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3863
+ message.disable_time_seconds = reader.uint32();
3913
3864
  continue;
3914
3865
  case 6:
3915
3866
  if (tag !== 50) {
@@ -3953,8 +3904,8 @@ export const Account = {
3953
3904
  user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
3954
3905
  email: isSet(object.email) ? globalThis.String(object.email) : "",
3955
3906
  qr_code: isSet(object.qr_code) ? globalThis.String(object.qr_code) : "",
3956
- verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
3957
- disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
3907
+ verify_time_seconds: isSet(object.verify_time_seconds) ? globalThis.Number(object.verify_time_seconds) : 0,
3908
+ disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
3958
3909
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
3959
3910
  splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
3960
3911
  encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
@@ -3973,11 +3924,11 @@ export const Account = {
3973
3924
  if (message.qr_code !== "") {
3974
3925
  obj.qr_code = message.qr_code;
3975
3926
  }
3976
- if (message.verify_time !== undefined) {
3977
- obj.verify_time = message.verify_time.toISOString();
3927
+ if (message.verify_time_seconds !== 0) {
3928
+ obj.verify_time_seconds = Math.round(message.verify_time_seconds);
3978
3929
  }
3979
- if (message.disable_time !== undefined) {
3980
- obj.disable_time = message.disable_time.toISOString();
3930
+ if (message.disable_time_seconds !== 0) {
3931
+ obj.disable_time_seconds = Math.round(message.disable_time_seconds);
3981
3932
  }
3982
3933
  if (message.logo !== "") {
3983
3934
  obj.logo = message.logo;
@@ -4002,8 +3953,8 @@ export const Account = {
4002
3953
  message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
4003
3954
  message.email = object.email ?? "";
4004
3955
  message.qr_code = object.qr_code ?? "";
4005
- message.verify_time = object.verify_time ?? undefined;
4006
- message.disable_time = object.disable_time ?? undefined;
3956
+ message.verify_time_seconds = object.verify_time_seconds ?? 0;
3957
+ message.disable_time_seconds = object.disable_time_seconds ?? 0;
4007
3958
  message.logo = object.logo ?? "";
4008
3959
  message.splash_screen = object.splash_screen ?? "";
4009
3960
  message.encrypt_private_key = object.encrypt_private_key ?? "";
@@ -5437,7 +5388,7 @@ export const ChannelMessage = {
5437
5388
  };
5438
5389
 
5439
5390
  function createBaseMessageMention(): MessageMention {
5440
- return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time: undefined, s: 0, e: 0 };
5391
+ return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_second: 0, s: 0, e: 0 };
5441
5392
  }
5442
5393
 
5443
5394
  export const MessageMention = {
@@ -5457,8 +5408,8 @@ export const MessageMention = {
5457
5408
  if (message.rolename !== "") {
5458
5409
  writer.uint32(42).string(message.rolename);
5459
5410
  }
5460
- if (message.create_time !== undefined) {
5461
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
5411
+ if (message.create_time_second !== 0) {
5412
+ writer.uint32(48).uint32(message.create_time_second);
5462
5413
  }
5463
5414
  if (message.s !== 0) {
5464
5415
  writer.uint32(56).int32(message.s);
@@ -5512,11 +5463,11 @@ export const MessageMention = {
5512
5463
  message.rolename = reader.string();
5513
5464
  continue;
5514
5465
  case 6:
5515
- if (tag !== 50) {
5466
+ if (tag !== 48) {
5516
5467
  break;
5517
5468
  }
5518
5469
 
5519
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5470
+ message.create_time_second = reader.uint32();
5520
5471
  continue;
5521
5472
  case 7:
5522
5473
  if (tag !== 56) {
@@ -5548,7 +5499,7 @@ export const MessageMention = {
5548
5499
  username: isSet(object.username) ? globalThis.String(object.username) : "",
5549
5500
  role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
5550
5501
  rolename: isSet(object.rolename) ? globalThis.String(object.rolename) : "",
5551
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
5502
+ create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
5552
5503
  s: isSet(object.s) ? globalThis.Number(object.s) : 0,
5553
5504
  e: isSet(object.e) ? globalThis.Number(object.e) : 0,
5554
5505
  };
@@ -5571,8 +5522,8 @@ export const MessageMention = {
5571
5522
  if (message.rolename !== "") {
5572
5523
  obj.rolename = message.rolename;
5573
5524
  }
5574
- if (message.create_time !== undefined) {
5575
- obj.create_time = message.create_time.toISOString();
5525
+ if (message.create_time_second !== 0) {
5526
+ obj.create_time_second = Math.round(message.create_time_second);
5576
5527
  }
5577
5528
  if (message.s !== 0) {
5578
5529
  obj.s = Math.round(message.s);
@@ -5593,7 +5544,7 @@ export const MessageMention = {
5593
5544
  message.username = object.username ?? "";
5594
5545
  message.role_id = object.role_id ?? "";
5595
5546
  message.rolename = object.rolename ?? "";
5596
- message.create_time = object.create_time ?? undefined;
5547
+ message.create_time_second = object.create_time_second ?? 0;
5597
5548
  message.s = object.s ?? 0;
5598
5549
  message.e = object.e ?? 0;
5599
5550
  return message;
@@ -7014,7 +6965,7 @@ export const DeleteNotificationsRequest = {
7014
6965
  };
7015
6966
 
7016
6967
  function createBaseEvent(): Event {
7017
- return { name: "", properties: {}, timestamp: undefined, external: false };
6968
+ return { name: "", properties: {}, timestamp_seconds: 0, external: false };
7018
6969
  }
7019
6970
 
7020
6971
  export const Event = {
@@ -7025,8 +6976,8 @@ export const Event = {
7025
6976
  Object.entries(message.properties).forEach(([key, value]) => {
7026
6977
  Event_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
7027
6978
  });
7028
- if (message.timestamp !== undefined) {
7029
- Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim();
6979
+ if (message.timestamp_seconds !== 0) {
6980
+ writer.uint32(24).uint32(message.timestamp_seconds);
7030
6981
  }
7031
6982
  if (message.external !== false) {
7032
6983
  writer.uint32(32).bool(message.external);
@@ -7059,11 +7010,11 @@ export const Event = {
7059
7010
  }
7060
7011
  continue;
7061
7012
  case 3:
7062
- if (tag !== 26) {
7013
+ if (tag !== 24) {
7063
7014
  break;
7064
7015
  }
7065
7016
 
7066
- message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
7017
+ message.timestamp_seconds = reader.uint32();
7067
7018
  continue;
7068
7019
  case 4:
7069
7020
  if (tag !== 32) {
@@ -7090,7 +7041,7 @@ export const Event = {
7090
7041
  return acc;
7091
7042
  }, {})
7092
7043
  : {},
7093
- timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
7044
+ timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
7094
7045
  external: isSet(object.external) ? globalThis.Boolean(object.external) : false,
7095
7046
  };
7096
7047
  },
@@ -7109,8 +7060,8 @@ export const Event = {
7109
7060
  });
7110
7061
  }
7111
7062
  }
7112
- if (message.timestamp !== undefined) {
7113
- obj.timestamp = message.timestamp.toISOString();
7063
+ if (message.timestamp_seconds !== 0) {
7064
+ obj.timestamp_seconds = Math.round(message.timestamp_seconds);
7114
7065
  }
7115
7066
  if (message.external !== false) {
7116
7067
  obj.external = message.external;
@@ -7133,7 +7084,7 @@ export const Event = {
7133
7084
  },
7134
7085
  {},
7135
7086
  );
7136
- message.timestamp = object.timestamp ?? undefined;
7087
+ message.timestamp_seconds = object.timestamp_seconds ?? 0;
7137
7088
  message.external = object.external ?? false;
7138
7089
  return message;
7139
7090
  },
@@ -7214,7 +7165,7 @@ export const Event_PropertiesEntry = {
7214
7165
  };
7215
7166
 
7216
7167
  function createBaseFriend(): Friend {
7217
- return { user: undefined, state: 0, update_time: undefined, source_id: "" };
7168
+ return { user: undefined, state: 0, update_time_seconds: 0, source_id: "" };
7218
7169
  }
7219
7170
 
7220
7171
  export const Friend = {
@@ -7225,8 +7176,8 @@ export const Friend = {
7225
7176
  if (message.state !== 0) {
7226
7177
  writer.uint32(16).int32(message.state);
7227
7178
  }
7228
- if (message.update_time !== undefined) {
7229
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(26).fork()).ldelim();
7179
+ if (message.update_time_seconds !== 0) {
7180
+ writer.uint32(24).uint32(message.update_time_seconds);
7230
7181
  }
7231
7182
  if (message.source_id !== "") {
7232
7183
  writer.uint32(34).string(message.source_id);
@@ -7256,11 +7207,11 @@ export const Friend = {
7256
7207
  message.state = reader.int32();
7257
7208
  continue;
7258
7209
  case 3:
7259
- if (tag !== 26) {
7210
+ if (tag !== 24) {
7260
7211
  break;
7261
7212
  }
7262
7213
 
7263
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
7214
+ message.update_time_seconds = reader.uint32();
7264
7215
  continue;
7265
7216
  case 4:
7266
7217
  if (tag !== 34) {
@@ -7282,7 +7233,7 @@ export const Friend = {
7282
7233
  return {
7283
7234
  user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
7284
7235
  state: isSet(object.state) ? globalThis.Number(object.state) : 0,
7285
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
7236
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
7286
7237
  source_id: isSet(object.source_id) ? globalThis.String(object.source_id) : "",
7287
7238
  };
7288
7239
  },
@@ -7295,8 +7246,8 @@ export const Friend = {
7295
7246
  if (message.state !== 0) {
7296
7247
  obj.state = Math.round(message.state);
7297
7248
  }
7298
- if (message.update_time !== undefined) {
7299
- obj.update_time = message.update_time.toISOString();
7249
+ if (message.update_time_seconds !== 0) {
7250
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
7300
7251
  }
7301
7252
  if (message.source_id !== "") {
7302
7253
  obj.source_id = message.source_id;
@@ -7311,7 +7262,7 @@ export const Friend = {
7311
7262
  const message = createBaseFriend();
7312
7263
  message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
7313
7264
  message.state = object.state ?? 0;
7314
- message.update_time = object.update_time ?? undefined;
7265
+ message.update_time_seconds = object.update_time_seconds ?? 0;
7315
7266
  message.source_id = object.source_id ?? "";
7316
7267
  return message;
7317
7268
  },
@@ -9641,7 +9592,7 @@ function createBaseNotification(): Notification {
9641
9592
  content: new Uint8Array(0),
9642
9593
  code: 0,
9643
9594
  sender_id: "",
9644
- create_time: undefined,
9595
+ create_time_seconds: 0,
9645
9596
  persistent: false,
9646
9597
  clan_id: "",
9647
9598
  channel_id: "",
@@ -9670,8 +9621,8 @@ export const Notification = {
9670
9621
  if (message.sender_id !== "") {
9671
9622
  writer.uint32(42).string(message.sender_id);
9672
9623
  }
9673
- if (message.create_time !== undefined) {
9674
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
9624
+ if (message.create_time_seconds !== 0) {
9625
+ writer.uint32(48).uint32(message.create_time_seconds);
9675
9626
  }
9676
9627
  if (message.persistent !== false) {
9677
9628
  writer.uint32(56).bool(message.persistent);
@@ -9743,11 +9694,11 @@ export const Notification = {
9743
9694
  message.sender_id = reader.string();
9744
9695
  continue;
9745
9696
  case 6:
9746
- if (tag !== 50) {
9697
+ if (tag !== 48) {
9747
9698
  break;
9748
9699
  }
9749
9700
 
9750
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
9701
+ message.create_time_seconds = reader.uint32();
9751
9702
  continue;
9752
9703
  case 7:
9753
9704
  if (tag !== 56) {
@@ -9821,7 +9772,7 @@ export const Notification = {
9821
9772
  content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
9822
9773
  code: isSet(object.code) ? globalThis.Number(object.code) : 0,
9823
9774
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
9824
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
9775
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
9825
9776
  persistent: isSet(object.persistent) ? globalThis.Boolean(object.persistent) : false,
9826
9777
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
9827
9778
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
@@ -9850,8 +9801,8 @@ export const Notification = {
9850
9801
  if (message.sender_id !== "") {
9851
9802
  obj.sender_id = message.sender_id;
9852
9803
  }
9853
- if (message.create_time !== undefined) {
9854
- obj.create_time = message.create_time.toISOString();
9804
+ if (message.create_time_seconds !== 0) {
9805
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
9855
9806
  }
9856
9807
  if (message.persistent !== false) {
9857
9808
  obj.persistent = message.persistent;
@@ -9890,7 +9841,7 @@ export const Notification = {
9890
9841
  message.content = object.content ?? new Uint8Array(0);
9891
9842
  message.code = object.code ?? 0;
9892
9843
  message.sender_id = object.sender_id ?? "";
9893
- message.create_time = object.create_time ?? undefined;
9844
+ message.create_time_seconds = object.create_time_seconds ?? 0;
9894
9845
  message.persistent = object.persistent ?? false;
9895
9846
  message.clan_id = object.clan_id ?? "";
9896
9847
  message.channel_id = object.channel_id ?? "";
@@ -9906,7 +9857,7 @@ export const Notification = {
9906
9857
  };
9907
9858
 
9908
9859
  function createBaseEmojiRecent(): EmojiRecent {
9909
- return { emoji_recents_id: "", emoji_id: "", update_time: undefined };
9860
+ return { emoji_recents_id: "", emoji_id: "", update_time_seconds: 0 };
9910
9861
  }
9911
9862
 
9912
9863
  export const EmojiRecent = {
@@ -9917,8 +9868,8 @@ export const EmojiRecent = {
9917
9868
  if (message.emoji_id !== "") {
9918
9869
  writer.uint32(18).string(message.emoji_id);
9919
9870
  }
9920
- if (message.update_time !== undefined) {
9921
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(26).fork()).ldelim();
9871
+ if (message.update_time_seconds !== 0) {
9872
+ writer.uint32(24).uint32(message.update_time_seconds);
9922
9873
  }
9923
9874
  return writer;
9924
9875
  },
@@ -9945,11 +9896,11 @@ export const EmojiRecent = {
9945
9896
  message.emoji_id = reader.string();
9946
9897
  continue;
9947
9898
  case 3:
9948
- if (tag !== 26) {
9899
+ if (tag !== 24) {
9949
9900
  break;
9950
9901
  }
9951
9902
 
9952
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
9903
+ message.update_time_seconds = reader.uint32();
9953
9904
  continue;
9954
9905
  }
9955
9906
  if ((tag & 7) === 4 || tag === 0) {
@@ -9964,7 +9915,7 @@ export const EmojiRecent = {
9964
9915
  return {
9965
9916
  emoji_recents_id: isSet(object.emoji_recents_id) ? globalThis.String(object.emoji_recents_id) : "",
9966
9917
  emoji_id: isSet(object.emoji_id) ? globalThis.String(object.emoji_id) : "",
9967
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
9918
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
9968
9919
  };
9969
9920
  },
9970
9921
 
@@ -9976,8 +9927,8 @@ export const EmojiRecent = {
9976
9927
  if (message.emoji_id !== "") {
9977
9928
  obj.emoji_id = message.emoji_id;
9978
9929
  }
9979
- if (message.update_time !== undefined) {
9980
- obj.update_time = message.update_time.toISOString();
9930
+ if (message.update_time_seconds !== 0) {
9931
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
9981
9932
  }
9982
9933
  return obj;
9983
9934
  },
@@ -9989,7 +9940,7 @@ export const EmojiRecent = {
9989
9940
  const message = createBaseEmojiRecent();
9990
9941
  message.emoji_recents_id = object.emoji_recents_id ?? "";
9991
9942
  message.emoji_id = object.emoji_id ?? "";
9992
- message.update_time = object.update_time ?? undefined;
9943
+ message.update_time_seconds = object.update_time_seconds ?? 0;
9993
9944
  return message;
9994
9945
  },
9995
9946
  };
@@ -10599,7 +10550,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
10599
10550
  location: undefined,
10600
10551
  timezone: undefined,
10601
10552
  about_me: undefined,
10602
- dob: undefined,
10553
+ dob_seconds: 0,
10603
10554
  logo: undefined,
10604
10555
  splash_screen: undefined,
10605
10556
  encrypt_private_key: "",
@@ -10627,8 +10578,8 @@ export const UpdateAccountRequest = {
10627
10578
  if (message.about_me !== undefined) {
10628
10579
  StringValue.encode({ value: message.about_me! }, writer.uint32(50).fork()).ldelim();
10629
10580
  }
10630
- if (message.dob !== undefined) {
10631
- Timestamp.encode(toTimestamp(message.dob), writer.uint32(58).fork()).ldelim();
10581
+ if (message.dob_seconds !== 0) {
10582
+ writer.uint32(56).uint32(message.dob_seconds);
10632
10583
  }
10633
10584
  if (message.logo !== undefined) {
10634
10585
  StringValue.encode({ value: message.logo! }, writer.uint32(66).fork()).ldelim();
@@ -10695,11 +10646,11 @@ export const UpdateAccountRequest = {
10695
10646
  message.about_me = StringValue.decode(reader, reader.uint32()).value;
10696
10647
  continue;
10697
10648
  case 7:
10698
- if (tag !== 58) {
10649
+ if (tag !== 56) {
10699
10650
  break;
10700
10651
  }
10701
10652
 
10702
- message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10653
+ message.dob_seconds = reader.uint32();
10703
10654
  continue;
10704
10655
  case 8:
10705
10656
  if (tag !== 66) {
@@ -10746,7 +10697,7 @@ export const UpdateAccountRequest = {
10746
10697
  location: isSet(object.location) ? String(object.location) : undefined,
10747
10698
  timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
10748
10699
  about_me: isSet(object.about_me) ? String(object.about_me) : undefined,
10749
- dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
10700
+ dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
10750
10701
  logo: isSet(object.logo) ? String(object.logo) : undefined,
10751
10702
  splash_screen: isSet(object.splash_screen) ? String(object.splash_screen) : undefined,
10752
10703
  encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
@@ -10774,8 +10725,8 @@ export const UpdateAccountRequest = {
10774
10725
  if (message.about_me !== undefined) {
10775
10726
  obj.about_me = message.about_me;
10776
10727
  }
10777
- if (message.dob !== undefined) {
10778
- obj.dob = message.dob.toISOString();
10728
+ if (message.dob_seconds !== 0) {
10729
+ obj.dob_seconds = Math.round(message.dob_seconds);
10779
10730
  }
10780
10731
  if (message.logo !== undefined) {
10781
10732
  obj.logo = message.logo;
@@ -10803,7 +10754,7 @@ export const UpdateAccountRequest = {
10803
10754
  message.location = object.location ?? undefined;
10804
10755
  message.timezone = object.timezone ?? undefined;
10805
10756
  message.about_me = object.about_me ?? undefined;
10806
- message.dob = object.dob ?? undefined;
10757
+ message.dob_seconds = object.dob_seconds ?? 0;
10807
10758
  message.logo = object.logo ?? undefined;
10808
10759
  message.splash_screen = object.splash_screen ?? undefined;
10809
10760
  message.encrypt_private_key = object.encrypt_private_key ?? "";
@@ -11055,12 +11006,12 @@ function createBaseUser(): User {
11055
11006
  online: false,
11056
11007
  phone_number: "",
11057
11008
  edge_count: 0,
11058
- create_time: undefined,
11059
- update_time: undefined,
11009
+ create_time_seconds: 0,
11010
+ update_time_seconds: 0,
11060
11011
  about_me: "",
11061
- join_time: undefined,
11012
+ join_time_seconds: 0,
11062
11013
  is_mobile: false,
11063
- dob: undefined,
11014
+ dob_seconds: 0,
11064
11015
  mezon_id: "",
11065
11016
  list_nick_names: [],
11066
11017
  status: "",
@@ -11102,23 +11053,23 @@ export const User = {
11102
11053
  if (message.edge_count !== 0) {
11103
11054
  writer.uint32(88).int32(message.edge_count);
11104
11055
  }
11105
- if (message.create_time !== undefined) {
11106
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
11056
+ if (message.create_time_seconds !== 0) {
11057
+ writer.uint32(96).uint32(message.create_time_seconds);
11107
11058
  }
11108
- if (message.update_time !== undefined) {
11109
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
11059
+ if (message.update_time_seconds !== 0) {
11060
+ writer.uint32(104).uint32(message.update_time_seconds);
11110
11061
  }
11111
11062
  if (message.about_me !== "") {
11112
11063
  writer.uint32(114).string(message.about_me);
11113
11064
  }
11114
- if (message.join_time !== undefined) {
11115
- Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
11065
+ if (message.join_time_seconds !== 0) {
11066
+ writer.uint32(120).uint32(message.join_time_seconds);
11116
11067
  }
11117
11068
  if (message.is_mobile !== false) {
11118
11069
  writer.uint32(128).bool(message.is_mobile);
11119
11070
  }
11120
- if (message.dob !== undefined) {
11121
- Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
11071
+ if (message.dob_seconds !== 0) {
11072
+ writer.uint32(136).uint32(message.dob_seconds);
11122
11073
  }
11123
11074
  if (message.mezon_id !== "") {
11124
11075
  writer.uint32(146).string(message.mezon_id);
@@ -11217,18 +11168,18 @@ export const User = {
11217
11168
  message.edge_count = reader.int32();
11218
11169
  continue;
11219
11170
  case 12:
11220
- if (tag !== 98) {
11171
+ if (tag !== 96) {
11221
11172
  break;
11222
11173
  }
11223
11174
 
11224
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11175
+ message.create_time_seconds = reader.uint32();
11225
11176
  continue;
11226
11177
  case 13:
11227
- if (tag !== 106) {
11178
+ if (tag !== 104) {
11228
11179
  break;
11229
11180
  }
11230
11181
 
11231
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11182
+ message.update_time_seconds = reader.uint32();
11232
11183
  continue;
11233
11184
  case 14:
11234
11185
  if (tag !== 114) {
@@ -11238,11 +11189,11 @@ export const User = {
11238
11189
  message.about_me = reader.string();
11239
11190
  continue;
11240
11191
  case 15:
11241
- if (tag !== 122) {
11192
+ if (tag !== 120) {
11242
11193
  break;
11243
11194
  }
11244
11195
 
11245
- message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11196
+ message.join_time_seconds = reader.uint32();
11246
11197
  continue;
11247
11198
  case 16:
11248
11199
  if (tag !== 128) {
@@ -11252,11 +11203,11 @@ export const User = {
11252
11203
  message.is_mobile = reader.bool();
11253
11204
  continue;
11254
11205
  case 17:
11255
- if (tag !== 138) {
11206
+ if (tag !== 136) {
11256
11207
  break;
11257
11208
  }
11258
11209
 
11259
- message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11210
+ message.dob_seconds = reader.uint32();
11260
11211
  continue;
11261
11212
  case 18:
11262
11213
  if (tag !== 146) {
@@ -11301,12 +11252,12 @@ export const User = {
11301
11252
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
11302
11253
  phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
11303
11254
  edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
11304
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
11305
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
11255
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
11256
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
11306
11257
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
11307
- join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
11258
+ join_time_seconds: isSet(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
11308
11259
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
11309
- dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
11260
+ dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
11310
11261
  mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
11311
11262
  list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
11312
11263
  ? object.list_nick_names.map((e: any) => globalThis.String(e))
@@ -11350,23 +11301,23 @@ export const User = {
11350
11301
  if (message.edge_count !== 0) {
11351
11302
  obj.edge_count = Math.round(message.edge_count);
11352
11303
  }
11353
- if (message.create_time !== undefined) {
11354
- obj.create_time = message.create_time.toISOString();
11304
+ if (message.create_time_seconds !== 0) {
11305
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
11355
11306
  }
11356
- if (message.update_time !== undefined) {
11357
- obj.update_time = message.update_time.toISOString();
11307
+ if (message.update_time_seconds !== 0) {
11308
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
11358
11309
  }
11359
11310
  if (message.about_me !== "") {
11360
11311
  obj.about_me = message.about_me;
11361
11312
  }
11362
- if (message.join_time !== undefined) {
11363
- obj.join_time = message.join_time.toISOString();
11313
+ if (message.join_time_seconds !== 0) {
11314
+ obj.join_time_seconds = Math.round(message.join_time_seconds);
11364
11315
  }
11365
11316
  if (message.is_mobile !== false) {
11366
11317
  obj.is_mobile = message.is_mobile;
11367
11318
  }
11368
- if (message.dob !== undefined) {
11369
- obj.dob = message.dob.toISOString();
11319
+ if (message.dob_seconds !== 0) {
11320
+ obj.dob_seconds = Math.round(message.dob_seconds);
11370
11321
  }
11371
11322
  if (message.mezon_id !== "") {
11372
11323
  obj.mezon_id = message.mezon_id;
@@ -11396,12 +11347,12 @@ export const User = {
11396
11347
  message.online = object.online ?? false;
11397
11348
  message.phone_number = object.phone_number ?? "";
11398
11349
  message.edge_count = object.edge_count ?? 0;
11399
- message.create_time = object.create_time ?? undefined;
11400
- message.update_time = object.update_time ?? undefined;
11350
+ message.create_time_seconds = object.create_time_seconds ?? 0;
11351
+ message.update_time_seconds = object.update_time_seconds ?? 0;
11401
11352
  message.about_me = object.about_me ?? "";
11402
- message.join_time = object.join_time ?? undefined;
11353
+ message.join_time_seconds = object.join_time_seconds ?? 0;
11403
11354
  message.is_mobile = object.is_mobile ?? false;
11404
- message.dob = object.dob ?? undefined;
11355
+ message.dob_seconds = object.dob_seconds ?? 0;
11405
11356
  message.mezon_id = object.mezon_id ?? "";
11406
11357
  message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
11407
11358
  message.status = object.status ?? "";
@@ -12949,7 +12900,7 @@ function createBaseInviteUserRes(): InviteUserRes {
12949
12900
  clan_name: "",
12950
12901
  channel_label: "",
12951
12902
  user_joined: false,
12952
- expiry_time: undefined,
12903
+ expiry_time_seconds: 0,
12953
12904
  channel_desc: undefined,
12954
12905
  clan_logo: "",
12955
12906
  member_count: 0,
@@ -12973,8 +12924,8 @@ export const InviteUserRes = {
12973
12924
  if (message.user_joined !== false) {
12974
12925
  writer.uint32(40).bool(message.user_joined);
12975
12926
  }
12976
- if (message.expiry_time !== undefined) {
12977
- Timestamp.encode(toTimestamp(message.expiry_time), writer.uint32(50).fork()).ldelim();
12927
+ if (message.expiry_time_seconds !== 0) {
12928
+ writer.uint32(48).uint32(message.expiry_time_seconds);
12978
12929
  }
12979
12930
  if (message.channel_desc !== undefined) {
12980
12931
  ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
@@ -13031,11 +12982,11 @@ export const InviteUserRes = {
13031
12982
  message.user_joined = reader.bool();
13032
12983
  continue;
13033
12984
  case 6:
13034
- if (tag !== 50) {
12985
+ if (tag !== 48) {
13035
12986
  break;
13036
12987
  }
13037
12988
 
13038
- message.expiry_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12989
+ message.expiry_time_seconds = reader.uint32();
13039
12990
  continue;
13040
12991
  case 7:
13041
12992
  if (tag !== 58) {
@@ -13074,7 +13025,7 @@ export const InviteUserRes = {
13074
13025
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
13075
13026
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
13076
13027
  user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
13077
- expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
13028
+ expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
13078
13029
  channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
13079
13030
  clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
13080
13031
  member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
@@ -13098,8 +13049,8 @@ export const InviteUserRes = {
13098
13049
  if (message.user_joined !== false) {
13099
13050
  obj.user_joined = message.user_joined;
13100
13051
  }
13101
- if (message.expiry_time !== undefined) {
13102
- obj.expiry_time = message.expiry_time.toISOString();
13052
+ if (message.expiry_time_seconds !== 0) {
13053
+ obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
13103
13054
  }
13104
13055
  if (message.channel_desc !== undefined) {
13105
13056
  obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
@@ -13123,7 +13074,7 @@ export const InviteUserRes = {
13123
13074
  message.clan_name = object.clan_name ?? "";
13124
13075
  message.channel_label = object.channel_label ?? "";
13125
13076
  message.user_joined = object.user_joined ?? false;
13126
- message.expiry_time = object.expiry_time ?? undefined;
13077
+ message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
13127
13078
  message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
13128
13079
  ? ChannelDescription.fromPartial(object.channel_desc)
13129
13080
  : undefined;
@@ -13213,8 +13164,8 @@ function createBaseLinkInviteUser(): LinkInviteUser {
13213
13164
  creator_id: "",
13214
13165
  channel_id: "",
13215
13166
  invite_link: "",
13216
- create_time: undefined,
13217
- expiry_time: undefined,
13167
+ create_time_seconds: 0,
13168
+ expiry_time_seconds: 0,
13218
13169
  id: "",
13219
13170
  };
13220
13171
  }
@@ -13233,11 +13184,11 @@ export const LinkInviteUser = {
13233
13184
  if (message.invite_link !== "") {
13234
13185
  writer.uint32(34).string(message.invite_link);
13235
13186
  }
13236
- if (message.create_time !== undefined) {
13237
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(42).fork()).ldelim();
13187
+ if (message.create_time_seconds !== 0) {
13188
+ writer.uint32(40).uint32(message.create_time_seconds);
13238
13189
  }
13239
- if (message.expiry_time !== undefined) {
13240
- Timestamp.encode(toTimestamp(message.expiry_time), writer.uint32(50).fork()).ldelim();
13190
+ if (message.expiry_time_seconds !== 0) {
13191
+ writer.uint32(48).uint32(message.expiry_time_seconds);
13241
13192
  }
13242
13193
  if (message.id !== "") {
13243
13194
  writer.uint32(58).string(message.id);
@@ -13281,18 +13232,18 @@ export const LinkInviteUser = {
13281
13232
  message.invite_link = reader.string();
13282
13233
  continue;
13283
13234
  case 5:
13284
- if (tag !== 42) {
13235
+ if (tag !== 40) {
13285
13236
  break;
13286
13237
  }
13287
13238
 
13288
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13239
+ message.create_time_seconds = reader.uint32();
13289
13240
  continue;
13290
13241
  case 6:
13291
- if (tag !== 50) {
13242
+ if (tag !== 48) {
13292
13243
  break;
13293
13244
  }
13294
13245
 
13295
- message.expiry_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13246
+ message.expiry_time_seconds = reader.uint32();
13296
13247
  continue;
13297
13248
  case 7:
13298
13249
  if (tag !== 58) {
@@ -13316,8 +13267,8 @@ export const LinkInviteUser = {
13316
13267
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
13317
13268
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
13318
13269
  invite_link: isSet(object.invite_link) ? globalThis.String(object.invite_link) : "",
13319
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
13320
- expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
13270
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
13271
+ expiry_time_seconds: isSet(object.expiry_time_seconds) ? globalThis.Number(object.expiry_time_seconds) : 0,
13321
13272
  id: isSet(object.id) ? globalThis.String(object.id) : "",
13322
13273
  };
13323
13274
  },
@@ -13336,11 +13287,11 @@ export const LinkInviteUser = {
13336
13287
  if (message.invite_link !== "") {
13337
13288
  obj.invite_link = message.invite_link;
13338
13289
  }
13339
- if (message.create_time !== undefined) {
13340
- obj.create_time = message.create_time.toISOString();
13290
+ if (message.create_time_seconds !== 0) {
13291
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
13341
13292
  }
13342
- if (message.expiry_time !== undefined) {
13343
- obj.expiry_time = message.expiry_time.toISOString();
13293
+ if (message.expiry_time_seconds !== 0) {
13294
+ obj.expiry_time_seconds = Math.round(message.expiry_time_seconds);
13344
13295
  }
13345
13296
  if (message.id !== "") {
13346
13297
  obj.id = message.id;
@@ -13357,8 +13308,8 @@ export const LinkInviteUser = {
13357
13308
  message.creator_id = object.creator_id ?? "";
13358
13309
  message.channel_id = object.channel_id ?? "";
13359
13310
  message.invite_link = object.invite_link ?? "";
13360
- message.create_time = object.create_time ?? undefined;
13361
- message.expiry_time = object.expiry_time ?? undefined;
13311
+ message.create_time_seconds = object.create_time_seconds ?? 0;
13312
+ message.expiry_time_seconds = object.expiry_time_seconds ?? 0;
13362
13313
  message.id = object.id ?? "";
13363
13314
  return message;
13364
13315
  },
@@ -14499,16 +14450,7 @@ export const ListCategoryDescsRequest = {
14499
14450
  };
14500
14451
 
14501
14452
  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
- };
14453
+ return { id: "", timestamp_seconds: 0, sender_id: "", content: "" };
14512
14454
  }
14513
14455
 
14514
14456
  export const ChannelMessageHeader = {
@@ -14525,18 +14467,6 @@ export const ChannelMessageHeader = {
14525
14467
  if (message.content !== "") {
14526
14468
  writer.uint32(34).string(message.content);
14527
14469
  }
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
14470
  return writer;
14541
14471
  },
14542
14472
 
@@ -14575,34 +14505,6 @@ export const ChannelMessageHeader = {
14575
14505
 
14576
14506
  message.content = reader.string();
14577
14507
  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
14508
  }
14607
14509
  if ((tag & 7) === 4 || tag === 0) {
14608
14510
  break;
@@ -14618,10 +14520,6 @@ export const ChannelMessageHeader = {
14618
14520
  timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
14619
14521
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
14620
14522
  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
14523
  };
14626
14524
  },
14627
14525
 
@@ -14639,18 +14537,6 @@ export const ChannelMessageHeader = {
14639
14537
  if (message.content !== "") {
14640
14538
  obj.content = message.content;
14641
14539
  }
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
14540
  return obj;
14655
14541
  },
14656
14542
 
@@ -14663,10 +14549,6 @@ export const ChannelMessageHeader = {
14663
14549
  message.timestamp_seconds = object.timestamp_seconds ?? 0;
14664
14550
  message.sender_id = object.sender_id ?? "";
14665
14551
  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
14552
  return message;
14671
14553
  },
14672
14554
  };
@@ -18040,7 +17922,6 @@ function createBasePinMessage(): PinMessage {
18040
17922
  content: "",
18041
17923
  username: "",
18042
17924
  avatar: "",
18043
- create_time: undefined,
18044
17925
  create_time_seconds: 0,
18045
17926
  attachment: "",
18046
17927
  };
@@ -18069,14 +17950,11 @@ export const PinMessage = {
18069
17950
  if (message.avatar !== "") {
18070
17951
  writer.uint32(58).string(message.avatar);
18071
17952
  }
18072
- if (message.create_time !== undefined) {
18073
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
18074
- }
18075
17953
  if (message.create_time_seconds !== 0) {
18076
- writer.uint32(72).uint32(message.create_time_seconds);
17954
+ writer.uint32(64).uint32(message.create_time_seconds);
18077
17955
  }
18078
17956
  if (message.attachment !== "") {
18079
- writer.uint32(82).string(message.attachment);
17957
+ writer.uint32(74).string(message.attachment);
18080
17958
  }
18081
17959
  return writer;
18082
17960
  },
@@ -18138,21 +18016,14 @@ export const PinMessage = {
18138
18016
  message.avatar = reader.string();
18139
18017
  continue;
18140
18018
  case 8:
18141
- if (tag !== 66) {
18142
- break;
18143
- }
18144
-
18145
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
18146
- continue;
18147
- case 9:
18148
- if (tag !== 72) {
18019
+ if (tag !== 64) {
18149
18020
  break;
18150
18021
  }
18151
18022
 
18152
18023
  message.create_time_seconds = reader.uint32();
18153
18024
  continue;
18154
- case 10:
18155
- if (tag !== 82) {
18025
+ case 9:
18026
+ if (tag !== 74) {
18156
18027
  break;
18157
18028
  }
18158
18029
 
@@ -18176,7 +18047,6 @@ export const PinMessage = {
18176
18047
  content: isSet(object.content) ? globalThis.String(object.content) : "",
18177
18048
  username: isSet(object.username) ? globalThis.String(object.username) : "",
18178
18049
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
18179
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
18180
18050
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
18181
18051
  attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
18182
18052
  };
@@ -18205,9 +18075,6 @@ export const PinMessage = {
18205
18075
  if (message.avatar !== "") {
18206
18076
  obj.avatar = message.avatar;
18207
18077
  }
18208
- if (message.create_time !== undefined) {
18209
- obj.create_time = message.create_time.toISOString();
18210
- }
18211
18078
  if (message.create_time_seconds !== 0) {
18212
18079
  obj.create_time_seconds = Math.round(message.create_time_seconds);
18213
18080
  }
@@ -18229,7 +18096,6 @@ export const PinMessage = {
18229
18096
  message.content = object.content ?? "";
18230
18097
  message.username = object.username ?? "";
18231
18098
  message.avatar = object.avatar ?? "";
18232
- message.create_time = object.create_time ?? undefined;
18233
18099
  message.create_time_seconds = object.create_time_seconds ?? 0;
18234
18100
  message.attachment = object.attachment ?? "";
18235
18101
  return message;
@@ -18298,7 +18164,7 @@ export const PinMessagesList = {
18298
18164
  };
18299
18165
 
18300
18166
  function createBaseNotificationUserChannel(): NotificationUserChannel {
18301
- return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0, channel_id: "" };
18167
+ return { id: "", notification_setting_type: 0, time_mute_seconds: 0, active: 0, channel_id: "" };
18302
18168
  }
18303
18169
 
18304
18170
  export const NotificationUserChannel = {
@@ -18309,8 +18175,8 @@ export const NotificationUserChannel = {
18309
18175
  if (message.notification_setting_type !== 0) {
18310
18176
  writer.uint32(16).int32(message.notification_setting_type);
18311
18177
  }
18312
- if (message.time_mute !== undefined) {
18313
- Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
18178
+ if (message.time_mute_seconds !== 0) {
18179
+ writer.uint32(24).uint32(message.time_mute_seconds);
18314
18180
  }
18315
18181
  if (message.active !== 0) {
18316
18182
  writer.uint32(32).int32(message.active);
@@ -18343,11 +18209,11 @@ export const NotificationUserChannel = {
18343
18209
  message.notification_setting_type = reader.int32();
18344
18210
  continue;
18345
18211
  case 3:
18346
- if (tag !== 26) {
18212
+ if (tag !== 24) {
18347
18213
  break;
18348
18214
  }
18349
18215
 
18350
- message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
18216
+ message.time_mute_seconds = reader.uint32();
18351
18217
  continue;
18352
18218
  case 4:
18353
18219
  if (tag !== 32) {
@@ -18378,7 +18244,7 @@ export const NotificationUserChannel = {
18378
18244
  notification_setting_type: isSet(object.notification_setting_type)
18379
18245
  ? globalThis.Number(object.notification_setting_type)
18380
18246
  : 0,
18381
- time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
18247
+ time_mute_seconds: isSet(object.time_mute_seconds) ? globalThis.Number(object.time_mute_seconds) : 0,
18382
18248
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
18383
18249
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
18384
18250
  };
@@ -18392,8 +18258,8 @@ export const NotificationUserChannel = {
18392
18258
  if (message.notification_setting_type !== 0) {
18393
18259
  obj.notification_setting_type = Math.round(message.notification_setting_type);
18394
18260
  }
18395
- if (message.time_mute !== undefined) {
18396
- obj.time_mute = message.time_mute.toISOString();
18261
+ if (message.time_mute_seconds !== 0) {
18262
+ obj.time_mute_seconds = Math.round(message.time_mute_seconds);
18397
18263
  }
18398
18264
  if (message.active !== 0) {
18399
18265
  obj.active = Math.round(message.active);
@@ -18411,7 +18277,7 @@ export const NotificationUserChannel = {
18411
18277
  const message = createBaseNotificationUserChannel();
18412
18278
  message.id = object.id ?? "";
18413
18279
  message.notification_setting_type = object.notification_setting_type ?? 0;
18414
- message.time_mute = object.time_mute ?? undefined;
18280
+ message.time_mute_seconds = object.time_mute_seconds ?? 0;
18415
18281
  message.active = object.active ?? 0;
18416
18282
  message.channel_id = object.channel_id ?? "";
18417
18283
  return message;
@@ -20701,8 +20567,8 @@ function createBaseCreateEventRequest(): CreateEventRequest {
20701
20567
  clan_id: "",
20702
20568
  channel_voice_id: "",
20703
20569
  address: "",
20704
- start_time: undefined,
20705
- end_time: undefined,
20570
+ start_time_seconds: 0,
20571
+ end_time_seconds: 0,
20706
20572
  event_id: "",
20707
20573
  event_status: 0,
20708
20574
  channel_id: "",
@@ -20735,11 +20601,11 @@ export const CreateEventRequest = {
20735
20601
  if (message.address !== "") {
20736
20602
  writer.uint32(50).string(message.address);
20737
20603
  }
20738
- if (message.start_time !== undefined) {
20739
- Timestamp.encode(toTimestamp(message.start_time), writer.uint32(58).fork()).ldelim();
20604
+ if (message.start_time_seconds !== 0) {
20605
+ writer.uint32(56).uint32(message.start_time_seconds);
20740
20606
  }
20741
- if (message.end_time !== undefined) {
20742
- Timestamp.encode(toTimestamp(message.end_time), writer.uint32(66).fork()).ldelim();
20607
+ if (message.end_time_seconds !== 0) {
20608
+ writer.uint32(64).uint32(message.end_time_seconds);
20743
20609
  }
20744
20610
  if (message.event_id !== "") {
20745
20611
  writer.uint32(74).string(message.event_id);
@@ -20821,18 +20687,18 @@ export const CreateEventRequest = {
20821
20687
  message.address = reader.string();
20822
20688
  continue;
20823
20689
  case 7:
20824
- if (tag !== 58) {
20690
+ if (tag !== 56) {
20825
20691
  break;
20826
20692
  }
20827
20693
 
20828
- message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
20694
+ message.start_time_seconds = reader.uint32();
20829
20695
  continue;
20830
20696
  case 8:
20831
- if (tag !== 66) {
20697
+ if (tag !== 64) {
20832
20698
  break;
20833
20699
  }
20834
20700
 
20835
- message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
20701
+ message.end_time_seconds = reader.uint32();
20836
20702
  continue;
20837
20703
  case 9:
20838
20704
  if (tag !== 74) {
@@ -20914,8 +20780,8 @@ export const CreateEventRequest = {
20914
20780
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
20915
20781
  channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
20916
20782
  address: isSet(object.address) ? globalThis.String(object.address) : "",
20917
- start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
20918
- end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
20783
+ start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
20784
+ end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
20919
20785
  event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
20920
20786
  event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
20921
20787
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
@@ -20948,11 +20814,11 @@ export const CreateEventRequest = {
20948
20814
  if (message.address !== "") {
20949
20815
  obj.address = message.address;
20950
20816
  }
20951
- if (message.start_time !== undefined) {
20952
- obj.start_time = message.start_time.toISOString();
20817
+ if (message.start_time_seconds !== 0) {
20818
+ obj.start_time_seconds = Math.round(message.start_time_seconds);
20953
20819
  }
20954
- if (message.end_time !== undefined) {
20955
- obj.end_time = message.end_time.toISOString();
20820
+ if (message.end_time_seconds !== 0) {
20821
+ obj.end_time_seconds = Math.round(message.end_time_seconds);
20956
20822
  }
20957
20823
  if (message.event_id !== "") {
20958
20824
  obj.event_id = message.event_id;
@@ -20995,8 +20861,8 @@ export const CreateEventRequest = {
20995
20861
  message.clan_id = object.clan_id ?? "";
20996
20862
  message.channel_voice_id = object.channel_voice_id ?? "";
20997
20863
  message.address = object.address ?? "";
20998
- message.start_time = object.start_time ?? undefined;
20999
- message.end_time = object.end_time ?? undefined;
20864
+ message.start_time_seconds = object.start_time_seconds ?? 0;
20865
+ message.end_time_seconds = object.end_time_seconds ?? 0;
21000
20866
  message.event_id = object.event_id ?? "";
21001
20867
  message.event_status = object.event_status ?? 0;
21002
20868
  message.channel_id = object.channel_id ?? "";
@@ -21020,8 +20886,8 @@ function createBaseUpdateEventRequest(): UpdateEventRequest {
21020
20886
  event_id: "",
21021
20887
  channel_id: "",
21022
20888
  address: "",
21023
- start_time: undefined,
21024
- end_time: undefined,
20889
+ start_time_seconds: 0,
20890
+ end_time_seconds: 0,
21025
20891
  clan_id: "",
21026
20892
  creator_id: "",
21027
20893
  channel_voice_id: "",
@@ -21050,11 +20916,11 @@ export const UpdateEventRequest = {
21050
20916
  if (message.address !== "") {
21051
20917
  writer.uint32(50).string(message.address);
21052
20918
  }
21053
- if (message.start_time !== undefined) {
21054
- Timestamp.encode(toTimestamp(message.start_time), writer.uint32(58).fork()).ldelim();
20919
+ if (message.start_time_seconds !== 0) {
20920
+ writer.uint32(56).uint32(message.start_time_seconds);
21055
20921
  }
21056
- if (message.end_time !== undefined) {
21057
- Timestamp.encode(toTimestamp(message.end_time), writer.uint32(66).fork()).ldelim();
20922
+ if (message.end_time_seconds !== 0) {
20923
+ writer.uint32(64).uint32(message.end_time_seconds);
21058
20924
  }
21059
20925
  if (message.clan_id !== "") {
21060
20926
  writer.uint32(74).string(message.clan_id);
@@ -21124,18 +20990,18 @@ export const UpdateEventRequest = {
21124
20990
  message.address = reader.string();
21125
20991
  continue;
21126
20992
  case 7:
21127
- if (tag !== 58) {
20993
+ if (tag !== 56) {
21128
20994
  break;
21129
20995
  }
21130
20996
 
21131
- message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
20997
+ message.start_time_seconds = reader.uint32();
21132
20998
  continue;
21133
20999
  case 8:
21134
- if (tag !== 66) {
21000
+ if (tag !== 64) {
21135
21001
  break;
21136
21002
  }
21137
21003
 
21138
- message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
21004
+ message.end_time_seconds = reader.uint32();
21139
21005
  continue;
21140
21006
  case 9:
21141
21007
  if (tag !== 74) {
@@ -21189,8 +21055,8 @@ export const UpdateEventRequest = {
21189
21055
  event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
21190
21056
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
21191
21057
  address: isSet(object.address) ? globalThis.String(object.address) : "",
21192
- start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
21193
- end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
21058
+ start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
21059
+ end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
21194
21060
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
21195
21061
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
21196
21062
  channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
@@ -21219,11 +21085,11 @@ export const UpdateEventRequest = {
21219
21085
  if (message.address !== "") {
21220
21086
  obj.address = message.address;
21221
21087
  }
21222
- if (message.start_time !== undefined) {
21223
- obj.start_time = message.start_time.toISOString();
21088
+ if (message.start_time_seconds !== 0) {
21089
+ obj.start_time_seconds = Math.round(message.start_time_seconds);
21224
21090
  }
21225
- if (message.end_time !== undefined) {
21226
- obj.end_time = message.end_time.toISOString();
21091
+ if (message.end_time_seconds !== 0) {
21092
+ obj.end_time_seconds = Math.round(message.end_time_seconds);
21227
21093
  }
21228
21094
  if (message.clan_id !== "") {
21229
21095
  obj.clan_id = message.clan_id;
@@ -21254,8 +21120,8 @@ export const UpdateEventRequest = {
21254
21120
  message.event_id = object.event_id ?? "";
21255
21121
  message.channel_id = object.channel_id ?? "";
21256
21122
  message.address = object.address ?? "";
21257
- message.start_time = object.start_time ?? undefined;
21258
- message.end_time = object.end_time ?? undefined;
21123
+ message.start_time_seconds = object.start_time_seconds ?? 0;
21124
+ message.end_time_seconds = object.end_time_seconds ?? 0;
21259
21125
  message.clan_id = object.clan_id ?? "";
21260
21126
  message.creator_id = object.creator_id ?? "";
21261
21127
  message.channel_voice_id = object.channel_voice_id ?? "";
@@ -23491,7 +23357,7 @@ function createBaseClanSticker(): ClanSticker {
23491
23357
  shortname: "",
23492
23358
  category: "",
23493
23359
  creator_id: "",
23494
- create_time: undefined,
23360
+ create_time_seconds: 0,
23495
23361
  clan_id: "",
23496
23362
  logo: "",
23497
23363
  clan_name: "",
@@ -23517,8 +23383,8 @@ export const ClanSticker = {
23517
23383
  if (message.creator_id !== "") {
23518
23384
  writer.uint32(42).string(message.creator_id);
23519
23385
  }
23520
- if (message.create_time !== undefined) {
23521
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
23386
+ if (message.create_time_seconds !== 0) {
23387
+ writer.uint32(48).uint32(message.create_time_seconds);
23522
23388
  }
23523
23389
  if (message.clan_id !== "") {
23524
23390
  writer.uint32(58).string(message.clan_id);
@@ -23581,11 +23447,11 @@ export const ClanSticker = {
23581
23447
  message.creator_id = reader.string();
23582
23448
  continue;
23583
23449
  case 6:
23584
- if (tag !== 50) {
23450
+ if (tag !== 48) {
23585
23451
  break;
23586
23452
  }
23587
23453
 
23588
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
23454
+ message.create_time_seconds = reader.uint32();
23589
23455
  continue;
23590
23456
  case 7:
23591
23457
  if (tag !== 58) {
@@ -23638,7 +23504,7 @@ export const ClanSticker = {
23638
23504
  shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23639
23505
  category: isSet(object.category) ? globalThis.String(object.category) : "",
23640
23506
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
23641
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
23507
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
23642
23508
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23643
23509
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
23644
23510
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
@@ -23664,8 +23530,8 @@ export const ClanSticker = {
23664
23530
  if (message.creator_id !== "") {
23665
23531
  obj.creator_id = message.creator_id;
23666
23532
  }
23667
- if (message.create_time !== undefined) {
23668
- obj.create_time = message.create_time.toISOString();
23533
+ if (message.create_time_seconds !== 0) {
23534
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
23669
23535
  }
23670
23536
  if (message.clan_id !== "") {
23671
23537
  obj.clan_id = message.clan_id;
@@ -23695,7 +23561,7 @@ export const ClanSticker = {
23695
23561
  message.shortname = object.shortname ?? "";
23696
23562
  message.category = object.category ?? "";
23697
23563
  message.creator_id = object.creator_id ?? "";
23698
- message.create_time = object.create_time ?? undefined;
23564
+ message.create_time_seconds = object.create_time_seconds ?? 0;
23699
23565
  message.clan_id = object.clan_id ?? "";
23700
23566
  message.logo = object.logo ?? "";
23701
23567
  message.clan_name = object.clan_name ?? "";
@@ -25874,8 +25740,8 @@ function createBaseApp(): App {
25874
25740
  creator_id: "",
25875
25741
  applogo: "",
25876
25742
  is_shadow: false,
25877
- disable_time: undefined,
25878
- create_time: undefined,
25743
+ disable_time_seconds: 0,
25744
+ create_time_seconds: 0,
25879
25745
  token: "",
25880
25746
  role: 0,
25881
25747
  about: "",
@@ -25900,11 +25766,11 @@ export const App = {
25900
25766
  if (message.is_shadow !== false) {
25901
25767
  writer.uint32(40).bool(message.is_shadow);
25902
25768
  }
25903
- if (message.disable_time !== undefined) {
25904
- Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(50).fork()).ldelim();
25769
+ if (message.disable_time_seconds !== 0) {
25770
+ writer.uint32(48).uint32(message.disable_time_seconds);
25905
25771
  }
25906
- if (message.create_time !== undefined) {
25907
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
25772
+ if (message.create_time_seconds !== 0) {
25773
+ writer.uint32(56).uint32(message.create_time_seconds);
25908
25774
  }
25909
25775
  if (message.token !== "") {
25910
25776
  writer.uint32(66).string(message.token);
@@ -25964,18 +25830,18 @@ export const App = {
25964
25830
  message.is_shadow = reader.bool();
25965
25831
  continue;
25966
25832
  case 6:
25967
- if (tag !== 50) {
25833
+ if (tag !== 48) {
25968
25834
  break;
25969
25835
  }
25970
25836
 
25971
- message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25837
+ message.disable_time_seconds = reader.uint32();
25972
25838
  continue;
25973
25839
  case 7:
25974
- if (tag !== 58) {
25840
+ if (tag !== 56) {
25975
25841
  break;
25976
25842
  }
25977
25843
 
25978
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25844
+ message.create_time_seconds = reader.uint32();
25979
25845
  continue;
25980
25846
  case 8:
25981
25847
  if (tag !== 66) {
@@ -26021,8 +25887,8 @@ export const App = {
26021
25887
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
26022
25888
  applogo: isSet(object.applogo) ? globalThis.String(object.applogo) : "",
26023
25889
  is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
26024
- disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
26025
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
25890
+ disable_time_seconds: isSet(object.disable_time_seconds) ? globalThis.Number(object.disable_time_seconds) : 0,
25891
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
26026
25892
  token: isSet(object.token) ? globalThis.String(object.token) : "",
26027
25893
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
26028
25894
  about: isSet(object.about) ? globalThis.String(object.about) : "",
@@ -26047,11 +25913,11 @@ export const App = {
26047
25913
  if (message.is_shadow !== false) {
26048
25914
  obj.is_shadow = message.is_shadow;
26049
25915
  }
26050
- if (message.disable_time !== undefined) {
26051
- obj.disable_time = message.disable_time.toISOString();
25916
+ if (message.disable_time_seconds !== 0) {
25917
+ obj.disable_time_seconds = Math.round(message.disable_time_seconds);
26052
25918
  }
26053
- if (message.create_time !== undefined) {
26054
- obj.create_time = message.create_time.toISOString();
25919
+ if (message.create_time_seconds !== 0) {
25920
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
26055
25921
  }
26056
25922
  if (message.token !== "") {
26057
25923
  obj.token = message.token;
@@ -26078,8 +25944,8 @@ export const App = {
26078
25944
  message.creator_id = object.creator_id ?? "";
26079
25945
  message.applogo = object.applogo ?? "";
26080
25946
  message.is_shadow = object.is_shadow ?? false;
26081
- message.disable_time = object.disable_time ?? undefined;
26082
- message.create_time = object.create_time ?? undefined;
25947
+ message.disable_time_seconds = object.disable_time_seconds ?? 0;
25948
+ message.create_time_seconds = object.create_time_seconds ?? 0;
26083
25949
  message.token = object.token ?? "";
26084
25950
  message.role = object.role ?? 0;
26085
25951
  message.about = object.about ?? "";
@@ -26809,13 +26675,13 @@ export const AppClan = {
26809
26675
  };
26810
26676
 
26811
26677
  function createBaseDeleteChannelMessagesRequest(): DeleteChannelMessagesRequest {
26812
- return { before: undefined, ids: [] };
26678
+ return { before_seconds: 0, ids: [] };
26813
26679
  }
26814
26680
 
26815
26681
  export const DeleteChannelMessagesRequest = {
26816
26682
  encode(message: DeleteChannelMessagesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
26817
- if (message.before !== undefined) {
26818
- Timestamp.encode(toTimestamp(message.before), writer.uint32(10).fork()).ldelim();
26683
+ if (message.before_seconds !== 0) {
26684
+ writer.uint32(8).uint32(message.before_seconds);
26819
26685
  }
26820
26686
  for (const v of message.ids) {
26821
26687
  writer.uint32(18).string(v!);
@@ -26831,11 +26697,11 @@ export const DeleteChannelMessagesRequest = {
26831
26697
  const tag = reader.uint32();
26832
26698
  switch (tag >>> 3) {
26833
26699
  case 1:
26834
- if (tag !== 10) {
26700
+ if (tag !== 8) {
26835
26701
  break;
26836
26702
  }
26837
26703
 
26838
- message.before = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
26704
+ message.before_seconds = reader.uint32();
26839
26705
  continue;
26840
26706
  case 2:
26841
26707
  if (tag !== 18) {
@@ -26855,15 +26721,15 @@ export const DeleteChannelMessagesRequest = {
26855
26721
 
26856
26722
  fromJSON(object: any): DeleteChannelMessagesRequest {
26857
26723
  return {
26858
- before: isSet(object.before) ? fromJsonTimestamp(object.before) : undefined,
26724
+ before_seconds: isSet(object.before_seconds) ? globalThis.Number(object.before_seconds) : 0,
26859
26725
  ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
26860
26726
  };
26861
26727
  },
26862
26728
 
26863
26729
  toJSON(message: DeleteChannelMessagesRequest): unknown {
26864
26730
  const obj: any = {};
26865
- if (message.before !== undefined) {
26866
- obj.before = message.before.toISOString();
26731
+ if (message.before_seconds !== 0) {
26732
+ obj.before_seconds = Math.round(message.before_seconds);
26867
26733
  }
26868
26734
  if (message.ids?.length) {
26869
26735
  obj.ids = message.ids;
@@ -26876,7 +26742,7 @@ export const DeleteChannelMessagesRequest = {
26876
26742
  },
26877
26743
  fromPartial<I extends Exact<DeepPartial<DeleteChannelMessagesRequest>, I>>(object: I): DeleteChannelMessagesRequest {
26878
26744
  const message = createBaseDeleteChannelMessagesRequest();
26879
- message.before = object.before ?? undefined;
26745
+ message.before_seconds = object.before_seconds ?? 0;
26880
26746
  message.ids = object.ids?.map((e) => e) || [];
26881
26747
  return message;
26882
26748
  },
@@ -30272,8 +30138,8 @@ function createBaseChannelCanvasItem(): ChannelCanvasItem {
30272
30138
  is_default: false,
30273
30139
  content: "",
30274
30140
  creator_id: "",
30275
- update_time: undefined,
30276
- create_time: undefined,
30141
+ update_time_seconds: 0,
30142
+ create_time_seconds: 0,
30277
30143
  };
30278
30144
  }
30279
30145
 
@@ -30294,11 +30160,11 @@ export const ChannelCanvasItem = {
30294
30160
  if (message.creator_id !== "") {
30295
30161
  writer.uint32(42).string(message.creator_id);
30296
30162
  }
30297
- if (message.update_time !== undefined) {
30298
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(50).fork()).ldelim();
30163
+ if (message.update_time_seconds !== 0) {
30164
+ writer.uint32(48).uint32(message.update_time_seconds);
30299
30165
  }
30300
- if (message.create_time !== undefined) {
30301
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
30166
+ if (message.create_time_seconds !== 0) {
30167
+ writer.uint32(56).uint32(message.create_time_seconds);
30302
30168
  }
30303
30169
  return writer;
30304
30170
  },
@@ -30346,18 +30212,18 @@ export const ChannelCanvasItem = {
30346
30212
  message.creator_id = reader.string();
30347
30213
  continue;
30348
30214
  case 6:
30349
- if (tag !== 50) {
30215
+ if (tag !== 48) {
30350
30216
  break;
30351
30217
  }
30352
30218
 
30353
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
30219
+ message.update_time_seconds = reader.uint32();
30354
30220
  continue;
30355
30221
  case 7:
30356
- if (tag !== 58) {
30222
+ if (tag !== 56) {
30357
30223
  break;
30358
30224
  }
30359
30225
 
30360
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
30226
+ message.create_time_seconds = reader.uint32();
30361
30227
  continue;
30362
30228
  }
30363
30229
  if ((tag & 7) === 4 || tag === 0) {
@@ -30375,8 +30241,8 @@ export const ChannelCanvasItem = {
30375
30241
  is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
30376
30242
  content: isSet(object.content) ? globalThis.String(object.content) : "",
30377
30243
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
30378
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
30379
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
30244
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
30245
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
30380
30246
  };
30381
30247
  },
30382
30248
 
@@ -30397,11 +30263,11 @@ export const ChannelCanvasItem = {
30397
30263
  if (message.creator_id !== "") {
30398
30264
  obj.creator_id = message.creator_id;
30399
30265
  }
30400
- if (message.update_time !== undefined) {
30401
- obj.update_time = message.update_time.toISOString();
30266
+ if (message.update_time_seconds !== 0) {
30267
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
30402
30268
  }
30403
- if (message.create_time !== undefined) {
30404
- obj.create_time = message.create_time.toISOString();
30269
+ if (message.create_time_seconds !== 0) {
30270
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
30405
30271
  }
30406
30272
  return obj;
30407
30273
  },
@@ -30416,8 +30282,8 @@ export const ChannelCanvasItem = {
30416
30282
  message.is_default = object.is_default ?? false;
30417
30283
  message.content = object.content ?? "";
30418
30284
  message.creator_id = object.creator_id ?? "";
30419
- message.update_time = object.update_time ?? undefined;
30420
- message.create_time = object.create_time ?? undefined;
30285
+ message.update_time_seconds = object.update_time_seconds ?? 0;
30286
+ message.create_time_seconds = object.create_time_seconds ?? 0;
30421
30287
  return message;
30422
30288
  },
30423
30289
  };
@@ -31080,8 +30946,8 @@ function createBaseUserActivity(): UserActivity {
31080
30946
  activity_name: "",
31081
30947
  activity_type: 0,
31082
30948
  activity_description: "",
31083
- start_time: undefined,
31084
- end_time: undefined,
30949
+ start_time_seconds: 0,
30950
+ end_time_seconds: 0,
31085
30951
  application_id: "",
31086
30952
  status: 0,
31087
30953
  };
@@ -31101,11 +30967,11 @@ export const UserActivity = {
31101
30967
  if (message.activity_description !== "") {
31102
30968
  writer.uint32(34).string(message.activity_description);
31103
30969
  }
31104
- if (message.start_time !== undefined) {
31105
- Timestamp.encode(toTimestamp(message.start_time), writer.uint32(42).fork()).ldelim();
30970
+ if (message.start_time_seconds !== 0) {
30971
+ writer.uint32(40).uint32(message.start_time_seconds);
31106
30972
  }
31107
- if (message.end_time !== undefined) {
31108
- Timestamp.encode(toTimestamp(message.end_time), writer.uint32(50).fork()).ldelim();
30973
+ if (message.end_time_seconds !== 0) {
30974
+ writer.uint32(48).uint32(message.end_time_seconds);
31109
30975
  }
31110
30976
  if (message.application_id !== "") {
31111
30977
  writer.uint32(58).string(message.application_id);
@@ -31152,18 +31018,18 @@ export const UserActivity = {
31152
31018
  message.activity_description = reader.string();
31153
31019
  continue;
31154
31020
  case 5:
31155
- if (tag !== 42) {
31021
+ if (tag !== 40) {
31156
31022
  break;
31157
31023
  }
31158
31024
 
31159
- message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
31025
+ message.start_time_seconds = reader.uint32();
31160
31026
  continue;
31161
31027
  case 6:
31162
- if (tag !== 50) {
31028
+ if (tag !== 48) {
31163
31029
  break;
31164
31030
  }
31165
31031
 
31166
- message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
31032
+ message.end_time_seconds = reader.uint32();
31167
31033
  continue;
31168
31034
  case 7:
31169
31035
  if (tag !== 58) {
@@ -31194,8 +31060,8 @@ export const UserActivity = {
31194
31060
  activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
31195
31061
  activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
31196
31062
  activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
31197
- start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
31198
- end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
31063
+ start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
31064
+ end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
31199
31065
  application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
31200
31066
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
31201
31067
  };
@@ -31215,11 +31081,11 @@ export const UserActivity = {
31215
31081
  if (message.activity_description !== "") {
31216
31082
  obj.activity_description = message.activity_description;
31217
31083
  }
31218
- if (message.start_time !== undefined) {
31219
- obj.start_time = message.start_time.toISOString();
31084
+ if (message.start_time_seconds !== 0) {
31085
+ obj.start_time_seconds = Math.round(message.start_time_seconds);
31220
31086
  }
31221
- if (message.end_time !== undefined) {
31222
- obj.end_time = message.end_time.toISOString();
31087
+ if (message.end_time_seconds !== 0) {
31088
+ obj.end_time_seconds = Math.round(message.end_time_seconds);
31223
31089
  }
31224
31090
  if (message.application_id !== "") {
31225
31091
  obj.application_id = message.application_id;
@@ -31239,8 +31105,8 @@ export const UserActivity = {
31239
31105
  message.activity_name = object.activity_name ?? "";
31240
31106
  message.activity_type = object.activity_type ?? 0;
31241
31107
  message.activity_description = object.activity_description ?? "";
31242
- message.start_time = object.start_time ?? undefined;
31243
- message.end_time = object.end_time ?? undefined;
31108
+ message.start_time_seconds = object.start_time_seconds ?? 0;
31109
+ message.end_time_seconds = object.end_time_seconds ?? 0;
31244
31110
  message.application_id = object.application_id ?? "";
31245
31111
  message.status = object.status ?? 0;
31246
31112
  return message;
@@ -31313,7 +31179,7 @@ function createBaseCreateActivityRequest(): CreateActivityRequest {
31313
31179
  activity_name: "",
31314
31180
  activity_type: 0,
31315
31181
  activity_description: "",
31316
- start_time: undefined,
31182
+ start_time_seconds: 0,
31317
31183
  application_id: "",
31318
31184
  status: 0,
31319
31185
  };
@@ -31330,8 +31196,8 @@ export const CreateActivityRequest = {
31330
31196
  if (message.activity_description !== "") {
31331
31197
  writer.uint32(26).string(message.activity_description);
31332
31198
  }
31333
- if (message.start_time !== undefined) {
31334
- Timestamp.encode(toTimestamp(message.start_time), writer.uint32(34).fork()).ldelim();
31199
+ if (message.start_time_seconds !== 0) {
31200
+ writer.uint32(32).uint32(message.start_time_seconds);
31335
31201
  }
31336
31202
  if (message.application_id !== "") {
31337
31203
  writer.uint32(42).string(message.application_id);
@@ -31371,11 +31237,11 @@ export const CreateActivityRequest = {
31371
31237
  message.activity_description = reader.string();
31372
31238
  continue;
31373
31239
  case 4:
31374
- if (tag !== 34) {
31240
+ if (tag !== 32) {
31375
31241
  break;
31376
31242
  }
31377
31243
 
31378
- message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
31244
+ message.start_time_seconds = reader.uint32();
31379
31245
  continue;
31380
31246
  case 5:
31381
31247
  if (tag !== 42) {
@@ -31405,7 +31271,7 @@ export const CreateActivityRequest = {
31405
31271
  activity_name: isSet(object.activity_name) ? globalThis.String(object.activity_name) : "",
31406
31272
  activity_type: isSet(object.activity_type) ? globalThis.Number(object.activity_type) : 0,
31407
31273
  activity_description: isSet(object.activity_description) ? globalThis.String(object.activity_description) : "",
31408
- start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
31274
+ start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
31409
31275
  application_id: isSet(object.application_id) ? globalThis.String(object.application_id) : "",
31410
31276
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
31411
31277
  };
@@ -31422,8 +31288,8 @@ export const CreateActivityRequest = {
31422
31288
  if (message.activity_description !== "") {
31423
31289
  obj.activity_description = message.activity_description;
31424
31290
  }
31425
- if (message.start_time !== undefined) {
31426
- obj.start_time = message.start_time.toISOString();
31291
+ if (message.start_time_seconds !== 0) {
31292
+ obj.start_time_seconds = Math.round(message.start_time_seconds);
31427
31293
  }
31428
31294
  if (message.application_id !== "") {
31429
31295
  obj.application_id = message.application_id;
@@ -31442,7 +31308,7 @@ export const CreateActivityRequest = {
31442
31308
  message.activity_name = object.activity_name ?? "";
31443
31309
  message.activity_type = object.activity_type ?? 0;
31444
31310
  message.activity_description = object.activity_description ?? "";
31445
- message.start_time = object.start_time ?? undefined;
31311
+ message.start_time_seconds = object.start_time_seconds ?? 0;
31446
31312
  message.application_id = object.application_id ?? "";
31447
31313
  message.status = object.status ?? 0;
31448
31314
  return message;
@@ -32213,7 +32079,7 @@ function createBaseAuditLog(): AuditLog {
32213
32079
  entity_name: "",
32214
32080
  entity_id: "",
32215
32081
  details: "",
32216
- time_log: undefined,
32082
+ time_log_seconds: 0,
32217
32083
  channel_id: "",
32218
32084
  channel_label: "",
32219
32085
  };
@@ -32242,8 +32108,8 @@ export const AuditLog = {
32242
32108
  if (message.details !== "") {
32243
32109
  writer.uint32(58).string(message.details);
32244
32110
  }
32245
- if (message.time_log !== undefined) {
32246
- Timestamp.encode(toTimestamp(message.time_log), writer.uint32(66).fork()).ldelim();
32111
+ if (message.time_log_seconds !== 0) {
32112
+ writer.uint32(64).uint32(message.time_log_seconds);
32247
32113
  }
32248
32114
  if (message.channel_id !== "") {
32249
32115
  writer.uint32(74).string(message.channel_id);
@@ -32311,11 +32177,11 @@ export const AuditLog = {
32311
32177
  message.details = reader.string();
32312
32178
  continue;
32313
32179
  case 8:
32314
- if (tag !== 66) {
32180
+ if (tag !== 64) {
32315
32181
  break;
32316
32182
  }
32317
32183
 
32318
- message.time_log = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
32184
+ message.time_log_seconds = reader.uint32();
32319
32185
  continue;
32320
32186
  case 9:
32321
32187
  if (tag !== 74) {
@@ -32349,7 +32215,7 @@ export const AuditLog = {
32349
32215
  entity_name: isSet(object.entity_name) ? globalThis.String(object.entity_name) : "",
32350
32216
  entity_id: isSet(object.entity_id) ? globalThis.String(object.entity_id) : "",
32351
32217
  details: isSet(object.details) ? globalThis.String(object.details) : "",
32352
- time_log: isSet(object.time_log) ? fromJsonTimestamp(object.time_log) : undefined,
32218
+ time_log_seconds: isSet(object.time_log_seconds) ? globalThis.Number(object.time_log_seconds) : 0,
32353
32219
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
32354
32220
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
32355
32221
  };
@@ -32378,8 +32244,8 @@ export const AuditLog = {
32378
32244
  if (message.details !== "") {
32379
32245
  obj.details = message.details;
32380
32246
  }
32381
- if (message.time_log !== undefined) {
32382
- obj.time_log = message.time_log.toISOString();
32247
+ if (message.time_log_seconds !== 0) {
32248
+ obj.time_log_seconds = Math.round(message.time_log_seconds);
32383
32249
  }
32384
32250
  if (message.channel_id !== "") {
32385
32251
  obj.channel_id = message.channel_id;
@@ -32402,7 +32268,7 @@ export const AuditLog = {
32402
32268
  message.entity_name = object.entity_name ?? "";
32403
32269
  message.entity_id = object.entity_id ?? "";
32404
32270
  message.details = object.details ?? "";
32405
- message.time_log = object.time_log ?? undefined;
32271
+ message.time_log_seconds = object.time_log_seconds ?? 0;
32406
32272
  message.channel_id = object.channel_id ?? "";
32407
32273
  message.channel_label = object.channel_label ?? "";
32408
32274
  return message;
@@ -33066,8 +32932,8 @@ function createBaseOnboardingItem(): OnboardingItem {
33066
32932
  content: "",
33067
32933
  image_url: "",
33068
32934
  answers: [],
33069
- create_time: undefined,
33070
- update_time: undefined,
32935
+ create_time_seconds: 0,
32936
+ update_time_seconds: 0,
33071
32937
  };
33072
32938
  }
33073
32939
 
@@ -33100,11 +32966,11 @@ export const OnboardingItem = {
33100
32966
  for (const v of message.answers) {
33101
32967
  OnboardingAnswer.encode(v!, writer.uint32(74).fork()).ldelim();
33102
32968
  }
33103
- if (message.create_time !== undefined) {
33104
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(82).fork()).ldelim();
32969
+ if (message.create_time_seconds !== 0) {
32970
+ writer.uint32(80).uint32(message.create_time_seconds);
33105
32971
  }
33106
- if (message.update_time !== undefined) {
33107
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(90).fork()).ldelim();
32972
+ if (message.update_time_seconds !== 0) {
32973
+ writer.uint32(88).uint32(message.update_time_seconds);
33108
32974
  }
33109
32975
  return writer;
33110
32976
  },
@@ -33180,18 +33046,18 @@ export const OnboardingItem = {
33180
33046
  message.answers.push(OnboardingAnswer.decode(reader, reader.uint32()));
33181
33047
  continue;
33182
33048
  case 10:
33183
- if (tag !== 82) {
33049
+ if (tag !== 80) {
33184
33050
  break;
33185
33051
  }
33186
33052
 
33187
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
33053
+ message.create_time_seconds = reader.uint32();
33188
33054
  continue;
33189
33055
  case 11:
33190
- if (tag !== 90) {
33056
+ if (tag !== 88) {
33191
33057
  break;
33192
33058
  }
33193
33059
 
33194
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
33060
+ message.update_time_seconds = reader.uint32();
33195
33061
  continue;
33196
33062
  }
33197
33063
  if ((tag & 7) === 4 || tag === 0) {
@@ -33215,8 +33081,8 @@ export const OnboardingItem = {
33215
33081
  answers: globalThis.Array.isArray(object?.answers)
33216
33082
  ? object.answers.map((e: any) => OnboardingAnswer.fromJSON(e))
33217
33083
  : [],
33218
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
33219
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
33084
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
33085
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
33220
33086
  };
33221
33087
  },
33222
33088
 
@@ -33249,11 +33115,11 @@ export const OnboardingItem = {
33249
33115
  if (message.answers?.length) {
33250
33116
  obj.answers = message.answers.map((e) => OnboardingAnswer.toJSON(e));
33251
33117
  }
33252
- if (message.create_time !== undefined) {
33253
- obj.create_time = message.create_time.toISOString();
33118
+ if (message.create_time_seconds !== 0) {
33119
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
33254
33120
  }
33255
- if (message.update_time !== undefined) {
33256
- obj.update_time = message.update_time.toISOString();
33121
+ if (message.update_time_seconds !== 0) {
33122
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
33257
33123
  }
33258
33124
  return obj;
33259
33125
  },
@@ -33272,8 +33138,8 @@ export const OnboardingItem = {
33272
33138
  message.content = object.content ?? "";
33273
33139
  message.image_url = object.image_url ?? "";
33274
33140
  message.answers = object.answers?.map((e) => OnboardingAnswer.fromPartial(e)) || [];
33275
- message.create_time = object.create_time ?? undefined;
33276
- message.update_time = object.update_time ?? undefined;
33141
+ message.create_time_seconds = object.create_time_seconds ?? 0;
33142
+ message.update_time_seconds = object.update_time_seconds ?? 0;
33277
33143
  return message;
33278
33144
  },
33279
33145
  };
@@ -35217,8 +35083,8 @@ function createBaseSdTopic(): SdTopic {
35217
35083
  clan_id: "",
35218
35084
  channel_id: "",
35219
35085
  status: 0,
35220
- create_time: undefined,
35221
- update_time: undefined,
35086
+ create_time_seconds: 0,
35087
+ update_time_seconds: 0,
35222
35088
  message: undefined,
35223
35089
  last_sent_message: undefined,
35224
35090
  };
@@ -35244,11 +35110,11 @@ export const SdTopic = {
35244
35110
  if (message.status !== 0) {
35245
35111
  writer.uint32(48).int32(message.status);
35246
35112
  }
35247
- if (message.create_time !== undefined) {
35248
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
35113
+ if (message.create_time_seconds !== 0) {
35114
+ writer.uint32(56).uint32(message.create_time_seconds);
35249
35115
  }
35250
- if (message.update_time !== undefined) {
35251
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
35116
+ if (message.update_time_seconds !== 0) {
35117
+ writer.uint32(64).uint32(message.update_time_seconds);
35252
35118
  }
35253
35119
  if (message.message !== undefined) {
35254
35120
  ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
@@ -35309,18 +35175,18 @@ export const SdTopic = {
35309
35175
  message.status = reader.int32();
35310
35176
  continue;
35311
35177
  case 7:
35312
- if (tag !== 58) {
35178
+ if (tag !== 56) {
35313
35179
  break;
35314
35180
  }
35315
35181
 
35316
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
35182
+ message.create_time_seconds = reader.uint32();
35317
35183
  continue;
35318
35184
  case 8:
35319
- if (tag !== 66) {
35185
+ if (tag !== 64) {
35320
35186
  break;
35321
35187
  }
35322
35188
 
35323
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
35189
+ message.update_time_seconds = reader.uint32();
35324
35190
  continue;
35325
35191
  case 9:
35326
35192
  if (tag !== 74) {
@@ -35353,8 +35219,8 @@ export const SdTopic = {
35353
35219
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
35354
35220
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
35355
35221
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
35356
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
35357
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
35222
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
35223
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
35358
35224
  message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
35359
35225
  last_sent_message: isSet(object.last_sent_message)
35360
35226
  ? ChannelMessageHeader.fromJSON(object.last_sent_message)
@@ -35382,11 +35248,11 @@ export const SdTopic = {
35382
35248
  if (message.status !== 0) {
35383
35249
  obj.status = Math.round(message.status);
35384
35250
  }
35385
- if (message.create_time !== undefined) {
35386
- obj.create_time = message.create_time.toISOString();
35251
+ if (message.create_time_seconds !== 0) {
35252
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
35387
35253
  }
35388
- if (message.update_time !== undefined) {
35389
- obj.update_time = message.update_time.toISOString();
35254
+ if (message.update_time_seconds !== 0) {
35255
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
35390
35256
  }
35391
35257
  if (message.message !== undefined) {
35392
35258
  obj.message = ChannelMessage.toJSON(message.message);
@@ -35408,8 +35274,8 @@ export const SdTopic = {
35408
35274
  message.clan_id = object.clan_id ?? "";
35409
35275
  message.channel_id = object.channel_id ?? "";
35410
35276
  message.status = object.status ?? 0;
35411
- message.create_time = object.create_time ?? undefined;
35412
- message.update_time = object.update_time ?? undefined;
35277
+ message.create_time_seconds = object.create_time_seconds ?? 0;
35278
+ message.update_time_seconds = object.update_time_seconds ?? 0;
35413
35279
  message.message = (object.message !== undefined && object.message !== null)
35414
35280
  ? ChannelMessage.fromPartial(object.message)
35415
35281
  : undefined;
@@ -36248,7 +36114,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
36248
36114
  client_secret_expires_at: 0,
36249
36115
  client_uri: "",
36250
36116
  contacts: [],
36251
- created_at: undefined,
36117
+ created_at_seconds: 0,
36252
36118
  frontchannel_logout_session_required: false,
36253
36119
  frontchannel_logout_uri: "",
36254
36120
  grant_types: [],
@@ -36278,7 +36144,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
36278
36144
  token_endpoint_auth_method: "",
36279
36145
  token_endpoint_auth_signing_alg: "",
36280
36146
  tos_uri: "",
36281
- updated_at: undefined,
36147
+ updated_at_seconds: 0,
36282
36148
  userinfo_signed_response_alg: "",
36283
36149
  };
36284
36150
  }
@@ -36330,8 +36196,8 @@ export const MezonOauthClient = {
36330
36196
  for (const v of message.contacts) {
36331
36197
  writer.uint32(122).string(v!);
36332
36198
  }
36333
- if (message.created_at !== undefined) {
36334
- Timestamp.encode(toTimestamp(message.created_at), writer.uint32(130).fork()).ldelim();
36199
+ if (message.created_at_seconds !== 0) {
36200
+ writer.uint32(128).uint32(message.created_at_seconds);
36335
36201
  }
36336
36202
  if (message.frontchannel_logout_session_required !== false) {
36337
36203
  writer.uint32(136).bool(message.frontchannel_logout_session_required);
@@ -36420,8 +36286,8 @@ export const MezonOauthClient = {
36420
36286
  if (message.tos_uri !== "") {
36421
36287
  writer.uint32(362).string(message.tos_uri);
36422
36288
  }
36423
- if (message.updated_at !== undefined) {
36424
- Timestamp.encode(toTimestamp(message.updated_at), writer.uint32(370).fork()).ldelim();
36289
+ if (message.updated_at_seconds !== 0) {
36290
+ writer.uint32(368).uint32(message.updated_at_seconds);
36425
36291
  }
36426
36292
  if (message.userinfo_signed_response_alg !== "") {
36427
36293
  writer.uint32(378).string(message.userinfo_signed_response_alg);
@@ -36542,11 +36408,11 @@ export const MezonOauthClient = {
36542
36408
  message.contacts.push(reader.string());
36543
36409
  continue;
36544
36410
  case 16:
36545
- if (tag !== 130) {
36411
+ if (tag !== 128) {
36546
36412
  break;
36547
36413
  }
36548
36414
 
36549
- message.created_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36415
+ message.created_at_seconds = reader.uint32();
36550
36416
  continue;
36551
36417
  case 17:
36552
36418
  if (tag !== 136) {
@@ -36752,11 +36618,11 @@ export const MezonOauthClient = {
36752
36618
  message.tos_uri = reader.string();
36753
36619
  continue;
36754
36620
  case 46:
36755
- if (tag !== 370) {
36621
+ if (tag !== 368) {
36756
36622
  break;
36757
36623
  }
36758
36624
 
36759
- message.updated_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36625
+ message.updated_at_seconds = reader.uint32();
36760
36626
  continue;
36761
36627
  case 47:
36762
36628
  if (tag !== 378) {
@@ -36809,7 +36675,7 @@ export const MezonOauthClient = {
36809
36675
  contacts: globalThis.Array.isArray(object?.contacts)
36810
36676
  ? object.contacts.map((e: any) => globalThis.String(e))
36811
36677
  : [],
36812
- created_at: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
36678
+ created_at_seconds: isSet(object.created_at_seconds) ? globalThis.Number(object.created_at_seconds) : 0,
36813
36679
  frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
36814
36680
  ? globalThis.Boolean(object.frontchannel_logout_session_required)
36815
36681
  : false,
@@ -36877,7 +36743,7 @@ export const MezonOauthClient = {
36877
36743
  ? globalThis.String(object.token_endpoint_auth_signing_alg)
36878
36744
  : "",
36879
36745
  tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
36880
- updated_at: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
36746
+ updated_at_seconds: isSet(object.updated_at_seconds) ? globalThis.Number(object.updated_at_seconds) : 0,
36881
36747
  userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
36882
36748
  ? globalThis.String(object.userinfo_signed_response_alg)
36883
36749
  : "",
@@ -36931,8 +36797,8 @@ export const MezonOauthClient = {
36931
36797
  if (message.contacts?.length) {
36932
36798
  obj.contacts = message.contacts;
36933
36799
  }
36934
- if (message.created_at !== undefined) {
36935
- obj.created_at = message.created_at.toISOString();
36800
+ if (message.created_at_seconds !== 0) {
36801
+ obj.created_at_seconds = Math.round(message.created_at_seconds);
36936
36802
  }
36937
36803
  if (message.frontchannel_logout_session_required !== false) {
36938
36804
  obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
@@ -37021,8 +36887,8 @@ export const MezonOauthClient = {
37021
36887
  if (message.tos_uri !== "") {
37022
36888
  obj.tos_uri = message.tos_uri;
37023
36889
  }
37024
- if (message.updated_at !== undefined) {
37025
- obj.updated_at = message.updated_at.toISOString();
36890
+ if (message.updated_at_seconds !== 0) {
36891
+ obj.updated_at_seconds = Math.round(message.updated_at_seconds);
37026
36892
  }
37027
36893
  if (message.userinfo_signed_response_alg !== "") {
37028
36894
  obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
@@ -37053,7 +36919,7 @@ export const MezonOauthClient = {
37053
36919
  message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
37054
36920
  message.client_uri = object.client_uri ?? "";
37055
36921
  message.contacts = object.contacts?.map((e) => e) || [];
37056
- message.created_at = object.created_at ?? undefined;
36922
+ message.created_at_seconds = object.created_at_seconds ?? 0;
37057
36923
  message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
37058
36924
  message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
37059
36925
  message.grant_types = object.grant_types?.map((e) => e) || [];
@@ -37083,7 +36949,7 @@ export const MezonOauthClient = {
37083
36949
  message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
37084
36950
  message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
37085
36951
  message.tos_uri = object.tos_uri ?? "";
37086
- message.updated_at = object.updated_at ?? undefined;
36952
+ message.updated_at_seconds = object.updated_at_seconds ?? 0;
37087
36953
  message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
37088
36954
  return message;
37089
36955
  },
@@ -38989,11 +38855,11 @@ function createBaseLogedDevice(): LogedDevice {
38989
38855
  return {
38990
38856
  device_id: "",
38991
38857
  device_name: "",
38992
- login_at: undefined,
38858
+ login_at_seconds: 0,
38993
38859
  status: 0,
38994
38860
  platform: "",
38995
38861
  ip: "",
38996
- last_active: undefined,
38862
+ last_active_seconds: 0,
38997
38863
  location: "",
38998
38864
  is_current: false,
38999
38865
  };
@@ -39007,8 +38873,8 @@ export const LogedDevice = {
39007
38873
  if (message.device_name !== "") {
39008
38874
  writer.uint32(18).string(message.device_name);
39009
38875
  }
39010
- if (message.login_at !== undefined) {
39011
- Timestamp.encode(toTimestamp(message.login_at), writer.uint32(26).fork()).ldelim();
38876
+ if (message.login_at_seconds !== 0) {
38877
+ writer.uint32(24).uint32(message.login_at_seconds);
39012
38878
  }
39013
38879
  if (message.status !== 0) {
39014
38880
  writer.uint32(32).int32(message.status);
@@ -39019,8 +38885,8 @@ export const LogedDevice = {
39019
38885
  if (message.ip !== "") {
39020
38886
  writer.uint32(50).string(message.ip);
39021
38887
  }
39022
- if (message.last_active !== undefined) {
39023
- Timestamp.encode(toTimestamp(message.last_active), writer.uint32(58).fork()).ldelim();
38888
+ if (message.last_active_seconds !== 0) {
38889
+ writer.uint32(56).uint32(message.last_active_seconds);
39024
38890
  }
39025
38891
  if (message.location !== "") {
39026
38892
  writer.uint32(66).string(message.location);
@@ -39053,11 +38919,11 @@ export const LogedDevice = {
39053
38919
  message.device_name = reader.string();
39054
38920
  continue;
39055
38921
  case 3:
39056
- if (tag !== 26) {
38922
+ if (tag !== 24) {
39057
38923
  break;
39058
38924
  }
39059
38925
 
39060
- message.login_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38926
+ message.login_at_seconds = reader.uint32();
39061
38927
  continue;
39062
38928
  case 4:
39063
38929
  if (tag !== 32) {
@@ -39081,11 +38947,11 @@ export const LogedDevice = {
39081
38947
  message.ip = reader.string();
39082
38948
  continue;
39083
38949
  case 7:
39084
- if (tag !== 58) {
38950
+ if (tag !== 56) {
39085
38951
  break;
39086
38952
  }
39087
38953
 
39088
- message.last_active = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38954
+ message.last_active_seconds = reader.uint32();
39089
38955
  continue;
39090
38956
  case 8:
39091
38957
  if (tag !== 66) {
@@ -39114,11 +38980,11 @@ export const LogedDevice = {
39114
38980
  return {
39115
38981
  device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
39116
38982
  device_name: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
39117
- login_at: isSet(object.login_at) ? fromJsonTimestamp(object.login_at) : undefined,
38983
+ login_at_seconds: isSet(object.login_at_seconds) ? globalThis.Number(object.login_at_seconds) : 0,
39118
38984
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
39119
38985
  platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
39120
38986
  ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
39121
- last_active: isSet(object.last_active) ? fromJsonTimestamp(object.last_active) : undefined,
38987
+ last_active_seconds: isSet(object.last_active_seconds) ? globalThis.Number(object.last_active_seconds) : 0,
39122
38988
  location: isSet(object.location) ? globalThis.String(object.location) : "",
39123
38989
  is_current: isSet(object.is_current) ? globalThis.Boolean(object.is_current) : false,
39124
38990
  };
@@ -39132,8 +38998,8 @@ export const LogedDevice = {
39132
38998
  if (message.device_name !== "") {
39133
38999
  obj.device_name = message.device_name;
39134
39000
  }
39135
- if (message.login_at !== undefined) {
39136
- obj.login_at = message.login_at.toISOString();
39001
+ if (message.login_at_seconds !== 0) {
39002
+ obj.login_at_seconds = Math.round(message.login_at_seconds);
39137
39003
  }
39138
39004
  if (message.status !== 0) {
39139
39005
  obj.status = Math.round(message.status);
@@ -39144,8 +39010,8 @@ export const LogedDevice = {
39144
39010
  if (message.ip !== "") {
39145
39011
  obj.ip = message.ip;
39146
39012
  }
39147
- if (message.last_active !== undefined) {
39148
- obj.last_active = message.last_active.toISOString();
39013
+ if (message.last_active_seconds !== 0) {
39014
+ obj.last_active_seconds = Math.round(message.last_active_seconds);
39149
39015
  }
39150
39016
  if (message.location !== "") {
39151
39017
  obj.location = message.location;
@@ -39163,11 +39029,11 @@ export const LogedDevice = {
39163
39029
  const message = createBaseLogedDevice();
39164
39030
  message.device_id = object.device_id ?? "";
39165
39031
  message.device_name = object.device_name ?? "";
39166
- message.login_at = object.login_at ?? undefined;
39032
+ message.login_at_seconds = object.login_at_seconds ?? 0;
39167
39033
  message.status = object.status ?? 0;
39168
39034
  message.platform = object.platform ?? "";
39169
39035
  message.ip = object.ip ?? "";
39170
- message.last_active = object.last_active ?? undefined;
39036
+ message.last_active_seconds = object.last_active_seconds ?? 0;
39171
39037
  message.location = object.location ?? "";
39172
39038
  message.is_current = object.is_current ?? false;
39173
39039
  return message;
@@ -39818,28 +39684,6 @@ type KeysOfUnion<T> = T extends T ? keyof T : never;
39818
39684
  export type Exact<P, I extends P> = P extends Builtin ? P
39819
39685
  : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
39820
39686
 
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
39687
  function longToNumber(long: Long): number {
39844
39688
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
39845
39689
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");