@cherryin/api-client 0.0.1

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 (155) hide show
  1. package/.openapi-generator/FILES +135 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +219 -0
  5. package/api.ts +6364 -0
  6. package/base.ts +62 -0
  7. package/common.ts +113 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +4175 -0
  10. package/dist/api.js +3694 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +28 -0
  14. package/dist/common.js +124 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +4175 -0
  18. package/dist/esm/api.js +3643 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +28 -0
  22. package/dist/esm/common.js +112 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/AIModel.md +45 -0
  30. package/docs/AIModelAdminServiceApi.md +398 -0
  31. package/docs/AIModelArchitecture.md +25 -0
  32. package/docs/AIModelCreateRequest.md +35 -0
  33. package/docs/AIModelCreateResponse.md +25 -0
  34. package/docs/AIModelDeleteRequest.md +21 -0
  35. package/docs/AIModelDeleteResponse.md +23 -0
  36. package/docs/AIModelDisableRequest.md +21 -0
  37. package/docs/AIModelDisableResponse.md +25 -0
  38. package/docs/AIModelDiscountConfig.md +21 -0
  39. package/docs/AIModelGetResponse.md +25 -0
  40. package/docs/AIModelListResponse.md +27 -0
  41. package/docs/AIModelMeta.md +25 -0
  42. package/docs/AIModelPricingConfig.md +37 -0
  43. package/docs/AIModelProviderConfigItem.md +29 -0
  44. package/docs/AIModelPublishRequest.md +21 -0
  45. package/docs/AIModelPublishResponse.md +25 -0
  46. package/docs/AIModelUpdateRequest.md +37 -0
  47. package/docs/AIModelUpdateResponse.md +25 -0
  48. package/docs/AWSAuth.md +24 -0
  49. package/docs/AdminAuthFlowInitResponse.md +24 -0
  50. package/docs/AdminAuthServiceApi.md +81 -0
  51. package/docs/AudioPricing.md +33 -0
  52. package/docs/AuthFlowResult.md +23 -0
  53. package/docs/AuthTokenPair.md +27 -0
  54. package/docs/DiscountAdminServiceApi.md +281 -0
  55. package/docs/DiscountCreateRequest.md +36 -0
  56. package/docs/DiscountDeleteRequest.md +20 -0
  57. package/docs/DiscountDeleteResponse.md +22 -0
  58. package/docs/DiscountGetResponse.md +24 -0
  59. package/docs/DiscountInfo.md +42 -0
  60. package/docs/DiscountListResponse.md +26 -0
  61. package/docs/DiscountUpdateRequest.md +38 -0
  62. package/docs/DiscountUpdateResponse.md +24 -0
  63. package/docs/FeatureCostPricing.md +27 -0
  64. package/docs/FrontAIModel.md +45 -0
  65. package/docs/GCPAuth.md +27 -0
  66. package/docs/GoogleProtobufAny.md +21 -0
  67. package/docs/ImagePricing.md +31 -0
  68. package/docs/Label.md +28 -0
  69. package/docs/LabelCreateRequest.md +22 -0
  70. package/docs/LabelCreateResponse.md +24 -0
  71. package/docs/LabelDeleteRequest.md +20 -0
  72. package/docs/LabelDeleteResponse.md +22 -0
  73. package/docs/LabelListRequest.md +24 -0
  74. package/docs/LabelListResponse.md +26 -0
  75. package/docs/LabelUpdateRequest.md +24 -0
  76. package/docs/LabelUpdateResponse.md +24 -0
  77. package/docs/MultimodalPricing.md +25 -0
  78. package/docs/PricingConditions.md +31 -0
  79. package/docs/PricingRules.md +29 -0
  80. package/docs/Provider.md +37 -0
  81. package/docs/ProviderAdminServiceApi.md +284 -0
  82. package/docs/ProviderAuth.md +29 -0
  83. package/docs/ProviderCreateRequest.md +29 -0
  84. package/docs/ProviderCreateResponse.md +25 -0
  85. package/docs/ProviderDeleteRequest.md +21 -0
  86. package/docs/ProviderDeleteResponse.md +23 -0
  87. package/docs/ProviderGetResponse.md +25 -0
  88. package/docs/ProviderListResponse.md +27 -0
  89. package/docs/ProviderModel.md +37 -0
  90. package/docs/ProviderModelAdminServiceApi.md +287 -0
  91. package/docs/ProviderModelCreateRequest.md +29 -0
  92. package/docs/ProviderModelCreateResponse.md +25 -0
  93. package/docs/ProviderModelDeleteRequest.md +21 -0
  94. package/docs/ProviderModelDeleteResponse.md +23 -0
  95. package/docs/ProviderModelGetResponse.md +25 -0
  96. package/docs/ProviderModelListResponse.md +27 -0
  97. package/docs/ProviderModelPayload.md +23 -0
  98. package/docs/ProviderModelUpdateRequest.md +31 -0
  99. package/docs/ProviderModelUpdateResponse.md +25 -0
  100. package/docs/ProviderPayload.md +21 -0
  101. package/docs/ProviderUpdateRequest.md +31 -0
  102. package/docs/ProviderUpdateResponse.md +25 -0
  103. package/docs/RequestPricing.md +23 -0
  104. package/docs/Status.md +25 -0
  105. package/docs/TextTokenInputPricing.md +27 -0
  106. package/docs/TextTokenOutputPricing.md +25 -0
  107. package/docs/TextTokenPricing.md +23 -0
  108. package/docs/TokenTier.md +25 -0
  109. package/docs/UserAPIKey.md +47 -0
  110. package/docs/UserAPIKeyCreateRequest.md +37 -0
  111. package/docs/UserAPIKeyCreateResponse.md +25 -0
  112. package/docs/UserAPIKeyDeleteRequest.md +21 -0
  113. package/docs/UserAPIKeyDeleteResponse.md +23 -0
  114. package/docs/UserAPIKeyGetResponse.md +25 -0
  115. package/docs/UserAPIKeyListResponse.md +27 -0
  116. package/docs/UserAPIKeyServiceApi.md +290 -0
  117. package/docs/UserAPIKeyUpdateRequest.md +33 -0
  118. package/docs/UserAPIKeyUpdateResponse.md +25 -0
  119. package/docs/UserAuthFlowCodeResponse.md +26 -0
  120. package/docs/UserAuthFlowInitResponse.md +28 -0
  121. package/docs/UserAuthFlowInitResponseOAuthResult.md +20 -0
  122. package/docs/UserAuthFlowOAuthCallbackRequest.md +24 -0
  123. package/docs/UserAuthFlowOAuthCallbackResponse.md +26 -0
  124. package/docs/UserAuthInfo.md +20 -0
  125. package/docs/UserAuthServiceApi.md +279 -0
  126. package/docs/UserBalance.md +42 -0
  127. package/docs/UserBalanceBrief.md +32 -0
  128. package/docs/UserBalanceChangeResponse.md +24 -0
  129. package/docs/UserBalanceEditResponse.md +24 -0
  130. package/docs/UserBalanceListResponse.md +26 -0
  131. package/docs/UserBalanceServiceApi.md +226 -0
  132. package/docs/UserInfo.md +26 -0
  133. package/docs/UserLabelItem.md +22 -0
  134. package/docs/UserLabelListResponse.md +26 -0
  135. package/docs/UserLabelPair.md +22 -0
  136. package/docs/UserLabelPairChangeAction.md +22 -0
  137. package/docs/UserLabelPairChangeRequest.md +20 -0
  138. package/docs/UserLabelPairChangeResponse.md +22 -0
  139. package/docs/UserLabelServiceApi.md +386 -0
  140. package/docs/UserMeInfo.md +24 -0
  141. package/docs/UserMeInfoResponse.md +24 -0
  142. package/docs/UserModelListResponse.md +33 -0
  143. package/docs/UserModelServiceApi.md +71 -0
  144. package/docs/UserPayServiceApi.md +62 -0
  145. package/docs/UserPayStripeCheckout.md +20 -0
  146. package/docs/UserPayStripeCheckoutResponse.md +24 -0
  147. package/docs/UserPoralServiceApi.md +52 -0
  148. package/docs/UserSettings.md +20 -0
  149. package/docs/VersionedAPISchema.md +31 -0
  150. package/docs/VideoPricing.md +33 -0
  151. package/git_push.sh +57 -0
  152. package/index.ts +18 -0
  153. package/package.json +36 -0
  154. package/tsconfig.esm.json +7 -0
  155. package/tsconfig.json +18 -0
