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