@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.
- package/.openapi-generator/FILES +135 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +219 -0
- package/api.ts +6364 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +4175 -0
- package/dist/api.js +3694 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +4175 -0
- package/dist/esm/api.js +3643 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AIModel.md +45 -0
- package/docs/AIModelAdminServiceApi.md +398 -0
- package/docs/AIModelArchitecture.md +25 -0
- package/docs/AIModelCreateRequest.md +35 -0
- package/docs/AIModelCreateResponse.md +25 -0
- package/docs/AIModelDeleteRequest.md +21 -0
- package/docs/AIModelDeleteResponse.md +23 -0
- package/docs/AIModelDisableRequest.md +21 -0
- package/docs/AIModelDisableResponse.md +25 -0
- package/docs/AIModelDiscountConfig.md +21 -0
- package/docs/AIModelGetResponse.md +25 -0
- package/docs/AIModelListResponse.md +27 -0
- package/docs/AIModelMeta.md +25 -0
- package/docs/AIModelPricingConfig.md +37 -0
- package/docs/AIModelProviderConfigItem.md +29 -0
- package/docs/AIModelPublishRequest.md +21 -0
- package/docs/AIModelPublishResponse.md +25 -0
- package/docs/AIModelUpdateRequest.md +37 -0
- package/docs/AIModelUpdateResponse.md +25 -0
- package/docs/AWSAuth.md +24 -0
- package/docs/AdminAuthFlowInitResponse.md +24 -0
- package/docs/AdminAuthServiceApi.md +81 -0
- package/docs/AudioPricing.md +33 -0
- package/docs/AuthFlowResult.md +23 -0
- package/docs/AuthTokenPair.md +27 -0
- package/docs/DiscountAdminServiceApi.md +281 -0
- package/docs/DiscountCreateRequest.md +36 -0
- package/docs/DiscountDeleteRequest.md +20 -0
- package/docs/DiscountDeleteResponse.md +22 -0
- package/docs/DiscountGetResponse.md +24 -0
- package/docs/DiscountInfo.md +42 -0
- package/docs/DiscountListResponse.md +26 -0
- package/docs/DiscountUpdateRequest.md +38 -0
- package/docs/DiscountUpdateResponse.md +24 -0
- package/docs/FeatureCostPricing.md +27 -0
- package/docs/FrontAIModel.md +45 -0
- package/docs/GCPAuth.md +27 -0
- package/docs/GoogleProtobufAny.md +21 -0
- package/docs/ImagePricing.md +31 -0
- package/docs/Label.md +28 -0
- package/docs/LabelCreateRequest.md +22 -0
- package/docs/LabelCreateResponse.md +24 -0
- package/docs/LabelDeleteRequest.md +20 -0
- package/docs/LabelDeleteResponse.md +22 -0
- package/docs/LabelListRequest.md +24 -0
- package/docs/LabelListResponse.md +26 -0
- package/docs/LabelUpdateRequest.md +24 -0
- package/docs/LabelUpdateResponse.md +24 -0
- package/docs/MultimodalPricing.md +25 -0
- package/docs/PricingConditions.md +31 -0
- package/docs/PricingRules.md +29 -0
- package/docs/Provider.md +37 -0
- package/docs/ProviderAdminServiceApi.md +284 -0
- package/docs/ProviderAuth.md +29 -0
- package/docs/ProviderCreateRequest.md +29 -0
- package/docs/ProviderCreateResponse.md +25 -0
- package/docs/ProviderDeleteRequest.md +21 -0
- package/docs/ProviderDeleteResponse.md +23 -0
- package/docs/ProviderGetResponse.md +25 -0
- package/docs/ProviderListResponse.md +27 -0
- package/docs/ProviderModel.md +37 -0
- package/docs/ProviderModelAdminServiceApi.md +287 -0
- package/docs/ProviderModelCreateRequest.md +29 -0
- package/docs/ProviderModelCreateResponse.md +25 -0
- package/docs/ProviderModelDeleteRequest.md +21 -0
- package/docs/ProviderModelDeleteResponse.md +23 -0
- package/docs/ProviderModelGetResponse.md +25 -0
- package/docs/ProviderModelListResponse.md +27 -0
- package/docs/ProviderModelPayload.md +23 -0
- package/docs/ProviderModelUpdateRequest.md +31 -0
- package/docs/ProviderModelUpdateResponse.md +25 -0
- package/docs/ProviderPayload.md +21 -0
- package/docs/ProviderUpdateRequest.md +31 -0
- package/docs/ProviderUpdateResponse.md +25 -0
- package/docs/RequestPricing.md +23 -0
- package/docs/Status.md +25 -0
- package/docs/TextTokenInputPricing.md +27 -0
- package/docs/TextTokenOutputPricing.md +25 -0
- package/docs/TextTokenPricing.md +23 -0
- package/docs/TokenTier.md +25 -0
- package/docs/UserAPIKey.md +47 -0
- package/docs/UserAPIKeyCreateRequest.md +37 -0
- package/docs/UserAPIKeyCreateResponse.md +25 -0
- package/docs/UserAPIKeyDeleteRequest.md +21 -0
- package/docs/UserAPIKeyDeleteResponse.md +23 -0
- package/docs/UserAPIKeyGetResponse.md +25 -0
- package/docs/UserAPIKeyListResponse.md +27 -0
- package/docs/UserAPIKeyServiceApi.md +290 -0
- package/docs/UserAPIKeyUpdateRequest.md +33 -0
- package/docs/UserAPIKeyUpdateResponse.md +25 -0
- package/docs/UserAuthFlowCodeResponse.md +26 -0
- package/docs/UserAuthFlowInitResponse.md +28 -0
- package/docs/UserAuthFlowInitResponseOAuthResult.md +20 -0
- package/docs/UserAuthFlowOAuthCallbackRequest.md +24 -0
- package/docs/UserAuthFlowOAuthCallbackResponse.md +26 -0
- package/docs/UserAuthInfo.md +20 -0
- package/docs/UserAuthServiceApi.md +279 -0
- package/docs/UserBalance.md +42 -0
- package/docs/UserBalanceBrief.md +32 -0
- package/docs/UserBalanceChangeResponse.md +24 -0
- package/docs/UserBalanceEditResponse.md +24 -0
- package/docs/UserBalanceListResponse.md +26 -0
- package/docs/UserBalanceServiceApi.md +226 -0
- package/docs/UserInfo.md +26 -0
- package/docs/UserLabelItem.md +22 -0
- package/docs/UserLabelListResponse.md +26 -0
- package/docs/UserLabelPair.md +22 -0
- package/docs/UserLabelPairChangeAction.md +22 -0
- package/docs/UserLabelPairChangeRequest.md +20 -0
- package/docs/UserLabelPairChangeResponse.md +22 -0
- package/docs/UserLabelServiceApi.md +386 -0
- package/docs/UserMeInfo.md +24 -0
- package/docs/UserMeInfoResponse.md +24 -0
- package/docs/UserModelListResponse.md +33 -0
- package/docs/UserModelServiceApi.md +71 -0
- package/docs/UserPayServiceApi.md +62 -0
- package/docs/UserPayStripeCheckout.md +20 -0
- package/docs/UserPayStripeCheckoutResponse.md +24 -0
- package/docs/UserPoralServiceApi.md +52 -0
- package/docs/UserSettings.md +20 -0
- package/docs/VersionedAPISchema.md +31 -0
- package/docs/VideoPricing.md +33 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +36 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,4175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import type { RequestArgs } from './base';
|
|
15
|
+
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
* AIModel 代表面向终端用户的 AI 模型配置 - 内部统一定义,提供给用户的是裁剪信息后的 FrontAIModel AIModel represents an AI model configuration exposed to end users
|
|
18
|
+
*/
|
|
19
|
+
export interface AIModel {
|
|
20
|
+
/**
|
|
21
|
+
* id AIModel 的唯一标识符 Unique identifier for the AI model
|
|
22
|
+
*/
|
|
23
|
+
'id'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* created_at 创建时间戳(Unix 时间戳) Creation timestamp (Unix timestamp)
|
|
26
|
+
*/
|
|
27
|
+
'created_at'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp)
|
|
30
|
+
*/
|
|
31
|
+
'updated_at'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* deleted_at 软删除时间戳,0 表示未删除 Soft deletion timestamp, 0 means not deleted
|
|
34
|
+
*/
|
|
35
|
+
'deleted_at'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* name 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" Unique name identifier for the model, e.g., \"gpt-4\", \"claude-3-opus\"
|
|
38
|
+
*/
|
|
39
|
+
'name'?: string;
|
|
40
|
+
/**
|
|
41
|
+
* display_name 模型的显示名称,例如 \"GPT-4\", \"Claude 3 Opus\" Display name for the model, e.g., \"GPT-4\", \"Claude 3 Opus\"
|
|
42
|
+
*/
|
|
43
|
+
'display_name'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* group 模型分组,例如 \"gpt-4\", \"claude-3\" Model group, e.g., \"gpt-4\", \"claude-3\"
|
|
46
|
+
*/
|
|
47
|
+
'group'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* description 模型描述 Model description
|
|
50
|
+
*/
|
|
51
|
+
'description'?: string;
|
|
52
|
+
/**
|
|
53
|
+
* status 模型状态 Model status 1: 草稿 (Draft) 2: 已发布 (Published) 3: 已禁用 (Disabled)
|
|
54
|
+
*/
|
|
55
|
+
'status'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* meta 元数据 Metadata
|
|
58
|
+
*/
|
|
59
|
+
'meta'?: AIModelMeta;
|
|
60
|
+
/**
|
|
61
|
+
* provider_configs Provider 配置列表 Provider configuration list
|
|
62
|
+
*/
|
|
63
|
+
'provider_configs'?: Array<AIModelProviderConfigItem>;
|
|
64
|
+
/**
|
|
65
|
+
* pricing_configs 价格配置列表 (NEW) Pricing configurations
|
|
66
|
+
*/
|
|
67
|
+
'pricing_configs'?: Array<AIModelPricingConfig>;
|
|
68
|
+
/**
|
|
69
|
+
* discount_config 折扣配置
|
|
70
|
+
*/
|
|
71
|
+
'discount_config'?: AIModelDiscountConfig;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* AIModelArchitecture AI模型架构信息 AI model architecture information
|
|
75
|
+
*/
|
|
76
|
+
export interface AIModelArchitecture {
|
|
77
|
+
/**
|
|
78
|
+
* modality 模态类型,例如 \"text+image->text\" Modality type, e.g., \"text+image->text\"
|
|
79
|
+
*/
|
|
80
|
+
'modality'?: string;
|
|
81
|
+
/**
|
|
82
|
+
* input_modalities 输入模态列表,例如 [\"file\", \"image\", \"text\", \"audio\"] List of input modalities, e.g., [\"file\", \"image\", \"text\", \"audio\"]
|
|
83
|
+
*/
|
|
84
|
+
'input_modalities'?: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
* output_modalities 输出模态列表,例如 [\"text\"] List of output modalities, e.g., [\"text\"]
|
|
87
|
+
*/
|
|
88
|
+
'output_modalities'?: Array<string>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* AIModelCreateRequest 创建 AIModel 的请求(草稿状态) Request message for creating a new AI model (draft status)
|
|
92
|
+
*/
|
|
93
|
+
export interface AIModelCreateRequest {
|
|
94
|
+
/**
|
|
95
|
+
* name 模型的唯一名称标识,例如 \"gpt-4\" Unique name identifier for the model, e.g., \"gpt-4\"
|
|
96
|
+
*/
|
|
97
|
+
'name'?: string;
|
|
98
|
+
/**
|
|
99
|
+
* display_name 模型的显示名称,例如 \"GPT-4\" Display name for the model, e.g., \"GPT-4\"
|
|
100
|
+
*/
|
|
101
|
+
'display_name'?: string;
|
|
102
|
+
/**
|
|
103
|
+
* group 模型分组,例如 \"gpt-4\" Model group, e.g., \"gpt-4\"
|
|
104
|
+
*/
|
|
105
|
+
'group'?: string;
|
|
106
|
+
/**
|
|
107
|
+
* description 模型描述(可选) Model description (optional)
|
|
108
|
+
*/
|
|
109
|
+
'description'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* meta 元数据(可选) Metadata (optional)
|
|
112
|
+
*/
|
|
113
|
+
'meta'?: AIModelMeta;
|
|
114
|
+
/**
|
|
115
|
+
* pricing_configs 价格配置列表(可选,草稿时可为空) Pricing configurations (optional, can be empty for draft)
|
|
116
|
+
*/
|
|
117
|
+
'pricing_configs'?: Array<AIModelPricingConfig>;
|
|
118
|
+
/**
|
|
119
|
+
* provider_configs Provider 配置列表(可选,草稿时可为空) Provider configuration list (optional, can be empty for draft)
|
|
120
|
+
*/
|
|
121
|
+
'provider_configs'?: Array<AIModelProviderConfigItem>;
|
|
122
|
+
/**
|
|
123
|
+
* discount_config 折扣配置
|
|
124
|
+
*/
|
|
125
|
+
'discount_config'?: AIModelDiscountConfig;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* AIModelCreateResponse 创建 AIModel 的响应 Response message for AI model creation
|
|
129
|
+
*/
|
|
130
|
+
export interface AIModelCreateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
133
|
+
*/
|
|
134
|
+
'code'?: string;
|
|
135
|
+
/**
|
|
136
|
+
* message 响应消息 Response message
|
|
137
|
+
*/
|
|
138
|
+
'message'?: string;
|
|
139
|
+
/**
|
|
140
|
+
* data 创建成功后返回的 AIModel 信息 AIModel information returned after successful creation
|
|
141
|
+
*/
|
|
142
|
+
'data'?: AIModel;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* AIModelDeleteRequest 删除 AIModel 的请求 Request message for deleting an AI model
|
|
146
|
+
*/
|
|
147
|
+
export interface AIModelDeleteRequest {
|
|
148
|
+
/**
|
|
149
|
+
* id 要删除的 AIModel 的唯一标识符 Unique identifier of the AI model to delete @gotags: form:\"id\" binding:\"required\"
|
|
150
|
+
*/
|
|
151
|
+
'id'?: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* AIModelDeleteResponse 删除 AIModel 的响应 Response message for AI model deletion
|
|
155
|
+
*/
|
|
156
|
+
export interface AIModelDeleteResponse {
|
|
157
|
+
/**
|
|
158
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
159
|
+
*/
|
|
160
|
+
'code'?: string;
|
|
161
|
+
/**
|
|
162
|
+
* message 响应消息 Response message
|
|
163
|
+
*/
|
|
164
|
+
'message'?: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* AIModelDisableRequest 禁用 AIModel 的请求 Request message for disabling an AI model
|
|
168
|
+
*/
|
|
169
|
+
export interface AIModelDisableRequest {
|
|
170
|
+
/**
|
|
171
|
+
* id 要禁用的 AIModel 的唯一标识符 Unique identifier of the AI model to disable @gotags: form:\"id\" binding:\"required\"
|
|
172
|
+
*/
|
|
173
|
+
'id'?: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* AIModelDisableResponse 禁用 AIModel 的响应 Response message for AI model disable
|
|
177
|
+
*/
|
|
178
|
+
export interface AIModelDisableResponse {
|
|
179
|
+
/**
|
|
180
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
181
|
+
*/
|
|
182
|
+
'code'?: string;
|
|
183
|
+
/**
|
|
184
|
+
* message 响应消息 Response message
|
|
185
|
+
*/
|
|
186
|
+
'message'?: string;
|
|
187
|
+
/**
|
|
188
|
+
* data 禁用后的 AIModel 信息 Disabled AI model information
|
|
189
|
+
*/
|
|
190
|
+
'data'?: AIModel;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* AIModelDiscountConfig AI模型折扣配置
|
|
194
|
+
*/
|
|
195
|
+
export interface AIModelDiscountConfig {
|
|
196
|
+
/**
|
|
197
|
+
* discount_ids 折扣ID列表,关联 DiscountInfo 表
|
|
198
|
+
*/
|
|
199
|
+
'discount_ids'?: Array<string>;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* AIModelGetResponse 获取单个 AIModel 的响应 Response message for AI model retrieval
|
|
203
|
+
*/
|
|
204
|
+
export interface AIModelGetResponse {
|
|
205
|
+
/**
|
|
206
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
207
|
+
*/
|
|
208
|
+
'code'?: string;
|
|
209
|
+
/**
|
|
210
|
+
* message 响应消息 Response message
|
|
211
|
+
*/
|
|
212
|
+
'message'?: string;
|
|
213
|
+
/**
|
|
214
|
+
* data AIModel 信息 AIModel information
|
|
215
|
+
*/
|
|
216
|
+
'data'?: AIModel;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* AIModelListResponse 分页查询 AIModel 列表的响应 Response message for AI model listing
|
|
220
|
+
*/
|
|
221
|
+
export interface AIModelListResponse {
|
|
222
|
+
/**
|
|
223
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
224
|
+
*/
|
|
225
|
+
'code'?: string;
|
|
226
|
+
/**
|
|
227
|
+
* message 响应消息 Response message
|
|
228
|
+
*/
|
|
229
|
+
'message'?: string;
|
|
230
|
+
/**
|
|
231
|
+
* list AIModel 列表 List of AI models
|
|
232
|
+
*/
|
|
233
|
+
'list'?: Array<AIModel>;
|
|
234
|
+
/**
|
|
235
|
+
* total 符合条件的 AIModel 总数 Total number of AI models matching the filter criteria
|
|
236
|
+
*/
|
|
237
|
+
'total'?: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* AIModelMeta AI模型元数据 AI model metadata
|
|
241
|
+
*/
|
|
242
|
+
export interface AIModelMeta {
|
|
243
|
+
/**
|
|
244
|
+
* endpoints 端点配置列表 - 这个模型支持的后端 API 列表 List of endpoint configurations - supported backend APIs for this model
|
|
245
|
+
*/
|
|
246
|
+
'endpoints'?: Array<VersionedAPISchema>;
|
|
247
|
+
/**
|
|
248
|
+
* context_length 上下文长度(token 数量) Context length (number of tokens)
|
|
249
|
+
*/
|
|
250
|
+
'context_length'?: string;
|
|
251
|
+
/**
|
|
252
|
+
* architecture 模型架构信息 Model architecture information
|
|
253
|
+
*/
|
|
254
|
+
'architecture'?: AIModelArchitecture;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* AIModelPricingConfig 统一的模型价格配置 - aligns with db.AIModelPricing Unified model pricing configuration
|
|
258
|
+
*/
|
|
259
|
+
export interface AIModelPricingConfig {
|
|
260
|
+
/**
|
|
261
|
+
* currency_code 货币代码,例如 \"USD\", \"CNY\" Currency code, e.g., \"USD\", \"CNY\"
|
|
262
|
+
*/
|
|
263
|
+
'currency_code'?: string;
|
|
264
|
+
/**
|
|
265
|
+
* pricing_name 价格配置名称,例如 \"Standard Pricing\", \"Premium Tier\" Pricing configuration name
|
|
266
|
+
*/
|
|
267
|
+
'pricing_name'?: string;
|
|
268
|
+
/**
|
|
269
|
+
* pricing_type 价格类型: \"standard\", \"batch\", \"cached\", \"fine_tuned\" Pricing type
|
|
270
|
+
*/
|
|
271
|
+
'pricing_type'?: string;
|
|
272
|
+
/**
|
|
273
|
+
* priority 优先级,数值越大优先级越高 Priority, higher value means higher priority
|
|
274
|
+
*/
|
|
275
|
+
'priority'?: number;
|
|
276
|
+
/**
|
|
277
|
+
* pricing_rules 价格规则配置 Pricing rules configuration
|
|
278
|
+
*/
|
|
279
|
+
'pricing_rules'?: PricingRules;
|
|
280
|
+
/**
|
|
281
|
+
* pricing_conditions 价格生效条件(可选) Pricing conditions (optional)
|
|
282
|
+
*/
|
|
283
|
+
'pricing_conditions'?: PricingConditions;
|
|
284
|
+
/**
|
|
285
|
+
* pricing_status 价格状态: 0=未激活, 1=激活中 Pricing status: 0=inactive, 1=active
|
|
286
|
+
*/
|
|
287
|
+
'pricing_status'?: number;
|
|
288
|
+
/**
|
|
289
|
+
* effective_from 生效开始时间戳(Unix时间,0表示立即生效) Effective from timestamp (Unix time, 0 means immediately)
|
|
290
|
+
*/
|
|
291
|
+
'effective_from'?: string;
|
|
292
|
+
/**
|
|
293
|
+
* effective_until 生效结束时间戳(Unix时间,0表示永久有效) Effective until timestamp (Unix time, 0 means永久)
|
|
294
|
+
*/
|
|
295
|
+
'effective_until'?: string;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* AIModelProviderConfigItem 代表创建/更新 AIModel 时的 Provider 配置项 Represents a provider configuration item when creating/updating AIModel
|
|
299
|
+
*/
|
|
300
|
+
export interface AIModelProviderConfigItem {
|
|
301
|
+
/**
|
|
302
|
+
* provider_id 关联的 Provider ID Associated Provider ID
|
|
303
|
+
*/
|
|
304
|
+
'provider_id'?: string;
|
|
305
|
+
/**
|
|
306
|
+
* provider_model_id 关联的 ProviderModel ID Associated ProviderModel ID
|
|
307
|
+
*/
|
|
308
|
+
'provider_model_id'?: string;
|
|
309
|
+
/**
|
|
310
|
+
* priority 优先级,数值越小优先级越高 Priority, lower value means higher priority
|
|
311
|
+
*/
|
|
312
|
+
'priority'?: string;
|
|
313
|
+
/**
|
|
314
|
+
* traffic_permille 流量千分比 (0-1000) Traffic permille (0-1000)
|
|
315
|
+
*/
|
|
316
|
+
'traffic_permille'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* endpoint_mapping 端点映射配置 Endpoint mapping configuration key: ai model endpoint id (e.g., \"openai:chat/completions\") value: provider api endpoint id (e.g., \"anthropic:messages\")
|
|
319
|
+
*/
|
|
320
|
+
'endpoint_mapping'?: {
|
|
321
|
+
[key: string]: string;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* AIModelPublishRequest 发布 AIModel 的请求 Request message for publishing an AI model
|
|
326
|
+
*/
|
|
327
|
+
export interface AIModelPublishRequest {
|
|
328
|
+
/**
|
|
329
|
+
* id 要发布的 AIModel 的唯一标识符 Unique identifier of the AI model to publish @gotags: form:\"id\" binding:\"required\"
|
|
330
|
+
*/
|
|
331
|
+
'id'?: string;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* AIModelPublishResponse 发布 AIModel 的响应 Response message for AI model publish
|
|
335
|
+
*/
|
|
336
|
+
export interface AIModelPublishResponse {
|
|
337
|
+
/**
|
|
338
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
339
|
+
*/
|
|
340
|
+
'code'?: string;
|
|
341
|
+
/**
|
|
342
|
+
* message 响应消息 Response message
|
|
343
|
+
*/
|
|
344
|
+
'message'?: string;
|
|
345
|
+
/**
|
|
346
|
+
* data 发布后的 AIModel 信息 Published AI model information
|
|
347
|
+
*/
|
|
348
|
+
'data'?: AIModel;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* AIModelUpdateRequest 更新 AIModel 的请求 Request message for updating an existing AI model
|
|
352
|
+
*/
|
|
353
|
+
export interface AIModelUpdateRequest {
|
|
354
|
+
/**
|
|
355
|
+
* id AIModel 的唯一标识符 Unique identifier of the AI model to update
|
|
356
|
+
*/
|
|
357
|
+
'id'?: string;
|
|
358
|
+
/**
|
|
359
|
+
* name 模型的唯一名称标识 Unique name identifier for the model
|
|
360
|
+
*/
|
|
361
|
+
'name'?: string;
|
|
362
|
+
/**
|
|
363
|
+
* display_name 模型的显示名称 Display name for the model
|
|
364
|
+
*/
|
|
365
|
+
'display_name'?: string;
|
|
366
|
+
/**
|
|
367
|
+
* group 模型分组 Model group
|
|
368
|
+
*/
|
|
369
|
+
'group'?: string;
|
|
370
|
+
/**
|
|
371
|
+
* description 模型描述 Model description
|
|
372
|
+
*/
|
|
373
|
+
'description'?: string;
|
|
374
|
+
/**
|
|
375
|
+
* meta 元数据 Metadata
|
|
376
|
+
*/
|
|
377
|
+
'meta'?: AIModelMeta;
|
|
378
|
+
/**
|
|
379
|
+
* pricing_configs 价格配置列表 Pricing configurations
|
|
380
|
+
*/
|
|
381
|
+
'pricing_configs'?: Array<AIModelPricingConfig>;
|
|
382
|
+
/**
|
|
383
|
+
* provider_configs Provider 配置列表 Provider configuration list
|
|
384
|
+
*/
|
|
385
|
+
'provider_configs'?: Array<AIModelProviderConfigItem>;
|
|
386
|
+
/**
|
|
387
|
+
* discount_config 折扣配置
|
|
388
|
+
*/
|
|
389
|
+
'discount_config'?: AIModelDiscountConfig;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* AIModelUpdateResponse 更新 AIModel 的响应 Response message for AI model update
|
|
393
|
+
*/
|
|
394
|
+
export interface AIModelUpdateResponse {
|
|
395
|
+
/**
|
|
396
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
397
|
+
*/
|
|
398
|
+
'code'?: string;
|
|
399
|
+
/**
|
|
400
|
+
* message 响应消息 Response message
|
|
401
|
+
*/
|
|
402
|
+
'message'?: string;
|
|
403
|
+
/**
|
|
404
|
+
* data 更新后的 AIModel 信息 Updated AI model information
|
|
405
|
+
*/
|
|
406
|
+
'data'?: AIModel;
|
|
407
|
+
}
|
|
408
|
+
export interface AWSAuth {
|
|
409
|
+
/**
|
|
410
|
+
* region AWS 区域,例如 \"us-east1\"
|
|
411
|
+
*/
|
|
412
|
+
'region'?: string;
|
|
413
|
+
'ak'?: string;
|
|
414
|
+
'sk'?: string;
|
|
415
|
+
}
|
|
416
|
+
export interface AdminAuthFlowInitResponse {
|
|
417
|
+
'code'?: string;
|
|
418
|
+
'message'?: string;
|
|
419
|
+
/**
|
|
420
|
+
* 对于部分流程(例如邮箱密码登录),只需要 init 即可完成授权登录态,则会直接返回 AuthData 否则需要继续走完后续流程和调用相关接口.
|
|
421
|
+
*/
|
|
422
|
+
'auth_result'?: AuthFlowResult;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* AudioPricing 音频计费 Audio pricing
|
|
426
|
+
*/
|
|
427
|
+
export interface AudioPricing {
|
|
428
|
+
/**
|
|
429
|
+
* id 价格配置ID Price configuration ID
|
|
430
|
+
*/
|
|
431
|
+
'id'?: string;
|
|
432
|
+
/**
|
|
433
|
+
* mode 计费模式: \"per_second\", \"per_token\" Pricing mode
|
|
434
|
+
*/
|
|
435
|
+
'mode'?: string;
|
|
436
|
+
/**
|
|
437
|
+
* input_per_token 输入每Token费用 Input fee per token
|
|
438
|
+
*/
|
|
439
|
+
'input_per_token'?: string;
|
|
440
|
+
/**
|
|
441
|
+
* output_per_token 输出每Token费用 Output fee per token
|
|
442
|
+
*/
|
|
443
|
+
'output_per_token'?: string;
|
|
444
|
+
/**
|
|
445
|
+
* input_per_second 输入每秒费用 Input fee per second
|
|
446
|
+
*/
|
|
447
|
+
'input_per_second'?: string;
|
|
448
|
+
/**
|
|
449
|
+
* output_per_second 输出每秒费用 Output fee per second
|
|
450
|
+
*/
|
|
451
|
+
'output_per_second'?: string;
|
|
452
|
+
/**
|
|
453
|
+
* extra 扩展计算 Extra calculation options
|
|
454
|
+
*/
|
|
455
|
+
'extra'?: {
|
|
456
|
+
[key: string]: string;
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* AuthFlowResult 授权登录态获取成功后的数据
|
|
461
|
+
*/
|
|
462
|
+
export interface AuthFlowResult {
|
|
463
|
+
'is_authed'?: boolean;
|
|
464
|
+
'auth_tokens'?: AuthTokenPair;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* AuthTokenPair 登录态授权 AT + RT
|
|
468
|
+
*/
|
|
469
|
+
export interface AuthTokenPair {
|
|
470
|
+
'access_token'?: string;
|
|
471
|
+
'access_expires_at'?: string;
|
|
472
|
+
'refresh_token'?: string;
|
|
473
|
+
'refresh_expires_at'?: string;
|
|
474
|
+
}
|
|
475
|
+
export interface DiscountCreateRequest {
|
|
476
|
+
'name'?: string;
|
|
477
|
+
'description'?: string;
|
|
478
|
+
'type'?: string;
|
|
479
|
+
'rate'?: number;
|
|
480
|
+
'status'?: number;
|
|
481
|
+
'priority'?: number;
|
|
482
|
+
'effective_start'?: string;
|
|
483
|
+
'effective_until'?: string;
|
|
484
|
+
'label_ids'?: Array<string>;
|
|
485
|
+
}
|
|
486
|
+
export interface DiscountDeleteRequest {
|
|
487
|
+
/**
|
|
488
|
+
* @gotags: form:\"id\"
|
|
489
|
+
*/
|
|
490
|
+
'id'?: string;
|
|
491
|
+
}
|
|
492
|
+
export interface DiscountDeleteResponse {
|
|
493
|
+
/**
|
|
494
|
+
* code 响应状态码,0 表示成功
|
|
495
|
+
*/
|
|
496
|
+
'code'?: string;
|
|
497
|
+
/**
|
|
498
|
+
* message 响应消息
|
|
499
|
+
*/
|
|
500
|
+
'message'?: string;
|
|
501
|
+
}
|
|
502
|
+
export interface DiscountGetResponse {
|
|
503
|
+
/**
|
|
504
|
+
* code 响应状态码,0 表示成功
|
|
505
|
+
*/
|
|
506
|
+
'code'?: string;
|
|
507
|
+
/**
|
|
508
|
+
* message 响应消息
|
|
509
|
+
*/
|
|
510
|
+
'message'?: string;
|
|
511
|
+
'discount'?: DiscountInfo;
|
|
512
|
+
}
|
|
513
|
+
export interface DiscountInfo {
|
|
514
|
+
'id'?: string;
|
|
515
|
+
'name'?: string;
|
|
516
|
+
'description'?: string;
|
|
517
|
+
'type'?: string;
|
|
518
|
+
'rate'?: number;
|
|
519
|
+
'status'?: number;
|
|
520
|
+
'priority'?: number;
|
|
521
|
+
'effective_start'?: string;
|
|
522
|
+
'effective_until'?: string;
|
|
523
|
+
'created_at'?: string;
|
|
524
|
+
'updated_at'?: string;
|
|
525
|
+
/**
|
|
526
|
+
* when type is LABELED_USERS, this field contains the applicable label IDs
|
|
527
|
+
*/
|
|
528
|
+
'label_ids'?: Array<string>;
|
|
529
|
+
}
|
|
530
|
+
export interface DiscountListResponse {
|
|
531
|
+
/**
|
|
532
|
+
* code 响应状态码,0 表示成功
|
|
533
|
+
*/
|
|
534
|
+
'code'?: string;
|
|
535
|
+
/**
|
|
536
|
+
* message 响应消息
|
|
537
|
+
*/
|
|
538
|
+
'message'?: string;
|
|
539
|
+
'discount'?: Array<DiscountInfo>;
|
|
540
|
+
'total'?: string;
|
|
541
|
+
}
|
|
542
|
+
export interface DiscountUpdateRequest {
|
|
543
|
+
'id'?: string;
|
|
544
|
+
'name'?: string;
|
|
545
|
+
'description'?: string;
|
|
546
|
+
'type'?: string;
|
|
547
|
+
'rate'?: number;
|
|
548
|
+
'status'?: number;
|
|
549
|
+
'priority'?: number;
|
|
550
|
+
'effective_start'?: string;
|
|
551
|
+
'effective_until'?: string;
|
|
552
|
+
'label_ids'?: Array<string>;
|
|
553
|
+
}
|
|
554
|
+
export interface DiscountUpdateResponse {
|
|
555
|
+
/**
|
|
556
|
+
* code 响应状态码,0 表示成功
|
|
557
|
+
*/
|
|
558
|
+
'code'?: string;
|
|
559
|
+
/**
|
|
560
|
+
* message 响应消息
|
|
561
|
+
*/
|
|
562
|
+
'message'?: string;
|
|
563
|
+
/**
|
|
564
|
+
* 更新后的 Discount 信息
|
|
565
|
+
*/
|
|
566
|
+
'discount'?: DiscountInfo;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* FeatureCostPricing 特殊功能计费(新版) Feature cost pricing (new version)
|
|
570
|
+
*/
|
|
571
|
+
export interface FeatureCostPricing {
|
|
572
|
+
/**
|
|
573
|
+
* id 价格配置ID Price configuration ID
|
|
574
|
+
*/
|
|
575
|
+
'id'?: string;
|
|
576
|
+
/**
|
|
577
|
+
* name 功能名称 Feature name
|
|
578
|
+
*/
|
|
579
|
+
'name'?: string;
|
|
580
|
+
/**
|
|
581
|
+
* per_cost 每次使用费用 Cost per usage
|
|
582
|
+
*/
|
|
583
|
+
'per_cost'?: string;
|
|
584
|
+
/**
|
|
585
|
+
* extra 扩展规则 Extra rules
|
|
586
|
+
*/
|
|
587
|
+
'extra'?: {
|
|
588
|
+
[key: string]: string;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* FrontAIModel 代表面向终端用户的 AI 模型配置(符合 OpenAI API 格式) FrontAIModel represents an AI model configuration exposed to end users (OpenAI API compatible)
|
|
593
|
+
*/
|
|
594
|
+
export interface FrontAIModel {
|
|
595
|
+
/**
|
|
596
|
+
* id 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段 Unique name identifier for the model, e.g., \"gpt-4\", \"claude-3-opus\" Maps to OpenAI API \"id\" field
|
|
597
|
+
*/
|
|
598
|
+
'id'?: string;
|
|
599
|
+
/**
|
|
600
|
+
* name 模型的唯一名称标识,例如 \"gpt-4\", \"claude-3-opus\" 对应 OpenAI API 的 \"id\" 字段, Gemini 兼容
|
|
601
|
+
*/
|
|
602
|
+
'name'?: string;
|
|
603
|
+
/**
|
|
604
|
+
* object 对象类型,固定为 \"model\"(OpenAI API 格式) Object type, always \"model\" (OpenAI API format)
|
|
605
|
+
*/
|
|
606
|
+
'object'?: string;
|
|
607
|
+
/**
|
|
608
|
+
* created_at 创建时间戳(Unix 时间戳) 对应 OpenAI API 的 \"created\" 字段 Creation timestamp (Unix timestamp) Maps to OpenAI API \"created\" field
|
|
609
|
+
*/
|
|
610
|
+
'created'?: string;
|
|
611
|
+
/**
|
|
612
|
+
* updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp)
|
|
613
|
+
*/
|
|
614
|
+
'updated'?: string;
|
|
615
|
+
/**
|
|
616
|
+
* display_name 模型的显示名称,例如 \"GPT-4\", \"Claude 3 Opus\" Display name for the model, e.g., \"GPT-4\", \"Claude 3 Opus\"
|
|
617
|
+
*/
|
|
618
|
+
'display_name'?: string;
|
|
619
|
+
/**
|
|
620
|
+
* description 模型描述 Model description
|
|
621
|
+
*/
|
|
622
|
+
'description'?: string;
|
|
623
|
+
/**
|
|
624
|
+
* status 模型状态 Model status 1: 草稿 (Draft) 2: 已发布 (Published) 3: 已禁用 (Disabled)
|
|
625
|
+
*/
|
|
626
|
+
'status'?: number;
|
|
627
|
+
/**
|
|
628
|
+
* meta 元数据 Metadata
|
|
629
|
+
*/
|
|
630
|
+
'meta'?: AIModelMeta;
|
|
631
|
+
/**
|
|
632
|
+
* pricing_configs 价格配置列表(支持多货币和多种价格类型) Pricing configurations (supports multiple currencies and pricing types)
|
|
633
|
+
*/
|
|
634
|
+
'pricing_configs'?: Array<AIModelPricingConfig>;
|
|
635
|
+
/**
|
|
636
|
+
* owned_by 模型所有者,例如 \"openai\", \"anthropic\", \"organization-owner\"(OpenAI API 格式) Model owner, e.g., \"openai\", \"anthropic\", \"organization-owner\" (OpenAI API format)
|
|
637
|
+
*/
|
|
638
|
+
'owned_by'?: string;
|
|
639
|
+
/**
|
|
640
|
+
* internal_id AIModel 的内部数据库 ID Internal database ID for the AI model
|
|
641
|
+
*/
|
|
642
|
+
'internal_id'?: string;
|
|
643
|
+
/**
|
|
644
|
+
* gemini 接口兼容的基础模型 ID,而且是必须字段,例如 \"gemini-1.5-pro\" json tag 也需要遵循 gemini 命名规范 - camelCase Gemini-compatible base model ID, also a required field, e.g., \"gemini-1.5-pro\" json tag also needs to follow gemini naming convention - camelCase
|
|
645
|
+
*/
|
|
646
|
+
'baseModelID'?: string;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* GCPAuth 代表 Google Cloud Platform 的认证详情 GCP authentication details for Google Cloud Platform services
|
|
650
|
+
*/
|
|
651
|
+
export interface GCPAuth {
|
|
652
|
+
/**
|
|
653
|
+
* region GCP 区域,例如 \"us-central1\", \"europe-west4\" GCP region, e.g., \"us-central1\", \"europe-west4\"
|
|
654
|
+
*/
|
|
655
|
+
'region'?: string;
|
|
656
|
+
/**
|
|
657
|
+
* project_name GCP 项目名称 GCP project name where Vertex AI APIs are enabled
|
|
658
|
+
*/
|
|
659
|
+
'project_name'?: string;
|
|
660
|
+
/**
|
|
661
|
+
* credentials GCP 凭证的 JSON 格式内容 JSON-formatted GCP credentials content
|
|
662
|
+
*/
|
|
663
|
+
'credentials'?: string;
|
|
664
|
+
/**
|
|
665
|
+
* backend Google 后端类型 Google backend type 1: Gemini API 2: Vertex AI
|
|
666
|
+
*/
|
|
667
|
+
'backend'?: number;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
|
|
671
|
+
*/
|
|
672
|
+
export interface GoogleProtobufAny {
|
|
673
|
+
[key: string]: any;
|
|
674
|
+
/**
|
|
675
|
+
* The type of the serialized message.
|
|
676
|
+
*/
|
|
677
|
+
'@type'?: string;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* ImagePricing 图片计费 Image pricing
|
|
681
|
+
*/
|
|
682
|
+
export interface ImagePricing {
|
|
683
|
+
/**
|
|
684
|
+
* id 价格配置ID Price configuration ID
|
|
685
|
+
*/
|
|
686
|
+
'id'?: string;
|
|
687
|
+
/**
|
|
688
|
+
* mode 计费模式: \"per_item\", \"per_token\", \"hybrid\" Pricing mode
|
|
689
|
+
*/
|
|
690
|
+
'mode'?: string;
|
|
691
|
+
/**
|
|
692
|
+
* per_image 每张图片费用 Fee per image
|
|
693
|
+
*/
|
|
694
|
+
'per_image'?: string;
|
|
695
|
+
/**
|
|
696
|
+
* per_token 每Token价格 Fee per token
|
|
697
|
+
*/
|
|
698
|
+
'per_token'?: string;
|
|
699
|
+
/**
|
|
700
|
+
* resolution_multiplier 分辨率倍数(key: 分辨率如\"1024x1024\", value: 倍数) Resolution multiplier (key: resolution like \"1024x1024\", value: multiplier)
|
|
701
|
+
*/
|
|
702
|
+
'resolution_multiplier'?: {
|
|
703
|
+
[key: string]: string;
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* extra 扩展计算 Extra calculation options
|
|
707
|
+
*/
|
|
708
|
+
'extra'?: {
|
|
709
|
+
[key: string]: string;
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
export interface Label {
|
|
713
|
+
'id'?: string;
|
|
714
|
+
'name'?: string;
|
|
715
|
+
'description'?: string;
|
|
716
|
+
'created_at'?: string;
|
|
717
|
+
'updated_at'?: string;
|
|
718
|
+
}
|
|
719
|
+
export interface LabelCreateRequest {
|
|
720
|
+
'name'?: string;
|
|
721
|
+
'description'?: string;
|
|
722
|
+
}
|
|
723
|
+
export interface LabelCreateResponse {
|
|
724
|
+
/**
|
|
725
|
+
* code 响应状态码,0 表示成功
|
|
726
|
+
*/
|
|
727
|
+
'code'?: string;
|
|
728
|
+
/**
|
|
729
|
+
* message 响应消息
|
|
730
|
+
*/
|
|
731
|
+
'message'?: string;
|
|
732
|
+
/**
|
|
733
|
+
* 创建的 Discount 信息
|
|
734
|
+
*/
|
|
735
|
+
'data'?: Label;
|
|
736
|
+
}
|
|
737
|
+
export interface LabelDeleteRequest {
|
|
738
|
+
/**
|
|
739
|
+
* @gotags: form:\"id\"
|
|
740
|
+
*/
|
|
741
|
+
'id'?: string;
|
|
742
|
+
}
|
|
743
|
+
export interface LabelDeleteResponse {
|
|
744
|
+
/**
|
|
745
|
+
* code 响应状态码,0 表示成功
|
|
746
|
+
*/
|
|
747
|
+
'code'?: string;
|
|
748
|
+
/**
|
|
749
|
+
* message 响应消息
|
|
750
|
+
*/
|
|
751
|
+
'message'?: string;
|
|
752
|
+
}
|
|
753
|
+
export interface LabelListRequest {
|
|
754
|
+
/**
|
|
755
|
+
* page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
756
|
+
*/
|
|
757
|
+
'page'?: number;
|
|
758
|
+
/**
|
|
759
|
+
* page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
760
|
+
*/
|
|
761
|
+
'page_size'?: number;
|
|
762
|
+
/**
|
|
763
|
+
* name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
764
|
+
*/
|
|
765
|
+
'name_prefix'?: string;
|
|
766
|
+
}
|
|
767
|
+
export interface LabelListResponse {
|
|
768
|
+
/**
|
|
769
|
+
* code 响应状态码,0 表示成功
|
|
770
|
+
*/
|
|
771
|
+
'code'?: string;
|
|
772
|
+
/**
|
|
773
|
+
* message 响应消息
|
|
774
|
+
*/
|
|
775
|
+
'message'?: string;
|
|
776
|
+
'data'?: Array<Label>;
|
|
777
|
+
'total'?: string;
|
|
778
|
+
}
|
|
779
|
+
export interface LabelUpdateRequest {
|
|
780
|
+
'id'?: string;
|
|
781
|
+
'name'?: string;
|
|
782
|
+
'description'?: string;
|
|
783
|
+
}
|
|
784
|
+
export interface LabelUpdateResponse {
|
|
785
|
+
/**
|
|
786
|
+
* code 响应状态码,0 表示成功
|
|
787
|
+
*/
|
|
788
|
+
'code'?: string;
|
|
789
|
+
/**
|
|
790
|
+
* message 响应消息
|
|
791
|
+
*/
|
|
792
|
+
'message'?: string;
|
|
793
|
+
/**
|
|
794
|
+
* 创建的 Discount 信息
|
|
795
|
+
*/
|
|
796
|
+
'data'?: Label;
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* MultimodalPricing 多模态计费 Multimodal pricing
|
|
800
|
+
*/
|
|
801
|
+
export interface MultimodalPricing {
|
|
802
|
+
/**
|
|
803
|
+
* image 图片计费 Image pricing
|
|
804
|
+
*/
|
|
805
|
+
'image'?: ImagePricing;
|
|
806
|
+
/**
|
|
807
|
+
* audio 音频计费 Audio pricing
|
|
808
|
+
*/
|
|
809
|
+
'audio'?: AudioPricing;
|
|
810
|
+
/**
|
|
811
|
+
* video 视频计费 Video pricing
|
|
812
|
+
*/
|
|
813
|
+
'video'?: VideoPricing;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* PricingConditions 价格生效条件 Pricing conditions
|
|
817
|
+
*/
|
|
818
|
+
export interface PricingConditions {
|
|
819
|
+
/**
|
|
820
|
+
* user_tiers 用户层级:standard, premium, enterprise User tiers
|
|
821
|
+
*/
|
|
822
|
+
'user_tiers'?: Array<string>;
|
|
823
|
+
/**
|
|
824
|
+
* api_versions API版本:v1, v2 API versions
|
|
825
|
+
*/
|
|
826
|
+
'api_versions'?: Array<string>;
|
|
827
|
+
/**
|
|
828
|
+
* regions 区域:us, eu, asia Regions
|
|
829
|
+
*/
|
|
830
|
+
'regions'?: Array<string>;
|
|
831
|
+
/**
|
|
832
|
+
* min_balance 最低余额要求 Minimum balance requirement
|
|
833
|
+
*/
|
|
834
|
+
'min_balance'?: string;
|
|
835
|
+
/**
|
|
836
|
+
* max_daily_usage 每日使用上限 Maximum daily usage
|
|
837
|
+
*/
|
|
838
|
+
'max_daily_usage'?: string;
|
|
839
|
+
/**
|
|
840
|
+
* extra 扩展条件 Extra conditions
|
|
841
|
+
*/
|
|
842
|
+
'extra'?: {
|
|
843
|
+
[key: string]: string;
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* PricingRules 价格规则配置 Pricing rules configuration
|
|
848
|
+
*/
|
|
849
|
+
export interface PricingRules {
|
|
850
|
+
/**
|
|
851
|
+
* text_token_pricing Text Token计费规则 Text token pricing rules
|
|
852
|
+
*/
|
|
853
|
+
'text_token_pricing'?: TextTokenPricing;
|
|
854
|
+
/**
|
|
855
|
+
* request_pricing 请求级别计费 Request-level pricing
|
|
856
|
+
*/
|
|
857
|
+
'request_pricing'?: RequestPricing;
|
|
858
|
+
/**
|
|
859
|
+
* multimodal_pricing 多模态计费 Multimodal pricing
|
|
860
|
+
*/
|
|
861
|
+
'multimodal_pricing'?: MultimodalPricing;
|
|
862
|
+
/**
|
|
863
|
+
* feature_cost_pricing 特殊功能计费(新版) Feature cost pricing (new version)
|
|
864
|
+
*/
|
|
865
|
+
'feature_cost_pricing'?: Array<FeatureCostPricing>;
|
|
866
|
+
/**
|
|
867
|
+
* extra 扩展字段,支持自定义规则 Extra field for custom rules
|
|
868
|
+
*/
|
|
869
|
+
'extra'?: {
|
|
870
|
+
[key: string]: string;
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Provider 代表第三方 AI 模型提供商(例如 OpenAI、Anthropic、Google) Provider represents a third-party AI model provider (e.g., OpenAI, Anthropic, Google)
|
|
875
|
+
*/
|
|
876
|
+
export interface Provider {
|
|
877
|
+
/**
|
|
878
|
+
* id Provider 的唯一标识符 Unique identifier for the provider
|
|
879
|
+
*/
|
|
880
|
+
'id'?: string;
|
|
881
|
+
/**
|
|
882
|
+
* created_at 创建时间戳(Unix 时间戳) Creation timestamp (Unix timestamp)
|
|
883
|
+
*/
|
|
884
|
+
'created_at'?: string;
|
|
885
|
+
/**
|
|
886
|
+
* updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp)
|
|
887
|
+
*/
|
|
888
|
+
'updated_at'?: string;
|
|
889
|
+
/**
|
|
890
|
+
* deleted_at 软删除时间戳,0 表示未删除 Soft deletion timestamp, 0 means not deleted
|
|
891
|
+
*/
|
|
892
|
+
'deleted_at'?: string;
|
|
893
|
+
/**
|
|
894
|
+
* name Provider 的唯一名称标识,例如 \"openai-prod-1\" Unique name identifier for the provider, e.g., \"openai-prod-1\" 用于系统内部引用,必须唯一 Used for internal system reference, must be unique
|
|
895
|
+
*/
|
|
896
|
+
'name'?: string;
|
|
897
|
+
/**
|
|
898
|
+
* display_name Provider 的显示名称,例如 \"OpenAI Production\" Display name for the provider, e.g., \"OpenAI Production\" 用于用户界面显示 Used for UI display
|
|
899
|
+
*/
|
|
900
|
+
'display_name'?: string;
|
|
901
|
+
/**
|
|
902
|
+
* provider_type Provider 类型,例如 \"openai\", \"anthropic\", \"google\" Provider type, e.g., \"openai\", \"anthropic\", \"google\" 可选值: \"openai\", \"anthropic\", \"google\" Available values: \"openai\", \"anthropic\", \"google\"
|
|
903
|
+
*/
|
|
904
|
+
'provider_type'?: string;
|
|
905
|
+
/**
|
|
906
|
+
* provider_status Provider 状态 Provider status 1: 启用 (Active) 2: 禁用 (Disabled)
|
|
907
|
+
*/
|
|
908
|
+
'provider_status'?: number;
|
|
909
|
+
/**
|
|
910
|
+
* payload Provider 的认证和配置详情 Authentication and configuration details for the provider
|
|
911
|
+
*/
|
|
912
|
+
'payload'?: ProviderPayload;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* ProviderAuth 包含 Provider 的认证详情,支持多种认证方式 Provider authentication details, supports multiple authentication methods
|
|
916
|
+
*/
|
|
917
|
+
export interface ProviderAuth {
|
|
918
|
+
/**
|
|
919
|
+
* auth_type 认证类型,例如 \"apikey\" 或 \"google\" Authentication type, e.g., \"apikey\" or \"google\" 可选值: \"apikey\", \"google\" Available values: \"apikey\", \"google\"
|
|
920
|
+
*/
|
|
921
|
+
'auth_type'?: string;
|
|
922
|
+
/**
|
|
923
|
+
* base_url Provider 的基础 URL 地址 Base URL for the provider\'s API endpoint
|
|
924
|
+
*/
|
|
925
|
+
'base_url'?: string;
|
|
926
|
+
/**
|
|
927
|
+
* api_keys API Key 列表,用于 API Key 认证方式 List of API keys for API key-based authentication 支持配置多个 API Key 用于负载均衡和容错 Supports multiple API keys for load balancing and failover
|
|
928
|
+
*/
|
|
929
|
+
'api_keys'?: Array<string>;
|
|
930
|
+
/**
|
|
931
|
+
* gcp_auth_list GCP 认证配置列表,用于 Google Cloud Platform 认证 List of GCP authentication configurations for Google Cloud Platform 支持配置多个 GCP 认证用于负载均衡和容错 Supports multiple GCP auth configs for load balancing and failover
|
|
932
|
+
*/
|
|
933
|
+
'gcp_auth_list'?: Array<GCPAuth>;
|
|
934
|
+
/**
|
|
935
|
+
* aws_auth_list AWS 认证配置列表,用于 Amazon Web Services 认证
|
|
936
|
+
*/
|
|
937
|
+
'aws_auth_list'?: Array<AWSAuth>;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* ProviderCreateRequest 创建 Provider 的请求 Request message for creating a new provider
|
|
941
|
+
*/
|
|
942
|
+
export interface ProviderCreateRequest {
|
|
943
|
+
/**
|
|
944
|
+
* name Provider 的唯一名称标识,例如 \"openai-prod-1\" Unique name identifier for the provider, e.g., \"openai-prod-1\" 必须唯一,用于系统内部引用 Must be unique, used for internal system reference
|
|
945
|
+
*/
|
|
946
|
+
'name'?: string;
|
|
947
|
+
/**
|
|
948
|
+
* display_name Provider 的显示名称,例如 \"OpenAI Production\" Display name for the provider, e.g., \"OpenAI Production\" 用于用户界面显示 Used for UI display
|
|
949
|
+
*/
|
|
950
|
+
'display_name'?: string;
|
|
951
|
+
/**
|
|
952
|
+
* provider_type Provider 类型 Provider type 可选值: \"openai\", \"anthropic\", \"google\" Available values: \"openai\", \"anthropic\", \"google\"
|
|
953
|
+
*/
|
|
954
|
+
'provider_type'?: string;
|
|
955
|
+
/**
|
|
956
|
+
* provider_status Provider 状态 Provider status 1: 启用 (Active) 2: 禁用 (Disabled)
|
|
957
|
+
*/
|
|
958
|
+
'provider_status'?: number;
|
|
959
|
+
/**
|
|
960
|
+
* payload Provider 的认证和配置详情 Authentication and configuration details for the provider
|
|
961
|
+
*/
|
|
962
|
+
'payload'?: ProviderPayload;
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* ProviderCreateResponse 创建 Provider 的响应 Response message for provider creation
|
|
966
|
+
*/
|
|
967
|
+
export interface ProviderCreateResponse {
|
|
968
|
+
/**
|
|
969
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
970
|
+
*/
|
|
971
|
+
'code'?: string;
|
|
972
|
+
/**
|
|
973
|
+
* message 响应消息 Response message
|
|
974
|
+
*/
|
|
975
|
+
'message'?: string;
|
|
976
|
+
/**
|
|
977
|
+
* data 创建成功后返回的 Provider 信息 Provider information returned after successful creation
|
|
978
|
+
*/
|
|
979
|
+
'data'?: Provider;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* ProviderDeleteRequest 删除 Provider 的请求 Request message for deleting a provider
|
|
983
|
+
*/
|
|
984
|
+
export interface ProviderDeleteRequest {
|
|
985
|
+
/**
|
|
986
|
+
* id 要删除的 Provider 的唯一标识符 Unique identifier of the provider to delete @gotags: form:\"id\" binding:\"required\"
|
|
987
|
+
*/
|
|
988
|
+
'id'?: string;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* ProviderDeleteResponse 删除 Provider 的响应 Response message for provider deletion
|
|
992
|
+
*/
|
|
993
|
+
export interface ProviderDeleteResponse {
|
|
994
|
+
/**
|
|
995
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
996
|
+
*/
|
|
997
|
+
'code'?: string;
|
|
998
|
+
/**
|
|
999
|
+
* message 响应消息 Response message
|
|
1000
|
+
*/
|
|
1001
|
+
'message'?: string;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* ProviderGetResponse 获取单个 Provider 的响应 Response message for provider retrieval
|
|
1005
|
+
*/
|
|
1006
|
+
export interface ProviderGetResponse {
|
|
1007
|
+
/**
|
|
1008
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1009
|
+
*/
|
|
1010
|
+
'code'?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* message 响应消息 Response message
|
|
1013
|
+
*/
|
|
1014
|
+
'message'?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* data Provider 信息 Provider information
|
|
1017
|
+
*/
|
|
1018
|
+
'data'?: Provider;
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* ProviderListResponse 分页查询 Provider 列表的响应 Response message for provider listing
|
|
1022
|
+
*/
|
|
1023
|
+
export interface ProviderListResponse {
|
|
1024
|
+
/**
|
|
1025
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1026
|
+
*/
|
|
1027
|
+
'code'?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* message 响应消息 Response message
|
|
1030
|
+
*/
|
|
1031
|
+
'message'?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* list Provider 列表 List of providers
|
|
1034
|
+
*/
|
|
1035
|
+
'list'?: Array<Provider>;
|
|
1036
|
+
/**
|
|
1037
|
+
* total 符合条件的 Provider 总数 Total number of providers matching the filter criteria
|
|
1038
|
+
*/
|
|
1039
|
+
'total'?: string;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* ProviderModel represents a specific model offered by a provider (e.g., gpt-4-turbo, claude-3-opus) ProviderModel 代表供应商提供的特定模型(例如 gpt-4-turbo、claude-3-opus)
|
|
1043
|
+
*/
|
|
1044
|
+
export interface ProviderModel {
|
|
1045
|
+
/**
|
|
1046
|
+
* id ProviderModel 的唯一标识符 Unique identifier for the provider model
|
|
1047
|
+
*/
|
|
1048
|
+
'id'?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* created_at 创建时间戳(Unix 时间戳) Creation timestamp (Unix timestamp)
|
|
1051
|
+
*/
|
|
1052
|
+
'created_at'?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp)
|
|
1055
|
+
*/
|
|
1056
|
+
'updated_at'?: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* deleted_at 软删除时间戳,0 表示未删除 Soft deletion timestamp, 0 means not deleted
|
|
1059
|
+
*/
|
|
1060
|
+
'deleted_at'?: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* provider_id 关联的 Provider ID Associated Provider ID
|
|
1063
|
+
*/
|
|
1064
|
+
'provider_id'?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* name 模型的唯一名称标识,例如 \"gpt-4-turbo\", \"claude-3-opus\" Unique name identifier for the model, e.g., \"gpt-4-turbo\", \"claude-3-opus\"
|
|
1067
|
+
*/
|
|
1068
|
+
'name'?: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* display_name 模型的显示名称,例如 \"GPT-4 Turbo\", \"Claude 3 Opus\" Display name for the model, e.g., \"GPT-4 Turbo\", \"Claude 3 Opus\"
|
|
1071
|
+
*/
|
|
1072
|
+
'display_name'?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* status 模型状态 Model status 1: 草稿 (Draft) 2: 启用 (Active) 3: 禁用 (Disabled)
|
|
1075
|
+
*/
|
|
1076
|
+
'status'?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* payload 模型的配置详情 Configuration details for the model
|
|
1079
|
+
*/
|
|
1080
|
+
'payload'?: ProviderModelPayload;
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* ProviderModelCreateRequest 创建 ProviderModel 的请求 Request message for creating a new provider model
|
|
1084
|
+
*/
|
|
1085
|
+
export interface ProviderModelCreateRequest {
|
|
1086
|
+
/**
|
|
1087
|
+
* provider_id 关联的 Provider ID Associated Provider ID
|
|
1088
|
+
*/
|
|
1089
|
+
'provider_id'?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* name 模型的唯一名称标识,例如 \"gpt-4-turbo\" Unique name identifier for the model, e.g., \"gpt-4-turbo\"
|
|
1092
|
+
*/
|
|
1093
|
+
'name'?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* display_name 模型的显示名称,例如 \"GPT-4 Turbo\" Display name for the model, e.g., \"GPT-4 Turbo\"
|
|
1096
|
+
*/
|
|
1097
|
+
'display_name'?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* status 模型状态 Model status 1: 草稿 (Draft) 2: 启用 (Active) 3: 禁用 (Disabled)
|
|
1100
|
+
*/
|
|
1101
|
+
'status'?: number;
|
|
1102
|
+
/**
|
|
1103
|
+
* payload 模型的配置详情 Configuration details for the model
|
|
1104
|
+
*/
|
|
1105
|
+
'payload'?: ProviderModelPayload;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* ProviderModelCreateResponse 创建 ProviderModel 的响应 Response message for provider model creation
|
|
1109
|
+
*/
|
|
1110
|
+
export interface ProviderModelCreateResponse {
|
|
1111
|
+
/**
|
|
1112
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1113
|
+
*/
|
|
1114
|
+
'code'?: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* message 响应消息 Response message
|
|
1117
|
+
*/
|
|
1118
|
+
'message'?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* data 创建成功后返回的 ProviderModel 信息 ProviderModel information returned after successful creation
|
|
1121
|
+
*/
|
|
1122
|
+
'data'?: ProviderModel;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* ProviderModelDeleteRequest 删除 ProviderModel 的请求 Request message for deleting a provider model
|
|
1126
|
+
*/
|
|
1127
|
+
export interface ProviderModelDeleteRequest {
|
|
1128
|
+
/**
|
|
1129
|
+
* id 要删除的 ProviderModel 的唯一标识符 Unique identifier of the provider model to delete @gotags: form:\"id\" binding:\"required\"
|
|
1130
|
+
*/
|
|
1131
|
+
'id'?: string;
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* ProviderModelDeleteResponse 删除 ProviderModel 的响应 Response message for provider model deletion
|
|
1135
|
+
*/
|
|
1136
|
+
export interface ProviderModelDeleteResponse {
|
|
1137
|
+
/**
|
|
1138
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1139
|
+
*/
|
|
1140
|
+
'code'?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* message 响应消息 Response message
|
|
1143
|
+
*/
|
|
1144
|
+
'message'?: string;
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* ProviderModelGetResponse 获取单个 ProviderModel 的响应 Response message for provider model retrieval
|
|
1148
|
+
*/
|
|
1149
|
+
export interface ProviderModelGetResponse {
|
|
1150
|
+
/**
|
|
1151
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1152
|
+
*/
|
|
1153
|
+
'code'?: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* message 响应消息 Response message
|
|
1156
|
+
*/
|
|
1157
|
+
'message'?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* data ProviderModel 信息 ProviderModel information
|
|
1160
|
+
*/
|
|
1161
|
+
'data'?: ProviderModel;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* ProviderModelListResponse 分页查询 ProviderModel 列表的响应 Response message for provider model listing
|
|
1165
|
+
*/
|
|
1166
|
+
export interface ProviderModelListResponse {
|
|
1167
|
+
/**
|
|
1168
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1169
|
+
*/
|
|
1170
|
+
'code'?: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* message 响应消息 Response message
|
|
1173
|
+
*/
|
|
1174
|
+
'message'?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* list ProviderModel 列表 List of provider models
|
|
1177
|
+
*/
|
|
1178
|
+
'list'?: Array<ProviderModel>;
|
|
1179
|
+
/**
|
|
1180
|
+
* total 符合条件的 ProviderModel 总数 Total number of provider models matching the filter criteria
|
|
1181
|
+
*/
|
|
1182
|
+
'total'?: string;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* ProviderModelPayload contains the endpoint configuration for a provider model ProviderModel 的配置详情,包含端点配置
|
|
1186
|
+
*/
|
|
1187
|
+
export interface ProviderModelPayload {
|
|
1188
|
+
/**
|
|
1189
|
+
* endpoints 端点配置列表 - 供应商往往支持多个 API 规范 List of endpoint configurations - providers often support multiple API specifications
|
|
1190
|
+
*/
|
|
1191
|
+
'endpoints'?: Array<VersionedAPISchema>;
|
|
1192
|
+
/**
|
|
1193
|
+
* azure_api_version Azure API 版本,仅当使用 Azure OpenAI 服务时需要配置
|
|
1194
|
+
*/
|
|
1195
|
+
'azure_api_version'?: string;
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* ProviderModelUpdateRequest 更新 ProviderModel 的请求 Request message for updating an existing provider model
|
|
1199
|
+
*/
|
|
1200
|
+
export interface ProviderModelUpdateRequest {
|
|
1201
|
+
/**
|
|
1202
|
+
* id ProviderModel 的唯一标识符 Unique identifier of the provider model to update
|
|
1203
|
+
*/
|
|
1204
|
+
'id'?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* provider_id 关联的 Provider ID Associated Provider ID
|
|
1207
|
+
*/
|
|
1208
|
+
'provider_id'?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* name 模型的唯一名称标识 Unique name identifier for the model
|
|
1211
|
+
*/
|
|
1212
|
+
'name'?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* display_name 模型的显示名称 Display name for the model
|
|
1215
|
+
*/
|
|
1216
|
+
'display_name'?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* status 模型状态 Model status 1: 草稿 (Draft) 2: 启用 (Active) 3: 禁用 (Disabled)
|
|
1219
|
+
*/
|
|
1220
|
+
'status'?: number;
|
|
1221
|
+
/**
|
|
1222
|
+
* payload 模型的配置详情 Configuration details for the model
|
|
1223
|
+
*/
|
|
1224
|
+
'payload'?: ProviderModelPayload;
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* ProviderModelUpdateResponse 更新 ProviderModel 的响应 Response message for provider model update
|
|
1228
|
+
*/
|
|
1229
|
+
export interface ProviderModelUpdateResponse {
|
|
1230
|
+
/**
|
|
1231
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1232
|
+
*/
|
|
1233
|
+
'code'?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* message 响应消息 Response message
|
|
1236
|
+
*/
|
|
1237
|
+
'message'?: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* data 更新后的 ProviderModel 信息 Updated provider model information
|
|
1240
|
+
*/
|
|
1241
|
+
'data'?: ProviderModel;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* ProviderPayload 包含 Provider 的认证和配置详情 Provider payload contains authentication and configuration details
|
|
1245
|
+
*/
|
|
1246
|
+
export interface ProviderPayload {
|
|
1247
|
+
/**
|
|
1248
|
+
* provider_auth 认证配置信息 Authentication configuration for the provider
|
|
1249
|
+
*/
|
|
1250
|
+
'provider_auth'?: ProviderAuth;
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* ProviderUpdateRequest 更新 Provider 的请求 Request message for updating an existing provider
|
|
1254
|
+
*/
|
|
1255
|
+
export interface ProviderUpdateRequest {
|
|
1256
|
+
/**
|
|
1257
|
+
* id Provider 的唯一标识符 Unique identifier of the provider to update
|
|
1258
|
+
*/
|
|
1259
|
+
'id'?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* name Provider 的唯一名称标识 Unique name identifier for the provider 如果修改名称,必须确保新名称唯一 If changing name, must ensure new name is unique
|
|
1262
|
+
*/
|
|
1263
|
+
'name'?: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* display_name Provider 的显示名称 Display name for the provider
|
|
1266
|
+
*/
|
|
1267
|
+
'display_name'?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* provider_type Provider 类型 Provider type 可选值: \"openai\", \"anthropic\", \"google\" Available values: \"openai\", \"anthropic\", \"google\"
|
|
1270
|
+
*/
|
|
1271
|
+
'provider_type'?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* provider_status Provider 状态 Provider status 1: 启用 (Active) 2: 禁用 (Disabled)
|
|
1274
|
+
*/
|
|
1275
|
+
'provider_status'?: number;
|
|
1276
|
+
/**
|
|
1277
|
+
* payload Provider 的认证和配置详情 Authentication and configuration details for the provider
|
|
1278
|
+
*/
|
|
1279
|
+
'payload'?: ProviderPayload;
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* ProviderUpdateResponse 更新 Provider 的响应 Response message for provider update
|
|
1283
|
+
*/
|
|
1284
|
+
export interface ProviderUpdateResponse {
|
|
1285
|
+
/**
|
|
1286
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1287
|
+
*/
|
|
1288
|
+
'code'?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* message 响应消息 Response message
|
|
1291
|
+
*/
|
|
1292
|
+
'message'?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* data 更新后的 Provider 信息 Updated provider information
|
|
1295
|
+
*/
|
|
1296
|
+
'data'?: Provider;
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* RequestPricing 请求级别计费 Request-level pricing
|
|
1300
|
+
*/
|
|
1301
|
+
export interface RequestPricing {
|
|
1302
|
+
/**
|
|
1303
|
+
* base_fee 每请求基础费用 Base fee per request
|
|
1304
|
+
*/
|
|
1305
|
+
'base_fee'?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* per_thousand_requests 每千次请求费用 Fee per thousand requests
|
|
1308
|
+
*/
|
|
1309
|
+
'per_thousand_requests'?: string;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
1313
|
+
*/
|
|
1314
|
+
export interface Status {
|
|
1315
|
+
/**
|
|
1316
|
+
* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
1317
|
+
*/
|
|
1318
|
+
'code'?: number;
|
|
1319
|
+
/**
|
|
1320
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
|
1321
|
+
*/
|
|
1322
|
+
'message'?: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
|
1325
|
+
*/
|
|
1326
|
+
'details'?: Array<GoogleProtobufAny>;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* TextTokenInputPricing 输入Token价格配置 Input token price configuration
|
|
1330
|
+
*/
|
|
1331
|
+
export interface TextTokenInputPricing {
|
|
1332
|
+
/**
|
|
1333
|
+
* id 价格配置ID Price configuration ID
|
|
1334
|
+
*/
|
|
1335
|
+
'id'?: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* regular 常规价格层级 Regular price tiers
|
|
1338
|
+
*/
|
|
1339
|
+
'regular'?: Array<TokenTier>;
|
|
1340
|
+
/**
|
|
1341
|
+
* cached 缓存Token价格层级 Cached token price tiers
|
|
1342
|
+
*/
|
|
1343
|
+
'cached'?: Array<TokenTier>;
|
|
1344
|
+
/**
|
|
1345
|
+
* cache_write 缓存写入价格层级 Cache write price tiers
|
|
1346
|
+
*/
|
|
1347
|
+
'cache_write'?: Array<TokenTier>;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* TextTokenOutputPricing 输出Token价格配置 Output token price configuration
|
|
1351
|
+
*/
|
|
1352
|
+
export interface TextTokenOutputPricing {
|
|
1353
|
+
/**
|
|
1354
|
+
* id 价格配置ID Price configuration ID
|
|
1355
|
+
*/
|
|
1356
|
+
'id'?: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* regular 常规价格层级 Regular price tiers
|
|
1359
|
+
*/
|
|
1360
|
+
'regular'?: Array<TokenTier>;
|
|
1361
|
+
/**
|
|
1362
|
+
* reasoning 推理Token价格层级(如o1模型) Reasoning token price tiers (e.g., o1 models)
|
|
1363
|
+
*/
|
|
1364
|
+
'reasoning'?: Array<TokenTier>;
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* TextTokenPricing Token计费规则 Text token pricing rules
|
|
1368
|
+
*/
|
|
1369
|
+
export interface TextTokenPricing {
|
|
1370
|
+
/**
|
|
1371
|
+
* input 输入Token价格配置 Input token price configuration
|
|
1372
|
+
*/
|
|
1373
|
+
'input'?: TextTokenInputPricing;
|
|
1374
|
+
/**
|
|
1375
|
+
* output 输出Token价格配置 Output token price configuration
|
|
1376
|
+
*/
|
|
1377
|
+
'output'?: TextTokenOutputPricing;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* TokenTier Token价格层级 Token price tier
|
|
1381
|
+
*/
|
|
1382
|
+
export interface TokenTier {
|
|
1383
|
+
/**
|
|
1384
|
+
* min_tokens 最小token数量 Minimum token count
|
|
1385
|
+
*/
|
|
1386
|
+
'min_tokens'?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* max_tokens 最大token数量(0表示无限) Maximum token count (0 means unlimited)
|
|
1389
|
+
*/
|
|
1390
|
+
'max_tokens'?: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* price_per_million 每百万token价格(使用字符串避免精度损失) Price per million tokens (string to avoid precision loss)
|
|
1393
|
+
*/
|
|
1394
|
+
'price_per_million'?: string;
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* UserAPIKey 代表用户的 API 密钥 UserAPIKey represents a user\'s API key
|
|
1398
|
+
*/
|
|
1399
|
+
export interface UserAPIKey {
|
|
1400
|
+
/**
|
|
1401
|
+
* id UserAPIKey 的唯一标识符 Unique identifier for the UserAPIKey
|
|
1402
|
+
*/
|
|
1403
|
+
'id'?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* created_at 创建时间戳(Unix 时间戳) Creation timestamp (Unix timestamp)
|
|
1406
|
+
*/
|
|
1407
|
+
'created_at'?: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* updated_at 更新时间戳(Unix 时间戳) Last update timestamp (Unix timestamp)
|
|
1410
|
+
*/
|
|
1411
|
+
'updated_at'?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* deleted_at 软删除时间戳,0 表示未删除 Soft deletion timestamp, 0 means not deleted
|
|
1414
|
+
*/
|
|
1415
|
+
'deleted_at'?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* uid 用户 ID User ID
|
|
1418
|
+
*/
|
|
1419
|
+
'uid'?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* name API Key 的唯一名称标识 Unique name identifier for the API key
|
|
1422
|
+
*/
|
|
1423
|
+
'name'?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* key_group API Key 分组 API Key group
|
|
1426
|
+
*/
|
|
1427
|
+
'key_group'?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* display_name API Key 的显示名称 Display name for the API key
|
|
1430
|
+
*/
|
|
1431
|
+
'display_name'?: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* quota_balance_total 总配额余额,使用 DECIMAL(24,12) 精度存储 Total quota balance, stored with DECIMAL(24,12) precision 字符串格式,例如:\"100.50\" 表示 $100.50 或 ¥100.50 String format, e.g., \"100.50\" represents $100.50 or ¥100.50
|
|
1434
|
+
*/
|
|
1435
|
+
'quota_balance_total'?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* quota_balance_used 已使用配额余额,使用 DECIMAL(24,12) 精度存储 Used quota balance, stored with DECIMAL(24,12) precision 字符串格式,例如:\"25.75\" 表示已使用 $25.75 或 ¥25.75 String format, e.g., \"25.75\" represents $25.75 or ¥25.75 used
|
|
1438
|
+
*/
|
|
1439
|
+
'quota_balance_used'?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* balance_code 余额货币代码 Balance currency code USD: 美元 (US Dollar) CNY: 人民币 (Chinese Yuan)
|
|
1442
|
+
*/
|
|
1443
|
+
'balance_code'?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* quota_mode 配额模式 Quota mode 1: 有限配额 (Limited) 2: 无限配额 (Unlimited)
|
|
1446
|
+
*/
|
|
1447
|
+
'quota_mode'?: number;
|
|
1448
|
+
/**
|
|
1449
|
+
* key_status API Key 状态 API Key status 1: 启用 (Enabled) 2: 禁用 (Disabled)
|
|
1450
|
+
*/
|
|
1451
|
+
'key_status'?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* expires_at 过期时间戳,0 表示永不过期 Expiration timestamp, 0 means never expires
|
|
1454
|
+
*/
|
|
1455
|
+
'expires_at'?: string;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* UserAPIKeyCreateRequest 创建 UserAPIKey 的请求 Request message for creating a new UserAPIKey
|
|
1459
|
+
*/
|
|
1460
|
+
export interface UserAPIKeyCreateRequest {
|
|
1461
|
+
/**
|
|
1462
|
+
* uid 用户 ID(管理员可以指定,普通用户自动使用当前用户) User ID (admin can specify, normal user uses current user automatically)
|
|
1463
|
+
*/
|
|
1464
|
+
'uid'?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* name API Key 的唯一名称标识 Unique name identifier for the API key
|
|
1467
|
+
*/
|
|
1468
|
+
'name'?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* key_group API Key 分组(可选) API Key group (optional)
|
|
1471
|
+
*/
|
|
1472
|
+
'key_group'?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* display_name API Key 的显示名称 Display name for the API key
|
|
1475
|
+
*/
|
|
1476
|
+
'display_name'?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* quota_balance_total 总配额余额 Total quota balance 字符串格式,使用 DECIMAL(24,12) 精度,例如:\"100.50\" String format with DECIMAL(24,12) precision, e.g., \"100.50\"
|
|
1479
|
+
*/
|
|
1480
|
+
'quota_balance_total'?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* balance_code 余额货币代码(仅管理员可指定,默认从 user_balances 读取) Balance currency code (admin only, defaults to reading from user_balances) USD: 美元 (US Dollar) CNY: 人民币 (Chinese Yuan)
|
|
1483
|
+
*/
|
|
1484
|
+
'balance_code'?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* quota_mode 配额模式 Quota mode 1: 有限配额 (Limited) 2: 无限配额 (Unlimited)
|
|
1487
|
+
*/
|
|
1488
|
+
'quota_mode'?: number;
|
|
1489
|
+
/**
|
|
1490
|
+
* key_status API Key 状态 API Key status 1: 启用 (Enabled) 2: 禁用 (Disabled)
|
|
1491
|
+
*/
|
|
1492
|
+
'key_status'?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* expires_at 过期时间戳,0 表示永不过期 Expiration timestamp, 0 means never expires
|
|
1495
|
+
*/
|
|
1496
|
+
'expires_at'?: string;
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* UserAPIKeyCreateResponse 创建 UserAPIKey 的响应 Response message for UserAPIKey creation
|
|
1500
|
+
*/
|
|
1501
|
+
export interface UserAPIKeyCreateResponse {
|
|
1502
|
+
/**
|
|
1503
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1504
|
+
*/
|
|
1505
|
+
'code'?: string;
|
|
1506
|
+
/**
|
|
1507
|
+
* message 响应消息 Response message
|
|
1508
|
+
*/
|
|
1509
|
+
'message'?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* data 创建成功后返回的 UserAPIKey 信息 UserAPIKey information returned after successful creation
|
|
1512
|
+
*/
|
|
1513
|
+
'data'?: UserAPIKey;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* UserAPIKeyDeleteRequest 删除 UserAPIKey 的请求 Request message for deleting a UserAPIKey
|
|
1517
|
+
*/
|
|
1518
|
+
export interface UserAPIKeyDeleteRequest {
|
|
1519
|
+
/**
|
|
1520
|
+
* id 要删除的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to delete @gotags: form:\"id\" binding:\"required\"
|
|
1521
|
+
*/
|
|
1522
|
+
'id'?: string;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* UserAPIKeyDeleteResponse 删除 UserAPIKey 的响应 Response message for UserAPIKey deletion
|
|
1526
|
+
*/
|
|
1527
|
+
export interface UserAPIKeyDeleteResponse {
|
|
1528
|
+
/**
|
|
1529
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1530
|
+
*/
|
|
1531
|
+
'code'?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* message 响应消息 Response message
|
|
1534
|
+
*/
|
|
1535
|
+
'message'?: string;
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* UserAPIKeyGetResponse 获取单个 UserAPIKey 的响应 Response message for UserAPIKey retrieval
|
|
1539
|
+
*/
|
|
1540
|
+
export interface UserAPIKeyGetResponse {
|
|
1541
|
+
/**
|
|
1542
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1543
|
+
*/
|
|
1544
|
+
'code'?: string;
|
|
1545
|
+
/**
|
|
1546
|
+
* message 响应消息 Response message
|
|
1547
|
+
*/
|
|
1548
|
+
'message'?: string;
|
|
1549
|
+
/**
|
|
1550
|
+
* data UserAPIKey 信息 UserAPIKey information
|
|
1551
|
+
*/
|
|
1552
|
+
'data'?: UserAPIKey;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* UserAPIKeyListResponse 分页查询 UserAPIKey 列表的响应 Response message for UserAPIKey listing
|
|
1556
|
+
*/
|
|
1557
|
+
export interface UserAPIKeyListResponse {
|
|
1558
|
+
/**
|
|
1559
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1560
|
+
*/
|
|
1561
|
+
'code'?: string;
|
|
1562
|
+
/**
|
|
1563
|
+
* message 响应消息 Response message
|
|
1564
|
+
*/
|
|
1565
|
+
'message'?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* list UserAPIKey 列表 List of UserAPIKeys
|
|
1568
|
+
*/
|
|
1569
|
+
'list'?: Array<UserAPIKey>;
|
|
1570
|
+
/**
|
|
1571
|
+
* total 符合条件的 UserAPIKey 总数 Total number of UserAPIKeys matching the filter criteria
|
|
1572
|
+
*/
|
|
1573
|
+
'total'?: string;
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* UserAPIKeyUpdateRequest 更新 UserAPIKey 的请求 Request message for updating an existing UserAPIKey
|
|
1577
|
+
*/
|
|
1578
|
+
export interface UserAPIKeyUpdateRequest {
|
|
1579
|
+
/**
|
|
1580
|
+
* id UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to update
|
|
1581
|
+
*/
|
|
1582
|
+
'id'?: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* display_name API Key 的显示名称 Display name for the API key
|
|
1585
|
+
*/
|
|
1586
|
+
'display_name'?: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* quota_balance_total 总配额余额 Total quota balance 字符串格式,使用 DECIMAL(24,12) 精度,例如:\"100.50\" String format with DECIMAL(24,12) precision, e.g., \"100.50\"
|
|
1589
|
+
*/
|
|
1590
|
+
'quota_balance_total'?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* balance_code 余额货币代码(仅管理员可修改) Balance currency code (admin only) USD: 美元 (US Dollar) CNY: 人民币 (Chinese Yuan)
|
|
1593
|
+
*/
|
|
1594
|
+
'balance_code'?: string;
|
|
1595
|
+
/**
|
|
1596
|
+
* quota_mode 配额模式 Quota mode 1: 有限配额 (Limited) 2: 无限配额 (Unlimited)
|
|
1597
|
+
*/
|
|
1598
|
+
'quota_mode'?: number;
|
|
1599
|
+
/**
|
|
1600
|
+
* key_status API Key 状态 API Key status 1: 启用 (Enabled) 2: 禁用 (Disabled)
|
|
1601
|
+
*/
|
|
1602
|
+
'key_status'?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* expires_at 过期时间戳,0 表示永不过期 Expiration timestamp, 0 means never expires
|
|
1605
|
+
*/
|
|
1606
|
+
'expires_at'?: string;
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* UserAPIKeyUpdateResponse 更新 UserAPIKey 的响应 Response message for UserAPIKey update
|
|
1610
|
+
*/
|
|
1611
|
+
export interface UserAPIKeyUpdateResponse {
|
|
1612
|
+
/**
|
|
1613
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1614
|
+
*/
|
|
1615
|
+
'code'?: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* message 响应消息 Response message
|
|
1618
|
+
*/
|
|
1619
|
+
'message'?: string;
|
|
1620
|
+
/**
|
|
1621
|
+
* data 更新后的 UserAPIKey 信息 Updated UserAPIKey information
|
|
1622
|
+
*/
|
|
1623
|
+
'data'?: UserAPIKey;
|
|
1624
|
+
}
|
|
1625
|
+
export interface UserAuthFlowCodeResponse {
|
|
1626
|
+
'code'?: string;
|
|
1627
|
+
'message'?: string;
|
|
1628
|
+
/**
|
|
1629
|
+
* 如果验证通过立刻下发登录态,则会通过这个返回鉴权的 AuthToken 如果注册成功,还需要登录,则不会下发
|
|
1630
|
+
*/
|
|
1631
|
+
'auth_result'?: AuthFlowResult;
|
|
1632
|
+
/**
|
|
1633
|
+
* 注册成功后返回的用户信息
|
|
1634
|
+
*/
|
|
1635
|
+
'user_info'?: UserAuthInfo;
|
|
1636
|
+
}
|
|
1637
|
+
export interface UserAuthFlowInitResponse {
|
|
1638
|
+
'code'?: string;
|
|
1639
|
+
'message'?: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* for AuthType=OAuth2 才会返回
|
|
1642
|
+
*/
|
|
1643
|
+
'oauth_result'?: UserAuthFlowInitResponseOAuthResult;
|
|
1644
|
+
/**
|
|
1645
|
+
* 对于部分流程,只需要 init 即可完成授权登录态,则会直接返回 AuthData 否则需要继续走完后续流程和调用相关接口
|
|
1646
|
+
*/
|
|
1647
|
+
'auth_result'?: AuthFlowResult;
|
|
1648
|
+
/**
|
|
1649
|
+
* 注册成功后返回的用户信息
|
|
1650
|
+
*/
|
|
1651
|
+
'user_info'?: UserAuthInfo;
|
|
1652
|
+
}
|
|
1653
|
+
export interface UserAuthFlowInitResponseOAuthResult {
|
|
1654
|
+
'oauth_url'?: string;
|
|
1655
|
+
}
|
|
1656
|
+
export interface UserAuthFlowOAuthCallbackRequest {
|
|
1657
|
+
'code'?: string;
|
|
1658
|
+
'state'?: string;
|
|
1659
|
+
'platform'?: number;
|
|
1660
|
+
}
|
|
1661
|
+
export interface UserAuthFlowOAuthCallbackResponse {
|
|
1662
|
+
'code'?: string;
|
|
1663
|
+
'message'?: string;
|
|
1664
|
+
'auth_result'?: AuthFlowResult;
|
|
1665
|
+
'user_info'?: UserAuthInfo;
|
|
1666
|
+
}
|
|
1667
|
+
export interface UserAuthInfo {
|
|
1668
|
+
'user_info'?: UserInfo;
|
|
1669
|
+
}
|
|
1670
|
+
export interface UserBalance {
|
|
1671
|
+
'id'?: string;
|
|
1672
|
+
'created_at'?: string;
|
|
1673
|
+
'updated_at'?: string;
|
|
1674
|
+
'uid'?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* balance_code 余额货币代码. USD/CNY
|
|
1677
|
+
*/
|
|
1678
|
+
'balance_code'?: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
1681
|
+
*/
|
|
1682
|
+
'prepaid_balance_total'?: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
1685
|
+
*/
|
|
1686
|
+
'prepaid_balance_used'?: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
1689
|
+
*/
|
|
1690
|
+
'prepaid_balance_frozen'?: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
1693
|
+
*/
|
|
1694
|
+
'bonus_balance_total'?: string;
|
|
1695
|
+
/**
|
|
1696
|
+
* bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
1697
|
+
*/
|
|
1698
|
+
'bonus_balance_used'?: string;
|
|
1699
|
+
/**
|
|
1700
|
+
* bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
1701
|
+
*/
|
|
1702
|
+
'bonus_balance_frozen'?: string;
|
|
1703
|
+
'version'?: string;
|
|
1704
|
+
}
|
|
1705
|
+
export interface UserBalanceBrief {
|
|
1706
|
+
/**
|
|
1707
|
+
* balance_code 余额货币代码. USD/CNY
|
|
1708
|
+
*/
|
|
1709
|
+
'balance_code'?: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
1712
|
+
*/
|
|
1713
|
+
'prepaid_balance_total'?: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
1716
|
+
*/
|
|
1717
|
+
'prepaid_balance_used'?: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
1720
|
+
*/
|
|
1721
|
+
'prepaid_balance_frozen'?: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
1724
|
+
*/
|
|
1725
|
+
'bonus_balance_total'?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
1728
|
+
*/
|
|
1729
|
+
'bonus_balance_used'?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
1732
|
+
*/
|
|
1733
|
+
'bonus_balance_frozen'?: string;
|
|
1734
|
+
}
|
|
1735
|
+
export interface UserBalanceChangeResponse {
|
|
1736
|
+
/**
|
|
1737
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1738
|
+
*/
|
|
1739
|
+
'code'?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* message 响应消息 Response message
|
|
1742
|
+
*/
|
|
1743
|
+
'message'?: string;
|
|
1744
|
+
/**
|
|
1745
|
+
* data 更新后的 UserBalance 信息
|
|
1746
|
+
*/
|
|
1747
|
+
'data'?: UserBalance;
|
|
1748
|
+
}
|
|
1749
|
+
export interface UserBalanceEditResponse {
|
|
1750
|
+
/**
|
|
1751
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1752
|
+
*/
|
|
1753
|
+
'code'?: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* message 响应消息 Response message
|
|
1756
|
+
*/
|
|
1757
|
+
'message'?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* data 更新后的 UserBalance 信息
|
|
1760
|
+
*/
|
|
1761
|
+
'data'?: UserBalance;
|
|
1762
|
+
}
|
|
1763
|
+
export interface UserBalanceListResponse {
|
|
1764
|
+
/**
|
|
1765
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1766
|
+
*/
|
|
1767
|
+
'code'?: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* message 响应消息 Response message
|
|
1770
|
+
*/
|
|
1771
|
+
'message'?: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* list UserBalance 列表
|
|
1774
|
+
*/
|
|
1775
|
+
'list'?: Array<UserBalance>;
|
|
1776
|
+
/**
|
|
1777
|
+
* total 符合条件的 UserBalance 总数
|
|
1778
|
+
*/
|
|
1779
|
+
'total'?: string;
|
|
1780
|
+
}
|
|
1781
|
+
export interface UserInfo {
|
|
1782
|
+
'user_id'?: string;
|
|
1783
|
+
'display_name'?: string;
|
|
1784
|
+
'avatar_url'?: string;
|
|
1785
|
+
'contact_email'?: string;
|
|
1786
|
+
}
|
|
1787
|
+
export interface UserLabelItem {
|
|
1788
|
+
'uid'?: string;
|
|
1789
|
+
'label_id'?: string;
|
|
1790
|
+
}
|
|
1791
|
+
export interface UserLabelListResponse {
|
|
1792
|
+
/**
|
|
1793
|
+
* code 响应状态码,0 表示成功
|
|
1794
|
+
*/
|
|
1795
|
+
'code'?: string;
|
|
1796
|
+
/**
|
|
1797
|
+
* message 响应消息
|
|
1798
|
+
*/
|
|
1799
|
+
'message'?: string;
|
|
1800
|
+
'data'?: Array<UserLabelItem>;
|
|
1801
|
+
'total'?: string;
|
|
1802
|
+
}
|
|
1803
|
+
export interface UserLabelPair {
|
|
1804
|
+
'uid'?: string;
|
|
1805
|
+
'label_ids'?: Array<string>;
|
|
1806
|
+
}
|
|
1807
|
+
export interface UserLabelPairChangeAction {
|
|
1808
|
+
'user_label_pairs'?: Array<UserLabelPair>;
|
|
1809
|
+
'action'?: string;
|
|
1810
|
+
}
|
|
1811
|
+
export interface UserLabelPairChangeRequest {
|
|
1812
|
+
'action'?: Array<UserLabelPairChangeAction>;
|
|
1813
|
+
}
|
|
1814
|
+
export interface UserLabelPairChangeResponse {
|
|
1815
|
+
/**
|
|
1816
|
+
* code 响应状态码,0 表示成功
|
|
1817
|
+
*/
|
|
1818
|
+
'code'?: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* message 响应消息
|
|
1821
|
+
*/
|
|
1822
|
+
'message'?: string;
|
|
1823
|
+
}
|
|
1824
|
+
export interface UserMeInfo {
|
|
1825
|
+
'info'?: UserInfo;
|
|
1826
|
+
'settings'?: UserSettings;
|
|
1827
|
+
'balance'?: UserBalanceBrief;
|
|
1828
|
+
}
|
|
1829
|
+
export interface UserMeInfoResponse {
|
|
1830
|
+
'code'?: string;
|
|
1831
|
+
'message'?: string;
|
|
1832
|
+
'data'?: UserMeInfo;
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* UserModelListResponse 模型列表响应(符合 OpenAI API 格式) Model list response (OpenAI API compatible format)
|
|
1836
|
+
*/
|
|
1837
|
+
export interface UserModelListResponse {
|
|
1838
|
+
/**
|
|
1839
|
+
* code 响应状态码,0 表示成功 Response code, 0 indicates success
|
|
1840
|
+
*/
|
|
1841
|
+
'code'?: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* object 对象类型,固定为 \"list\"(OpenAI API 格式) Object type, always \"list\" (OpenAI API format)
|
|
1844
|
+
*/
|
|
1845
|
+
'object'?: string;
|
|
1846
|
+
/**
|
|
1847
|
+
* models FrontAIModel 列表,对应 OpenAI API 的 \"data\" 字段 List of FrontAIModel objects, maps to OpenAI API \"data\" field
|
|
1848
|
+
*/
|
|
1849
|
+
'data'?: Array<FrontAIModel>;
|
|
1850
|
+
/**
|
|
1851
|
+
* apis API schema 列表 NOTE: FrontAIModel.AIModelMeta.endpoints 里面只会包含 endpoint ID,不包含完整的 schema 信息 可以通过此字段获取完整的 schema 列表
|
|
1852
|
+
*/
|
|
1853
|
+
'model_apis'?: Array<VersionedAPISchema>;
|
|
1854
|
+
/**
|
|
1855
|
+
* 分页信息 Pagination information
|
|
1856
|
+
*/
|
|
1857
|
+
'firstId'?: string;
|
|
1858
|
+
'lastId'?: string;
|
|
1859
|
+
'hasMore'?: boolean;
|
|
1860
|
+
}
|
|
1861
|
+
export interface UserPayStripeCheckout {
|
|
1862
|
+
'checkout_url'?: string;
|
|
1863
|
+
}
|
|
1864
|
+
export interface UserPayStripeCheckoutResponse {
|
|
1865
|
+
'code'?: string;
|
|
1866
|
+
'message'?: string;
|
|
1867
|
+
'data'?: UserPayStripeCheckout;
|
|
1868
|
+
}
|
|
1869
|
+
export interface UserSettings {
|
|
1870
|
+
'email_notifications_enabled'?: boolean;
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* VersionedAPISchema represents a versioned API schema configuration 代表一个版本化的 API schema 配置
|
|
1874
|
+
*/
|
|
1875
|
+
export interface VersionedAPISchema {
|
|
1876
|
+
/**
|
|
1877
|
+
* id 约定的 ID Conventional ID
|
|
1878
|
+
*/
|
|
1879
|
+
'id'?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* name API schema 的描述性名称 Descriptive name for the API schema 例如: \"chat/completion\", \"response\" Examples: \"chat/completion\", \"response\"
|
|
1882
|
+
*/
|
|
1883
|
+
'name'?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* schema API schema 的名称 Name of the API schema 例如: \"openai\", \"anthropic\" Examples: \"openai\", \"anthropic\"
|
|
1886
|
+
*/
|
|
1887
|
+
'schema'?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* version API schema 的版本(可选) Version of the API schema (optional)
|
|
1890
|
+
*/
|
|
1891
|
+
'version'?: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* path API 端点路径(可选) API path for this endpoint (optional)
|
|
1894
|
+
*/
|
|
1895
|
+
'path'?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* method HTTP 方法,例如 \"POST\", \"GET\"(可选) HTTP method for this endpoint, e.g., \"POST\", \"GET\" (optional)
|
|
1898
|
+
*/
|
|
1899
|
+
'method'?: string;
|
|
1900
|
+
}
|
|
1901
|
+
/**
|
|
1902
|
+
* VideoPricing 视频计费 Video pricing
|
|
1903
|
+
*/
|
|
1904
|
+
export interface VideoPricing {
|
|
1905
|
+
/**
|
|
1906
|
+
* id 价格配置ID Price configuration ID
|
|
1907
|
+
*/
|
|
1908
|
+
'id'?: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* mode 计费模式: \"per_second\", \"per_token\" Pricing mode
|
|
1911
|
+
*/
|
|
1912
|
+
'mode'?: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* input_per_token 输入每Token费用 Input fee per token
|
|
1915
|
+
*/
|
|
1916
|
+
'input_per_token'?: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* output_per_token 输出每Token费用 Output fee per token
|
|
1919
|
+
*/
|
|
1920
|
+
'output_per_token'?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* input_per_second 输入每秒费用 Input fee per second
|
|
1923
|
+
*/
|
|
1924
|
+
'input_per_second'?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* output_per_second 输出每秒费用 Output fee per second
|
|
1927
|
+
*/
|
|
1928
|
+
'output_per_second'?: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* extra 扩展计算 Extra calculation options
|
|
1931
|
+
*/
|
|
1932
|
+
'extra'?: {
|
|
1933
|
+
[key: string]: string;
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* AIModelAdminServiceApi - axios parameter creator
|
|
1938
|
+
*/
|
|
1939
|
+
export declare const AIModelAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1940
|
+
/**
|
|
1941
|
+
* 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
|
|
1942
|
+
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
1943
|
+
* @param {*} [options] Override http request option.
|
|
1944
|
+
* @throws {RequiredError}
|
|
1945
|
+
*/
|
|
1946
|
+
aIModelAdminServiceAIModelCreate: (aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1947
|
+
/**
|
|
1948
|
+
* AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1949
|
+
* @param {AIModelDeleteRequest} aIModelDeleteRequest
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
aIModelAdminServiceAIModelDelete: (aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1954
|
+
/**
|
|
1955
|
+
* 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
|
|
1956
|
+
* @param {AIModelDisableRequest} aIModelDisableRequest
|
|
1957
|
+
* @param {*} [options] Override http request option.
|
|
1958
|
+
* @throws {RequiredError}
|
|
1959
|
+
*/
|
|
1960
|
+
aIModelAdminServiceAIModelDisable: (aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1961
|
+
/**
|
|
1962
|
+
* 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
|
|
1963
|
+
* @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
|
|
1964
|
+
* @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\"
|
|
1965
|
+
* @param {*} [options] Override http request option.
|
|
1966
|
+
* @throws {RequiredError}
|
|
1967
|
+
*/
|
|
1968
|
+
aIModelAdminServiceAIModelGet: (id?: string, name?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1969
|
+
/**
|
|
1970
|
+
* 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
|
|
1971
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
1972
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
1973
|
+
* @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\"
|
|
1974
|
+
* @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\"
|
|
1975
|
+
* @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
|
|
1976
|
+
* @param {*} [options] Override http request option.
|
|
1977
|
+
* @throws {RequiredError}
|
|
1978
|
+
*/
|
|
1979
|
+
aIModelAdminServiceAIModelList: (page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1980
|
+
/**
|
|
1981
|
+
* 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
|
|
1982
|
+
* @param {AIModelPublishRequest} aIModelPublishRequest
|
|
1983
|
+
* @param {*} [options] Override http request option.
|
|
1984
|
+
* @throws {RequiredError}
|
|
1985
|
+
*/
|
|
1986
|
+
aIModelAdminServiceAIModelPublish: (aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1987
|
+
/**
|
|
1988
|
+
* AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
1989
|
+
* @param {AIModelUpdateRequest} aIModelUpdateRequest
|
|
1990
|
+
* @param {*} [options] Override http request option.
|
|
1991
|
+
* @throws {RequiredError}
|
|
1992
|
+
*/
|
|
1993
|
+
aIModelAdminServiceAIModelUpdate: (aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* AIModelAdminServiceApi - functional programming interface
|
|
1997
|
+
*/
|
|
1998
|
+
export declare const AIModelAdminServiceApiFp: (configuration?: Configuration) => {
|
|
1999
|
+
/**
|
|
2000
|
+
* 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
|
|
2001
|
+
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
2002
|
+
* @param {*} [options] Override http request option.
|
|
2003
|
+
* @throws {RequiredError}
|
|
2004
|
+
*/
|
|
2005
|
+
aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelCreateResponse>>;
|
|
2006
|
+
/**
|
|
2007
|
+
* AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2008
|
+
* @param {AIModelDeleteRequest} aIModelDeleteRequest
|
|
2009
|
+
* @param {*} [options] Override http request option.
|
|
2010
|
+
* @throws {RequiredError}
|
|
2011
|
+
*/
|
|
2012
|
+
aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelDeleteResponse>>;
|
|
2013
|
+
/**
|
|
2014
|
+
* 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
|
|
2015
|
+
* @param {AIModelDisableRequest} aIModelDisableRequest
|
|
2016
|
+
* @param {*} [options] Override http request option.
|
|
2017
|
+
* @throws {RequiredError}
|
|
2018
|
+
*/
|
|
2019
|
+
aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelDisableResponse>>;
|
|
2020
|
+
/**
|
|
2021
|
+
* 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
|
|
2022
|
+
* @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
|
|
2023
|
+
* @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\"
|
|
2024
|
+
* @param {*} [options] Override http request option.
|
|
2025
|
+
* @throws {RequiredError}
|
|
2026
|
+
*/
|
|
2027
|
+
aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelGetResponse>>;
|
|
2028
|
+
/**
|
|
2029
|
+
* 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
|
|
2030
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2031
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2032
|
+
* @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\"
|
|
2033
|
+
* @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\"
|
|
2034
|
+
* @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelListResponse>>;
|
|
2039
|
+
/**
|
|
2040
|
+
* 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
|
|
2041
|
+
* @param {AIModelPublishRequest} aIModelPublishRequest
|
|
2042
|
+
* @param {*} [options] Override http request option.
|
|
2043
|
+
* @throws {RequiredError}
|
|
2044
|
+
*/
|
|
2045
|
+
aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelPublishResponse>>;
|
|
2046
|
+
/**
|
|
2047
|
+
* AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2048
|
+
* @param {AIModelUpdateRequest} aIModelUpdateRequest
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
*/
|
|
2052
|
+
aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AIModelUpdateResponse>>;
|
|
2053
|
+
};
|
|
2054
|
+
/**
|
|
2055
|
+
* AIModelAdminServiceApi - factory interface
|
|
2056
|
+
*/
|
|
2057
|
+
export declare const AIModelAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2058
|
+
/**
|
|
2059
|
+
* 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
|
|
2060
|
+
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCreateResponse>;
|
|
2065
|
+
/**
|
|
2066
|
+
* AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2067
|
+
* @param {AIModelDeleteRequest} aIModelDeleteRequest
|
|
2068
|
+
* @param {*} [options] Override http request option.
|
|
2069
|
+
* @throws {RequiredError}
|
|
2070
|
+
*/
|
|
2071
|
+
aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDeleteResponse>;
|
|
2072
|
+
/**
|
|
2073
|
+
* 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
|
|
2074
|
+
* @param {AIModelDisableRequest} aIModelDisableRequest
|
|
2075
|
+
* @param {*} [options] Override http request option.
|
|
2076
|
+
* @throws {RequiredError}
|
|
2077
|
+
*/
|
|
2078
|
+
aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDisableResponse>;
|
|
2079
|
+
/**
|
|
2080
|
+
* 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
|
|
2081
|
+
* @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
|
|
2082
|
+
* @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\"
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelGetResponse>;
|
|
2087
|
+
/**
|
|
2088
|
+
* 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
|
|
2089
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2090
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2091
|
+
* @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\"
|
|
2092
|
+
* @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\"
|
|
2093
|
+
* @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
|
|
2094
|
+
* @param {*} [options] Override http request option.
|
|
2095
|
+
* @throws {RequiredError}
|
|
2096
|
+
*/
|
|
2097
|
+
aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelListResponse>;
|
|
2098
|
+
/**
|
|
2099
|
+
* 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
|
|
2100
|
+
* @param {AIModelPublishRequest} aIModelPublishRequest
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
*/
|
|
2104
|
+
aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelPublishResponse>;
|
|
2105
|
+
/**
|
|
2106
|
+
* AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2107
|
+
* @param {AIModelUpdateRequest} aIModelUpdateRequest
|
|
2108
|
+
* @param {*} [options] Override http request option.
|
|
2109
|
+
* @throws {RequiredError}
|
|
2110
|
+
*/
|
|
2111
|
+
aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse>;
|
|
2112
|
+
};
|
|
2113
|
+
/**
|
|
2114
|
+
* AIModelAdminServiceApi - interface
|
|
2115
|
+
*/
|
|
2116
|
+
export interface AIModelAdminServiceApiInterface {
|
|
2117
|
+
/**
|
|
2118
|
+
* 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
|
|
2119
|
+
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
2120
|
+
* @param {*} [options] Override http request option.
|
|
2121
|
+
* @throws {RequiredError}
|
|
2122
|
+
*/
|
|
2123
|
+
aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelCreateResponse>;
|
|
2124
|
+
/**
|
|
2125
|
+
* AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2126
|
+
* @param {AIModelDeleteRequest} aIModelDeleteRequest
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDeleteResponse>;
|
|
2131
|
+
/**
|
|
2132
|
+
* 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
|
|
2133
|
+
* @param {AIModelDisableRequest} aIModelDisableRequest
|
|
2134
|
+
* @param {*} [options] Override http request option.
|
|
2135
|
+
* @throws {RequiredError}
|
|
2136
|
+
*/
|
|
2137
|
+
aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelDisableResponse>;
|
|
2138
|
+
/**
|
|
2139
|
+
* 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
|
|
2140
|
+
* @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
|
|
2141
|
+
* @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\"
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelGetResponse>;
|
|
2146
|
+
/**
|
|
2147
|
+
* 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
|
|
2148
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2149
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2150
|
+
* @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\"
|
|
2151
|
+
* @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\"
|
|
2152
|
+
* @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
|
|
2153
|
+
* @param {*} [options] Override http request option.
|
|
2154
|
+
* @throws {RequiredError}
|
|
2155
|
+
*/
|
|
2156
|
+
aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): AxiosPromise<AIModelListResponse>;
|
|
2157
|
+
/**
|
|
2158
|
+
* 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
|
|
2159
|
+
* @param {AIModelPublishRequest} aIModelPublishRequest
|
|
2160
|
+
* @param {*} [options] Override http request option.
|
|
2161
|
+
* @throws {RequiredError}
|
|
2162
|
+
*/
|
|
2163
|
+
aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelPublishResponse>;
|
|
2164
|
+
/**
|
|
2165
|
+
* AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2166
|
+
* @param {AIModelUpdateRequest} aIModelUpdateRequest
|
|
2167
|
+
* @param {*} [options] Override http request option.
|
|
2168
|
+
* @throws {RequiredError}
|
|
2169
|
+
*/
|
|
2170
|
+
aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AIModelUpdateResponse>;
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* AIModelAdminServiceApi - object-oriented interface
|
|
2174
|
+
*/
|
|
2175
|
+
export declare class AIModelAdminServiceApi extends BaseAPI implements AIModelAdminServiceApiInterface {
|
|
2176
|
+
/**
|
|
2177
|
+
* 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
|
|
2178
|
+
* @param {AIModelCreateRequest} aIModelCreateRequest
|
|
2179
|
+
* @param {*} [options] Override http request option.
|
|
2180
|
+
* @throws {RequiredError}
|
|
2181
|
+
*/
|
|
2182
|
+
aIModelAdminServiceAIModelCreate(aIModelCreateRequest: AIModelCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelCreateResponse, any, {}>>;
|
|
2183
|
+
/**
|
|
2184
|
+
* AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2185
|
+
* @param {AIModelDeleteRequest} aIModelDeleteRequest
|
|
2186
|
+
* @param {*} [options] Override http request option.
|
|
2187
|
+
* @throws {RequiredError}
|
|
2188
|
+
*/
|
|
2189
|
+
aIModelAdminServiceAIModelDelete(aIModelDeleteRequest: AIModelDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelDeleteResponse, any, {}>>;
|
|
2190
|
+
/**
|
|
2191
|
+
* 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
|
|
2192
|
+
* @param {AIModelDisableRequest} aIModelDisableRequest
|
|
2193
|
+
* @param {*} [options] Override http request option.
|
|
2194
|
+
* @throws {RequiredError}
|
|
2195
|
+
*/
|
|
2196
|
+
aIModelAdminServiceAIModelDisable(aIModelDisableRequest: AIModelDisableRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelDisableResponse, any, {}>>;
|
|
2197
|
+
/**
|
|
2198
|
+
* 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
|
|
2199
|
+
* @param {string} [id] id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\"
|
|
2200
|
+
* @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\"
|
|
2201
|
+
* @param {*} [options] Override http request option.
|
|
2202
|
+
* @throws {RequiredError}
|
|
2203
|
+
*/
|
|
2204
|
+
aIModelAdminServiceAIModelGet(id?: string, name?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelGetResponse, any, {}>>;
|
|
2205
|
+
/**
|
|
2206
|
+
* 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
|
|
2207
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2208
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2209
|
+
* @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\"
|
|
2210
|
+
* @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\"
|
|
2211
|
+
* @param {string} [group] group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\"
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
aIModelAdminServiceAIModelList(page?: number, pageSize?: number, status?: number, namePrefix?: string, group?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelListResponse, any, {}>>;
|
|
2216
|
+
/**
|
|
2217
|
+
* 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
|
|
2218
|
+
* @param {AIModelPublishRequest} aIModelPublishRequest
|
|
2219
|
+
* @param {*} [options] Override http request option.
|
|
2220
|
+
* @throws {RequiredError}
|
|
2221
|
+
*/
|
|
2222
|
+
aIModelAdminServiceAIModelPublish(aIModelPublishRequest: AIModelPublishRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelPublishResponse, any, {}>>;
|
|
2223
|
+
/**
|
|
2224
|
+
* AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2225
|
+
* @param {AIModelUpdateRequest} aIModelUpdateRequest
|
|
2226
|
+
* @param {*} [options] Override http request option.
|
|
2227
|
+
* @throws {RequiredError}
|
|
2228
|
+
*/
|
|
2229
|
+
aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest: AIModelUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AIModelUpdateResponse, any, {}>>;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* AdminAuthServiceApi - axios parameter creator
|
|
2233
|
+
*/
|
|
2234
|
+
export declare const AdminAuthServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2235
|
+
/**
|
|
2236
|
+
* 管理员登录
|
|
2237
|
+
* @param {number} [authType]
|
|
2238
|
+
* @param {number} [authAction]
|
|
2239
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2240
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2241
|
+
* @param {string} [authAt]
|
|
2242
|
+
* @param {string} [nonce]
|
|
2243
|
+
* @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 )
|
|
2244
|
+
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
2245
|
+
* @param {*} [options] Override http request option.
|
|
2246
|
+
* @throws {RequiredError}
|
|
2247
|
+
*/
|
|
2248
|
+
adminAuthServiceAdminAuthFlowInit: (authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, sessionType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2249
|
+
};
|
|
2250
|
+
/**
|
|
2251
|
+
* AdminAuthServiceApi - functional programming interface
|
|
2252
|
+
*/
|
|
2253
|
+
export declare const AdminAuthServiceApiFp: (configuration?: Configuration) => {
|
|
2254
|
+
/**
|
|
2255
|
+
* 管理员登录
|
|
2256
|
+
* @param {number} [authType]
|
|
2257
|
+
* @param {number} [authAction]
|
|
2258
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2259
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2260
|
+
* @param {string} [authAt]
|
|
2261
|
+
* @param {string} [nonce]
|
|
2262
|
+
* @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 )
|
|
2263
|
+
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
2264
|
+
* @param {*} [options] Override http request option.
|
|
2265
|
+
* @throws {RequiredError}
|
|
2266
|
+
*/
|
|
2267
|
+
adminAuthServiceAdminAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, sessionType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAuthFlowInitResponse>>;
|
|
2268
|
+
};
|
|
2269
|
+
/**
|
|
2270
|
+
* AdminAuthServiceApi - factory interface
|
|
2271
|
+
*/
|
|
2272
|
+
export declare const AdminAuthServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2273
|
+
/**
|
|
2274
|
+
* 管理员登录
|
|
2275
|
+
* @param {number} [authType]
|
|
2276
|
+
* @param {number} [authAction]
|
|
2277
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2278
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2279
|
+
* @param {string} [authAt]
|
|
2280
|
+
* @param {string} [nonce]
|
|
2281
|
+
* @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 )
|
|
2282
|
+
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
2283
|
+
* @param {*} [options] Override http request option.
|
|
2284
|
+
* @throws {RequiredError}
|
|
2285
|
+
*/
|
|
2286
|
+
adminAuthServiceAdminAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, sessionType?: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminAuthFlowInitResponse>;
|
|
2287
|
+
};
|
|
2288
|
+
/**
|
|
2289
|
+
* AdminAuthServiceApi - interface
|
|
2290
|
+
*/
|
|
2291
|
+
export interface AdminAuthServiceApiInterface {
|
|
2292
|
+
/**
|
|
2293
|
+
* 管理员登录
|
|
2294
|
+
* @param {number} [authType]
|
|
2295
|
+
* @param {number} [authAction]
|
|
2296
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2297
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2298
|
+
* @param {string} [authAt]
|
|
2299
|
+
* @param {string} [nonce]
|
|
2300
|
+
* @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 )
|
|
2301
|
+
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
*/
|
|
2305
|
+
adminAuthServiceAdminAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, sessionType?: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminAuthFlowInitResponse>;
|
|
2306
|
+
}
|
|
2307
|
+
/**
|
|
2308
|
+
* AdminAuthServiceApi - object-oriented interface
|
|
2309
|
+
*/
|
|
2310
|
+
export declare class AdminAuthServiceApi extends BaseAPI implements AdminAuthServiceApiInterface {
|
|
2311
|
+
/**
|
|
2312
|
+
* 管理员登录
|
|
2313
|
+
* @param {number} [authType]
|
|
2314
|
+
* @param {number} [authAction]
|
|
2315
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
2316
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
2317
|
+
* @param {string} [authAt]
|
|
2318
|
+
* @param {string} [nonce]
|
|
2319
|
+
* @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 )
|
|
2320
|
+
* @param {string} [sessionType] enum string: - tenant_admin - sys_admin
|
|
2321
|
+
* @param {*} [options] Override http request option.
|
|
2322
|
+
* @throws {RequiredError}
|
|
2323
|
+
*/
|
|
2324
|
+
adminAuthServiceAdminAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, sessionType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAuthFlowInitResponse, any, {}>>;
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* DiscountAdminServiceApi - axios parameter creator
|
|
2328
|
+
*/
|
|
2329
|
+
export declare const DiscountAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2330
|
+
/**
|
|
2331
|
+
* DiscountCreate 创建折扣接口
|
|
2332
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2333
|
+
* @param {*} [options] Override http request option.
|
|
2334
|
+
* @throws {RequiredError}
|
|
2335
|
+
*/
|
|
2336
|
+
discountAdminServiceDiscountCreate: (discountCreateRequest: DiscountCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2337
|
+
/**
|
|
2338
|
+
* DiscountDelete 删除折扣接口
|
|
2339
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2340
|
+
* @param {*} [options] Override http request option.
|
|
2341
|
+
* @throws {RequiredError}
|
|
2342
|
+
*/
|
|
2343
|
+
discountAdminServiceDiscountDelete: (discountDeleteRequest: DiscountDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2344
|
+
/**
|
|
2345
|
+
* DiscountGet 获取折扣接口
|
|
2346
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2347
|
+
* @param {*} [options] Override http request option.
|
|
2348
|
+
* @throws {RequiredError}
|
|
2349
|
+
*/
|
|
2350
|
+
discountAdminServiceDiscountGet: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2351
|
+
/**
|
|
2352
|
+
* DiscountList 折扣列表接口
|
|
2353
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2354
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2355
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
*/
|
|
2359
|
+
discountAdminServiceDiscountList: (page?: number, pageSize?: number, namePrefix?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2360
|
+
/**
|
|
2361
|
+
* DiscountUpdate 更新折扣接口
|
|
2362
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2363
|
+
* @param {*} [options] Override http request option.
|
|
2364
|
+
* @throws {RequiredError}
|
|
2365
|
+
*/
|
|
2366
|
+
discountAdminServiceDiscountUpdate: (discountUpdateRequest: DiscountUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* DiscountAdminServiceApi - functional programming interface
|
|
2370
|
+
*/
|
|
2371
|
+
export declare const DiscountAdminServiceApiFp: (configuration?: Configuration) => {
|
|
2372
|
+
/**
|
|
2373
|
+
* DiscountCreate 创建折扣接口
|
|
2374
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2375
|
+
* @param {*} [options] Override http request option.
|
|
2376
|
+
* @throws {RequiredError}
|
|
2377
|
+
*/
|
|
2378
|
+
discountAdminServiceDiscountCreate(discountCreateRequest: DiscountCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscountCreateRequest>>;
|
|
2379
|
+
/**
|
|
2380
|
+
* DiscountDelete 删除折扣接口
|
|
2381
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest: DiscountDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscountDeleteResponse>>;
|
|
2386
|
+
/**
|
|
2387
|
+
* DiscountGet 获取折扣接口
|
|
2388
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2389
|
+
* @param {*} [options] Override http request option.
|
|
2390
|
+
* @throws {RequiredError}
|
|
2391
|
+
*/
|
|
2392
|
+
discountAdminServiceDiscountGet(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscountGetResponse>>;
|
|
2393
|
+
/**
|
|
2394
|
+
* DiscountList 折扣列表接口
|
|
2395
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2396
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2397
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
discountAdminServiceDiscountList(page?: number, pageSize?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscountListResponse>>;
|
|
2402
|
+
/**
|
|
2403
|
+
* DiscountUpdate 更新折扣接口
|
|
2404
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2405
|
+
* @param {*} [options] Override http request option.
|
|
2406
|
+
* @throws {RequiredError}
|
|
2407
|
+
*/
|
|
2408
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest: DiscountUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscountUpdateResponse>>;
|
|
2409
|
+
};
|
|
2410
|
+
/**
|
|
2411
|
+
* DiscountAdminServiceApi - factory interface
|
|
2412
|
+
*/
|
|
2413
|
+
export declare const DiscountAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2414
|
+
/**
|
|
2415
|
+
* DiscountCreate 创建折扣接口
|
|
2416
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
*/
|
|
2420
|
+
discountAdminServiceDiscountCreate(discountCreateRequest: DiscountCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountCreateRequest>;
|
|
2421
|
+
/**
|
|
2422
|
+
* DiscountDelete 删除折扣接口
|
|
2423
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2424
|
+
* @param {*} [options] Override http request option.
|
|
2425
|
+
* @throws {RequiredError}
|
|
2426
|
+
*/
|
|
2427
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest: DiscountDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountDeleteResponse>;
|
|
2428
|
+
/**
|
|
2429
|
+
* DiscountGet 获取折扣接口
|
|
2430
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
discountAdminServiceDiscountGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<DiscountGetResponse>;
|
|
2435
|
+
/**
|
|
2436
|
+
* DiscountList 折扣列表接口
|
|
2437
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2438
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2439
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2440
|
+
* @param {*} [options] Override http request option.
|
|
2441
|
+
* @throws {RequiredError}
|
|
2442
|
+
*/
|
|
2443
|
+
discountAdminServiceDiscountList(page?: number, pageSize?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<DiscountListResponse>;
|
|
2444
|
+
/**
|
|
2445
|
+
* DiscountUpdate 更新折扣接口
|
|
2446
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
*/
|
|
2450
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest: DiscountUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountUpdateResponse>;
|
|
2451
|
+
};
|
|
2452
|
+
/**
|
|
2453
|
+
* DiscountAdminServiceApi - interface
|
|
2454
|
+
*/
|
|
2455
|
+
export interface DiscountAdminServiceApiInterface {
|
|
2456
|
+
/**
|
|
2457
|
+
* DiscountCreate 创建折扣接口
|
|
2458
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2459
|
+
* @param {*} [options] Override http request option.
|
|
2460
|
+
* @throws {RequiredError}
|
|
2461
|
+
*/
|
|
2462
|
+
discountAdminServiceDiscountCreate(discountCreateRequest: DiscountCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountCreateRequest>;
|
|
2463
|
+
/**
|
|
2464
|
+
* DiscountDelete 删除折扣接口
|
|
2465
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2466
|
+
* @param {*} [options] Override http request option.
|
|
2467
|
+
* @throws {RequiredError}
|
|
2468
|
+
*/
|
|
2469
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest: DiscountDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountDeleteResponse>;
|
|
2470
|
+
/**
|
|
2471
|
+
* DiscountGet 获取折扣接口
|
|
2472
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2473
|
+
* @param {*} [options] Override http request option.
|
|
2474
|
+
* @throws {RequiredError}
|
|
2475
|
+
*/
|
|
2476
|
+
discountAdminServiceDiscountGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<DiscountGetResponse>;
|
|
2477
|
+
/**
|
|
2478
|
+
* DiscountList 折扣列表接口
|
|
2479
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2480
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2481
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2482
|
+
* @param {*} [options] Override http request option.
|
|
2483
|
+
* @throws {RequiredError}
|
|
2484
|
+
*/
|
|
2485
|
+
discountAdminServiceDiscountList(page?: number, pageSize?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<DiscountListResponse>;
|
|
2486
|
+
/**
|
|
2487
|
+
* DiscountUpdate 更新折扣接口
|
|
2488
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
*/
|
|
2492
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest: DiscountUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<DiscountUpdateResponse>;
|
|
2493
|
+
}
|
|
2494
|
+
/**
|
|
2495
|
+
* DiscountAdminServiceApi - object-oriented interface
|
|
2496
|
+
*/
|
|
2497
|
+
export declare class DiscountAdminServiceApi extends BaseAPI implements DiscountAdminServiceApiInterface {
|
|
2498
|
+
/**
|
|
2499
|
+
* DiscountCreate 创建折扣接口
|
|
2500
|
+
* @param {DiscountCreateRequest} discountCreateRequest
|
|
2501
|
+
* @param {*} [options] Override http request option.
|
|
2502
|
+
* @throws {RequiredError}
|
|
2503
|
+
*/
|
|
2504
|
+
discountAdminServiceDiscountCreate(discountCreateRequest: DiscountCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountCreateRequest, any, {}>>;
|
|
2505
|
+
/**
|
|
2506
|
+
* DiscountDelete 删除折扣接口
|
|
2507
|
+
* @param {DiscountDeleteRequest} discountDeleteRequest
|
|
2508
|
+
* @param {*} [options] Override http request option.
|
|
2509
|
+
* @throws {RequiredError}
|
|
2510
|
+
*/
|
|
2511
|
+
discountAdminServiceDiscountDelete(discountDeleteRequest: DiscountDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountDeleteResponse, any, {}>>;
|
|
2512
|
+
/**
|
|
2513
|
+
* DiscountGet 获取折扣接口
|
|
2514
|
+
* @param {string} [id] @gotags: form:\"id\"
|
|
2515
|
+
* @param {*} [options] Override http request option.
|
|
2516
|
+
* @throws {RequiredError}
|
|
2517
|
+
*/
|
|
2518
|
+
discountAdminServiceDiscountGet(id?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountGetResponse, any, {}>>;
|
|
2519
|
+
/**
|
|
2520
|
+
* DiscountList 折扣列表接口
|
|
2521
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2522
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2523
|
+
* @param {string} [namePrefix] name_prefix 按名称前缀过滤(可选) @gotags: form:\"name_prefix\"
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
discountAdminServiceDiscountList(page?: number, pageSize?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountListResponse, any, {}>>;
|
|
2528
|
+
/**
|
|
2529
|
+
* DiscountUpdate 更新折扣接口
|
|
2530
|
+
* @param {DiscountUpdateRequest} discountUpdateRequest
|
|
2531
|
+
* @param {*} [options] Override http request option.
|
|
2532
|
+
* @throws {RequiredError}
|
|
2533
|
+
*/
|
|
2534
|
+
discountAdminServiceDiscountUpdate(discountUpdateRequest: DiscountUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountUpdateResponse, any, {}>>;
|
|
2535
|
+
}
|
|
2536
|
+
/**
|
|
2537
|
+
* ProviderAdminServiceApi - axios parameter creator
|
|
2538
|
+
*/
|
|
2539
|
+
export declare const ProviderAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2540
|
+
/**
|
|
2541
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2542
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2543
|
+
* @param {*} [options] Override http request option.
|
|
2544
|
+
* @throws {RequiredError}
|
|
2545
|
+
*/
|
|
2546
|
+
providerAdminServiceProviderCreate: (providerCreateRequest: ProviderCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2547
|
+
/**
|
|
2548
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2549
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2550
|
+
* @param {*} [options] Override http request option.
|
|
2551
|
+
* @throws {RequiredError}
|
|
2552
|
+
*/
|
|
2553
|
+
providerAdminServiceProviderDelete: (providerDeleteRequest: ProviderDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2554
|
+
/**
|
|
2555
|
+
* 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
|
|
2556
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2557
|
+
* @param {*} [options] Override http request option.
|
|
2558
|
+
* @throws {RequiredError}
|
|
2559
|
+
*/
|
|
2560
|
+
providerAdminServiceProviderGet: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2561
|
+
/**
|
|
2562
|
+
* 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
|
|
2563
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2564
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2565
|
+
* @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\"
|
|
2566
|
+
* @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\"
|
|
2567
|
+
* @param {*} [options] Override http request option.
|
|
2568
|
+
* @throws {RequiredError}
|
|
2569
|
+
*/
|
|
2570
|
+
providerAdminServiceProviderList: (page?: number, pageSize?: number, providerStatus?: number, namePrefix?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2571
|
+
/**
|
|
2572
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2573
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
2574
|
+
* @param {*} [options] Override http request option.
|
|
2575
|
+
* @throws {RequiredError}
|
|
2576
|
+
*/
|
|
2577
|
+
providerAdminServiceProviderUpdate: (providerUpdateRequest: ProviderUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2578
|
+
};
|
|
2579
|
+
/**
|
|
2580
|
+
* ProviderAdminServiceApi - functional programming interface
|
|
2581
|
+
*/
|
|
2582
|
+
export declare const ProviderAdminServiceApiFp: (configuration?: Configuration) => {
|
|
2583
|
+
/**
|
|
2584
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2585
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2586
|
+
* @param {*} [options] Override http request option.
|
|
2587
|
+
* @throws {RequiredError}
|
|
2588
|
+
*/
|
|
2589
|
+
providerAdminServiceProviderCreate(providerCreateRequest: ProviderCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderCreateResponse>>;
|
|
2590
|
+
/**
|
|
2591
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2592
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2593
|
+
* @param {*} [options] Override http request option.
|
|
2594
|
+
* @throws {RequiredError}
|
|
2595
|
+
*/
|
|
2596
|
+
providerAdminServiceProviderDelete(providerDeleteRequest: ProviderDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderDeleteResponse>>;
|
|
2597
|
+
/**
|
|
2598
|
+
* 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
|
|
2599
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2600
|
+
* @param {*} [options] Override http request option.
|
|
2601
|
+
* @throws {RequiredError}
|
|
2602
|
+
*/
|
|
2603
|
+
providerAdminServiceProviderGet(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderGetResponse>>;
|
|
2604
|
+
/**
|
|
2605
|
+
* 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
|
|
2606
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2607
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2608
|
+
* @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\"
|
|
2609
|
+
* @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\"
|
|
2610
|
+
* @param {*} [options] Override http request option.
|
|
2611
|
+
* @throws {RequiredError}
|
|
2612
|
+
*/
|
|
2613
|
+
providerAdminServiceProviderList(page?: number, pageSize?: number, providerStatus?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderListResponse>>;
|
|
2614
|
+
/**
|
|
2615
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2616
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
2617
|
+
* @param {*} [options] Override http request option.
|
|
2618
|
+
* @throws {RequiredError}
|
|
2619
|
+
*/
|
|
2620
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest: ProviderUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderUpdateResponse>>;
|
|
2621
|
+
};
|
|
2622
|
+
/**
|
|
2623
|
+
* ProviderAdminServiceApi - factory interface
|
|
2624
|
+
*/
|
|
2625
|
+
export declare const ProviderAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2626
|
+
/**
|
|
2627
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2628
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
*/
|
|
2632
|
+
providerAdminServiceProviderCreate(providerCreateRequest: ProviderCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderCreateResponse>;
|
|
2633
|
+
/**
|
|
2634
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2635
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2636
|
+
* @param {*} [options] Override http request option.
|
|
2637
|
+
* @throws {RequiredError}
|
|
2638
|
+
*/
|
|
2639
|
+
providerAdminServiceProviderDelete(providerDeleteRequest: ProviderDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderDeleteResponse>;
|
|
2640
|
+
/**
|
|
2641
|
+
* 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
|
|
2642
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
providerAdminServiceProviderGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderGetResponse>;
|
|
2647
|
+
/**
|
|
2648
|
+
* 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
|
|
2649
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2650
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2651
|
+
* @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\"
|
|
2652
|
+
* @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\"
|
|
2653
|
+
* @param {*} [options] Override http request option.
|
|
2654
|
+
* @throws {RequiredError}
|
|
2655
|
+
*/
|
|
2656
|
+
providerAdminServiceProviderList(page?: number, pageSize?: number, providerStatus?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderListResponse>;
|
|
2657
|
+
/**
|
|
2658
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2659
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest: ProviderUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderUpdateResponse>;
|
|
2664
|
+
};
|
|
2665
|
+
/**
|
|
2666
|
+
* ProviderAdminServiceApi - interface
|
|
2667
|
+
*/
|
|
2668
|
+
export interface ProviderAdminServiceApiInterface {
|
|
2669
|
+
/**
|
|
2670
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2671
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2672
|
+
* @param {*} [options] Override http request option.
|
|
2673
|
+
* @throws {RequiredError}
|
|
2674
|
+
*/
|
|
2675
|
+
providerAdminServiceProviderCreate(providerCreateRequest: ProviderCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderCreateResponse>;
|
|
2676
|
+
/**
|
|
2677
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2678
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
*/
|
|
2682
|
+
providerAdminServiceProviderDelete(providerDeleteRequest: ProviderDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderDeleteResponse>;
|
|
2683
|
+
/**
|
|
2684
|
+
* 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
|
|
2685
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2686
|
+
* @param {*} [options] Override http request option.
|
|
2687
|
+
* @throws {RequiredError}
|
|
2688
|
+
*/
|
|
2689
|
+
providerAdminServiceProviderGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderGetResponse>;
|
|
2690
|
+
/**
|
|
2691
|
+
* 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
|
|
2692
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2693
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2694
|
+
* @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\"
|
|
2695
|
+
* @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\"
|
|
2696
|
+
* @param {*} [options] Override http request option.
|
|
2697
|
+
* @throws {RequiredError}
|
|
2698
|
+
*/
|
|
2699
|
+
providerAdminServiceProviderList(page?: number, pageSize?: number, providerStatus?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderListResponse>;
|
|
2700
|
+
/**
|
|
2701
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2702
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
2703
|
+
* @param {*} [options] Override http request option.
|
|
2704
|
+
* @throws {RequiredError}
|
|
2705
|
+
*/
|
|
2706
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest: ProviderUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderUpdateResponse>;
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* ProviderAdminServiceApi - object-oriented interface
|
|
2710
|
+
*/
|
|
2711
|
+
export declare class ProviderAdminServiceApi extends BaseAPI implements ProviderAdminServiceApiInterface {
|
|
2712
|
+
/**
|
|
2713
|
+
* ProviderCreate 创建新的 Provider Create a new AI model provider 请求路径: POST /admin/provider/create Request path: POST /admin/provider/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2714
|
+
* @param {ProviderCreateRequest} providerCreateRequest
|
|
2715
|
+
* @param {*} [options] Override http request option.
|
|
2716
|
+
* @throws {RequiredError}
|
|
2717
|
+
*/
|
|
2718
|
+
providerAdminServiceProviderCreate(providerCreateRequest: ProviderCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderCreateResponse, any, {}>>;
|
|
2719
|
+
/**
|
|
2720
|
+
* ProviderDelete 删除 Provider(软删除) Delete a provider (soft delete) 请求路径: POST /admin/provider/delete Request path: POST /admin/provider/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2721
|
+
* @param {ProviderDeleteRequest} providerDeleteRequest
|
|
2722
|
+
* @param {*} [options] Override http request option.
|
|
2723
|
+
* @throws {RequiredError}
|
|
2724
|
+
*/
|
|
2725
|
+
providerAdminServiceProviderDelete(providerDeleteRequest: ProviderDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderDeleteResponse, any, {}>>;
|
|
2726
|
+
/**
|
|
2727
|
+
* 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
|
|
2728
|
+
* @param {string} [id] id 要获取的 Provider 的唯一标识符 Unique identifier of the provider to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2729
|
+
* @param {*} [options] Override http request option.
|
|
2730
|
+
* @throws {RequiredError}
|
|
2731
|
+
*/
|
|
2732
|
+
providerAdminServiceProviderGet(id?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderGetResponse, any, {}>>;
|
|
2733
|
+
/**
|
|
2734
|
+
* 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
|
|
2735
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2736
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2737
|
+
* @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\"
|
|
2738
|
+
* @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\"
|
|
2739
|
+
* @param {*} [options] Override http request option.
|
|
2740
|
+
* @throws {RequiredError}
|
|
2741
|
+
*/
|
|
2742
|
+
providerAdminServiceProviderList(page?: number, pageSize?: number, providerStatus?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderListResponse, any, {}>>;
|
|
2743
|
+
/**
|
|
2744
|
+
* ProviderUpdate 更新现有的 Provider Update an existing AI model provider 请求路径: POST /admin/provider/update Request path: POST /admin/provider/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2745
|
+
* @param {ProviderUpdateRequest} providerUpdateRequest
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
*/
|
|
2749
|
+
providerAdminServiceProviderUpdate(providerUpdateRequest: ProviderUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderUpdateResponse, any, {}>>;
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* ProviderModelAdminServiceApi - axios parameter creator
|
|
2753
|
+
*/
|
|
2754
|
+
export declare const ProviderModelAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2755
|
+
/**
|
|
2756
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2757
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
2758
|
+
* @param {*} [options] Override http request option.
|
|
2759
|
+
* @throws {RequiredError}
|
|
2760
|
+
*/
|
|
2761
|
+
providerModelAdminServiceProviderModelCreate: (providerModelCreateRequest: ProviderModelCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2762
|
+
/**
|
|
2763
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2764
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
*/
|
|
2768
|
+
providerModelAdminServiceProviderModelDelete: (providerModelDeleteRequest: ProviderModelDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2769
|
+
/**
|
|
2770
|
+
* 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
|
|
2771
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
*/
|
|
2775
|
+
providerModelAdminServiceProviderModelGet: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2776
|
+
/**
|
|
2777
|
+
* 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
|
|
2778
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2779
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2780
|
+
* @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\"
|
|
2781
|
+
* @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\"
|
|
2782
|
+
* @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\"
|
|
2783
|
+
* @param {*} [options] Override http request option.
|
|
2784
|
+
* @throws {RequiredError}
|
|
2785
|
+
*/
|
|
2786
|
+
providerModelAdminServiceProviderModelList: (page?: number, pageSize?: number, providerId?: string, status?: number, namePrefix?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2787
|
+
/**
|
|
2788
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2789
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
*/
|
|
2793
|
+
providerModelAdminServiceProviderModelUpdate: (providerModelUpdateRequest: ProviderModelUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2794
|
+
};
|
|
2795
|
+
/**
|
|
2796
|
+
* ProviderModelAdminServiceApi - functional programming interface
|
|
2797
|
+
*/
|
|
2798
|
+
export declare const ProviderModelAdminServiceApiFp: (configuration?: Configuration) => {
|
|
2799
|
+
/**
|
|
2800
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2801
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
2802
|
+
* @param {*} [options] Override http request option.
|
|
2803
|
+
* @throws {RequiredError}
|
|
2804
|
+
*/
|
|
2805
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest: ProviderModelCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderModelCreateResponse>>;
|
|
2806
|
+
/**
|
|
2807
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2808
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
2809
|
+
* @param {*} [options] Override http request option.
|
|
2810
|
+
* @throws {RequiredError}
|
|
2811
|
+
*/
|
|
2812
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest: ProviderModelDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderModelDeleteResponse>>;
|
|
2813
|
+
/**
|
|
2814
|
+
* 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
|
|
2815
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2816
|
+
* @param {*} [options] Override http request option.
|
|
2817
|
+
* @throws {RequiredError}
|
|
2818
|
+
*/
|
|
2819
|
+
providerModelAdminServiceProviderModelGet(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderModelGetResponse>>;
|
|
2820
|
+
/**
|
|
2821
|
+
* 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
|
|
2822
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2823
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2824
|
+
* @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\"
|
|
2825
|
+
* @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\"
|
|
2826
|
+
* @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\"
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
*/
|
|
2830
|
+
providerModelAdminServiceProviderModelList(page?: number, pageSize?: number, providerId?: string, status?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderModelListResponse>>;
|
|
2831
|
+
/**
|
|
2832
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2833
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
*/
|
|
2837
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest: ProviderModelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProviderModelUpdateResponse>>;
|
|
2838
|
+
};
|
|
2839
|
+
/**
|
|
2840
|
+
* ProviderModelAdminServiceApi - factory interface
|
|
2841
|
+
*/
|
|
2842
|
+
export declare const ProviderModelAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2843
|
+
/**
|
|
2844
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2845
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
2846
|
+
* @param {*} [options] Override http request option.
|
|
2847
|
+
* @throws {RequiredError}
|
|
2848
|
+
*/
|
|
2849
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest: ProviderModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelCreateResponse>;
|
|
2850
|
+
/**
|
|
2851
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2852
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
2853
|
+
* @param {*} [options] Override http request option.
|
|
2854
|
+
* @throws {RequiredError}
|
|
2855
|
+
*/
|
|
2856
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest: ProviderModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelDeleteResponse>;
|
|
2857
|
+
/**
|
|
2858
|
+
* 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
|
|
2859
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2860
|
+
* @param {*} [options] Override http request option.
|
|
2861
|
+
* @throws {RequiredError}
|
|
2862
|
+
*/
|
|
2863
|
+
providerModelAdminServiceProviderModelGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelGetResponse>;
|
|
2864
|
+
/**
|
|
2865
|
+
* 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
|
|
2866
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2867
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2868
|
+
* @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\"
|
|
2869
|
+
* @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\"
|
|
2870
|
+
* @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\"
|
|
2871
|
+
* @param {*} [options] Override http request option.
|
|
2872
|
+
* @throws {RequiredError}
|
|
2873
|
+
*/
|
|
2874
|
+
providerModelAdminServiceProviderModelList(page?: number, pageSize?: number, providerId?: string, status?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelListResponse>;
|
|
2875
|
+
/**
|
|
2876
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2877
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
2878
|
+
* @param {*} [options] Override http request option.
|
|
2879
|
+
* @throws {RequiredError}
|
|
2880
|
+
*/
|
|
2881
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest: ProviderModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelUpdateResponse>;
|
|
2882
|
+
};
|
|
2883
|
+
/**
|
|
2884
|
+
* ProviderModelAdminServiceApi - interface
|
|
2885
|
+
*/
|
|
2886
|
+
export interface ProviderModelAdminServiceApiInterface {
|
|
2887
|
+
/**
|
|
2888
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2889
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
2890
|
+
* @param {*} [options] Override http request option.
|
|
2891
|
+
* @throws {RequiredError}
|
|
2892
|
+
*/
|
|
2893
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest: ProviderModelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelCreateResponse>;
|
|
2894
|
+
/**
|
|
2895
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2896
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
2897
|
+
* @param {*} [options] Override http request option.
|
|
2898
|
+
* @throws {RequiredError}
|
|
2899
|
+
*/
|
|
2900
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest: ProviderModelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelDeleteResponse>;
|
|
2901
|
+
/**
|
|
2902
|
+
* 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
|
|
2903
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2904
|
+
* @param {*} [options] Override http request option.
|
|
2905
|
+
* @throws {RequiredError}
|
|
2906
|
+
*/
|
|
2907
|
+
providerModelAdminServiceProviderModelGet(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelGetResponse>;
|
|
2908
|
+
/**
|
|
2909
|
+
* 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
|
|
2910
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2911
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2912
|
+
* @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\"
|
|
2913
|
+
* @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\"
|
|
2914
|
+
* @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\"
|
|
2915
|
+
* @param {*} [options] Override http request option.
|
|
2916
|
+
* @throws {RequiredError}
|
|
2917
|
+
*/
|
|
2918
|
+
providerModelAdminServiceProviderModelList(page?: number, pageSize?: number, providerId?: string, status?: number, namePrefix?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelListResponse>;
|
|
2919
|
+
/**
|
|
2920
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2921
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
2922
|
+
* @param {*} [options] Override http request option.
|
|
2923
|
+
* @throws {RequiredError}
|
|
2924
|
+
*/
|
|
2925
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest: ProviderModelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProviderModelUpdateResponse>;
|
|
2926
|
+
}
|
|
2927
|
+
/**
|
|
2928
|
+
* ProviderModelAdminServiceApi - object-oriented interface
|
|
2929
|
+
*/
|
|
2930
|
+
export declare class ProviderModelAdminServiceApi extends BaseAPI implements ProviderModelAdminServiceApiInterface {
|
|
2931
|
+
/**
|
|
2932
|
+
* ProviderModelCreate 创建新的 ProviderModel Create a new provider model 请求路径: POST /admin/provider-model/create Request path: POST /admin/provider-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2933
|
+
* @param {ProviderModelCreateRequest} providerModelCreateRequest
|
|
2934
|
+
* @param {*} [options] Override http request option.
|
|
2935
|
+
* @throws {RequiredError}
|
|
2936
|
+
*/
|
|
2937
|
+
providerModelAdminServiceProviderModelCreate(providerModelCreateRequest: ProviderModelCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderModelCreateResponse, any, {}>>;
|
|
2938
|
+
/**
|
|
2939
|
+
* ProviderModelDelete 删除 ProviderModel(软删除) Delete a provider model (soft delete) 请求路径: POST /admin/provider-model/delete Request path: POST /admin/provider-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2940
|
+
* @param {ProviderModelDeleteRequest} providerModelDeleteRequest
|
|
2941
|
+
* @param {*} [options] Override http request option.
|
|
2942
|
+
* @throws {RequiredError}
|
|
2943
|
+
*/
|
|
2944
|
+
providerModelAdminServiceProviderModelDelete(providerModelDeleteRequest: ProviderModelDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderModelDeleteResponse, any, {}>>;
|
|
2945
|
+
/**
|
|
2946
|
+
* 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
|
|
2947
|
+
* @param {string} [id] id 要获取的 ProviderModel 的唯一标识符 Unique identifier of the provider model to retrieve @gotags: form:\"id\" binding:\"required\"
|
|
2948
|
+
* @param {*} [options] Override http request option.
|
|
2949
|
+
* @throws {RequiredError}
|
|
2950
|
+
*/
|
|
2951
|
+
providerModelAdminServiceProviderModelGet(id?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderModelGetResponse, any, {}>>;
|
|
2952
|
+
/**
|
|
2953
|
+
* 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
|
|
2954
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
2955
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
2956
|
+
* @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\"
|
|
2957
|
+
* @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\"
|
|
2958
|
+
* @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\"
|
|
2959
|
+
* @param {*} [options] Override http request option.
|
|
2960
|
+
* @throws {RequiredError}
|
|
2961
|
+
*/
|
|
2962
|
+
providerModelAdminServiceProviderModelList(page?: number, pageSize?: number, providerId?: string, status?: number, namePrefix?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderModelListResponse, any, {}>>;
|
|
2963
|
+
/**
|
|
2964
|
+
* ProviderModelUpdate 更新现有的 ProviderModel Update an existing provider model 请求路径: POST /admin/provider-model/update Request path: POST /admin/provider-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
2965
|
+
* @param {ProviderModelUpdateRequest} providerModelUpdateRequest
|
|
2966
|
+
* @param {*} [options] Override http request option.
|
|
2967
|
+
* @throws {RequiredError}
|
|
2968
|
+
*/
|
|
2969
|
+
providerModelAdminServiceProviderModelUpdate(providerModelUpdateRequest: ProviderModelUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProviderModelUpdateResponse, any, {}>>;
|
|
2970
|
+
}
|
|
2971
|
+
/**
|
|
2972
|
+
* UserAPIKeyServiceApi - axios parameter creator
|
|
2973
|
+
*/
|
|
2974
|
+
export declare const UserAPIKeyServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2975
|
+
/**
|
|
2976
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
2977
|
+
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
2978
|
+
* @param {*} [options] Override http request option.
|
|
2979
|
+
* @throws {RequiredError}
|
|
2980
|
+
*/
|
|
2981
|
+
userAPIKeyServiceUserAPIKeyCreate: (userAPIKeyCreateRequest: UserAPIKeyCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2982
|
+
/**
|
|
2983
|
+
* 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
|
|
2984
|
+
* @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
|
|
2985
|
+
* @param {*} [options] Override http request option.
|
|
2986
|
+
* @throws {RequiredError}
|
|
2987
|
+
*/
|
|
2988
|
+
userAPIKeyServiceUserAPIKeyDelete: (userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2989
|
+
/**
|
|
2990
|
+
* 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
|
|
2991
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
|
|
2992
|
+
* @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\"
|
|
2993
|
+
* @param {*} [options] Override http request option.
|
|
2994
|
+
* @throws {RequiredError}
|
|
2995
|
+
*/
|
|
2996
|
+
userAPIKeyServiceUserAPIKeyGet: (id?: string, name?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2997
|
+
/**
|
|
2998
|
+
* 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
|
|
2999
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3000
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3001
|
+
* @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\"
|
|
3002
|
+
* @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\"
|
|
3003
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
|
|
3004
|
+
* @param {*} [options] Override http request option.
|
|
3005
|
+
* @throws {RequiredError}
|
|
3006
|
+
*/
|
|
3007
|
+
userAPIKeyServiceUserAPIKeyList: (page?: number, pageSize?: number, uid?: string, keyStatus?: string, keyGroup?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3008
|
+
/**
|
|
3009
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3010
|
+
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
userAPIKeyServiceUserAPIKeyUpdate: (userAPIKeyUpdateRequest: UserAPIKeyUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3015
|
+
};
|
|
3016
|
+
/**
|
|
3017
|
+
* UserAPIKeyServiceApi - functional programming interface
|
|
3018
|
+
*/
|
|
3019
|
+
export declare const UserAPIKeyServiceApiFp: (configuration?: Configuration) => {
|
|
3020
|
+
/**
|
|
3021
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3022
|
+
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
3023
|
+
* @param {*} [options] Override http request option.
|
|
3024
|
+
* @throws {RequiredError}
|
|
3025
|
+
*/
|
|
3026
|
+
userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest: UserAPIKeyCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAPIKeyCreateResponse>>;
|
|
3027
|
+
/**
|
|
3028
|
+
* 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
|
|
3029
|
+
* @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAPIKeyDeleteResponse>>;
|
|
3034
|
+
/**
|
|
3035
|
+
* 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
|
|
3036
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
|
|
3037
|
+
* @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\"
|
|
3038
|
+
* @param {*} [options] Override http request option.
|
|
3039
|
+
* @throws {RequiredError}
|
|
3040
|
+
*/
|
|
3041
|
+
userAPIKeyServiceUserAPIKeyGet(id?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAPIKeyGetResponse>>;
|
|
3042
|
+
/**
|
|
3043
|
+
* 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
|
|
3044
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3045
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3046
|
+
* @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\"
|
|
3047
|
+
* @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\"
|
|
3048
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
|
|
3049
|
+
* @param {*} [options] Override http request option.
|
|
3050
|
+
* @throws {RequiredError}
|
|
3051
|
+
*/
|
|
3052
|
+
userAPIKeyServiceUserAPIKeyList(page?: number, pageSize?: number, uid?: string, keyStatus?: string, keyGroup?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAPIKeyListResponse>>;
|
|
3053
|
+
/**
|
|
3054
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3055
|
+
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
3056
|
+
* @param {*} [options] Override http request option.
|
|
3057
|
+
* @throws {RequiredError}
|
|
3058
|
+
*/
|
|
3059
|
+
userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest: UserAPIKeyUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAPIKeyUpdateResponse>>;
|
|
3060
|
+
};
|
|
3061
|
+
/**
|
|
3062
|
+
* UserAPIKeyServiceApi - factory interface
|
|
3063
|
+
*/
|
|
3064
|
+
export declare const UserAPIKeyServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3065
|
+
/**
|
|
3066
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3067
|
+
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
3068
|
+
* @param {*} [options] Override http request option.
|
|
3069
|
+
* @throws {RequiredError}
|
|
3070
|
+
*/
|
|
3071
|
+
userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest: UserAPIKeyCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyCreateResponse>;
|
|
3072
|
+
/**
|
|
3073
|
+
* 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
|
|
3074
|
+
* @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
|
|
3075
|
+
* @param {*} [options] Override http request option.
|
|
3076
|
+
* @throws {RequiredError}
|
|
3077
|
+
*/
|
|
3078
|
+
userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyDeleteResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* 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
|
|
3081
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
|
|
3082
|
+
* @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\"
|
|
3083
|
+
* @param {*} [options] Override http request option.
|
|
3084
|
+
* @throws {RequiredError}
|
|
3085
|
+
*/
|
|
3086
|
+
userAPIKeyServiceUserAPIKeyGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyGetResponse>;
|
|
3087
|
+
/**
|
|
3088
|
+
* 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
|
|
3089
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3090
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3091
|
+
* @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\"
|
|
3092
|
+
* @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\"
|
|
3093
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
|
|
3094
|
+
* @param {*} [options] Override http request option.
|
|
3095
|
+
* @throws {RequiredError}
|
|
3096
|
+
*/
|
|
3097
|
+
userAPIKeyServiceUserAPIKeyList(page?: number, pageSize?: number, uid?: string, keyStatus?: string, keyGroup?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyListResponse>;
|
|
3098
|
+
/**
|
|
3099
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3100
|
+
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
*/
|
|
3104
|
+
userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest: UserAPIKeyUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyUpdateResponse>;
|
|
3105
|
+
};
|
|
3106
|
+
/**
|
|
3107
|
+
* UserAPIKeyServiceApi - interface
|
|
3108
|
+
*/
|
|
3109
|
+
export interface UserAPIKeyServiceApiInterface {
|
|
3110
|
+
/**
|
|
3111
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3112
|
+
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
3113
|
+
* @param {*} [options] Override http request option.
|
|
3114
|
+
* @throws {RequiredError}
|
|
3115
|
+
*/
|
|
3116
|
+
userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest: UserAPIKeyCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyCreateResponse>;
|
|
3117
|
+
/**
|
|
3118
|
+
* 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
|
|
3119
|
+
* @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
|
|
3120
|
+
* @param {*} [options] Override http request option.
|
|
3121
|
+
* @throws {RequiredError}
|
|
3122
|
+
*/
|
|
3123
|
+
userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyDeleteResponse>;
|
|
3124
|
+
/**
|
|
3125
|
+
* 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
|
|
3126
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
|
|
3127
|
+
* @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\"
|
|
3128
|
+
* @param {*} [options] Override http request option.
|
|
3129
|
+
* @throws {RequiredError}
|
|
3130
|
+
*/
|
|
3131
|
+
userAPIKeyServiceUserAPIKeyGet(id?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyGetResponse>;
|
|
3132
|
+
/**
|
|
3133
|
+
* 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
|
|
3134
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3135
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3136
|
+
* @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\"
|
|
3137
|
+
* @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\"
|
|
3138
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
*/
|
|
3142
|
+
userAPIKeyServiceUserAPIKeyList(page?: number, pageSize?: number, uid?: string, keyStatus?: string, keyGroup?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyListResponse>;
|
|
3143
|
+
/**
|
|
3144
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3145
|
+
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
3146
|
+
* @param {*} [options] Override http request option.
|
|
3147
|
+
* @throws {RequiredError}
|
|
3148
|
+
*/
|
|
3149
|
+
userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest: UserAPIKeyUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserAPIKeyUpdateResponse>;
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* UserAPIKeyServiceApi - object-oriented interface
|
|
3153
|
+
*/
|
|
3154
|
+
export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyServiceApiInterface {
|
|
3155
|
+
/**
|
|
3156
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey Create a new UserAPIKey 请求路径: POST /api/user/api-key/create Request path: POST /api/user/api-key/create 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3157
|
+
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest: UserAPIKeyCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAPIKeyCreateResponse, any, {}>>;
|
|
3162
|
+
/**
|
|
3163
|
+
* 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
|
|
3164
|
+
* @param {UserAPIKeyDeleteRequest} userAPIKeyDeleteRequest
|
|
3165
|
+
* @param {*} [options] Override http request option.
|
|
3166
|
+
* @throws {RequiredError}
|
|
3167
|
+
*/
|
|
3168
|
+
userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAPIKeyDeleteResponse, any, {}>>;
|
|
3169
|
+
/**
|
|
3170
|
+
* 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
|
|
3171
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to retrieve @gotags: form:\"id\"
|
|
3172
|
+
* @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\"
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
userAPIKeyServiceUserAPIKeyGet(id?: string, name?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAPIKeyGetResponse, any, {}>>;
|
|
3177
|
+
/**
|
|
3178
|
+
* 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
|
|
3179
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3180
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3181
|
+
* @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\"
|
|
3182
|
+
* @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\"
|
|
3183
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) Filter by key group (optional) @gotags: form:\"key_group\"
|
|
3184
|
+
* @param {*} [options] Override http request option.
|
|
3185
|
+
* @throws {RequiredError}
|
|
3186
|
+
*/
|
|
3187
|
+
userAPIKeyServiceUserAPIKeyList(page?: number, pageSize?: number, uid?: string, keyStatus?: string, keyGroup?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAPIKeyListResponse, any, {}>>;
|
|
3188
|
+
/**
|
|
3189
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey Update an existing UserAPIKey 请求路径: POST /api/user/api-key/update Request path: POST /api/user/api-key/update 权限要求: 需要用户认证 Permission: Requires user authentication
|
|
3190
|
+
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
3191
|
+
* @param {*} [options] Override http request option.
|
|
3192
|
+
* @throws {RequiredError}
|
|
3193
|
+
*/
|
|
3194
|
+
userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest: UserAPIKeyUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAPIKeyUpdateResponse, any, {}>>;
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* UserAuthServiceApi - axios parameter creator
|
|
3198
|
+
*/
|
|
3199
|
+
export declare const UserAuthServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3200
|
+
/**
|
|
3201
|
+
* 提交验证码流程
|
|
3202
|
+
* @param {number} [authType]
|
|
3203
|
+
* @param {number} [authAction]
|
|
3204
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3205
|
+
* @param {string} [payloadEmailPayloadAuthCode]
|
|
3206
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3207
|
+
* @param {string} [authAt]
|
|
3208
|
+
* @param {string} [nonce]
|
|
3209
|
+
* @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 )
|
|
3210
|
+
* @param {*} [options] Override http request option.
|
|
3211
|
+
* @throws {RequiredError}
|
|
3212
|
+
*/
|
|
3213
|
+
userAuthServiceUserAuthFlowCode: (authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadAuthCode?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3214
|
+
/**
|
|
3215
|
+
* 鉴权流程启动
|
|
3216
|
+
* @param {number} [authType]
|
|
3217
|
+
* @param {number} [authAction]
|
|
3218
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3219
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3220
|
+
* @param {string} [payloadEmailPayloadDisplayName]
|
|
3221
|
+
* @param {number} [payloadOauth2PayloadPlatform]
|
|
3222
|
+
* @param {string} [authAt]
|
|
3223
|
+
* @param {string} [nonce]
|
|
3224
|
+
* @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 )
|
|
3225
|
+
* @param {*} [options] Override http request option.
|
|
3226
|
+
* @throws {RequiredError}
|
|
3227
|
+
*/
|
|
3228
|
+
userAuthServiceUserAuthFlowInit: (authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, payloadEmailPayloadDisplayName?: string, payloadOauth2PayloadPlatform?: number, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3229
|
+
/**
|
|
3230
|
+
* OAUTH 流程验证回调
|
|
3231
|
+
* @param {string} [code]
|
|
3232
|
+
* @param {string} [state]
|
|
3233
|
+
* @param {number} [platform]
|
|
3234
|
+
* @param {*} [options] Override http request option.
|
|
3235
|
+
* @throws {RequiredError}
|
|
3236
|
+
*/
|
|
3237
|
+
userAuthServiceUserAuthFlowOAuthCallback: (code?: string, state?: string, platform?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3238
|
+
/**
|
|
3239
|
+
* Auth Token 刷新接口
|
|
3240
|
+
* @param {string} [refreshToken]
|
|
3241
|
+
* @param {string} [authAt]
|
|
3242
|
+
* @param {string} [nonce]
|
|
3243
|
+
* @param {string} [signature]
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
*/
|
|
3247
|
+
userAuthServiceUserAuthFlowTokenRefresh: (refreshToken?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3248
|
+
};
|
|
3249
|
+
/**
|
|
3250
|
+
* UserAuthServiceApi - functional programming interface
|
|
3251
|
+
*/
|
|
3252
|
+
export declare const UserAuthServiceApiFp: (configuration?: Configuration) => {
|
|
3253
|
+
/**
|
|
3254
|
+
* 提交验证码流程
|
|
3255
|
+
* @param {number} [authType]
|
|
3256
|
+
* @param {number} [authAction]
|
|
3257
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3258
|
+
* @param {string} [payloadEmailPayloadAuthCode]
|
|
3259
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3260
|
+
* @param {string} [authAt]
|
|
3261
|
+
* @param {string} [nonce]
|
|
3262
|
+
* @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 )
|
|
3263
|
+
* @param {*} [options] Override http request option.
|
|
3264
|
+
* @throws {RequiredError}
|
|
3265
|
+
*/
|
|
3266
|
+
userAuthServiceUserAuthFlowCode(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadAuthCode?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAuthFlowCodeResponse>>;
|
|
3267
|
+
/**
|
|
3268
|
+
* 鉴权流程启动
|
|
3269
|
+
* @param {number} [authType]
|
|
3270
|
+
* @param {number} [authAction]
|
|
3271
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3272
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3273
|
+
* @param {string} [payloadEmailPayloadDisplayName]
|
|
3274
|
+
* @param {number} [payloadOauth2PayloadPlatform]
|
|
3275
|
+
* @param {string} [authAt]
|
|
3276
|
+
* @param {string} [nonce]
|
|
3277
|
+
* @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 )
|
|
3278
|
+
* @param {*} [options] Override http request option.
|
|
3279
|
+
* @throws {RequiredError}
|
|
3280
|
+
*/
|
|
3281
|
+
userAuthServiceUserAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, payloadEmailPayloadDisplayName?: string, payloadOauth2PayloadPlatform?: number, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAuthFlowInitResponse>>;
|
|
3282
|
+
/**
|
|
3283
|
+
* OAUTH 流程验证回调
|
|
3284
|
+
* @param {string} [code]
|
|
3285
|
+
* @param {string} [state]
|
|
3286
|
+
* @param {number} [platform]
|
|
3287
|
+
* @param {*} [options] Override http request option.
|
|
3288
|
+
* @throws {RequiredError}
|
|
3289
|
+
*/
|
|
3290
|
+
userAuthServiceUserAuthFlowOAuthCallback(code?: string, state?: string, platform?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAuthFlowOAuthCallbackResponse>>;
|
|
3291
|
+
/**
|
|
3292
|
+
* Auth Token 刷新接口
|
|
3293
|
+
* @param {string} [refreshToken]
|
|
3294
|
+
* @param {string} [authAt]
|
|
3295
|
+
* @param {string} [nonce]
|
|
3296
|
+
* @param {string} [signature]
|
|
3297
|
+
* @param {*} [options] Override http request option.
|
|
3298
|
+
* @throws {RequiredError}
|
|
3299
|
+
*/
|
|
3300
|
+
userAuthServiceUserAuthFlowTokenRefresh(refreshToken?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAuthFlowOAuthCallbackRequest>>;
|
|
3301
|
+
};
|
|
3302
|
+
/**
|
|
3303
|
+
* UserAuthServiceApi - factory interface
|
|
3304
|
+
*/
|
|
3305
|
+
export declare const UserAuthServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3306
|
+
/**
|
|
3307
|
+
* 提交验证码流程
|
|
3308
|
+
* @param {number} [authType]
|
|
3309
|
+
* @param {number} [authAction]
|
|
3310
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3311
|
+
* @param {string} [payloadEmailPayloadAuthCode]
|
|
3312
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3313
|
+
* @param {string} [authAt]
|
|
3314
|
+
* @param {string} [nonce]
|
|
3315
|
+
* @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 )
|
|
3316
|
+
* @param {*} [options] Override http request option.
|
|
3317
|
+
* @throws {RequiredError}
|
|
3318
|
+
*/
|
|
3319
|
+
userAuthServiceUserAuthFlowCode(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadAuthCode?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowCodeResponse>;
|
|
3320
|
+
/**
|
|
3321
|
+
* 鉴权流程启动
|
|
3322
|
+
* @param {number} [authType]
|
|
3323
|
+
* @param {number} [authAction]
|
|
3324
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3325
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3326
|
+
* @param {string} [payloadEmailPayloadDisplayName]
|
|
3327
|
+
* @param {number} [payloadOauth2PayloadPlatform]
|
|
3328
|
+
* @param {string} [authAt]
|
|
3329
|
+
* @param {string} [nonce]
|
|
3330
|
+
* @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 )
|
|
3331
|
+
* @param {*} [options] Override http request option.
|
|
3332
|
+
* @throws {RequiredError}
|
|
3333
|
+
*/
|
|
3334
|
+
userAuthServiceUserAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, payloadEmailPayloadDisplayName?: string, payloadOauth2PayloadPlatform?: number, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowInitResponse>;
|
|
3335
|
+
/**
|
|
3336
|
+
* OAUTH 流程验证回调
|
|
3337
|
+
* @param {string} [code]
|
|
3338
|
+
* @param {string} [state]
|
|
3339
|
+
* @param {number} [platform]
|
|
3340
|
+
* @param {*} [options] Override http request option.
|
|
3341
|
+
* @throws {RequiredError}
|
|
3342
|
+
*/
|
|
3343
|
+
userAuthServiceUserAuthFlowOAuthCallback(code?: string, state?: string, platform?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowOAuthCallbackResponse>;
|
|
3344
|
+
/**
|
|
3345
|
+
* Auth Token 刷新接口
|
|
3346
|
+
* @param {string} [refreshToken]
|
|
3347
|
+
* @param {string} [authAt]
|
|
3348
|
+
* @param {string} [nonce]
|
|
3349
|
+
* @param {string} [signature]
|
|
3350
|
+
* @param {*} [options] Override http request option.
|
|
3351
|
+
* @throws {RequiredError}
|
|
3352
|
+
*/
|
|
3353
|
+
userAuthServiceUserAuthFlowTokenRefresh(refreshToken?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowOAuthCallbackRequest>;
|
|
3354
|
+
};
|
|
3355
|
+
/**
|
|
3356
|
+
* UserAuthServiceApi - interface
|
|
3357
|
+
*/
|
|
3358
|
+
export interface UserAuthServiceApiInterface {
|
|
3359
|
+
/**
|
|
3360
|
+
* 提交验证码流程
|
|
3361
|
+
* @param {number} [authType]
|
|
3362
|
+
* @param {number} [authAction]
|
|
3363
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3364
|
+
* @param {string} [payloadEmailPayloadAuthCode]
|
|
3365
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3366
|
+
* @param {string} [authAt]
|
|
3367
|
+
* @param {string} [nonce]
|
|
3368
|
+
* @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 )
|
|
3369
|
+
* @param {*} [options] Override http request option.
|
|
3370
|
+
* @throws {RequiredError}
|
|
3371
|
+
*/
|
|
3372
|
+
userAuthServiceUserAuthFlowCode(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadAuthCode?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowCodeResponse>;
|
|
3373
|
+
/**
|
|
3374
|
+
* 鉴权流程启动
|
|
3375
|
+
* @param {number} [authType]
|
|
3376
|
+
* @param {number} [authAction]
|
|
3377
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3378
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3379
|
+
* @param {string} [payloadEmailPayloadDisplayName]
|
|
3380
|
+
* @param {number} [payloadOauth2PayloadPlatform]
|
|
3381
|
+
* @param {string} [authAt]
|
|
3382
|
+
* @param {string} [nonce]
|
|
3383
|
+
* @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 )
|
|
3384
|
+
* @param {*} [options] Override http request option.
|
|
3385
|
+
* @throws {RequiredError}
|
|
3386
|
+
*/
|
|
3387
|
+
userAuthServiceUserAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, payloadEmailPayloadDisplayName?: string, payloadOauth2PayloadPlatform?: number, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowInitResponse>;
|
|
3388
|
+
/**
|
|
3389
|
+
* OAUTH 流程验证回调
|
|
3390
|
+
* @param {string} [code]
|
|
3391
|
+
* @param {string} [state]
|
|
3392
|
+
* @param {number} [platform]
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
*/
|
|
3396
|
+
userAuthServiceUserAuthFlowOAuthCallback(code?: string, state?: string, platform?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowOAuthCallbackResponse>;
|
|
3397
|
+
/**
|
|
3398
|
+
* Auth Token 刷新接口
|
|
3399
|
+
* @param {string} [refreshToken]
|
|
3400
|
+
* @param {string} [authAt]
|
|
3401
|
+
* @param {string} [nonce]
|
|
3402
|
+
* @param {string} [signature]
|
|
3403
|
+
* @param {*} [options] Override http request option.
|
|
3404
|
+
* @throws {RequiredError}
|
|
3405
|
+
*/
|
|
3406
|
+
userAuthServiceUserAuthFlowTokenRefresh(refreshToken?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserAuthFlowOAuthCallbackRequest>;
|
|
3407
|
+
}
|
|
3408
|
+
/**
|
|
3409
|
+
* UserAuthServiceApi - object-oriented interface
|
|
3410
|
+
*/
|
|
3411
|
+
export declare class UserAuthServiceApi extends BaseAPI implements UserAuthServiceApiInterface {
|
|
3412
|
+
/**
|
|
3413
|
+
* 提交验证码流程
|
|
3414
|
+
* @param {number} [authType]
|
|
3415
|
+
* @param {number} [authAction]
|
|
3416
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3417
|
+
* @param {string} [payloadEmailPayloadAuthCode]
|
|
3418
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3419
|
+
* @param {string} [authAt]
|
|
3420
|
+
* @param {string} [nonce]
|
|
3421
|
+
* @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 )
|
|
3422
|
+
* @param {*} [options] Override http request option.
|
|
3423
|
+
* @throws {RequiredError}
|
|
3424
|
+
*/
|
|
3425
|
+
userAuthServiceUserAuthFlowCode(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadAuthCode?: string, payloadEmailPayloadUserPasswordEncrypt?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAuthFlowCodeResponse, any, {}>>;
|
|
3426
|
+
/**
|
|
3427
|
+
* 鉴权流程启动
|
|
3428
|
+
* @param {number} [authType]
|
|
3429
|
+
* @param {number} [authAction]
|
|
3430
|
+
* @param {string} [payloadEmailPayloadUserEmail]
|
|
3431
|
+
* @param {string} [payloadEmailPayloadUserPasswordEncrypt]
|
|
3432
|
+
* @param {string} [payloadEmailPayloadDisplayName]
|
|
3433
|
+
* @param {number} [payloadOauth2PayloadPlatform]
|
|
3434
|
+
* @param {string} [authAt]
|
|
3435
|
+
* @param {string} [nonce]
|
|
3436
|
+
* @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 )
|
|
3437
|
+
* @param {*} [options] Override http request option.
|
|
3438
|
+
* @throws {RequiredError}
|
|
3439
|
+
*/
|
|
3440
|
+
userAuthServiceUserAuthFlowInit(authType?: number, authAction?: number, payloadEmailPayloadUserEmail?: string, payloadEmailPayloadUserPasswordEncrypt?: string, payloadEmailPayloadDisplayName?: string, payloadOauth2PayloadPlatform?: number, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAuthFlowInitResponse, any, {}>>;
|
|
3441
|
+
/**
|
|
3442
|
+
* OAUTH 流程验证回调
|
|
3443
|
+
* @param {string} [code]
|
|
3444
|
+
* @param {string} [state]
|
|
3445
|
+
* @param {number} [platform]
|
|
3446
|
+
* @param {*} [options] Override http request option.
|
|
3447
|
+
* @throws {RequiredError}
|
|
3448
|
+
*/
|
|
3449
|
+
userAuthServiceUserAuthFlowOAuthCallback(code?: string, state?: string, platform?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAuthFlowOAuthCallbackResponse, any, {}>>;
|
|
3450
|
+
/**
|
|
3451
|
+
* Auth Token 刷新接口
|
|
3452
|
+
* @param {string} [refreshToken]
|
|
3453
|
+
* @param {string} [authAt]
|
|
3454
|
+
* @param {string} [nonce]
|
|
3455
|
+
* @param {string} [signature]
|
|
3456
|
+
* @param {*} [options] Override http request option.
|
|
3457
|
+
* @throws {RequiredError}
|
|
3458
|
+
*/
|
|
3459
|
+
userAuthServiceUserAuthFlowTokenRefresh(refreshToken?: string, authAt?: string, nonce?: string, signature?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAuthFlowOAuthCallbackRequest, any, {}>>;
|
|
3460
|
+
}
|
|
3461
|
+
/**
|
|
3462
|
+
* UserBalanceServiceApi - axios parameter creator
|
|
3463
|
+
*/
|
|
3464
|
+
export declare const UserBalanceServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3465
|
+
/**
|
|
3466
|
+
* 用户余额变更接口 - 增量操作
|
|
3467
|
+
* @param {boolean} [forceCreate]
|
|
3468
|
+
* @param {string} [uid]
|
|
3469
|
+
* @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
|
|
3470
|
+
* @param {string} [action] 变更类型,incr/decr
|
|
3471
|
+
* @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3472
|
+
* @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3473
|
+
* @param {*} [options] Override http request option.
|
|
3474
|
+
* @throws {RequiredError}
|
|
3475
|
+
*/
|
|
3476
|
+
userBalanceServiceUserBalanceChange: (forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3477
|
+
/**
|
|
3478
|
+
* 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
3479
|
+
* @param {boolean} [forceCreate]
|
|
3480
|
+
* @param {string} [uid]
|
|
3481
|
+
* @param {string} [dataId]
|
|
3482
|
+
* @param {string} [dataCreatedAt]
|
|
3483
|
+
* @param {string} [dataUpdatedAt]
|
|
3484
|
+
* @param {string} [dataUid]
|
|
3485
|
+
* @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
|
|
3486
|
+
* @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3487
|
+
* @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3488
|
+
* @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3489
|
+
* @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3490
|
+
* @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3491
|
+
* @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3492
|
+
* @param {string} [dataVersion]
|
|
3493
|
+
* @param {*} [options] Override http request option.
|
|
3494
|
+
* @throws {RequiredError}
|
|
3495
|
+
*/
|
|
3496
|
+
userBalanceServiceUserBalanceEdit: (forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3497
|
+
/**
|
|
3498
|
+
* 用户余额列表接口
|
|
3499
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3500
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3501
|
+
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
3502
|
+
* @param {*} [options] Override http request option.
|
|
3503
|
+
* @throws {RequiredError}
|
|
3504
|
+
*/
|
|
3505
|
+
userBalanceServiceUserBalanceList: (page?: number, pageSize?: number, uidList?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3506
|
+
};
|
|
3507
|
+
/**
|
|
3508
|
+
* UserBalanceServiceApi - functional programming interface
|
|
3509
|
+
*/
|
|
3510
|
+
export declare const UserBalanceServiceApiFp: (configuration?: Configuration) => {
|
|
3511
|
+
/**
|
|
3512
|
+
* 用户余额变更接口 - 增量操作
|
|
3513
|
+
* @param {boolean} [forceCreate]
|
|
3514
|
+
* @param {string} [uid]
|
|
3515
|
+
* @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
|
|
3516
|
+
* @param {string} [action] 变更类型,incr/decr
|
|
3517
|
+
* @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3518
|
+
* @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3519
|
+
* @param {*} [options] Override http request option.
|
|
3520
|
+
* @throws {RequiredError}
|
|
3521
|
+
*/
|
|
3522
|
+
userBalanceServiceUserBalanceChange(forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBalanceChangeResponse>>;
|
|
3523
|
+
/**
|
|
3524
|
+
* 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
3525
|
+
* @param {boolean} [forceCreate]
|
|
3526
|
+
* @param {string} [uid]
|
|
3527
|
+
* @param {string} [dataId]
|
|
3528
|
+
* @param {string} [dataCreatedAt]
|
|
3529
|
+
* @param {string} [dataUpdatedAt]
|
|
3530
|
+
* @param {string} [dataUid]
|
|
3531
|
+
* @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
|
|
3532
|
+
* @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3533
|
+
* @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3534
|
+
* @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3535
|
+
* @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3536
|
+
* @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3537
|
+
* @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3538
|
+
* @param {string} [dataVersion]
|
|
3539
|
+
* @param {*} [options] Override http request option.
|
|
3540
|
+
* @throws {RequiredError}
|
|
3541
|
+
*/
|
|
3542
|
+
userBalanceServiceUserBalanceEdit(forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBalanceEditResponse>>;
|
|
3543
|
+
/**
|
|
3544
|
+
* 用户余额列表接口
|
|
3545
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3546
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3547
|
+
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
3548
|
+
* @param {*} [options] Override http request option.
|
|
3549
|
+
* @throws {RequiredError}
|
|
3550
|
+
*/
|
|
3551
|
+
userBalanceServiceUserBalanceList(page?: number, pageSize?: number, uidList?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBalanceListResponse>>;
|
|
3552
|
+
};
|
|
3553
|
+
/**
|
|
3554
|
+
* UserBalanceServiceApi - factory interface
|
|
3555
|
+
*/
|
|
3556
|
+
export declare const UserBalanceServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3557
|
+
/**
|
|
3558
|
+
* 用户余额变更接口 - 增量操作
|
|
3559
|
+
* @param {boolean} [forceCreate]
|
|
3560
|
+
* @param {string} [uid]
|
|
3561
|
+
* @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
|
|
3562
|
+
* @param {string} [action] 变更类型,incr/decr
|
|
3563
|
+
* @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3564
|
+
* @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3565
|
+
* @param {*} [options] Override http request option.
|
|
3566
|
+
* @throws {RequiredError}
|
|
3567
|
+
*/
|
|
3568
|
+
userBalanceServiceUserBalanceChange(forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceChangeResponse>;
|
|
3569
|
+
/**
|
|
3570
|
+
* 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
3571
|
+
* @param {boolean} [forceCreate]
|
|
3572
|
+
* @param {string} [uid]
|
|
3573
|
+
* @param {string} [dataId]
|
|
3574
|
+
* @param {string} [dataCreatedAt]
|
|
3575
|
+
* @param {string} [dataUpdatedAt]
|
|
3576
|
+
* @param {string} [dataUid]
|
|
3577
|
+
* @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
|
|
3578
|
+
* @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3579
|
+
* @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3580
|
+
* @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3581
|
+
* @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3582
|
+
* @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3583
|
+
* @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3584
|
+
* @param {string} [dataVersion]
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
userBalanceServiceUserBalanceEdit(forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceEditResponse>;
|
|
3589
|
+
/**
|
|
3590
|
+
* 用户余额列表接口
|
|
3591
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3592
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3593
|
+
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
3594
|
+
* @param {*} [options] Override http request option.
|
|
3595
|
+
* @throws {RequiredError}
|
|
3596
|
+
*/
|
|
3597
|
+
userBalanceServiceUserBalanceList(page?: number, pageSize?: number, uidList?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceListResponse>;
|
|
3598
|
+
};
|
|
3599
|
+
/**
|
|
3600
|
+
* UserBalanceServiceApi - interface
|
|
3601
|
+
*/
|
|
3602
|
+
export interface UserBalanceServiceApiInterface {
|
|
3603
|
+
/**
|
|
3604
|
+
* 用户余额变更接口 - 增量操作
|
|
3605
|
+
* @param {boolean} [forceCreate]
|
|
3606
|
+
* @param {string} [uid]
|
|
3607
|
+
* @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
|
|
3608
|
+
* @param {string} [action] 变更类型,incr/decr
|
|
3609
|
+
* @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3610
|
+
* @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3611
|
+
* @param {*} [options] Override http request option.
|
|
3612
|
+
* @throws {RequiredError}
|
|
3613
|
+
*/
|
|
3614
|
+
userBalanceServiceUserBalanceChange(forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceChangeResponse>;
|
|
3615
|
+
/**
|
|
3616
|
+
* 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
3617
|
+
* @param {boolean} [forceCreate]
|
|
3618
|
+
* @param {string} [uid]
|
|
3619
|
+
* @param {string} [dataId]
|
|
3620
|
+
* @param {string} [dataCreatedAt]
|
|
3621
|
+
* @param {string} [dataUpdatedAt]
|
|
3622
|
+
* @param {string} [dataUid]
|
|
3623
|
+
* @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
|
|
3624
|
+
* @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3625
|
+
* @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3626
|
+
* @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3627
|
+
* @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3628
|
+
* @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3629
|
+
* @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3630
|
+
* @param {string} [dataVersion]
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
*/
|
|
3634
|
+
userBalanceServiceUserBalanceEdit(forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceEditResponse>;
|
|
3635
|
+
/**
|
|
3636
|
+
* 用户余额列表接口
|
|
3637
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3638
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3639
|
+
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
userBalanceServiceUserBalanceList(page?: number, pageSize?: number, uidList?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<UserBalanceListResponse>;
|
|
3644
|
+
}
|
|
3645
|
+
/**
|
|
3646
|
+
* UserBalanceServiceApi - object-oriented interface
|
|
3647
|
+
*/
|
|
3648
|
+
export declare class UserBalanceServiceApi extends BaseAPI implements UserBalanceServiceApiInterface {
|
|
3649
|
+
/**
|
|
3650
|
+
* 用户余额变更接口 - 增量操作
|
|
3651
|
+
* @param {boolean} [forceCreate]
|
|
3652
|
+
* @param {string} [uid]
|
|
3653
|
+
* @param {string} [balanceCode] balance_code 余额货币代码. USD/CNY
|
|
3654
|
+
* @param {string} [action] 变更类型,incr/decr
|
|
3655
|
+
* @param {string} [deltaPrepaidBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3656
|
+
* @param {string} [deltaBonusBalanceTotal] delta_prepaid_balance_total 预付费余额增量,使用 DECIMAL(24,12) 精度存储
|
|
3657
|
+
* @param {*} [options] Override http request option.
|
|
3658
|
+
* @throws {RequiredError}
|
|
3659
|
+
*/
|
|
3660
|
+
userBalanceServiceUserBalanceChange(forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBalanceChangeResponse, any, {}>>;
|
|
3661
|
+
/**
|
|
3662
|
+
* 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
3663
|
+
* @param {boolean} [forceCreate]
|
|
3664
|
+
* @param {string} [uid]
|
|
3665
|
+
* @param {string} [dataId]
|
|
3666
|
+
* @param {string} [dataCreatedAt]
|
|
3667
|
+
* @param {string} [dataUpdatedAt]
|
|
3668
|
+
* @param {string} [dataUid]
|
|
3669
|
+
* @param {string} [dataBalanceCode] balance_code 余额货币代码. USD/CNY
|
|
3670
|
+
* @param {string} [dataPrepaidBalanceTotal] prepaid_balance_total 预付费余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3671
|
+
* @param {string} [dataPrepaidBalanceUsed] prepaid_balance_used 已使用预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3672
|
+
* @param {string} [dataPrepaidBalanceFrozen] prepaid_balance_frozen 冻结预付费余额,使用 DECIMAL(24,12) 精度存储
|
|
3673
|
+
* @param {string} [dataBonusBalanceTotal] bonus_balance_total 赠送余额总额,使用 DECIMAL(24,12) 精度存储
|
|
3674
|
+
* @param {string} [dataBonusBalanceUsed] bonus_balance_used 已使用赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3675
|
+
* @param {string} [dataBonusBalanceFrozen] bonus_balance_frozen 冻结赠送余额,使用 DECIMAL(24,12) 精度存储
|
|
3676
|
+
* @param {string} [dataVersion]
|
|
3677
|
+
* @param {*} [options] Override http request option.
|
|
3678
|
+
* @throws {RequiredError}
|
|
3679
|
+
*/
|
|
3680
|
+
userBalanceServiceUserBalanceEdit(forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBalanceEditResponse, any, {}>>;
|
|
3681
|
+
/**
|
|
3682
|
+
* 用户余额列表接口
|
|
3683
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3684
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3685
|
+
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
3686
|
+
* @param {*} [options] Override http request option.
|
|
3687
|
+
* @throws {RequiredError}
|
|
3688
|
+
*/
|
|
3689
|
+
userBalanceServiceUserBalanceList(page?: number, pageSize?: number, uidList?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBalanceListResponse, any, {}>>;
|
|
3690
|
+
}
|
|
3691
|
+
/**
|
|
3692
|
+
* UserLabelServiceApi - axios parameter creator
|
|
3693
|
+
*/
|
|
3694
|
+
export declare const UserLabelServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3695
|
+
/**
|
|
3696
|
+
*
|
|
3697
|
+
* @param {LabelCreateRequest} labelCreateRequest
|
|
3698
|
+
* @param {*} [options] Override http request option.
|
|
3699
|
+
* @throws {RequiredError}
|
|
3700
|
+
*/
|
|
3701
|
+
userLabelServiceLabelCreate: (labelCreateRequest: LabelCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3702
|
+
/**
|
|
3703
|
+
*
|
|
3704
|
+
* @param {LabelDeleteRequest} labelDeleteRequest
|
|
3705
|
+
* @param {*} [options] Override http request option.
|
|
3706
|
+
* @throws {RequiredError}
|
|
3707
|
+
*/
|
|
3708
|
+
userLabelServiceLabelDelete: (labelDeleteRequest: LabelDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3709
|
+
/**
|
|
3710
|
+
*
|
|
3711
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3712
|
+
* @param {*} [options] Override http request option.
|
|
3713
|
+
* @throws {RequiredError}
|
|
3714
|
+
*/
|
|
3715
|
+
userLabelServiceLabelGet: (labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3716
|
+
/**
|
|
3717
|
+
*
|
|
3718
|
+
* @param {LabelListRequest} labelListRequest
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
userLabelServiceLabelList: (labelListRequest: LabelListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3723
|
+
/**
|
|
3724
|
+
*
|
|
3725
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3726
|
+
* @param {*} [options] Override http request option.
|
|
3727
|
+
* @throws {RequiredError}
|
|
3728
|
+
*/
|
|
3729
|
+
userLabelServiceLabelUpdate: (labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3730
|
+
/**
|
|
3731
|
+
*
|
|
3732
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3733
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3734
|
+
* @param {Array<string>} [uidList]
|
|
3735
|
+
* @param {Array<string>} [labelIds]
|
|
3736
|
+
* @param {*} [options] Override http request option.
|
|
3737
|
+
* @throws {RequiredError}
|
|
3738
|
+
*/
|
|
3739
|
+
userLabelServiceUserLabelList: (page?: number, pageSize?: number, uidList?: Array<string>, labelIds?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3740
|
+
/**
|
|
3741
|
+
*
|
|
3742
|
+
* @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
|
|
3743
|
+
* @param {*} [options] Override http request option.
|
|
3744
|
+
* @throws {RequiredError}
|
|
3745
|
+
*/
|
|
3746
|
+
userLabelServiceUserLabelPairChange: (userLabelPairChangeRequest: UserLabelPairChangeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3747
|
+
};
|
|
3748
|
+
/**
|
|
3749
|
+
* UserLabelServiceApi - functional programming interface
|
|
3750
|
+
*/
|
|
3751
|
+
export declare const UserLabelServiceApiFp: (configuration?: Configuration) => {
|
|
3752
|
+
/**
|
|
3753
|
+
*
|
|
3754
|
+
* @param {LabelCreateRequest} labelCreateRequest
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
userLabelServiceLabelCreate(labelCreateRequest: LabelCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelCreateResponse>>;
|
|
3759
|
+
/**
|
|
3760
|
+
*
|
|
3761
|
+
* @param {LabelDeleteRequest} labelDeleteRequest
|
|
3762
|
+
* @param {*} [options] Override http request option.
|
|
3763
|
+
* @throws {RequiredError}
|
|
3764
|
+
*/
|
|
3765
|
+
userLabelServiceLabelDelete(labelDeleteRequest: LabelDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelDeleteResponse>>;
|
|
3766
|
+
/**
|
|
3767
|
+
*
|
|
3768
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3769
|
+
* @param {*} [options] Override http request option.
|
|
3770
|
+
* @throws {RequiredError}
|
|
3771
|
+
*/
|
|
3772
|
+
userLabelServiceLabelGet(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelUpdateResponse>>;
|
|
3773
|
+
/**
|
|
3774
|
+
*
|
|
3775
|
+
* @param {LabelListRequest} labelListRequest
|
|
3776
|
+
* @param {*} [options] Override http request option.
|
|
3777
|
+
* @throws {RequiredError}
|
|
3778
|
+
*/
|
|
3779
|
+
userLabelServiceLabelList(labelListRequest: LabelListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelListResponse>>;
|
|
3780
|
+
/**
|
|
3781
|
+
*
|
|
3782
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3783
|
+
* @param {*} [options] Override http request option.
|
|
3784
|
+
* @throws {RequiredError}
|
|
3785
|
+
*/
|
|
3786
|
+
userLabelServiceLabelUpdate(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelUpdateResponse>>;
|
|
3787
|
+
/**
|
|
3788
|
+
*
|
|
3789
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3790
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3791
|
+
* @param {Array<string>} [uidList]
|
|
3792
|
+
* @param {Array<string>} [labelIds]
|
|
3793
|
+
* @param {*} [options] Override http request option.
|
|
3794
|
+
* @throws {RequiredError}
|
|
3795
|
+
*/
|
|
3796
|
+
userLabelServiceUserLabelList(page?: number, pageSize?: number, uidList?: Array<string>, labelIds?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserLabelListResponse>>;
|
|
3797
|
+
/**
|
|
3798
|
+
*
|
|
3799
|
+
* @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
|
|
3800
|
+
* @param {*} [options] Override http request option.
|
|
3801
|
+
* @throws {RequiredError}
|
|
3802
|
+
*/
|
|
3803
|
+
userLabelServiceUserLabelPairChange(userLabelPairChangeRequest: UserLabelPairChangeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserLabelPairChangeResponse>>;
|
|
3804
|
+
};
|
|
3805
|
+
/**
|
|
3806
|
+
* UserLabelServiceApi - factory interface
|
|
3807
|
+
*/
|
|
3808
|
+
export declare const UserLabelServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3809
|
+
/**
|
|
3810
|
+
*
|
|
3811
|
+
* @param {LabelCreateRequest} labelCreateRequest
|
|
3812
|
+
* @param {*} [options] Override http request option.
|
|
3813
|
+
* @throws {RequiredError}
|
|
3814
|
+
*/
|
|
3815
|
+
userLabelServiceLabelCreate(labelCreateRequest: LabelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelCreateResponse>;
|
|
3816
|
+
/**
|
|
3817
|
+
*
|
|
3818
|
+
* @param {LabelDeleteRequest} labelDeleteRequest
|
|
3819
|
+
* @param {*} [options] Override http request option.
|
|
3820
|
+
* @throws {RequiredError}
|
|
3821
|
+
*/
|
|
3822
|
+
userLabelServiceLabelDelete(labelDeleteRequest: LabelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelDeleteResponse>;
|
|
3823
|
+
/**
|
|
3824
|
+
*
|
|
3825
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3826
|
+
* @param {*} [options] Override http request option.
|
|
3827
|
+
* @throws {RequiredError}
|
|
3828
|
+
*/
|
|
3829
|
+
userLabelServiceLabelGet(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelUpdateResponse>;
|
|
3830
|
+
/**
|
|
3831
|
+
*
|
|
3832
|
+
* @param {LabelListRequest} labelListRequest
|
|
3833
|
+
* @param {*} [options] Override http request option.
|
|
3834
|
+
* @throws {RequiredError}
|
|
3835
|
+
*/
|
|
3836
|
+
userLabelServiceLabelList(labelListRequest: LabelListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelListResponse>;
|
|
3837
|
+
/**
|
|
3838
|
+
*
|
|
3839
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3840
|
+
* @param {*} [options] Override http request option.
|
|
3841
|
+
* @throws {RequiredError}
|
|
3842
|
+
*/
|
|
3843
|
+
userLabelServiceLabelUpdate(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelUpdateResponse>;
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3847
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3848
|
+
* @param {Array<string>} [uidList]
|
|
3849
|
+
* @param {Array<string>} [labelIds]
|
|
3850
|
+
* @param {*} [options] Override http request option.
|
|
3851
|
+
* @throws {RequiredError}
|
|
3852
|
+
*/
|
|
3853
|
+
userLabelServiceUserLabelList(page?: number, pageSize?: number, uidList?: Array<string>, labelIds?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<UserLabelListResponse>;
|
|
3854
|
+
/**
|
|
3855
|
+
*
|
|
3856
|
+
* @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
|
|
3857
|
+
* @param {*} [options] Override http request option.
|
|
3858
|
+
* @throws {RequiredError}
|
|
3859
|
+
*/
|
|
3860
|
+
userLabelServiceUserLabelPairChange(userLabelPairChangeRequest: UserLabelPairChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserLabelPairChangeResponse>;
|
|
3861
|
+
};
|
|
3862
|
+
/**
|
|
3863
|
+
* UserLabelServiceApi - interface
|
|
3864
|
+
*/
|
|
3865
|
+
export interface UserLabelServiceApiInterface {
|
|
3866
|
+
/**
|
|
3867
|
+
*
|
|
3868
|
+
* @param {LabelCreateRequest} labelCreateRequest
|
|
3869
|
+
* @param {*} [options] Override http request option.
|
|
3870
|
+
* @throws {RequiredError}
|
|
3871
|
+
*/
|
|
3872
|
+
userLabelServiceLabelCreate(labelCreateRequest: LabelCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelCreateResponse>;
|
|
3873
|
+
/**
|
|
3874
|
+
*
|
|
3875
|
+
* @param {LabelDeleteRequest} labelDeleteRequest
|
|
3876
|
+
* @param {*} [options] Override http request option.
|
|
3877
|
+
* @throws {RequiredError}
|
|
3878
|
+
*/
|
|
3879
|
+
userLabelServiceLabelDelete(labelDeleteRequest: LabelDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelDeleteResponse>;
|
|
3880
|
+
/**
|
|
3881
|
+
*
|
|
3882
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3883
|
+
* @param {*} [options] Override http request option.
|
|
3884
|
+
* @throws {RequiredError}
|
|
3885
|
+
*/
|
|
3886
|
+
userLabelServiceLabelGet(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelUpdateResponse>;
|
|
3887
|
+
/**
|
|
3888
|
+
*
|
|
3889
|
+
* @param {LabelListRequest} labelListRequest
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
*/
|
|
3893
|
+
userLabelServiceLabelList(labelListRequest: LabelListRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelListResponse>;
|
|
3894
|
+
/**
|
|
3895
|
+
*
|
|
3896
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3897
|
+
* @param {*} [options] Override http request option.
|
|
3898
|
+
* @throws {RequiredError}
|
|
3899
|
+
*/
|
|
3900
|
+
userLabelServiceLabelUpdate(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LabelUpdateResponse>;
|
|
3901
|
+
/**
|
|
3902
|
+
*
|
|
3903
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3904
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3905
|
+
* @param {Array<string>} [uidList]
|
|
3906
|
+
* @param {Array<string>} [labelIds]
|
|
3907
|
+
* @param {*} [options] Override http request option.
|
|
3908
|
+
* @throws {RequiredError}
|
|
3909
|
+
*/
|
|
3910
|
+
userLabelServiceUserLabelList(page?: number, pageSize?: number, uidList?: Array<string>, labelIds?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<UserLabelListResponse>;
|
|
3911
|
+
/**
|
|
3912
|
+
*
|
|
3913
|
+
* @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
userLabelServiceUserLabelPairChange(userLabelPairChangeRequest: UserLabelPairChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserLabelPairChangeResponse>;
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
* UserLabelServiceApi - object-oriented interface
|
|
3921
|
+
*/
|
|
3922
|
+
export declare class UserLabelServiceApi extends BaseAPI implements UserLabelServiceApiInterface {
|
|
3923
|
+
/**
|
|
3924
|
+
*
|
|
3925
|
+
* @param {LabelCreateRequest} labelCreateRequest
|
|
3926
|
+
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @throws {RequiredError}
|
|
3928
|
+
*/
|
|
3929
|
+
userLabelServiceLabelCreate(labelCreateRequest: LabelCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LabelCreateResponse, any, {}>>;
|
|
3930
|
+
/**
|
|
3931
|
+
*
|
|
3932
|
+
* @param {LabelDeleteRequest} labelDeleteRequest
|
|
3933
|
+
* @param {*} [options] Override http request option.
|
|
3934
|
+
* @throws {RequiredError}
|
|
3935
|
+
*/
|
|
3936
|
+
userLabelServiceLabelDelete(labelDeleteRequest: LabelDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LabelDeleteResponse, any, {}>>;
|
|
3937
|
+
/**
|
|
3938
|
+
*
|
|
3939
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3940
|
+
* @param {*} [options] Override http request option.
|
|
3941
|
+
* @throws {RequiredError}
|
|
3942
|
+
*/
|
|
3943
|
+
userLabelServiceLabelGet(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LabelUpdateResponse, any, {}>>;
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @param {LabelListRequest} labelListRequest
|
|
3947
|
+
* @param {*} [options] Override http request option.
|
|
3948
|
+
* @throws {RequiredError}
|
|
3949
|
+
*/
|
|
3950
|
+
userLabelServiceLabelList(labelListRequest: LabelListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LabelListResponse, any, {}>>;
|
|
3951
|
+
/**
|
|
3952
|
+
*
|
|
3953
|
+
* @param {LabelUpdateRequest} labelUpdateRequest
|
|
3954
|
+
* @param {*} [options] Override http request option.
|
|
3955
|
+
* @throws {RequiredError}
|
|
3956
|
+
*/
|
|
3957
|
+
userLabelServiceLabelUpdate(labelUpdateRequest: LabelUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LabelUpdateResponse, any, {}>>;
|
|
3958
|
+
/**
|
|
3959
|
+
*
|
|
3960
|
+
* @param {number} [page] page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\"
|
|
3961
|
+
* @param {number} [pageSize] page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
3962
|
+
* @param {Array<string>} [uidList]
|
|
3963
|
+
* @param {Array<string>} [labelIds]
|
|
3964
|
+
* @param {*} [options] Override http request option.
|
|
3965
|
+
* @throws {RequiredError}
|
|
3966
|
+
*/
|
|
3967
|
+
userLabelServiceUserLabelList(page?: number, pageSize?: number, uidList?: Array<string>, labelIds?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserLabelListResponse, any, {}>>;
|
|
3968
|
+
/**
|
|
3969
|
+
*
|
|
3970
|
+
* @param {UserLabelPairChangeRequest} userLabelPairChangeRequest
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
*/
|
|
3974
|
+
userLabelServiceUserLabelPairChange(userLabelPairChangeRequest: UserLabelPairChangeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserLabelPairChangeResponse, any, {}>>;
|
|
3975
|
+
}
|
|
3976
|
+
/**
|
|
3977
|
+
* UserModelServiceApi - axios parameter creator
|
|
3978
|
+
*/
|
|
3979
|
+
export declare const UserModelServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3980
|
+
/**
|
|
3981
|
+
*
|
|
3982
|
+
* @param {string} [currencyCode] 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\"
|
|
3983
|
+
* @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:\"before_id\"
|
|
3984
|
+
* @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:\"after_id\"
|
|
3985
|
+
* @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:\"limit\"
|
|
3986
|
+
* @param {boolean} [withPricing] optional extra info @gotags: form:\"with_pricing\"
|
|
3987
|
+
* @param {*} [options] Override http request option.
|
|
3988
|
+
* @throws {RequiredError}
|
|
3989
|
+
*/
|
|
3990
|
+
userModelServiceUserModelList: (currencyCode?: string, beforeId?: string, afterId?: string, limit?: string, withPricing?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3991
|
+
};
|
|
3992
|
+
/**
|
|
3993
|
+
* UserModelServiceApi - functional programming interface
|
|
3994
|
+
*/
|
|
3995
|
+
export declare const UserModelServiceApiFp: (configuration?: Configuration) => {
|
|
3996
|
+
/**
|
|
3997
|
+
*
|
|
3998
|
+
* @param {string} [currencyCode] 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\"
|
|
3999
|
+
* @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:\"before_id\"
|
|
4000
|
+
* @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:\"after_id\"
|
|
4001
|
+
* @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:\"limit\"
|
|
4002
|
+
* @param {boolean} [withPricing] optional extra info @gotags: form:\"with_pricing\"
|
|
4003
|
+
* @param {*} [options] Override http request option.
|
|
4004
|
+
* @throws {RequiredError}
|
|
4005
|
+
*/
|
|
4006
|
+
userModelServiceUserModelList(currencyCode?: string, beforeId?: string, afterId?: string, limit?: string, withPricing?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModelListResponse>>;
|
|
4007
|
+
};
|
|
4008
|
+
/**
|
|
4009
|
+
* UserModelServiceApi - factory interface
|
|
4010
|
+
*/
|
|
4011
|
+
export declare const UserModelServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4012
|
+
/**
|
|
4013
|
+
*
|
|
4014
|
+
* @param {string} [currencyCode] 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\"
|
|
4015
|
+
* @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:\"before_id\"
|
|
4016
|
+
* @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:\"after_id\"
|
|
4017
|
+
* @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:\"limit\"
|
|
4018
|
+
* @param {boolean} [withPricing] optional extra info @gotags: form:\"with_pricing\"
|
|
4019
|
+
* @param {*} [options] Override http request option.
|
|
4020
|
+
* @throws {RequiredError}
|
|
4021
|
+
*/
|
|
4022
|
+
userModelServiceUserModelList(currencyCode?: string, beforeId?: string, afterId?: string, limit?: string, withPricing?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<UserModelListResponse>;
|
|
4023
|
+
};
|
|
4024
|
+
/**
|
|
4025
|
+
* UserModelServiceApi - interface
|
|
4026
|
+
*/
|
|
4027
|
+
export interface UserModelServiceApiInterface {
|
|
4028
|
+
/**
|
|
4029
|
+
*
|
|
4030
|
+
* @param {string} [currencyCode] 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\"
|
|
4031
|
+
* @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:\"before_id\"
|
|
4032
|
+
* @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:\"after_id\"
|
|
4033
|
+
* @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:\"limit\"
|
|
4034
|
+
* @param {boolean} [withPricing] optional extra info @gotags: form:\"with_pricing\"
|
|
4035
|
+
* @param {*} [options] Override http request option.
|
|
4036
|
+
* @throws {RequiredError}
|
|
4037
|
+
*/
|
|
4038
|
+
userModelServiceUserModelList(currencyCode?: string, beforeId?: string, afterId?: string, limit?: string, withPricing?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<UserModelListResponse>;
|
|
4039
|
+
}
|
|
4040
|
+
/**
|
|
4041
|
+
* UserModelServiceApi - object-oriented interface
|
|
4042
|
+
*/
|
|
4043
|
+
export declare class UserModelServiceApi extends BaseAPI implements UserModelServiceApiInterface {
|
|
4044
|
+
/**
|
|
4045
|
+
*
|
|
4046
|
+
* @param {string} [currencyCode] 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\"
|
|
4047
|
+
* @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:\"before_id\"
|
|
4048
|
+
* @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:\"after_id\"
|
|
4049
|
+
* @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:\"limit\"
|
|
4050
|
+
* @param {boolean} [withPricing] optional extra info @gotags: form:\"with_pricing\"
|
|
4051
|
+
* @param {*} [options] Override http request option.
|
|
4052
|
+
* @throws {RequiredError}
|
|
4053
|
+
*/
|
|
4054
|
+
userModelServiceUserModelList(currencyCode?: string, beforeId?: string, afterId?: string, limit?: string, withPricing?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserModelListResponse, any, {}>>;
|
|
4055
|
+
}
|
|
4056
|
+
/**
|
|
4057
|
+
* UserPayServiceApi - axios parameter creator
|
|
4058
|
+
*/
|
|
4059
|
+
export declare const UserPayServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4060
|
+
/**
|
|
4061
|
+
*
|
|
4062
|
+
* @param {string} [currencyCode]
|
|
4063
|
+
* @param {number} [chargeAmount]
|
|
4064
|
+
* @param {*} [options] Override http request option.
|
|
4065
|
+
* @throws {RequiredError}
|
|
4066
|
+
*/
|
|
4067
|
+
userPayServiceUserPayStripeCheckout: (currencyCode?: string, chargeAmount?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4068
|
+
};
|
|
4069
|
+
/**
|
|
4070
|
+
* UserPayServiceApi - functional programming interface
|
|
4071
|
+
*/
|
|
4072
|
+
export declare const UserPayServiceApiFp: (configuration?: Configuration) => {
|
|
4073
|
+
/**
|
|
4074
|
+
*
|
|
4075
|
+
* @param {string} [currencyCode]
|
|
4076
|
+
* @param {number} [chargeAmount]
|
|
4077
|
+
* @param {*} [options] Override http request option.
|
|
4078
|
+
* @throws {RequiredError}
|
|
4079
|
+
*/
|
|
4080
|
+
userPayServiceUserPayStripeCheckout(currencyCode?: string, chargeAmount?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayStripeCheckoutResponse>>;
|
|
4081
|
+
};
|
|
4082
|
+
/**
|
|
4083
|
+
* UserPayServiceApi - factory interface
|
|
4084
|
+
*/
|
|
4085
|
+
export declare const UserPayServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4086
|
+
/**
|
|
4087
|
+
*
|
|
4088
|
+
* @param {string} [currencyCode]
|
|
4089
|
+
* @param {number} [chargeAmount]
|
|
4090
|
+
* @param {*} [options] Override http request option.
|
|
4091
|
+
* @throws {RequiredError}
|
|
4092
|
+
*/
|
|
4093
|
+
userPayServiceUserPayStripeCheckout(currencyCode?: string, chargeAmount?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4094
|
+
};
|
|
4095
|
+
/**
|
|
4096
|
+
* UserPayServiceApi - interface
|
|
4097
|
+
*/
|
|
4098
|
+
export interface UserPayServiceApiInterface {
|
|
4099
|
+
/**
|
|
4100
|
+
*
|
|
4101
|
+
* @param {string} [currencyCode]
|
|
4102
|
+
* @param {number} [chargeAmount]
|
|
4103
|
+
* @param {*} [options] Override http request option.
|
|
4104
|
+
* @throws {RequiredError}
|
|
4105
|
+
*/
|
|
4106
|
+
userPayServiceUserPayStripeCheckout(currencyCode?: string, chargeAmount?: number, options?: RawAxiosRequestConfig): AxiosPromise<UserPayStripeCheckoutResponse>;
|
|
4107
|
+
}
|
|
4108
|
+
/**
|
|
4109
|
+
* UserPayServiceApi - object-oriented interface
|
|
4110
|
+
*/
|
|
4111
|
+
export declare class UserPayServiceApi extends BaseAPI implements UserPayServiceApiInterface {
|
|
4112
|
+
/**
|
|
4113
|
+
*
|
|
4114
|
+
* @param {string} [currencyCode]
|
|
4115
|
+
* @param {number} [chargeAmount]
|
|
4116
|
+
* @param {*} [options] Override http request option.
|
|
4117
|
+
* @throws {RequiredError}
|
|
4118
|
+
*/
|
|
4119
|
+
userPayServiceUserPayStripeCheckout(currencyCode?: string, chargeAmount?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayStripeCheckoutResponse, any, {}>>;
|
|
4120
|
+
}
|
|
4121
|
+
/**
|
|
4122
|
+
* UserPoralServiceApi - axios parameter creator
|
|
4123
|
+
*/
|
|
4124
|
+
export declare const UserPoralServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4125
|
+
/**
|
|
4126
|
+
*
|
|
4127
|
+
* @param {*} [options] Override http request option.
|
|
4128
|
+
* @throws {RequiredError}
|
|
4129
|
+
*/
|
|
4130
|
+
userPoralServiceUserMeInfo: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4131
|
+
};
|
|
4132
|
+
/**
|
|
4133
|
+
* UserPoralServiceApi - functional programming interface
|
|
4134
|
+
*/
|
|
4135
|
+
export declare const UserPoralServiceApiFp: (configuration?: Configuration) => {
|
|
4136
|
+
/**
|
|
4137
|
+
*
|
|
4138
|
+
* @param {*} [options] Override http request option.
|
|
4139
|
+
* @throws {RequiredError}
|
|
4140
|
+
*/
|
|
4141
|
+
userPoralServiceUserMeInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeInfoResponse>>;
|
|
4142
|
+
};
|
|
4143
|
+
/**
|
|
4144
|
+
* UserPoralServiceApi - factory interface
|
|
4145
|
+
*/
|
|
4146
|
+
export declare const UserPoralServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4147
|
+
/**
|
|
4148
|
+
*
|
|
4149
|
+
* @param {*} [options] Override http request option.
|
|
4150
|
+
* @throws {RequiredError}
|
|
4151
|
+
*/
|
|
4152
|
+
userPoralServiceUserMeInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserMeInfoResponse>;
|
|
4153
|
+
};
|
|
4154
|
+
/**
|
|
4155
|
+
* UserPoralServiceApi - interface
|
|
4156
|
+
*/
|
|
4157
|
+
export interface UserPoralServiceApiInterface {
|
|
4158
|
+
/**
|
|
4159
|
+
*
|
|
4160
|
+
* @param {*} [options] Override http request option.
|
|
4161
|
+
* @throws {RequiredError}
|
|
4162
|
+
*/
|
|
4163
|
+
userPoralServiceUserMeInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserMeInfoResponse>;
|
|
4164
|
+
}
|
|
4165
|
+
/**
|
|
4166
|
+
* UserPoralServiceApi - object-oriented interface
|
|
4167
|
+
*/
|
|
4168
|
+
export declare class UserPoralServiceApi extends BaseAPI implements UserPoralServiceApiInterface {
|
|
4169
|
+
/**
|
|
4170
|
+
*
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
userPoralServiceUserMeInfo(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserMeInfoResponse, any, {}>>;
|
|
4175
|
+
}
|