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