@cherryin/api-client 0.0.1 → 0.0.3
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/.openapi-generator/FILES +73 -11
- package/README.md +110 -16
- package/api.ts +3348 -749
- package/dist/api.d.ts +2027 -624
- package/dist/api.js +2827 -921
- package/dist/esm/api.d.ts +2027 -624
- package/dist/esm/api.js +2800 -899
- package/docs/AIModelAdminServiceApi.md +53 -0
- package/docs/AIModelCheckConnectionResponse.md +25 -0
- package/docs/AIModelCheckItem.md +32 -0
- package/docs/AIModelCheckResult.md +23 -0
- package/docs/AIModelCreateResponse.md +2 -2
- package/docs/AIModelDeleteResponse.md +2 -2
- package/docs/AIModelDisableResponse.md +2 -2
- package/docs/AIModelGetResponse.md +2 -2
- package/docs/AIModelListResponse.md +2 -2
- package/docs/AIModelPublishResponse.md +2 -2
- package/docs/AIModelUpdateResponse.md +2 -2
- package/docs/Auth2Account.md +33 -0
- package/docs/Auth2Admin.md +33 -0
- package/docs/Auth2AdminServiceApi.md +469 -0
- package/docs/Auth2AdminSession.md +35 -0
- package/docs/{AuthTokenPair.md → Auth2IdToken.md} +10 -8
- package/docs/Auth2Session.md +35 -0
- package/docs/Auth2User.md +33 -0
- package/docs/Auth2UserServiceApi.md +1203 -0
- package/docs/AuthAdminChangePasswordRequest.md +24 -0
- package/docs/AuthAdminChangePasswordResponse.md +26 -0
- package/docs/AuthAdminGetSessionResponse.md +26 -0
- package/docs/AuthAdminListSessionsResponse.md +24 -0
- package/docs/AuthAdminRevokeOtherSessionsResponse.md +24 -0
- package/docs/{UserAuthFlowInitResponseOAuthResult.md → AuthAdminRevokeSessionRequest.md} +5 -5
- package/docs/AuthAdminRevokeSessionResponse.md +24 -0
- package/docs/AuthAdminRevokeSessionsResponse.md +24 -0
- package/docs/AuthAdminSignInEmailRequest.md +26 -0
- package/docs/AuthAdminSignInEmailResponse.md +26 -0
- package/docs/AuthAdminSignOutResponse.md +24 -0
- package/docs/AuthAdminUpdateUserRequest.md +22 -0
- package/docs/AuthAdminUpdateUserResponse.md +24 -0
- package/docs/AuthChangeEmailRequest.md +22 -0
- package/docs/AuthChangeEmailResponse.md +26 -0
- package/docs/AuthChangePasswordRequest.md +24 -0
- package/docs/AuthChangePasswordResponse.md +26 -0
- package/docs/AuthDeleteUserRequest.md +24 -0
- package/docs/AuthDeleteUserResponse.md +24 -0
- package/docs/AuthGetAccessTokenRequest.md +24 -0
- package/docs/AuthGetAccessTokenResponse.md +34 -0
- package/docs/AuthGetAccountInfoResponse.md +24 -0
- package/docs/AuthGetSessionResponse.md +26 -0
- package/docs/AuthLinkSocialRequest.md +30 -0
- package/docs/AuthLinkSocialResponse.md +28 -0
- package/docs/AuthListAccountsResponse.md +24 -0
- package/docs/AuthListSessionsResponse.md +24 -0
- package/docs/AuthRefreshTokenRequest.md +24 -0
- package/docs/AuthRefreshTokenResponse.md +34 -0
- package/docs/AuthRequestPasswordResetRequest.md +22 -0
- package/docs/{UserAuthFlowOAuthCallbackRequest.md → AuthRequestPasswordResetResponse.md} +7 -7
- package/docs/AuthResetPasswordRequest.md +22 -0
- package/docs/{AdminAuthFlowInitResponse.md → AuthResetPasswordResponse.md} +5 -5
- package/docs/AuthRevokeOtherSessionsResponse.md +24 -0
- package/docs/{UserAuthInfo.md → AuthRevokeSessionRequest.md} +5 -5
- package/docs/AuthRevokeSessionResponse.md +24 -0
- package/docs/AuthRevokeSessionsResponse.md +24 -0
- package/docs/AuthSendVerificationEmailRequest.md +22 -0
- package/docs/{UserAuthFlowOAuthCallbackResponse.md → AuthSendVerificationEmailResponse.md} +5 -7
- package/docs/AuthSignInEmailRequest.md +26 -0
- package/docs/AuthSignInEmailResponse.md +30 -0
- package/docs/AuthSignInSocialRequest.md +30 -0
- package/docs/AuthSignInSocialResponse.md +30 -0
- package/docs/AuthSignOutResponse.md +24 -0
- package/docs/AuthSignUpEmailRequest.md +32 -0
- package/docs/AuthSignUpEmailResponse.md +28 -0
- package/docs/AuthUnlinkAccountRequest.md +22 -0
- package/docs/AuthUnlinkAccountResponse.md +24 -0
- package/docs/AuthUpdateUserRequest.md +22 -0
- package/docs/AuthUpdateUserResponse.md +24 -0
- package/docs/AuthVerifyEmailResponse.md +24 -0
- package/docs/ConfigItem.md +32 -0
- package/docs/ConfigItemHistory.md +22 -0
- package/docs/ProviderCreateResponse.md +2 -2
- package/docs/ProviderDeleteResponse.md +2 -2
- package/docs/ProviderGetResponse.md +2 -2
- package/docs/ProviderListResponse.md +2 -2
- package/docs/ProviderModelCreateResponse.md +2 -2
- package/docs/ProviderModelDeleteResponse.md +2 -2
- package/docs/ProviderModelGetResponse.md +2 -2
- package/docs/ProviderModelListResponse.md +2 -2
- package/docs/ProviderModelUpdateResponse.md +2 -2
- package/docs/ProviderUpdateResponse.md +2 -2
- package/docs/RemoteConfigAdminServiceApi.md +287 -0
- package/docs/RemoteConfigItemCreateRequest.md +20 -0
- package/docs/RemoteConfigItemCreateResponse.md +24 -0
- package/docs/RemoteConfigItemDeleteRequest.md +20 -0
- package/docs/RemoteConfigItemDeleteResponse.md +22 -0
- package/docs/RemoteConfigItemGetResponse.md +24 -0
- package/docs/RemoteConfigItemListResponse.md +26 -0
- package/docs/RemoteConfigItemUpdateRequest.md +22 -0
- package/docs/RemoteConfigItemUpdateResponse.md +24 -0
- package/docs/UserInfo.md +14 -8
- package/docs/UserPayServiceApi.md +12 -3
- package/git_push.sh +1 -1
- package/package.json +2 -2
- package/docs/AdminAuthServiceApi.md +0 -81
- package/docs/AuthFlowResult.md +0 -23
- package/docs/UserAuthFlowCodeResponse.md +0 -26
- package/docs/UserAuthFlowInitResponse.md +0 -28
- package/docs/UserAuthServiceApi.md +0 -279
package/dist/esm/api.js
CHANGED
|
@@ -31,6 +31,34 @@ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
|
31
31
|
*/
|
|
32
32
|
export const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
33
33
|
return {
|
|
34
|
+
/**
|
|
35
|
+
* AIModelCheckConnection 检查 AIModel 的连接性
|
|
36
|
+
* @param {Array<string>} [aiModelNames]
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
aIModelAdminServiceAIModelCheckConnection: (aiModelNames_1, ...args_1) => __awaiter(this, [aiModelNames_1, ...args_1], void 0, function* (aiModelNames, options = {}) {
|
|
41
|
+
const localVarPath = `/admin/ai-model/check/connection`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
if (aiModelNames) {
|
|
52
|
+
localVarQueryParameter['ai_model_names'] = aiModelNames;
|
|
53
|
+
}
|
|
54
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
57
|
+
return {
|
|
58
|
+
url: toPathString(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
60
|
+
};
|
|
61
|
+
}),
|
|
34
62
|
/**
|
|
35
63
|
* AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
36
64
|
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
@@ -260,6 +288,21 @@ export const AIModelAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
260
288
|
export const AIModelAdminServiceApiFp = function (configuration) {
|
|
261
289
|
const localVarAxiosParamCreator = AIModelAdminServiceApiAxiosParamCreator(configuration);
|
|
262
290
|
return {
|
|
291
|
+
/**
|
|
292
|
+
* AIModelCheckConnection 检查 AIModel 的连接性
|
|
293
|
+
* @param {Array<string>} [aiModelNames]
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
aIModelAdminServiceAIModelCheckConnection(aiModelNames, options) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
var _a, _b, _c;
|
|
300
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelCheckConnection(aiModelNames, options);
|
|
301
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
302
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelCheckConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
303
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
304
|
+
});
|
|
305
|
+
},
|
|
263
306
|
/**
|
|
264
307
|
* AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
265
308
|
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
@@ -378,6 +421,15 @@ export const AIModelAdminServiceApiFp = function (configuration) {
|
|
|
378
421
|
export const AIModelAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
379
422
|
const localVarFp = AIModelAdminServiceApiFp(configuration);
|
|
380
423
|
return {
|
|
424
|
+
/**
|
|
425
|
+
* AIModelCheckConnection 检查 AIModel 的连接性
|
|
426
|
+
* @param {Array<string>} [aiModelNames]
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
aIModelAdminServiceAIModelCheckConnection(aiModelNames, options) {
|
|
431
|
+
return localVarFp.aIModelAdminServiceAIModelCheckConnection(aiModelNames, options).then((request) => request(axios, basePath));
|
|
432
|
+
},
|
|
381
433
|
/**
|
|
382
434
|
* AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
383
435
|
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
@@ -452,6 +504,15 @@ export const AIModelAdminServiceApiFactory = function (configuration, basePath,
|
|
|
452
504
|
* AIModelAdminServiceApi - object-oriented interface
|
|
453
505
|
*/
|
|
454
506
|
export class AIModelAdminServiceApi extends BaseAPI {
|
|
507
|
+
/**
|
|
508
|
+
* AIModelCheckConnection 检查 AIModel 的连接性
|
|
509
|
+
* @param {Array<string>} [aiModelNames]
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
aIModelAdminServiceAIModelCheckConnection(aiModelNames, options) {
|
|
514
|
+
return AIModelAdminServiceApiFp(this.configuration).aIModelAdminServiceAIModelCheckConnection(aiModelNames, options).then((request) => request(this.axios, this.basePath));
|
|
515
|
+
}
|
|
455
516
|
/**
|
|
456
517
|
* AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
457
518
|
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
@@ -522,25 +583,20 @@ export class AIModelAdminServiceApi extends BaseAPI {
|
|
|
522
583
|
}
|
|
523
584
|
}
|
|
524
585
|
/**
|
|
525
|
-
*
|
|
586
|
+
* Auth2AdminServiceApi - axios parameter creator
|
|
526
587
|
*/
|
|
527
|
-
export const
|
|
588
|
+
export const Auth2AdminServiceApiAxiosParamCreator = function (configuration) {
|
|
528
589
|
return {
|
|
529
590
|
/**
|
|
530
|
-
*
|
|
531
|
-
* @param {
|
|
532
|
-
* @param {number} [authAction]
|
|
533
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
534
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
535
|
-
* @param {string} [authAt]
|
|
536
|
-
* @param {string} [nonce]
|
|
537
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
538
|
-
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
591
|
+
* ============ 密码管理 ============
|
|
592
|
+
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
539
593
|
* @param {*} [options] Override http request option.
|
|
540
594
|
* @throws {RequiredError}
|
|
541
595
|
*/
|
|
542
|
-
|
|
543
|
-
|
|
596
|
+
auth2AdminServiceAuthAdminChangePassword: (authAdminChangePasswordRequest_1, ...args_1) => __awaiter(this, [authAdminChangePasswordRequest_1, ...args_1], void 0, function* (authAdminChangePasswordRequest, options = {}) {
|
|
597
|
+
// verify required parameter 'authAdminChangePasswordRequest' is not null or undefined
|
|
598
|
+
assertParamExists('auth2AdminServiceAuthAdminChangePassword', 'authAdminChangePasswordRequest', authAdminChangePasswordRequest);
|
|
599
|
+
const localVarPath = `/admin/authed/change-password`;
|
|
544
600
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
545
601
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
602
|
let baseOptions;
|
|
@@ -550,130 +606,74 @@ export const AdminAuthServiceApiAxiosParamCreator = function (configuration) {
|
|
|
550
606
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
551
607
|
const localVarHeaderParameter = {};
|
|
552
608
|
const localVarQueryParameter = {};
|
|
553
|
-
|
|
554
|
-
localVarQueryParameter['auth_type'] = authType;
|
|
555
|
-
}
|
|
556
|
-
if (authAction !== undefined) {
|
|
557
|
-
localVarQueryParameter['auth_action'] = authAction;
|
|
558
|
-
}
|
|
559
|
-
if (payloadEmailPayloadUserEmail !== undefined) {
|
|
560
|
-
localVarQueryParameter['payload.email_payload.user_email'] = payloadEmailPayloadUserEmail;
|
|
561
|
-
}
|
|
562
|
-
if (payloadEmailPayloadUserPasswordEncrypt !== undefined) {
|
|
563
|
-
localVarQueryParameter['payload.email_payload.user_password_encrypt'] = payloadEmailPayloadUserPasswordEncrypt;
|
|
564
|
-
}
|
|
565
|
-
if (authAt !== undefined) {
|
|
566
|
-
localVarQueryParameter['auth_at'] = authAt;
|
|
567
|
-
}
|
|
568
|
-
if (nonce !== undefined) {
|
|
569
|
-
localVarQueryParameter['nonce'] = nonce;
|
|
570
|
-
}
|
|
571
|
-
if (signature !== undefined) {
|
|
572
|
-
localVarQueryParameter['signature'] = signature;
|
|
573
|
-
}
|
|
574
|
-
if (sessionType !== undefined) {
|
|
575
|
-
localVarQueryParameter['session_type'] = sessionType;
|
|
576
|
-
}
|
|
609
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
577
610
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
578
611
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
579
612
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
613
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authAdminChangePasswordRequest, localVarRequestOptions, configuration);
|
|
580
614
|
return {
|
|
581
615
|
url: toPathString(localVarUrlObj),
|
|
582
616
|
options: localVarRequestOptions,
|
|
583
617
|
};
|
|
584
618
|
}),
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
/**
|
|
588
|
-
* AdminAuthServiceApi - functional programming interface
|
|
589
|
-
*/
|
|
590
|
-
export const AdminAuthServiceApiFp = function (configuration) {
|
|
591
|
-
const localVarAxiosParamCreator = AdminAuthServiceApiAxiosParamCreator(configuration);
|
|
592
|
-
return {
|
|
593
619
|
/**
|
|
594
|
-
*
|
|
595
|
-
* @param {number} [authType]
|
|
596
|
-
* @param {number} [authAction]
|
|
597
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
598
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
599
|
-
* @param {string} [authAt]
|
|
600
|
-
* @param {string} [nonce]
|
|
601
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
602
|
-
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
620
|
+
*
|
|
603
621
|
* @param {*} [options] Override http request option.
|
|
604
622
|
* @throws {RequiredError}
|
|
605
623
|
*/
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
624
|
+
auth2AdminServiceAuthAdminGetSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
625
|
+
const localVarPath = `/admin/authed/get-session`;
|
|
626
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
627
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
628
|
+
let baseOptions;
|
|
629
|
+
if (configuration) {
|
|
630
|
+
baseOptions = configuration.baseOptions;
|
|
631
|
+
}
|
|
632
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
633
|
+
const localVarHeaderParameter = {};
|
|
634
|
+
const localVarQueryParameter = {};
|
|
635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
638
|
+
return {
|
|
639
|
+
url: toPathString(localVarUrlObj),
|
|
640
|
+
options: localVarRequestOptions,
|
|
641
|
+
};
|
|
642
|
+
}),
|
|
623
643
|
/**
|
|
624
|
-
*
|
|
625
|
-
* @param {number} [authType]
|
|
626
|
-
* @param {number} [authAction]
|
|
627
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
628
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
629
|
-
* @param {string} [authAt]
|
|
630
|
-
* @param {string} [nonce]
|
|
631
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
632
|
-
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
644
|
+
* ============ 会话管理 ============
|
|
633
645
|
* @param {*} [options] Override http request option.
|
|
634
646
|
* @throws {RequiredError}
|
|
635
647
|
*/
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
* @param {*} [options] Override http request option.
|
|
656
|
-
* @throws {RequiredError}
|
|
657
|
-
*/
|
|
658
|
-
adminAuthServiceAdminAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, sessionType, options) {
|
|
659
|
-
return AdminAuthServiceApiFp(this.configuration).adminAuthServiceAdminAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, sessionType, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* DiscountAdminServiceApi - axios parameter creator
|
|
664
|
-
*/
|
|
665
|
-
export const DiscountAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
666
|
-
return {
|
|
648
|
+
auth2AdminServiceAuthAdminListSessions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
649
|
+
const localVarPath = `/admin/authed/list-sessions`;
|
|
650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
652
|
+
let baseOptions;
|
|
653
|
+
if (configuration) {
|
|
654
|
+
baseOptions = configuration.baseOptions;
|
|
655
|
+
}
|
|
656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
657
|
+
const localVarHeaderParameter = {};
|
|
658
|
+
const localVarQueryParameter = {};
|
|
659
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
661
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
662
|
+
return {
|
|
663
|
+
url: toPathString(localVarUrlObj),
|
|
664
|
+
options: localVarRequestOptions,
|
|
665
|
+
};
|
|
666
|
+
}),
|
|
667
667
|
/**
|
|
668
|
-
*
|
|
669
|
-
* @param {
|
|
668
|
+
*
|
|
669
|
+
* @param {object} body
|
|
670
670
|
* @param {*} [options] Override http request option.
|
|
671
671
|
* @throws {RequiredError}
|
|
672
672
|
*/
|
|
673
|
-
|
|
674
|
-
// verify required parameter '
|
|
675
|
-
assertParamExists('
|
|
676
|
-
const localVarPath = `/admin/
|
|
673
|
+
auth2AdminServiceAuthAdminRevokeOtherSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
674
|
+
// verify required parameter 'body' is not null or undefined
|
|
675
|
+
assertParamExists('auth2AdminServiceAuthAdminRevokeOtherSessions', 'body', body);
|
|
676
|
+
const localVarPath = `/admin/authed/revoke-other-sessions`;
|
|
677
677
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
678
678
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
679
679
|
let baseOptions;
|
|
@@ -687,115 +687,138 @@ export const DiscountAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
687
687
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
688
688
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
689
689
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
690
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
690
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
691
691
|
return {
|
|
692
692
|
url: toPathString(localVarUrlObj),
|
|
693
693
|
options: localVarRequestOptions,
|
|
694
694
|
};
|
|
695
695
|
}),
|
|
696
696
|
/**
|
|
697
|
-
*
|
|
698
|
-
* @param {
|
|
697
|
+
*
|
|
698
|
+
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
699
699
|
* @param {*} [options] Override http request option.
|
|
700
700
|
* @throws {RequiredError}
|
|
701
701
|
*/
|
|
702
|
-
|
|
703
|
-
// verify required parameter '
|
|
704
|
-
assertParamExists('
|
|
705
|
-
const localVarPath = `/admin/
|
|
702
|
+
auth2AdminServiceAuthAdminRevokeSession: (authAdminRevokeSessionRequest_1, ...args_1) => __awaiter(this, [authAdminRevokeSessionRequest_1, ...args_1], void 0, function* (authAdminRevokeSessionRequest, options = {}) {
|
|
703
|
+
// verify required parameter 'authAdminRevokeSessionRequest' is not null or undefined
|
|
704
|
+
assertParamExists('auth2AdminServiceAuthAdminRevokeSession', 'authAdminRevokeSessionRequest', authAdminRevokeSessionRequest);
|
|
705
|
+
const localVarPath = `/admin/authed/revoke-session`;
|
|
706
706
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
707
707
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
708
708
|
let baseOptions;
|
|
709
709
|
if (configuration) {
|
|
710
710
|
baseOptions = configuration.baseOptions;
|
|
711
711
|
}
|
|
712
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
712
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
713
713
|
const localVarHeaderParameter = {};
|
|
714
714
|
const localVarQueryParameter = {};
|
|
715
715
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
716
716
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
717
717
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
718
718
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
719
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
719
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authAdminRevokeSessionRequest, localVarRequestOptions, configuration);
|
|
720
720
|
return {
|
|
721
721
|
url: toPathString(localVarUrlObj),
|
|
722
722
|
options: localVarRequestOptions,
|
|
723
723
|
};
|
|
724
724
|
}),
|
|
725
725
|
/**
|
|
726
|
-
*
|
|
727
|
-
* @param {
|
|
726
|
+
*
|
|
727
|
+
* @param {object} body
|
|
728
728
|
* @param {*} [options] Override http request option.
|
|
729
729
|
* @throws {RequiredError}
|
|
730
730
|
*/
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
auth2AdminServiceAuthAdminRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
732
|
+
// verify required parameter 'body' is not null or undefined
|
|
733
|
+
assertParamExists('auth2AdminServiceAuthAdminRevokeSessions', 'body', body);
|
|
734
|
+
const localVarPath = `/admin/authed/revoke-sessions`;
|
|
733
735
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
734
736
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
735
737
|
let baseOptions;
|
|
736
738
|
if (configuration) {
|
|
737
739
|
baseOptions = configuration.baseOptions;
|
|
738
740
|
}
|
|
739
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
741
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
740
742
|
const localVarHeaderParameter = {};
|
|
741
743
|
const localVarQueryParameter = {};
|
|
742
|
-
|
|
743
|
-
localVarQueryParameter['id'] = id;
|
|
744
|
-
}
|
|
744
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
745
745
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
746
746
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
747
747
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
748
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
748
749
|
return {
|
|
749
750
|
url: toPathString(localVarUrlObj),
|
|
750
751
|
options: localVarRequestOptions,
|
|
751
752
|
};
|
|
752
753
|
}),
|
|
753
754
|
/**
|
|
754
|
-
*
|
|
755
|
-
* @param {
|
|
756
|
-
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
757
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
755
|
+
* ============ 认证 ============
|
|
756
|
+
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
758
757
|
* @param {*} [options] Override http request option.
|
|
759
758
|
* @throws {RequiredError}
|
|
760
759
|
*/
|
|
761
|
-
|
|
762
|
-
|
|
760
|
+
auth2AdminServiceAuthAdminSignInEmail: (authAdminSignInEmailRequest_1, ...args_1) => __awaiter(this, [authAdminSignInEmailRequest_1, ...args_1], void 0, function* (authAdminSignInEmailRequest, options = {}) {
|
|
761
|
+
// verify required parameter 'authAdminSignInEmailRequest' is not null or undefined
|
|
762
|
+
assertParamExists('auth2AdminServiceAuthAdminSignInEmail', 'authAdminSignInEmailRequest', authAdminSignInEmailRequest);
|
|
763
|
+
const localVarPath = `/admin/auth/sign-in/email`;
|
|
763
764
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
764
765
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
765
766
|
let baseOptions;
|
|
766
767
|
if (configuration) {
|
|
767
768
|
baseOptions = configuration.baseOptions;
|
|
768
769
|
}
|
|
769
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
770
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
770
771
|
const localVarHeaderParameter = {};
|
|
771
772
|
const localVarQueryParameter = {};
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
773
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
774
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
776
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
777
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authAdminSignInEmailRequest, localVarRequestOptions, configuration);
|
|
778
|
+
return {
|
|
779
|
+
url: toPathString(localVarUrlObj),
|
|
780
|
+
options: localVarRequestOptions,
|
|
781
|
+
};
|
|
782
|
+
}),
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @param {object} body
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
*/
|
|
789
|
+
auth2AdminServiceAuthAdminSignOut: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
790
|
+
// verify required parameter 'body' is not null or undefined
|
|
791
|
+
assertParamExists('auth2AdminServiceAuthAdminSignOut', 'body', body);
|
|
792
|
+
const localVarPath = `/admin/authed/sign-out`;
|
|
793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
794
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
795
|
+
let baseOptions;
|
|
796
|
+
if (configuration) {
|
|
797
|
+
baseOptions = configuration.baseOptions;
|
|
780
798
|
}
|
|
799
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
800
|
+
const localVarHeaderParameter = {};
|
|
801
|
+
const localVarQueryParameter = {};
|
|
802
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
781
803
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
782
804
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
783
805
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
806
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
784
807
|
return {
|
|
785
808
|
url: toPathString(localVarUrlObj),
|
|
786
809
|
options: localVarRequestOptions,
|
|
787
810
|
};
|
|
788
811
|
}),
|
|
789
812
|
/**
|
|
790
|
-
*
|
|
791
|
-
* @param {
|
|
813
|
+
* ============ 管理员信息管理 ============
|
|
814
|
+
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
792
815
|
* @param {*} [options] Override http request option.
|
|
793
816
|
* @throws {RequiredError}
|
|
794
817
|
*/
|
|
795
|
-
|
|
796
|
-
// verify required parameter '
|
|
797
|
-
assertParamExists('
|
|
798
|
-
const localVarPath = `/admin/
|
|
818
|
+
auth2AdminServiceAuthAdminUpdateUser: (authAdminUpdateUserRequest_1, ...args_1) => __awaiter(this, [authAdminUpdateUserRequest_1, ...args_1], void 0, function* (authAdminUpdateUserRequest, options = {}) {
|
|
819
|
+
// verify required parameter 'authAdminUpdateUserRequest' is not null or undefined
|
|
820
|
+
assertParamExists('auth2AdminServiceAuthAdminUpdateUser', 'authAdminUpdateUserRequest', authAdminUpdateUserRequest);
|
|
821
|
+
const localVarPath = `/admin/authed/update-user`;
|
|
799
822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
800
823
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
801
824
|
let baseOptions;
|
|
@@ -809,7 +832,7 @@ export const DiscountAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
809
832
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
810
833
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
811
834
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
812
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
835
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authAdminUpdateUserRequest, localVarRequestOptions, configuration);
|
|
813
836
|
return {
|
|
814
837
|
url: toPathString(localVarUrlObj),
|
|
815
838
|
options: localVarRequestOptions,
|
|
@@ -818,117 +841,2022 @@ export const DiscountAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
818
841
|
};
|
|
819
842
|
};
|
|
820
843
|
/**
|
|
821
|
-
*
|
|
844
|
+
* Auth2AdminServiceApi - functional programming interface
|
|
822
845
|
*/
|
|
823
|
-
export const
|
|
824
|
-
const localVarAxiosParamCreator =
|
|
846
|
+
export const Auth2AdminServiceApiFp = function (configuration) {
|
|
847
|
+
const localVarAxiosParamCreator = Auth2AdminServiceApiAxiosParamCreator(configuration);
|
|
825
848
|
return {
|
|
826
849
|
/**
|
|
827
|
-
*
|
|
828
|
-
* @param {
|
|
850
|
+
* ============ 密码管理 ============
|
|
851
|
+
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
829
852
|
* @param {*} [options] Override http request option.
|
|
830
853
|
* @throws {RequiredError}
|
|
831
854
|
*/
|
|
832
|
-
|
|
855
|
+
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
833
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
834
857
|
var _a, _b, _c;
|
|
835
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
858
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options);
|
|
836
859
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
837
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
860
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
838
861
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
839
862
|
});
|
|
840
863
|
},
|
|
841
864
|
/**
|
|
842
|
-
*
|
|
843
|
-
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
865
|
+
*
|
|
844
866
|
* @param {*} [options] Override http request option.
|
|
845
867
|
* @throws {RequiredError}
|
|
846
868
|
*/
|
|
847
|
-
|
|
869
|
+
auth2AdminServiceAuthAdminGetSession(options) {
|
|
848
870
|
return __awaiter(this, void 0, void 0, function* () {
|
|
849
871
|
var _a, _b, _c;
|
|
850
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
872
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminGetSession(options);
|
|
851
873
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
852
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
874
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminGetSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
853
875
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
854
876
|
});
|
|
855
877
|
},
|
|
856
878
|
/**
|
|
857
|
-
*
|
|
858
|
-
* @param {string} [id] @gotags: form:\"id\"
|
|
879
|
+
* ============ 会话管理 ============
|
|
859
880
|
* @param {*} [options] Override http request option.
|
|
860
881
|
* @throws {RequiredError}
|
|
861
882
|
*/
|
|
862
|
-
|
|
883
|
+
auth2AdminServiceAuthAdminListSessions(options) {
|
|
863
884
|
return __awaiter(this, void 0, void 0, function* () {
|
|
864
885
|
var _a, _b, _c;
|
|
865
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
886
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminListSessions(options);
|
|
866
887
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
867
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
888
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminListSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
868
889
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
869
890
|
});
|
|
870
891
|
},
|
|
871
892
|
/**
|
|
872
|
-
*
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
875
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
893
|
+
*
|
|
894
|
+
* @param {object} body
|
|
876
895
|
* @param {*} [options] Override http request option.
|
|
877
896
|
* @throws {RequiredError}
|
|
878
897
|
*/
|
|
879
|
-
|
|
898
|
+
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
880
899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
881
900
|
var _a, _b, _c;
|
|
882
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
901
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options);
|
|
883
902
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
884
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
903
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeOtherSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
885
904
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
886
905
|
});
|
|
887
906
|
},
|
|
888
907
|
/**
|
|
889
|
-
*
|
|
890
|
-
* @param {
|
|
908
|
+
*
|
|
909
|
+
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
891
910
|
* @param {*} [options] Override http request option.
|
|
892
911
|
* @throws {RequiredError}
|
|
893
912
|
*/
|
|
894
|
-
|
|
913
|
+
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
895
914
|
return __awaiter(this, void 0, void 0, function* () {
|
|
896
915
|
var _a, _b, _c;
|
|
897
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options);
|
|
898
917
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
899
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
918
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
900
919
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
901
920
|
});
|
|
902
921
|
},
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
/**
|
|
906
|
-
* DiscountAdminServiceApi - factory interface
|
|
907
|
-
*/
|
|
908
|
-
export const DiscountAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
909
|
-
const localVarFp = DiscountAdminServiceApiFp(configuration);
|
|
910
|
-
return {
|
|
911
922
|
/**
|
|
912
|
-
*
|
|
913
|
-
* @param {
|
|
923
|
+
*
|
|
924
|
+
* @param {object} body
|
|
914
925
|
* @param {*} [options] Override http request option.
|
|
915
926
|
* @throws {RequiredError}
|
|
916
927
|
*/
|
|
917
|
-
|
|
918
|
-
return
|
|
928
|
+
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
929
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
930
|
+
var _a, _b, _c;
|
|
931
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminRevokeSessions(body, options);
|
|
932
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
933
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminRevokeSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
|
+
});
|
|
919
936
|
},
|
|
920
937
|
/**
|
|
921
|
-
*
|
|
922
|
-
* @param {
|
|
938
|
+
* ============ 认证 ============
|
|
939
|
+
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
923
940
|
* @param {*} [options] Override http request option.
|
|
924
941
|
* @throws {RequiredError}
|
|
925
942
|
*/
|
|
926
|
-
|
|
927
|
-
return
|
|
943
|
+
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
945
|
+
var _a, _b, _c;
|
|
946
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options);
|
|
947
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
948
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignInEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
949
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
950
|
+
});
|
|
928
951
|
},
|
|
929
952
|
/**
|
|
930
|
-
*
|
|
931
|
-
* @param {
|
|
953
|
+
*
|
|
954
|
+
* @param {object} body
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
960
|
+
var _a, _b, _c;
|
|
961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminSignOut(body, options);
|
|
962
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
963
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminSignOut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
964
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
965
|
+
});
|
|
966
|
+
},
|
|
967
|
+
/**
|
|
968
|
+
* ============ 管理员信息管理 ============
|
|
969
|
+
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @throws {RequiredError}
|
|
972
|
+
*/
|
|
973
|
+
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
var _a, _b, _c;
|
|
976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options);
|
|
977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
978
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2AdminServiceApi.auth2AdminServiceAuthAdminUpdateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
979
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
980
|
+
});
|
|
981
|
+
},
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* Auth2AdminServiceApi - factory interface
|
|
986
|
+
*/
|
|
987
|
+
export const Auth2AdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
988
|
+
const localVarFp = Auth2AdminServiceApiFp(configuration);
|
|
989
|
+
return {
|
|
990
|
+
/**
|
|
991
|
+
* ============ 密码管理 ============
|
|
992
|
+
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
993
|
+
* @param {*} [options] Override http request option.
|
|
994
|
+
* @throws {RequiredError}
|
|
995
|
+
*/
|
|
996
|
+
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
997
|
+
return localVarFp.auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(axios, basePath));
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
auth2AdminServiceAuthAdminGetSession(options) {
|
|
1005
|
+
return localVarFp.auth2AdminServiceAuthAdminGetSession(options).then((request) => request(axios, basePath));
|
|
1006
|
+
},
|
|
1007
|
+
/**
|
|
1008
|
+
* ============ 会话管理 ============
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
auth2AdminServiceAuthAdminListSessions(options) {
|
|
1013
|
+
return localVarFp.auth2AdminServiceAuthAdminListSessions(options).then((request) => request(axios, basePath));
|
|
1014
|
+
},
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @param {object} body
|
|
1018
|
+
* @param {*} [options] Override http request option.
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
*/
|
|
1021
|
+
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
1022
|
+
return localVarFp.auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
|
|
1023
|
+
},
|
|
1024
|
+
/**
|
|
1025
|
+
*
|
|
1026
|
+
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
*/
|
|
1030
|
+
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
1031
|
+
return localVarFp.auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(axios, basePath));
|
|
1032
|
+
},
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @param {object} body
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
*/
|
|
1039
|
+
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
1040
|
+
return localVarFp.auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(axios, basePath));
|
|
1041
|
+
},
|
|
1042
|
+
/**
|
|
1043
|
+
* ============ 认证 ============
|
|
1044
|
+
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
1049
|
+
return localVarFp.auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(axios, basePath));
|
|
1050
|
+
},
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @param {object} body
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
*/
|
|
1057
|
+
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
1058
|
+
return localVarFp.auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(axios, basePath));
|
|
1059
|
+
},
|
|
1060
|
+
/**
|
|
1061
|
+
* ============ 管理员信息管理 ============
|
|
1062
|
+
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
1067
|
+
return localVarFp.auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(axios, basePath));
|
|
1068
|
+
},
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Auth2AdminServiceApi - object-oriented interface
|
|
1073
|
+
*/
|
|
1074
|
+
export class Auth2AdminServiceApi extends BaseAPI {
|
|
1075
|
+
/**
|
|
1076
|
+
* ============ 密码管理 ============
|
|
1077
|
+
* @param {AuthAdminChangePasswordRequest} authAdminChangePasswordRequest
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options) {
|
|
1082
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminChangePassword(authAdminChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
auth2AdminServiceAuthAdminGetSession(options) {
|
|
1090
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminGetSession(options).then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* ============ 会话管理 ============
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
*/
|
|
1097
|
+
auth2AdminServiceAuthAdminListSessions(options) {
|
|
1098
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminListSessions(options).then((request) => request(this.axios, this.basePath));
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @param {object} body
|
|
1103
|
+
* @param {*} [options] Override http request option.
|
|
1104
|
+
* @throws {RequiredError}
|
|
1105
|
+
*/
|
|
1106
|
+
auth2AdminServiceAuthAdminRevokeOtherSessions(body, options) {
|
|
1107
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
*
|
|
1111
|
+
* @param {AuthAdminRevokeSessionRequest} authAdminRevokeSessionRequest
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
*/
|
|
1115
|
+
auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options) {
|
|
1116
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeSession(authAdminRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @param {object} body
|
|
1121
|
+
* @param {*} [options] Override http request option.
|
|
1122
|
+
* @throws {RequiredError}
|
|
1123
|
+
*/
|
|
1124
|
+
auth2AdminServiceAuthAdminRevokeSessions(body, options) {
|
|
1125
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* ============ 认证 ============
|
|
1129
|
+
* @param {AuthAdminSignInEmailRequest} authAdminSignInEmailRequest
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
*/
|
|
1133
|
+
auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options) {
|
|
1134
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminSignInEmail(authAdminSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @param {object} body
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
*/
|
|
1142
|
+
auth2AdminServiceAuthAdminSignOut(body, options) {
|
|
1143
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminSignOut(body, options).then((request) => request(this.axios, this.basePath));
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* ============ 管理员信息管理 ============
|
|
1147
|
+
* @param {AuthAdminUpdateUserRequest} authAdminUpdateUserRequest
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options) {
|
|
1152
|
+
return Auth2AdminServiceApiFp(this.configuration).auth2AdminServiceAuthAdminUpdateUser(authAdminUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Auth2UserServiceApi - axios parameter creator
|
|
1157
|
+
*/
|
|
1158
|
+
export const Auth2UserServiceApiAxiosParamCreator = function (configuration) {
|
|
1159
|
+
return {
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
1163
|
+
* @param {*} [options] Override http request option.
|
|
1164
|
+
* @throws {RequiredError}
|
|
1165
|
+
*/
|
|
1166
|
+
auth2UserServiceAuthChangeEmail: (authChangeEmailRequest_1, ...args_1) => __awaiter(this, [authChangeEmailRequest_1, ...args_1], void 0, function* (authChangeEmailRequest, options = {}) {
|
|
1167
|
+
// verify required parameter 'authChangeEmailRequest' is not null or undefined
|
|
1168
|
+
assertParamExists('auth2UserServiceAuthChangeEmail', 'authChangeEmailRequest', authChangeEmailRequest);
|
|
1169
|
+
const localVarPath = `/authed/v1/change-email`;
|
|
1170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1172
|
+
let baseOptions;
|
|
1173
|
+
if (configuration) {
|
|
1174
|
+
baseOptions = configuration.baseOptions;
|
|
1175
|
+
}
|
|
1176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1177
|
+
const localVarHeaderParameter = {};
|
|
1178
|
+
const localVarQueryParameter = {};
|
|
1179
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1182
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1183
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authChangeEmailRequest, localVarRequestOptions, configuration);
|
|
1184
|
+
return {
|
|
1185
|
+
url: toPathString(localVarUrlObj),
|
|
1186
|
+
options: localVarRequestOptions,
|
|
1187
|
+
};
|
|
1188
|
+
}),
|
|
1189
|
+
/**
|
|
1190
|
+
* ============ 密码管理 ============
|
|
1191
|
+
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
*/
|
|
1195
|
+
auth2UserServiceAuthChangePassword: (authChangePasswordRequest_1, ...args_1) => __awaiter(this, [authChangePasswordRequest_1, ...args_1], void 0, function* (authChangePasswordRequest, options = {}) {
|
|
1196
|
+
// verify required parameter 'authChangePasswordRequest' is not null or undefined
|
|
1197
|
+
assertParamExists('auth2UserServiceAuthChangePassword', 'authChangePasswordRequest', authChangePasswordRequest);
|
|
1198
|
+
const localVarPath = `/authed/v1/change-password`;
|
|
1199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1201
|
+
let baseOptions;
|
|
1202
|
+
if (configuration) {
|
|
1203
|
+
baseOptions = configuration.baseOptions;
|
|
1204
|
+
}
|
|
1205
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1206
|
+
const localVarHeaderParameter = {};
|
|
1207
|
+
const localVarQueryParameter = {};
|
|
1208
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1211
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1212
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authChangePasswordRequest, localVarRequestOptions, configuration);
|
|
1213
|
+
return {
|
|
1214
|
+
url: toPathString(localVarUrlObj),
|
|
1215
|
+
options: localVarRequestOptions,
|
|
1216
|
+
};
|
|
1217
|
+
}),
|
|
1218
|
+
/**
|
|
1219
|
+
*
|
|
1220
|
+
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
*/
|
|
1224
|
+
auth2UserServiceAuthDeleteUser: (authDeleteUserRequest_1, ...args_1) => __awaiter(this, [authDeleteUserRequest_1, ...args_1], void 0, function* (authDeleteUserRequest, options = {}) {
|
|
1225
|
+
// verify required parameter 'authDeleteUserRequest' is not null or undefined
|
|
1226
|
+
assertParamExists('auth2UserServiceAuthDeleteUser', 'authDeleteUserRequest', authDeleteUserRequest);
|
|
1227
|
+
const localVarPath = `/authed/v1/delete-user`;
|
|
1228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1230
|
+
let baseOptions;
|
|
1231
|
+
if (configuration) {
|
|
1232
|
+
baseOptions = configuration.baseOptions;
|
|
1233
|
+
}
|
|
1234
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1235
|
+
const localVarHeaderParameter = {};
|
|
1236
|
+
const localVarQueryParameter = {};
|
|
1237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1240
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1241
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authDeleteUserRequest, localVarRequestOptions, configuration);
|
|
1242
|
+
return {
|
|
1243
|
+
url: toPathString(localVarUrlObj),
|
|
1244
|
+
options: localVarRequestOptions,
|
|
1245
|
+
};
|
|
1246
|
+
}),
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
auth2UserServiceAuthGetAccessToken: (authGetAccessTokenRequest_1, ...args_1) => __awaiter(this, [authGetAccessTokenRequest_1, ...args_1], void 0, function* (authGetAccessTokenRequest, options = {}) {
|
|
1254
|
+
// verify required parameter 'authGetAccessTokenRequest' is not null or undefined
|
|
1255
|
+
assertParamExists('auth2UserServiceAuthGetAccessToken', 'authGetAccessTokenRequest', authGetAccessTokenRequest);
|
|
1256
|
+
const localVarPath = `/authed/v1/get-access-token`;
|
|
1257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1259
|
+
let baseOptions;
|
|
1260
|
+
if (configuration) {
|
|
1261
|
+
baseOptions = configuration.baseOptions;
|
|
1262
|
+
}
|
|
1263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1264
|
+
const localVarHeaderParameter = {};
|
|
1265
|
+
const localVarQueryParameter = {};
|
|
1266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authGetAccessTokenRequest, localVarRequestOptions, configuration);
|
|
1271
|
+
return {
|
|
1272
|
+
url: toPathString(localVarUrlObj),
|
|
1273
|
+
options: localVarRequestOptions,
|
|
1274
|
+
};
|
|
1275
|
+
}),
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
* @param {*} [options] Override http request option.
|
|
1279
|
+
* @throws {RequiredError}
|
|
1280
|
+
*/
|
|
1281
|
+
auth2UserServiceAuthGetAccountInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1282
|
+
const localVarPath = `/authed/v1/account-info`;
|
|
1283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1285
|
+
let baseOptions;
|
|
1286
|
+
if (configuration) {
|
|
1287
|
+
baseOptions = configuration.baseOptions;
|
|
1288
|
+
}
|
|
1289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1290
|
+
const localVarHeaderParameter = {};
|
|
1291
|
+
const localVarQueryParameter = {};
|
|
1292
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1293
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1294
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1295
|
+
return {
|
|
1296
|
+
url: toPathString(localVarUrlObj),
|
|
1297
|
+
options: localVarRequestOptions,
|
|
1298
|
+
};
|
|
1299
|
+
}),
|
|
1300
|
+
/**
|
|
1301
|
+
*
|
|
1302
|
+
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @throws {RequiredError}
|
|
1304
|
+
*/
|
|
1305
|
+
auth2UserServiceAuthGetSession: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1306
|
+
const localVarPath = `/authed/v1/get-session`;
|
|
1307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1309
|
+
let baseOptions;
|
|
1310
|
+
if (configuration) {
|
|
1311
|
+
baseOptions = configuration.baseOptions;
|
|
1312
|
+
}
|
|
1313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1314
|
+
const localVarHeaderParameter = {};
|
|
1315
|
+
const localVarQueryParameter = {};
|
|
1316
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1317
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1318
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1319
|
+
return {
|
|
1320
|
+
url: toPathString(localVarUrlObj),
|
|
1321
|
+
options: localVarRequestOptions,
|
|
1322
|
+
};
|
|
1323
|
+
}),
|
|
1324
|
+
/**
|
|
1325
|
+
* ============ 账号关联 ============
|
|
1326
|
+
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
*/
|
|
1330
|
+
auth2UserServiceAuthLinkSocial: (authLinkSocialRequest_1, ...args_1) => __awaiter(this, [authLinkSocialRequest_1, ...args_1], void 0, function* (authLinkSocialRequest, options = {}) {
|
|
1331
|
+
// verify required parameter 'authLinkSocialRequest' is not null or undefined
|
|
1332
|
+
assertParamExists('auth2UserServiceAuthLinkSocial', 'authLinkSocialRequest', authLinkSocialRequest);
|
|
1333
|
+
const localVarPath = `/authed/v1/link-social`;
|
|
1334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1335
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1336
|
+
let baseOptions;
|
|
1337
|
+
if (configuration) {
|
|
1338
|
+
baseOptions = configuration.baseOptions;
|
|
1339
|
+
}
|
|
1340
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1341
|
+
const localVarHeaderParameter = {};
|
|
1342
|
+
const localVarQueryParameter = {};
|
|
1343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1344
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1345
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1346
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1347
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authLinkSocialRequest, localVarRequestOptions, configuration);
|
|
1348
|
+
return {
|
|
1349
|
+
url: toPathString(localVarUrlObj),
|
|
1350
|
+
options: localVarRequestOptions,
|
|
1351
|
+
};
|
|
1352
|
+
}),
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
*/
|
|
1358
|
+
auth2UserServiceAuthListAccounts: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1359
|
+
const localVarPath = `/authed/v1/list-accounts`;
|
|
1360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1361
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1362
|
+
let baseOptions;
|
|
1363
|
+
if (configuration) {
|
|
1364
|
+
baseOptions = configuration.baseOptions;
|
|
1365
|
+
}
|
|
1366
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1367
|
+
const localVarHeaderParameter = {};
|
|
1368
|
+
const localVarQueryParameter = {};
|
|
1369
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1370
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1371
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1372
|
+
return {
|
|
1373
|
+
url: toPathString(localVarUrlObj),
|
|
1374
|
+
options: localVarRequestOptions,
|
|
1375
|
+
};
|
|
1376
|
+
}),
|
|
1377
|
+
/**
|
|
1378
|
+
* ============ 会话管理 ============
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
auth2UserServiceAuthListSessions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1383
|
+
const localVarPath = `/authed/v1/list-sessions`;
|
|
1384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1386
|
+
let baseOptions;
|
|
1387
|
+
if (configuration) {
|
|
1388
|
+
baseOptions = configuration.baseOptions;
|
|
1389
|
+
}
|
|
1390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1391
|
+
const localVarHeaderParameter = {};
|
|
1392
|
+
const localVarQueryParameter = {};
|
|
1393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1395
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1396
|
+
return {
|
|
1397
|
+
url: toPathString(localVarUrlObj),
|
|
1398
|
+
options: localVarRequestOptions,
|
|
1399
|
+
};
|
|
1400
|
+
}),
|
|
1401
|
+
/**
|
|
1402
|
+
* ============ Token 管理 ============
|
|
1403
|
+
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
1404
|
+
* @param {*} [options] Override http request option.
|
|
1405
|
+
* @throws {RequiredError}
|
|
1406
|
+
*/
|
|
1407
|
+
auth2UserServiceAuthRefreshToken: (authRefreshTokenRequest_1, ...args_1) => __awaiter(this, [authRefreshTokenRequest_1, ...args_1], void 0, function* (authRefreshTokenRequest, options = {}) {
|
|
1408
|
+
// verify required parameter 'authRefreshTokenRequest' is not null or undefined
|
|
1409
|
+
assertParamExists('auth2UserServiceAuthRefreshToken', 'authRefreshTokenRequest', authRefreshTokenRequest);
|
|
1410
|
+
const localVarPath = `/authed/v1/refresh-token`;
|
|
1411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1413
|
+
let baseOptions;
|
|
1414
|
+
if (configuration) {
|
|
1415
|
+
baseOptions = configuration.baseOptions;
|
|
1416
|
+
}
|
|
1417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1418
|
+
const localVarHeaderParameter = {};
|
|
1419
|
+
const localVarQueryParameter = {};
|
|
1420
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1423
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1424
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authRefreshTokenRequest, localVarRequestOptions, configuration);
|
|
1425
|
+
return {
|
|
1426
|
+
url: toPathString(localVarUrlObj),
|
|
1427
|
+
options: localVarRequestOptions,
|
|
1428
|
+
};
|
|
1429
|
+
}),
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
1433
|
+
* @param {*} [options] Override http request option.
|
|
1434
|
+
* @throws {RequiredError}
|
|
1435
|
+
*/
|
|
1436
|
+
auth2UserServiceAuthRequestPasswordReset: (authRequestPasswordResetRequest_1, ...args_1) => __awaiter(this, [authRequestPasswordResetRequest_1, ...args_1], void 0, function* (authRequestPasswordResetRequest, options = {}) {
|
|
1437
|
+
// verify required parameter 'authRequestPasswordResetRequest' is not null or undefined
|
|
1438
|
+
assertParamExists('auth2UserServiceAuthRequestPasswordReset', 'authRequestPasswordResetRequest', authRequestPasswordResetRequest);
|
|
1439
|
+
const localVarPath = `/authed/v1/request-password-reset`;
|
|
1440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1441
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1442
|
+
let baseOptions;
|
|
1443
|
+
if (configuration) {
|
|
1444
|
+
baseOptions = configuration.baseOptions;
|
|
1445
|
+
}
|
|
1446
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1447
|
+
const localVarHeaderParameter = {};
|
|
1448
|
+
const localVarQueryParameter = {};
|
|
1449
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1450
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1451
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1452
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authRequestPasswordResetRequest, localVarRequestOptions, configuration);
|
|
1454
|
+
return {
|
|
1455
|
+
url: toPathString(localVarUrlObj),
|
|
1456
|
+
options: localVarRequestOptions,
|
|
1457
|
+
};
|
|
1458
|
+
}),
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
auth2UserServiceAuthResetPassword: (authResetPasswordRequest_1, ...args_1) => __awaiter(this, [authResetPasswordRequest_1, ...args_1], void 0, function* (authResetPasswordRequest, options = {}) {
|
|
1466
|
+
// verify required parameter 'authResetPasswordRequest' is not null or undefined
|
|
1467
|
+
assertParamExists('auth2UserServiceAuthResetPassword', 'authResetPasswordRequest', authResetPasswordRequest);
|
|
1468
|
+
const localVarPath = `/authed/v1/reset-password`;
|
|
1469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1471
|
+
let baseOptions;
|
|
1472
|
+
if (configuration) {
|
|
1473
|
+
baseOptions = configuration.baseOptions;
|
|
1474
|
+
}
|
|
1475
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1476
|
+
const localVarHeaderParameter = {};
|
|
1477
|
+
const localVarQueryParameter = {};
|
|
1478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1479
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1480
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1481
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1482
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authResetPasswordRequest, localVarRequestOptions, configuration);
|
|
1483
|
+
return {
|
|
1484
|
+
url: toPathString(localVarUrlObj),
|
|
1485
|
+
options: localVarRequestOptions,
|
|
1486
|
+
};
|
|
1487
|
+
}),
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @param {object} body
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
auth2UserServiceAuthRevokeOtherSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1495
|
+
// verify required parameter 'body' is not null or undefined
|
|
1496
|
+
assertParamExists('auth2UserServiceAuthRevokeOtherSessions', 'body', body);
|
|
1497
|
+
const localVarPath = `/authed/v1/revoke-other-sessions`;
|
|
1498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1500
|
+
let baseOptions;
|
|
1501
|
+
if (configuration) {
|
|
1502
|
+
baseOptions = configuration.baseOptions;
|
|
1503
|
+
}
|
|
1504
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1505
|
+
const localVarHeaderParameter = {};
|
|
1506
|
+
const localVarQueryParameter = {};
|
|
1507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1508
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1510
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1511
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1512
|
+
return {
|
|
1513
|
+
url: toPathString(localVarUrlObj),
|
|
1514
|
+
options: localVarRequestOptions,
|
|
1515
|
+
};
|
|
1516
|
+
}),
|
|
1517
|
+
/**
|
|
1518
|
+
*
|
|
1519
|
+
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
1520
|
+
* @param {*} [options] Override http request option.
|
|
1521
|
+
* @throws {RequiredError}
|
|
1522
|
+
*/
|
|
1523
|
+
auth2UserServiceAuthRevokeSession: (authRevokeSessionRequest_1, ...args_1) => __awaiter(this, [authRevokeSessionRequest_1, ...args_1], void 0, function* (authRevokeSessionRequest, options = {}) {
|
|
1524
|
+
// verify required parameter 'authRevokeSessionRequest' is not null or undefined
|
|
1525
|
+
assertParamExists('auth2UserServiceAuthRevokeSession', 'authRevokeSessionRequest', authRevokeSessionRequest);
|
|
1526
|
+
const localVarPath = `/authed/v1/revoke-session`;
|
|
1527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1528
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1529
|
+
let baseOptions;
|
|
1530
|
+
if (configuration) {
|
|
1531
|
+
baseOptions = configuration.baseOptions;
|
|
1532
|
+
}
|
|
1533
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1534
|
+
const localVarHeaderParameter = {};
|
|
1535
|
+
const localVarQueryParameter = {};
|
|
1536
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1540
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authRevokeSessionRequest, localVarRequestOptions, configuration);
|
|
1541
|
+
return {
|
|
1542
|
+
url: toPathString(localVarUrlObj),
|
|
1543
|
+
options: localVarRequestOptions,
|
|
1544
|
+
};
|
|
1545
|
+
}),
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* @param {object} body
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
*/
|
|
1552
|
+
auth2UserServiceAuthRevokeSessions: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1553
|
+
// verify required parameter 'body' is not null or undefined
|
|
1554
|
+
assertParamExists('auth2UserServiceAuthRevokeSessions', 'body', body);
|
|
1555
|
+
const localVarPath = `/authed/v1/revoke-sessions`;
|
|
1556
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1557
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1558
|
+
let baseOptions;
|
|
1559
|
+
if (configuration) {
|
|
1560
|
+
baseOptions = configuration.baseOptions;
|
|
1561
|
+
}
|
|
1562
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1563
|
+
const localVarHeaderParameter = {};
|
|
1564
|
+
const localVarQueryParameter = {};
|
|
1565
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1566
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1567
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1568
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1569
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1570
|
+
return {
|
|
1571
|
+
url: toPathString(localVarUrlObj),
|
|
1572
|
+
options: localVarRequestOptions,
|
|
1573
|
+
};
|
|
1574
|
+
}),
|
|
1575
|
+
/**
|
|
1576
|
+
* ============ 邮箱验证 ============
|
|
1577
|
+
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
1578
|
+
* @param {*} [options] Override http request option.
|
|
1579
|
+
* @throws {RequiredError}
|
|
1580
|
+
*/
|
|
1581
|
+
auth2UserServiceAuthSendVerificationEmail: (authSendVerificationEmailRequest_1, ...args_1) => __awaiter(this, [authSendVerificationEmailRequest_1, ...args_1], void 0, function* (authSendVerificationEmailRequest, options = {}) {
|
|
1582
|
+
// verify required parameter 'authSendVerificationEmailRequest' is not null or undefined
|
|
1583
|
+
assertParamExists('auth2UserServiceAuthSendVerificationEmail', 'authSendVerificationEmailRequest', authSendVerificationEmailRequest);
|
|
1584
|
+
const localVarPath = `/authed/v1/send-verification-email`;
|
|
1585
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1587
|
+
let baseOptions;
|
|
1588
|
+
if (configuration) {
|
|
1589
|
+
baseOptions = configuration.baseOptions;
|
|
1590
|
+
}
|
|
1591
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1592
|
+
const localVarHeaderParameter = {};
|
|
1593
|
+
const localVarQueryParameter = {};
|
|
1594
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1595
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1598
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authSendVerificationEmailRequest, localVarRequestOptions, configuration);
|
|
1599
|
+
return {
|
|
1600
|
+
url: toPathString(localVarUrlObj),
|
|
1601
|
+
options: localVarRequestOptions,
|
|
1602
|
+
};
|
|
1603
|
+
}),
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
1607
|
+
* @param {*} [options] Override http request option.
|
|
1608
|
+
* @throws {RequiredError}
|
|
1609
|
+
*/
|
|
1610
|
+
auth2UserServiceAuthSignInEmail: (authSignInEmailRequest_1, ...args_1) => __awaiter(this, [authSignInEmailRequest_1, ...args_1], void 0, function* (authSignInEmailRequest, options = {}) {
|
|
1611
|
+
// verify required parameter 'authSignInEmailRequest' is not null or undefined
|
|
1612
|
+
assertParamExists('auth2UserServiceAuthSignInEmail', 'authSignInEmailRequest', authSignInEmailRequest);
|
|
1613
|
+
const localVarPath = `/auth/v1/sign-in/email`;
|
|
1614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1616
|
+
let baseOptions;
|
|
1617
|
+
if (configuration) {
|
|
1618
|
+
baseOptions = configuration.baseOptions;
|
|
1619
|
+
}
|
|
1620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1621
|
+
const localVarHeaderParameter = {};
|
|
1622
|
+
const localVarQueryParameter = {};
|
|
1623
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1624
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1626
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1627
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authSignInEmailRequest, localVarRequestOptions, configuration);
|
|
1628
|
+
return {
|
|
1629
|
+
url: toPathString(localVarUrlObj),
|
|
1630
|
+
options: localVarRequestOptions,
|
|
1631
|
+
};
|
|
1632
|
+
}),
|
|
1633
|
+
/**
|
|
1634
|
+
*
|
|
1635
|
+
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
auth2UserServiceAuthSignInSocial: (authSignInSocialRequest_1, ...args_1) => __awaiter(this, [authSignInSocialRequest_1, ...args_1], void 0, function* (authSignInSocialRequest, options = {}) {
|
|
1640
|
+
// verify required parameter 'authSignInSocialRequest' is not null or undefined
|
|
1641
|
+
assertParamExists('auth2UserServiceAuthSignInSocial', 'authSignInSocialRequest', authSignInSocialRequest);
|
|
1642
|
+
const localVarPath = `/auth/v1/sign-in/social`;
|
|
1643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1645
|
+
let baseOptions;
|
|
1646
|
+
if (configuration) {
|
|
1647
|
+
baseOptions = configuration.baseOptions;
|
|
1648
|
+
}
|
|
1649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1650
|
+
const localVarHeaderParameter = {};
|
|
1651
|
+
const localVarQueryParameter = {};
|
|
1652
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1655
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1656
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authSignInSocialRequest, localVarRequestOptions, configuration);
|
|
1657
|
+
return {
|
|
1658
|
+
url: toPathString(localVarUrlObj),
|
|
1659
|
+
options: localVarRequestOptions,
|
|
1660
|
+
};
|
|
1661
|
+
}),
|
|
1662
|
+
/**
|
|
1663
|
+
*
|
|
1664
|
+
* @param {object} body
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
auth2UserServiceAuthSignOut: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1669
|
+
// verify required parameter 'body' is not null or undefined
|
|
1670
|
+
assertParamExists('auth2UserServiceAuthSignOut', 'body', body);
|
|
1671
|
+
const localVarPath = `/authed/v1/sign-out`;
|
|
1672
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1673
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1674
|
+
let baseOptions;
|
|
1675
|
+
if (configuration) {
|
|
1676
|
+
baseOptions = configuration.baseOptions;
|
|
1677
|
+
}
|
|
1678
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1679
|
+
const localVarHeaderParameter = {};
|
|
1680
|
+
const localVarQueryParameter = {};
|
|
1681
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1685
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1686
|
+
return {
|
|
1687
|
+
url: toPathString(localVarUrlObj),
|
|
1688
|
+
options: localVarRequestOptions,
|
|
1689
|
+
};
|
|
1690
|
+
}),
|
|
1691
|
+
/**
|
|
1692
|
+
* ============ 认证 ============
|
|
1693
|
+
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
1694
|
+
* @param {*} [options] Override http request option.
|
|
1695
|
+
* @throws {RequiredError}
|
|
1696
|
+
*/
|
|
1697
|
+
auth2UserServiceAuthSignUpEmail: (authSignUpEmailRequest_1, ...args_1) => __awaiter(this, [authSignUpEmailRequest_1, ...args_1], void 0, function* (authSignUpEmailRequest, options = {}) {
|
|
1698
|
+
// verify required parameter 'authSignUpEmailRequest' is not null or undefined
|
|
1699
|
+
assertParamExists('auth2UserServiceAuthSignUpEmail', 'authSignUpEmailRequest', authSignUpEmailRequest);
|
|
1700
|
+
const localVarPath = `/auth/v1/sign-up/email`;
|
|
1701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1702
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1703
|
+
let baseOptions;
|
|
1704
|
+
if (configuration) {
|
|
1705
|
+
baseOptions = configuration.baseOptions;
|
|
1706
|
+
}
|
|
1707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1708
|
+
const localVarHeaderParameter = {};
|
|
1709
|
+
const localVarQueryParameter = {};
|
|
1710
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1713
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1714
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authSignUpEmailRequest, localVarRequestOptions, configuration);
|
|
1715
|
+
return {
|
|
1716
|
+
url: toPathString(localVarUrlObj),
|
|
1717
|
+
options: localVarRequestOptions,
|
|
1718
|
+
};
|
|
1719
|
+
}),
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
1723
|
+
* @param {*} [options] Override http request option.
|
|
1724
|
+
* @throws {RequiredError}
|
|
1725
|
+
*/
|
|
1726
|
+
auth2UserServiceAuthUnlinkAccount: (authUnlinkAccountRequest_1, ...args_1) => __awaiter(this, [authUnlinkAccountRequest_1, ...args_1], void 0, function* (authUnlinkAccountRequest, options = {}) {
|
|
1727
|
+
// verify required parameter 'authUnlinkAccountRequest' is not null or undefined
|
|
1728
|
+
assertParamExists('auth2UserServiceAuthUnlinkAccount', 'authUnlinkAccountRequest', authUnlinkAccountRequest);
|
|
1729
|
+
const localVarPath = `/authed/v1/unlink-account`;
|
|
1730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1731
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1732
|
+
let baseOptions;
|
|
1733
|
+
if (configuration) {
|
|
1734
|
+
baseOptions = configuration.baseOptions;
|
|
1735
|
+
}
|
|
1736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1737
|
+
const localVarHeaderParameter = {};
|
|
1738
|
+
const localVarQueryParameter = {};
|
|
1739
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1740
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1742
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1743
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authUnlinkAccountRequest, localVarRequestOptions, configuration);
|
|
1744
|
+
return {
|
|
1745
|
+
url: toPathString(localVarUrlObj),
|
|
1746
|
+
options: localVarRequestOptions,
|
|
1747
|
+
};
|
|
1748
|
+
}),
|
|
1749
|
+
/**
|
|
1750
|
+
* ============ 用户管理 ============
|
|
1751
|
+
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
*/
|
|
1755
|
+
auth2UserServiceAuthUpdateUser: (authUpdateUserRequest_1, ...args_1) => __awaiter(this, [authUpdateUserRequest_1, ...args_1], void 0, function* (authUpdateUserRequest, options = {}) {
|
|
1756
|
+
// verify required parameter 'authUpdateUserRequest' is not null or undefined
|
|
1757
|
+
assertParamExists('auth2UserServiceAuthUpdateUser', 'authUpdateUserRequest', authUpdateUserRequest);
|
|
1758
|
+
const localVarPath = `/authed/v1/update-user`;
|
|
1759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1760
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1761
|
+
let baseOptions;
|
|
1762
|
+
if (configuration) {
|
|
1763
|
+
baseOptions = configuration.baseOptions;
|
|
1764
|
+
}
|
|
1765
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1766
|
+
const localVarHeaderParameter = {};
|
|
1767
|
+
const localVarQueryParameter = {};
|
|
1768
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1769
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1770
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1771
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1772
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authUpdateUserRequest, localVarRequestOptions, configuration);
|
|
1773
|
+
return {
|
|
1774
|
+
url: toPathString(localVarUrlObj),
|
|
1775
|
+
options: localVarRequestOptions,
|
|
1776
|
+
};
|
|
1777
|
+
}),
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @param {string} [email]
|
|
1781
|
+
* @param {string} [authCode]
|
|
1782
|
+
* @param {string} [callbackUrl]
|
|
1783
|
+
* @param {*} [options] Override http request option.
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
*/
|
|
1786
|
+
auth2UserServiceAuthVerifyEmail: (email_1, authCode_1, callbackUrl_1, ...args_1) => __awaiter(this, [email_1, authCode_1, callbackUrl_1, ...args_1], void 0, function* (email, authCode, callbackUrl, options = {}) {
|
|
1787
|
+
const localVarPath = `/authed/v1/verify-email`;
|
|
1788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1790
|
+
let baseOptions;
|
|
1791
|
+
if (configuration) {
|
|
1792
|
+
baseOptions = configuration.baseOptions;
|
|
1793
|
+
}
|
|
1794
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1795
|
+
const localVarHeaderParameter = {};
|
|
1796
|
+
const localVarQueryParameter = {};
|
|
1797
|
+
if (email !== undefined) {
|
|
1798
|
+
localVarQueryParameter['email'] = email;
|
|
1799
|
+
}
|
|
1800
|
+
if (authCode !== undefined) {
|
|
1801
|
+
localVarQueryParameter['auth_code'] = authCode;
|
|
1802
|
+
}
|
|
1803
|
+
if (callbackUrl !== undefined) {
|
|
1804
|
+
localVarQueryParameter['callback_url'] = callbackUrl;
|
|
1805
|
+
}
|
|
1806
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1807
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1808
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1809
|
+
return {
|
|
1810
|
+
url: toPathString(localVarUrlObj),
|
|
1811
|
+
options: localVarRequestOptions,
|
|
1812
|
+
};
|
|
1813
|
+
}),
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
/**
|
|
1817
|
+
* Auth2UserServiceApi - functional programming interface
|
|
1818
|
+
*/
|
|
1819
|
+
export const Auth2UserServiceApiFp = function (configuration) {
|
|
1820
|
+
const localVarAxiosParamCreator = Auth2UserServiceApiAxiosParamCreator(configuration);
|
|
1821
|
+
return {
|
|
1822
|
+
/**
|
|
1823
|
+
*
|
|
1824
|
+
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
1825
|
+
* @param {*} [options] Override http request option.
|
|
1826
|
+
* @throws {RequiredError}
|
|
1827
|
+
*/
|
|
1828
|
+
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
1829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1830
|
+
var _a, _b, _c;
|
|
1831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options);
|
|
1832
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1833
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1834
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1835
|
+
});
|
|
1836
|
+
},
|
|
1837
|
+
/**
|
|
1838
|
+
* ============ 密码管理 ============
|
|
1839
|
+
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
1840
|
+
* @param {*} [options] Override http request option.
|
|
1841
|
+
* @throws {RequiredError}
|
|
1842
|
+
*/
|
|
1843
|
+
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
1844
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1845
|
+
var _a, _b, _c;
|
|
1846
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options);
|
|
1847
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1848
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1849
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1850
|
+
});
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
1855
|
+
* @param {*} [options] Override http request option.
|
|
1856
|
+
* @throws {RequiredError}
|
|
1857
|
+
*/
|
|
1858
|
+
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
1859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1860
|
+
var _a, _b, _c;
|
|
1861
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options);
|
|
1862
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1863
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthDeleteUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1864
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1865
|
+
});
|
|
1866
|
+
},
|
|
1867
|
+
/**
|
|
1868
|
+
*
|
|
1869
|
+
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
*/
|
|
1873
|
+
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
1874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
+
var _a, _b, _c;
|
|
1876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options);
|
|
1877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1878
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccessToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1879
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1880
|
+
});
|
|
1881
|
+
},
|
|
1882
|
+
/**
|
|
1883
|
+
*
|
|
1884
|
+
* @param {*} [options] Override http request option.
|
|
1885
|
+
* @throws {RequiredError}
|
|
1886
|
+
*/
|
|
1887
|
+
auth2UserServiceAuthGetAccountInfo(options) {
|
|
1888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1889
|
+
var _a, _b, _c;
|
|
1890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetAccountInfo(options);
|
|
1891
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1892
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetAccountInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1893
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1894
|
+
});
|
|
1895
|
+
},
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @param {*} [options] Override http request option.
|
|
1899
|
+
* @throws {RequiredError}
|
|
1900
|
+
*/
|
|
1901
|
+
auth2UserServiceAuthGetSession(options) {
|
|
1902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1903
|
+
var _a, _b, _c;
|
|
1904
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthGetSession(options);
|
|
1905
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1906
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthGetSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1907
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1908
|
+
});
|
|
1909
|
+
},
|
|
1910
|
+
/**
|
|
1911
|
+
* ============ 账号关联 ============
|
|
1912
|
+
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
1913
|
+
* @param {*} [options] Override http request option.
|
|
1914
|
+
* @throws {RequiredError}
|
|
1915
|
+
*/
|
|
1916
|
+
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
1917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1918
|
+
var _a, _b, _c;
|
|
1919
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options);
|
|
1920
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1921
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthLinkSocial']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1922
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1923
|
+
});
|
|
1924
|
+
},
|
|
1925
|
+
/**
|
|
1926
|
+
*
|
|
1927
|
+
* @param {*} [options] Override http request option.
|
|
1928
|
+
* @throws {RequiredError}
|
|
1929
|
+
*/
|
|
1930
|
+
auth2UserServiceAuthListAccounts(options) {
|
|
1931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1932
|
+
var _a, _b, _c;
|
|
1933
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthListAccounts(options);
|
|
1934
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1935
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1936
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1937
|
+
});
|
|
1938
|
+
},
|
|
1939
|
+
/**
|
|
1940
|
+
* ============ 会话管理 ============
|
|
1941
|
+
* @param {*} [options] Override http request option.
|
|
1942
|
+
* @throws {RequiredError}
|
|
1943
|
+
*/
|
|
1944
|
+
auth2UserServiceAuthListSessions(options) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
|
+
var _a, _b, _c;
|
|
1947
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthListSessions(options);
|
|
1948
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1949
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1950
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1951
|
+
});
|
|
1952
|
+
},
|
|
1953
|
+
/**
|
|
1954
|
+
* ============ Token 管理 ============
|
|
1955
|
+
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
*/
|
|
1959
|
+
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
1960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1961
|
+
var _a, _b, _c;
|
|
1962
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options);
|
|
1963
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1964
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRefreshToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1965
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1966
|
+
});
|
|
1967
|
+
},
|
|
1968
|
+
/**
|
|
1969
|
+
*
|
|
1970
|
+
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
1971
|
+
* @param {*} [options] Override http request option.
|
|
1972
|
+
* @throws {RequiredError}
|
|
1973
|
+
*/
|
|
1974
|
+
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
1975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1976
|
+
var _a, _b, _c;
|
|
1977
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options);
|
|
1978
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1979
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRequestPasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1980
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1981
|
+
});
|
|
1982
|
+
},
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
*/
|
|
1989
|
+
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
1990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1991
|
+
var _a, _b, _c;
|
|
1992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options);
|
|
1993
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1994
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthResetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1995
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1996
|
+
});
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @param {object} body
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
*/
|
|
2004
|
+
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2006
|
+
var _a, _b, _c;
|
|
2007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeOtherSessions(body, options);
|
|
2008
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2009
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeOtherSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2010
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2011
|
+
});
|
|
2012
|
+
},
|
|
2013
|
+
/**
|
|
2014
|
+
*
|
|
2015
|
+
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2016
|
+
* @param {*} [options] Override http request option.
|
|
2017
|
+
* @throws {RequiredError}
|
|
2018
|
+
*/
|
|
2019
|
+
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2021
|
+
var _a, _b, _c;
|
|
2022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options);
|
|
2023
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2024
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2025
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2026
|
+
});
|
|
2027
|
+
},
|
|
2028
|
+
/**
|
|
2029
|
+
*
|
|
2030
|
+
* @param {object} body
|
|
2031
|
+
* @param {*} [options] Override http request option.
|
|
2032
|
+
* @throws {RequiredError}
|
|
2033
|
+
*/
|
|
2034
|
+
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2035
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2036
|
+
var _a, _b, _c;
|
|
2037
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthRevokeSessions(body, options);
|
|
2038
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2039
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthRevokeSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2040
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2041
|
+
});
|
|
2042
|
+
},
|
|
2043
|
+
/**
|
|
2044
|
+
* ============ 邮箱验证 ============
|
|
2045
|
+
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2046
|
+
* @param {*} [options] Override http request option.
|
|
2047
|
+
* @throws {RequiredError}
|
|
2048
|
+
*/
|
|
2049
|
+
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2051
|
+
var _a, _b, _c;
|
|
2052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options);
|
|
2053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2054
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSendVerificationEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2055
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2056
|
+
});
|
|
2057
|
+
},
|
|
2058
|
+
/**
|
|
2059
|
+
*
|
|
2060
|
+
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2066
|
+
var _a, _b, _c;
|
|
2067
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options);
|
|
2068
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2069
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2071
|
+
});
|
|
2072
|
+
},
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2076
|
+
* @param {*} [options] Override http request option.
|
|
2077
|
+
* @throws {RequiredError}
|
|
2078
|
+
*/
|
|
2079
|
+
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
+
var _a, _b, _c;
|
|
2082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options);
|
|
2083
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2084
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignInSocial']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2085
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2086
|
+
});
|
|
2087
|
+
},
|
|
2088
|
+
/**
|
|
2089
|
+
*
|
|
2090
|
+
* @param {object} body
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
*/
|
|
2094
|
+
auth2UserServiceAuthSignOut(body, options) {
|
|
2095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2096
|
+
var _a, _b, _c;
|
|
2097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignOut(body, options);
|
|
2098
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2099
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignOut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2100
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2101
|
+
});
|
|
2102
|
+
},
|
|
2103
|
+
/**
|
|
2104
|
+
* ============ 认证 ============
|
|
2105
|
+
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2111
|
+
var _a, _b, _c;
|
|
2112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options);
|
|
2113
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2114
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthSignUpEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2115
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2116
|
+
});
|
|
2117
|
+
},
|
|
2118
|
+
/**
|
|
2119
|
+
*
|
|
2120
|
+
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
*/
|
|
2124
|
+
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2126
|
+
var _a, _b, _c;
|
|
2127
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options);
|
|
2128
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2129
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUnlinkAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2130
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2131
|
+
});
|
|
2132
|
+
},
|
|
2133
|
+
/**
|
|
2134
|
+
* ============ 用户管理 ============
|
|
2135
|
+
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2136
|
+
* @param {*} [options] Override http request option.
|
|
2137
|
+
* @throws {RequiredError}
|
|
2138
|
+
*/
|
|
2139
|
+
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2141
|
+
var _a, _b, _c;
|
|
2142
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options);
|
|
2143
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2144
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthUpdateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2145
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2146
|
+
});
|
|
2147
|
+
},
|
|
2148
|
+
/**
|
|
2149
|
+
*
|
|
2150
|
+
* @param {string} [email]
|
|
2151
|
+
* @param {string} [authCode]
|
|
2152
|
+
* @param {string} [callbackUrl]
|
|
2153
|
+
* @param {*} [options] Override http request option.
|
|
2154
|
+
* @throws {RequiredError}
|
|
2155
|
+
*/
|
|
2156
|
+
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2158
|
+
var _a, _b, _c;
|
|
2159
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options);
|
|
2160
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2161
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthVerifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2162
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2163
|
+
});
|
|
2164
|
+
},
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
/**
|
|
2168
|
+
* Auth2UserServiceApi - factory interface
|
|
2169
|
+
*/
|
|
2170
|
+
export const Auth2UserServiceApiFactory = function (configuration, basePath, axios) {
|
|
2171
|
+
const localVarFp = Auth2UserServiceApiFp(configuration);
|
|
2172
|
+
return {
|
|
2173
|
+
/**
|
|
2174
|
+
*
|
|
2175
|
+
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
2176
|
+
* @param {*} [options] Override http request option.
|
|
2177
|
+
* @throws {RequiredError}
|
|
2178
|
+
*/
|
|
2179
|
+
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
2180
|
+
return localVarFp.auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(axios, basePath));
|
|
2181
|
+
},
|
|
2182
|
+
/**
|
|
2183
|
+
* ============ 密码管理 ============
|
|
2184
|
+
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
2185
|
+
* @param {*} [options] Override http request option.
|
|
2186
|
+
* @throws {RequiredError}
|
|
2187
|
+
*/
|
|
2188
|
+
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
2189
|
+
return localVarFp.auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(axios, basePath));
|
|
2190
|
+
},
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
2193
|
+
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
2194
|
+
* @param {*} [options] Override http request option.
|
|
2195
|
+
* @throws {RequiredError}
|
|
2196
|
+
*/
|
|
2197
|
+
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
2198
|
+
return localVarFp.auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(axios, basePath));
|
|
2199
|
+
},
|
|
2200
|
+
/**
|
|
2201
|
+
*
|
|
2202
|
+
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
2207
|
+
return localVarFp.auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(axios, basePath));
|
|
2208
|
+
},
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
auth2UserServiceAuthGetAccountInfo(options) {
|
|
2215
|
+
return localVarFp.auth2UserServiceAuthGetAccountInfo(options).then((request) => request(axios, basePath));
|
|
2216
|
+
},
|
|
2217
|
+
/**
|
|
2218
|
+
*
|
|
2219
|
+
* @param {*} [options] Override http request option.
|
|
2220
|
+
* @throws {RequiredError}
|
|
2221
|
+
*/
|
|
2222
|
+
auth2UserServiceAuthGetSession(options) {
|
|
2223
|
+
return localVarFp.auth2UserServiceAuthGetSession(options).then((request) => request(axios, basePath));
|
|
2224
|
+
},
|
|
2225
|
+
/**
|
|
2226
|
+
* ============ 账号关联 ============
|
|
2227
|
+
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
2228
|
+
* @param {*} [options] Override http request option.
|
|
2229
|
+
* @throws {RequiredError}
|
|
2230
|
+
*/
|
|
2231
|
+
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
2232
|
+
return localVarFp.auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(axios, basePath));
|
|
2233
|
+
},
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @param {*} [options] Override http request option.
|
|
2237
|
+
* @throws {RequiredError}
|
|
2238
|
+
*/
|
|
2239
|
+
auth2UserServiceAuthListAccounts(options) {
|
|
2240
|
+
return localVarFp.auth2UserServiceAuthListAccounts(options).then((request) => request(axios, basePath));
|
|
2241
|
+
},
|
|
2242
|
+
/**
|
|
2243
|
+
* ============ 会话管理 ============
|
|
2244
|
+
* @param {*} [options] Override http request option.
|
|
2245
|
+
* @throws {RequiredError}
|
|
2246
|
+
*/
|
|
2247
|
+
auth2UserServiceAuthListSessions(options) {
|
|
2248
|
+
return localVarFp.auth2UserServiceAuthListSessions(options).then((request) => request(axios, basePath));
|
|
2249
|
+
},
|
|
2250
|
+
/**
|
|
2251
|
+
* ============ Token 管理 ============
|
|
2252
|
+
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
2253
|
+
* @param {*} [options] Override http request option.
|
|
2254
|
+
* @throws {RequiredError}
|
|
2255
|
+
*/
|
|
2256
|
+
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
2257
|
+
return localVarFp.auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
2258
|
+
},
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
2262
|
+
* @param {*} [options] Override http request option.
|
|
2263
|
+
* @throws {RequiredError}
|
|
2264
|
+
*/
|
|
2265
|
+
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
2266
|
+
return localVarFp.auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(axios, basePath));
|
|
2267
|
+
},
|
|
2268
|
+
/**
|
|
2269
|
+
*
|
|
2270
|
+
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
2271
|
+
* @param {*} [options] Override http request option.
|
|
2272
|
+
* @throws {RequiredError}
|
|
2273
|
+
*/
|
|
2274
|
+
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
2275
|
+
return localVarFp.auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
2276
|
+
},
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @param {object} body
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2284
|
+
return localVarFp.auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(axios, basePath));
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
*
|
|
2288
|
+
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
*/
|
|
2292
|
+
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2293
|
+
return localVarFp.auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(axios, basePath));
|
|
2294
|
+
},
|
|
2295
|
+
/**
|
|
2296
|
+
*
|
|
2297
|
+
* @param {object} body
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
*/
|
|
2301
|
+
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2302
|
+
return localVarFp.auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(axios, basePath));
|
|
2303
|
+
},
|
|
2304
|
+
/**
|
|
2305
|
+
* ============ 邮箱验证 ============
|
|
2306
|
+
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
*/
|
|
2310
|
+
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2311
|
+
return localVarFp.auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(axios, basePath));
|
|
2312
|
+
},
|
|
2313
|
+
/**
|
|
2314
|
+
*
|
|
2315
|
+
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
*/
|
|
2319
|
+
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2320
|
+
return localVarFp.auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(axios, basePath));
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
*
|
|
2324
|
+
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2325
|
+
* @param {*} [options] Override http request option.
|
|
2326
|
+
* @throws {RequiredError}
|
|
2327
|
+
*/
|
|
2328
|
+
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2329
|
+
return localVarFp.auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(axios, basePath));
|
|
2330
|
+
},
|
|
2331
|
+
/**
|
|
2332
|
+
*
|
|
2333
|
+
* @param {object} body
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
*/
|
|
2337
|
+
auth2UserServiceAuthSignOut(body, options) {
|
|
2338
|
+
return localVarFp.auth2UserServiceAuthSignOut(body, options).then((request) => request(axios, basePath));
|
|
2339
|
+
},
|
|
2340
|
+
/**
|
|
2341
|
+
* ============ 认证 ============
|
|
2342
|
+
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2343
|
+
* @param {*} [options] Override http request option.
|
|
2344
|
+
* @throws {RequiredError}
|
|
2345
|
+
*/
|
|
2346
|
+
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2347
|
+
return localVarFp.auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(axios, basePath));
|
|
2348
|
+
},
|
|
2349
|
+
/**
|
|
2350
|
+
*
|
|
2351
|
+
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2352
|
+
* @param {*} [options] Override http request option.
|
|
2353
|
+
* @throws {RequiredError}
|
|
2354
|
+
*/
|
|
2355
|
+
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2356
|
+
return localVarFp.auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(axios, basePath));
|
|
2357
|
+
},
|
|
2358
|
+
/**
|
|
2359
|
+
* ============ 用户管理 ============
|
|
2360
|
+
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
*/
|
|
2364
|
+
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2365
|
+
return localVarFp.auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(axios, basePath));
|
|
2366
|
+
},
|
|
2367
|
+
/**
|
|
2368
|
+
*
|
|
2369
|
+
* @param {string} [email]
|
|
2370
|
+
* @param {string} [authCode]
|
|
2371
|
+
* @param {string} [callbackUrl]
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2376
|
+
return localVarFp.auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(axios, basePath));
|
|
2377
|
+
},
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
/**
|
|
2381
|
+
* Auth2UserServiceApi - object-oriented interface
|
|
2382
|
+
*/
|
|
2383
|
+
export class Auth2UserServiceApi extends BaseAPI {
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @param {AuthChangeEmailRequest} authChangeEmailRequest
|
|
2387
|
+
* @param {*} [options] Override http request option.
|
|
2388
|
+
* @throws {RequiredError}
|
|
2389
|
+
*/
|
|
2390
|
+
auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options) {
|
|
2391
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthChangeEmail(authChangeEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2392
|
+
}
|
|
2393
|
+
/**
|
|
2394
|
+
* ============ 密码管理 ============
|
|
2395
|
+
* @param {AuthChangePasswordRequest} authChangePasswordRequest
|
|
2396
|
+
* @param {*} [options] Override http request option.
|
|
2397
|
+
* @throws {RequiredError}
|
|
2398
|
+
*/
|
|
2399
|
+
auth2UserServiceAuthChangePassword(authChangePasswordRequest, options) {
|
|
2400
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthChangePassword(authChangePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
*
|
|
2404
|
+
* @param {AuthDeleteUserRequest} authDeleteUserRequest
|
|
2405
|
+
* @param {*} [options] Override http request option.
|
|
2406
|
+
* @throws {RequiredError}
|
|
2407
|
+
*/
|
|
2408
|
+
auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options) {
|
|
2409
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthDeleteUser(authDeleteUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
*
|
|
2413
|
+
* @param {AuthGetAccessTokenRequest} authGetAccessTokenRequest
|
|
2414
|
+
* @param {*} [options] Override http request option.
|
|
2415
|
+
* @throws {RequiredError}
|
|
2416
|
+
*/
|
|
2417
|
+
auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options) {
|
|
2418
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetAccessToken(authGetAccessTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2419
|
+
}
|
|
2420
|
+
/**
|
|
2421
|
+
*
|
|
2422
|
+
* @param {*} [options] Override http request option.
|
|
2423
|
+
* @throws {RequiredError}
|
|
2424
|
+
*/
|
|
2425
|
+
auth2UserServiceAuthGetAccountInfo(options) {
|
|
2426
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetAccountInfo(options).then((request) => request(this.axios, this.basePath));
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
*
|
|
2430
|
+
* @param {*} [options] Override http request option.
|
|
2431
|
+
* @throws {RequiredError}
|
|
2432
|
+
*/
|
|
2433
|
+
auth2UserServiceAuthGetSession(options) {
|
|
2434
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthGetSession(options).then((request) => request(this.axios, this.basePath));
|
|
2435
|
+
}
|
|
2436
|
+
/**
|
|
2437
|
+
* ============ 账号关联 ============
|
|
2438
|
+
* @param {AuthLinkSocialRequest} authLinkSocialRequest
|
|
2439
|
+
* @param {*} [options] Override http request option.
|
|
2440
|
+
* @throws {RequiredError}
|
|
2441
|
+
*/
|
|
2442
|
+
auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options) {
|
|
2443
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthLinkSocial(authLinkSocialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2444
|
+
}
|
|
2445
|
+
/**
|
|
2446
|
+
*
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
*/
|
|
2450
|
+
auth2UserServiceAuthListAccounts(options) {
|
|
2451
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListAccounts(options).then((request) => request(this.axios, this.basePath));
|
|
2452
|
+
}
|
|
2453
|
+
/**
|
|
2454
|
+
* ============ 会话管理 ============
|
|
2455
|
+
* @param {*} [options] Override http request option.
|
|
2456
|
+
* @throws {RequiredError}
|
|
2457
|
+
*/
|
|
2458
|
+
auth2UserServiceAuthListSessions(options) {
|
|
2459
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListSessions(options).then((request) => request(this.axios, this.basePath));
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* ============ Token 管理 ============
|
|
2463
|
+
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
2464
|
+
* @param {*} [options] Override http request option.
|
|
2465
|
+
* @throws {RequiredError}
|
|
2466
|
+
*/
|
|
2467
|
+
auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options) {
|
|
2468
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2469
|
+
}
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @param {AuthRequestPasswordResetRequest} authRequestPasswordResetRequest
|
|
2473
|
+
* @param {*} [options] Override http request option.
|
|
2474
|
+
* @throws {RequiredError}
|
|
2475
|
+
*/
|
|
2476
|
+
auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options) {
|
|
2477
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRequestPasswordReset(authRequestPasswordResetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @param {AuthResetPasswordRequest} authResetPasswordRequest
|
|
2482
|
+
* @param {*} [options] Override http request option.
|
|
2483
|
+
* @throws {RequiredError}
|
|
2484
|
+
*/
|
|
2485
|
+
auth2UserServiceAuthResetPassword(authResetPasswordRequest, options) {
|
|
2486
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthResetPassword(authResetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @param {object} body
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
auth2UserServiceAuthRevokeOtherSessions(body, options) {
|
|
2495
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeOtherSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
*
|
|
2499
|
+
* @param {AuthRevokeSessionRequest} authRevokeSessionRequest
|
|
2500
|
+
* @param {*} [options] Override http request option.
|
|
2501
|
+
* @throws {RequiredError}
|
|
2502
|
+
*/
|
|
2503
|
+
auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options) {
|
|
2504
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeSession(authRevokeSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @param {object} body
|
|
2509
|
+
* @param {*} [options] Override http request option.
|
|
2510
|
+
* @throws {RequiredError}
|
|
2511
|
+
*/
|
|
2512
|
+
auth2UserServiceAuthRevokeSessions(body, options) {
|
|
2513
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthRevokeSessions(body, options).then((request) => request(this.axios, this.basePath));
|
|
2514
|
+
}
|
|
2515
|
+
/**
|
|
2516
|
+
* ============ 邮箱验证 ============
|
|
2517
|
+
* @param {AuthSendVerificationEmailRequest} authSendVerificationEmailRequest
|
|
2518
|
+
* @param {*} [options] Override http request option.
|
|
2519
|
+
* @throws {RequiredError}
|
|
2520
|
+
*/
|
|
2521
|
+
auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options) {
|
|
2522
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSendVerificationEmail(authSendVerificationEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2523
|
+
}
|
|
2524
|
+
/**
|
|
2525
|
+
*
|
|
2526
|
+
* @param {AuthSignInEmailRequest} authSignInEmailRequest
|
|
2527
|
+
* @param {*} [options] Override http request option.
|
|
2528
|
+
* @throws {RequiredError}
|
|
2529
|
+
*/
|
|
2530
|
+
auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options) {
|
|
2531
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignInEmail(authSignInEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2534
|
+
*
|
|
2535
|
+
* @param {AuthSignInSocialRequest} authSignInSocialRequest
|
|
2536
|
+
* @param {*} [options] Override http request option.
|
|
2537
|
+
* @throws {RequiredError}
|
|
2538
|
+
*/
|
|
2539
|
+
auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options) {
|
|
2540
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignInSocial(authSignInSocialRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2541
|
+
}
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @param {object} body
|
|
2545
|
+
* @param {*} [options] Override http request option.
|
|
2546
|
+
* @throws {RequiredError}
|
|
2547
|
+
*/
|
|
2548
|
+
auth2UserServiceAuthSignOut(body, options) {
|
|
2549
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignOut(body, options).then((request) => request(this.axios, this.basePath));
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* ============ 认证 ============
|
|
2553
|
+
* @param {AuthSignUpEmailRequest} authSignUpEmailRequest
|
|
2554
|
+
* @param {*} [options] Override http request option.
|
|
2555
|
+
* @throws {RequiredError}
|
|
2556
|
+
*/
|
|
2557
|
+
auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options) {
|
|
2558
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthSignUpEmail(authSignUpEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
*
|
|
2562
|
+
* @param {AuthUnlinkAccountRequest} authUnlinkAccountRequest
|
|
2563
|
+
* @param {*} [options] Override http request option.
|
|
2564
|
+
* @throws {RequiredError}
|
|
2565
|
+
*/
|
|
2566
|
+
auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options) {
|
|
2567
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthUnlinkAccount(authUnlinkAccountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2568
|
+
}
|
|
2569
|
+
/**
|
|
2570
|
+
* ============ 用户管理 ============
|
|
2571
|
+
* @param {AuthUpdateUserRequest} authUpdateUserRequest
|
|
2572
|
+
* @param {*} [options] Override http request option.
|
|
2573
|
+
* @throws {RequiredError}
|
|
2574
|
+
*/
|
|
2575
|
+
auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options) {
|
|
2576
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthUpdateUser(authUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2577
|
+
}
|
|
2578
|
+
/**
|
|
2579
|
+
*
|
|
2580
|
+
* @param {string} [email]
|
|
2581
|
+
* @param {string} [authCode]
|
|
2582
|
+
* @param {string} [callbackUrl]
|
|
2583
|
+
* @param {*} [options] Override http request option.
|
|
2584
|
+
* @throws {RequiredError}
|
|
2585
|
+
*/
|
|
2586
|
+
auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options) {
|
|
2587
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthVerifyEmail(email, authCode, callbackUrl, options).then((request) => request(this.axios, this.basePath));
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
/**
|
|
2591
|
+
* DiscountAdminServiceApi - axios parameter creator
|
|
2592
|
+
*/
|
|
2593
|
+
export const DiscountAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
2594
|
+
return {
|
|
2595
|
+
/**
|
|
2596
|
+
* DiscountCreate 创建折扣接口
|
|
2597
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
discountAdminServiceDiscountCreate: (discountCreateRequest_1, ...args_1) => __awaiter(this, [discountCreateRequest_1, ...args_1], void 0, function* (discountCreateRequest, options = {}) {
|
|
2602
|
+
// verify required parameter 'discountCreateRequest' is not null or undefined
|
|
2603
|
+
assertParamExists('discountAdminServiceDiscountCreate', 'discountCreateRequest', discountCreateRequest);
|
|
2604
|
+
const localVarPath = `/admin/discount/create`;
|
|
2605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2606
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2607
|
+
let baseOptions;
|
|
2608
|
+
if (configuration) {
|
|
2609
|
+
baseOptions = configuration.baseOptions;
|
|
2610
|
+
}
|
|
2611
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2612
|
+
const localVarHeaderParameter = {};
|
|
2613
|
+
const localVarQueryParameter = {};
|
|
2614
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2615
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2616
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2617
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2618
|
+
localVarRequestOptions.data = serializeDataIfNeeded(discountCreateRequest, localVarRequestOptions, configuration);
|
|
2619
|
+
return {
|
|
2620
|
+
url: toPathString(localVarUrlObj),
|
|
2621
|
+
options: localVarRequestOptions,
|
|
2622
|
+
};
|
|
2623
|
+
}),
|
|
2624
|
+
/**
|
|
2625
|
+
* DiscountDelete 删除折扣接口
|
|
2626
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2627
|
+
* @param {*} [options] Override http request option.
|
|
2628
|
+
* @throws {RequiredError}
|
|
2629
|
+
*/
|
|
2630
|
+
discountAdminServiceDiscountDelete: (discountDeleteRequest_1, ...args_1) => __awaiter(this, [discountDeleteRequest_1, ...args_1], void 0, function* (discountDeleteRequest, options = {}) {
|
|
2631
|
+
// verify required parameter 'discountDeleteRequest' is not null or undefined
|
|
2632
|
+
assertParamExists('discountAdminServiceDiscountDelete', 'discountDeleteRequest', discountDeleteRequest);
|
|
2633
|
+
const localVarPath = `/admin/discount/delete`;
|
|
2634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2635
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2636
|
+
let baseOptions;
|
|
2637
|
+
if (configuration) {
|
|
2638
|
+
baseOptions = configuration.baseOptions;
|
|
2639
|
+
}
|
|
2640
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2641
|
+
const localVarHeaderParameter = {};
|
|
2642
|
+
const localVarQueryParameter = {};
|
|
2643
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2646
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2647
|
+
localVarRequestOptions.data = serializeDataIfNeeded(discountDeleteRequest, localVarRequestOptions, configuration);
|
|
2648
|
+
return {
|
|
2649
|
+
url: toPathString(localVarUrlObj),
|
|
2650
|
+
options: localVarRequestOptions,
|
|
2651
|
+
};
|
|
2652
|
+
}),
|
|
2653
|
+
/**
|
|
2654
|
+
* DiscountGet 获取折扣接口
|
|
2655
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2656
|
+
* @param {*} [options] Override http request option.
|
|
2657
|
+
* @throws {RequiredError}
|
|
2658
|
+
*/
|
|
2659
|
+
discountAdminServiceDiscountGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2660
|
+
const localVarPath = `/admin/discount/get`;
|
|
2661
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2662
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2663
|
+
let baseOptions;
|
|
2664
|
+
if (configuration) {
|
|
2665
|
+
baseOptions = configuration.baseOptions;
|
|
2666
|
+
}
|
|
2667
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2668
|
+
const localVarHeaderParameter = {};
|
|
2669
|
+
const localVarQueryParameter = {};
|
|
2670
|
+
if (id !== undefined) {
|
|
2671
|
+
localVarQueryParameter['id'] = id;
|
|
2672
|
+
}
|
|
2673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2676
|
+
return {
|
|
2677
|
+
url: toPathString(localVarUrlObj),
|
|
2678
|
+
options: localVarRequestOptions,
|
|
2679
|
+
};
|
|
2680
|
+
}),
|
|
2681
|
+
/**
|
|
2682
|
+
* DiscountList 折扣列表接口
|
|
2683
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2684
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2685
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2686
|
+
* @param {*} [options] Override http request option.
|
|
2687
|
+
* @throws {RequiredError}
|
|
2688
|
+
*/
|
|
2689
|
+
discountAdminServiceDiscountList: (page_1, pageSize_1, namePrefix_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, namePrefix_1, ...args_1], void 0, function* (page, pageSize, namePrefix, options = {}) {
|
|
2690
|
+
const localVarPath = `/admin/discount/list`;
|
|
2691
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2692
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2693
|
+
let baseOptions;
|
|
2694
|
+
if (configuration) {
|
|
2695
|
+
baseOptions = configuration.baseOptions;
|
|
2696
|
+
}
|
|
2697
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2698
|
+
const localVarHeaderParameter = {};
|
|
2699
|
+
const localVarQueryParameter = {};
|
|
2700
|
+
if (page !== undefined) {
|
|
2701
|
+
localVarQueryParameter['page'] = page;
|
|
2702
|
+
}
|
|
2703
|
+
if (pageSize !== undefined) {
|
|
2704
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2705
|
+
}
|
|
2706
|
+
if (namePrefix !== undefined) {
|
|
2707
|
+
localVarQueryParameter['name_prefix'] = namePrefix;
|
|
2708
|
+
}
|
|
2709
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2710
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2711
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2712
|
+
return {
|
|
2713
|
+
url: toPathString(localVarUrlObj),
|
|
2714
|
+
options: localVarRequestOptions,
|
|
2715
|
+
};
|
|
2716
|
+
}),
|
|
2717
|
+
/**
|
|
2718
|
+
* DiscountUpdate 更新折扣接口
|
|
2719
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2720
|
+
* @param {*} [options] Override http request option.
|
|
2721
|
+
* @throws {RequiredError}
|
|
2722
|
+
*/
|
|
2723
|
+
discountAdminServiceDiscountUpdate: (discountUpdateRequest_1, ...args_1) => __awaiter(this, [discountUpdateRequest_1, ...args_1], void 0, function* (discountUpdateRequest, options = {}) {
|
|
2724
|
+
// verify required parameter 'discountUpdateRequest' is not null or undefined
|
|
2725
|
+
assertParamExists('discountAdminServiceDiscountUpdate', 'discountUpdateRequest', discountUpdateRequest);
|
|
2726
|
+
const localVarPath = `/admin/discount/update`;
|
|
2727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2729
|
+
let baseOptions;
|
|
2730
|
+
if (configuration) {
|
|
2731
|
+
baseOptions = configuration.baseOptions;
|
|
2732
|
+
}
|
|
2733
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2734
|
+
const localVarHeaderParameter = {};
|
|
2735
|
+
const localVarQueryParameter = {};
|
|
2736
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2737
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2738
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2739
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2740
|
+
localVarRequestOptions.data = serializeDataIfNeeded(discountUpdateRequest, localVarRequestOptions, configuration);
|
|
2741
|
+
return {
|
|
2742
|
+
url: toPathString(localVarUrlObj),
|
|
2743
|
+
options: localVarRequestOptions,
|
|
2744
|
+
};
|
|
2745
|
+
}),
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
/**
|
|
2749
|
+
* DiscountAdminServiceApi - functional programming interface
|
|
2750
|
+
*/
|
|
2751
|
+
export const DiscountAdminServiceApiFp = function (configuration) {
|
|
2752
|
+
const localVarAxiosParamCreator = DiscountAdminServiceApiAxiosParamCreator(configuration);
|
|
2753
|
+
return {
|
|
2754
|
+
/**
|
|
2755
|
+
* DiscountCreate 创建折扣接口
|
|
2756
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2757
|
+
* @param {*} [options] Override http request option.
|
|
2758
|
+
* @throws {RequiredError}
|
|
2759
|
+
*/
|
|
2760
|
+
discountAdminServiceDiscountCreate(discountCreateRequest, options) {
|
|
2761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2762
|
+
var _a, _b, _c;
|
|
2763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountCreate(discountCreateRequest, options);
|
|
2764
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2765
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2767
|
+
});
|
|
2768
|
+
},
|
|
2769
|
+
/**
|
|
2770
|
+
* DiscountDelete 删除折扣接口
|
|
2771
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
*/
|
|
2775
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
|
|
2776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2777
|
+
var _a, _b, _c;
|
|
2778
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(discountDeleteRequest, options);
|
|
2779
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2780
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2781
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2782
|
+
});
|
|
2783
|
+
},
|
|
2784
|
+
/**
|
|
2785
|
+
* DiscountGet 获取折扣接口
|
|
2786
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2787
|
+
* @param {*} [options] Override http request option.
|
|
2788
|
+
* @throws {RequiredError}
|
|
2789
|
+
*/
|
|
2790
|
+
discountAdminServiceDiscountGet(id, options) {
|
|
2791
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2792
|
+
var _a, _b, _c;
|
|
2793
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountGet(id, options);
|
|
2794
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2795
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2796
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2797
|
+
});
|
|
2798
|
+
},
|
|
2799
|
+
/**
|
|
2800
|
+
* DiscountList 折扣列表接口
|
|
2801
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2802
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2803
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2804
|
+
* @param {*} [options] Override http request option.
|
|
2805
|
+
* @throws {RequiredError}
|
|
2806
|
+
*/
|
|
2807
|
+
discountAdminServiceDiscountList(page, pageSize, namePrefix, options) {
|
|
2808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2809
|
+
var _a, _b, _c;
|
|
2810
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountList(page, pageSize, namePrefix, options);
|
|
2811
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2812
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2813
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2814
|
+
});
|
|
2815
|
+
},
|
|
2816
|
+
/**
|
|
2817
|
+
* DiscountUpdate 更新折扣接口
|
|
2818
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
*/
|
|
2822
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
|
|
2823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2824
|
+
var _a, _b, _c;
|
|
2825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountUpdate(discountUpdateRequest, options);
|
|
2826
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2827
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2828
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2829
|
+
});
|
|
2830
|
+
},
|
|
2831
|
+
};
|
|
2832
|
+
};
|
|
2833
|
+
/**
|
|
2834
|
+
* DiscountAdminServiceApi - factory interface
|
|
2835
|
+
*/
|
|
2836
|
+
export const DiscountAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
2837
|
+
const localVarFp = DiscountAdminServiceApiFp(configuration);
|
|
2838
|
+
return {
|
|
2839
|
+
/**
|
|
2840
|
+
* DiscountCreate 创建折扣接口
|
|
2841
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2842
|
+
* @param {*} [options] Override http request option.
|
|
2843
|
+
* @throws {RequiredError}
|
|
2844
|
+
*/
|
|
2845
|
+
discountAdminServiceDiscountCreate(discountCreateRequest, options) {
|
|
2846
|
+
return localVarFp.discountAdminServiceDiscountCreate(discountCreateRequest, options).then((request) => request(axios, basePath));
|
|
2847
|
+
},
|
|
2848
|
+
/**
|
|
2849
|
+
* DiscountDelete 删除折扣接口
|
|
2850
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2851
|
+
* @param {*} [options] Override http request option.
|
|
2852
|
+
* @throws {RequiredError}
|
|
2853
|
+
*/
|
|
2854
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
|
|
2855
|
+
return localVarFp.discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(axios, basePath));
|
|
2856
|
+
},
|
|
2857
|
+
/**
|
|
2858
|
+
* DiscountGet 获取折扣接口
|
|
2859
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
932
2860
|
* @param {*} [options] Override http request option.
|
|
933
2861
|
* @throws {RequiredError}
|
|
934
2862
|
*/
|
|
@@ -936,94 +2864,451 @@ export const DiscountAdminServiceApiFactory = function (configuration, basePath,
|
|
|
936
2864
|
return localVarFp.discountAdminServiceDiscountGet(id, options).then((request) => request(axios, basePath));
|
|
937
2865
|
},
|
|
938
2866
|
/**
|
|
939
|
-
* DiscountList 折扣列表接口
|
|
2867
|
+
* DiscountList 折扣列表接口
|
|
2868
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2869
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2870
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2871
|
+
* @param {*} [options] Override http request option.
|
|
2872
|
+
* @throws {RequiredError}
|
|
2873
|
+
*/
|
|
2874
|
+
discountAdminServiceDiscountList(page, pageSize, namePrefix, options) {
|
|
2875
|
+
return localVarFp.discountAdminServiceDiscountList(page, pageSize, namePrefix, options).then((request) => request(axios, basePath));
|
|
2876
|
+
},
|
|
2877
|
+
/**
|
|
2878
|
+
* DiscountUpdate 更新折扣接口
|
|
2879
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2880
|
+
* @param {*} [options] Override http request option.
|
|
2881
|
+
* @throws {RequiredError}
|
|
2882
|
+
*/
|
|
2883
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
|
|
2884
|
+
return localVarFp.discountAdminServiceDiscountUpdate(discountUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2885
|
+
},
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
/**
|
|
2889
|
+
* DiscountAdminServiceApi - object-oriented interface
|
|
2890
|
+
*/
|
|
2891
|
+
export class DiscountAdminServiceApi extends BaseAPI {
|
|
2892
|
+
/**
|
|
2893
|
+
* DiscountCreate 创建折扣接口
|
|
2894
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2895
|
+
* @param {*} [options] Override http request option.
|
|
2896
|
+
* @throws {RequiredError}
|
|
2897
|
+
*/
|
|
2898
|
+
discountAdminServiceDiscountCreate(discountCreateRequest, options) {
|
|
2899
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountCreate(discountCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2900
|
+
}
|
|
2901
|
+
/**
|
|
2902
|
+
* DiscountDelete 删除折扣接口
|
|
2903
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2904
|
+
* @param {*} [options] Override http request option.
|
|
2905
|
+
* @throws {RequiredError}
|
|
2906
|
+
*/
|
|
2907
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
|
|
2908
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2909
|
+
}
|
|
2910
|
+
/**
|
|
2911
|
+
* DiscountGet 获取折扣接口
|
|
2912
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2913
|
+
* @param {*} [options] Override http request option.
|
|
2914
|
+
* @throws {RequiredError}
|
|
2915
|
+
*/
|
|
2916
|
+
discountAdminServiceDiscountGet(id, options) {
|
|
2917
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
2918
|
+
}
|
|
2919
|
+
/**
|
|
2920
|
+
* DiscountList 折扣列表接口
|
|
2921
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2922
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2923
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2924
|
+
* @param {*} [options] Override http request option.
|
|
2925
|
+
* @throws {RequiredError}
|
|
2926
|
+
*/
|
|
2927
|
+
discountAdminServiceDiscountList(page, pageSize, namePrefix, options) {
|
|
2928
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountList(page, pageSize, namePrefix, options).then((request) => request(this.axios, this.basePath));
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* DiscountUpdate 更新折扣接口
|
|
2932
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2933
|
+
* @param {*} [options] Override http request option.
|
|
2934
|
+
* @throws {RequiredError}
|
|
2935
|
+
*/
|
|
2936
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
|
|
2937
|
+
return DiscountAdminServiceApiFp(this.configuration).discountAdminServiceDiscountUpdate(discountUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* ProviderAdminServiceApi - axios parameter creator
|
|
2942
|
+
*/
|
|
2943
|
+
export const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
2944
|
+
return {
|
|
2945
|
+
/**
|
|
2946
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2947
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2948
|
+
* @param {*} [options] Override http request option.
|
|
2949
|
+
* @throws {RequiredError}
|
|
2950
|
+
*/
|
|
2951
|
+
providerAdminServiceProviderCreate: (providerCreateRequest_1, ...args_1) => __awaiter(this, [providerCreateRequest_1, ...args_1], void 0, function* (providerCreateRequest, options = {}) {
|
|
2952
|
+
// verify required parameter 'providerCreateRequest' is not null or undefined
|
|
2953
|
+
assertParamExists('providerAdminServiceProviderCreate', 'providerCreateRequest', providerCreateRequest);
|
|
2954
|
+
const localVarPath = `/admin/provider/create`;
|
|
2955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2957
|
+
let baseOptions;
|
|
2958
|
+
if (configuration) {
|
|
2959
|
+
baseOptions = configuration.baseOptions;
|
|
2960
|
+
}
|
|
2961
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2962
|
+
const localVarHeaderParameter = {};
|
|
2963
|
+
const localVarQueryParameter = {};
|
|
2964
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2965
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2966
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2967
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2968
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerCreateRequest, localVarRequestOptions, configuration);
|
|
2969
|
+
return {
|
|
2970
|
+
url: toPathString(localVarUrlObj),
|
|
2971
|
+
options: localVarRequestOptions,
|
|
2972
|
+
};
|
|
2973
|
+
}),
|
|
2974
|
+
/**
|
|
2975
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2976
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
providerAdminServiceProviderDelete: (providerDeleteRequest_1, ...args_1) => __awaiter(this, [providerDeleteRequest_1, ...args_1], void 0, function* (providerDeleteRequest, options = {}) {
|
|
2981
|
+
// verify required parameter 'providerDeleteRequest' is not null or undefined
|
|
2982
|
+
assertParamExists('providerAdminServiceProviderDelete', 'providerDeleteRequest', providerDeleteRequest);
|
|
2983
|
+
const localVarPath = `/admin/provider/delete`;
|
|
2984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2986
|
+
let baseOptions;
|
|
2987
|
+
if (configuration) {
|
|
2988
|
+
baseOptions = configuration.baseOptions;
|
|
2989
|
+
}
|
|
2990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2991
|
+
const localVarHeaderParameter = {};
|
|
2992
|
+
const localVarQueryParameter = {};
|
|
2993
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2994
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2995
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2996
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2997
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerDeleteRequest, localVarRequestOptions, configuration);
|
|
2998
|
+
return {
|
|
2999
|
+
url: toPathString(localVarUrlObj),
|
|
3000
|
+
options: localVarRequestOptions,
|
|
3001
|
+
};
|
|
3002
|
+
}),
|
|
3003
|
+
/**
|
|
3004
|
+
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3005
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
*/
|
|
3009
|
+
providerAdminServiceProviderGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3010
|
+
const localVarPath = `/admin/provider/get`;
|
|
3011
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3012
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3013
|
+
let baseOptions;
|
|
3014
|
+
if (configuration) {
|
|
3015
|
+
baseOptions = configuration.baseOptions;
|
|
3016
|
+
}
|
|
3017
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3018
|
+
const localVarHeaderParameter = {};
|
|
3019
|
+
const localVarQueryParameter = {};
|
|
3020
|
+
if (id !== undefined) {
|
|
3021
|
+
localVarQueryParameter['id'] = id;
|
|
3022
|
+
}
|
|
3023
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3025
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3026
|
+
return {
|
|
3027
|
+
url: toPathString(localVarUrlObj),
|
|
3028
|
+
options: localVarRequestOptions,
|
|
3029
|
+
};
|
|
3030
|
+
}),
|
|
3031
|
+
/**
|
|
3032
|
+
* ProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 List providers with pagination, supports filtering by status and name prefix 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} Request path: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3033
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3034
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3035
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) Filter by provider status (optional) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider 0: return all statuses 1: return only active providers 2: return only disabled providers @gotags: form:\"provider_status\"
|
|
3036
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
|
|
3037
|
+
* @param {*} [options] Override http request option.
|
|
3038
|
+
* @throws {RequiredError}
|
|
3039
|
+
*/
|
|
3040
|
+
providerAdminServiceProviderList: (page_1, pageSize_1, providerStatus_1, namePrefix_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, providerStatus_1, namePrefix_1, ...args_1], void 0, function* (page, pageSize, providerStatus, namePrefix, options = {}) {
|
|
3041
|
+
const localVarPath = `/admin/provider/list`;
|
|
3042
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3043
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3044
|
+
let baseOptions;
|
|
3045
|
+
if (configuration) {
|
|
3046
|
+
baseOptions = configuration.baseOptions;
|
|
3047
|
+
}
|
|
3048
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3049
|
+
const localVarHeaderParameter = {};
|
|
3050
|
+
const localVarQueryParameter = {};
|
|
3051
|
+
if (page !== undefined) {
|
|
3052
|
+
localVarQueryParameter['page'] = page;
|
|
3053
|
+
}
|
|
3054
|
+
if (pageSize !== undefined) {
|
|
3055
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
3056
|
+
}
|
|
3057
|
+
if (providerStatus !== undefined) {
|
|
3058
|
+
localVarQueryParameter['provider_status'] = providerStatus;
|
|
3059
|
+
}
|
|
3060
|
+
if (namePrefix !== undefined) {
|
|
3061
|
+
localVarQueryParameter['name_prefix'] = namePrefix;
|
|
3062
|
+
}
|
|
3063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3065
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3066
|
+
return {
|
|
3067
|
+
url: toPathString(localVarUrlObj),
|
|
3068
|
+
options: localVarRequestOptions,
|
|
3069
|
+
};
|
|
3070
|
+
}),
|
|
3071
|
+
/**
|
|
3072
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3073
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
3074
|
+
* @param {*} [options] Override http request option.
|
|
3075
|
+
* @throws {RequiredError}
|
|
3076
|
+
*/
|
|
3077
|
+
providerAdminServiceProviderUpdate: (providerUpdateRequest_1, ...args_1) => __awaiter(this, [providerUpdateRequest_1, ...args_1], void 0, function* (providerUpdateRequest, options = {}) {
|
|
3078
|
+
// verify required parameter 'providerUpdateRequest' is not null or undefined
|
|
3079
|
+
assertParamExists('providerAdminServiceProviderUpdate', 'providerUpdateRequest', providerUpdateRequest);
|
|
3080
|
+
const localVarPath = `/admin/provider/update`;
|
|
3081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3082
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3083
|
+
let baseOptions;
|
|
3084
|
+
if (configuration) {
|
|
3085
|
+
baseOptions = configuration.baseOptions;
|
|
3086
|
+
}
|
|
3087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3088
|
+
const localVarHeaderParameter = {};
|
|
3089
|
+
const localVarQueryParameter = {};
|
|
3090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3091
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3093
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3094
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerUpdateRequest, localVarRequestOptions, configuration);
|
|
3095
|
+
return {
|
|
3096
|
+
url: toPathString(localVarUrlObj),
|
|
3097
|
+
options: localVarRequestOptions,
|
|
3098
|
+
};
|
|
3099
|
+
}),
|
|
3100
|
+
};
|
|
3101
|
+
};
|
|
3102
|
+
/**
|
|
3103
|
+
* ProviderAdminServiceApi - functional programming interface
|
|
3104
|
+
*/
|
|
3105
|
+
export const ProviderAdminServiceApiFp = function (configuration) {
|
|
3106
|
+
const localVarAxiosParamCreator = ProviderAdminServiceApiAxiosParamCreator(configuration);
|
|
3107
|
+
return {
|
|
3108
|
+
/**
|
|
3109
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3110
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
3111
|
+
* @param {*} [options] Override http request option.
|
|
3112
|
+
* @throws {RequiredError}
|
|
3113
|
+
*/
|
|
3114
|
+
providerAdminServiceProviderCreate(providerCreateRequest, options) {
|
|
3115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3116
|
+
var _a, _b, _c;
|
|
3117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderCreate(providerCreateRequest, options);
|
|
3118
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3119
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3120
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3121
|
+
});
|
|
3122
|
+
},
|
|
3123
|
+
/**
|
|
3124
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3125
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
*/
|
|
3129
|
+
providerAdminServiceProviderDelete(providerDeleteRequest, options) {
|
|
3130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3131
|
+
var _a, _b, _c;
|
|
3132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(providerDeleteRequest, options);
|
|
3133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3134
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3135
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3136
|
+
});
|
|
3137
|
+
},
|
|
3138
|
+
/**
|
|
3139
|
+
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3140
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
3141
|
+
* @param {*} [options] Override http request option.
|
|
3142
|
+
* @throws {RequiredError}
|
|
3143
|
+
*/
|
|
3144
|
+
providerAdminServiceProviderGet(id, options) {
|
|
3145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3146
|
+
var _a, _b, _c;
|
|
3147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderGet(id, options);
|
|
3148
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3149
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3150
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3151
|
+
});
|
|
3152
|
+
},
|
|
3153
|
+
/**
|
|
3154
|
+
* ProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 List providers with pagination, supports filtering by status and name prefix 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} Request path: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
940
3155
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
941
3156
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
942
|
-
* @param {
|
|
3157
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) Filter by provider status (optional) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider 0: return all statuses 1: return only active providers 2: return only disabled providers @gotags: form:\"provider_status\"
|
|
3158
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
|
|
943
3159
|
* @param {*} [options] Override http request option.
|
|
944
3160
|
* @throws {RequiredError}
|
|
945
3161
|
*/
|
|
946
|
-
|
|
947
|
-
return
|
|
3162
|
+
providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options) {
|
|
3163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3164
|
+
var _a, _b, _c;
|
|
3165
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options);
|
|
3166
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3167
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3168
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3169
|
+
});
|
|
948
3170
|
},
|
|
949
3171
|
/**
|
|
950
|
-
*
|
|
951
|
-
* @param {
|
|
3172
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3173
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
952
3174
|
* @param {*} [options] Override http request option.
|
|
953
3175
|
* @throws {RequiredError}
|
|
954
3176
|
*/
|
|
955
|
-
|
|
956
|
-
return
|
|
3177
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
|
|
3178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3179
|
+
var _a, _b, _c;
|
|
3180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderUpdate(providerUpdateRequest, options);
|
|
3181
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3182
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3183
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3184
|
+
});
|
|
957
3185
|
},
|
|
958
3186
|
};
|
|
959
3187
|
};
|
|
960
3188
|
/**
|
|
961
|
-
*
|
|
3189
|
+
* ProviderAdminServiceApi - factory interface
|
|
962
3190
|
*/
|
|
963
|
-
export
|
|
3191
|
+
export const ProviderAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
3192
|
+
const localVarFp = ProviderAdminServiceApiFp(configuration);
|
|
3193
|
+
return {
|
|
3194
|
+
/**
|
|
3195
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3196
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
3197
|
+
* @param {*} [options] Override http request option.
|
|
3198
|
+
* @throws {RequiredError}
|
|
3199
|
+
*/
|
|
3200
|
+
providerAdminServiceProviderCreate(providerCreateRequest, options) {
|
|
3201
|
+
return localVarFp.providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(axios, basePath));
|
|
3202
|
+
},
|
|
3203
|
+
/**
|
|
3204
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3205
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
3206
|
+
* @param {*} [options] Override http request option.
|
|
3207
|
+
* @throws {RequiredError}
|
|
3208
|
+
*/
|
|
3209
|
+
providerAdminServiceProviderDelete(providerDeleteRequest, options) {
|
|
3210
|
+
return localVarFp.providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(axios, basePath));
|
|
3211
|
+
},
|
|
3212
|
+
/**
|
|
3213
|
+
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3214
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
3215
|
+
* @param {*} [options] Override http request option.
|
|
3216
|
+
* @throws {RequiredError}
|
|
3217
|
+
*/
|
|
3218
|
+
providerAdminServiceProviderGet(id, options) {
|
|
3219
|
+
return localVarFp.providerAdminServiceProviderGet(id, options).then((request) => request(axios, basePath));
|
|
3220
|
+
},
|
|
3221
|
+
/**
|
|
3222
|
+
* ProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 List providers with pagination, supports filtering by status and name prefix 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} Request path: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3223
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3224
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3225
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) Filter by provider status (optional) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider 0: return all statuses 1: return only active providers 2: return only disabled providers @gotags: form:\"provider_status\"
|
|
3226
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
|
|
3227
|
+
* @param {*} [options] Override http request option.
|
|
3228
|
+
* @throws {RequiredError}
|
|
3229
|
+
*/
|
|
3230
|
+
providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options) {
|
|
3231
|
+
return localVarFp.providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options).then((request) => request(axios, basePath));
|
|
3232
|
+
},
|
|
3233
|
+
/**
|
|
3234
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3235
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
3236
|
+
* @param {*} [options] Override http request option.
|
|
3237
|
+
* @throws {RequiredError}
|
|
3238
|
+
*/
|
|
3239
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
|
|
3240
|
+
return localVarFp.providerAdminServiceProviderUpdate(providerUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3241
|
+
},
|
|
3242
|
+
};
|
|
3243
|
+
};
|
|
3244
|
+
/**
|
|
3245
|
+
* ProviderAdminServiceApi - object-oriented interface
|
|
3246
|
+
*/
|
|
3247
|
+
export class ProviderAdminServiceApi extends BaseAPI {
|
|
964
3248
|
/**
|
|
965
|
-
*
|
|
966
|
-
* @param {
|
|
3249
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3250
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
967
3251
|
* @param {*} [options] Override http request option.
|
|
968
3252
|
* @throws {RequiredError}
|
|
969
3253
|
*/
|
|
970
|
-
|
|
971
|
-
return
|
|
3254
|
+
providerAdminServiceProviderCreate(providerCreateRequest, options) {
|
|
3255
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
972
3256
|
}
|
|
973
3257
|
/**
|
|
974
|
-
*
|
|
975
|
-
* @param {
|
|
3258
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3259
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
976
3260
|
* @param {*} [options] Override http request option.
|
|
977
3261
|
* @throws {RequiredError}
|
|
978
3262
|
*/
|
|
979
|
-
|
|
980
|
-
return
|
|
3263
|
+
providerAdminServiceProviderDelete(providerDeleteRequest, options) {
|
|
3264
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
981
3265
|
}
|
|
982
3266
|
/**
|
|
983
|
-
*
|
|
984
|
-
* @param {string} [id] @gotags: form:\"id\"
|
|
3267
|
+
* ProviderGet 根据 ID 获取单个 Provider Retrieve a single provider by ID 请求路径: GET /admin/provider/get?id={id} Request path: GET /admin/provider/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3268
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
985
3269
|
* @param {*} [options] Override http request option.
|
|
986
3270
|
* @throws {RequiredError}
|
|
987
3271
|
*/
|
|
988
|
-
|
|
989
|
-
return
|
|
3272
|
+
providerAdminServiceProviderGet(id, options) {
|
|
3273
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
990
3274
|
}
|
|
991
3275
|
/**
|
|
992
|
-
*
|
|
3276
|
+
* ProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 List providers with pagination, supports filtering by status and name prefix 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} Request path: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
993
3277
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
994
3278
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
995
|
-
* @param {
|
|
3279
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) Filter by provider status (optional) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider 0: return all statuses 1: return only active providers 2: return only disabled providers @gotags: form:\"provider_status\"
|
|
3280
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
|
|
996
3281
|
* @param {*} [options] Override http request option.
|
|
997
3282
|
* @throws {RequiredError}
|
|
998
3283
|
*/
|
|
999
|
-
|
|
1000
|
-
return
|
|
3284
|
+
providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options) {
|
|
3285
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options).then((request) => request(this.axios, this.basePath));
|
|
1001
3286
|
}
|
|
1002
3287
|
/**
|
|
1003
|
-
*
|
|
1004
|
-
* @param {
|
|
3288
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3289
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
1005
3290
|
* @param {*} [options] Override http request option.
|
|
1006
3291
|
* @throws {RequiredError}
|
|
1007
3292
|
*/
|
|
1008
|
-
|
|
1009
|
-
return
|
|
3293
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
|
|
3294
|
+
return ProviderAdminServiceApiFp(this.configuration).providerAdminServiceProviderUpdate(providerUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1010
3295
|
}
|
|
1011
3296
|
}
|
|
1012
3297
|
/**
|
|
1013
|
-
*
|
|
3298
|
+
* ProviderModelAdminServiceApi - axios parameter creator
|
|
1014
3299
|
*/
|
|
1015
|
-
export const
|
|
3300
|
+
export const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
1016
3301
|
return {
|
|
1017
3302
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @param {
|
|
3303
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3304
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
1020
3305
|
* @param {*} [options] Override http request option.
|
|
1021
3306
|
* @throws {RequiredError}
|
|
1022
3307
|
*/
|
|
1023
|
-
|
|
1024
|
-
// verify required parameter '
|
|
1025
|
-
assertParamExists('
|
|
1026
|
-
const localVarPath = `/admin/provider/create`;
|
|
3308
|
+
providerModelAdminServiceProviderModelCreate: (providerModelCreateRequest_1, ...args_1) => __awaiter(this, [providerModelCreateRequest_1, ...args_1], void 0, function* (providerModelCreateRequest, options = {}) {
|
|
3309
|
+
// verify required parameter 'providerModelCreateRequest' is not null or undefined
|
|
3310
|
+
assertParamExists('providerModelAdminServiceProviderModelCreate', 'providerModelCreateRequest', providerModelCreateRequest);
|
|
3311
|
+
const localVarPath = `/admin/provider-model/create`;
|
|
1027
3312
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1028
3313
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1029
3314
|
let baseOptions;
|
|
@@ -1037,49 +3322,49 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1037
3322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1038
3323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1039
3324
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1040
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3325
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerModelCreateRequest, localVarRequestOptions, configuration);
|
|
1041
3326
|
return {
|
|
1042
3327
|
url: toPathString(localVarUrlObj),
|
|
1043
3328
|
options: localVarRequestOptions,
|
|
1044
3329
|
};
|
|
1045
3330
|
}),
|
|
1046
3331
|
/**
|
|
1047
|
-
*
|
|
1048
|
-
* @param {
|
|
3332
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3333
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
1049
3334
|
* @param {*} [options] Override http request option.
|
|
1050
3335
|
* @throws {RequiredError}
|
|
1051
3336
|
*/
|
|
1052
|
-
|
|
1053
|
-
// verify required parameter '
|
|
1054
|
-
assertParamExists('
|
|
1055
|
-
const localVarPath = `/admin/provider/delete`;
|
|
3337
|
+
providerModelAdminServiceProviderModelDelete: (providerModelDeleteRequest_1, ...args_1) => __awaiter(this, [providerModelDeleteRequest_1, ...args_1], void 0, function* (providerModelDeleteRequest, options = {}) {
|
|
3338
|
+
// verify required parameter 'providerModelDeleteRequest' is not null or undefined
|
|
3339
|
+
assertParamExists('providerModelAdminServiceProviderModelDelete', 'providerModelDeleteRequest', providerModelDeleteRequest);
|
|
3340
|
+
const localVarPath = `/admin/provider-model/delete`;
|
|
1056
3341
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1057
3342
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1058
3343
|
let baseOptions;
|
|
1059
3344
|
if (configuration) {
|
|
1060
3345
|
baseOptions = configuration.baseOptions;
|
|
1061
3346
|
}
|
|
1062
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3347
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1063
3348
|
const localVarHeaderParameter = {};
|
|
1064
3349
|
const localVarQueryParameter = {};
|
|
1065
3350
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1066
3351
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1067
3352
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1068
3353
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1069
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3354
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerModelDeleteRequest, localVarRequestOptions, configuration);
|
|
1070
3355
|
return {
|
|
1071
3356
|
url: toPathString(localVarUrlObj),
|
|
1072
3357
|
options: localVarRequestOptions,
|
|
1073
3358
|
};
|
|
1074
3359
|
}),
|
|
1075
3360
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @param {string} [id] id 要获取的
|
|
3361
|
+
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3362
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
1078
3363
|
* @param {*} [options] Override http request option.
|
|
1079
3364
|
* @throws {RequiredError}
|
|
1080
3365
|
*/
|
|
1081
|
-
|
|
1082
|
-
const localVarPath = `/admin/provider/get`;
|
|
3366
|
+
providerModelAdminServiceProviderModelGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3367
|
+
const localVarPath = `/admin/provider-model/get`;
|
|
1083
3368
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1084
3369
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1085
3370
|
let baseOptions;
|
|
@@ -1101,16 +3386,17 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1101
3386
|
};
|
|
1102
3387
|
}),
|
|
1103
3388
|
/**
|
|
1104
|
-
*
|
|
3389
|
+
* ProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 List provider models with pagination, supports filtering by provider, status and name prefix 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} Request path: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1105
3390
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
1106
3391
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
1107
|
-
* @param {
|
|
1108
|
-
* @param {
|
|
3392
|
+
* @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
|
|
3393
|
+
* @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态 0: return all statuses 1: return draft models only 2: return active models only 3: return disabled models only @gotags: form:\"status\"
|
|
3394
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
1109
3395
|
* @param {*} [options] Override http request option.
|
|
1110
3396
|
* @throws {RequiredError}
|
|
1111
3397
|
*/
|
|
1112
|
-
|
|
1113
|
-
const localVarPath = `/admin/provider/list`;
|
|
3398
|
+
providerModelAdminServiceProviderModelList: (page_1, pageSize_1, providerId_1, status_1, namePrefix_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, providerId_1, status_1, namePrefix_1, ...args_1], void 0, function* (page, pageSize, providerId, status, namePrefix, options = {}) {
|
|
3399
|
+
const localVarPath = `/admin/provider-model/list`;
|
|
1114
3400
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1115
3401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1116
3402
|
let baseOptions;
|
|
@@ -1126,8 +3412,11 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1126
3412
|
if (pageSize !== undefined) {
|
|
1127
3413
|
localVarQueryParameter['page_size'] = pageSize;
|
|
1128
3414
|
}
|
|
1129
|
-
if (
|
|
1130
|
-
localVarQueryParameter['
|
|
3415
|
+
if (providerId !== undefined) {
|
|
3416
|
+
localVarQueryParameter['provider_id'] = providerId;
|
|
3417
|
+
}
|
|
3418
|
+
if (status !== undefined) {
|
|
3419
|
+
localVarQueryParameter['status'] = status;
|
|
1131
3420
|
}
|
|
1132
3421
|
if (namePrefix !== undefined) {
|
|
1133
3422
|
localVarQueryParameter['name_prefix'] = namePrefix;
|
|
@@ -1141,15 +3430,15 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1141
3430
|
};
|
|
1142
3431
|
}),
|
|
1143
3432
|
/**
|
|
1144
|
-
*
|
|
1145
|
-
* @param {
|
|
3433
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3434
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
1146
3435
|
* @param {*} [options] Override http request option.
|
|
1147
3436
|
* @throws {RequiredError}
|
|
1148
3437
|
*/
|
|
1149
|
-
|
|
1150
|
-
// verify required parameter '
|
|
1151
|
-
assertParamExists('
|
|
1152
|
-
const localVarPath = `/admin/provider/update`;
|
|
3438
|
+
providerModelAdminServiceProviderModelUpdate: (providerModelUpdateRequest_1, ...args_1) => __awaiter(this, [providerModelUpdateRequest_1, ...args_1], void 0, function* (providerModelUpdateRequest, options = {}) {
|
|
3439
|
+
// verify required parameter 'providerModelUpdateRequest' is not null or undefined
|
|
3440
|
+
assertParamExists('providerModelAdminServiceProviderModelUpdate', 'providerModelUpdateRequest', providerModelUpdateRequest);
|
|
3441
|
+
const localVarPath = `/admin/provider-model/update`;
|
|
1153
3442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1154
3443
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1155
3444
|
let baseOptions;
|
|
@@ -1163,7 +3452,7 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1163
3452
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1164
3453
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1165
3454
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1166
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3455
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerModelUpdateRequest, localVarRequestOptions, configuration);
|
|
1167
3456
|
return {
|
|
1168
3457
|
url: toPathString(localVarUrlObj),
|
|
1169
3458
|
options: localVarRequestOptions,
|
|
@@ -1172,215 +3461,218 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration)
|
|
|
1172
3461
|
};
|
|
1173
3462
|
};
|
|
1174
3463
|
/**
|
|
1175
|
-
*
|
|
3464
|
+
* ProviderModelAdminServiceApi - functional programming interface
|
|
1176
3465
|
*/
|
|
1177
|
-
export const
|
|
1178
|
-
const localVarAxiosParamCreator =
|
|
3466
|
+
export const ProviderModelAdminServiceApiFp = function (configuration) {
|
|
3467
|
+
const localVarAxiosParamCreator = ProviderModelAdminServiceApiAxiosParamCreator(configuration);
|
|
1179
3468
|
return {
|
|
1180
3469
|
/**
|
|
1181
|
-
*
|
|
1182
|
-
* @param {
|
|
3470
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3471
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
1183
3472
|
* @param {*} [options] Override http request option.
|
|
1184
3473
|
* @throws {RequiredError}
|
|
1185
3474
|
*/
|
|
1186
|
-
|
|
3475
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
|
|
1187
3476
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1188
3477
|
var _a, _b, _c;
|
|
1189
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3478
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options);
|
|
1190
3479
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1191
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3480
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1192
3481
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1193
3482
|
});
|
|
1194
3483
|
},
|
|
1195
3484
|
/**
|
|
1196
|
-
*
|
|
1197
|
-
* @param {
|
|
3485
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3486
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
1198
3487
|
* @param {*} [options] Override http request option.
|
|
1199
3488
|
* @throws {RequiredError}
|
|
1200
3489
|
*/
|
|
1201
|
-
|
|
3490
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
|
|
1202
3491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1203
3492
|
var _a, _b, _c;
|
|
1204
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3493
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options);
|
|
1205
3494
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1206
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3495
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1207
3496
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1208
3497
|
});
|
|
1209
3498
|
},
|
|
1210
3499
|
/**
|
|
1211
|
-
*
|
|
1212
|
-
* @param {string} [id] id 要获取的
|
|
3500
|
+
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3501
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
1213
3502
|
* @param {*} [options] Override http request option.
|
|
1214
3503
|
* @throws {RequiredError}
|
|
1215
3504
|
*/
|
|
1216
|
-
|
|
3505
|
+
providerModelAdminServiceProviderModelGet(id, options) {
|
|
1217
3506
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1218
3507
|
var _a, _b, _c;
|
|
1219
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelGet(id, options);
|
|
1220
3509
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1221
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3510
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1222
3511
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1223
3512
|
});
|
|
1224
3513
|
},
|
|
1225
3514
|
/**
|
|
1226
|
-
*
|
|
3515
|
+
* ProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 List provider models with pagination, supports filtering by provider, status and name prefix 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} Request path: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1227
3516
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
1228
3517
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
1229
|
-
* @param {
|
|
1230
|
-
* @param {
|
|
3518
|
+
* @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
|
|
3519
|
+
* @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态 0: return all statuses 1: return draft models only 2: return active models only 3: return disabled models only @gotags: form:\"status\"
|
|
3520
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
1231
3521
|
* @param {*} [options] Override http request option.
|
|
1232
3522
|
* @throws {RequiredError}
|
|
1233
3523
|
*/
|
|
1234
|
-
|
|
3524
|
+
providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options) {
|
|
1235
3525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1236
3526
|
var _a, _b, _c;
|
|
1237
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options);
|
|
1238
3528
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1239
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3529
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1240
3530
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1241
3531
|
});
|
|
1242
3532
|
},
|
|
1243
3533
|
/**
|
|
1244
|
-
*
|
|
1245
|
-
* @param {
|
|
3534
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3535
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
1246
3536
|
* @param {*} [options] Override http request option.
|
|
1247
3537
|
* @throws {RequiredError}
|
|
1248
3538
|
*/
|
|
1249
|
-
|
|
3539
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
|
|
1250
3540
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1251
3541
|
var _a, _b, _c;
|
|
1252
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options);
|
|
1253
3543
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1254
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3544
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1255
3545
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1256
3546
|
});
|
|
1257
3547
|
},
|
|
1258
3548
|
};
|
|
1259
3549
|
};
|
|
1260
3550
|
/**
|
|
1261
|
-
*
|
|
3551
|
+
* ProviderModelAdminServiceApi - factory interface
|
|
1262
3552
|
*/
|
|
1263
|
-
export const
|
|
1264
|
-
const localVarFp =
|
|
3553
|
+
export const ProviderModelAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
3554
|
+
const localVarFp = ProviderModelAdminServiceApiFp(configuration);
|
|
1265
3555
|
return {
|
|
1266
3556
|
/**
|
|
1267
|
-
*
|
|
1268
|
-
* @param {
|
|
3557
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3558
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
1269
3559
|
* @param {*} [options] Override http request option.
|
|
1270
3560
|
* @throws {RequiredError}
|
|
1271
3561
|
*/
|
|
1272
|
-
|
|
1273
|
-
return localVarFp.
|
|
3562
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
|
|
3563
|
+
return localVarFp.providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options).then((request) => request(axios, basePath));
|
|
1274
3564
|
},
|
|
1275
3565
|
/**
|
|
1276
|
-
*
|
|
1277
|
-
* @param {
|
|
3566
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3567
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
1278
3568
|
* @param {*} [options] Override http request option.
|
|
1279
3569
|
* @throws {RequiredError}
|
|
1280
3570
|
*/
|
|
1281
|
-
|
|
1282
|
-
return localVarFp.
|
|
3571
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
|
|
3572
|
+
return localVarFp.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1283
3573
|
},
|
|
1284
3574
|
/**
|
|
1285
|
-
*
|
|
1286
|
-
* @param {string} [id] id 要获取的
|
|
3575
|
+
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3576
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
1287
3577
|
* @param {*} [options] Override http request option.
|
|
1288
3578
|
* @throws {RequiredError}
|
|
1289
3579
|
*/
|
|
1290
|
-
|
|
1291
|
-
return localVarFp.
|
|
3580
|
+
providerModelAdminServiceProviderModelGet(id, options) {
|
|
3581
|
+
return localVarFp.providerModelAdminServiceProviderModelGet(id, options).then((request) => request(axios, basePath));
|
|
1292
3582
|
},
|
|
1293
3583
|
/**
|
|
1294
|
-
*
|
|
3584
|
+
* ProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 List provider models with pagination, supports filtering by provider, status and name prefix 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} Request path: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1295
3585
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
1296
3586
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
1297
|
-
* @param {
|
|
1298
|
-
* @param {
|
|
3587
|
+
* @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
|
|
3588
|
+
* @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态 0: return all statuses 1: return draft models only 2: return active models only 3: return disabled models only @gotags: form:\"status\"
|
|
3589
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
1299
3590
|
* @param {*} [options] Override http request option.
|
|
1300
3591
|
* @throws {RequiredError}
|
|
1301
3592
|
*/
|
|
1302
|
-
|
|
1303
|
-
return localVarFp.
|
|
3593
|
+
providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options) {
|
|
3594
|
+
return localVarFp.providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options).then((request) => request(axios, basePath));
|
|
1304
3595
|
},
|
|
1305
3596
|
/**
|
|
1306
|
-
*
|
|
1307
|
-
* @param {
|
|
3597
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3598
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
1308
3599
|
* @param {*} [options] Override http request option.
|
|
1309
3600
|
* @throws {RequiredError}
|
|
1310
3601
|
*/
|
|
1311
|
-
|
|
1312
|
-
return localVarFp.
|
|
3602
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
|
|
3603
|
+
return localVarFp.providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options).then((request) => request(axios, basePath));
|
|
1313
3604
|
},
|
|
1314
3605
|
};
|
|
1315
3606
|
};
|
|
1316
3607
|
/**
|
|
1317
|
-
*
|
|
3608
|
+
* ProviderModelAdminServiceApi - object-oriented interface
|
|
1318
3609
|
*/
|
|
1319
|
-
export class
|
|
3610
|
+
export class ProviderModelAdminServiceApi extends BaseAPI {
|
|
1320
3611
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* @param {
|
|
3612
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3613
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
1323
3614
|
* @param {*} [options] Override http request option.
|
|
1324
3615
|
* @throws {RequiredError}
|
|
1325
3616
|
*/
|
|
1326
|
-
|
|
1327
|
-
return
|
|
3617
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
|
|
3618
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1328
3619
|
}
|
|
1329
3620
|
/**
|
|
1330
|
-
*
|
|
1331
|
-
* @param {
|
|
3621
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3622
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
1332
3623
|
* @param {*} [options] Override http request option.
|
|
1333
3624
|
* @throws {RequiredError}
|
|
1334
3625
|
*/
|
|
1335
|
-
|
|
1336
|
-
return
|
|
3626
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
|
|
3627
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1337
3628
|
}
|
|
1338
3629
|
/**
|
|
1339
|
-
*
|
|
1340
|
-
* @param {string} [id] id 要获取的
|
|
3630
|
+
* ProviderModelGet 根据 ID 获取单个 ProviderModel Retrieve a single provider model by ID 请求路径: GET /admin/provider-model/get?id={id} Request path: GET /admin/provider-model/get?id={id} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3631
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
1341
3632
|
* @param {*} [options] Override http request option.
|
|
1342
3633
|
* @throws {RequiredError}
|
|
1343
3634
|
*/
|
|
1344
|
-
|
|
1345
|
-
return
|
|
3635
|
+
providerModelAdminServiceProviderModelGet(id, options) {
|
|
3636
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1346
3637
|
}
|
|
1347
3638
|
/**
|
|
1348
|
-
*
|
|
3639
|
+
* ProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 List provider models with pagination, supports filtering by provider, status and name prefix 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} Request path: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1349
3640
|
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
1350
3641
|
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
1351
|
-
* @param {
|
|
1352
|
-
* @param {
|
|
3642
|
+
* @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
|
|
3643
|
+
* @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态 0: return all statuses 1: return draft models only 2: return active models only 3: return disabled models only @gotags: form:\"status\"
|
|
3644
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
1353
3645
|
* @param {*} [options] Override http request option.
|
|
1354
3646
|
* @throws {RequiredError}
|
|
1355
3647
|
*/
|
|
1356
|
-
|
|
1357
|
-
return
|
|
3648
|
+
providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options) {
|
|
3649
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options).then((request) => request(this.axios, this.basePath));
|
|
1358
3650
|
}
|
|
1359
3651
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
* @param {
|
|
3652
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
3653
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
1362
3654
|
* @param {*} [options] Override http request option.
|
|
1363
3655
|
* @throws {RequiredError}
|
|
1364
3656
|
*/
|
|
1365
|
-
|
|
1366
|
-
return
|
|
3657
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
|
|
3658
|
+
return ProviderModelAdminServiceApiFp(this.configuration).providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1367
3659
|
}
|
|
1368
3660
|
}
|
|
1369
3661
|
/**
|
|
1370
|
-
*
|
|
3662
|
+
* RemoteConfigAdminServiceApi - axios parameter creator
|
|
1371
3663
|
*/
|
|
1372
|
-
export const
|
|
3664
|
+
export const RemoteConfigAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
1373
3665
|
return {
|
|
1374
3666
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
* @param {
|
|
3667
|
+
* RemoteConfigItemCreate 创建新的 远程配置项 请求路径: POST /admin/remote-config/create 权限要求: 需要管理员权限
|
|
3668
|
+
* @param {RemoteConfigItemCreateRequest} remoteConfigItemCreateRequest
|
|
1377
3669
|
* @param {*} [options] Override http request option.
|
|
1378
3670
|
* @throws {RequiredError}
|
|
1379
3671
|
*/
|
|
1380
|
-
|
|
1381
|
-
// verify required parameter '
|
|
1382
|
-
assertParamExists('
|
|
1383
|
-
const localVarPath = `/admin/
|
|
3672
|
+
remoteConfigAdminServiceRemoteConfigItemCreate: (remoteConfigItemCreateRequest_1, ...args_1) => __awaiter(this, [remoteConfigItemCreateRequest_1, ...args_1], void 0, function* (remoteConfigItemCreateRequest, options = {}) {
|
|
3673
|
+
// verify required parameter 'remoteConfigItemCreateRequest' is not null or undefined
|
|
3674
|
+
assertParamExists('remoteConfigAdminServiceRemoteConfigItemCreate', 'remoteConfigItemCreateRequest', remoteConfigItemCreateRequest);
|
|
3675
|
+
const localVarPath = `/admin/remote-config/create`;
|
|
1384
3676
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1385
3677
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1386
3678
|
let baseOptions;
|
|
@@ -1394,22 +3686,22 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1394
3686
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1395
3687
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
3688
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1397
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3689
|
+
localVarRequestOptions.data = serializeDataIfNeeded(remoteConfigItemCreateRequest, localVarRequestOptions, configuration);
|
|
1398
3690
|
return {
|
|
1399
3691
|
url: toPathString(localVarUrlObj),
|
|
1400
3692
|
options: localVarRequestOptions,
|
|
1401
3693
|
};
|
|
1402
3694
|
}),
|
|
1403
3695
|
/**
|
|
1404
|
-
*
|
|
1405
|
-
* @param {
|
|
3696
|
+
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3697
|
+
* @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
|
|
1406
3698
|
* @param {*} [options] Override http request option.
|
|
1407
3699
|
* @throws {RequiredError}
|
|
1408
3700
|
*/
|
|
1409
|
-
|
|
1410
|
-
// verify required parameter '
|
|
1411
|
-
assertParamExists('
|
|
1412
|
-
const localVarPath = `/admin/
|
|
3701
|
+
remoteConfigAdminServiceRemoteConfigItemDelete: (remoteConfigItemDeleteRequest_1, ...args_1) => __awaiter(this, [remoteConfigItemDeleteRequest_1, ...args_1], void 0, function* (remoteConfigItemDeleteRequest, options = {}) {
|
|
3702
|
+
// verify required parameter 'remoteConfigItemDeleteRequest' is not null or undefined
|
|
3703
|
+
assertParamExists('remoteConfigAdminServiceRemoteConfigItemDelete', 'remoteConfigItemDeleteRequest', remoteConfigItemDeleteRequest);
|
|
3704
|
+
const localVarPath = `/admin/remote-config/delete`;
|
|
1413
3705
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1414
3706
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1415
3707
|
let baseOptions;
|
|
@@ -1423,20 +3715,21 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1423
3715
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1424
3716
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1425
3717
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1426
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3718
|
+
localVarRequestOptions.data = serializeDataIfNeeded(remoteConfigItemDeleteRequest, localVarRequestOptions, configuration);
|
|
1427
3719
|
return {
|
|
1428
3720
|
url: toPathString(localVarUrlObj),
|
|
1429
3721
|
options: localVarRequestOptions,
|
|
1430
3722
|
};
|
|
1431
3723
|
}),
|
|
1432
3724
|
/**
|
|
1433
|
-
*
|
|
1434
|
-
* @param {string} [
|
|
3725
|
+
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
3726
|
+
* @param {string} [key] @gotags: form:\"key\" binding:\"required\"
|
|
3727
|
+
* @param {number} [historyLimit] @gotags: form:\"history_limit\"
|
|
1435
3728
|
* @param {*} [options] Override http request option.
|
|
1436
3729
|
* @throws {RequiredError}
|
|
1437
3730
|
*/
|
|
1438
|
-
|
|
1439
|
-
const localVarPath = `/admin/
|
|
3731
|
+
remoteConfigAdminServiceRemoteConfigItemGet: (key_1, historyLimit_1, ...args_1) => __awaiter(this, [key_1, historyLimit_1, ...args_1], void 0, function* (key, historyLimit, options = {}) {
|
|
3732
|
+
const localVarPath = `/admin/remote-config/get`;
|
|
1440
3733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1441
3734
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1442
3735
|
let baseOptions;
|
|
@@ -1446,8 +3739,11 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1446
3739
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1447
3740
|
const localVarHeaderParameter = {};
|
|
1448
3741
|
const localVarQueryParameter = {};
|
|
1449
|
-
if (
|
|
1450
|
-
localVarQueryParameter['
|
|
3742
|
+
if (key !== undefined) {
|
|
3743
|
+
localVarQueryParameter['key'] = key;
|
|
3744
|
+
}
|
|
3745
|
+
if (historyLimit !== undefined) {
|
|
3746
|
+
localVarQueryParameter['history_limit'] = historyLimit;
|
|
1451
3747
|
}
|
|
1452
3748
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1453
3749
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1458,17 +3754,16 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1458
3754
|
};
|
|
1459
3755
|
}),
|
|
1460
3756
|
/**
|
|
1461
|
-
*
|
|
1462
|
-
* @param {number} [page]
|
|
1463
|
-
* @param {number} [pageSize]
|
|
1464
|
-
* @param {string} [
|
|
1465
|
-
* @param {
|
|
1466
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
3757
|
+
* RemoteConfigItemList 列出 远程配置项 列表 请求路径: GET /admin/remote-config/list 权限要求: 需要管理员权限
|
|
3758
|
+
* @param {number} [page]
|
|
3759
|
+
* @param {number} [pageSize]
|
|
3760
|
+
* @param {Array<string>} [keys]
|
|
3761
|
+
* @param {string} [keyword]
|
|
1467
3762
|
* @param {*} [options] Override http request option.
|
|
1468
3763
|
* @throws {RequiredError}
|
|
1469
3764
|
*/
|
|
1470
|
-
|
|
1471
|
-
const localVarPath = `/admin/
|
|
3765
|
+
remoteConfigAdminServiceRemoteConfigItemList: (page_1, pageSize_1, keys_1, keyword_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, keys_1, keyword_1, ...args_1], void 0, function* (page, pageSize, keys, keyword, options = {}) {
|
|
3766
|
+
const localVarPath = `/admin/remote-config/list`;
|
|
1472
3767
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1473
3768
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1474
3769
|
let baseOptions;
|
|
@@ -1484,14 +3779,11 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1484
3779
|
if (pageSize !== undefined) {
|
|
1485
3780
|
localVarQueryParameter['page_size'] = pageSize;
|
|
1486
3781
|
}
|
|
1487
|
-
if (
|
|
1488
|
-
localVarQueryParameter['
|
|
1489
|
-
}
|
|
1490
|
-
if (status !== undefined) {
|
|
1491
|
-
localVarQueryParameter['status'] = status;
|
|
3782
|
+
if (keys) {
|
|
3783
|
+
localVarQueryParameter['keys'] = keys;
|
|
1492
3784
|
}
|
|
1493
|
-
if (
|
|
1494
|
-
localVarQueryParameter['
|
|
3785
|
+
if (keyword !== undefined) {
|
|
3786
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
1495
3787
|
}
|
|
1496
3788
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1497
3789
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1502,15 +3794,15 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1502
3794
|
};
|
|
1503
3795
|
}),
|
|
1504
3796
|
/**
|
|
1505
|
-
*
|
|
1506
|
-
* @param {
|
|
3797
|
+
* RemoteConfigItemUpdate 更新已有的 远程配置项 请求路径: POST /admin/remote-config/update 权限要求: 需要管理员权限
|
|
3798
|
+
* @param {RemoteConfigItemUpdateRequest} remoteConfigItemUpdateRequest
|
|
1507
3799
|
* @param {*} [options] Override http request option.
|
|
1508
3800
|
* @throws {RequiredError}
|
|
1509
3801
|
*/
|
|
1510
|
-
|
|
1511
|
-
// verify required parameter '
|
|
1512
|
-
assertParamExists('
|
|
1513
|
-
const localVarPath = `/admin/
|
|
3802
|
+
remoteConfigAdminServiceRemoteConfigItemUpdate: (remoteConfigItemUpdateRequest_1, ...args_1) => __awaiter(this, [remoteConfigItemUpdateRequest_1, ...args_1], void 0, function* (remoteConfigItemUpdateRequest, options = {}) {
|
|
3803
|
+
// verify required parameter 'remoteConfigItemUpdateRequest' is not null or undefined
|
|
3804
|
+
assertParamExists('remoteConfigAdminServiceRemoteConfigItemUpdate', 'remoteConfigItemUpdateRequest', remoteConfigItemUpdateRequest);
|
|
3805
|
+
const localVarPath = `/admin/remote-config/update`;
|
|
1514
3806
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1515
3807
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1516
3808
|
let baseOptions;
|
|
@@ -1524,7 +3816,7 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1524
3816
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1525
3817
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1526
3818
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1527
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3819
|
+
localVarRequestOptions.data = serializeDataIfNeeded(remoteConfigItemUpdateRequest, localVarRequestOptions, configuration);
|
|
1528
3820
|
return {
|
|
1529
3821
|
url: toPathString(localVarUrlObj),
|
|
1530
3822
|
options: localVarRequestOptions,
|
|
@@ -1533,201 +3825,201 @@ export const ProviderModelAdminServiceApiAxiosParamCreator = function (configura
|
|
|
1533
3825
|
};
|
|
1534
3826
|
};
|
|
1535
3827
|
/**
|
|
1536
|
-
*
|
|
3828
|
+
* RemoteConfigAdminServiceApi - functional programming interface
|
|
1537
3829
|
*/
|
|
1538
|
-
export const
|
|
1539
|
-
const localVarAxiosParamCreator =
|
|
3830
|
+
export const RemoteConfigAdminServiceApiFp = function (configuration) {
|
|
3831
|
+
const localVarAxiosParamCreator = RemoteConfigAdminServiceApiAxiosParamCreator(configuration);
|
|
1540
3832
|
return {
|
|
1541
3833
|
/**
|
|
1542
|
-
*
|
|
1543
|
-
* @param {
|
|
3834
|
+
* RemoteConfigItemCreate 创建新的 远程配置项 请求路径: POST /admin/remote-config/create 权限要求: 需要管理员权限
|
|
3835
|
+
* @param {RemoteConfigItemCreateRequest} remoteConfigItemCreateRequest
|
|
1544
3836
|
* @param {*} [options] Override http request option.
|
|
1545
3837
|
* @throws {RequiredError}
|
|
1546
3838
|
*/
|
|
1547
|
-
|
|
3839
|
+
remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options) {
|
|
1548
3840
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1549
3841
|
var _a, _b, _c;
|
|
1550
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3842
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options);
|
|
1551
3843
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1552
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3844
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1553
3845
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1554
3846
|
});
|
|
1555
3847
|
},
|
|
1556
3848
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
* @param {
|
|
3849
|
+
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3850
|
+
* @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
|
|
1559
3851
|
* @param {*} [options] Override http request option.
|
|
1560
3852
|
* @throws {RequiredError}
|
|
1561
3853
|
*/
|
|
1562
|
-
|
|
3854
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
|
|
1563
3855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1564
3856
|
var _a, _b, _c;
|
|
1565
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options);
|
|
1566
3858
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1567
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3859
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1568
3860
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1569
3861
|
});
|
|
1570
3862
|
},
|
|
1571
3863
|
/**
|
|
1572
|
-
*
|
|
1573
|
-
* @param {string} [
|
|
3864
|
+
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
3865
|
+
* @param {string} [key] @gotags: form:\"key\" binding:\"required\"
|
|
3866
|
+
* @param {number} [historyLimit] @gotags: form:\"history_limit\"
|
|
1574
3867
|
* @param {*} [options] Override http request option.
|
|
1575
3868
|
* @throws {RequiredError}
|
|
1576
3869
|
*/
|
|
1577
|
-
|
|
3870
|
+
remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options) {
|
|
1578
3871
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1579
3872
|
var _a, _b, _c;
|
|
1580
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3873
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options);
|
|
1581
3874
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1582
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3875
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1583
3876
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1584
3877
|
});
|
|
1585
3878
|
},
|
|
1586
3879
|
/**
|
|
1587
|
-
*
|
|
1588
|
-
* @param {number} [page]
|
|
1589
|
-
* @param {number} [pageSize]
|
|
1590
|
-
* @param {string} [
|
|
1591
|
-
* @param {
|
|
1592
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
3880
|
+
* RemoteConfigItemList 列出 远程配置项 列表 请求路径: GET /admin/remote-config/list 权限要求: 需要管理员权限
|
|
3881
|
+
* @param {number} [page]
|
|
3882
|
+
* @param {number} [pageSize]
|
|
3883
|
+
* @param {Array<string>} [keys]
|
|
3884
|
+
* @param {string} [keyword]
|
|
1593
3885
|
* @param {*} [options] Override http request option.
|
|
1594
3886
|
* @throws {RequiredError}
|
|
1595
3887
|
*/
|
|
1596
|
-
|
|
3888
|
+
remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options) {
|
|
1597
3889
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1598
3890
|
var _a, _b, _c;
|
|
1599
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3891
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options);
|
|
1600
3892
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1601
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3893
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1602
3894
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1603
3895
|
});
|
|
1604
3896
|
},
|
|
1605
3897
|
/**
|
|
1606
|
-
*
|
|
1607
|
-
* @param {
|
|
3898
|
+
* RemoteConfigItemUpdate 更新已有的 远程配置项 请求路径: POST /admin/remote-config/update 权限要求: 需要管理员权限
|
|
3899
|
+
* @param {RemoteConfigItemUpdateRequest} remoteConfigItemUpdateRequest
|
|
1608
3900
|
* @param {*} [options] Override http request option.
|
|
1609
3901
|
* @throws {RequiredError}
|
|
1610
3902
|
*/
|
|
1611
|
-
|
|
3903
|
+
remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options) {
|
|
1612
3904
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1613
3905
|
var _a, _b, _c;
|
|
1614
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3906
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options);
|
|
1615
3907
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1616
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3908
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteConfigAdminServiceApi.remoteConfigAdminServiceRemoteConfigItemUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1617
3909
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1618
3910
|
});
|
|
1619
3911
|
},
|
|
1620
3912
|
};
|
|
1621
3913
|
};
|
|
1622
3914
|
/**
|
|
1623
|
-
*
|
|
3915
|
+
* RemoteConfigAdminServiceApi - factory interface
|
|
1624
3916
|
*/
|
|
1625
|
-
export const
|
|
1626
|
-
const localVarFp =
|
|
3917
|
+
export const RemoteConfigAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
3918
|
+
const localVarFp = RemoteConfigAdminServiceApiFp(configuration);
|
|
1627
3919
|
return {
|
|
1628
3920
|
/**
|
|
1629
|
-
*
|
|
1630
|
-
* @param {
|
|
3921
|
+
* RemoteConfigItemCreate 创建新的 远程配置项 请求路径: POST /admin/remote-config/create 权限要求: 需要管理员权限
|
|
3922
|
+
* @param {RemoteConfigItemCreateRequest} remoteConfigItemCreateRequest
|
|
1631
3923
|
* @param {*} [options] Override http request option.
|
|
1632
3924
|
* @throws {RequiredError}
|
|
1633
3925
|
*/
|
|
1634
|
-
|
|
1635
|
-
return localVarFp.
|
|
3926
|
+
remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options) {
|
|
3927
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options).then((request) => request(axios, basePath));
|
|
1636
3928
|
},
|
|
1637
3929
|
/**
|
|
1638
|
-
*
|
|
1639
|
-
* @param {
|
|
3930
|
+
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3931
|
+
* @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
|
|
1640
3932
|
* @param {*} [options] Override http request option.
|
|
1641
3933
|
* @throws {RequiredError}
|
|
1642
3934
|
*/
|
|
1643
|
-
|
|
1644
|
-
return localVarFp.
|
|
3935
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
|
|
3936
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1645
3937
|
},
|
|
1646
3938
|
/**
|
|
1647
|
-
*
|
|
1648
|
-
* @param {string} [
|
|
3939
|
+
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
3940
|
+
* @param {string} [key] @gotags: form:\"key\" binding:\"required\"
|
|
3941
|
+
* @param {number} [historyLimit] @gotags: form:\"history_limit\"
|
|
1649
3942
|
* @param {*} [options] Override http request option.
|
|
1650
3943
|
* @throws {RequiredError}
|
|
1651
3944
|
*/
|
|
1652
|
-
|
|
1653
|
-
return localVarFp.
|
|
3945
|
+
remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options) {
|
|
3946
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options).then((request) => request(axios, basePath));
|
|
1654
3947
|
},
|
|
1655
3948
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
* @param {number} [page]
|
|
1658
|
-
* @param {number} [pageSize]
|
|
1659
|
-
* @param {string} [
|
|
1660
|
-
* @param {
|
|
1661
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
3949
|
+
* RemoteConfigItemList 列出 远程配置项 列表 请求路径: GET /admin/remote-config/list 权限要求: 需要管理员权限
|
|
3950
|
+
* @param {number} [page]
|
|
3951
|
+
* @param {number} [pageSize]
|
|
3952
|
+
* @param {Array<string>} [keys]
|
|
3953
|
+
* @param {string} [keyword]
|
|
1662
3954
|
* @param {*} [options] Override http request option.
|
|
1663
3955
|
* @throws {RequiredError}
|
|
1664
3956
|
*/
|
|
1665
|
-
|
|
1666
|
-
return localVarFp.
|
|
3957
|
+
remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options) {
|
|
3958
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options).then((request) => request(axios, basePath));
|
|
1667
3959
|
},
|
|
1668
3960
|
/**
|
|
1669
|
-
*
|
|
1670
|
-
* @param {
|
|
3961
|
+
* RemoteConfigItemUpdate 更新已有的 远程配置项 请求路径: POST /admin/remote-config/update 权限要求: 需要管理员权限
|
|
3962
|
+
* @param {RemoteConfigItemUpdateRequest} remoteConfigItemUpdateRequest
|
|
1671
3963
|
* @param {*} [options] Override http request option.
|
|
1672
3964
|
* @throws {RequiredError}
|
|
1673
3965
|
*/
|
|
1674
|
-
|
|
1675
|
-
return localVarFp.
|
|
3966
|
+
remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options) {
|
|
3967
|
+
return localVarFp.remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options).then((request) => request(axios, basePath));
|
|
1676
3968
|
},
|
|
1677
3969
|
};
|
|
1678
3970
|
};
|
|
1679
3971
|
/**
|
|
1680
|
-
*
|
|
3972
|
+
* RemoteConfigAdminServiceApi - object-oriented interface
|
|
1681
3973
|
*/
|
|
1682
|
-
export class
|
|
3974
|
+
export class RemoteConfigAdminServiceApi extends BaseAPI {
|
|
1683
3975
|
/**
|
|
1684
|
-
*
|
|
1685
|
-
* @param {
|
|
3976
|
+
* RemoteConfigItemCreate 创建新的 远程配置项 请求路径: POST /admin/remote-config/create 权限要求: 需要管理员权限
|
|
3977
|
+
* @param {RemoteConfigItemCreateRequest} remoteConfigItemCreateRequest
|
|
1686
3978
|
* @param {*} [options] Override http request option.
|
|
1687
3979
|
* @throws {RequiredError}
|
|
1688
3980
|
*/
|
|
1689
|
-
|
|
1690
|
-
return
|
|
3981
|
+
remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options) {
|
|
3982
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemCreate(remoteConfigItemCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1691
3983
|
}
|
|
1692
3984
|
/**
|
|
1693
|
-
*
|
|
1694
|
-
* @param {
|
|
3985
|
+
* RemoteConfigItemDelete 删除已有的 远程配置项 请求路径: POST /admin/remote-config/delete 权限要求: 需要管理员权限
|
|
3986
|
+
* @param {RemoteConfigItemDeleteRequest} remoteConfigItemDeleteRequest
|
|
1695
3987
|
* @param {*} [options] Override http request option.
|
|
1696
3988
|
* @throws {RequiredError}
|
|
1697
3989
|
*/
|
|
1698
|
-
|
|
1699
|
-
return
|
|
3990
|
+
remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options) {
|
|
3991
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemDelete(remoteConfigItemDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1700
3992
|
}
|
|
1701
3993
|
/**
|
|
1702
|
-
*
|
|
1703
|
-
* @param {string} [
|
|
3994
|
+
* RemoteConfigItemGet 获取指定的 远程配置项 及其历史版本 请求路径: GET /admin/remote-config/get 权限要求: 需要管理员权限
|
|
3995
|
+
* @param {string} [key] @gotags: form:\"key\" binding:\"required\"
|
|
3996
|
+
* @param {number} [historyLimit] @gotags: form:\"history_limit\"
|
|
1704
3997
|
* @param {*} [options] Override http request option.
|
|
1705
3998
|
* @throws {RequiredError}
|
|
1706
3999
|
*/
|
|
1707
|
-
|
|
1708
|
-
return
|
|
4000
|
+
remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options) {
|
|
4001
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemGet(key, historyLimit, options).then((request) => request(this.axios, this.basePath));
|
|
1709
4002
|
}
|
|
1710
4003
|
/**
|
|
1711
|
-
*
|
|
1712
|
-
* @param {number} [page]
|
|
1713
|
-
* @param {number} [pageSize]
|
|
1714
|
-
* @param {string} [
|
|
1715
|
-
* @param {
|
|
1716
|
-
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
|
|
4004
|
+
* RemoteConfigItemList 列出 远程配置项 列表 请求路径: GET /admin/remote-config/list 权限要求: 需要管理员权限
|
|
4005
|
+
* @param {number} [page]
|
|
4006
|
+
* @param {number} [pageSize]
|
|
4007
|
+
* @param {Array<string>} [keys]
|
|
4008
|
+
* @param {string} [keyword]
|
|
1717
4009
|
* @param {*} [options] Override http request option.
|
|
1718
4010
|
* @throws {RequiredError}
|
|
1719
4011
|
*/
|
|
1720
|
-
|
|
1721
|
-
return
|
|
4012
|
+
remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options) {
|
|
4013
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemList(page, pageSize, keys, keyword, options).then((request) => request(this.axios, this.basePath));
|
|
1722
4014
|
}
|
|
1723
4015
|
/**
|
|
1724
|
-
*
|
|
1725
|
-
* @param {
|
|
4016
|
+
* RemoteConfigItemUpdate 更新已有的 远程配置项 请求路径: POST /admin/remote-config/update 权限要求: 需要管理员权限
|
|
4017
|
+
* @param {RemoteConfigItemUpdateRequest} remoteConfigItemUpdateRequest
|
|
1726
4018
|
* @param {*} [options] Override http request option.
|
|
1727
4019
|
* @throws {RequiredError}
|
|
1728
4020
|
*/
|
|
1729
|
-
|
|
1730
|
-
return
|
|
4021
|
+
remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options) {
|
|
4022
|
+
return RemoteConfigAdminServiceApiFp(this.configuration).remoteConfigAdminServiceRemoteConfigItemUpdate(remoteConfigItemUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1731
4023
|
}
|
|
1732
4024
|
}
|
|
1733
4025
|
/**
|
|
@@ -2101,418 +4393,6 @@ export class UserAPIKeyServiceApi extends BaseAPI {
|
|
|
2101
4393
|
return UserAPIKeyServiceApiFp(this.configuration).userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2102
4394
|
}
|
|
2103
4395
|
}
|
|
2104
|
-
/**
|
|
2105
|
-
* UserAuthServiceApi - axios parameter creator
|
|
2106
|
-
*/
|
|
2107
|
-
export const UserAuthServiceApiAxiosParamCreator = function (configuration) {
|
|
2108
|
-
return {
|
|
2109
|
-
/**
|
|
2110
|
-
* 提交验证码流程
|
|
2111
|
-
* @param {number} [authType]
|
|
2112
|
-
* @param {number} [authAction]
|
|
2113
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2114
|
-
* @param {string} [payloadEmailPayloadAuthCode]
|
|
2115
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2116
|
-
* @param {string} [authAt]
|
|
2117
|
-
* @param {string} [nonce]
|
|
2118
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
|
|
2119
|
-
* @param {*} [options] Override http request option.
|
|
2120
|
-
* @throws {RequiredError}
|
|
2121
|
-
*/
|
|
2122
|
-
userAuthServiceUserAuthFlowCode: (authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadAuthCode_1, payloadEmailPayloadUserPasswordEncrypt_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadAuthCode_1, payloadEmailPayloadUserPasswordEncrypt_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options = {}) {
|
|
2123
|
-
const localVarPath = `/auth/v1/flow/code`;
|
|
2124
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2125
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2126
|
-
let baseOptions;
|
|
2127
|
-
if (configuration) {
|
|
2128
|
-
baseOptions = configuration.baseOptions;
|
|
2129
|
-
}
|
|
2130
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2131
|
-
const localVarHeaderParameter = {};
|
|
2132
|
-
const localVarQueryParameter = {};
|
|
2133
|
-
if (authType !== undefined) {
|
|
2134
|
-
localVarQueryParameter['auth_type'] = authType;
|
|
2135
|
-
}
|
|
2136
|
-
if (authAction !== undefined) {
|
|
2137
|
-
localVarQueryParameter['auth_action'] = authAction;
|
|
2138
|
-
}
|
|
2139
|
-
if (payloadEmailPayloadUserEmail !== undefined) {
|
|
2140
|
-
localVarQueryParameter['payload.email_payload.user_email'] = payloadEmailPayloadUserEmail;
|
|
2141
|
-
}
|
|
2142
|
-
if (payloadEmailPayloadAuthCode !== undefined) {
|
|
2143
|
-
localVarQueryParameter['payload.email_payload.auth_code'] = payloadEmailPayloadAuthCode;
|
|
2144
|
-
}
|
|
2145
|
-
if (payloadEmailPayloadUserPasswordEncrypt !== undefined) {
|
|
2146
|
-
localVarQueryParameter['payload.email_payload.user_password_encrypt'] = payloadEmailPayloadUserPasswordEncrypt;
|
|
2147
|
-
}
|
|
2148
|
-
if (authAt !== undefined) {
|
|
2149
|
-
localVarQueryParameter['auth_at'] = authAt;
|
|
2150
|
-
}
|
|
2151
|
-
if (nonce !== undefined) {
|
|
2152
|
-
localVarQueryParameter['nonce'] = nonce;
|
|
2153
|
-
}
|
|
2154
|
-
if (signature !== undefined) {
|
|
2155
|
-
localVarQueryParameter['signature'] = signature;
|
|
2156
|
-
}
|
|
2157
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2158
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2159
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2160
|
-
return {
|
|
2161
|
-
url: toPathString(localVarUrlObj),
|
|
2162
|
-
options: localVarRequestOptions,
|
|
2163
|
-
};
|
|
2164
|
-
}),
|
|
2165
|
-
/**
|
|
2166
|
-
* 鉴权流程启动
|
|
2167
|
-
* @param {number} [authType]
|
|
2168
|
-
* @param {number} [authAction]
|
|
2169
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2170
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2171
|
-
* @param {string} [payloadEmailPayloadDisplayName]
|
|
2172
|
-
* @param {number} [payloadOauth2PayloadPlatform]
|
|
2173
|
-
* @param {string} [authAt]
|
|
2174
|
-
* @param {string} [nonce]
|
|
2175
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
2176
|
-
* @param {*} [options] Override http request option.
|
|
2177
|
-
* @throws {RequiredError}
|
|
2178
|
-
*/
|
|
2179
|
-
userAuthServiceUserAuthFlowInit: (authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadUserPasswordEncrypt_1, payloadEmailPayloadDisplayName_1, payloadOauth2PayloadPlatform_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadUserPasswordEncrypt_1, payloadEmailPayloadDisplayName_1, payloadOauth2PayloadPlatform_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options = {}) {
|
|
2180
|
-
const localVarPath = `/auth/v1/flow/init`;
|
|
2181
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2182
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2183
|
-
let baseOptions;
|
|
2184
|
-
if (configuration) {
|
|
2185
|
-
baseOptions = configuration.baseOptions;
|
|
2186
|
-
}
|
|
2187
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2188
|
-
const localVarHeaderParameter = {};
|
|
2189
|
-
const localVarQueryParameter = {};
|
|
2190
|
-
if (authType !== undefined) {
|
|
2191
|
-
localVarQueryParameter['auth_type'] = authType;
|
|
2192
|
-
}
|
|
2193
|
-
if (authAction !== undefined) {
|
|
2194
|
-
localVarQueryParameter['auth_action'] = authAction;
|
|
2195
|
-
}
|
|
2196
|
-
if (payloadEmailPayloadUserEmail !== undefined) {
|
|
2197
|
-
localVarQueryParameter['payload.email_payload.user_email'] = payloadEmailPayloadUserEmail;
|
|
2198
|
-
}
|
|
2199
|
-
if (payloadEmailPayloadUserPasswordEncrypt !== undefined) {
|
|
2200
|
-
localVarQueryParameter['payload.email_payload.user_password_encrypt'] = payloadEmailPayloadUserPasswordEncrypt;
|
|
2201
|
-
}
|
|
2202
|
-
if (payloadEmailPayloadDisplayName !== undefined) {
|
|
2203
|
-
localVarQueryParameter['payload.email_payload.display_name'] = payloadEmailPayloadDisplayName;
|
|
2204
|
-
}
|
|
2205
|
-
if (payloadOauth2PayloadPlatform !== undefined) {
|
|
2206
|
-
localVarQueryParameter['payload.oauth2_payload.platform'] = payloadOauth2PayloadPlatform;
|
|
2207
|
-
}
|
|
2208
|
-
if (authAt !== undefined) {
|
|
2209
|
-
localVarQueryParameter['auth_at'] = authAt;
|
|
2210
|
-
}
|
|
2211
|
-
if (nonce !== undefined) {
|
|
2212
|
-
localVarQueryParameter['nonce'] = nonce;
|
|
2213
|
-
}
|
|
2214
|
-
if (signature !== undefined) {
|
|
2215
|
-
localVarQueryParameter['signature'] = signature;
|
|
2216
|
-
}
|
|
2217
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2218
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2219
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2220
|
-
return {
|
|
2221
|
-
url: toPathString(localVarUrlObj),
|
|
2222
|
-
options: localVarRequestOptions,
|
|
2223
|
-
};
|
|
2224
|
-
}),
|
|
2225
|
-
/**
|
|
2226
|
-
* OAUTH 流程验证回调
|
|
2227
|
-
* @param {string} [code]
|
|
2228
|
-
* @param {string} [state]
|
|
2229
|
-
* @param {number} [platform]
|
|
2230
|
-
* @param {*} [options] Override http request option.
|
|
2231
|
-
* @throws {RequiredError}
|
|
2232
|
-
*/
|
|
2233
|
-
userAuthServiceUserAuthFlowOAuthCallback: (code_1, state_1, platform_1, ...args_1) => __awaiter(this, [code_1, state_1, platform_1, ...args_1], void 0, function* (code, state, platform, options = {}) {
|
|
2234
|
-
const localVarPath = `/auth/v1/flow/oauth/cb`;
|
|
2235
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2236
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2237
|
-
let baseOptions;
|
|
2238
|
-
if (configuration) {
|
|
2239
|
-
baseOptions = configuration.baseOptions;
|
|
2240
|
-
}
|
|
2241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2242
|
-
const localVarHeaderParameter = {};
|
|
2243
|
-
const localVarQueryParameter = {};
|
|
2244
|
-
if (code !== undefined) {
|
|
2245
|
-
localVarQueryParameter['code'] = code;
|
|
2246
|
-
}
|
|
2247
|
-
if (state !== undefined) {
|
|
2248
|
-
localVarQueryParameter['state'] = state;
|
|
2249
|
-
}
|
|
2250
|
-
if (platform !== undefined) {
|
|
2251
|
-
localVarQueryParameter['platform'] = platform;
|
|
2252
|
-
}
|
|
2253
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2254
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2255
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2256
|
-
return {
|
|
2257
|
-
url: toPathString(localVarUrlObj),
|
|
2258
|
-
options: localVarRequestOptions,
|
|
2259
|
-
};
|
|
2260
|
-
}),
|
|
2261
|
-
/**
|
|
2262
|
-
* Auth Token 刷新接口
|
|
2263
|
-
* @param {string} [refreshToken]
|
|
2264
|
-
* @param {string} [authAt]
|
|
2265
|
-
* @param {string} [nonce]
|
|
2266
|
-
* @param {string} [signature]
|
|
2267
|
-
* @param {*} [options] Override http request option.
|
|
2268
|
-
* @throws {RequiredError}
|
|
2269
|
-
*/
|
|
2270
|
-
userAuthServiceUserAuthFlowTokenRefresh: (refreshToken_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [refreshToken_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (refreshToken, authAt, nonce, signature, options = {}) {
|
|
2271
|
-
const localVarPath = `/auth/v1/flow/refresh_token`;
|
|
2272
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2273
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2274
|
-
let baseOptions;
|
|
2275
|
-
if (configuration) {
|
|
2276
|
-
baseOptions = configuration.baseOptions;
|
|
2277
|
-
}
|
|
2278
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2279
|
-
const localVarHeaderParameter = {};
|
|
2280
|
-
const localVarQueryParameter = {};
|
|
2281
|
-
if (refreshToken !== undefined) {
|
|
2282
|
-
localVarQueryParameter['refresh_token'] = refreshToken;
|
|
2283
|
-
}
|
|
2284
|
-
if (authAt !== undefined) {
|
|
2285
|
-
localVarQueryParameter['auth_at'] = authAt;
|
|
2286
|
-
}
|
|
2287
|
-
if (nonce !== undefined) {
|
|
2288
|
-
localVarQueryParameter['nonce'] = nonce;
|
|
2289
|
-
}
|
|
2290
|
-
if (signature !== undefined) {
|
|
2291
|
-
localVarQueryParameter['signature'] = signature;
|
|
2292
|
-
}
|
|
2293
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2294
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2295
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2296
|
-
return {
|
|
2297
|
-
url: toPathString(localVarUrlObj),
|
|
2298
|
-
options: localVarRequestOptions,
|
|
2299
|
-
};
|
|
2300
|
-
}),
|
|
2301
|
-
};
|
|
2302
|
-
};
|
|
2303
|
-
/**
|
|
2304
|
-
* UserAuthServiceApi - functional programming interface
|
|
2305
|
-
*/
|
|
2306
|
-
export const UserAuthServiceApiFp = function (configuration) {
|
|
2307
|
-
const localVarAxiosParamCreator = UserAuthServiceApiAxiosParamCreator(configuration);
|
|
2308
|
-
return {
|
|
2309
|
-
/**
|
|
2310
|
-
* 提交验证码流程
|
|
2311
|
-
* @param {number} [authType]
|
|
2312
|
-
* @param {number} [authAction]
|
|
2313
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2314
|
-
* @param {string} [payloadEmailPayloadAuthCode]
|
|
2315
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2316
|
-
* @param {string} [authAt]
|
|
2317
|
-
* @param {string} [nonce]
|
|
2318
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
|
|
2319
|
-
* @param {*} [options] Override http request option.
|
|
2320
|
-
* @throws {RequiredError}
|
|
2321
|
-
*/
|
|
2322
|
-
userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
|
|
2323
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2324
|
-
var _a, _b, _c;
|
|
2325
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options);
|
|
2326
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2327
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2328
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2329
|
-
});
|
|
2330
|
-
},
|
|
2331
|
-
/**
|
|
2332
|
-
* 鉴权流程启动
|
|
2333
|
-
* @param {number} [authType]
|
|
2334
|
-
* @param {number} [authAction]
|
|
2335
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2336
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2337
|
-
* @param {string} [payloadEmailPayloadDisplayName]
|
|
2338
|
-
* @param {number} [payloadOauth2PayloadPlatform]
|
|
2339
|
-
* @param {string} [authAt]
|
|
2340
|
-
* @param {string} [nonce]
|
|
2341
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
2342
|
-
* @param {*} [options] Override http request option.
|
|
2343
|
-
* @throws {RequiredError}
|
|
2344
|
-
*/
|
|
2345
|
-
userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
|
|
2346
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2347
|
-
var _a, _b, _c;
|
|
2348
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options);
|
|
2349
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2350
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2351
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2352
|
-
});
|
|
2353
|
-
},
|
|
2354
|
-
/**
|
|
2355
|
-
* OAUTH 流程验证回调
|
|
2356
|
-
* @param {string} [code]
|
|
2357
|
-
* @param {string} [state]
|
|
2358
|
-
* @param {number} [platform]
|
|
2359
|
-
* @param {*} [options] Override http request option.
|
|
2360
|
-
* @throws {RequiredError}
|
|
2361
|
-
*/
|
|
2362
|
-
userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
|
|
2363
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2364
|
-
var _a, _b, _c;
|
|
2365
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options);
|
|
2366
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2367
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowOAuthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2368
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2369
|
-
});
|
|
2370
|
-
},
|
|
2371
|
-
/**
|
|
2372
|
-
* Auth Token 刷新接口
|
|
2373
|
-
* @param {string} [refreshToken]
|
|
2374
|
-
* @param {string} [authAt]
|
|
2375
|
-
* @param {string} [nonce]
|
|
2376
|
-
* @param {string} [signature]
|
|
2377
|
-
* @param {*} [options] Override http request option.
|
|
2378
|
-
* @throws {RequiredError}
|
|
2379
|
-
*/
|
|
2380
|
-
userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
|
|
2381
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2382
|
-
var _a, _b, _c;
|
|
2383
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options);
|
|
2384
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2385
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowTokenRefresh']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2386
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2387
|
-
});
|
|
2388
|
-
},
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
/**
|
|
2392
|
-
* UserAuthServiceApi - factory interface
|
|
2393
|
-
*/
|
|
2394
|
-
export const UserAuthServiceApiFactory = function (configuration, basePath, axios) {
|
|
2395
|
-
const localVarFp = UserAuthServiceApiFp(configuration);
|
|
2396
|
-
return {
|
|
2397
|
-
/**
|
|
2398
|
-
* 提交验证码流程
|
|
2399
|
-
* @param {number} [authType]
|
|
2400
|
-
* @param {number} [authAction]
|
|
2401
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2402
|
-
* @param {string} [payloadEmailPayloadAuthCode]
|
|
2403
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2404
|
-
* @param {string} [authAt]
|
|
2405
|
-
* @param {string} [nonce]
|
|
2406
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
|
|
2407
|
-
* @param {*} [options] Override http request option.
|
|
2408
|
-
* @throws {RequiredError}
|
|
2409
|
-
*/
|
|
2410
|
-
userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
|
|
2411
|
-
return localVarFp.userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options).then((request) => request(axios, basePath));
|
|
2412
|
-
},
|
|
2413
|
-
/**
|
|
2414
|
-
* 鉴权流程启动
|
|
2415
|
-
* @param {number} [authType]
|
|
2416
|
-
* @param {number} [authAction]
|
|
2417
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2418
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2419
|
-
* @param {string} [payloadEmailPayloadDisplayName]
|
|
2420
|
-
* @param {number} [payloadOauth2PayloadPlatform]
|
|
2421
|
-
* @param {string} [authAt]
|
|
2422
|
-
* @param {string} [nonce]
|
|
2423
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
2424
|
-
* @param {*} [options] Override http request option.
|
|
2425
|
-
* @throws {RequiredError}
|
|
2426
|
-
*/
|
|
2427
|
-
userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
|
|
2428
|
-
return localVarFp.userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options).then((request) => request(axios, basePath));
|
|
2429
|
-
},
|
|
2430
|
-
/**
|
|
2431
|
-
* OAUTH 流程验证回调
|
|
2432
|
-
* @param {string} [code]
|
|
2433
|
-
* @param {string} [state]
|
|
2434
|
-
* @param {number} [platform]
|
|
2435
|
-
* @param {*} [options] Override http request option.
|
|
2436
|
-
* @throws {RequiredError}
|
|
2437
|
-
*/
|
|
2438
|
-
userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
|
|
2439
|
-
return localVarFp.userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options).then((request) => request(axios, basePath));
|
|
2440
|
-
},
|
|
2441
|
-
/**
|
|
2442
|
-
* Auth Token 刷新接口
|
|
2443
|
-
* @param {string} [refreshToken]
|
|
2444
|
-
* @param {string} [authAt]
|
|
2445
|
-
* @param {string} [nonce]
|
|
2446
|
-
* @param {string} [signature]
|
|
2447
|
-
* @param {*} [options] Override http request option.
|
|
2448
|
-
* @throws {RequiredError}
|
|
2449
|
-
*/
|
|
2450
|
-
userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
|
|
2451
|
-
return localVarFp.userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options).then((request) => request(axios, basePath));
|
|
2452
|
-
},
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
/**
|
|
2456
|
-
* UserAuthServiceApi - object-oriented interface
|
|
2457
|
-
*/
|
|
2458
|
-
export class UserAuthServiceApi extends BaseAPI {
|
|
2459
|
-
/**
|
|
2460
|
-
* 提交验证码流程
|
|
2461
|
-
* @param {number} [authType]
|
|
2462
|
-
* @param {number} [authAction]
|
|
2463
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2464
|
-
* @param {string} [payloadEmailPayloadAuthCode]
|
|
2465
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2466
|
-
* @param {string} [authAt]
|
|
2467
|
-
* @param {string} [nonce]
|
|
2468
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
|
|
2469
|
-
* @param {*} [options] Override http request option.
|
|
2470
|
-
* @throws {RequiredError}
|
|
2471
|
-
*/
|
|
2472
|
-
userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
|
|
2473
|
-
return UserAuthServiceApiFp(this.configuration).userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
|
|
2474
|
-
}
|
|
2475
|
-
/**
|
|
2476
|
-
* 鉴权流程启动
|
|
2477
|
-
* @param {number} [authType]
|
|
2478
|
-
* @param {number} [authAction]
|
|
2479
|
-
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2480
|
-
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2481
|
-
* @param {string} [payloadEmailPayloadDisplayName]
|
|
2482
|
-
* @param {number} [payloadOauth2PayloadPlatform]
|
|
2483
|
-
* @param {string} [authAt]
|
|
2484
|
-
* @param {string} [nonce]
|
|
2485
|
-
* @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
|
|
2486
|
-
* @param {*} [options] Override http request option.
|
|
2487
|
-
* @throws {RequiredError}
|
|
2488
|
-
*/
|
|
2489
|
-
userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
|
|
2490
|
-
return UserAuthServiceApiFp(this.configuration).userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
|
|
2491
|
-
}
|
|
2492
|
-
/**
|
|
2493
|
-
* OAUTH 流程验证回调
|
|
2494
|
-
* @param {string} [code]
|
|
2495
|
-
* @param {string} [state]
|
|
2496
|
-
* @param {number} [platform]
|
|
2497
|
-
* @param {*} [options] Override http request option.
|
|
2498
|
-
* @throws {RequiredError}
|
|
2499
|
-
*/
|
|
2500
|
-
userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
|
|
2501
|
-
return UserAuthServiceApiFp(this.configuration).userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options).then((request) => request(this.axios, this.basePath));
|
|
2502
|
-
}
|
|
2503
|
-
/**
|
|
2504
|
-
* Auth Token 刷新接口
|
|
2505
|
-
* @param {string} [refreshToken]
|
|
2506
|
-
* @param {string} [authAt]
|
|
2507
|
-
* @param {string} [nonce]
|
|
2508
|
-
* @param {string} [signature]
|
|
2509
|
-
* @param {*} [options] Override http request option.
|
|
2510
|
-
* @throws {RequiredError}
|
|
2511
|
-
*/
|
|
2512
|
-
userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
|
|
2513
|
-
return UserAuthServiceApiFp(this.configuration).userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
|
|
2514
|
-
}
|
|
2515
|
-
}
|
|
2516
4396
|
/**
|
|
2517
4397
|
* UserBalanceServiceApi - axios parameter creator
|
|
2518
4398
|
*/
|
|
@@ -3471,11 +5351,14 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3471
5351
|
/**
|
|
3472
5352
|
*
|
|
3473
5353
|
* @param {string} [currencyCode]
|
|
3474
|
-
* @param {
|
|
5354
|
+
* @param {string} [chargeAmount]
|
|
5355
|
+
* @param {boolean} [redirect]
|
|
5356
|
+
* @param {string} [successUrl]
|
|
5357
|
+
* @param {string} [cancelUrl]
|
|
3475
5358
|
* @param {*} [options] Override http request option.
|
|
3476
5359
|
* @throws {RequiredError}
|
|
3477
5360
|
*/
|
|
3478
|
-
userPayServiceUserPayStripeCheckout: (currencyCode_1, chargeAmount_1, ...args_1) => __awaiter(this, [currencyCode_1, chargeAmount_1, ...args_1], void 0, function* (currencyCode, chargeAmount, options = {}) {
|
|
5361
|
+
userPayServiceUserPayStripeCheckout: (currencyCode_1, chargeAmount_1, redirect_1, successUrl_1, cancelUrl_1, ...args_1) => __awaiter(this, [currencyCode_1, chargeAmount_1, redirect_1, successUrl_1, cancelUrl_1, ...args_1], void 0, function* (currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options = {}) {
|
|
3479
5362
|
const localVarPath = `/api/v1/user/pay/stripe/checkout`;
|
|
3480
5363
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3481
5364
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3487,10 +5370,19 @@ export const UserPayServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3487
5370
|
const localVarHeaderParameter = {};
|
|
3488
5371
|
const localVarQueryParameter = {};
|
|
3489
5372
|
if (currencyCode !== undefined) {
|
|
3490
|
-
localVarQueryParameter['
|
|
5373
|
+
localVarQueryParameter['currency_code'] = currencyCode;
|
|
3491
5374
|
}
|
|
3492
5375
|
if (chargeAmount !== undefined) {
|
|
3493
|
-
localVarQueryParameter['
|
|
5376
|
+
localVarQueryParameter['charge_amount'] = chargeAmount;
|
|
5377
|
+
}
|
|
5378
|
+
if (redirect !== undefined) {
|
|
5379
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
5380
|
+
}
|
|
5381
|
+
if (successUrl !== undefined) {
|
|
5382
|
+
localVarQueryParameter['success_url'] = successUrl;
|
|
5383
|
+
}
|
|
5384
|
+
if (cancelUrl !== undefined) {
|
|
5385
|
+
localVarQueryParameter['cancel_url'] = cancelUrl;
|
|
3494
5386
|
}
|
|
3495
5387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3496
5388
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -3511,14 +5403,17 @@ export const UserPayServiceApiFp = function (configuration) {
|
|
|
3511
5403
|
/**
|
|
3512
5404
|
*
|
|
3513
5405
|
* @param {string} [currencyCode]
|
|
3514
|
-
* @param {
|
|
5406
|
+
* @param {string} [chargeAmount]
|
|
5407
|
+
* @param {boolean} [redirect]
|
|
5408
|
+
* @param {string} [successUrl]
|
|
5409
|
+
* @param {string} [cancelUrl]
|
|
3515
5410
|
* @param {*} [options] Override http request option.
|
|
3516
5411
|
* @throws {RequiredError}
|
|
3517
5412
|
*/
|
|
3518
|
-
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
|
|
5413
|
+
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options) {
|
|
3519
5414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3520
5415
|
var _a, _b, _c;
|
|
3521
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options);
|
|
5416
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options);
|
|
3522
5417
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3523
5418
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPayServiceApi.userPayServiceUserPayStripeCheckout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3524
5419
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3535,12 +5430,15 @@ export const UserPayServiceApiFactory = function (configuration, basePath, axios
|
|
|
3535
5430
|
/**
|
|
3536
5431
|
*
|
|
3537
5432
|
* @param {string} [currencyCode]
|
|
3538
|
-
* @param {
|
|
5433
|
+
* @param {string} [chargeAmount]
|
|
5434
|
+
* @param {boolean} [redirect]
|
|
5435
|
+
* @param {string} [successUrl]
|
|
5436
|
+
* @param {string} [cancelUrl]
|
|
3539
5437
|
* @param {*} [options] Override http request option.
|
|
3540
5438
|
* @throws {RequiredError}
|
|
3541
5439
|
*/
|
|
3542
|
-
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
|
|
3543
|
-
return localVarFp.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options).then((request) => request(axios, basePath));
|
|
5440
|
+
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options) {
|
|
5441
|
+
return localVarFp.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options).then((request) => request(axios, basePath));
|
|
3544
5442
|
},
|
|
3545
5443
|
};
|
|
3546
5444
|
};
|
|
@@ -3551,12 +5449,15 @@ export class UserPayServiceApi extends BaseAPI {
|
|
|
3551
5449
|
/**
|
|
3552
5450
|
*
|
|
3553
5451
|
* @param {string} [currencyCode]
|
|
3554
|
-
* @param {
|
|
5452
|
+
* @param {string} [chargeAmount]
|
|
5453
|
+
* @param {boolean} [redirect]
|
|
5454
|
+
* @param {string} [successUrl]
|
|
5455
|
+
* @param {string} [cancelUrl]
|
|
3555
5456
|
* @param {*} [options] Override http request option.
|
|
3556
5457
|
* @throws {RequiredError}
|
|
3557
5458
|
*/
|
|
3558
|
-
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
|
|
3559
|
-
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options).then((request) => request(this.axios, this.basePath));
|
|
5459
|
+
userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options) {
|
|
5460
|
+
return UserPayServiceApiFp(this.configuration).userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, redirect, successUrl, cancelUrl, options).then((request) => request(this.axios, this.basePath));
|
|
3560
5461
|
}
|
|
3561
5462
|
}
|
|
3562
5463
|
/**
|