mezon-js 2.14.60 → 2.14.61

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
@@ -1991,7 +1991,7 @@ export interface ApiNotification {
1991
1991
  //Content of the notification in JSON.
1992
1992
  content?: tsproto.DirectFcmProto;
1993
1993
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
1994
- create_time?: string;
1994
+ create_time_seconds?: number;
1995
1995
  //ID of the Notification.
1996
1996
  id?: string;
1997
1997
  //True if this notification was persisted to the database.
package/client.ts CHANGED
@@ -1947,7 +1947,7 @@ export class Client {
1947
1947
  content: n.content ? decodeNotificationFcm(n.content) : undefined,
1948
1948
  code: n.code ? Number(n.code) : 0,
1949
1949
  sender_id: n.sender_id,
1950
- create_time: n.create_time,
1950
+ create_time_seconds: n.create_time_seconds,
1951
1951
  persistent: n.persistent,
1952
1952
  category: n.category,
1953
1953
  });
@@ -4794,7 +4794,7 @@ export class Client {
4794
4794
  });
4795
4795
  }
4796
4796
 
4797
- async update(session: Session,
4797
+ async updateMezonVoiceState(session: Session,
4798
4798
  clanId?:string,
4799
4799
  channelId?:string,
4800
4800
  displayName?:string,
package/dist/api.gen.d.ts CHANGED
@@ -1134,7 +1134,7 @@ export interface ApiNotification {
1134
1134
  clan_id?: string;
1135
1135
  code?: number;
1136
1136
  content?: tsproto.DirectFcmProto;
1137
- create_time?: string;
1137
+ create_time_seconds?: number;
1138
1138
  id?: string;
1139
1139
  persistent?: boolean;
1140
1140
  sender_id?: string;
package/dist/client.d.ts CHANGED
@@ -489,7 +489,7 @@ export declare class Client {
489
489
  isBanned(session: Session, channelId: string): Promise<ApiIsBannedResponse>;
490
490
  reportMessageAbuse(session: Session, messageId?: string, abuseType?: string): Promise<any>;
491
491
  listLogedDevice(session: Session): Promise<ApiLogedDeviceList>;
492
- update(session: Session, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number): Promise<any>;
492
+ updateMezonVoiceState(session: Session, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number): Promise<any>;
493
493
  sendChannelMessage(session: Session, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
494
494
  updateChannelMessage(session: Session, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topicId?: string, isUpdateMsgTopic?: boolean): Promise<any>;
495
495
  deleteChannelMessage(session: Session, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, hasAttachment?: boolean, topicId?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<any>;
@@ -42673,7 +42673,7 @@ var Client = class {
42673
42673
  content: n.content ? decodeNotificationFcm(n.content) : void 0,
42674
42674
  code: n.code ? Number(n.code) : 0,
42675
42675
  sender_id: n.sender_id,
42676
- create_time: n.create_time,
42676
+ create_time_seconds: n.create_time_seconds,
42677
42677
  persistent: n.persistent,
42678
42678
  category: n.category
42679
42679
  });
@@ -44287,7 +44287,7 @@ var Client = class {
44287
44287
  });
44288
44288
  });
44289
44289
  }
44290
- update(session, clanId, channelId, displayName, roomName, state) {
44290
+ updateMezonVoiceState(session, clanId, channelId, displayName, roomName, state) {
44291
44291
  return __async(this, null, function* () {
44292
44292
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
44293
44293
  yield this.sessionRefresh(session);
@@ -42635,7 +42635,7 @@ var Client = class {
42635
42635
  content: n.content ? decodeNotificationFcm(n.content) : void 0,
42636
42636
  code: n.code ? Number(n.code) : 0,
42637
42637
  sender_id: n.sender_id,
42638
- create_time: n.create_time,
42638
+ create_time_seconds: n.create_time_seconds,
42639
42639
  persistent: n.persistent,
42640
42640
  category: n.category
42641
42641
  });
@@ -44249,7 +44249,7 @@ var Client = class {
44249
44249
  });
44250
44250
  });
44251
44251
  }
44252
- update(session, clanId, channelId, displayName, roomName, state) {
44252
+ updateMezonVoiceState(session, clanId, channelId, displayName, roomName, state) {
44253
44253
  return __async(this, null, function* () {
44254
44254
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
44255
44255
  yield this.sessionRefresh(session);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.60",
3
+ "version": "2.14.61",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },