mezon-js 2.14.50 → 2.14.52

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/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 {
@@ -2487,7 +2487,7 @@ export interface ChannelCanvasListResponse {
2487
2487
  /** channel doc item */
2488
2488
  channel_canvases: ChannelCanvasItem[];
2489
2489
  /** */
2490
- count: string;
2490
+ count: number;
2491
2491
  }
2492
2492
  export interface ChannelCanvasDetailRequest {
2493
2493
  /** id */
@@ -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: {
@@ -18384,7 +18384,7 @@ export declare const ChannelCanvasListResponse: {
18384
18384
  update_time_seconds?: number | undefined;
18385
18385
  create_time_seconds?: number | undefined;
18386
18386
  }[] | undefined;
18387
- count?: string | undefined;
18387
+ count?: number | undefined;
18388
18388
  } & {
18389
18389
  clan_id?: string | undefined;
18390
18390
  channel_id?: string | undefined;
@@ -18421,7 +18421,7 @@ export declare const ChannelCanvasListResponse: {
18421
18421
  update_time_seconds?: number | undefined;
18422
18422
  create_time_seconds?: number | undefined;
18423
18423
  }[]>]: never; }) | undefined;
18424
- count?: string | undefined;
18424
+ count?: number | undefined;
18425
18425
  } & { [K_2 in Exclude<keyof I, keyof ChannelCanvasListResponse>]: never; }>(base?: I | undefined): ChannelCanvasListResponse;
18426
18426
  fromPartial<I_1 extends {
18427
18427
  clan_id?: string | undefined;
@@ -18435,7 +18435,7 @@ export declare const ChannelCanvasListResponse: {
18435
18435
  update_time_seconds?: number | undefined;
18436
18436
  create_time_seconds?: number | undefined;
18437
18437
  }[] | undefined;
18438
- count?: string | undefined;
18438
+ count?: number | undefined;
18439
18439
  } & {
18440
18440
  clan_id?: string | undefined;
18441
18441
  channel_id?: string | undefined;
@@ -18472,7 +18472,7 @@ export declare const ChannelCanvasListResponse: {
18472
18472
  update_time_seconds?: number | undefined;
18473
18473
  create_time_seconds?: number | undefined;
18474
18474
  }[]>]: never; }) | undefined;
18475
- count?: string | undefined;
18475
+ count?: number | undefined;
18476
18476
  } & { [K_5 in Exclude<keyof I_1, keyof ChannelCanvasListResponse>]: never; }>(object: I_1): ChannelCanvasListResponse;
18477
18477
  };
