mezon-js 2.10.44 → 2.10.46

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
@@ -207,6 +207,8 @@ export interface MezonUpdateEventBody {
207
207
  //
208
208
  channel_id?: string;
209
209
  //
210
+ channel_voice_id?: string;
211
+ //
210
212
  clan_id?: string;
211
213
  //
212
214
  creator_id?: string;
@@ -262,6 +264,8 @@ export interface MezonUpdateSystemMessageBody {
262
264
  boost_message?: string;
263
265
  //
264
266
  channel_id?: string;
267
+ //
268
+ hide_audit_log?: string;
265
269
  //
266
270
  setup_tips?: string;
267
271
  //
@@ -1129,6 +1133,8 @@ export interface ApiCreateEventRequest {
1129
1133
  title?: string;
1130
1134
  //
1131
1135
  channel_id?: string;
1136
+ //
1137
+ action?: number;
1132
1138
  }
1133
1139
 
1134
1140
  /** Create a event within clan. */
@@ -1185,6 +1191,8 @@ export interface ApiDeleteChannelDescRequest {
1185
1191
 
1186
1192
  /** */
1187
1193
  export interface ApiDeleteEventRequest {
1194
+ //
1195
+ channel_id?: string;
1188
1196
  //
1189
1197
  clan_id?: string;
1190
1198
  //
@@ -1304,6 +1312,8 @@ export interface ApiEventManagement {
1304
1312
  create_time?: string;
1305
1313
  //
1306
1314
  channel_id?: string;
1315
+ //
1316
+ event_status?: number;
1307
1317
  }
1308
1318
 
1309
1319
  /** */
@@ -2226,6 +2236,8 @@ export interface ApiSystemMessage {
2226
2236
  channel_id?: string;
2227
2237
  //
2228
2238
  clan_id?: string;
2239
+ //
2240
+ hide_audit_log?: string;
2229
2241
  //
2230
2242
  id?: string;
2231
2243
  //
@@ -2244,6 +2256,8 @@ export interface ApiSystemMessageRequest {
2244
2256
  channel_id?: string;
2245
2257
  //
2246
2258
  clan_id?: string;
2259
+ //
2260
+ hide_audit_log?: string;
2247
2261
  //
2248
2262
  setup_tips?: string;
2249
2263
  //
@@ -6592,6 +6606,7 @@ export class MezonApi {
6592
6606
  clanId?: string,
6593
6607
  creatorId?: string,
6594
6608
  eventLabel?: string,
6609
+ channelId?: string,
6595
6610
  options: any = {}
6596
6611
  ): Promise<any> {
6597
6612
  if (eventId === null || eventId === undefined) {
@@ -6607,6 +6622,7 @@ export class MezonApi {
6607
6622
  queryParams.set("clan_id", clanId);
6608
6623
  queryParams.set("creator_id", creatorId);
6609
6624
  queryParams.set("event_label", eventLabel);
6625
+ queryParams.set("channel_id", channelId);
6610
6626
 
6611
6627
  let bodyJson: string = "";
6612
6628
 
package/client.ts CHANGED
@@ -1205,7 +1205,8 @@ export class Client {
1205
1205
  eventId: string,
1206
1206
  clanId: string,
1207
1207
  creatorId: string,
1208
- eventLabel?: string
1208
+ eventLabel?: string,
1209
+ channelId?: string
1209
1210
  ): Promise<boolean> {
1210
1211
  if (
1211
1212
  this.autoRefreshSession &&
@@ -1216,7 +1217,7 @@ export class Client {
1216
1217
  }
1217
1218
 
1218
1219
  return this.apiClient
1219
- .deleteEvent(session.token, eventId, clanId, creatorId, eventLabel)
1220
+ .deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId)
1220
1221
  .then((response: any) => {
1221
1222
  return response !== undefined;
1222
1223
  });
package/dist/api.gen.d.ts CHANGED
@@ -121,6 +121,7 @@ export interface MezonUpdateEventBody {
121
121
  event_id?: string;
122
122
  address?: string;
123
123
  channel_id?: string;
124
+ channel_voice_id?: string;
124
125
  clan_id?: string;
125
126
  creator_id?: string;
126
127
  description?: string;
@@ -152,6 +153,7 @@ export interface MezonUpdateRoleDeleteBody {
152
153
  export interface MezonUpdateSystemMessageBody {
153
154
  boost_message?: string;
154
155
  channel_id?: string;
156
+ hide_audit_log?: string;
155
157
  setup_tips?: string;
156
158
  welcome_random?: string;
157
159
  welcome_sticker?: string;
@@ -647,6 +649,7 @@ export interface ApiCreateEventRequest {
647
649
  start_time?: string;
648
650
  title?: string;
649
651
  channel_id?: string;
652
+ action?: number;
650
653
  }
651
654
  /** Create a event within clan. */
652
655
  export interface ApiUpdateEventRequest {
@@ -679,6 +682,7 @@ export interface ApiDeleteChannelDescRequest {
679
682
  }
680
683
  /** */
681
684
  export interface ApiDeleteEventRequest {
685
+ channel_id?: string;
682
686
  clan_id?: string;
683
687
  creator_id?: string;
684
688
  event_id?: string;
@@ -748,6 +752,7 @@ export interface ApiEventManagement {
748
752
  user_ids?: Array<string>;
749
753
  create_time?: string;
750
754
  channel_id?: string;
755
+ event_status?: number;
751
756
  }
752
757
  /** */
753
758
  export interface ApiListFavoriteChannelResponse {
@@ -1293,6 +1298,7 @@ export interface ApiSystemMessage {
1293
1298
  boost_message?: string;
1294
1299
  channel_id?: string;
1295
1300
  clan_id?: string;
1301
+ hide_audit_log?: string;
1296
1302
  id?: string;
1297
1303
  setup_tips?: string;
1298
1304
  welcome_random?: string;
@@ -1303,6 +1309,7 @@ export interface ApiSystemMessageRequest {
1303
1309
  boost_message?: string;
1304
1310
  channel_id?: string;
1305
1311
  clan_id?: string;
1312
+ hide_audit_log?: string;
1306
1313
  setup_tips?: string;
1307
1314
  welcome_random?: string;
1308
1315
  welcome_sticker?: string;
@@ -1802,7 +1809,7 @@ export declare class MezonApi {
1802
1809
  /** Update fields in a given event. */
1803
1810
  updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: any): Promise<any>;
1804
1811
  /** Delete a event by ID. */
1805
- deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, options?: any): Promise<any>;
1812
+ deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, channelId?: string, options?: any): Promise<any>;
1806
1813
  /** Update fields in a given event. */
1807
1814
  updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: any): Promise<any>;
1808
1815
  /** Delete one or more users by ID or username. */
package/dist/client.d.ts CHANGED
@@ -400,7 +400,7 @@ export declare class Client {
400
400
  /** Delete a role by ID. */
401
401
  deleteRole(session: Session, roleId: string, clanId: string, roleLabel?: string): Promise<boolean>;
402
402
  /** Delete a event by ID. */
403
- deleteEvent(session: Session, eventId: string, clanId: string, creatorId: string, eventLabel?: string): Promise<boolean>;
403
+ deleteEvent(session: Session, eventId: string, clanId: string, creatorId: string, eventLabel?: string, channelId?: string): Promise<boolean>;
404
404
  /** update user a event by ID. */
405
405
  updateEventUser(session: Session, request: ApiDeleteEventRequest): Promise<boolean>;
406
406
  /** Submit an event for processing in the server's registered runtime custom events handler. */
@@ -3711,7 +3711,7 @@ var MezonApi = class {
3711
3711
  ]);
3712
3712
  }
3713
3713
  /** Delete a event by ID. */
3714
- deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, options = {}) {
3714
+ deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, channelId, options = {}) {
3715
3715
  if (eventId === null || eventId === void 0) {
3716
3716
  throw new Error(
3717
3717
  "'eventId' is a required parameter but is null or undefined."
@@ -3725,6 +3725,7 @@ var MezonApi = class {
3725
3725
  queryParams.set("clan_id", clanId);
3726
3726
  queryParams.set("creator_id", creatorId);
3727
3727
  queryParams.set("event_label", eventLabel);
3728
+ queryParams.set("channel_id", channelId);
3728
3729
  let bodyJson = "";
3729
3730
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3730
3731
  const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
@@ -8485,12 +8486,12 @@ var Client = class {
8485
8486
  });
8486
8487
  }
8487
8488
  /** Delete a event by ID. */
8488
- deleteEvent(session, eventId, clanId, creatorId, eventLabel) {
8489
+ deleteEvent(session, eventId, clanId, creatorId, eventLabel, channelId) {
8489
8490
  return __async(this, null, function* () {
8490
8491
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8491
8492
  yield this.sessionRefresh(session);
8492
8493
  }
8493
- return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel).then((response) => {
8494
+ return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
8494
8495
  return response !== void 0;
8495
8496
  });
8496
8497
  });
@@ -3677,7 +3677,7 @@ var MezonApi = class {
3677
3677
  ]);
3678
3678
  }
3679
3679
  /** Delete a event by ID. */
3680
- deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, options = {}) {
3680
+ deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, channelId, options = {}) {
3681
3681
  if (eventId === null || eventId === void 0) {
3682
3682
  throw new Error(
3683
3683
  "'eventId' is a required parameter but is null or undefined."
@@ -3691,6 +3691,7 @@ var MezonApi = class {
3691
3691
  queryParams.set("clan_id", clanId);
3692
3692
  queryParams.set("creator_id", creatorId);
3693
3693
  queryParams.set("event_label", eventLabel);
3694
+ queryParams.set("channel_id", channelId);
3694
3695
  let bodyJson = "";
3695
3696
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3696
3697
  const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
@@ -8451,12 +8452,12 @@ var Client = class {
8451
8452
  });
8452
8453
  }
8453
8454
  /** Delete a event by ID. */
8454
- deleteEvent(session, eventId, clanId, creatorId, eventLabel) {
8455
+ deleteEvent(session, eventId, clanId, creatorId, eventLabel, channelId) {
8455
8456
  return __async(this, null, function* () {
8456
8457
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8457
8458
  yield this.sessionRefresh(session);
8458
8459
  }
8459
- return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel).then((response) => {
8460
+ return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
8460
8461
  return response !== void 0;
8461
8462
  });
8462
8463
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.44",
4
+ "version": "2.10.46",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"