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