package/dist/api.js ADDED
@@ -0,0 +1,3694 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ *
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
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;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ /**
33
+ * AIModelAdminServiceApi - axios parameter creator
34
+ */
35
+ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
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
39
+ * @param {AIModelCreateRequest} aIModelCreateRequest
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ aIModelAdminServiceAIModelCreate: (aIModelCreateRequest_1, ...args_1) => __awaiter(this, [aIModelCreateRequest_1, ...args_1], void 0, function* (aIModelCreateRequest, options = {}) {
44
+ // verify required parameter 'aIModelCreateRequest' is not null or undefined
45
+ (0, common_1.assertParamExists)('aIModelAdminServiceAIModelCreate', 'aIModelCreateRequest', aIModelCreateRequest);
46
+ const localVarPath = `/admin/ai-model/create`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
54
+ const localVarHeaderParameter = {};
55
+ const localVarQueryParameter = {};
56
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
58
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
60
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelCreateRequest, localVarRequestOptions, configuration);
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ /**
67
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
68
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ aIModelAdminServiceAIModelDelete: (aIModelDeleteRequest_1, ...args_1) => __awaiter(this, [aIModelDeleteRequest_1, ...args_1], void 0, function* (aIModelDeleteRequest, options = {}) {
73
+ // verify required parameter 'aIModelDeleteRequest' is not null or undefined
74
+ (0, common_1.assertParamExists)('aIModelAdminServiceAIModelDelete', 'aIModelDeleteRequest', aIModelDeleteRequest);
75
+ const localVarPath = `/admin/ai-model/delete`;
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ if (configuration) {
80
+ baseOptions = configuration.baseOptions;
81
+ }
82
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
83
+ const localVarHeaderParameter = {};
84
+ const localVarQueryParameter = {};
85
+ localVarHeaderParameter['Content-Type'] = 'application/json';
86
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
89
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelDeleteRequest, localVarRequestOptions, configuration);
90
+ return {
91
+ url: (0, common_1.toPathString)(localVarUrlObj),
92
+ options: localVarRequestOptions,
93
+ };
94
+ }),
95
+ /**
96
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
97
+ * @param {AIModelDisableRequest} aIModelDisableRequest
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ aIModelAdminServiceAIModelDisable: (aIModelDisableRequest_1, ...args_1) => __awaiter(this, [aIModelDisableRequest_1, ...args_1], void 0, function* (aIModelDisableRequest, options = {}) {
102
+ // verify required parameter 'aIModelDisableRequest' is not null or undefined
103
+ (0, common_1.assertParamExists)('aIModelAdminServiceAIModelDisable', 'aIModelDisableRequest', aIModelDisableRequest);
104
+ const localVarPath = `/admin/ai-model/disable`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
118
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelDisableRequest, localVarRequestOptions, configuration);
119
+ return {
120
+ url: (0, common_1.toPathString)(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ }),
124
+ /**
125
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
126
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
127
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ aIModelAdminServiceAIModelGet: (id_1, name_1, ...args_1) => __awaiter(this, [id_1, name_1, ...args_1], void 0, function* (id, name, options = {}) {
132
+ const localVarPath = `/admin/ai-model/get`;
133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
135
+ let baseOptions;
136
+ if (configuration) {
137
+ baseOptions = configuration.baseOptions;
138
+ }
139
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
140
+ const localVarHeaderParameter = {};
141
+ const localVarQueryParameter = {};
142
+ if (id !== undefined) {
143
+ localVarQueryParameter['id'] = id;
144
+ }
145
+ if (name !== undefined) {
146
+ localVarQueryParameter['name'] = name;
147
+ }
148
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
158
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
159
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
160
+ * @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\"
161
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\"
162
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ aIModelAdminServiceAIModelList: (page_1, pageSize_1, status_1, namePrefix_1, group_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, status_1, namePrefix_1, group_1, ...args_1], void 0, function* (page, pageSize, status, namePrefix, group, options = {}) {
167
+ const localVarPath = `/admin/ai-model/list`;
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
175
+ const localVarHeaderParameter = {};
176
+ const localVarQueryParameter = {};
177
+ if (page !== undefined) {
178
+ localVarQueryParameter['page'] = page;
179
+ }
180
+ if (pageSize !== undefined) {
181
+ localVarQueryParameter['page_size'] = pageSize;
182
+ }
183
+ if (status !== undefined) {
184
+ localVarQueryParameter['status'] = status;
185
+ }
186
+ if (namePrefix !== undefined) {
187
+ localVarQueryParameter['name_prefix'] = namePrefix;
188
+ }
189
+ if (group !== undefined) {
190
+ localVarQueryParameter['group'] = group;
191
+ }
192
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
195
+ return {
196
+ url: (0, common_1.toPathString)(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ };
199
+ }),
200
+ /**
201
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
202
+ * @param {AIModelPublishRequest} aIModelPublishRequest
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ aIModelAdminServiceAIModelPublish: (aIModelPublishRequest_1, ...args_1) => __awaiter(this, [aIModelPublishRequest_1, ...args_1], void 0, function* (aIModelPublishRequest, options = {}) {
207
+ // verify required parameter 'aIModelPublishRequest' is not null or undefined
208
+ (0, common_1.assertParamExists)('aIModelAdminServiceAIModelPublish', 'aIModelPublishRequest', aIModelPublishRequest);
209
+ const localVarPath = `/admin/ai-model/publish`;
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ localVarHeaderParameter['Content-Type'] = 'application/json';
220
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
223
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelPublishRequest, localVarRequestOptions, configuration);
224
+ return {
225
+ url: (0, common_1.toPathString)(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ }),
229
+ /**
230
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
231
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ aIModelAdminServiceAIModelUpdate: (aIModelUpdateRequest_1, ...args_1) => __awaiter(this, [aIModelUpdateRequest_1, ...args_1], void 0, function* (aIModelUpdateRequest, options = {}) {
236
+ // verify required parameter 'aIModelUpdateRequest' is not null or undefined
237
+ (0, common_1.assertParamExists)('aIModelAdminServiceAIModelUpdate', 'aIModelUpdateRequest', aIModelUpdateRequest);
238
+ const localVarPath = `/admin/ai-model/update`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ localVarHeaderParameter['Content-Type'] = 'application/json';
249
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
252
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelUpdateRequest, localVarRequestOptions, configuration);
253
+ return {
254
+ url: (0, common_1.toPathString)(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ }),
258
+ };
259
+ };
260
+ exports.AIModelAdminServiceApiAxiosParamCreator = AIModelAdminServiceApiAxiosParamCreator;
261
+ /**
262
+ * AIModelAdminServiceApi - functional programming interface
263
+ */
264
+ const AIModelAdminServiceApiFp = function (configuration) {
265
+ const localVarAxiosParamCreator = (0, exports.AIModelAdminServiceApiAxiosParamCreator)(configuration);
266
+ return {
267
+ /**
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
269
+ * @param {AIModelCreateRequest} aIModelCreateRequest
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ var _a, _b, _c;
276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options);
277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
278
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
279
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ });
281
+ },
282
+ /**
283
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
284
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ var _a, _b, _c;
291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options);
292
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
293
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
294
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
295
+ });
296
+ },
297
+ /**
298
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
299
+ * @param {AIModelDisableRequest} aIModelDisableRequest
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options) {
304
+ return __awaiter(this, void 0, void 0, function* () {
305
+ var _a, _b, _c;
306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options);
307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
308
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelDisable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
309
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
310
+ });
311
+ },
312
+ /**
313
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
314
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
315
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ aIModelAdminServiceAIModelGet(id, name, options) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ var _a, _b, _c;
322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelGet(id, name, options);
323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
+ });
327
+ },
328
+ /**
329
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
330
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
331
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
332
+ * @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\"
333
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\"
334
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ var _a, _b, _c;
341
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options);
342
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
343
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
344
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
345
+ });
346
+ },
347
+ /**
348
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
349
+ * @param {AIModelPublishRequest} aIModelPublishRequest
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ var _a, _b, _c;
356
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options);
357
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
358
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelPublish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
359
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
360
+ });
361
+ },
362
+ /**
363
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
364
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ var _a, _b, _c;
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options);
372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAIModelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
+ });
376
+ },
377
+ };
378
+ };
379
+ exports.AIModelAdminServiceApiFp = AIModelAdminServiceApiFp;
380
+ /**
381
+ * AIModelAdminServiceApi - factory interface
382
+ */
383
+ const AIModelAdminServiceApiFactory = function (configuration, basePath, axios) {
384
+ const localVarFp = (0, exports.AIModelAdminServiceApiFp)(configuration);
385
+ return {
386
+ /**
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
388
+ * @param {AIModelCreateRequest} aIModelCreateRequest
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options) {
393
+ return localVarFp.aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options).then((request) => request(axios, basePath));
394
+ },
395
+ /**
396
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
397
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options) {
402
+ return localVarFp.aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options).then((request) => request(axios, basePath));
403
+ },
404
+ /**
405
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
406
+ * @param {AIModelDisableRequest} aIModelDisableRequest
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options) {
411
+ return localVarFp.aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options).then((request) => request(axios, basePath));
412
+ },
413
+ /**
414
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
415
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
416
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ aIModelAdminServiceAIModelGet(id, name, options) {
421
+ return localVarFp.aIModelAdminServiceAIModelGet(id, name, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
425
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
426
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
427
+ * @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\"
428
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\"
429
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options) {
434
+ return localVarFp.aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options).then((request) => request(axios, basePath));
435
+ },
436
+ /**
437
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
438
+ * @param {AIModelPublishRequest} aIModelPublishRequest
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options) {
443
+ return localVarFp.aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options).then((request) => request(axios, basePath));
444
+ },
445
+ /**
446
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
447
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options) {
452
+ return localVarFp.aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(axios, basePath));
453
+ },
454
+ };
455
+ };
456
+ exports.AIModelAdminServiceApiFactory = AIModelAdminServiceApiFactory;
457
+ /**
458
+ * AIModelAdminServiceApi - object-oriented interface
459
+ */
460
+ class AIModelAdminServiceApi extends base_1.BaseAPI {
461
+ /**
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
463
+ * @param {AIModelCreateRequest} aIModelCreateRequest
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options) {
468
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelCreate(aIModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
469
+ }
470
+ /**
471
+ * AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
472
+ * @param {AIModelDeleteRequest} aIModelDeleteRequest
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options) {
477
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelDelete(aIModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
478
+ }
479
+ /**
480
+ * AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
481
+ * @param {AIModelDisableRequest} aIModelDisableRequest
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options) {
486
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelDisable(aIModelDisableRequest, options).then((request) => request(this.axios, this.basePath));
487
+ }
488
+ /**
489
+ * AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
490
+ * @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
491
+ * @param {string} [name] name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ aIModelAdminServiceAIModelGet(id, name, options) {
496
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelGet(id, name, options).then((request) => request(this.axios, this.basePath));
497
+ }
498
+ /**
499
+ * AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
500
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
501
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
502
+ * @param {number} [status] status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\"
503
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\"
504
+ * @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options) {
509
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelList(page, pageSize, status, namePrefix, group, options).then((request) => request(this.axios, this.basePath));
510
+ }
511
+ /**
512
+ * AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
513
+ * @param {AIModelPublishRequest} aIModelPublishRequest
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options) {
518
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelPublish(aIModelPublishRequest, options).then((request) => request(this.axios, this.basePath));
519
+ }
520
+ /**
521
+ * AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
522
+ * @param {AIModelUpdateRequest} aIModelUpdateRequest
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options) {
527
+ return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
528
+ }
529
+ }
530
+ exports.AIModelAdminServiceApi = AIModelAdminServiceApi;
531
+ /**
532
+ * AdminAuthServiceApi - axios parameter creator
533
+ */
534
+ const AdminAuthServiceApiAxiosParamCreator = function (configuration) {
535
+ return {
536
+ /**
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 = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
545
+ * @param {string} [sessionType] enum string: - tenant_admin - sys_admin
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
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`;
551
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
552
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
553
+ let baseOptions;
554
+ if (configuration) {
555
+ baseOptions = configuration.baseOptions;
556
+ }
557
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
558
+ const localVarHeaderParameter = {};
559
+ const localVarQueryParameter = {};
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;
583
+ }
584
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
586
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
587
+ return {
588
+ url: (0, common_1.toPathString)(localVarUrlObj),
589
+ options: localVarRequestOptions,
590
+ };
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 {
601
+ /**
602
+ * 管理员登录
603
+ * @param {number} [authType]
604
+ * @param {number} [authAction]
605
+ * @param {string} [payloadEmailPayloadUserEmail]
606
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
607
+ * @param {string} [authAt]
608
+ * @param {string} [nonce]
609
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
610
+ * @param {string} [sessionType] enum string: - tenant_admin - sys_admin
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
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 {
632
+ /**
633
+ * 管理员登录
634
+ * @param {number} [authType]
635
+ * @param {number} [authAction]
636
+ * @param {string} [payloadEmailPayloadUserEmail]
637
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
638
+ * @param {string} [authAt]
639
+ * @param {string} [nonce]
640
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
641
+ * @param {string} [sessionType] enum string: - tenant_admin - sys_admin
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
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 = \"cherryin_admin:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
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 {
678
+ /**
679
+ * DiscountCreate 创建折扣接口
680
+ * @param {DiscountCreateRequest} discountCreateRequest
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
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`;
688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
689
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
690
+ let baseOptions;
691
+ if (configuration) {
692
+ baseOptions = configuration.baseOptions;
693
+ }
694
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
695
+ const localVarHeaderParameter = {};
696
+ const localVarQueryParameter = {};
697
+ localVarHeaderParameter['Content-Type'] = 'application/json';
698
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
699
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
700
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
701
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(discountCreateRequest, localVarRequestOptions, configuration);
702
+ return {
703
+ url: (0, common_1.toPathString)(localVarUrlObj),
704
+ options: localVarRequestOptions,
705
+ };
706
+ }),
707
+ /**
708
+ * DiscountDelete 删除折扣接口
709
+ * @param {DiscountDeleteRequest} discountDeleteRequest
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ */
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`;
717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
718
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
719
+ let baseOptions;
720
+ if (configuration) {
721
+ baseOptions = configuration.baseOptions;
722
+ }
723
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
724
+ const localVarHeaderParameter = {};
725
+ const localVarQueryParameter = {};
726
+ localVarHeaderParameter['Content-Type'] = 'application/json';
727
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
729
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
730
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(discountDeleteRequest, localVarRequestOptions, configuration);
731
+ return {
732
+ url: (0, common_1.toPathString)(localVarUrlObj),
733
+ options: localVarRequestOptions,
734
+ };
735
+ }),
736
+ /**
737
+ * DiscountGet 获取折扣接口
738
+ * @param {string} [id] @gotags: form:\"id\"
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ discountAdminServiceDiscountGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
743
+ const localVarPath = `/admin/discount/get`;
744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
745
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
746
+ let baseOptions;
747
+ if (configuration) {
748
+ baseOptions = configuration.baseOptions;
749
+ }
750
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
751
+ const localVarHeaderParameter = {};
752
+ const localVarQueryParameter = {};
753
+ if (id !== undefined) {
754
+ localVarQueryParameter['id'] = id;
755
+ }
756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
759
+ return {
760
+ url: (0, common_1.toPathString)(localVarUrlObj),
761
+ options: localVarRequestOptions,
762
+ };
763
+ }),
764
+ /**
765
+ * DiscountList 折扣列表接口
766
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
767
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
768
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
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`;
774
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
775
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
776
+ let baseOptions;
777
+ if (configuration) {
778
+ baseOptions = configuration.baseOptions;
779
+ }
780
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
781
+ const localVarHeaderParameter = {};
782
+ const localVarQueryParameter = {};
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
+ }
792
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
794
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
795
+ return {
796
+ url: (0, common_1.toPathString)(localVarUrlObj),
797
+ options: localVarRequestOptions,
798
+ };
799
+ }),
800
+ /**
801
+ * DiscountUpdate 更新折扣接口
802
+ * @param {DiscountUpdateRequest} discountUpdateRequest
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
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`;
810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
811
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
812
+ let baseOptions;
813
+ if (configuration) {
814
+ baseOptions = configuration.baseOptions;
815
+ }
816
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
817
+ const localVarHeaderParameter = {};
818
+ const localVarQueryParameter = {};
819
+ localVarHeaderParameter['Content-Type'] = 'application/json';
820
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
822
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
823
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(discountUpdateRequest, localVarRequestOptions, configuration);
824
+ return {
825
+ url: (0, common_1.toPathString)(localVarUrlObj),
826
+ options: localVarRequestOptions,
827
+ };
828
+ }),
829
+ };
830
+ };
831
+ exports.DiscountAdminServiceApiAxiosParamCreator = DiscountAdminServiceApiAxiosParamCreator;
832
+ /**
833
+ * DiscountAdminServiceApi - functional programming interface
834
+ */
835
+ const DiscountAdminServiceApiFp = function (configuration) {
836
+ const localVarAxiosParamCreator = (0, exports.DiscountAdminServiceApiAxiosParamCreator)(configuration);
837
+ return {
838
+ /**
839
+ * DiscountCreate 创建折扣接口
840
+ * @param {DiscountCreateRequest} discountCreateRequest
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ discountAdminServiceDiscountCreate(discountCreateRequest, options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ var _a, _b, _c;
847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountCreate(discountCreateRequest, options);
848
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
849
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
850
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
851
+ });
852
+ },
853
+ /**
854
+ * DiscountDelete 删除折扣接口
855
+ * @param {DiscountDeleteRequest} discountDeleteRequest
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
860
+ return __awaiter(this, void 0, void 0, function* () {
861
+ var _a, _b, _c;
862
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountDelete(discountDeleteRequest, options);
863
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
864
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
865
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
866
+ });
867
+ },
868
+ /**
869
+ * DiscountGet 获取折扣接口
870
+ * @param {string} [id] @gotags: form:\"id\"
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ discountAdminServiceDiscountGet(id, options) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ var _a, _b, _c;
877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountGet(id, options);
878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
879
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
880
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
881
+ });
882
+ },
883
+ /**
884
+ * DiscountList 折扣列表接口
885
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
886
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
887
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ discountAdminServiceDiscountList(page, pageSize, namePrefix, options) {
892
+ return __awaiter(this, void 0, void 0, function* () {
893
+ var _a, _b, _c;
894
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountList(page, pageSize, namePrefix, options);
895
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
896
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
897
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
898
+ });
899
+ },
900
+ /**
901
+ * DiscountUpdate 更新折扣接口
902
+ * @param {DiscountUpdateRequest} discountUpdateRequest
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ var _a, _b, _c;
909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discountAdminServiceDiscountUpdate(discountUpdateRequest, options);
910
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
911
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DiscountAdminServiceApi.discountAdminServiceDiscountUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
912
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
913
+ });
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 {
924
+ /**
925
+ * DiscountCreate 创建折扣接口
926
+ * @param {DiscountCreateRequest} discountCreateRequest
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ discountAdminServiceDiscountCreate(discountCreateRequest, options) {
931
+ return localVarFp.discountAdminServiceDiscountCreate(discountCreateRequest, options).then((request) => request(axios, basePath));
932
+ },
933
+ /**
934
+ * DiscountDelete 删除折扣接口
935
+ * @param {DiscountDeleteRequest} discountDeleteRequest
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
940
+ return localVarFp.discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(axios, basePath));
941
+ },
942
+ /**
943
+ * DiscountGet 获取折扣接口
944
+ * @param {string} [id] @gotags: form:\"id\"
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ discountAdminServiceDiscountGet(id, options) {
949
+ return localVarFp.discountAdminServiceDiscountGet(id, options).then((request) => request(axios, basePath));
950
+ },
951
+ /**
952
+ * DiscountList 折扣列表接口
953
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
954
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
955
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ discountAdminServiceDiscountList(page, pageSize, namePrefix, options) {
960
+ return localVarFp.discountAdminServiceDiscountList(page, pageSize, namePrefix, options).then((request) => request(axios, basePath));
961
+ },
962
+ /**
963
+ * DiscountUpdate 更新折扣接口
964
+ * @param {DiscountUpdateRequest} discountUpdateRequest
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
969
+ return localVarFp.discountAdminServiceDiscountUpdate(discountUpdateRequest, options).then((request) => request(axios, basePath));
970
+ },
971
+ };
972
+ };
973
+ exports.DiscountAdminServiceApiFactory = DiscountAdminServiceApiFactory;
974
+ /**
975
+ * DiscountAdminServiceApi - object-oriented interface
976
+ */
977
+ class DiscountAdminServiceApi extends base_1.BaseAPI {
978
+ /**
979
+ * DiscountCreate 创建折扣接口
980
+ * @param {DiscountCreateRequest} discountCreateRequest
981
+ * @param {*} [options] Override http request option.
982
+ * @throws {RequiredError}
983
+ */
984
+ discountAdminServiceDiscountCreate(discountCreateRequest, options) {
985
+ return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountCreate(discountCreateRequest, options).then((request) => request(this.axios, this.basePath));
986
+ }
987
+ /**
988
+ * DiscountDelete 删除折扣接口
989
+ * @param {DiscountDeleteRequest} discountDeleteRequest
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ discountAdminServiceDiscountDelete(discountDeleteRequest, options) {
994
+ return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountDelete(discountDeleteRequest, options).then((request) => request(this.axios, this.basePath));
995
+ }
996
+ /**
997
+ * DiscountGet 获取折扣接口
998
+ * @param {string} [id] @gotags: form:\"id\"
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ */
1002
+ discountAdminServiceDiscountGet(id, options) {
1003
+ return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountGet(id, options).then((request) => request(this.axios, this.basePath));
1004
+ }
1005
+ /**
1006
+ * DiscountList 折扣列表接口
1007
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1008
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1009
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
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));
1015
+ }
1016
+ /**
1017
+ * DiscountUpdate 更新折扣接口
1018
+ * @param {DiscountUpdateRequest} discountUpdateRequest
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ discountAdminServiceDiscountUpdate(discountUpdateRequest, options) {
1023
+ return (0, exports.DiscountAdminServiceApiFp)(this.configuration).discountAdminServiceDiscountUpdate(discountUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1024
+ }
1025
+ }
1026
+ exports.DiscountAdminServiceApi = DiscountAdminServiceApi;
1027
+ /**
1028
+ * ProviderAdminServiceApi - axios parameter creator
1029
+ */
1030
+ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
1031
+ return {
1032
+ /**
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
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
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`;
1042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1043
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1044
+ let baseOptions;
1045
+ if (configuration) {
1046
+ baseOptions = configuration.baseOptions;
1047
+ }
1048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1049
+ const localVarHeaderParameter = {};
1050
+ const localVarQueryParameter = {};
1051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1052
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1053
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1054
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1055
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerCreateRequest, localVarRequestOptions, configuration);
1056
+ return {
1057
+ url: (0, common_1.toPathString)(localVarUrlObj),
1058
+ options: localVarRequestOptions,
1059
+ };
1060
+ }),
1061
+ /**
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
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ */
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`;
1071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1072
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1073
+ let baseOptions;
1074
+ if (configuration) {
1075
+ baseOptions = configuration.baseOptions;
1076
+ }
1077
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1078
+ const localVarHeaderParameter = {};
1079
+ const localVarQueryParameter = {};
1080
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1081
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1082
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1083
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1084
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerDeleteRequest, localVarRequestOptions, configuration);
1085
+ return {
1086
+ url: (0, common_1.toPathString)(localVarUrlObj),
1087
+ options: localVarRequestOptions,
1088
+ };
1089
+ }),
1090
+ /**
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:\"id\" binding:\"required\"
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ providerAdminServiceProviderGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1097
+ const localVarPath = `/admin/provider/get`;
1098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1099
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1100
+ let baseOptions;
1101
+ if (configuration) {
1102
+ baseOptions = configuration.baseOptions;
1103
+ }
1104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1105
+ const localVarHeaderParameter = {};
1106
+ const localVarQueryParameter = {};
1107
+ if (id !== undefined) {
1108
+ localVarQueryParameter['id'] = id;
1109
+ }
1110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1113
+ return {
1114
+ url: (0, common_1.toPathString)(localVarUrlObj),
1115
+ options: localVarRequestOptions,
1116
+ };
1117
+ }),
1118
+ /**
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
1120
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1121
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
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:\"provider_status\"
1123
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ */
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`;
1129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1130
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1131
+ let baseOptions;
1132
+ if (configuration) {
1133
+ baseOptions = configuration.baseOptions;
1134
+ }
1135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1136
+ const localVarHeaderParameter = {};
1137
+ const localVarQueryParameter = {};
1138
+ if (page !== undefined) {
1139
+ localVarQueryParameter['page'] = page;
1140
+ }
1141
+ if (pageSize !== undefined) {
1142
+ localVarQueryParameter['page_size'] = pageSize;
1143
+ }
1144
+ if (providerStatus !== undefined) {
1145
+ localVarQueryParameter['provider_status'] = providerStatus;
1146
+ }
1147
+ if (namePrefix !== undefined) {
1148
+ localVarQueryParameter['name_prefix'] = namePrefix;
1149
+ }
1150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1152
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1153
+ return {
1154
+ url: (0, common_1.toPathString)(localVarUrlObj),
1155
+ options: localVarRequestOptions,
1156
+ };
1157
+ }),
1158
+ /**
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
1161
+ * @param {*} [options] Override http request option.
1162
+ * @throws {RequiredError}
1163
+ */
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`;
1168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1169
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1170
+ let baseOptions;
1171
+ if (configuration) {
1172
+ baseOptions = configuration.baseOptions;
1173
+ }
1174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1175
+ const localVarHeaderParameter = {};
1176
+ const localVarQueryParameter = {};
1177
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1178
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1180
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1181
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerUpdateRequest, localVarRequestOptions, configuration);
1182
+ return {
1183
+ url: (0, common_1.toPathString)(localVarUrlObj),
1184
+ options: localVarRequestOptions,
1185
+ };
1186
+ }),
1187
+ };
1188
+ };
1189
+ exports.ProviderAdminServiceApiAxiosParamCreator = ProviderAdminServiceApiAxiosParamCreator;
1190
+ /**
1191
+ * ProviderAdminServiceApi - functional programming interface
1192
+ */
1193
+ const ProviderAdminServiceApiFp = function (configuration) {
1194
+ const localVarAxiosParamCreator = (0, exports.ProviderAdminServiceApiAxiosParamCreator)(configuration);
1195
+ return {
1196
+ /**
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
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ providerAdminServiceProviderCreate(providerCreateRequest, options) {
1203
+ return __awaiter(this, void 0, void 0, function* () {
1204
+ var _a, _b, _c;
1205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderCreate(providerCreateRequest, options);
1206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1207
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1208
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1209
+ });
1210
+ },
1211
+ /**
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
1214
+ * @param {*} [options] Override http request option.
1215
+ * @throws {RequiredError}
1216
+ */
1217
+ providerAdminServiceProviderDelete(providerDeleteRequest, options) {
1218
+ return __awaiter(this, void 0, void 0, function* () {
1219
+ var _a, _b, _c;
1220
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderDelete(providerDeleteRequest, options);
1221
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1222
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1223
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1224
+ });
1225
+ },
1226
+ /**
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:\"id\" binding:\"required\"
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ */
1232
+ providerAdminServiceProviderGet(id, options) {
1233
+ return __awaiter(this, void 0, void 0, function* () {
1234
+ var _a, _b, _c;
1235
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderGet(id, options);
1236
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1237
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1238
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1239
+ });
1240
+ },
1241
+ /**
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
1243
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1244
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
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:\"provider_status\"
1246
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ */
1250
+ providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options) {
1251
+ return __awaiter(this, void 0, void 0, function* () {
1252
+ var _a, _b, _c;
1253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options);
1254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1255
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1257
+ });
1258
+ },
1259
+ /**
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
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
1266
+ return __awaiter(this, void 0, void 0, function* () {
1267
+ var _a, _b, _c;
1268
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceProviderUpdate(providerUpdateRequest, options);
1269
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1270
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceProviderUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1271
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1272
+ });
1273
+ },
1274
+ };
1275
+ };
1276
+ exports.ProviderAdminServiceApiFp = ProviderAdminServiceApiFp;
1277
+ /**
1278
+ * ProviderAdminServiceApi - factory interface
1279
+ */
1280
+ const ProviderAdminServiceApiFactory = function (configuration, basePath, axios) {
1281
+ const localVarFp = (0, exports.ProviderAdminServiceApiFp)(configuration);
1282
+ return {
1283
+ /**
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
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ */
1289
+ providerAdminServiceProviderCreate(providerCreateRequest, options) {
1290
+ return localVarFp.providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(axios, basePath));
1291
+ },
1292
+ /**
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
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ providerAdminServiceProviderDelete(providerDeleteRequest, options) {
1299
+ return localVarFp.providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(axios, basePath));
1300
+ },
1301
+ /**
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:\"id\" binding:\"required\"
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ providerAdminServiceProviderGet(id, options) {
1308
+ return localVarFp.providerAdminServiceProviderGet(id, options).then((request) => request(axios, basePath));
1309
+ },
1310
+ /**
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
1312
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1313
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
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:\"provider_status\"
1315
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ */
1319
+ providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options) {
1320
+ return localVarFp.providerAdminServiceProviderList(page, pageSize, providerStatus, namePrefix, options).then((request) => request(axios, basePath));
1321
+ },
1322
+ /**
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
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ */
1328
+ providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
1329
+ return localVarFp.providerAdminServiceProviderUpdate(providerUpdateRequest, options).then((request) => request(axios, basePath));
1330
+ },
1331
+ };
1332
+ };
1333
+ exports.ProviderAdminServiceApiFactory = ProviderAdminServiceApiFactory;
1334
+ /**
1335
+ * ProviderAdminServiceApi - object-oriented interface
1336
+ */
1337
+ class ProviderAdminServiceApi extends base_1.BaseAPI {
1338
+ /**
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
1341
+ * @param {*} [options] Override http request option.
1342
+ * @throws {RequiredError}
1343
+ */
1344
+ providerAdminServiceProviderCreate(providerCreateRequest, options) {
1345
+ return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderCreate(providerCreateRequest, options).then((request) => request(this.axios, this.basePath));
1346
+ }
1347
+ /**
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
1350
+ * @param {*} [options] Override http request option.
1351
+ * @throws {RequiredError}
1352
+ */
1353
+ providerAdminServiceProviderDelete(providerDeleteRequest, options) {
1354
+ return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderDelete(providerDeleteRequest, options).then((request) => request(this.axios, this.basePath));
1355
+ }
1356
+ /**
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:\"id\" binding:\"required\"
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ providerAdminServiceProviderGet(id, options) {
1363
+ return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderGet(id, options).then((request) => request(this.axios, this.basePath));
1364
+ }
1365
+ /**
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
1367
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1368
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
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:\"provider_status\"
1370
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 Example: \"openai\" matches \"openai-prod-1\", \"openai-dev-1\", etc. @gotags: form:\"name_prefix\"
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ */
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));
1376
+ }
1377
+ /**
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
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ */
1383
+ providerAdminServiceProviderUpdate(providerUpdateRequest, options) {
1384
+ return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceProviderUpdate(providerUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1385
+ }
1386
+ }
1387
+ exports.ProviderAdminServiceApi = ProviderAdminServiceApi;
1388
+ /**
1389
+ * ProviderModelAdminServiceApi - axios parameter creator
1390
+ */
1391
+ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
1392
+ return {
1393
+ /**
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
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ */
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`;
1403
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1404
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1405
+ let baseOptions;
1406
+ if (configuration) {
1407
+ baseOptions = configuration.baseOptions;
1408
+ }
1409
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1410
+ const localVarHeaderParameter = {};
1411
+ const localVarQueryParameter = {};
1412
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1413
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1414
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1415
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1416
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerModelCreateRequest, localVarRequestOptions, configuration);
1417
+ return {
1418
+ url: (0, common_1.toPathString)(localVarUrlObj),
1419
+ options: localVarRequestOptions,
1420
+ };
1421
+ }),
1422
+ /**
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
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
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`;
1432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1433
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1434
+ let baseOptions;
1435
+ if (configuration) {
1436
+ baseOptions = configuration.baseOptions;
1437
+ }
1438
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1439
+ const localVarHeaderParameter = {};
1440
+ const localVarQueryParameter = {};
1441
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1442
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1444
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1445
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerModelDeleteRequest, localVarRequestOptions, configuration);
1446
+ return {
1447
+ url: (0, common_1.toPathString)(localVarUrlObj),
1448
+ options: localVarRequestOptions,
1449
+ };
1450
+ }),
1451
+ /**
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:\"id\" binding:\"required\"
1454
+ * @param {*} [options] Override http request option.
1455
+ * @throws {RequiredError}
1456
+ */
1457
+ providerModelAdminServiceProviderModelGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1458
+ const localVarPath = `/admin/provider-model/get`;
1459
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1460
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1461
+ let baseOptions;
1462
+ if (configuration) {
1463
+ baseOptions = configuration.baseOptions;
1464
+ }
1465
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1466
+ const localVarHeaderParameter = {};
1467
+ const localVarQueryParameter = {};
1468
+ if (id !== undefined) {
1469
+ localVarQueryParameter['id'] = id;
1470
+ }
1471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1472
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1473
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1474
+ return {
1475
+ url: (0, common_1.toPathString)(localVarUrlObj),
1476
+ options: localVarRequestOptions,
1477
+ };
1478
+ }),
1479
+ /**
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:\"page\"
1482
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1483
+ * @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
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:\"status\"
1485
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
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`;
1491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1492
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1493
+ let baseOptions;
1494
+ if (configuration) {
1495
+ baseOptions = configuration.baseOptions;
1496
+ }
1497
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1498
+ const localVarHeaderParameter = {};
1499
+ const localVarQueryParameter = {};
1500
+ if (page !== undefined) {
1501
+ localVarQueryParameter['page'] = page;
1502
+ }
1503
+ if (pageSize !== undefined) {
1504
+ localVarQueryParameter['page_size'] = pageSize;
1505
+ }
1506
+ if (providerId !== undefined) {
1507
+ localVarQueryParameter['provider_id'] = providerId;
1508
+ }
1509
+ if (status !== undefined) {
1510
+ localVarQueryParameter['status'] = status;
1511
+ }
1512
+ if (namePrefix !== undefined) {
1513
+ localVarQueryParameter['name_prefix'] = namePrefix;
1514
+ }
1515
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1517
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1518
+ return {
1519
+ url: (0, common_1.toPathString)(localVarUrlObj),
1520
+ options: localVarRequestOptions,
1521
+ };
1522
+ }),
1523
+ /**
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
1526
+ * @param {*} [options] Override http request option.
1527
+ * @throws {RequiredError}
1528
+ */
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`;
1533
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1534
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1535
+ let baseOptions;
1536
+ if (configuration) {
1537
+ baseOptions = configuration.baseOptions;
1538
+ }
1539
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1540
+ const localVarHeaderParameter = {};
1541
+ const localVarQueryParameter = {};
1542
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1545
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1546
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(providerModelUpdateRequest, localVarRequestOptions, configuration);
1547
+ return {
1548
+ url: (0, common_1.toPathString)(localVarUrlObj),
1549
+ options: localVarRequestOptions,
1550
+ };
1551
+ }),
1552
+ };
1553
+ };
1554
+ exports.ProviderModelAdminServiceApiAxiosParamCreator = ProviderModelAdminServiceApiAxiosParamCreator;
1555
+ /**
1556
+ * ProviderModelAdminServiceApi - functional programming interface
1557
+ */
1558
+ const ProviderModelAdminServiceApiFp = function (configuration) {
1559
+ const localVarAxiosParamCreator = (0, exports.ProviderModelAdminServiceApiAxiosParamCreator)(configuration);
1560
+ return {
1561
+ /**
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
1564
+ * @param {*} [options] Override http request option.
1565
+ * @throws {RequiredError}
1566
+ */
1567
+ providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
1568
+ return __awaiter(this, void 0, void 0, function* () {
1569
+ var _a, _b, _c;
1570
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options);
1571
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1572
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1573
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1574
+ });
1575
+ },
1576
+ /**
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
1579
+ * @param {*} [options] Override http request option.
1580
+ * @throws {RequiredError}
1581
+ */
1582
+ providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
1583
+ return __awaiter(this, void 0, void 0, function* () {
1584
+ var _a, _b, _c;
1585
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options);
1586
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1587
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1588
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1589
+ });
1590
+ },
1591
+ /**
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:\"id\" binding:\"required\"
1594
+ * @param {*} [options] Override http request option.
1595
+ * @throws {RequiredError}
1596
+ */
1597
+ providerModelAdminServiceProviderModelGet(id, options) {
1598
+ return __awaiter(this, void 0, void 0, function* () {
1599
+ var _a, _b, _c;
1600
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelGet(id, options);
1601
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1602
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1603
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1604
+ });
1605
+ },
1606
+ /**
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:\"page\"
1609
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1610
+ * @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
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:\"status\"
1612
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
1613
+ * @param {*} [options] Override http request option.
1614
+ * @throws {RequiredError}
1615
+ */
1616
+ providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options) {
1617
+ return __awaiter(this, void 0, void 0, function* () {
1618
+ var _a, _b, _c;
1619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options);
1620
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1621
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1622
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1623
+ });
1624
+ },
1625
+ /**
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
1628
+ * @param {*} [options] Override http request option.
1629
+ * @throws {RequiredError}
1630
+ */
1631
+ providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
1632
+ return __awaiter(this, void 0, void 0, function* () {
1633
+ var _a, _b, _c;
1634
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options);
1635
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1636
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceProviderModelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1637
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1638
+ });
1639
+ },
1640
+ };
1641
+ };
1642
+ exports.ProviderModelAdminServiceApiFp = ProviderModelAdminServiceApiFp;
1643
+ /**
1644
+ * ProviderModelAdminServiceApi - factory interface
1645
+ */
1646
+ const ProviderModelAdminServiceApiFactory = function (configuration, basePath, axios) {
1647
+ const localVarFp = (0, exports.ProviderModelAdminServiceApiFp)(configuration);
1648
+ return {
1649
+ /**
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
1652
+ * @param {*} [options] Override http request option.
1653
+ * @throws {RequiredError}
1654
+ */
1655
+ providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
1656
+ return localVarFp.providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options).then((request) => request(axios, basePath));
1657
+ },
1658
+ /**
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
1661
+ * @param {*} [options] Override http request option.
1662
+ * @throws {RequiredError}
1663
+ */
1664
+ providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
1665
+ return localVarFp.providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(axios, basePath));
1666
+ },
1667
+ /**
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:\"id\" binding:\"required\"
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ providerModelAdminServiceProviderModelGet(id, options) {
1674
+ return localVarFp.providerModelAdminServiceProviderModelGet(id, options).then((request) => request(axios, basePath));
1675
+ },
1676
+ /**
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:\"page\"
1679
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1680
+ * @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
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:\"status\"
1682
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
1683
+ * @param {*} [options] Override http request option.
1684
+ * @throws {RequiredError}
1685
+ */
1686
+ providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options) {
1687
+ return localVarFp.providerModelAdminServiceProviderModelList(page, pageSize, providerId, status, namePrefix, options).then((request) => request(axios, basePath));
1688
+ },
1689
+ /**
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
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ */
1695
+ providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
1696
+ return localVarFp.providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options).then((request) => request(axios, basePath));
1697
+ },
1698
+ };
1699
+ };
1700
+ exports.ProviderModelAdminServiceApiFactory = ProviderModelAdminServiceApiFactory;
1701
+ /**
1702
+ * ProviderModelAdminServiceApi - object-oriented interface
1703
+ */
1704
+ class ProviderModelAdminServiceApi extends base_1.BaseAPI {
1705
+ /**
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
1708
+ * @param {*} [options] Override http request option.
1709
+ * @throws {RequiredError}
1710
+ */
1711
+ providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options) {
1712
+ return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelCreate(providerModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
1713
+ }
1714
+ /**
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
1717
+ * @param {*} [options] Override http request option.
1718
+ * @throws {RequiredError}
1719
+ */
1720
+ providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options) {
1721
+ return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
1722
+ }
1723
+ /**
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:\"id\" binding:\"required\"
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ */
1729
+ providerModelAdminServiceProviderModelGet(id, options) {
1730
+ return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelGet(id, options).then((request) => request(this.axios, this.basePath));
1731
+ }
1732
+ /**
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:\"page\"
1735
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1736
+ * @param {string} [providerId] provider_id 按 Provider ID 过滤(可选) Filter by Provider ID (optional) 0: 返回所有 Provider 的模型 > 0: 仅返回指定 Provider 的模型 0: return models from all providers > 0: return models from specific provider only @gotags: form:\"provider_id\"
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:\"status\"
1738
+ * @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4-turbo\", \"gpt-4-vision\" 等 Example: \"gpt-4\" matches \"gpt-4-turbo\", \"gpt-4-vision\", etc. @gotags: form:\"name_prefix\"
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ */
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));
1744
+ }
1745
+ /**
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
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ */
1751
+ providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options) {
1752
+ return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1753
+ }
1754
+ }
1755
+ exports.ProviderModelAdminServiceApi = ProviderModelAdminServiceApi;
1756
+ /**
1757
+ * UserAPIKeyServiceApi - axios parameter creator
1758
+ */
1759
+ const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
1760
+ return {
1761
+ /**
1762
+ * UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
1763
+ * @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ userAPIKeyServiceUserAPIKeyCreate: (userAPIKeyCreateRequest_1, ...args_1) => __awaiter(this, [userAPIKeyCreateRequest_1, ...args_1], void 0, function* (userAPIKeyCreateRequest, options = {}) {
1768
+ // verify required parameter 'userAPIKeyCreateRequest' is not null or undefined
1769
+ (0, common_1.assertParamExists)('userAPIKeyServiceUserAPIKeyCreate', 'userAPIKeyCreateRequest', userAPIKeyCreateRequest);
1770
+ const localVarPath = `/api/v1/user/api-key/create`;
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)(userAPIKeyCreateRequest, localVarRequestOptions, configuration);
1785
+ return {
1786
+ url: (0, common_1.toPathString)(localVarUrlObj),
1787
+ options: localVarRequestOptions,
1788
+ };
1789
+ }),
1790
+ /**
1791
+ * UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft delete) 请求路径: POST /api/user/api-key/delete Request path: POST /api/user/api-key/delete 权限要求: 需要用户认证 Permission: Requires user authentication
1792
+ * @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
1793
+ * @param {*} [options] Override http request option.
1794
+ * @throws {RequiredError}
1795
+ */
1796
+ userAPIKeyServiceUserAPIKeyDelete: (userAPIKeyDeleteRequest_1, ...args_1) => __awaiter(this, [userAPIKeyDeleteRequest_1, ...args_1], void 0, function* (userAPIKeyDeleteRequest, options = {}) {
1797
+ // verify required parameter 'userAPIKeyDeleteRequest' is not null or undefined
1798
+ (0, common_1.assertParamExists)('userAPIKeyServiceUserAPIKeyDelete', 'userAPIKeyDeleteRequest', userAPIKeyDeleteRequest);
1799
+ const localVarPath = `/api/v1/user/api-key/delete`;
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: 'POST' }, baseOptions), options);
1807
+ const localVarHeaderParameter = {};
1808
+ const localVarQueryParameter = {};
1809
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1810
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1811
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1812
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1813
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userAPIKeyDeleteRequest, localVarRequestOptions, configuration);
1814
+ return {
1815
+ url: (0, common_1.toPathString)(localVarUrlObj),
1816
+ options: localVarRequestOptions,
1817
+ };
1818
+ }),
1819
+ /**
1820
+ * UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Retrieve a single UserAPIKey by ID or name 请求路径: GET /api/user/api-key/get?id={id} 或 GET /api/user/api-key/get?name={name} Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name} 权限要求: 需要用户认证 Permission: Requires user authentication
1821
+ * @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
1822
+ * @param {string} [name] name 要获取的 UserAPIKey 的名称 Name of the UserAPIKey to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ userAPIKeyServiceUserAPIKeyGet: (id_1, name_1, ...args_1) => __awaiter(this, [id_1, name_1, ...args_1], void 0, function* (id, name, options = {}) {
1827
+ const localVarPath = `/api/v1/user/api-key/get`;
1828
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1829
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1830
+ let baseOptions;
1831
+ if (configuration) {
1832
+ baseOptions = configuration.baseOptions;
1833
+ }
1834
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1835
+ const localVarHeaderParameter = {};
1836
+ const localVarQueryParameter = {};
1837
+ if (id !== undefined) {
1838
+ localVarQueryParameter['id'] = id;
1839
+ }
1840
+ if (name !== undefined) {
1841
+ localVarQueryParameter['name'] = name;
1842
+ }
1843
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1845
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1846
+ return {
1847
+ url: (0, common_1.toPathString)(localVarUrlObj),
1848
+ options: localVarRequestOptions,
1849
+ };
1850
+ }),
1851
+ /**
1852
+ * UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 List UserAPIKeys with pagination, supports filtering by status and key group 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} Request path: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} 权限要求: 需要用户认证 Permission: Requires user authentication
1853
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1854
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1855
+ * @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) Filter by user ID (optional, admin only) 0: 返回所有用户的 API Key(仅管理员) > 0: 仅返回指定用户的 API Key 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
1856
+ * @param {string} [keyStatus] key_status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key 0: return all statuses 1: return enabled API keys only 2: return disabled API keys only @gotags: form:\"key_status\"
1857
+ * @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ userAPIKeyServiceUserAPIKeyList: (page_1, pageSize_1, uid_1, keyStatus_1, keyGroup_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uid_1, keyStatus_1, keyGroup_1, ...args_1], void 0, function* (page, pageSize, uid, keyStatus, keyGroup, options = {}) {
1862
+ const localVarPath = `/api/v1/user/api-key/list`;
1863
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1864
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1865
+ let baseOptions;
1866
+ if (configuration) {
1867
+ baseOptions = configuration.baseOptions;
1868
+ }
1869
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1870
+ const localVarHeaderParameter = {};
1871
+ const localVarQueryParameter = {};
1872
+ if (page !== undefined) {
1873
+ localVarQueryParameter['page'] = page;
1874
+ }
1875
+ if (pageSize !== undefined) {
1876
+ localVarQueryParameter['page_size'] = pageSize;
1877
+ }
1878
+ if (uid !== undefined) {
1879
+ localVarQueryParameter['uid'] = uid;
1880
+ }
1881
+ if (keyStatus !== undefined) {
1882
+ localVarQueryParameter['key_status'] = keyStatus;
1883
+ }
1884
+ if (keyGroup !== undefined) {
1885
+ localVarQueryParameter['key_group'] = keyGroup;
1886
+ }
1887
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1890
+ return {
1891
+ url: (0, common_1.toPathString)(localVarUrlObj),
1892
+ options: localVarRequestOptions,
1893
+ };
1894
+ }),
1895
+ /**
1896
+ * UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
1897
+ * @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ userAPIKeyServiceUserAPIKeyUpdate: (userAPIKeyUpdateRequest_1, ...args_1) => __awaiter(this, [userAPIKeyUpdateRequest_1, ...args_1], void 0, function* (userAPIKeyUpdateRequest, options = {}) {
1902
+ // verify required parameter 'userAPIKeyUpdateRequest' is not null or undefined
1903
+ (0, common_1.assertParamExists)('userAPIKeyServiceUserAPIKeyUpdate', 'userAPIKeyUpdateRequest', userAPIKeyUpdateRequest);
1904
+ const localVarPath = `/api/v1/user/api-key/update`;
1905
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1906
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1907
+ let baseOptions;
1908
+ if (configuration) {
1909
+ baseOptions = configuration.baseOptions;
1910
+ }
1911
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1912
+ const localVarHeaderParameter = {};
1913
+ const localVarQueryParameter = {};
1914
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1915
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1917
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1918
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userAPIKeyUpdateRequest, localVarRequestOptions, configuration);
1919
+ return {
1920
+ url: (0, common_1.toPathString)(localVarUrlObj),
1921
+ options: localVarRequestOptions,
1922
+ };
1923
+ }),
1924
+ };
1925
+ };
1926
+ exports.UserAPIKeyServiceApiAxiosParamCreator = UserAPIKeyServiceApiAxiosParamCreator;
1927
+ /**
1928
+ * UserAPIKeyServiceApi - functional programming interface
1929
+ */
1930
+ const UserAPIKeyServiceApiFp = function (configuration) {
1931
+ const localVarAxiosParamCreator = (0, exports.UserAPIKeyServiceApiAxiosParamCreator)(configuration);
1932
+ return {
1933
+ /**
1934
+ * UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
1935
+ * @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
1936
+ * @param {*} [options] Override http request option.
1937
+ * @throws {RequiredError}
1938
+ */
1939
+ userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options) {
1940
+ return __awaiter(this, void 0, void 0, function* () {
1941
+ var _a, _b, _c;
1942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options);
1943
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1944
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAPIKeyServiceApi.userAPIKeyServiceUserAPIKeyCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1945
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1946
+ });
1947
+ },
1948
+ /**
1949
+ * UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft delete) 请求路径: POST /api/user/api-key/delete Request path: POST /api/user/api-key/delete 权限要求: 需要用户认证 Permission: Requires user authentication
1950
+ * @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options) {
1955
+ return __awaiter(this, void 0, void 0, function* () {
1956
+ var _a, _b, _c;
1957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options);
1958
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1959
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAPIKeyServiceApi.userAPIKeyServiceUserAPIKeyDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1960
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1961
+ });
1962
+ },
1963
+ /**
1964
+ * UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Retrieve a single UserAPIKey by ID or name 请求路径: GET /api/user/api-key/get?id={id} 或 GET /api/user/api-key/get?name={name} Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name} 权限要求: 需要用户认证 Permission: Requires user authentication
1965
+ * @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
1966
+ * @param {string} [name] name 要获取的 UserAPIKey 的名称 Name of the UserAPIKey to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
1967
+ * @param {*} [options] Override http request option.
1968
+ * @throws {RequiredError}
1969
+ */
1970
+ userAPIKeyServiceUserAPIKeyGet(id, name, options) {
1971
+ return __awaiter(this, void 0, void 0, function* () {
1972
+ var _a, _b, _c;
1973
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAPIKeyServiceUserAPIKeyGet(id, name, options);
1974
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1975
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAPIKeyServiceApi.userAPIKeyServiceUserAPIKeyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1976
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1977
+ });
1978
+ },
1979
+ /**
1980
+ * UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 List UserAPIKeys with pagination, supports filtering by status and key group 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} Request path: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} 权限要求: 需要用户认证 Permission: Requires user authentication
1981
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
1982
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
1983
+ * @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) Filter by user ID (optional, admin only) 0: 返回所有用户的 API Key(仅管理员) > 0: 仅返回指定用户的 API Key 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
1984
+ * @param {string} [keyStatus] key_status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key 0: return all statuses 1: return enabled API keys only 2: return disabled API keys only @gotags: form:\"key_status\"
1985
+ * @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
1986
+ * @param {*} [options] Override http request option.
1987
+ * @throws {RequiredError}
1988
+ */
1989
+ userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options) {
1990
+ return __awaiter(this, void 0, void 0, function* () {
1991
+ var _a, _b, _c;
1992
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options);
1993
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1994
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAPIKeyServiceApi.userAPIKeyServiceUserAPIKeyList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1995
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1996
+ });
1997
+ },
1998
+ /**
1999
+ * UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
2000
+ * @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
2001
+ * @param {*} [options] Override http request option.
2002
+ * @throws {RequiredError}
2003
+ */
2004
+ userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options) {
2005
+ return __awaiter(this, void 0, void 0, function* () {
2006
+ var _a, _b, _c;
2007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options);
2008
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2009
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAPIKeyServiceApi.userAPIKeyServiceUserAPIKeyUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2010
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2011
+ });
2012
+ },
2013
+ };
2014
+ };
2015
+ exports.UserAPIKeyServiceApiFp = UserAPIKeyServiceApiFp;
2016
+ /**
2017
+ * UserAPIKeyServiceApi - factory interface
2018
+ */
2019
+ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
2020
+ const localVarFp = (0, exports.UserAPIKeyServiceApiFp)(configuration);
2021
+ return {
2022
+ /**
2023
+ * UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
2024
+ * @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
2025
+ * @param {*} [options] Override http request option.
2026
+ * @throws {RequiredError}
2027
+ */
2028
+ userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options) {
2029
+ return localVarFp.userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options).then((request) => request(axios, basePath));
2030
+ },
2031
+ /**
2032
+ * UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft delete) 请求路径: POST /api/user/api-key/delete Request path: POST /api/user/api-key/delete 权限要求: 需要用户认证 Permission: Requires user authentication
2033
+ * @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options) {
2038
+ return localVarFp.userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options).then((request) => request(axios, basePath));
2039
+ },
2040
+ /**
2041
+ * UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Retrieve a single UserAPIKey by ID or name 请求路径: GET /api/user/api-key/get?id={id} 或 GET /api/user/api-key/get?name={name} Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name} 权限要求: 需要用户认证 Permission: Requires user authentication
2042
+ * @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
2043
+ * @param {string} [name] name 要获取的 UserAPIKey 的名称 Name of the UserAPIKey to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
2044
+ * @param {*} [options] Override http request option.
2045
+ * @throws {RequiredError}
2046
+ */
2047
+ userAPIKeyServiceUserAPIKeyGet(id, name, options) {
2048
+ return localVarFp.userAPIKeyServiceUserAPIKeyGet(id, name, options).then((request) => request(axios, basePath));
2049
+ },
2050
+ /**
2051
+ * UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 List UserAPIKeys with pagination, supports filtering by status and key group 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} Request path: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} 权限要求: 需要用户认证 Permission: Requires user authentication
2052
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
2053
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
2054
+ * @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) Filter by user ID (optional, admin only) 0: 返回所有用户的 API Key(仅管理员) > 0: 仅返回指定用户的 API Key 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
2055
+ * @param {string} [keyStatus] key_status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key 0: return all statuses 1: return enabled API keys only 2: return disabled API keys only @gotags: form:\"key_status\"
2056
+ * @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
2057
+ * @param {*} [options] Override http request option.
2058
+ * @throws {RequiredError}
2059
+ */
2060
+ userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options) {
2061
+ return localVarFp.userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options).then((request) => request(axios, basePath));
2062
+ },
2063
+ /**
2064
+ * UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
2065
+ * @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ */
2069
+ userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options) {
2070
+ return localVarFp.userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options).then((request) => request(axios, basePath));
2071
+ },
2072
+ };
2073
+ };
2074
+ exports.UserAPIKeyServiceApiFactory = UserAPIKeyServiceApiFactory;
2075
+ /**
2076
+ * UserAPIKeyServiceApi - object-oriented interface
2077
+ */
2078
+ class UserAPIKeyServiceApi extends base_1.BaseAPI {
2079
+ /**
2080
+ * UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
2081
+ * @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
2082
+ * @param {*} [options] Override http request option.
2083
+ * @throws {RequiredError}
2084
+ */
2085
+ userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options) {
2086
+ return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options).then((request) => request(this.axios, this.basePath));
2087
+ }
2088
+ /**
2089
+ * UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft delete) 请求路径: POST /api/user/api-key/delete Request path: POST /api/user/api-key/delete 权限要求: 需要用户认证 Permission: Requires user authentication
2090
+ * @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options) {
2095
+ return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest, options).then((request) => request(this.axios, this.basePath));
2096
+ }
2097
+ /**
2098
+ * UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Retrieve a single UserAPIKey by ID or name 请求路径: GET /api/user/api-key/get?id={id} 或 GET /api/user/api-key/get?name={name} Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name} 权限要求: 需要用户认证 Permission: Requires user authentication
2099
+ * @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
2100
+ * @param {string} [name] name 要获取的 UserAPIKey 的名称 Name of the UserAPIKey to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\"
2101
+ * @param {*} [options] Override http request option.
2102
+ * @throws {RequiredError}
2103
+ */
2104
+ userAPIKeyServiceUserAPIKeyGet(id, name, options) {
2105
+ return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyGet(id, name, options).then((request) => request(this.axios, this.basePath));
2106
+ }
2107
+ /**
2108
+ * UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 List UserAPIKeys with pagination, supports filtering by status and key group 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} Request path: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group} 权限要求: 需要用户认证 Permission: Requires user authentication
2109
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
2110
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
2111
+ * @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) Filter by user ID (optional, admin only) 0: 返回所有用户的 API Key(仅管理员) > 0: 仅返回指定用户的 API Key 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
2112
+ * @param {string} [keyStatus] key_status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key 0: return all statuses 1: return enabled API keys only 2: return disabled API keys only @gotags: form:\"key_status\"
2113
+ * @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
2114
+ * @param {*} [options] Override http request option.
2115
+ * @throws {RequiredError}
2116
+ */
2117
+ userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options) {
2118
+ return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options).then((request) => request(this.axios, this.basePath));
2119
+ }
2120
+ /**
2121
+ * UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
2122
+ * @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
2123
+ * @param {*} [options] Override http request option.
2124
+ * @throws {RequiredError}
2125
+ */
2126
+ userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options) {
2127
+ return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest, options).then((request) => request(this.axios, this.basePath));
2128
+ }
2129
+ }
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 = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ */
2149
+ userAuthServiceUserAuthFlowCode: (authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadAuthCode_1, payloadEmailPayloadUserPasswordEncrypt_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadAuthCode_1, payloadEmailPayloadUserPasswordEncrypt_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options = {}) {
2150
+ const localVarPath = `/auth/v1/flow/code`;
2151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2152
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2153
+ let baseOptions;
2154
+ if (configuration) {
2155
+ baseOptions = configuration.baseOptions;
2156
+ }
2157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2158
+ const localVarHeaderParameter = {};
2159
+ const localVarQueryParameter = {};
2160
+ if (authType !== undefined) {
2161
+ localVarQueryParameter['auth_type'] = authType;
2162
+ }
2163
+ if (authAction !== undefined) {
2164
+ localVarQueryParameter['auth_action'] = authAction;
2165
+ }
2166
+ if (payloadEmailPayloadUserEmail !== undefined) {
2167
+ localVarQueryParameter['payload.email_payload.user_email'] = payloadEmailPayloadUserEmail;
2168
+ }
2169
+ if (payloadEmailPayloadAuthCode !== undefined) {
2170
+ localVarQueryParameter['payload.email_payload.auth_code'] = payloadEmailPayloadAuthCode;
2171
+ }
2172
+ if (payloadEmailPayloadUserPasswordEncrypt !== undefined) {
2173
+ localVarQueryParameter['payload.email_payload.user_password_encrypt'] = payloadEmailPayloadUserPasswordEncrypt;
2174
+ }
2175
+ if (authAt !== undefined) {
2176
+ localVarQueryParameter['auth_at'] = authAt;
2177
+ }
2178
+ if (nonce !== undefined) {
2179
+ localVarQueryParameter['nonce'] = nonce;
2180
+ }
2181
+ if (signature !== undefined) {
2182
+ localVarQueryParameter['signature'] = signature;
2183
+ }
2184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2187
+ return {
2188
+ url: (0, common_1.toPathString)(localVarUrlObj),
2189
+ options: localVarRequestOptions,
2190
+ };
2191
+ }),
2192
+ /**
2193
+ * 鉴权流程启动
2194
+ * @param {number} [authType]
2195
+ * @param {number} [authAction]
2196
+ * @param {string} [payloadEmailPayloadUserEmail]
2197
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2198
+ * @param {string} [payloadEmailPayloadDisplayName]
2199
+ * @param {number} [payloadOauth2PayloadPlatform]
2200
+ * @param {string} [authAt]
2201
+ * @param {string} [nonce]
2202
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ userAuthServiceUserAuthFlowInit: (authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadUserPasswordEncrypt_1, payloadEmailPayloadDisplayName_1, payloadOauth2PayloadPlatform_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [authType_1, authAction_1, payloadEmailPayloadUserEmail_1, payloadEmailPayloadUserPasswordEncrypt_1, payloadEmailPayloadDisplayName_1, payloadOauth2PayloadPlatform_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options = {}) {
2207
+ const localVarPath = `/auth/v1/flow/init`;
2208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2209
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2210
+ let baseOptions;
2211
+ if (configuration) {
2212
+ baseOptions = configuration.baseOptions;
2213
+ }
2214
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2215
+ const localVarHeaderParameter = {};
2216
+ const localVarQueryParameter = {};
2217
+ if (authType !== undefined) {
2218
+ localVarQueryParameter['auth_type'] = authType;
2219
+ }
2220
+ if (authAction !== undefined) {
2221
+ localVarQueryParameter['auth_action'] = authAction;
2222
+ }
2223
+ if (payloadEmailPayloadUserEmail !== undefined) {
2224
+ localVarQueryParameter['payload.email_payload.user_email'] = payloadEmailPayloadUserEmail;
2225
+ }
2226
+ if (payloadEmailPayloadUserPasswordEncrypt !== undefined) {
2227
+ localVarQueryParameter['payload.email_payload.user_password_encrypt'] = payloadEmailPayloadUserPasswordEncrypt;
2228
+ }
2229
+ if (payloadEmailPayloadDisplayName !== undefined) {
2230
+ localVarQueryParameter['payload.email_payload.display_name'] = payloadEmailPayloadDisplayName;
2231
+ }
2232
+ if (payloadOauth2PayloadPlatform !== undefined) {
2233
+ localVarQueryParameter['payload.oauth2_payload.platform'] = payloadOauth2PayloadPlatform;
2234
+ }
2235
+ if (authAt !== undefined) {
2236
+ localVarQueryParameter['auth_at'] = authAt;
2237
+ }
2238
+ if (nonce !== undefined) {
2239
+ localVarQueryParameter['nonce'] = nonce;
2240
+ }
2241
+ if (signature !== undefined) {
2242
+ localVarQueryParameter['signature'] = signature;
2243
+ }
2244
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2246
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2247
+ return {
2248
+ url: (0, common_1.toPathString)(localVarUrlObj),
2249
+ options: localVarRequestOptions,
2250
+ };
2251
+ }),
2252
+ /**
2253
+ * OAUTH 流程验证回调
2254
+ * @param {string} [code]
2255
+ * @param {string} [state]
2256
+ * @param {number} [platform]
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ */
2260
+ userAuthServiceUserAuthFlowOAuthCallback: (code_1, state_1, platform_1, ...args_1) => __awaiter(this, [code_1, state_1, platform_1, ...args_1], void 0, function* (code, state, platform, options = {}) {
2261
+ const localVarPath = `/auth/v1/flow/oauth/cb`;
2262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2264
+ let baseOptions;
2265
+ if (configuration) {
2266
+ baseOptions = configuration.baseOptions;
2267
+ }
2268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2269
+ const localVarHeaderParameter = {};
2270
+ const localVarQueryParameter = {};
2271
+ if (code !== undefined) {
2272
+ localVarQueryParameter['code'] = code;
2273
+ }
2274
+ if (state !== undefined) {
2275
+ localVarQueryParameter['state'] = state;
2276
+ }
2277
+ if (platform !== undefined) {
2278
+ localVarQueryParameter['platform'] = platform;
2279
+ }
2280
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2283
+ return {
2284
+ url: (0, common_1.toPathString)(localVarUrlObj),
2285
+ options: localVarRequestOptions,
2286
+ };
2287
+ }),
2288
+ /**
2289
+ * Auth Token 刷新接口
2290
+ * @param {string} [refreshToken]
2291
+ * @param {string} [authAt]
2292
+ * @param {string} [nonce]
2293
+ * @param {string} [signature]
2294
+ * @param {*} [options] Override http request option.
2295
+ * @throws {RequiredError}
2296
+ */
2297
+ userAuthServiceUserAuthFlowTokenRefresh: (refreshToken_1, authAt_1, nonce_1, signature_1, ...args_1) => __awaiter(this, [refreshToken_1, authAt_1, nonce_1, signature_1, ...args_1], void 0, function* (refreshToken, authAt, nonce, signature, options = {}) {
2298
+ const localVarPath = `/auth/v1/flow/refresh_token`;
2299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2300
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2301
+ let baseOptions;
2302
+ if (configuration) {
2303
+ baseOptions = configuration.baseOptions;
2304
+ }
2305
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2306
+ const localVarHeaderParameter = {};
2307
+ const localVarQueryParameter = {};
2308
+ if (refreshToken !== undefined) {
2309
+ localVarQueryParameter['refresh_token'] = refreshToken;
2310
+ }
2311
+ if (authAt !== undefined) {
2312
+ localVarQueryParameter['auth_at'] = authAt;
2313
+ }
2314
+ if (nonce !== undefined) {
2315
+ localVarQueryParameter['nonce'] = nonce;
2316
+ }
2317
+ if (signature !== undefined) {
2318
+ localVarQueryParameter['signature'] = signature;
2319
+ }
2320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2322
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2323
+ return {
2324
+ url: (0, common_1.toPathString)(localVarUrlObj),
2325
+ options: localVarRequestOptions,
2326
+ };
2327
+ }),
2328
+ };
2329
+ };
2330
+ exports.UserAuthServiceApiAxiosParamCreator = UserAuthServiceApiAxiosParamCreator;
2331
+ /**
2332
+ * UserAuthServiceApi - functional programming interface
2333
+ */
2334
+ const UserAuthServiceApiFp = function (configuration) {
2335
+ const localVarAxiosParamCreator = (0, exports.UserAuthServiceApiAxiosParamCreator)(configuration);
2336
+ return {
2337
+ /**
2338
+ * 提交验证码流程
2339
+ * @param {number} [authType]
2340
+ * @param {number} [authAction]
2341
+ * @param {string} [payloadEmailPayloadUserEmail]
2342
+ * @param {string} [payloadEmailPayloadAuthCode]
2343
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2344
+ * @param {string} [authAt]
2345
+ * @param {string} [nonce]
2346
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ */
2350
+ userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
2351
+ return __awaiter(this, void 0, void 0, function* () {
2352
+ var _a, _b, _c;
2353
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options);
2354
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2355
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2356
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2357
+ });
2358
+ },
2359
+ /**
2360
+ * 鉴权流程启动
2361
+ * @param {number} [authType]
2362
+ * @param {number} [authAction]
2363
+ * @param {string} [payloadEmailPayloadUserEmail]
2364
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2365
+ * @param {string} [payloadEmailPayloadDisplayName]
2366
+ * @param {number} [payloadOauth2PayloadPlatform]
2367
+ * @param {string} [authAt]
2368
+ * @param {string} [nonce]
2369
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
2370
+ * @param {*} [options] Override http request option.
2371
+ * @throws {RequiredError}
2372
+ */
2373
+ userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
2374
+ return __awaiter(this, void 0, void 0, function* () {
2375
+ var _a, _b, _c;
2376
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options);
2377
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2378
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2379
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2380
+ });
2381
+ },
2382
+ /**
2383
+ * OAUTH 流程验证回调
2384
+ * @param {string} [code]
2385
+ * @param {string} [state]
2386
+ * @param {number} [platform]
2387
+ * @param {*} [options] Override http request option.
2388
+ * @throws {RequiredError}
2389
+ */
2390
+ userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
2391
+ return __awaiter(this, void 0, void 0, function* () {
2392
+ var _a, _b, _c;
2393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options);
2394
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2395
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowOAuthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2396
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2397
+ });
2398
+ },
2399
+ /**
2400
+ * Auth Token 刷新接口
2401
+ * @param {string} [refreshToken]
2402
+ * @param {string} [authAt]
2403
+ * @param {string} [nonce]
2404
+ * @param {string} [signature]
2405
+ * @param {*} [options] Override http request option.
2406
+ * @throws {RequiredError}
2407
+ */
2408
+ userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
2409
+ return __awaiter(this, void 0, void 0, function* () {
2410
+ var _a, _b, _c;
2411
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options);
2412
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2413
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAuthServiceApi.userAuthServiceUserAuthFlowTokenRefresh']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2414
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2415
+ });
2416
+ },
2417
+ };
2418
+ };
2419
+ exports.UserAuthServiceApiFp = UserAuthServiceApiFp;
2420
+ /**
2421
+ * UserAuthServiceApi - factory interface
2422
+ */
2423
+ const UserAuthServiceApiFactory = function (configuration, basePath, axios) {
2424
+ const localVarFp = (0, exports.UserAuthServiceApiFp)(configuration);
2425
+ return {
2426
+ /**
2427
+ * 提交验证码流程
2428
+ * @param {number} [authType]
2429
+ * @param {number} [authAction]
2430
+ * @param {string} [payloadEmailPayloadUserEmail]
2431
+ * @param {string} [payloadEmailPayloadAuthCode]
2432
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2433
+ * @param {string} [authAt]
2434
+ * @param {string} [nonce]
2435
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
2436
+ * @param {*} [options] Override http request option.
2437
+ * @throws {RequiredError}
2438
+ */
2439
+ userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
2440
+ return localVarFp.userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options).then((request) => request(axios, basePath));
2441
+ },
2442
+ /**
2443
+ * 鉴权流程启动
2444
+ * @param {number} [authType]
2445
+ * @param {number} [authAction]
2446
+ * @param {string} [payloadEmailPayloadUserEmail]
2447
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2448
+ * @param {string} [payloadEmailPayloadDisplayName]
2449
+ * @param {number} [payloadOauth2PayloadPlatform]
2450
+ * @param {string} [authAt]
2451
+ * @param {string} [nonce]
2452
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
2453
+ * @param {*} [options] Override http request option.
2454
+ * @throws {RequiredError}
2455
+ */
2456
+ userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
2457
+ return localVarFp.userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options).then((request) => request(axios, basePath));
2458
+ },
2459
+ /**
2460
+ * OAUTH 流程验证回调
2461
+ * @param {string} [code]
2462
+ * @param {string} [state]
2463
+ * @param {number} [platform]
2464
+ * @param {*} [options] Override http request option.
2465
+ * @throws {RequiredError}
2466
+ */
2467
+ userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
2468
+ return localVarFp.userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options).then((request) => request(axios, basePath));
2469
+ },
2470
+ /**
2471
+ * Auth Token 刷新接口
2472
+ * @param {string} [refreshToken]
2473
+ * @param {string} [authAt]
2474
+ * @param {string} [nonce]
2475
+ * @param {string} [signature]
2476
+ * @param {*} [options] Override http request option.
2477
+ * @throws {RequiredError}
2478
+ */
2479
+ userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
2480
+ return localVarFp.userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options).then((request) => request(axios, basePath));
2481
+ },
2482
+ };
2483
+ };
2484
+ exports.UserAuthServiceApiFactory = UserAuthServiceApiFactory;
2485
+ /**
2486
+ * UserAuthServiceApi - object-oriented interface
2487
+ */
2488
+ class UserAuthServiceApi extends base_1.BaseAPI {
2489
+ /**
2490
+ * 提交验证码流程
2491
+ * @param {number} [authType]
2492
+ * @param {number} [authAction]
2493
+ * @param {string} [payloadEmailPayloadUserEmail]
2494
+ * @param {string} [payloadEmailPayloadAuthCode]
2495
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2496
+ * @param {string} [authAt]
2497
+ * @param {string} [nonce]
2498
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | AuthCode | UserPasswordEncrypt )
2499
+ * @param {*} [options] Override http request option.
2500
+ * @throws {RequiredError}
2501
+ */
2502
+ userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options) {
2503
+ return (0, exports.UserAuthServiceApiFp)(this.configuration).userAuthServiceUserAuthFlowCode(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadAuthCode, payloadEmailPayloadUserPasswordEncrypt, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
2504
+ }
2505
+ /**
2506
+ * 鉴权流程启动
2507
+ * @param {number} [authType]
2508
+ * @param {number} [authAction]
2509
+ * @param {string} [payloadEmailPayloadUserEmail]
2510
+ * @param {string} [payloadEmailPayloadUserPasswordEncrypt]
2511
+ * @param {string} [payloadEmailPayloadDisplayName]
2512
+ * @param {number} [payloadOauth2PayloadPlatform]
2513
+ * @param {string} [authAt]
2514
+ * @param {string} [nonce]
2515
+ * @param {string} [signature] 加密方式: step1: 拼接一个字符串: s = \"cherryin_v1:{auth_type}:{auth_action}:{auth_at}:{nonce}:{payload.k1}:{payload.k2}:...}\" step2: md5(s) step3: hex_encode(step2) Payload 字段参与加密的字段如下: AuthType=Email:(空字符串也需要拼接) * UserEmail | UserPasswordEncrypt | DisplayName AuthType=OAuth2: * Platform )
2516
+ * @param {*} [options] Override http request option.
2517
+ * @throws {RequiredError}
2518
+ */
2519
+ userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options) {
2520
+ return (0, exports.UserAuthServiceApiFp)(this.configuration).userAuthServiceUserAuthFlowInit(authType, authAction, payloadEmailPayloadUserEmail, payloadEmailPayloadUserPasswordEncrypt, payloadEmailPayloadDisplayName, payloadOauth2PayloadPlatform, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
2521
+ }
2522
+ /**
2523
+ * OAUTH 流程验证回调
2524
+ * @param {string} [code]
2525
+ * @param {string} [state]
2526
+ * @param {number} [platform]
2527
+ * @param {*} [options] Override http request option.
2528
+ * @throws {RequiredError}
2529
+ */
2530
+ userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options) {
2531
+ return (0, exports.UserAuthServiceApiFp)(this.configuration).userAuthServiceUserAuthFlowOAuthCallback(code, state, platform, options).then((request) => request(this.axios, this.basePath));
2532
+ }
2533
+ /**
2534
+ * Auth Token 刷新接口
2535
+ * @param {string} [refreshToken]
2536
+ * @param {string} [authAt]
2537
+ * @param {string} [nonce]
2538
+ * @param {string} [signature]
2539
+ * @param {*} [options] Override http request option.
2540
+ * @throws {RequiredError}
2541
+ */
2542
+ userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options) {
2543
+ return (0, exports.UserAuthServiceApiFp)(this.configuration).userAuthServiceUserAuthFlowTokenRefresh(refreshToken, authAt, nonce, signature, options).then((request) => request(this.axios, this.basePath));
2544
+ }
2545
+ }
2546
+ exports.UserAuthServiceApi = UserAuthServiceApi;
2547
+ /**
2548
+ * UserBalanceServiceApi - axios parameter creator
2549
+ */
2550
+ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
2551
+ return {
2552
+ /**
2553
+ * 用户余额变更接口 - 增量操作
2554
+ * @param {boolean} [forceCreate]
2555
+ * @param {string} [uid]
2556
+ * @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
2557
+ * @param {string} [action] 变更类型,incr/decr
2558
+ * @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2559
+ * @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2560
+ * @param {*} [options] Override http request option.
2561
+ * @throws {RequiredError}
2562
+ */
2563
+ userBalanceServiceUserBalanceChange: (forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1], void 0, function* (forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options = {}) {
2564
+ const localVarPath = `/v1/user_balance/change`;
2565
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2566
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2567
+ let baseOptions;
2568
+ if (configuration) {
2569
+ baseOptions = configuration.baseOptions;
2570
+ }
2571
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2572
+ const localVarHeaderParameter = {};
2573
+ const localVarQueryParameter = {};
2574
+ if (forceCreate !== undefined) {
2575
+ localVarQueryParameter['force_create'] = forceCreate;
2576
+ }
2577
+ if (uid !== undefined) {
2578
+ localVarQueryParameter['uid'] = uid;
2579
+ }
2580
+ if (balanceCode !== undefined) {
2581
+ localVarQueryParameter['balance_code'] = balanceCode;
2582
+ }
2583
+ if (action !== undefined) {
2584
+ localVarQueryParameter['action'] = action;
2585
+ }
2586
+ if (deltaPrepaidBalanceTotal !== undefined) {
2587
+ localVarQueryParameter['deltaPrepaidBalanceTotal'] = deltaPrepaidBalanceTotal;
2588
+ }
2589
+ if (deltaBonusBalanceTotal !== undefined) {
2590
+ localVarQueryParameter['deltaBonusBalanceTotal'] = deltaBonusBalanceTotal;
2591
+ }
2592
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2594
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2595
+ return {
2596
+ url: (0, common_1.toPathString)(localVarUrlObj),
2597
+ options: localVarRequestOptions,
2598
+ };
2599
+ }),
2600
+ /**
2601
+ * 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
2602
+ * @param {boolean} [forceCreate]
2603
+ * @param {string} [uid]
2604
+ * @param {string} [dataId]
2605
+ * @param {string} [dataCreatedAt]
2606
+ * @param {string} [dataUpdatedAt]
2607
+ * @param {string} [dataUid]
2608
+ * @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
2609
+ * @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
2610
+ * @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
2611
+ * @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
2612
+ * @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
2613
+ * @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
2614
+ * @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
2615
+ * @param {string} [dataVersion]
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ */
2619
+ userBalanceServiceUserBalanceEdit: (forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1], void 0, function* (forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options = {}) {
2620
+ const localVarPath = `/v1/user_balance/edit`;
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
+ if (forceCreate !== undefined) {
2631
+ localVarQueryParameter['force_create'] = forceCreate;
2632
+ }
2633
+ if (uid !== undefined) {
2634
+ localVarQueryParameter['uid'] = uid;
2635
+ }
2636
+ if (dataId !== undefined) {
2637
+ localVarQueryParameter['data.id'] = dataId;
2638
+ }
2639
+ if (dataCreatedAt !== undefined) {
2640
+ localVarQueryParameter['data.created_at'] = dataCreatedAt;
2641
+ }
2642
+ if (dataUpdatedAt !== undefined) {
2643
+ localVarQueryParameter['data.updated_at'] = dataUpdatedAt;
2644
+ }
2645
+ if (dataUid !== undefined) {
2646
+ localVarQueryParameter['data.uid'] = dataUid;
2647
+ }
2648
+ if (dataBalanceCode !== undefined) {
2649
+ localVarQueryParameter['data.balance_code'] = dataBalanceCode;
2650
+ }
2651
+ if (dataPrepaidBalanceTotal !== undefined) {
2652
+ localVarQueryParameter['data.prepaid_balance_total'] = dataPrepaidBalanceTotal;
2653
+ }
2654
+ if (dataPrepaidBalanceUsed !== undefined) {
2655
+ localVarQueryParameter['data.prepaid_balance_used'] = dataPrepaidBalanceUsed;
2656
+ }
2657
+ if (dataPrepaidBalanceFrozen !== undefined) {
2658
+ localVarQueryParameter['data.prepaid_balance_frozen'] = dataPrepaidBalanceFrozen;
2659
+ }
2660
+ if (dataBonusBalanceTotal !== undefined) {
2661
+ localVarQueryParameter['data.bonus_balance_total'] = dataBonusBalanceTotal;
2662
+ }
2663
+ if (dataBonusBalanceUsed !== undefined) {
2664
+ localVarQueryParameter['data.bonus_balance_used'] = dataBonusBalanceUsed;
2665
+ }
2666
+ if (dataBonusBalanceFrozen !== undefined) {
2667
+ localVarQueryParameter['data.bonus_balance_frozen'] = dataBonusBalanceFrozen;
2668
+ }
2669
+ if (dataVersion !== undefined) {
2670
+ localVarQueryParameter['data.version'] = dataVersion;
2671
+ }
2672
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2674
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2675
+ return {
2676
+ url: (0, common_1.toPathString)(localVarUrlObj),
2677
+ options: localVarRequestOptions,
2678
+ };
2679
+ }),
2680
+ /**
2681
+ * 用户余额列表接口
2682
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
2683
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
2684
+ * @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
2685
+ * @param {*} [options] Override http request option.
2686
+ * @throws {RequiredError}
2687
+ */
2688
+ userBalanceServiceUserBalanceList: (page_1, pageSize_1, uidList_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, ...args_1], void 0, function* (page, pageSize, uidList, options = {}) {
2689
+ const localVarPath = `/v1/user_balance/list`;
2690
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2691
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2692
+ let baseOptions;
2693
+ if (configuration) {
2694
+ baseOptions = configuration.baseOptions;
2695
+ }
2696
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2697
+ const localVarHeaderParameter = {};
2698
+ const localVarQueryParameter = {};
2699
+ if (page !== undefined) {
2700
+ localVarQueryParameter['page'] = page;
2701
+ }
2702
+ if (pageSize !== undefined) {
2703
+ localVarQueryParameter['page_size'] = pageSize;
2704
+ }
2705
+ if (uidList) {
2706
+ localVarQueryParameter['uid_list'] = uidList;
2707
+ }
2708
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2709
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2710
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2711
+ return {
2712
+ url: (0, common_1.toPathString)(localVarUrlObj),
2713
+ options: localVarRequestOptions,
2714
+ };
2715
+ }),
2716
+ };
2717
+ };
2718
+ exports.UserBalanceServiceApiAxiosParamCreator = UserBalanceServiceApiAxiosParamCreator;
2719
+ /**
2720
+ * UserBalanceServiceApi - functional programming interface
2721
+ */
2722
+ const UserBalanceServiceApiFp = function (configuration) {
2723
+ const localVarAxiosParamCreator = (0, exports.UserBalanceServiceApiAxiosParamCreator)(configuration);
2724
+ return {
2725
+ /**
2726
+ * 用户余额变更接口 - 增量操作
2727
+ * @param {boolean} [forceCreate]
2728
+ * @param {string} [uid]
2729
+ * @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
2730
+ * @param {string} [action] 变更类型,incr/decr
2731
+ * @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2732
+ * @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2733
+ * @param {*} [options] Override http request option.
2734
+ * @throws {RequiredError}
2735
+ */
2736
+ userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options) {
2737
+ return __awaiter(this, void 0, void 0, function* () {
2738
+ var _a, _b, _c;
2739
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options);
2740
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2741
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBalanceServiceApi.userBalanceServiceUserBalanceChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2742
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2743
+ });
2744
+ },
2745
+ /**
2746
+ * 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
2747
+ * @param {boolean} [forceCreate]
2748
+ * @param {string} [uid]
2749
+ * @param {string} [dataId]
2750
+ * @param {string} [dataCreatedAt]
2751
+ * @param {string} [dataUpdatedAt]
2752
+ * @param {string} [dataUid]
2753
+ * @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
2754
+ * @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
2755
+ * @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
2756
+ * @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
2757
+ * @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
2758
+ * @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
2759
+ * @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
2760
+ * @param {string} [dataVersion]
2761
+ * @param {*} [options] Override http request option.
2762
+ * @throws {RequiredError}
2763
+ */
2764
+ userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options) {
2765
+ return __awaiter(this, void 0, void 0, function* () {
2766
+ var _a, _b, _c;
2767
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options);
2768
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2769
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBalanceServiceApi.userBalanceServiceUserBalanceEdit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2770
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2771
+ });
2772
+ },
2773
+ /**
2774
+ * 用户余额列表接口
2775
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
2776
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
2777
+ * @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
2778
+ * @param {*} [options] Override http request option.
2779
+ * @throws {RequiredError}
2780
+ */
2781
+ userBalanceServiceUserBalanceList(page, pageSize, uidList, options) {
2782
+ return __awaiter(this, void 0, void 0, function* () {
2783
+ var _a, _b, _c;
2784
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userBalanceServiceUserBalanceList(page, pageSize, uidList, options);
2785
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2786
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBalanceServiceApi.userBalanceServiceUserBalanceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2787
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2788
+ });
2789
+ },
2790
+ };
2791
+ };
2792
+ exports.UserBalanceServiceApiFp = UserBalanceServiceApiFp;
2793
+ /**
2794
+ * UserBalanceServiceApi - factory interface
2795
+ */
2796
+ const UserBalanceServiceApiFactory = function (configuration, basePath, axios) {
2797
+ const localVarFp = (0, exports.UserBalanceServiceApiFp)(configuration);
2798
+ return {
2799
+ /**
2800
+ * 用户余额变更接口 - 增量操作
2801
+ * @param {boolean} [forceCreate]
2802
+ * @param {string} [uid]
2803
+ * @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
2804
+ * @param {string} [action] 变更类型,incr/decr
2805
+ * @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2806
+ * @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2807
+ * @param {*} [options] Override http request option.
2808
+ * @throws {RequiredError}
2809
+ */
2810
+ userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options) {
2811
+ return localVarFp.userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options).then((request) => request(axios, basePath));
2812
+ },
2813
+ /**
2814
+ * 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
2815
+ * @param {boolean} [forceCreate]
2816
+ * @param {string} [uid]
2817
+ * @param {string} [dataId]
2818
+ * @param {string} [dataCreatedAt]
2819
+ * @param {string} [dataUpdatedAt]
2820
+ * @param {string} [dataUid]
2821
+ * @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
2822
+ * @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
2823
+ * @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
2824
+ * @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
2825
+ * @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
2826
+ * @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
2827
+ * @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
2828
+ * @param {string} [dataVersion]
2829
+ * @param {*} [options] Override http request option.
2830
+ * @throws {RequiredError}
2831
+ */
2832
+ userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options) {
2833
+ return localVarFp.userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options).then((request) => request(axios, basePath));
2834
+ },
2835
+ /**
2836
+ * 用户余额列表接口
2837
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
2838
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
2839
+ * @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
2840
+ * @param {*} [options] Override http request option.
2841
+ * @throws {RequiredError}
2842
+ */
2843
+ userBalanceServiceUserBalanceList(page, pageSize, uidList, options) {
2844
+ return localVarFp.userBalanceServiceUserBalanceList(page, pageSize, uidList, options).then((request) => request(axios, basePath));
2845
+ },
2846
+ };
2847
+ };
2848
+ exports.UserBalanceServiceApiFactory = UserBalanceServiceApiFactory;
2849
+ /**
2850
+ * UserBalanceServiceApi - object-oriented interface
2851
+ */
2852
+ class UserBalanceServiceApi extends base_1.BaseAPI {
2853
+ /**
2854
+ * 用户余额变更接口 - 增量操作
2855
+ * @param {boolean} [forceCreate]
2856
+ * @param {string} [uid]
2857
+ * @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
2858
+ * @param {string} [action] 变更类型,incr/decr
2859
+ * @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2860
+ * @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ */
2864
+ userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options) {
2865
+ return (0, exports.UserBalanceServiceApiFp)(this.configuration).userBalanceServiceUserBalanceChange(forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options).then((request) => request(this.axios, this.basePath));
2866
+ }
2867
+ /**
2868
+ * 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
2869
+ * @param {boolean} [forceCreate]
2870
+ * @param {string} [uid]
2871
+ * @param {string} [dataId]
2872
+ * @param {string} [dataCreatedAt]
2873
+ * @param {string} [dataUpdatedAt]
2874
+ * @param {string} [dataUid]
2875
+ * @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
2876
+ * @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
2877
+ * @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
2878
+ * @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
2879
+ * @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
2880
+ * @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
2881
+ * @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
2882
+ * @param {string} [dataVersion]
2883
+ * @param {*} [options] Override http request option.
2884
+ * @throws {RequiredError}
2885
+ */
2886
+ userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options) {
2887
+ return (0, exports.UserBalanceServiceApiFp)(this.configuration).userBalanceServiceUserBalanceEdit(forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options).then((request) => request(this.axios, this.basePath));
2888
+ }
2889
+ /**
2890
+ * 用户余额列表接口
2891
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
2892
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
2893
+ * @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
2894
+ * @param {*} [options] Override http request option.
2895
+ * @throws {RequiredError}
2896
+ */
2897
+ userBalanceServiceUserBalanceList(page, pageSize, uidList, options) {
2898
+ return (0, exports.UserBalanceServiceApiFp)(this.configuration).userBalanceServiceUserBalanceList(page, pageSize, uidList, options).then((request) => request(this.axios, this.basePath));
2899
+ }
2900
+ }
2901
+ exports.UserBalanceServiceApi = UserBalanceServiceApi;
2902
+ /**
2903
+ * UserLabelServiceApi - axios parameter creator
2904
+ */
2905
+ const UserLabelServiceApiAxiosParamCreator = function (configuration) {
2906
+ return {
2907
+ /**
2908
+ *
2909
+ * @param {LabelCreateRequest} labelCreateRequest
2910
+ * @param {*} [options] Override http request option.
2911
+ * @throws {RequiredError}
2912
+ */
2913
+ userLabelServiceLabelCreate: (labelCreateRequest_1, ...args_1) => __awaiter(this, [labelCreateRequest_1, ...args_1], void 0, function* (labelCreateRequest, options = {}) {
2914
+ // verify required parameter 'labelCreateRequest' is not null or undefined
2915
+ (0, common_1.assertParamExists)('userLabelServiceLabelCreate', 'labelCreateRequest', labelCreateRequest);
2916
+ const localVarPath = `/admin/label/create`;
2917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2918
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2919
+ let baseOptions;
2920
+ if (configuration) {
2921
+ baseOptions = configuration.baseOptions;
2922
+ }
2923
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2924
+ const localVarHeaderParameter = {};
2925
+ const localVarQueryParameter = {};
2926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2927
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2928
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2929
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2930
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(labelCreateRequest, localVarRequestOptions, configuration);
2931
+ return {
2932
+ url: (0, common_1.toPathString)(localVarUrlObj),
2933
+ options: localVarRequestOptions,
2934
+ };
2935
+ }),
2936
+ /**
2937
+ *
2938
+ * @param {LabelDeleteRequest} labelDeleteRequest
2939
+ * @param {*} [options] Override http request option.
2940
+ * @throws {RequiredError}
2941
+ */
2942
+ userLabelServiceLabelDelete: (labelDeleteRequest_1, ...args_1) => __awaiter(this, [labelDeleteRequest_1, ...args_1], void 0, function* (labelDeleteRequest, options = {}) {
2943
+ // verify required parameter 'labelDeleteRequest' is not null or undefined
2944
+ (0, common_1.assertParamExists)('userLabelServiceLabelDelete', 'labelDeleteRequest', labelDeleteRequest);
2945
+ const localVarPath = `/admin/label/delete`;
2946
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2947
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2948
+ let baseOptions;
2949
+ if (configuration) {
2950
+ baseOptions = configuration.baseOptions;
2951
+ }
2952
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2953
+ const localVarHeaderParameter = {};
2954
+ const localVarQueryParameter = {};
2955
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2956
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2958
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2959
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(labelDeleteRequest, localVarRequestOptions, configuration);
2960
+ return {
2961
+ url: (0, common_1.toPathString)(localVarUrlObj),
2962
+ options: localVarRequestOptions,
2963
+ };
2964
+ }),
2965
+ /**
2966
+ *
2967
+ * @param {LabelUpdateRequest} labelUpdateRequest
2968
+ * @param {*} [options] Override http request option.
2969
+ * @throws {RequiredError}
2970
+ */
2971
+ userLabelServiceLabelGet: (labelUpdateRequest_1, ...args_1) => __awaiter(this, [labelUpdateRequest_1, ...args_1], void 0, function* (labelUpdateRequest, options = {}) {
2972
+ // verify required parameter 'labelUpdateRequest' is not null or undefined
2973
+ (0, common_1.assertParamExists)('userLabelServiceLabelGet', 'labelUpdateRequest', labelUpdateRequest);
2974
+ const localVarPath = `/admin/label/get`;
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: 'GET' }, 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)(labelUpdateRequest, localVarRequestOptions, configuration);
2989
+ return {
2990
+ url: (0, common_1.toPathString)(localVarUrlObj),
2991
+ options: localVarRequestOptions,
2992
+ };
2993
+ }),
2994
+ /**
2995
+ *
2996
+ * @param {LabelListRequest} labelListRequest
2997
+ * @param {*} [options] Override http request option.
2998
+ * @throws {RequiredError}
2999
+ */
3000
+ userLabelServiceLabelList: (labelListRequest_1, ...args_1) => __awaiter(this, [labelListRequest_1, ...args_1], void 0, function* (labelListRequest, options = {}) {
3001
+ // verify required parameter 'labelListRequest' is not null or undefined
3002
+ (0, common_1.assertParamExists)('userLabelServiceLabelList', 'labelListRequest', labelListRequest);
3003
+ const localVarPath = `/admin/label/list`;
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: 'GET' }, 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)(labelListRequest, localVarRequestOptions, configuration);
3018
+ return {
3019
+ url: (0, common_1.toPathString)(localVarUrlObj),
3020
+ options: localVarRequestOptions,
3021
+ };
3022
+ }),
3023
+ /**
3024
+ *
3025
+ * @param {LabelUpdateRequest} labelUpdateRequest
3026
+ * @param {*} [options] Override http request option.
3027
+ * @throws {RequiredError}
3028
+ */
3029
+ userLabelServiceLabelUpdate: (labelUpdateRequest_1, ...args_1) => __awaiter(this, [labelUpdateRequest_1, ...args_1], void 0, function* (labelUpdateRequest, options = {}) {
3030
+ // verify required parameter 'labelUpdateRequest' is not null or undefined
3031
+ (0, common_1.assertParamExists)('userLabelServiceLabelUpdate', 'labelUpdateRequest', labelUpdateRequest);
3032
+ const localVarPath = `/admin/label/update`;
3033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3034
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3035
+ let baseOptions;
3036
+ if (configuration) {
3037
+ baseOptions = configuration.baseOptions;
3038
+ }
3039
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3040
+ const localVarHeaderParameter = {};
3041
+ const localVarQueryParameter = {};
3042
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(labelUpdateRequest, localVarRequestOptions, configuration);
3047
+ return {
3048
+ url: (0, common_1.toPathString)(localVarUrlObj),
3049
+ options: localVarRequestOptions,
3050
+ };
3051
+ }),
3052
+ /**
3053
+ *
3054
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
3055
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
3056
+ * @param {Array<string>} [uidList]
3057
+ * @param {Array<string>} [labelIds]
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ */
3061
+ userLabelServiceUserLabelList: (page_1, pageSize_1, uidList_1, labelIds_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, labelIds_1, ...args_1], void 0, function* (page, pageSize, uidList, labelIds, options = {}) {
3062
+ const localVarPath = `/admin/users/label/list`;
3063
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3064
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3065
+ let baseOptions;
3066
+ if (configuration) {
3067
+ baseOptions = configuration.baseOptions;
3068
+ }
3069
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3070
+ const localVarHeaderParameter = {};
3071
+ const localVarQueryParameter = {};
3072
+ if (page !== undefined) {
3073
+ localVarQueryParameter['page'] = page;
3074
+ }
3075
+ if (pageSize !== undefined) {
3076
+ localVarQueryParameter['page_size'] = pageSize;
3077
+ }
3078
+ if (uidList) {
3079
+ localVarQueryParameter['uid_list'] = uidList;
3080
+ }
3081
+ if (labelIds) {
3082
+ localVarQueryParameter['label_ids'] = labelIds;
3083
+ }
3084
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3086
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3087
+ return {
3088
+ url: (0, common_1.toPathString)(localVarUrlObj),
3089
+ options: localVarRequestOptions,
3090
+ };
3091
+ }),
3092
+ /**
3093
+ *
3094
+ * @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
3095
+ * @param {*} [options] Override http request option.
3096
+ * @throws {RequiredError}
3097
+ */
3098
+ userLabelServiceUserLabelPairChange: (userLabelPairChangeRequest_1, ...args_1) => __awaiter(this, [userLabelPairChangeRequest_1, ...args_1], void 0, function* (userLabelPairChangeRequest, options = {}) {
3099
+ // verify required parameter 'userLabelPairChangeRequest' is not null or undefined
3100
+ (0, common_1.assertParamExists)('userLabelServiceUserLabelPairChange', 'userLabelPairChangeRequest', userLabelPairChangeRequest);
3101
+ const localVarPath = `/admin/users/label/change`;
3102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3104
+ let baseOptions;
3105
+ if (configuration) {
3106
+ baseOptions = configuration.baseOptions;
3107
+ }
3108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3109
+ const localVarHeaderParameter = {};
3110
+ const localVarQueryParameter = {};
3111
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3112
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3115
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userLabelPairChangeRequest, localVarRequestOptions, configuration);
3116
+ return {
3117
+ url: (0, common_1.toPathString)(localVarUrlObj),
3118
+ options: localVarRequestOptions,
3119
+ };
3120
+ }),
3121
+ };
3122
+ };
3123
+ exports.UserLabelServiceApiAxiosParamCreator = UserLabelServiceApiAxiosParamCreator;
3124
+ /**
3125
+ * UserLabelServiceApi - functional programming interface
3126
+ */
3127
+ const UserLabelServiceApiFp = function (configuration) {
3128
+ const localVarAxiosParamCreator = (0, exports.UserLabelServiceApiAxiosParamCreator)(configuration);
3129
+ return {
3130
+ /**
3131
+ *
3132
+ * @param {LabelCreateRequest} labelCreateRequest
3133
+ * @param {*} [options] Override http request option.
3134
+ * @throws {RequiredError}
3135
+ */
3136
+ userLabelServiceLabelCreate(labelCreateRequest, options) {
3137
+ return __awaiter(this, void 0, void 0, function* () {
3138
+ var _a, _b, _c;
3139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelCreate(labelCreateRequest, options);
3140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3143
+ });
3144
+ },
3145
+ /**
3146
+ *
3147
+ * @param {LabelDeleteRequest} labelDeleteRequest
3148
+ * @param {*} [options] Override http request option.
3149
+ * @throws {RequiredError}
3150
+ */
3151
+ userLabelServiceLabelDelete(labelDeleteRequest, options) {
3152
+ return __awaiter(this, void 0, void 0, function* () {
3153
+ var _a, _b, _c;
3154
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelDelete(labelDeleteRequest, options);
3155
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3156
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3157
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3158
+ });
3159
+ },
3160
+ /**
3161
+ *
3162
+ * @param {LabelUpdateRequest} labelUpdateRequest
3163
+ * @param {*} [options] Override http request option.
3164
+ * @throws {RequiredError}
3165
+ */
3166
+ userLabelServiceLabelGet(labelUpdateRequest, options) {
3167
+ return __awaiter(this, void 0, void 0, function* () {
3168
+ var _a, _b, _c;
3169
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelGet(labelUpdateRequest, options);
3170
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3171
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3172
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3173
+ });
3174
+ },
3175
+ /**
3176
+ *
3177
+ * @param {LabelListRequest} labelListRequest
3178
+ * @param {*} [options] Override http request option.
3179
+ * @throws {RequiredError}
3180
+ */
3181
+ userLabelServiceLabelList(labelListRequest, options) {
3182
+ return __awaiter(this, void 0, void 0, function* () {
3183
+ var _a, _b, _c;
3184
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelList(labelListRequest, options);
3185
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3186
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3187
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3188
+ });
3189
+ },
3190
+ /**
3191
+ *
3192
+ * @param {LabelUpdateRequest} labelUpdateRequest
3193
+ * @param {*} [options] Override http request option.
3194
+ * @throws {RequiredError}
3195
+ */
3196
+ userLabelServiceLabelUpdate(labelUpdateRequest, options) {
3197
+ return __awaiter(this, void 0, void 0, function* () {
3198
+ var _a, _b, _c;
3199
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceLabelUpdate(labelUpdateRequest, options);
3200
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3201
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceLabelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3202
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3203
+ });
3204
+ },
3205
+ /**
3206
+ *
3207
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
3208
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
3209
+ * @param {Array<string>} [uidList]
3210
+ * @param {Array<string>} [labelIds]
3211
+ * @param {*} [options] Override http request option.
3212
+ * @throws {RequiredError}
3213
+ */
3214
+ userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options) {
3215
+ return __awaiter(this, void 0, void 0, function* () {
3216
+ var _a, _b, _c;
3217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options);
3218
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3219
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceUserLabelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3220
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3221
+ });
3222
+ },
3223
+ /**
3224
+ *
3225
+ * @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
3226
+ * @param {*} [options] Override http request option.
3227
+ * @throws {RequiredError}
3228
+ */
3229
+ userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options) {
3230
+ return __awaiter(this, void 0, void 0, function* () {
3231
+ var _a, _b, _c;
3232
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options);
3233
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3234
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserLabelServiceApi.userLabelServiceUserLabelPairChange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3235
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3236
+ });
3237
+ },
3238
+ };
3239
+ };
3240
+ exports.UserLabelServiceApiFp = UserLabelServiceApiFp;
3241
+ /**
3242
+ * UserLabelServiceApi - factory interface
3243
+ */
3244
+ const UserLabelServiceApiFactory = function (configuration, basePath, axios) {
3245
+ const localVarFp = (0, exports.UserLabelServiceApiFp)(configuration);
3246
+ return {
3247
+ /**
3248
+ *
3249
+ * @param {LabelCreateRequest} labelCreateRequest
3250
+ * @param {*} [options] Override http request option.
3251
+ * @throws {RequiredError}
3252
+ */
3253
+ userLabelServiceLabelCreate(labelCreateRequest, options) {
3254
+ return localVarFp.userLabelServiceLabelCreate(labelCreateRequest, options).then((request) => request(axios, basePath));
3255
+ },
3256
+ /**
3257
+ *
3258
+ * @param {LabelDeleteRequest} labelDeleteRequest
3259
+ * @param {*} [options] Override http request option.
3260
+ * @throws {RequiredError}
3261
+ */
3262
+ userLabelServiceLabelDelete(labelDeleteRequest, options) {
3263
+ return localVarFp.userLabelServiceLabelDelete(labelDeleteRequest, options).then((request) => request(axios, basePath));
3264
+ },
3265
+ /**
3266
+ *
3267
+ * @param {LabelUpdateRequest} labelUpdateRequest
3268
+ * @param {*} [options] Override http request option.
3269
+ * @throws {RequiredError}
3270
+ */
3271
+ userLabelServiceLabelGet(labelUpdateRequest, options) {
3272
+ return localVarFp.userLabelServiceLabelGet(labelUpdateRequest, options).then((request) => request(axios, basePath));
3273
+ },
3274
+ /**
3275
+ *
3276
+ * @param {LabelListRequest} labelListRequest
3277
+ * @param {*} [options] Override http request option.
3278
+ * @throws {RequiredError}
3279
+ */
3280
+ userLabelServiceLabelList(labelListRequest, options) {
3281
+ return localVarFp.userLabelServiceLabelList(labelListRequest, options).then((request) => request(axios, basePath));
3282
+ },
3283
+ /**
3284
+ *
3285
+ * @param {LabelUpdateRequest} labelUpdateRequest
3286
+ * @param {*} [options] Override http request option.
3287
+ * @throws {RequiredError}
3288
+ */
3289
+ userLabelServiceLabelUpdate(labelUpdateRequest, options) {
3290
+ return localVarFp.userLabelServiceLabelUpdate(labelUpdateRequest, options).then((request) => request(axios, basePath));
3291
+ },
3292
+ /**
3293
+ *
3294
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
3295
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
3296
+ * @param {Array<string>} [uidList]
3297
+ * @param {Array<string>} [labelIds]
3298
+ * @param {*} [options] Override http request option.
3299
+ * @throws {RequiredError}
3300
+ */
3301
+ userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options) {
3302
+ return localVarFp.userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options).then((request) => request(axios, basePath));
3303
+ },
3304
+ /**
3305
+ *
3306
+ * @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
3307
+ * @param {*} [options] Override http request option.
3308
+ * @throws {RequiredError}
3309
+ */
3310
+ userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options) {
3311
+ return localVarFp.userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options).then((request) => request(axios, basePath));
3312
+ },
3313
+ };
3314
+ };
3315
+ exports.UserLabelServiceApiFactory = UserLabelServiceApiFactory;
3316
+ /**
3317
+ * UserLabelServiceApi - object-oriented interface
3318
+ */
3319
+ class UserLabelServiceApi extends base_1.BaseAPI {
3320
+ /**
3321
+ *
3322
+ * @param {LabelCreateRequest} labelCreateRequest
3323
+ * @param {*} [options] Override http request option.
3324
+ * @throws {RequiredError}
3325
+ */
3326
+ userLabelServiceLabelCreate(labelCreateRequest, options) {
3327
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelCreate(labelCreateRequest, options).then((request) => request(this.axios, this.basePath));
3328
+ }
3329
+ /**
3330
+ *
3331
+ * @param {LabelDeleteRequest} labelDeleteRequest
3332
+ * @param {*} [options] Override http request option.
3333
+ * @throws {RequiredError}
3334
+ */
3335
+ userLabelServiceLabelDelete(labelDeleteRequest, options) {
3336
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelDelete(labelDeleteRequest, options).then((request) => request(this.axios, this.basePath));
3337
+ }
3338
+ /**
3339
+ *
3340
+ * @param {LabelUpdateRequest} labelUpdateRequest
3341
+ * @param {*} [options] Override http request option.
3342
+ * @throws {RequiredError}
3343
+ */
3344
+ userLabelServiceLabelGet(labelUpdateRequest, options) {
3345
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelGet(labelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3346
+ }
3347
+ /**
3348
+ *
3349
+ * @param {LabelListRequest} labelListRequest
3350
+ * @param {*} [options] Override http request option.
3351
+ * @throws {RequiredError}
3352
+ */
3353
+ userLabelServiceLabelList(labelListRequest, options) {
3354
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelList(labelListRequest, options).then((request) => request(this.axios, this.basePath));
3355
+ }
3356
+ /**
3357
+ *
3358
+ * @param {LabelUpdateRequest} labelUpdateRequest
3359
+ * @param {*} [options] Override http request option.
3360
+ * @throws {RequiredError}
3361
+ */
3362
+ userLabelServiceLabelUpdate(labelUpdateRequest, options) {
3363
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceLabelUpdate(labelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3364
+ }
3365
+ /**
3366
+ *
3367
+ * @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\&quot;page\&quot;
3368
+ * @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\&quot;page_size\&quot;
3369
+ * @param {Array<string>} [uidList]
3370
+ * @param {Array<string>} [labelIds]
3371
+ * @param {*} [options] Override http request option.
3372
+ * @throws {RequiredError}
3373
+ */
3374
+ userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options) {
3375
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceUserLabelList(page, pageSize, uidList, labelIds, options).then((request) => request(this.axios, this.basePath));
3376
+ }
3377
+ /**
3378
+ *
3379
+ * @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
3380
+ * @param {*} [options] Override http request option.
3381
+ * @throws {RequiredError}
3382
+ */
3383
+ userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options) {
3384
+ return (0, exports.UserLabelServiceApiFp)(this.configuration).userLabelServiceUserLabelPairChange(userLabelPairChangeRequest, options).then((request) => request(this.axios, this.basePath));
3385
+ }
3386
+ }
3387
+ exports.UserLabelServiceApi = UserLabelServiceApi;
3388
+ /**
3389
+ * UserModelServiceApi - axios parameter creator
3390
+ */
3391
+ const UserModelServiceApiAxiosParamCreator = function (configuration) {
3392
+ return {
3393
+ /**
3394
+ *
3395
+ * @param {string} [currencyCode] 货币代码过滤,例如 \&quot;USD\&quot;, \&quot;CNY\&quot; Filter by currency code, e.g., \&quot;USD\&quot;, \&quot;CNY\&quot; @gotags: form:\&quot;currency_code\&quot;
3396
+ * @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\&quot;before_id\&quot;
3397
+ * @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\&quot;after_id\&quot;
3398
+ * @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\&quot;limit\&quot;
3399
+ * @param {boolean} [withPricing] optional extra info @gotags: form:\&quot;with_pricing\&quot;
3400
+ * @param {*} [options] Override http request option.
3401
+ * @throws {RequiredError}
3402
+ */
3403
+ userModelServiceUserModelList: (currencyCode_1, beforeId_1, afterId_1, limit_1, withPricing_1, ...args_1) => __awaiter(this, [currencyCode_1, beforeId_1, afterId_1, limit_1, withPricing_1, ...args_1], void 0, function* (currencyCode, beforeId, afterId, limit, withPricing, options = {}) {
3404
+ const localVarPath = `/v1/models`;
3405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3406
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3407
+ let baseOptions;
3408
+ if (configuration) {
3409
+ baseOptions = configuration.baseOptions;
3410
+ }
3411
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3412
+ const localVarHeaderParameter = {};
3413
+ const localVarQueryParameter = {};
3414
+ if (currencyCode !== undefined) {
3415
+ localVarQueryParameter['currency_code'] = currencyCode;
3416
+ }
3417
+ if (beforeId !== undefined) {
3418
+ localVarQueryParameter['beforeId'] = beforeId;
3419
+ }
3420
+ if (afterId !== undefined) {
3421
+ localVarQueryParameter['afterId'] = afterId;
3422
+ }
3423
+ if (limit !== undefined) {
3424
+ localVarQueryParameter['limit'] = limit;
3425
+ }
3426
+ if (withPricing !== undefined) {
3427
+ localVarQueryParameter['with_pricing'] = withPricing;
3428
+ }
3429
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3432
+ return {
3433
+ url: (0, common_1.toPathString)(localVarUrlObj),
3434
+ options: localVarRequestOptions,
3435
+ };
3436
+ }),
3437
+ };
3438
+ };
3439
+ exports.UserModelServiceApiAxiosParamCreator = UserModelServiceApiAxiosParamCreator;
3440
+ /**
3441
+ * UserModelServiceApi - functional programming interface
3442
+ */
3443
+ const UserModelServiceApiFp = function (configuration) {
3444
+ const localVarAxiosParamCreator = (0, exports.UserModelServiceApiAxiosParamCreator)(configuration);
3445
+ return {
3446
+ /**
3447
+ *
3448
+ * @param {string} [currencyCode] 货币代码过滤,例如 \&quot;USD\&quot;, \&quot;CNY\&quot; Filter by currency code, e.g., \&quot;USD\&quot;, \&quot;CNY\&quot; @gotags: form:\&quot;currency_code\&quot;
3449
+ * @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\&quot;before_id\&quot;
3450
+ * @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\&quot;after_id\&quot;
3451
+ * @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\&quot;limit\&quot;
3452
+ * @param {boolean} [withPricing] optional extra info @gotags: form:\&quot;with_pricing\&quot;
3453
+ * @param {*} [options] Override http request option.
3454
+ * @throws {RequiredError}
3455
+ */
3456
+ userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options) {
3457
+ return __awaiter(this, void 0, void 0, function* () {
3458
+ var _a, _b, _c;
3459
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options);
3460
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3461
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserModelServiceApi.userModelServiceUserModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3462
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3463
+ });
3464
+ },
3465
+ };
3466
+ };
3467
+ exports.UserModelServiceApiFp = UserModelServiceApiFp;
3468
+ /**
3469
+ * UserModelServiceApi - factory interface
3470
+ */
3471
+ const UserModelServiceApiFactory = function (configuration, basePath, axios) {
3472
+ const localVarFp = (0, exports.UserModelServiceApiFp)(configuration);
3473
+ return {
3474
+ /**
3475
+ *
3476
+ * @param {string} [currencyCode] 货币代码过滤,例如 \&quot;USD\&quot;, \&quot;CNY\&quot; Filter by currency code, e.g., \&quot;USD\&quot;, \&quot;CNY\&quot; @gotags: form:\&quot;currency_code\&quot;
3477
+ * @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\&quot;before_id\&quot;
3478
+ * @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\&quot;after_id\&quot;
3479
+ * @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\&quot;limit\&quot;
3480
+ * @param {boolean} [withPricing] optional extra info @gotags: form:\&quot;with_pricing\&quot;
3481
+ * @param {*} [options] Override http request option.
3482
+ * @throws {RequiredError}
3483
+ */
3484
+ userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options) {
3485
+ return localVarFp.userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options).then((request) => request(axios, basePath));
3486
+ },
3487
+ };
3488
+ };
3489
+ exports.UserModelServiceApiFactory = UserModelServiceApiFactory;
3490
+ /**
3491
+ * UserModelServiceApi - object-oriented interface
3492
+ */
3493
+ class UserModelServiceApi extends base_1.BaseAPI {
3494
+ /**
3495
+ *
3496
+ * @param {string} [currencyCode] 货币代码过滤,例如 \&quot;USD\&quot;, \&quot;CNY\&quot; Filter by currency code, e.g., \&quot;USD\&quot;, \&quot;CNY\&quot; @gotags: form:\&quot;currency_code\&quot;
3497
+ * @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\&quot;before_id\&quot;
3498
+ * @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\&quot;after_id\&quot;
3499
+ * @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\&quot;limit\&quot;
3500
+ * @param {boolean} [withPricing] optional extra info @gotags: form:\&quot;with_pricing\&quot;
3501
+ * @param {*} [options] Override http request option.
3502
+ * @throws {RequiredError}
3503
+ */
3504
+ userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options) {
3505
+ return (0, exports.UserModelServiceApiFp)(this.configuration).userModelServiceUserModelList(currencyCode, beforeId, afterId, limit, withPricing, options).then((request) => request(this.axios, this.basePath));
3506
+ }
3507
+ }
3508
+ exports.UserModelServiceApi = UserModelServiceApi;
3509
+ /**
3510
+ * UserPayServiceApi - axios parameter creator
3511
+ */
3512
+ const UserPayServiceApiAxiosParamCreator = function (configuration) {
3513
+ return {
3514
+ /**
3515
+ *
3516
+ * @param {string} [currencyCode]
3517
+ * @param {number} [chargeAmount]
3518
+ * @param {*} [options] Override http request option.
3519
+ * @throws {RequiredError}
3520
+ */
3521
+ userPayServiceUserPayStripeCheckout: (currencyCode_1, chargeAmount_1, ...args_1) => __awaiter(this, [currencyCode_1, chargeAmount_1, ...args_1], void 0, function* (currencyCode, chargeAmount, options = {}) {
3522
+ const localVarPath = `/api/v1/user/pay/stripe/checkout`;
3523
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3524
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3525
+ let baseOptions;
3526
+ if (configuration) {
3527
+ baseOptions = configuration.baseOptions;
3528
+ }
3529
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3530
+ const localVarHeaderParameter = {};
3531
+ const localVarQueryParameter = {};
3532
+ if (currencyCode !== undefined) {
3533
+ localVarQueryParameter['currencyCode'] = currencyCode;
3534
+ }
3535
+ if (chargeAmount !== undefined) {
3536
+ localVarQueryParameter['chargeAmount'] = chargeAmount;
3537
+ }
3538
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3540
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3541
+ return {
3542
+ url: (0, common_1.toPathString)(localVarUrlObj),
3543
+ options: localVarRequestOptions,
3544
+ };
3545
+ }),
3546
+ };
3547
+ };
3548
+ exports.UserPayServiceApiAxiosParamCreator = UserPayServiceApiAxiosParamCreator;
3549
+ /**
3550
+ * UserPayServiceApi - functional programming interface
3551
+ */
3552
+ const UserPayServiceApiFp = function (configuration) {
3553
+ const localVarAxiosParamCreator = (0, exports.UserPayServiceApiAxiosParamCreator)(configuration);
3554
+ return {
3555
+ /**
3556
+ *
3557
+ * @param {string} [currencyCode]
3558
+ * @param {number} [chargeAmount]
3559
+ * @param {*} [options] Override http request option.
3560
+ * @throws {RequiredError}
3561
+ */
3562
+ userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
3563
+ return __awaiter(this, void 0, void 0, function* () {
3564
+ var _a, _b, _c;
3565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options);
3566
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
3568
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3569
+ });
3570
+ },
3571
+ };
3572
+ };
3573
+ exports.UserPayServiceApiFp = UserPayServiceApiFp;
3574
+ /**
3575
+ * UserPayServiceApi - factory interface
3576
+ */
3577
+ const UserPayServiceApiFactory = function (configuration, basePath, axios) {
3578
+ const localVarFp = (0, exports.UserPayServiceApiFp)(configuration);
3579
+ return {
3580
+ /**
3581
+ *
3582
+ * @param {string} [currencyCode]
3583
+ * @param {number} [chargeAmount]
3584
+ * @param {*} [options] Override http request option.
3585
+ * @throws {RequiredError}
3586
+ */
3587
+ userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
3588
+ return localVarFp.userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options).then((request) => request(axios, basePath));
3589
+ },
3590
+ };
3591
+ };
3592
+ exports.UserPayServiceApiFactory = UserPayServiceApiFactory;
3593
+ /**
3594
+ * UserPayServiceApi - object-oriented interface
3595
+ */
3596
+ class UserPayServiceApi extends base_1.BaseAPI {
3597
+ /**
3598
+ *
3599
+ * @param {string} [currencyCode]
3600
+ * @param {number} [chargeAmount]
3601
+ * @param {*} [options] Override http request option.
3602
+ * @throws {RequiredError}
3603
+ */
3604
+ userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options) {
3605
+ return (0, exports.UserPayServiceApiFp)(this.configuration).userPayServiceUserPayStripeCheckout(currencyCode, chargeAmount, options).then((request) => request(this.axios, this.basePath));
3606
+ }
3607
+ }
3608
+ exports.UserPayServiceApi = UserPayServiceApi;
3609
+ /**
3610
+ * UserPoralServiceApi - axios parameter creator
3611
+ */
3612
+ const UserPoralServiceApiAxiosParamCreator = function (configuration) {
3613
+ return {
3614
+ /**
3615
+ *
3616
+ * @param {*} [options] Override http request option.
3617
+ * @throws {RequiredError}
3618
+ */
3619
+ userPoralServiceUserMeInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3620
+ const localVarPath = `/api/v1/user/me/info`;
3621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3622
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3623
+ let baseOptions;
3624
+ if (configuration) {
3625
+ baseOptions = configuration.baseOptions;
3626
+ }
3627
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3628
+ const localVarHeaderParameter = {};
3629
+ const localVarQueryParameter = {};
3630
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3633
+ return {
3634
+ url: (0, common_1.toPathString)(localVarUrlObj),
3635
+ options: localVarRequestOptions,
3636
+ };
3637
+ }),
3638
+ };
3639
+ };
3640
+ exports.UserPoralServiceApiAxiosParamCreator = UserPoralServiceApiAxiosParamCreator;
3641
+ /**
3642
+ * UserPoralServiceApi - functional programming interface
3643
+ */
3644
+ const UserPoralServiceApiFp = function (configuration) {
3645
+ const localVarAxiosParamCreator = (0, exports.UserPoralServiceApiAxiosParamCreator)(configuration);
3646
+ return {
3647
+ /**
3648
+ *
3649
+ * @param {*} [options] Override http request option.
3650
+ * @throws {RequiredError}
3651
+ */
3652
+ userPoralServiceUserMeInfo(options) {
3653
+ return __awaiter(this, void 0, void 0, function* () {
3654
+ var _a, _b, _c;
3655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userPoralServiceUserMeInfo(options);
3656
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3657
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPoralServiceApi.userPoralServiceUserMeInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3658
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3659
+ });
3660
+ },
3661
+ };
3662
+ };
3663
+ exports.UserPoralServiceApiFp = UserPoralServiceApiFp;
3664
+ /**
3665
+ * UserPoralServiceApi - factory interface
3666
+ */
3667
+ const UserPoralServiceApiFactory = function (configuration, basePath, axios) {
3668
+ const localVarFp = (0, exports.UserPoralServiceApiFp)(configuration);
3669
+ return {
3670
+ /**
3671
+ *
3672
+ * @param {*} [options] Override http request option.
3673
+ * @throws {RequiredError}
3674
+ */
3675
+ userPoralServiceUserMeInfo(options) {
3676
+ return localVarFp.userPoralServiceUserMeInfo(options).then((request) => request(axios, basePath));
3677
+ },
3678
+ };
3679
+ };
3680
+ exports.UserPoralServiceApiFactory = UserPoralServiceApiFactory;
3681
+ /**
3682
+ * UserPoralServiceApi - object-oriented interface
3683
+ */
3684
+ class UserPoralServiceApi extends base_1.BaseAPI {
3685
+ /**
3686
+ *
3687
+ * @param {*} [options] Override http request option.
3688
+ * @throws {RequiredError}
3689
+ */
3690
+ userPoralServiceUserMeInfo(options) {
3691
+ return (0, exports.UserPoralServiceApiFp)(this.configuration).userPoralServiceUserMeInfo(options).then((request) => request(this.axios, this.basePath));
3692
+ }
3693
+ }
3694
+ exports.UserPoralServiceApi = UserPoralServiceApi;