mezon-js 2.10.50 → 2.10.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/api.gen.ts CHANGED
@@ -264,7 +264,7 @@ export interface MezonUpdateSystemMessageBody {
264
264
  boost_message?: string;
265
265
  //
266
266
  channel_id?: string;
267
- //
267
+ //
268
268
  hide_audit_log?: string;
269
269
  //
270
270
  setup_tips?: string;
@@ -325,6 +325,8 @@ export interface ApiAccount {
325
325
  //The email address of the user.
326
326
  email?: string;
327
327
  //
328
+ encrypt_private_key?: string;
329
+ //
328
330
  logo?: string;
329
331
  //
330
332
  splash_screen?: string;
@@ -1138,7 +1140,7 @@ export interface ApiCreateEventRequest {
1138
1140
  //
1139
1141
  channel_id?: string;
1140
1142
  //
1141
- action?: number;
1143
+ action?: number;
1142
1144
  }
1143
1145
 
1144
1146
  /** Create a event within clan. */
@@ -2240,7 +2242,7 @@ export interface ApiSystemMessage {
2240
2242
  channel_id?: string;
2241
2243
  //
2242
2244
  clan_id?: string;
2243
- //
2245
+ //
2244
2246
  hide_audit_log?: string;
2245
2247
  //
2246
2248
  id?: string;
@@ -2260,7 +2262,7 @@ export interface ApiSystemMessageRequest {
2260
2262
  channel_id?: string;
2261
2263
  //
2262
2264
  clan_id?: string;
2263
- //
2265
+ //
2264
2266
  hide_audit_log?: string;
2265
2267
  //
2266
2268
  setup_tips?: string;
@@ -2300,6 +2302,8 @@ export interface ApiUpdateAccountRequest {
2300
2302
  dob?: string;
2301
2303
  //The display name of the user.
2302
2304
  display_name?: string;
2305
+ //
2306
+ encrypt_private_key?: string;
2303
2307
  //The language expected to be a tag which follows the BCP-47 spec.
2304
2308
  lang_tag?: string;
2305
2309
  //The location set by the user.
@@ -9233,7 +9237,8 @@ export class MezonApi {
9233
9237
  }
9234
9238
 
9235
9239
  /** List Sd Topic */
9236
- listSdTopic(bearerToken: string,
9240
+ listSdTopic(
9241
+ bearerToken: string,
9237
9242
  clanId?: string,
9238
9243
  limit?: number,
9239
9244
  options: any = {}
@@ -10317,45 +10322,44 @@ export class MezonApi {
10317
10322
  ]);
10318
10323
  }
10319
10324
 
10320
- /** create onboarding. */
10321
- createOnboarding(
10322
- bearerToken: string,
10323
- body: ApiCreateOnboardingRequest,
10324
- options: any = {}
10325
- ): Promise<ApiListOnboardingResponse> {
10326
-
10327
- if (body === null || body === undefined) {
10325
+ /** create onboarding. */
10326
+ createOnboarding(
10327
+ bearerToken: string,
10328
+ body: ApiCreateOnboardingRequest,
10329
+ options: any = {}
10330
+ ): Promise<ApiListOnboardingResponse> {
10331
+ if (body === null || body === undefined) {
10328
10332
  throw new Error(
10329
10333
  "'body' is a required parameter but is null or undefined."
10330
10334
  );
10331
- }
10332
- const urlPath = "/v2/onboarding";
10333
- const queryParams = new Map<string, any>();
10335
+ }
10336
+ const urlPath = "/v2/onboarding";
10337
+ const queryParams = new Map<string, any>();
10334
10338
 
10335
10339
  let bodyJson: string = "";
10336
- bodyJson = JSON.stringify(body || {});
10340
+ bodyJson = JSON.stringify(body || {});
10337
10341
 
10338
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
10339
- const fetchOptions = buildFetchOptions("POST", options, bodyJson);
10340
- if (bearerToken) {
10342
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
10343
+ const fetchOptions = buildFetchOptions("POST", options, bodyJson);
10344
+ if (bearerToken) {
10341
10345
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
10342
- }
10346
+ }
10343
10347
 
10344
- return Promise.race([
10345
- fetch(fullUrl, fetchOptions).then((response) => {
10346
- if (response.status == 204) {
10347
- return response;
10348
- } else if (response.status >= 200 && response.status < 300) {
10349
- return response.json();
10350
- } else {
10351
- throw response;
10352
- }
10353
- }),
10354
- new Promise((_, reject) =>
10355
- setTimeout(reject, this.timeoutMs, "Request timed out.")
10356
- ),
10357
- ]);
10358
- }
10348
+ return Promise.race([
10349
+ fetch(fullUrl, fetchOptions).then((response) => {
10350
+ if (response.status == 204) {
10351
+ return response;
10352
+ } else if (response.status >= 200 && response.status < 300) {
10353
+ return response.json();
10354
+ } else {
10355
+ throw response;
10356
+ }
10357
+ }),
10358
+ new Promise((_, reject) =>
10359
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
10360
+ ),
10361
+ ]);
10362
+ }
10359
10363
 
10360
10364
  /** delete onboarding. */
10361
10365
  deleteOnboarding(
package/client.ts CHANGED
@@ -1650,6 +1650,8 @@ export class Client {
1650
1650
  uploader: at.uploader,
1651
1651
  url: at.url,
1652
1652
  create_time: at.create_time,
1653
+ width: at.width,
1654
+ height: at.height,
1653
1655
  });
1654
1656
  });
1655
1657
  return Promise.resolve(result);
package/dist/api.gen.d.ts CHANGED
@@ -187,6 +187,7 @@ export interface ApiAccount {
187
187
  devices?: Array<ApiAccountDevice>;
188
188
  disable_time?: string;
189
189
  email?: string;
190
+ encrypt_private_key?: string;
190
191
  logo?: string;
191
192
  splash_screen?: string;
192
193
  user?: ApiUser;
@@ -1334,6 +1335,7 @@ export interface ApiUpdateAccountRequest {
1334
1335
  avatar_url?: string;
1335
1336
  dob?: string;
1336
1337
  display_name?: string;
1338
+ encrypt_private_key?: string;
1337
1339
  lang_tag?: string;
1338
1340
  location?: string;
1339
1341
  logo?: string;
@@ -8783,7 +8783,9 @@ var Client = class {
8783
8783
  id: at.id,
8784
8784
  uploader: at.uploader,
8785
8785
  url: at.url,
8786
- create_time: at.create_time
8786
+ create_time: at.create_time,
8787
+ width: at.width,
8788
+ height: at.height
8787
8789
  });
8788
8790
  });
8789
8791
  return Promise.resolve(result);
@@ -8749,7 +8749,9 @@ var Client = class {
8749
8749
  id: at.id,
8750
8750
  uploader: at.uploader,
8751
8751
  url: at.url,
8752
- create_time: at.create_time
8752
+ create_time: at.create_time,
8753
+ width: at.width,
8754
+ height: at.height
8753
8755
  });
8754
8756
  });
8755
8757
  return Promise.resolve(result);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.50",
4
+ "version": "2.10.52",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"