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 +40 -36
- package/client.ts +2 -0
- package/dist/api.gen.d.ts +2 -0
- package/dist/mezon-js.cjs.js +3 -1
- package/dist/mezon-js.esm.mjs +3 -1
- package/package.json +1 -1
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(
|
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
|
-
|
10323
|
-
|
10324
|
-
|
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
|
-
|
10333
|
-
|
10335
|
+
}
|
10336
|
+
const urlPath = "/v2/onboarding";
|
10337
|
+
const queryParams = new Map<string, any>();
|
10334
10338
|
|
10335
10339
|
let bodyJson: string = "";
|
10336
|
-
|
10340
|
+
bodyJson = JSON.stringify(body || {});
|
10337
10341
|
|
10338
|
-
|
10339
|
-
|
10340
|
-
|
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
|
-
|
10345
|
-
|
10346
|
-
|
10347
|
-
|
10348
|
-
|
10349
|
-
|
10350
|
-
|
10351
|
-
|
10352
|
-
|
10353
|
-
|
10354
|
-
|
10355
|
-
|
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
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;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -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);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -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);
|