mezon-js 2.10.51 → 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 -38
- package/dist/api.gen.d.ts +2 -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,14 +2302,14 @@ 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.
|
2306
2310
|
location?: string;
|
2307
2311
|
//
|
2308
2312
|
logo?: string;
|
2309
|
-
//
|
2310
|
-
public_key?: string;
|
2311
2313
|
//
|
2312
2314
|
splash_screen?: string;
|
2313
2315
|
//The timezone set by the user.
|
@@ -9235,7 +9237,8 @@ export class MezonApi {
|
|
9235
9237
|
}
|
9236
9238
|
|
9237
9239
|
/** List Sd Topic */
|
9238
|
-
listSdTopic(
|
9240
|
+
listSdTopic(
|
9241
|
+
bearerToken: string,
|
9239
9242
|
clanId?: string,
|
9240
9243
|
limit?: number,
|
9241
9244
|
options: any = {}
|
@@ -10319,45 +10322,44 @@ export class MezonApi {
|
|
10319
10322
|
]);
|
10320
10323
|
}
|
10321
10324
|
|
10322
|
-
/** create onboarding. */
|
10323
|
-
createOnboarding(
|
10324
|
-
|
10325
|
-
|
10326
|
-
|
10327
|
-
): Promise<ApiListOnboardingResponse> {
|
10328
|
-
|
10329
|
-
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) {
|
10330
10332
|
throw new Error(
|
10331
10333
|
"'body' is a required parameter but is null or undefined."
|
10332
10334
|
);
|
10333
|
-
|
10334
|
-
|
10335
|
-
|
10335
|
+
}
|
10336
|
+
const urlPath = "/v2/onboarding";
|
10337
|
+
const queryParams = new Map<string, any>();
|
10336
10338
|
|
10337
10339
|
let bodyJson: string = "";
|
10338
|
-
|
10340
|
+
bodyJson = JSON.stringify(body || {});
|
10339
10341
|
|
10340
|
-
|
10341
|
-
|
10342
|
-
|
10342
|
+
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
10343
|
+
const fetchOptions = buildFetchOptions("POST", options, bodyJson);
|
10344
|
+
if (bearerToken) {
|
10343
10345
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
10344
|
-
|
10346
|
+
}
|
10345
10347
|
|
10346
|
-
|
10347
|
-
|
10348
|
-
|
10349
|
-
|
10350
|
-
|
10351
|
-
|
10352
|
-
|
10353
|
-
|
10354
|
-
|
10355
|
-
|
10356
|
-
|
10357
|
-
|
10358
|
-
|
10359
|
-
|
10360
|
-
}
|
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
|
+
}
|
10361
10363
|
|
10362
10364
|
/** delete onboarding. */
|
10363
10365
|
deleteOnboarding(
|
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,10 +1335,10 @@ 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;
|
1340
|
-
public_key?: string;
|
1341
1342
|
splash_screen?: string;
|
1342
1343
|
timezone?: string;
|
1343
1344
|
username?: string;
|