18478
18478
  export declare const ChannelCanvasDetailRequest: {
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;
@@ -1351,7 +1351,7 @@ export interface ApiRoleListEventResponse {
1351
1351
  cursor?: string;
1352
1352
  limit?: number;
1353
1353
  roles?: ApiRoleList;
1354
- state?: string;
1354
+ state?: number;
1355
1355
  }
1356
1356
  /** */
1357
1357
  export interface ApiRoleUserList {
@@ -1493,7 +1493,7 @@ export interface ApiSystemMessage {
1493
1493
  boost_message?: string;
1494
1494
  channel_id?: string;
1495
1495
  clan_id?: string;
1496
- hide_audit_log?: string;
1496
+ hide_audit_log?: boolean;
1497
1497
  id?: string;
1498
1498
  setup_tips?: string;
1499
1499
  welcome_random?: 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
  };
@@ -24016,7 +24016,7 @@ var ChannelCanvasItem = {
24016
24016
  }
24017
24017
  };
24018
24018
  function createBaseChannelCanvasListResponse() {
24019
- return { clan_id: "0", channel_id: "0", channel_canvases: [], count: "0" };
24019
+ return { clan_id: "0", channel_id: "0", channel_canvases: [], count: 0 };
24020
24020
  }
24021
24021
  var ChannelCanvasListResponse = {
24022
24022
  encode(message, writer = import_minimal3.default.Writer.create()) {
@@ -24029,8 +24029,8 @@ var ChannelCanvasListResponse = {
24029
24029
  for (const v of message.channel_canvases) {
24030
24030
  ChannelCanvasItem.encode(v, writer.uint32(26).fork()).ldelim();
24031
24031
  }
24032
- if (message.count !== "0") {
24033
- writer.uint32(32).int64(message.count);
24032
+ if (message.count !== 0) {
24033
+ writer.uint32(32).int32(message.count);
24034
24034
  }
24035
24035
  return writer;
24036
24036
  },
@@ -24063,7 +24063,7 @@ var ChannelCanvasListResponse = {
24063
24063
  if (tag !== 32) {
24064
24064
  break;
24065
24065
  }
24066
- message.count = longToString(reader.int64());
24066
+ message.count = reader.int32();
24067
24067
  continue;
24068
24068
  }
24069
24069
  if ((tag & 7) === 4 || tag === 0) {
@@ -24078,7 +24078,7 @@ var ChannelCanvasListResponse = {
24078
24078
  clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
24079
24079
  channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
24080
24080
  channel_canvases: globalThis.Array.isArray(object == null ? void 0 : object.channel_canvases) ? object.channel_canvases.map((e) => ChannelCanvasItem.fromJSON(e)) : [],
24081
- count: isSet2(object.count) ? globalThis.String(object.count) : "0"
24081
+ count: isSet2(object.count) ? globalThis.Number(object.count) : 0
24082
24082
  };
24083
24083
  },
24084
24084
  toJSON(message) {
@@ -24093,8 +24093,8 @@ var ChannelCanvasListResponse = {
24093
24093
  if ((_a = message.channel_canvases) == null ? void 0 : _a.length) {
24094
24094
  obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
24095
24095
  }
24096
- if (message.count !== "0") {
24097
- obj.count = message.count;
24096
+ if (message.count !== 0) {
24097
+ obj.count = Math.round(message.count);
24098
24098
  }
24099
24099
  return obj;
24100
24100
  },
@@ -24107,7 +24107,7 @@ var ChannelCanvasListResponse = {
24107
24107
  message.clan_id = (_a = object.clan_id) != null ? _a : "0";
24108
24108
  message.channel_id = (_b = object.channel_id) != null ? _b : "0";
24109
24109
  message.channel_canvases = ((_c = object.channel_canvases) == null ? void 0 : _c.map((e) => ChannelCanvasItem.fromPartial(e))) || [];
24110
- message.count = (_d = object.count) != null ? _d : "0";
24110
+ message.count = (_d = object.count) != null ? _d : 0;
24111
24111
  return message;
24112
24112
  }
24113
24113
  };
@@ -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
  };
@@ -23981,7 +23981,7 @@ var ChannelCanvasItem = {
23981
23981
  }
23982
23982
  };
23983
23983
  function createBaseChannelCanvasListResponse() {
23984
- return { clan_id: "0", channel_id: "0", channel_canvases: [], count: "0" };
23984
+ return { clan_id: "0", channel_id: "0", channel_canvases: [], count: 0 };
23985
23985
  }
23986
23986
  var ChannelCanvasListResponse = {
23987
23987
  encode(message, writer = import_minimal3.default.Writer.create()) {
@@ -23994,8 +23994,8 @@ var ChannelCanvasListResponse = {
23994
23994
  for (const v of message.channel_canvases) {
23995
23995
  ChannelCanvasItem.encode(v, writer.uint32(26).fork()).ldelim();
23996
23996
  }
23997
- if (message.count !== "0") {
23998
- writer.uint32(32).int64(message.count);
23997
+ if (message.count !== 0) {
23998
+ writer.uint32(32).int32(message.count);
23999
23999
  }
24000
24000
  return writer;
24001
24001
  },
@@ -24028,7 +24028,7 @@ var ChannelCanvasListResponse = {
24028
24028
  if (tag !== 32) {
24029
24029
  break;
24030
24030
  }
24031
- message.count = longToString(reader.int64());
24031
+ message.count = reader.int32();
24032
24032
  continue;
24033
24033
  }
24034
24034
  if ((tag & 7) === 4 || tag === 0) {
@@ -24043,7 +24043,7 @@ var ChannelCanvasListResponse = {
24043
24043
  clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
24044
24044
  channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
24045
24045
  channel_canvases: globalThis.Array.isArray(object == null ? void 0 : object.channel_canvases) ? object.channel_canvases.map((e) => ChannelCanvasItem.fromJSON(e)) : [],
24046
- count: isSet2(object.count) ? globalThis.String(object.count) : "0"
24046
+ count: isSet2(object.count) ? globalThis.Number(object.count) : 0
24047
24047
  };
24048
24048
  },
24049
24049
  toJSON(message) {
@@ -24058,8 +24058,8 @@ var ChannelCanvasListResponse = {
24058
24058
  if ((_a = message.channel_canvases) == null ? void 0 : _a.length) {
24059
24059
  obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
24060
24060
  }
24061
- if (message.count !== "0") {
24062
- obj.count = message.count;
24061
+ if (message.count !== 0) {
24062
+ obj.count = Math.round(message.count);
24063
24063
  }
24064
24064
  return obj;
24065
24065
  },
@@ -24072,7 +24072,7 @@ var ChannelCanvasListResponse = {
24072
24072
  message.clan_id = (_a = object.clan_id) != null ? _a : "0";
24073
24073
  message.channel_id = (_b = object.channel_id) != null ? _b : "0";
24074
24074
  message.channel_canvases = ((_c = object.channel_canvases) == null ? void 0 : _c.map((e) => ChannelCanvasItem.fromPartial(e))) || [];
24075
- message.count = (_d = object.count) != null ? _d : "0";
24075
+ message.count = (_d = object.count) != null ? _d : 0;
24076
24076
  return message;
24077
24077
  }
24078
24078
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.50",
3
+ "version": "2.14.52",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },