mezon-js 2.14.61 → 2.14.62

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.gen.ts CHANGED
@@ -609,7 +609,7 @@ export interface ApiApp {
609
609
  //The UNIX time when the app was disabled.
610
610
  disable_time?: string;
611
611
  //The UNIX time when the app was created.
612
- create_time?: string;
612
+ create_time_seconds?: number;
613
613
  //
614
614
  id?: string;
615
615
  //
@@ -814,7 +814,7 @@ export interface ApiChannelCanvasItem {
814
814
  // update time
815
815
  update_time?: string;
816
816
  // create time
817
- create_time?: string;
817
+ create_time_seconds?: number;
818
818
  }
819
819
 
820
820
  /** */
@@ -1130,7 +1130,7 @@ export interface ApiClanSticker {
1130
1130
  //
1131
1131
  clan_name?: string;
1132
1132
  //
1133
- create_time?: string;
1133
+ create_time_seconds?: number;
1134
1134
  //
1135
1135
  creator_id?: string;
1136
1136
  //
@@ -1468,7 +1468,7 @@ export interface ApiEventManagement {
1468
1468
  //
1469
1469
  user_ids?: Array<string>;
1470
1470
  //
1471
- create_time?: string;
1471
+ create_time_seconds?: number;
1472
1472
  //
1473
1473
  channel_id?: string;
1474
1474
  //
@@ -1634,7 +1634,7 @@ export interface ApiLinkInviteUser {
1634
1634
  //
1635
1635
  clan_id?: string;
1636
1636
  //
1637
- create_time?: string;
1637
+ create_time_seconds?: number;
1638
1638
  //The user to add.
1639
1639
  creator_id?: string;
1640
1640
  //
@@ -1762,7 +1762,7 @@ export interface ApiMarkAsReadRequest {
1762
1762
  /** */
1763
1763
  export interface ApiMessageMention {
1764
1764
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
1765
- create_time?: string;
1765
+ create_time_seconds?: number;
1766
1766
  //
1767
1767
  id?: string;
1768
1768
  //
@@ -2166,8 +2166,6 @@ export interface ApiPinMessage {
2166
2166
  channel_id?: string;
2167
2167
  //
2168
2168
  content?: string;
2169
- //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
2170
- create_time?: string;
2171
2169
  //
2172
2170
  create_time_seconds?: number;
2173
2171
  //
@@ -2381,7 +2379,7 @@ export interface ApiSdTopic {
2381
2379
  //
2382
2380
  clan_id?: string;
2383
2381
  //
2384
- create_time?: string;
2382
+ create_time_seconds?: number;
2385
2383
  //
2386
2384
  creator_id?: string;
2387
2385
  //
@@ -2435,7 +2433,7 @@ export interface ApiSearchMessageDocument {
2435
2433
  //
2436
2434
  content?: string;
2437
2435
  //
2438
- create_time?: string;
2436
+ create_time_seconds?: number;
2439
2437
  //
2440
2438
  display_name?: string;
2441
2439
  //
@@ -2657,7 +2655,7 @@ export interface ApiTransactionDetail {
2657
2655
  //
2658
2656
  amount?: number;
2659
2657
  //
2660
- create_time?: string;
2658
+ create_time_seconds?: number;
2661
2659
  //
2662
2660
  update_time?: string;
2663
2661
  //
@@ -2772,7 +2770,7 @@ export interface ApiUser {
2772
2770
  //
2773
2771
  dob_seconds?: number;
2774
2772
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
2775
- create_time?: string;
2773
+ create_time_seconds?: number;
2776
2774
  //The display name of the user.
2777
2775
  display_name?: string;
2778
2776
  //Number of related edges to this user.
@@ -2934,7 +2932,7 @@ export interface ApiWebhook {
2934
2932
  //
2935
2933
  channel_id?: string;
2936
2934
  //
2937
- create_time?: string;
2935
+ create_time_seconds?: number;
2938
2936
  //
2939
2937
  creator_id?: string;
2940
2938
  //
@@ -3101,7 +3099,7 @@ export interface ApiOnboardingItem {
3101
3099
  //
3102
3100
  content?: string;
3103
3101
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
3104
- create_time?: string;
3102
+ create_time_seconds?: number;
3105
3103
  //
3106
3104
  guide_type?: number;
3107
3105
  //
@@ -3137,7 +3135,7 @@ export interface ApiClanWebhook {
3137
3135
  //clan id.
3138
3136
  clan_id?: string;
3139
3137
  //create time.
3140
- create_time?: string;
3138
+ create_time_seconds?: number;
3141
3139
  //creator id.
3142
3140
  creator_id?: string;
3143
3141
  //id.
@@ -3375,7 +3373,7 @@ export interface ApiClanDiscover {
3375
3373
  //
3376
3374
  short_url?: string;
3377
3375
  //
3378
- create_time?: string;
3376
+ create_time_seconds?: number;
3379
3377
  }
3380
3378
 
3381
3379
  /** */
package/client.ts CHANGED
@@ -267,7 +267,7 @@ export interface Notification {
267
267
  /** Content of the notification in JSON. */
268
268
  content?: {};
269
269
  /** The UNIX time when the notification was created. */
270
- create_time?: string;
270
+ create_time_seconds?: number;
271
271
  /** ID of the Notification. */
272
272
  id?: string;
273
273
  /** True if this notification was persisted to the database. */
@@ -1459,7 +1459,7 @@ export class Client {
1459
1459
  result.clan_users!.push({
1460
1460
  user: {
1461
1461
  avatar_url: gu.user!.avatar_url,
1462
- create_time: gu.user!.create_time,
1462
+ create_time_seconds: gu.user!.create_time_seconds,
1463
1463
  display_name: gu.user!.display_name,
1464
1464
  edge_count: gu.user!.edge_count ? Number(gu.user!.edge_count) : 0,
1465
1465
  id: gu.user!.id,
@@ -1878,7 +1878,7 @@ export class Client {
1878
1878
  result.friends!.push({
1879
1879
  user: {
1880
1880
  avatar_url: f.user!.avatar_url,
1881
- create_time: f.user!.create_time,
1881
+ create_time_seconds: f.user!.create_time_seconds,
1882
1882
  display_name: f.user!.display_name,
1883
1883
  edge_count: f.user!.edge_count ? Number(f.user!.edge_count) : 0,
1884
1884
  id: f.user!.id,
package/dist/api.gen.d.ts CHANGED
@@ -352,7 +352,7 @@ export interface ApiApp {
352
352
  appname?: string;
353
353
  creator_id?: string;
354
354
  disable_time?: string;
355
- create_time?: string;
355
+ create_time_seconds?: number;
356
356
  id?: string;
357
357
  is_shadow?: boolean;
358
358
  role?: number;
@@ -470,7 +470,7 @@ export interface ApiChannelCanvasItem {
470
470
  is_default?: boolean;
471
471
  title?: string;
472
472
  update_time?: string;
473
- create_time?: string;
473
+ create_time_seconds?: number;
474
474
  }
475
475
  /** */
476
476
  export interface ApiChannelCanvasListResponse {
@@ -646,7 +646,7 @@ export interface ApiClanSticker {
646
646
  category?: string;
647
647
  clan_id?: string;
648
648
  clan_name?: string;
649
- create_time?: string;
649
+ create_time_seconds?: number;
650
650
  creator_id?: string;
651
651
  id?: string;
652
652
  logo?: string;
@@ -838,7 +838,7 @@ export interface ApiEventManagement {
838
838
  start_time_seconds?: number;
839
839
  title?: string;
840
840
  user_ids?: Array<string>;
841
- create_time?: string;
841
+ create_time_seconds?: number;
842
842
  channel_id?: string;
843
843
  event_status?: number;
844
844
  repeat_type?: number;
@@ -935,7 +935,7 @@ export interface ApiInviteUserRes {
935
935
  export interface ApiLinkInviteUser {
936
936
  channel_id?: string;
937
937
  clan_id?: string;
938
- create_time?: string;
938
+ create_time_seconds?: number;
939
939
  creator_id?: string;
940
940
  expiry_time?: string;
941
941
  id?: string;
@@ -1008,7 +1008,7 @@ export interface ApiMarkAsReadRequest {
1008
1008
  }
1009
1009
  /** */
1010
1010
  export interface ApiMessageMention {
1011
- create_time?: string;
1011
+ create_time_seconds?: number;
1012
1012
  id?: string;
1013
1013
  user_id?: string;
1014
1014
  username?: string;
@@ -1236,7 +1236,6 @@ export interface ApiPinMessage {
1236
1236
  avatar?: string;
1237
1237
  channel_id?: string;
1238
1238
  content?: string;
1239
- create_time?: string;
1240
1239
  create_time_seconds?: number;
1241
1240
  id?: string;
1242
1241
  message_id?: string;
@@ -1364,7 +1363,7 @@ export interface ApiRpc {
1364
1363
  export interface ApiSdTopic {
1365
1364
  channel_id?: string;
1366
1365
  clan_id?: string;
1367
- create_time?: string;
1366
+ create_time_seconds?: number;
1368
1367
  creator_id?: string;
1369
1368
  id?: string;
1370
1369
  last_sent_message?: ApiChannelMessageHeader;
@@ -1394,7 +1393,7 @@ export interface ApiSearchMessageDocument {
1394
1393
  clan_id?: string;
1395
1394
  clan_name?: string;
1396
1395
  content?: string;
1397
- create_time?: string;
1396
+ create_time_seconds?: number;
1398
1397
  display_name?: string;
1399
1398
  mentions?: string;
1400
1399
  message_id?: string;
@@ -1523,7 +1522,7 @@ export interface ApiTokenSentEvent {
1523
1522
  /** */
1524
1523
  export interface ApiTransactionDetail {
1525
1524
  amount?: number;
1526
- create_time?: string;
1525
+ create_time_seconds?: number;
1527
1526
  update_time?: string;
1528
1527
  receiver_id?: string;
1529
1528
  receiver_username?: string;
@@ -1589,7 +1588,7 @@ export interface ApiUser {
1589
1588
  about_me?: string;
1590
1589
  avatar_url?: string;
1591
1590
  dob_seconds?: number;
1592
- create_time?: string;
1591
+ create_time_seconds?: number;
1593
1592
  display_name?: string;
1594
1593
  edge_count?: number;
1595
1594
  id?: string;
@@ -1681,7 +1680,7 @@ export interface ApiWebhook {
1681
1680
  active?: number;
1682
1681
  avatar?: string;
1683
1682
  channel_id?: string;
1684
- create_time?: string;
1683
+ create_time_seconds?: number;
1685
1684
  creator_id?: string;
1686
1685
  id?: string;
1687
1686
  status?: number;
@@ -1778,7 +1777,7 @@ export interface ApiOnboardingItem {
1778
1777
  channel_id?: string;
1779
1778
  clan_id?: string;
1780
1779
  content?: string;
1781
- create_time?: string;
1780
+ create_time_seconds?: number;
1782
1781
  guide_type?: number;
1783
1782
  id?: string;
1784
1783
  task_type?: number;
@@ -1798,7 +1797,7 @@ export interface ApiClanWebhook {
1798
1797
  active?: number;
1799
1798
  avatar?: string;
1800
1799
  clan_id?: string;
1801
- create_time?: string;
1800
+ create_time_seconds?: number;
1802
1801
  creator_id?: string;
1803
1802
  id?: string;
1804
1803
  update_time?: string;
@@ -1930,7 +1929,7 @@ export interface ApiClanDiscover {
1930
1929
  total_members?: number;
1931
1930
  verified?: boolean;
1932
1931
  short_url?: string;
1933
- create_time?: string;
1932
+ create_time_seconds?: number;
1934
1933
  }
1935
1934
  /** */
1936
1935
  export interface ApiListForSaleItemsRequest {
package/dist/client.d.ts CHANGED
@@ -92,7 +92,7 @@ export interface Notification {
92
92
  /** Content of the notification in JSON. */
93
93
  content?: {};
94
94
  /** The UNIX time when the notification was created. */
95
- create_time?: string;
95
+ create_time_seconds?: number;
96
96
  /** ID of the Notification. */
97
97
  id?: string;
98
98
  /** True if this notification was persisted to the database. */
@@ -42368,7 +42368,7 @@ var Client = class {
42368
42368
  result.clan_users.push({
42369
42369
  user: {
42370
42370
  avatar_url: gu.user.avatar_url,
42371
- create_time: gu.user.create_time,
42371
+ create_time_seconds: gu.user.create_time_seconds,
42372
42372
  display_name: gu.user.display_name,
42373
42373
  edge_count: gu.user.edge_count ? Number(gu.user.edge_count) : 0,
42374
42374
  id: gu.user.id,
@@ -42619,7 +42619,7 @@ var Client = class {
42619
42619
  result.friends.push({
42620
42620
  user: {
42621
42621
  avatar_url: f.user.avatar_url,
42622
- create_time: f.user.create_time,
42622
+ create_time_seconds: f.user.create_time_seconds,
42623
42623
  display_name: f.user.display_name,
42624
42624
  edge_count: f.user.edge_count ? Number(f.user.edge_count) : 0,
42625
42625
  id: f.user.id,
@@ -42330,7 +42330,7 @@ var Client = class {
42330
42330
  result.clan_users.push({
42331
42331
  user: {
42332
42332
  avatar_url: gu.user.avatar_url,
42333
- create_time: gu.user.create_time,
42333
+ create_time_seconds: gu.user.create_time_seconds,
42334
42334
  display_name: gu.user.display_name,
42335
42335
  edge_count: gu.user.edge_count ? Number(gu.user.edge_count) : 0,
42336
42336
  id: gu.user.id,
@@ -42581,7 +42581,7 @@ var Client = class {
42581
42581
  result.friends.push({
42582
42582
  user: {
42583
42583
  avatar_url: f.user.avatar_url,
42584
- create_time: f.user.create_time,
42584
+ create_time_seconds: f.user.create_time_seconds,
42585
42585
  display_name: f.user.display_name,
42586
42586
  edge_count: f.user.edge_count ? Number(f.user.edge_count) : 0,
42587
42587
  id: f.user.id,
package/dist/socket.d.ts CHANGED
@@ -37,7 +37,7 @@ export interface NotificationInfo {
37
37
  /** Content of the notification in JSON. */
38
38
  content?: {};
39
39
  /** The UNIX time when the notification was created. */
40
- create_time?: string;
40
+ create_time_seconds?: number;
41
41
  /** ID of the Notification. */
42
42
  id?: string;
43
43
  /** True if this notification was persisted to the database. */
@@ -578,7 +578,7 @@ export interface CheckNameExistedEvent {
578
578
  export interface ClanSticker {
579
579
  category?: string;
580
580
  clan_id?: string;
581
- create_time?: string;
581
+ create_time_seconds?: number;
582
582
  creator_id?: string;
583
583
  id?: string;
584
584
  shortname?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.61",
3
+ "version": "2.14.62",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -96,7 +96,7 @@ export interface NotificationInfo {
96
96
  /** Content of the notification in JSON. */
97
97
  content?: {};
98
98
  /** The UNIX time when the notification was created. */
99
- create_time?: string;
99
+ create_time_seconds?: number;
100
100
  /** ID of the Notification. */
101
101
  id?: string;
102
102
  /** True if this notification was persisted to the database. */
@@ -885,7 +885,7 @@ export interface ClanSticker {
885
885
  //
886
886
  clan_id?: string;
887
887
  //
888
- create_time?: string;
888
+ create_time_seconds?: number;
889
889
  //
890
890
  creator_id?: string;
891
891
  //