mezon-js 2.14.51 → 2.14.53

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
@@ -2602,7 +2602,7 @@ export interface SystemMessageRequest {
2602
2602
  /** Setup tips */
2603
2603
  setup_tips: string;
2604
2604
  /** Hide audit log */
2605
- hide_audit_log: string;
2605
+ hide_audit_log: boolean;
2606
2606
  }
2607
2607
 
2608
2608
  /** Request to delete a system message by clan ID. */
@@ -27026,7 +27026,7 @@ function createBaseSystemMessageRequest(): SystemMessageRequest {
27026
27026
  welcome_sticker: "",
27027
27027
  boost_message: "",
27028
27028
  setup_tips: "",
27029
- hide_audit_log: "",
27029
+ hide_audit_log: false,
27030
27030
  };
27031
27031
  }
27032
27032
 
@@ -27050,8 +27050,8 @@ export const SystemMessageRequest = {
27050
27050
  if (message.setup_tips !== "") {
27051
27051
  writer.uint32(50).string(message.setup_tips);
27052
27052
  }
27053
- if (message.hide_audit_log !== "") {
27054
- writer.uint32(58).string(message.hide_audit_log);
27053
+ if (message.hide_audit_log !== false) {
27054
+ writer.uint32(56).bool(message.hide_audit_log);
27055
27055
  }
27056
27056
  return writer;
27057
27057
  },
@@ -27106,11 +27106,11 @@ export const SystemMessageRequest = {
27106
27106
  message.setup_tips = reader.string();
27107
27107
  continue;
27108
27108
  case 7:
27109
- if (tag !== 58) {
27109
+ if (tag !== 56) {
27110
27110
  break;
27111
27111
  }
27112
27112
 
27113
- message.hide_audit_log = reader.string();
27113
+ message.hide_audit_log = reader.bool();
27114
27114
  continue;
27115
27115
  }
27116
27116
  if ((tag & 7) === 4 || tag === 0) {
@@ -27129,7 +27129,7 @@ export const SystemMessageRequest = {
27129
27129
  welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
27130
27130
  boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
27131
27131
  setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
27132
- hide_audit_log: isSet(object.hide_audit_log) ? globalThis.String(object.hide_audit_log) : "",
27132
+ hide_audit_log: isSet(object.hide_audit_log) ? globalThis.Boolean(object.hide_audit_log) : false,
27133
27133
  };
27134
27134
  },
27135
27135
 
@@ -27153,7 +27153,7 @@ export const SystemMessageRequest = {
27153
27153
  if (message.setup_tips !== "") {
27154
27154
  obj.setup_tips = message.setup_tips;
27155
27155
  }
27156
- if (message.hide_audit_log !== "") {
27156
+ if (message.hide_audit_log !== false) {
27157
27157
  obj.hide_audit_log = message.hide_audit_log;
27158
27158
  }
27159
27159
  return obj;
@@ -27170,7 +27170,7 @@ export const SystemMessageRequest = {
27170
27170
  message.welcome_sticker = object.welcome_sticker ?? "";
27171
27171
  message.boost_message = object.boost_message ?? "";
27172
27172
  message.setup_tips = object.setup_tips ?? "";
27173
- message.hide_audit_log = object.hide_audit_log ?? "";
27173
+ message.hide_audit_log = object.hide_audit_log ?? false;
27174
27174
  return message;
27175
27175
  },
27176
27176
  };
package/api.gen.ts CHANGED
@@ -412,7 +412,7 @@ export interface MezonUpdateSystemMessageBody {
412
412
  //
413
413
  channel_id?: string;
414
414
  //
415
- hide_audit_log?: string;
415
+ hide_audit_log?: boolean;
416
416
  //
417
417
  setup_tips?: string;
418
418
  //
@@ -2625,7 +2625,7 @@ export interface ApiSystemMessageRequest {
2625
2625
  //
2626
2626
  clan_id?: string;
2627
2627
  //
2628
- hide_audit_log?: string;
2628
+ hide_audit_log?: boolean;
2629
2629
  //
2630
2630
  setup_tips?: string;
2631
2631
  //
package/dist/api/api.d.ts CHANGED
@@ -2188,7 +2188,7 @@ export interface SystemMessageRequest {
2188
2188
  /** Setup tips */
2189
2189
  setup_tips: string;
2190
2190
  /** Hide audit log */
2191
- hide_audit_log: string;
2191
+ hide_audit_log: boolean;
2192
2192
  }
2193
2193
  /** Request to delete a system message by clan ID. */
2194
2194
  export interface DeleteSystemMessage {
@@ -16181,7 +16181,7 @@ export declare const SystemMessageRequest: {
16181
16181
  welcome_sticker?: string | undefined;
16182
16182
  boost_message?: string | undefined;
16183
16183
  setup_tips?: string | undefined;
16184
- hide_audit_log?: string | undefined;
16184
+ hide_audit_log?: boolean | undefined;
16185
16185
  } & {
16186
16186
  clan_id?: string | undefined;
16187
16187
  channel_id?: string | undefined;
@@ -16189,7 +16189,7 @@ export declare const SystemMessageRequest: {
16189
16189
  welcome_sticker?: string | undefined;
16190
16190
  boost_message?: string | undefined;
16191
16191
  setup_tips?: string | undefined;
16192
- hide_audit_log?: string | undefined;
16192
+ hide_audit_log?: boolean | undefined;
16193
16193
  } & { [K in Exclude<keyof I, keyof SystemMessageRequest>]: never; }>(base?: I | undefined): SystemMessageRequest;
16194
16194
  fromPartial<I_1 extends {
16195
16195
  clan_id?: string | undefined;
@@ -16198,7 +16198,7 @@ export declare const SystemMessageRequest: {
16198
16198
  welcome_sticker?: string | undefined;
16199
16199
  boost_message?: string | undefined;
16200
16200
  setup_tips?: string | undefined;
16201
- hide_audit_log?: string | undefined;
16201
+ hide_audit_log?: boolean | undefined;
16202
16202
  } & {
16203
16203
  clan_id?: string | undefined;
16204
16204
  channel_id?: string | undefined;
@@ -16206,7 +16206,7 @@ export declare const SystemMessageRequest: {
16206
16206
  welcome_sticker?: string | undefined;
16207
16207
  boost_message?: string | undefined;
16208
16208
  setup_tips?: string | undefined;
16209
- hide_audit_log?: string | undefined;
16209
+ hide_audit_log?: boolean | undefined;
16210
16210
  } & { [K_1 in Exclude<keyof I_1, keyof SystemMessageRequest>]: never; }>(object: I_1): SystemMessageRequest;
16211
16211
  };
16212
16212
  export declare const DeleteSystemMessage: {
package/dist/api.gen.d.ts CHANGED
@@ -237,7 +237,7 @@ export interface MezonUpdateRoleDeleteBody {
237
237
  export interface MezonUpdateSystemMessageBody {
238
238
  boost_message?: string;
239
239
  channel_id?: string;
240
- hide_audit_log?: string;
240
+ hide_audit_log?: boolean;
241
241
  setup_tips?: string;
242
242
  welcome_random?: string;
243
243
  welcome_sticker?: string;
@@ -1504,7 +1504,7 @@ export interface ApiSystemMessageRequest {
1504
1504
  boost_message?: string;
1505
1505
  channel_id?: string;
1506
1506
  clan_id?: string;
1507
- hide_audit_log?: string;
1507
+ hide_audit_log?: boolean;
1508
1508
  setup_tips?: string;
1509
1509
  welcome_random?: string;
1510
1510
  welcome_sticker?: string;
@@ -21346,7 +21346,7 @@ function createBaseSystemMessageRequest() {
21346
21346
  welcome_sticker: "",
21347
21347
  boost_message: "",
21348
21348
  setup_tips: "",
21349
- hide_audit_log: ""
21349
+ hide_audit_log: false
21350
21350
  };
21351
21351
  }
21352
21352
  var SystemMessageRequest = {
@@ -21369,8 +21369,8 @@ var SystemMessageRequest = {
21369
21369
  if (message.setup_tips !== "") {
21370
21370
  writer.uint32(50).string(message.setup_tips);
21371
21371
  }
21372
- if (message.hide_audit_log !== "") {
21373
- writer.uint32(58).string(message.hide_audit_log);
21372
+ if (message.hide_audit_log !== false) {
21373
+ writer.uint32(56).bool(message.hide_audit_log);
21374
21374
  }
21375
21375
  return writer;
21376
21376
  },
@@ -21418,10 +21418,10 @@ var SystemMessageRequest = {
21418
21418
  message.setup_tips = reader.string();
21419
21419
  continue;
21420
21420
  case 7:
21421
- if (tag !== 58) {
21421
+ if (tag !== 56) {
21422
21422
  break;
21423
21423
  }
21424
- message.hide_audit_log = reader.string();
21424
+ message.hide_audit_log = reader.bool();
21425
21425
  continue;
21426
21426
  }
21427
21427
  if ((tag & 7) === 4 || tag === 0) {
@@ -21439,7 +21439,7 @@ var SystemMessageRequest = {
21439
21439
  welcome_sticker: isSet2(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
21440
21440
  boost_message: isSet2(object.boost_message) ? globalThis.String(object.boost_message) : "",
21441
21441
  setup_tips: isSet2(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
21442
- hide_audit_log: isSet2(object.hide_audit_log) ? globalThis.String(object.hide_audit_log) : ""
21442
+ hide_audit_log: isSet2(object.hide_audit_log) ? globalThis.Boolean(object.hide_audit_log) : false
21443
21443
  };
21444
21444
  },
21445
21445
  toJSON(message) {
@@ -21462,7 +21462,7 @@ var SystemMessageRequest = {
21462
21462
  if (message.setup_tips !== "") {
21463
21463
  obj.setup_tips = message.setup_tips;
21464
21464
  }
21465
- if (message.hide_audit_log !== "") {
21465
+ if (message.hide_audit_log !== false) {
21466
21466
  obj.hide_audit_log = message.hide_audit_log;
21467
21467
  }
21468
21468
  return obj;
@@ -21479,7 +21479,7 @@ var SystemMessageRequest = {
21479
21479
  message.welcome_sticker = (_d = object.welcome_sticker) != null ? _d : "";
21480
21480
  message.boost_message = (_e = object.boost_message) != null ? _e : "";
21481
21481
  message.setup_tips = (_f = object.setup_tips) != null ? _f : "";
21482
- message.hide_audit_log = (_g = object.hide_audit_log) != null ? _g : "";
21482
+ message.hide_audit_log = (_g = object.hide_audit_log) != null ? _g : false;
21483
21483
  return message;
21484
21484
  }
21485
21485
  };
@@ -40372,7 +40372,7 @@ var _DefaultSocket = class _DefaultSocket {
40372
40372
  unfollowUsers(user_ids) {
40373
40373
  return this.send({ status_unfollow: { user_ids } });
40374
40374
  }
40375
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
40375
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
40376
40376
  return __async(this, null, function* () {
40377
40377
  const response = yield this.send({
40378
40378
  channel_message_update: {
@@ -40386,8 +40386,7 @@ var _DefaultSocket = class _DefaultSocket {
40386
40386
  is_public,
40387
40387
  hide_editted: hideEditted,
40388
40388
  topic_id,
40389
- is_update_msg_topic,
40390
- old_mentions
40389
+ is_update_msg_topic
40391
40390
  }
40392
40391
  });
40393
40392
  return response.channel_message_ack;
@@ -21311,7 +21311,7 @@ function createBaseSystemMessageRequest() {
21311
21311
  welcome_sticker: "",
21312
21312
  boost_message: "",
21313
21313
  setup_tips: "",
21314
- hide_audit_log: ""
21314
+ hide_audit_log: false
21315
21315
  };
21316
21316
  }
21317
21317
  var SystemMessageRequest = {
@@ -21334,8 +21334,8 @@ var SystemMessageRequest = {
21334
21334
  if (message.setup_tips !== "") {
21335
21335
  writer.uint32(50).string(message.setup_tips);
21336
21336
  }
21337
- if (message.hide_audit_log !== "") {
21338
- writer.uint32(58).string(message.hide_audit_log);
21337
+ if (message.hide_audit_log !== false) {
21338
+ writer.uint32(56).bool(message.hide_audit_log);
21339
21339
  }
21340
21340
  return writer;
21341
21341
  },
@@ -21383,10 +21383,10 @@ var SystemMessageRequest = {
21383
21383
  message.setup_tips = reader.string();
21384
21384
  continue;
21385
21385
  case 7:
21386
- if (tag !== 58) {
21386
+ if (tag !== 56) {
21387
21387
  break;
21388
21388
  }
21389
- message.hide_audit_log = reader.string();
21389
+ message.hide_audit_log = reader.bool();
21390
21390
  continue;
21391
21391
  }
21392
21392
  if ((tag & 7) === 4 || tag === 0) {
@@ -21404,7 +21404,7 @@ var SystemMessageRequest = {
21404
21404
  welcome_sticker: isSet2(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
21405
21405
  boost_message: isSet2(object.boost_message) ? globalThis.String(object.boost_message) : "",
21406
21406
  setup_tips: isSet2(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
21407
- hide_audit_log: isSet2(object.hide_audit_log) ? globalThis.String(object.hide_audit_log) : ""
21407
+ hide_audit_log: isSet2(object.hide_audit_log) ? globalThis.Boolean(object.hide_audit_log) : false
21408
21408
  };
21409
21409
  },
21410
21410
  toJSON(message) {
@@ -21427,7 +21427,7 @@ var SystemMessageRequest = {
21427
21427
  if (message.setup_tips !== "") {
21428
21428
  obj.setup_tips = message.setup_tips;
21429
21429
  }
21430
- if (message.hide_audit_log !== "") {
21430
+ if (message.hide_audit_log !== false) {
21431
21431
  obj.hide_audit_log = message.hide_audit_log;
21432
21432
  }
21433
21433
  return obj;
@@ -21444,7 +21444,7 @@ var SystemMessageRequest = {
21444
21444
  message.welcome_sticker = (_d = object.welcome_sticker) != null ? _d : "";
21445
21445
  message.boost_message = (_e = object.boost_message) != null ? _e : "";
21446
21446
  message.setup_tips = (_f = object.setup_tips) != null ? _f : "";
21447
- message.hide_audit_log = (_g = object.hide_audit_log) != null ? _g : "";
21447
+ message.hide_audit_log = (_g = object.hide_audit_log) != null ? _g : false;
21448
21448
  return message;
21449
21449
  }
21450
21450
  };
@@ -40337,7 +40337,7 @@ var _DefaultSocket = class _DefaultSocket {
40337
40337
  unfollowUsers(user_ids) {
40338
40338
  return this.send({ status_unfollow: { user_ids } });
40339
40339
  }
40340
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
40340
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
40341
40341
  return __async(this, null, function* () {
40342
40342
  const response = yield this.send({
40343
40343
  channel_message_update: {
@@ -40351,8 +40351,7 @@ var _DefaultSocket = class _DefaultSocket {
40351
40351
  is_public,
40352
40352
  hide_editted: hideEditted,
40353
40353
  topic_id,
40354
- is_update_msg_topic,
40355
- old_mentions
40354
+ is_update_msg_topic
40356
40355
  }
40357
40356
  });
40358
40357
  return response.channel_message_ack;
package/dist/socket.d.ts CHANGED
@@ -943,7 +943,7 @@ export interface Socket {
943
943
  /** Unfollow one or more users from their status updates. */
944
944
  unfollowUsers(user_ids: string[]): Promise<void>;
945
945
  /** Update a chat message on a chat channel in the server. */
946
- updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: Uint8Array): Promise<ChannelMessageAck>;
946
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
947
947
  /** Update the status for the current user online. */
948
948
  updateStatus(status?: string): Promise<void>;
949
949
  /** Send a chat message to a chat channel on the server. */
@@ -1185,7 +1185,7 @@ export declare class DefaultSocket implements Socket {
1185
1185
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
1186
1186
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
1187
1187
  unfollowUsers(user_ids: string[]): Promise<void>;
1188
- updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: Uint8Array): Promise<ChannelMessageAck>;
1188
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
1189
1189
  updateStatus(status?: string): Promise<void>;
1190
1190
  writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
1191
1191
  writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.51",
3
+ "version": "2.14.53",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1474,8 +1474,7 @@ export interface Socket {
1474
1474
  attachments?: Array<ApiMessageAttachment>,
1475
1475
  hideEditted?: boolean,
1476
1476
  topic_id?: string,
1477
- is_update_msg_topic?: boolean,
1478
- old_mentions?: Uint8Array
1477
+ is_update_msg_topic?: boolean
1479
1478
  ): Promise<ChannelMessageAck>;
1480
1479
 
1481
1480
  /** Update the status for the current user online. */
@@ -2839,8 +2838,7 @@ export class DefaultSocket implements Socket {
2839
2838
  attachments?: Array<ApiMessageAttachment>,
2840
2839
  hideEditted?: boolean,
2841
2840
  topic_id?: string,
2842
- is_update_msg_topic?: boolean,
2843
- old_mentions?: Uint8Array
2841
+ is_update_msg_topic?: boolean
2844
2842
  ): Promise<ChannelMessageAck> {
2845
2843
  const response = await this.send({
2846
2844
  channel_message_update: {
@@ -2854,8 +2852,7 @@ export class DefaultSocket implements Socket {
2854
2852
  is_public: is_public,
2855
2853
  hide_editted: hideEditted,
2856
2854
  topic_id: topic_id,
2857
- is_update_msg_topic: is_update_msg_topic,
2858
- old_mentions: old_mentions
2855
+ is_update_msg_topic: is_update_msg_topic
2859
2856
  },
2860
2857
  });
2861
2858
  return response.channel_message_ack;