mezon-js 2.8.51 → 2.8.53

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -313,7 +313,7 @@ export interface ApiAccountGameCenter {
313
313
  //The verification signature data generated.
314
314
  signature?: string;
315
315
  //Time since UNIX epoch when the signature was created.
316
- timestamp_seconds?: string;
316
+ timestamp_seconds?: number;
317
317
  //Extra information that will be bundled in the session token.
318
318
  vars?: Record<string, string>;
319
319
  }
@@ -459,7 +459,7 @@ export interface ApiChannelDescription {
459
459
  //
460
460
  count_mess_unread?: number;
461
461
  //
462
- create_time_ms?: number;
462
+ create_time_seconds?: number;
463
463
  //creator ID.
464
464
  creator_id?: string;
465
465
  //
@@ -481,7 +481,7 @@ export interface ApiChannelDescription {
481
481
  //The channel type.
482
482
  type?: number;
483
483
  //
484
- update_time_ms?: number;
484
+ update_time_seconds?: number;
485
485
  //
486
486
  user_id?: Array<string>;
487
487
  //
@@ -517,7 +517,7 @@ export interface ApiChannelMessage {
517
517
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
518
518
  create_time?: string;
519
519
  //
520
- create_time_ms?: number;
520
+ create_time_seconds?: number;
521
521
  //
522
522
  display_name?: string;
523
523
  //
@@ -535,7 +535,7 @@ export interface ApiChannelMessage {
535
535
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
536
536
  update_time?: string;
537
537
  //
538
- update_time_ms?: number;
538
+ update_time_seconds?: number;
539
539
  //The username of the message sender, if any.
540
540
  username?: string;
541
541
  // channel mode
@@ -561,7 +561,7 @@ export interface ApiChannelMessageHeader {
561
561
  //
562
562
  sender_id?: string;
563
563
  //
564
- timestamp?: string;
564
+ timestamp_seconds?: number;
565
565
  }
566
566
 
567
567
  /** A list of channel messages, usually a result of a list operation. */
package/client.ts CHANGED
@@ -186,9 +186,9 @@ export interface ChannelMessage {
186
186
  //
187
187
  display_name?: string;
188
188
  //
189
- create_time_ms?: number;
189
+ create_time_seconds?: number;
190
190
  //
191
- update_time_ms?: number;
191
+ update_time_seconds?: number;
192
192
  //
193
193
  mode?: number;
194
194
  //
@@ -617,7 +617,7 @@ export class Client {
617
617
  publicKeyUrl: string,
618
618
  salt: string,
619
619
  signature: string,
620
- timestamp: string,
620
+ timestamp: number,
621
621
  username?: string,
622
622
  create?: boolean,
623
623
  vars?: Record<string, string>,
@@ -1046,8 +1046,8 @@ export class Client {
1046
1046
  reactions: reactions,
1047
1047
  references: references,
1048
1048
  clan_id: m.clan_id,
1049
- create_time_ms: m.create_time_ms,
1050
- update_time_ms: m.update_time_ms,
1049
+ create_time_seconds: m.create_time_seconds,
1050
+ update_time_seconds: m.update_time_seconds,
1051
1051
  })
1052
1052
  });
1053
1053
  return Promise.resolve(result);
package/dist/api.gen.d.ts CHANGED
@@ -181,7 +181,7 @@ export interface ApiAccountGameCenter {
181
181
  public_key_url?: string;
182
182
  salt?: string;
183
183
  signature?: string;
184
- timestamp_seconds?: string;
184
+ timestamp_seconds?: number;
185
185
  vars?: Record<string, string>;
186
186
  }
187
187
  /** Send a Google token to the server. Used with authenticate/link/unlink. */
@@ -266,7 +266,7 @@ export interface ApiChannelDescription {
266
266
  channel_private?: number;
267
267
  clan_id?: string;
268
268
  count_mess_unread?: number;
269
- create_time_ms?: number;
269
+ create_time_seconds?: number;
270
270
  creator_id?: string;
271
271
  creator_name?: string;
272
272
  last_pin_message?: string;
@@ -277,7 +277,7 @@ export interface ApiChannelDescription {
277
277
  parrent_id?: string;
278
278
  status?: number;
279
279
  type?: number;
280
- update_time_ms?: number;
280
+ update_time_seconds?: number;
281
281
  user_id?: Array<string>;
282
282
  usernames?: string;
283
283
  }
@@ -296,7 +296,7 @@ export interface ApiChannelMessage {
296
296
  code: number;
297
297
  content: string;
298
298
  create_time?: string;
299
- create_time_ms?: number;
299
+ create_time_seconds?: number;
300
300
  display_name?: string;
301
301
  mentions?: string;
302
302
  message_id: string;
@@ -305,7 +305,7 @@ export interface ApiChannelMessage {
305
305
  references?: string;
306
306
  sender_id: string;
307
307
  update_time?: string;
308
- update_time_ms?: number;
308
+ update_time_seconds?: number;
309
309
  username?: string;
310
310
  mode?: number;
311
311
  hideEditted?: boolean;
@@ -319,7 +319,7 @@ export interface ApiChannelMessageHeader {
319
319
  reaction?: string;
320
320
  referece?: string;
321
321
  sender_id?: string;
322
- timestamp?: string;
322
+ timestamp_seconds?: number;
323
323
  }
324
324
  /** A list of channel messages, usually a result of a list operation. */
325
325
  export interface ApiChannelMessageList {
package/dist/client.d.ts CHANGED
@@ -67,8 +67,8 @@ export interface ChannelMessage {
67
67
  clan_nick?: string;
68
68
  clan_avatar?: string;
69
69
  display_name?: string;
70
- create_time_ms?: number;
71
- update_time_ms?: number;
70
+ create_time_seconds?: number;
71
+ update_time_seconds?: number;
72
72
  mode?: number;
73
73
  message_id?: string;
74
74
  hideEditted?: boolean;
@@ -343,7 +343,7 @@ export declare class Client {
343
343
  /** Authenticate a user with Google against the server. */
344
344
  authenticateGoogle(token: string, create?: boolean, username?: string, vars?: Record<string, string>, options?: any): Promise<Session>;
345
345
  /** Authenticate a user with GameCenter against the server. */
346
- authenticateGameCenter(bundleId: string, playerId: string, publicKeyUrl: string, salt: string, signature: string, timestamp: string, username?: string, create?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
346
+ authenticateGameCenter(bundleId: string, playerId: string, publicKeyUrl: string, salt: string, signature: string, timestamp: number, username?: string, create?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
347
347
  /** Authenticate a user with Steam against the server. */
348
348
  authenticateSteam(token: string, create?: boolean, username?: string, sync?: boolean, vars?: Record<string, string>): Promise<Session>;
349
349
  /** Block one or more users by ID or username. */
@@ -5724,8 +5724,8 @@ var Client = class {
5724
5724
  reactions,
5725
5725
  references,
5726
5726
  clan_id: m.clan_id,
5727
- create_time_ms: m.create_time_ms,
5728
- update_time_ms: m.update_time_ms
5727
+ create_time_seconds: m.create_time_seconds,
5728
+ update_time_seconds: m.update_time_seconds
5729
5729
  });
5730
5730
  });
5731
5731
  return Promise.resolve(result);
@@ -5695,8 +5695,8 @@ var Client = class {
5695
5695
  reactions,
5696
5696
  references,
5697
5697
  clan_id: m.clan_id,
5698
- create_time_ms: m.create_time_ms,
5699
- update_time_ms: m.update_time_ms
5698
+ create_time_seconds: m.create_time_seconds,
5699
+ update_time_seconds: m.update_time_seconds
5700
5700
  });
5701
5701
  });
5702
5702
  return Promise.resolve(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.51",
3
+ "version": "2.8.53",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },