tencentcloud-sdk-nodejs 4.1.263 → 4.1.264
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/es/common/sdk_version.js +1 -1
- package/es/services/alb/index.js +4 -0
- package/es/services/alb/v20251030/alb_client.js +150 -0
- package/es/services/alb/v20251030/alb_models.js +1 -0
- package/es/services/alb/v20251030/index.js +6 -0
- package/es/services/chc/v20230418/chc_client.js +9 -0
- package/es/services/clb/v20180317/clb_client.js +148 -16
- package/es/services/csip/v20221121/csip_client.js +155 -41
- package/es/services/cynosdb/v20190107/cynosdb_client.js +5 -2
- package/es/services/index.js +1 -0
- package/es/services/tione/v20211111/tione_client.js +3 -0
- package/es/services/tmt/v20180321/tmt_client.js +0 -3
- package/es/services/tokenhub/v20260322/tokenhub_client.js +14 -2
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ai3d/v20250513/ai3d_models.d.ts +8 -0
- package/tencentcloud/services/alb/index.d.ts +6 -0
- package/tencentcloud/services/alb/index.js +7 -0
- package/tencentcloud/services/alb/v20251030/alb_client.d.ts +222 -0
- package/tencentcloud/services/alb/v20251030/alb_client.js +339 -0
- package/tencentcloud/services/alb/v20251030/alb_models.d.ts +3772 -0
- package/tencentcloud/services/alb/v20251030/alb_models.js +18 -0
- package/tencentcloud/services/alb/v20251030/index.d.ts +6 -0
- package/tencentcloud/services/alb/v20251030/index.js +10 -0
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +27 -32
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +4 -0
- package/tencentcloud/services/chc/v20230418/chc_client.d.ts +13 -1
- package/tencentcloud/services/chc/v20230418/chc_client.js +18 -0
- package/tencentcloud/services/chc/v20230418/chc_models.d.ts +191 -76
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +212 -21
- package/tencentcloud/services/clb/v20180317/clb_client.js +307 -28
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +6547 -4279
- package/tencentcloud/services/csip/v20221121/csip_client.d.ts +195 -43
- package/tencentcloud/services/csip/v20221121/csip_client.js +291 -63
- package/tencentcloud/services/csip/v20221121/csip_models.d.ts +2419 -796
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +58 -67
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +7 -3
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +9 -3
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +99 -16
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +44 -32
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +41 -43
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +41 -41
- package/tencentcloud/services/ga2/v20250115/ga2_models.d.ts +13 -9
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +8 -6
- package/tencentcloud/services/ioa/v20220601/ioa_models.d.ts +11 -75
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +34 -0
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +4 -0
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +0 -4
- package/tencentcloud/services/tione/v20211111/tione_client.d.ts +5 -1
- package/tencentcloud/services/tione/v20211111/tione_client.js +6 -0
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +168 -8
- package/tencentcloud/services/tmt/v20180321/tmt_client.d.ts +1 -6
- package/tencentcloud/services/tmt/v20180321/tmt_client.js +0 -7
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +0 -58
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +25 -5
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.js +33 -5
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +1003 -951
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DescribeTokenPlanList返回参数结构体
|
|
3
|
-
*/
|
|
4
|
-
export interface DescribeTokenPlanListResponse {
|
|
5
|
-
/**
|
|
6
|
-
* 套餐列表。
|
|
7
|
-
*/
|
|
8
|
-
TokenPlanSet?: Array<TokenPlanListItem>;
|
|
9
|
-
/**
|
|
10
|
-
* 套餐总数量。
|
|
11
|
-
*/
|
|
12
|
-
TotalCount?: number;
|
|
13
|
-
/**
|
|
14
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15
|
-
*/
|
|
16
|
-
RequestId?: string;
|
|
17
|
-
}
|
|
18
1
|
/**
|
|
19
2
|
* Token Plan API Key 列表项
|
|
20
3
|
*/
|
|
@@ -106,100 +89,110 @@ export interface BindingItem {
|
|
|
106
89
|
Status?: string;
|
|
107
90
|
}
|
|
108
91
|
/**
|
|
109
|
-
*
|
|
92
|
+
* 批量创建成功项
|
|
110
93
|
*/
|
|
111
|
-
export interface
|
|
94
|
+
export interface CreateApiKeysResultItem {
|
|
112
95
|
/**
|
|
113
96
|
* APIKey ID。
|
|
114
97
|
*/
|
|
115
98
|
ApiKeyId?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* DescribeTokenPlanApiKeyList返回参数结构体
|
|
102
|
+
*/
|
|
103
|
+
export interface DescribeTokenPlanApiKeyListResponse {
|
|
116
104
|
/**
|
|
117
|
-
*
|
|
105
|
+
* API Key 列表。
|
|
118
106
|
*/
|
|
119
|
-
|
|
107
|
+
ApiKeySet?: Array<TokenPlanApiKeyListItem>;
|
|
108
|
+
/**
|
|
109
|
+
* API Key总数量。
|
|
110
|
+
*/
|
|
111
|
+
TotalCount?: number;
|
|
120
112
|
/**
|
|
121
113
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
122
114
|
*/
|
|
123
115
|
RequestId?: string;
|
|
124
116
|
}
|
|
125
117
|
/**
|
|
126
|
-
*
|
|
118
|
+
* DeleteGlossary返回参数结构体
|
|
127
119
|
*/
|
|
128
|
-
export interface
|
|
129
|
-
/**
|
|
130
|
-
* 计费类型。取值:Uniform(统一计费)、Tiered(阶梯计费)。
|
|
131
|
-
*/
|
|
132
|
-
Type?: string;
|
|
133
|
-
/**
|
|
134
|
-
* 计费名称,阶梯计费时表示区间标识,统一计费为空。
|
|
135
|
-
*/
|
|
136
|
-
Name?: string;
|
|
120
|
+
export interface DeleteGlossaryResponse {
|
|
137
121
|
/**
|
|
138
|
-
*
|
|
122
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
139
123
|
*/
|
|
140
|
-
|
|
124
|
+
RequestId?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* DeleteGlossaryEntries返回参数结构体
|
|
128
|
+
*/
|
|
129
|
+
export interface DeleteGlossaryEntriesResponse {
|
|
141
130
|
/**
|
|
142
|
-
*
|
|
131
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
143
132
|
*/
|
|
144
|
-
|
|
133
|
+
RequestId?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* RenewTokenPlanTeamOrder返回参数结构体
|
|
137
|
+
*/
|
|
138
|
+
export interface RenewTokenPlanTeamOrderResponse {
|
|
145
139
|
/**
|
|
146
|
-
*
|
|
140
|
+
* 腾讯云订单 ID。用于关联一次续费操作下的所有子订单。
|
|
147
141
|
*/
|
|
148
|
-
|
|
142
|
+
BigOrderId?: string;
|
|
149
143
|
/**
|
|
150
|
-
*
|
|
144
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
151
145
|
*/
|
|
152
|
-
|
|
146
|
+
RequestId?: string;
|
|
153
147
|
}
|
|
154
148
|
/**
|
|
155
|
-
*
|
|
149
|
+
* 模型图标信息
|
|
156
150
|
*/
|
|
157
|
-
export interface
|
|
151
|
+
export interface ModelImage {
|
|
158
152
|
/**
|
|
159
|
-
*
|
|
153
|
+
* 图标 URL。
|
|
160
154
|
*/
|
|
161
|
-
|
|
155
|
+
Url?: string;
|
|
162
156
|
}
|
|
163
157
|
/**
|
|
164
|
-
*
|
|
158
|
+
* 用量时间周期内的时序点列表(按 metric key 索引)。为 JSON 数组的字符串形式,数组长度与响应 Timestamps 一致,无数据点处为 null。具体包含哪些 key 由响应 MetricKeys 决定。
|
|
165
159
|
*/
|
|
166
|
-
export interface
|
|
160
|
+
export interface UsageSeries {
|
|
167
161
|
/**
|
|
168
|
-
*
|
|
162
|
+
* <p>[tokens 族]总 token 数用量时间周期内的 JSON 字符串形式,如 <code>"[12,null,15]"</code>。</p>
|
|
169
163
|
*/
|
|
170
|
-
|
|
164
|
+
TotalToken?: string;
|
|
171
165
|
/**
|
|
172
|
-
*
|
|
166
|
+
* <p>[tokens 族]输入 token 数用量时间周期内的 JSON 字符串形式,如 <code>"[7,null,9]"</code>。</p>
|
|
173
167
|
*/
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* ModifyTokenPlanApiKeySecret返回参数结构体
|
|
178
|
-
*/
|
|
179
|
-
export interface ModifyTokenPlanApiKeySecretResponse {
|
|
168
|
+
InputTotalToken?: string;
|
|
180
169
|
/**
|
|
181
|
-
*
|
|
170
|
+
* <p>[tokens 族]输出 token 数用量时间周期内的 JSON 字符串形式,如 <code>"[5,null,6]"</code>。</p>
|
|
182
171
|
*/
|
|
183
|
-
|
|
172
|
+
OutputTotalToken?: string;
|
|
184
173
|
/**
|
|
185
|
-
*
|
|
174
|
+
* <p>[tokens 族]读缓存 token 数用量时间周期内的 JSON 字符串形式,如<code>"[5,null,6]"</code>。</p>
|
|
186
175
|
*/
|
|
187
|
-
|
|
176
|
+
CacheTotalToken?: string;
|
|
188
177
|
/**
|
|
189
|
-
*
|
|
178
|
+
* <p>[search 族] 搜索请求数用量时间周期内的 JSON 字符串形式,如<code>"[5,null,6]"</code>。</p>
|
|
190
179
|
*/
|
|
191
|
-
|
|
180
|
+
SearchRequestCount?: string;
|
|
181
|
+
/**
|
|
182
|
+
* <p>[search 族] 搜索引擎调用次数用量时间周期内的 JSON 字符串形式,如<code>"[5,null,6]"</code>。</p>
|
|
183
|
+
*/
|
|
184
|
+
SearchCount?: string;
|
|
192
185
|
}
|
|
193
186
|
/**
|
|
194
|
-
*
|
|
187
|
+
* DescribeTokenPlanList返回参数结构体
|
|
195
188
|
*/
|
|
196
|
-
export interface
|
|
189
|
+
export interface DescribeTokenPlanListResponse {
|
|
197
190
|
/**
|
|
198
|
-
*
|
|
191
|
+
* 套餐列表。
|
|
199
192
|
*/
|
|
200
|
-
|
|
193
|
+
TokenPlanSet?: Array<TokenPlanListItem>;
|
|
201
194
|
/**
|
|
202
|
-
*
|
|
195
|
+
* 套餐总数量。
|
|
203
196
|
*/
|
|
204
197
|
TotalCount?: number;
|
|
205
198
|
/**
|
|
@@ -208,199 +201,214 @@ export interface DescribeTokenPlanApiKeyListResponse {
|
|
|
208
201
|
RequestId?: string;
|
|
209
202
|
}
|
|
210
203
|
/**
|
|
211
|
-
*
|
|
204
|
+
* DeleteGlossaryEntries请求参数结构体
|
|
212
205
|
*/
|
|
213
|
-
export interface
|
|
206
|
+
export interface DeleteGlossaryEntriesRequest {
|
|
214
207
|
/**
|
|
215
|
-
*
|
|
208
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
216
209
|
*/
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* DescribeTokenPlan请求参数结构体
|
|
221
|
-
*/
|
|
222
|
-
export interface DescribeTokenPlanRequest {
|
|
210
|
+
GlossaryId: string;
|
|
223
211
|
/**
|
|
224
|
-
*
|
|
212
|
+
* 待删除的术语条目列表。单次最多 200 个。
|
|
225
213
|
*/
|
|
226
|
-
|
|
214
|
+
Entries: Array<DeleteGlossaryEntryInput>;
|
|
227
215
|
}
|
|
228
216
|
/**
|
|
229
|
-
*
|
|
217
|
+
* CreateGlossaryEntries返回参数结构体
|
|
230
218
|
*/
|
|
231
|
-
export interface
|
|
232
|
-
/**
|
|
233
|
-
* 术语条目 ID。
|
|
234
|
-
*/
|
|
235
|
-
EntryId?: string;
|
|
236
|
-
/**
|
|
237
|
-
* 源语言术语。
|
|
238
|
-
*/
|
|
239
|
-
SourceTerm?: string;
|
|
240
|
-
/**
|
|
241
|
-
* 目标语言术语。
|
|
242
|
-
*/
|
|
243
|
-
TargetTerm?: string;
|
|
219
|
+
export interface CreateGlossaryEntriesResponse {
|
|
244
220
|
/**
|
|
245
|
-
*
|
|
221
|
+
* 创建成功的术语条目列表。
|
|
246
222
|
*/
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* DeleteGlossary返回参数结构体
|
|
251
|
-
*/
|
|
252
|
-
export interface DeleteGlossaryResponse {
|
|
223
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
253
224
|
/**
|
|
254
225
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
255
226
|
*/
|
|
256
227
|
RequestId?: string;
|
|
257
228
|
}
|
|
258
229
|
/**
|
|
259
|
-
*
|
|
230
|
+
* CreateTokenPlanApiKeys返回参数结构体
|
|
260
231
|
*/
|
|
261
|
-
export interface
|
|
232
|
+
export interface CreateTokenPlanApiKeysResponse {
|
|
262
233
|
/**
|
|
263
|
-
*
|
|
234
|
+
* 成功创建的项列表。
|
|
264
235
|
*/
|
|
265
|
-
|
|
236
|
+
Items?: Array<CreateApiKeysResultItem>;
|
|
266
237
|
/**
|
|
267
|
-
*
|
|
238
|
+
* 创建失败的项列表。
|
|
268
239
|
*/
|
|
269
|
-
|
|
240
|
+
FailedItems?: Array<BatchCreateFailedItem>;
|
|
270
241
|
/**
|
|
271
242
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
272
243
|
*/
|
|
273
244
|
RequestId?: string;
|
|
274
245
|
}
|
|
275
246
|
/**
|
|
276
|
-
*
|
|
247
|
+
* 模型访问信息
|
|
277
248
|
*/
|
|
278
|
-
export interface
|
|
249
|
+
export interface ModelAccessInfo {
|
|
279
250
|
/**
|
|
280
|
-
*
|
|
251
|
+
* 各站点的地域可用性列表。为空时表示未配置地域信息,模型不可用。
|
|
281
252
|
*/
|
|
282
|
-
|
|
253
|
+
ModelSiteRegions?: Array<ModelSiteRegion>;
|
|
283
254
|
}
|
|
284
255
|
/**
|
|
285
|
-
*
|
|
256
|
+
* DescribeModelList返回参数结构体
|
|
286
257
|
*/
|
|
287
|
-
export interface
|
|
258
|
+
export interface DescribeModelListResponse {
|
|
288
259
|
/**
|
|
289
|
-
*
|
|
290
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
291
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
260
|
+
* <p>模型列表。</p>
|
|
292
261
|
*/
|
|
293
|
-
|
|
262
|
+
ModelSet?: Array<Model>;
|
|
294
263
|
/**
|
|
295
|
-
*
|
|
296
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
297
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
264
|
+
* <p>符合条件的模型总数。</p>
|
|
298
265
|
*/
|
|
299
|
-
|
|
266
|
+
TotalCount?: number;
|
|
300
267
|
/**
|
|
301
|
-
*
|
|
302
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
303
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
268
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
304
269
|
*/
|
|
305
|
-
|
|
270
|
+
RequestId?: string;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* CreateTokenPlanTeamOrderAndBuy请求参数结构体
|
|
274
|
+
*/
|
|
275
|
+
export interface CreateTokenPlanTeamOrderAndBuyRequest {
|
|
306
276
|
/**
|
|
307
|
-
*
|
|
308
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
309
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
277
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)。
|
|
310
278
|
*/
|
|
311
|
-
|
|
279
|
+
ProductType: string;
|
|
312
280
|
/**
|
|
313
|
-
*
|
|
314
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
315
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
281
|
+
* 套餐名称。只能包含中文、字母、数字、下划线、连字符,以中文或者字母开头,以中文或字母或数字结尾,2~50个字符
|
|
316
282
|
*/
|
|
317
|
-
|
|
283
|
+
TeamName: string;
|
|
318
284
|
/**
|
|
319
|
-
*
|
|
320
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
321
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
285
|
+
* 购买时长。单位:月。必须大于 0。
|
|
322
286
|
*/
|
|
323
|
-
|
|
287
|
+
TimeSpan: number;
|
|
324
288
|
/**
|
|
325
|
-
*
|
|
289
|
+
* 购买的套餐规格。套餐类型为专业套餐(enterprise),单位取值为积分;轻享套餐(enterprise-auto),单位取值为 tokens。
|
|
326
290
|
*/
|
|
327
|
-
|
|
291
|
+
CreditOrToken: number;
|
|
292
|
+
/**
|
|
293
|
+
* 是否开启自动续费。默认不开启。
|
|
294
|
+
*/
|
|
295
|
+
EnableAutoRenew?: boolean;
|
|
328
296
|
}
|
|
329
297
|
/**
|
|
330
|
-
*
|
|
298
|
+
* DeleteTokenPlanApiKey返回参数结构体
|
|
331
299
|
*/
|
|
332
|
-
export interface
|
|
300
|
+
export interface DeleteTokenPlanApiKeyResponse {
|
|
333
301
|
/**
|
|
334
302
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
335
303
|
*/
|
|
336
304
|
RequestId?: string;
|
|
337
305
|
}
|
|
338
306
|
/**
|
|
339
|
-
*
|
|
307
|
+
* 术语条目详情
|
|
340
308
|
*/
|
|
341
|
-
export interface
|
|
309
|
+
export interface GlossaryEntryItem {
|
|
342
310
|
/**
|
|
343
|
-
*
|
|
311
|
+
* 术语条目 ID。
|
|
344
312
|
*/
|
|
345
|
-
|
|
313
|
+
EntryId?: string;
|
|
346
314
|
/**
|
|
347
|
-
*
|
|
315
|
+
* 源语言术语。
|
|
348
316
|
*/
|
|
349
|
-
|
|
317
|
+
SourceTerm?: string;
|
|
350
318
|
/**
|
|
351
|
-
*
|
|
319
|
+
* 目标语言术语。
|
|
352
320
|
*/
|
|
353
|
-
|
|
321
|
+
TargetTerm?: string;
|
|
322
|
+
/**
|
|
323
|
+
* 更新时间。Unix 时间戳(毫秒)。
|
|
324
|
+
*/
|
|
325
|
+
UpdatedAt?: number;
|
|
354
326
|
}
|
|
355
327
|
/**
|
|
356
|
-
*
|
|
328
|
+
* ModifyGlossaryEntries返回参数结构体
|
|
357
329
|
*/
|
|
358
|
-
export interface
|
|
330
|
+
export interface ModifyGlossaryEntriesResponse {
|
|
359
331
|
/**
|
|
360
|
-
*
|
|
332
|
+
* 修改后的术语条目列表。
|
|
361
333
|
*/
|
|
362
|
-
|
|
334
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
363
335
|
/**
|
|
364
336
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
365
337
|
*/
|
|
366
338
|
RequestId?: string;
|
|
367
339
|
}
|
|
368
340
|
/**
|
|
369
|
-
*
|
|
341
|
+
* DescribeTokenPlan返回参数结构体
|
|
370
342
|
*/
|
|
371
|
-
export interface
|
|
343
|
+
export interface DescribeTokenPlanResponse {
|
|
372
344
|
/**
|
|
373
|
-
*
|
|
345
|
+
* 套餐 ID。
|
|
374
346
|
*/
|
|
375
|
-
|
|
347
|
+
TeamId?: string;
|
|
376
348
|
/**
|
|
377
|
-
*
|
|
349
|
+
* 套餐名称。
|
|
378
350
|
*/
|
|
379
|
-
|
|
351
|
+
Name?: string;
|
|
380
352
|
/**
|
|
381
|
-
*
|
|
382
|
-
endpoint / model 维度等于 Key。
|
|
353
|
+
* 主账号 APP ID。
|
|
383
354
|
*/
|
|
384
|
-
|
|
355
|
+
AppId?: string;
|
|
385
356
|
/**
|
|
386
|
-
*
|
|
387
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
357
|
+
* 主账号 UIN。
|
|
388
358
|
*/
|
|
389
|
-
|
|
359
|
+
Uin?: string;
|
|
390
360
|
/**
|
|
391
|
-
*
|
|
392
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
361
|
+
* 状态。取值:enable(启用)、disable(停用)。
|
|
393
362
|
*/
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* 模型图标信息
|
|
398
|
-
*/
|
|
399
|
-
export interface ModelImage {
|
|
363
|
+
Status?: string;
|
|
400
364
|
/**
|
|
401
|
-
*
|
|
365
|
+
* 关停原因。取值:取值:NORMAL(套餐正常)、ISOLATED(隔离/欠费)、FROZEN(冻结)、EXHAUSTED(额度耗尽)、DESTROYED(已销毁)。
|
|
402
366
|
*/
|
|
403
|
-
|
|
367
|
+
StopReason?: string;
|
|
368
|
+
/**
|
|
369
|
+
* 可创建APIKey 上限。
|
|
370
|
+
*/
|
|
371
|
+
ApiKeyMax?: number;
|
|
372
|
+
/**
|
|
373
|
+
* 云计费预付费资源包 ID。
|
|
374
|
+
*/
|
|
375
|
+
PrepayResourceID?: string;
|
|
376
|
+
/**
|
|
377
|
+
* 创建人,子账号创建的套餐将展示子账号UIN。
|
|
378
|
+
*/
|
|
379
|
+
Creator?: string;
|
|
380
|
+
/**
|
|
381
|
+
* 创建时间。
|
|
382
|
+
*/
|
|
383
|
+
CreatedAt?: string;
|
|
384
|
+
/**
|
|
385
|
+
* 更新时间。
|
|
386
|
+
*/
|
|
387
|
+
UpdatedAt?: string;
|
|
388
|
+
/**
|
|
389
|
+
* 套餐包基本信息
|
|
390
|
+
*/
|
|
391
|
+
PackageInfo?: TokenPlanPackageInfo;
|
|
392
|
+
/**
|
|
393
|
+
* 自动续费标识。取值:0(手动续费)、1(自动续费)、2(明确不自动续费)。未绑定预付费资源时不返回。
|
|
394
|
+
*/
|
|
395
|
+
AutoRenewFlag?: number;
|
|
396
|
+
/**
|
|
397
|
+
* 当前已创建的 API Key 数量
|
|
398
|
+
*/
|
|
399
|
+
ApiKeyCount?: number;
|
|
400
|
+
/**
|
|
401
|
+
* 当前周期 Token 用量明细
|
|
402
|
+
*/
|
|
403
|
+
TokenSummary?: TokenSummary;
|
|
404
|
+
/**
|
|
405
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
406
|
+
*/
|
|
407
|
+
ProductType?: string;
|
|
408
|
+
/**
|
|
409
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
410
|
+
*/
|
|
411
|
+
RequestId?: string;
|
|
404
412
|
}
|
|
405
413
|
/**
|
|
406
414
|
* DescribeModelList请求参数结构体
|
|
@@ -432,88 +440,115 @@ export interface DescribeModelListRequest {
|
|
|
432
440
|
Offset?: number;
|
|
433
441
|
}
|
|
434
442
|
/**
|
|
435
|
-
*
|
|
443
|
+
* DescribeTokenPlanApiKeySecret返回参数结构体
|
|
436
444
|
*/
|
|
437
|
-
export interface
|
|
445
|
+
export interface DescribeTokenPlanApiKeySecretResponse {
|
|
438
446
|
/**
|
|
439
|
-
*
|
|
447
|
+
* APIKey ID。
|
|
440
448
|
*/
|
|
441
|
-
|
|
449
|
+
ApiKeyId?: string;
|
|
442
450
|
/**
|
|
443
|
-
*
|
|
451
|
+
* APIKey 密钥值(明文)。请妥善保管。
|
|
444
452
|
*/
|
|
445
|
-
|
|
453
|
+
ApiKey?: string;
|
|
446
454
|
/**
|
|
447
|
-
*
|
|
455
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
448
456
|
*/
|
|
449
|
-
|
|
457
|
+
RequestId?: string;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* 新建术语条目项
|
|
461
|
+
*/
|
|
462
|
+
export interface GlossaryEntryInput {
|
|
450
463
|
/**
|
|
451
|
-
*
|
|
464
|
+
* 源语言术语。最大 1000 字符。
|
|
452
465
|
*/
|
|
453
|
-
|
|
466
|
+
SourceTerm: string;
|
|
454
467
|
/**
|
|
455
|
-
*
|
|
468
|
+
* 目标语言术语。最大 1000 字符。
|
|
456
469
|
*/
|
|
457
|
-
|
|
470
|
+
TargetTerm: string;
|
|
458
471
|
}
|
|
459
472
|
/**
|
|
460
|
-
*
|
|
473
|
+
* ModifyTokenPlanApiKeySecret返回参数结构体
|
|
461
474
|
*/
|
|
462
|
-
export interface
|
|
475
|
+
export interface ModifyTokenPlanApiKeySecretResponse {
|
|
463
476
|
/**
|
|
464
|
-
*
|
|
477
|
+
* API Key ID。
|
|
465
478
|
*/
|
|
466
|
-
|
|
479
|
+
ApiKeyId?: string;
|
|
467
480
|
/**
|
|
468
|
-
*
|
|
481
|
+
* 重置后的密钥版本号。
|
|
469
482
|
*/
|
|
470
|
-
|
|
483
|
+
KeyVersion?: number;
|
|
471
484
|
/**
|
|
472
|
-
*
|
|
485
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
473
486
|
*/
|
|
474
|
-
|
|
487
|
+
RequestId?: string;
|
|
475
488
|
}
|
|
476
489
|
/**
|
|
477
|
-
*
|
|
490
|
+
* 删除术语条目项
|
|
478
491
|
*/
|
|
479
|
-
export interface
|
|
492
|
+
export interface DeleteGlossaryEntryInput {
|
|
480
493
|
/**
|
|
481
|
-
*
|
|
494
|
+
* 术语条目 ID。可通过 DescribeGlossaryEntries 接口获取。
|
|
482
495
|
*/
|
|
483
|
-
|
|
496
|
+
EntryId: string;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Token 限额信息
|
|
500
|
+
*/
|
|
501
|
+
export interface QuotaInfo {
|
|
484
502
|
/**
|
|
485
|
-
*
|
|
503
|
+
* 限额包 ID。
|
|
486
504
|
*/
|
|
487
|
-
|
|
505
|
+
PkgId?: string;
|
|
488
506
|
/**
|
|
489
|
-
*
|
|
507
|
+
* 限额包状态。取值:1(正常)、3(已耗尽)、4(已销毁)。
|
|
490
508
|
*/
|
|
491
|
-
|
|
509
|
+
Status?: number;
|
|
492
510
|
/**
|
|
493
|
-
*
|
|
511
|
+
* 限额周期。取值:d(按日)、m(按月)、lifetime(总额度,不重置)。
|
|
494
512
|
*/
|
|
495
|
-
|
|
513
|
+
CycleUnit?: string;
|
|
514
|
+
/**
|
|
515
|
+
* 维度当期限额总量(Token 数)。使用字符串避免大数精度丢失。
|
|
516
|
+
*/
|
|
517
|
+
CycleCredits?: string;
|
|
518
|
+
/**
|
|
519
|
+
* 维度当期已使用量(Token 数)。使用字符串避免大数精度丢失。
|
|
520
|
+
*/
|
|
521
|
+
CycleUsed?: string;
|
|
522
|
+
/**
|
|
523
|
+
* 限额生效起始时间。
|
|
524
|
+
*/
|
|
525
|
+
StartTime?: string;
|
|
526
|
+
/**
|
|
527
|
+
* 限额过期时间。
|
|
528
|
+
*/
|
|
529
|
+
ExpireTime?: string;
|
|
496
530
|
}
|
|
497
531
|
/**
|
|
498
|
-
*
|
|
532
|
+
* DescribeApiKeyList返回参数结构体
|
|
499
533
|
*/
|
|
500
|
-
export interface
|
|
501
|
-
/**
|
|
502
|
-
* 术语条目列表。
|
|
503
|
-
*/
|
|
504
|
-
Entries?: Array<GlossaryEntryItem>;
|
|
534
|
+
export interface DescribeApiKeyListResponse {
|
|
505
535
|
/**
|
|
506
|
-
*
|
|
536
|
+
* API 密钥列表。
|
|
507
537
|
*/
|
|
508
|
-
|
|
538
|
+
ApiKeySet?: Array<ApiKeyDetail>;
|
|
509
539
|
/**
|
|
510
|
-
*
|
|
540
|
+
* 符合条件的 API 密钥总数。
|
|
511
541
|
*/
|
|
512
|
-
|
|
542
|
+
TotalCount?: number;
|
|
513
543
|
/**
|
|
514
|
-
*
|
|
544
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
515
545
|
*/
|
|
516
|
-
|
|
546
|
+
RequestId?: string;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* ModifyApiKeyInfo返回参数结构体
|
|
550
|
+
*/
|
|
551
|
+
export interface ModifyApiKeyInfoResponse {
|
|
517
552
|
/**
|
|
518
553
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
519
554
|
*/
|
|
@@ -546,607 +581,515 @@ export interface DescribeGlossaryEntriesRequest {
|
|
|
546
581
|
PageSize?: number;
|
|
547
582
|
}
|
|
548
583
|
/**
|
|
549
|
-
*
|
|
584
|
+
* DescribeTokenPlanApiKey请求参数结构体
|
|
550
585
|
*/
|
|
551
|
-
export interface
|
|
586
|
+
export interface DescribeTokenPlanApiKeyRequest {
|
|
552
587
|
/**
|
|
553
|
-
* API Key ID
|
|
588
|
+
* API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
|
|
554
589
|
*/
|
|
555
|
-
ApiKeyId
|
|
590
|
+
ApiKeyId: string;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* DeleteApiKey返回参数结构体
|
|
594
|
+
*/
|
|
595
|
+
export interface DeleteApiKeyResponse {
|
|
556
596
|
/**
|
|
557
|
-
*
|
|
597
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
558
598
|
*/
|
|
559
|
-
|
|
599
|
+
RequestId?: string;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* 修改术语条目项
|
|
603
|
+
*/
|
|
604
|
+
export interface ModifyGlossaryEntryInput {
|
|
560
605
|
/**
|
|
561
|
-
*
|
|
606
|
+
* 术语条目 ID。可通过 DescribeGlossaryEntries 接口获取。
|
|
562
607
|
*/
|
|
563
|
-
|
|
608
|
+
EntryId: string;
|
|
564
609
|
/**
|
|
565
|
-
*
|
|
610
|
+
* 源语言术语。最大 1000 字符。不传则保持不变。
|
|
566
611
|
*/
|
|
567
|
-
|
|
612
|
+
SourceTerm?: string;
|
|
568
613
|
/**
|
|
569
|
-
*
|
|
614
|
+
* 目标语言术语。最大 1000 字符。不传则保持不变。
|
|
570
615
|
*/
|
|
571
|
-
|
|
616
|
+
TargetTerm?: string;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* DescribeTokenPlanApiKeyList请求参数结构体
|
|
620
|
+
*/
|
|
621
|
+
export interface DescribeTokenPlanApiKeyListRequest {
|
|
572
622
|
/**
|
|
573
|
-
*
|
|
623
|
+
* 套餐 ID。可通过DescribeTokenPlanList接口获取。
|
|
574
624
|
*/
|
|
575
|
-
|
|
625
|
+
TeamId: string;
|
|
576
626
|
/**
|
|
577
|
-
*
|
|
627
|
+
* 分页查询偏移量,默认为 0。
|
|
578
628
|
*/
|
|
579
|
-
|
|
629
|
+
Offset?: number;
|
|
580
630
|
/**
|
|
581
|
-
*
|
|
631
|
+
* 分页查询返回数量,默认为 20,最大值为 100。
|
|
582
632
|
*/
|
|
583
|
-
|
|
633
|
+
Limit?: number;
|
|
584
634
|
/**
|
|
585
|
-
* API Key
|
|
635
|
+
* 分页查询过滤条件列表。支持的过滤字段:ApiKeyId (API Key ID)、Name (API Key 名称)、Status (API Key是否可用)、StopReason (API Key停用原因)、UseStatus (API Key用户侧开关)。
|
|
586
636
|
*/
|
|
587
|
-
|
|
637
|
+
Filters?: Array<RequestFilter>;
|
|
588
638
|
/**
|
|
589
|
-
*
|
|
590
|
-
*/
|
|
591
|
-
UseStatus?: string;
|
|
592
|
-
/**
|
|
593
|
-
* 密钥版本号。
|
|
594
|
-
*/
|
|
595
|
-
KeyVersion?: number;
|
|
596
|
-
/**
|
|
597
|
-
* 最近一次重置时间。(ISO 8601)
|
|
598
|
-
*/
|
|
599
|
-
LastRotatedAt?: string;
|
|
600
|
-
/**
|
|
601
|
-
* 创建人,如果是子账号创建,则该值为子账号UIN。
|
|
602
|
-
*/
|
|
603
|
-
Creator?: string;
|
|
604
|
-
/**
|
|
605
|
-
* 创建时间。
|
|
606
|
-
*/
|
|
607
|
-
CreatedAt?: string;
|
|
608
|
-
/**
|
|
609
|
-
* 更新时间。
|
|
610
|
-
*/
|
|
611
|
-
UpdatedAt?: string;
|
|
612
|
-
/**
|
|
613
|
-
* TPM 限制(Tokens Per Minute)。
|
|
614
|
-
*/
|
|
615
|
-
TPM?: number;
|
|
616
|
-
/**
|
|
617
|
-
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
618
|
-
*/
|
|
619
|
-
ProductType?: string;
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* DeleteGlossaryEntries请求参数结构体
|
|
623
|
-
*/
|
|
624
|
-
export interface DeleteGlossaryEntriesRequest {
|
|
625
|
-
/**
|
|
626
|
-
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
627
|
-
*/
|
|
628
|
-
GlossaryId: string;
|
|
629
|
-
/**
|
|
630
|
-
* 待删除的术语条目列表。单次最多 200 个。
|
|
631
|
-
*/
|
|
632
|
-
Entries: Array<DeleteGlossaryEntryInput>;
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* CreateGlossaryEntries返回参数结构体
|
|
636
|
-
*/
|
|
637
|
-
export interface CreateGlossaryEntriesResponse {
|
|
638
|
-
/**
|
|
639
|
-
* 创建成功的术语条目列表。
|
|
640
|
-
*/
|
|
641
|
-
Entries?: Array<GlossaryEntryItem>;
|
|
642
|
-
/**
|
|
643
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
639
|
+
* 分页查询排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
|
|
644
640
|
*/
|
|
645
|
-
|
|
641
|
+
Sorts?: Array<RequestSort>;
|
|
646
642
|
}
|
|
647
643
|
/**
|
|
648
|
-
*
|
|
644
|
+
* DescribeGlossaries请求参数结构体
|
|
649
645
|
*/
|
|
650
|
-
export interface
|
|
646
|
+
export interface DescribeGlossariesRequest {
|
|
651
647
|
/**
|
|
652
|
-
*
|
|
648
|
+
* 返回数量。默认为 20,最大值为 100。
|
|
653
649
|
*/
|
|
654
|
-
|
|
650
|
+
Limit?: number;
|
|
655
651
|
/**
|
|
656
|
-
*
|
|
652
|
+
* 偏移量。默认为 0。
|
|
657
653
|
*/
|
|
658
|
-
|
|
654
|
+
Offset?: number;
|
|
659
655
|
/**
|
|
660
|
-
*
|
|
656
|
+
* 过滤条件列表。支持的过滤字段:GlossaryId(术语库 ID)、Name(名称)、Source(源语言代码)、Target(目标语言代码)。
|
|
661
657
|
*/
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* DescribeTokenPlanApiKey请求参数结构体
|
|
666
|
-
*/
|
|
667
|
-
export interface DescribeTokenPlanApiKeyRequest {
|
|
658
|
+
Filters?: Array<RequestFilter>;
|
|
668
659
|
/**
|
|
669
|
-
*
|
|
660
|
+
* 排序条件列表。支持的排序字段:CreatedTime(创建时间)、UpdatedTime(更新时间)。
|
|
670
661
|
*/
|
|
671
|
-
|
|
662
|
+
Sorts?: Array<RequestSort>;
|
|
672
663
|
}
|
|
673
664
|
/**
|
|
674
|
-
*
|
|
665
|
+
* DescribeTokenPlanApiKeyUsageDetail请求参数结构体
|
|
675
666
|
*/
|
|
676
|
-
export interface
|
|
677
|
-
/**
|
|
678
|
-
* 平台类型。当前支持填值:maas
|
|
679
|
-
*/
|
|
680
|
-
Platform: string;
|
|
667
|
+
export interface DescribeTokenPlanApiKeyUsageDetailRequest {
|
|
681
668
|
/**
|
|
682
|
-
*
|
|
669
|
+
* 套餐 ID。可通过DescribeTokenPlanList接口获取。
|
|
683
670
|
*/
|
|
684
|
-
|
|
671
|
+
TeamId: string;
|
|
685
672
|
/**
|
|
686
|
-
*
|
|
673
|
+
* 起始时间,RFC3339 格式。不传默认为结束时间前 15 分钟。
|
|
687
674
|
*/
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
* 模型访问信息
|
|
692
|
-
*/
|
|
693
|
-
export interface ModelAccessInfo {
|
|
675
|
+
From?: string;
|
|
694
676
|
/**
|
|
695
|
-
*
|
|
677
|
+
* 结束时间,RFC3339 格式。不传默认为当前时间。
|
|
696
678
|
*/
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* ModifyTokenPlanApiKey请求参数结构体
|
|
701
|
-
*/
|
|
702
|
-
export interface ModifyTokenPlanApiKeyRequest {
|
|
679
|
+
To?: string;
|
|
703
680
|
/**
|
|
704
|
-
*
|
|
681
|
+
* 排序方式。取值:asc(升序)、desc(降序),默认为 desc。
|
|
705
682
|
*/
|
|
706
|
-
|
|
683
|
+
Sort?: string;
|
|
707
684
|
/**
|
|
708
|
-
*
|
|
709
|
-
|
|
710
|
-
- 如果套餐类型为企业版专业套餐:
|
|
711
|
-
1)传入“all“ :使用套餐支持的所有模型
|
|
712
|
-
2)传入 Model ID:指定具体模型。“all“和具体的 Model ID 不能同时传入。
|
|
713
|
-
|
|
714
|
-
- 如果套餐类型为企业版轻享套餐,不允许传该参数。
|
|
685
|
+
* 返回条数,默认为 20,最大值为 100。
|
|
715
686
|
*/
|
|
716
|
-
|
|
687
|
+
Limit?: number;
|
|
717
688
|
/**
|
|
718
|
-
*
|
|
719
|
-
|
|
720
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
721
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
689
|
+
* 翻页上下文,首次查询不传,后续传入上次返回的 Context,直到 ListOver 为 true。
|
|
722
690
|
*/
|
|
723
|
-
|
|
691
|
+
Context?: string;
|
|
724
692
|
/**
|
|
725
|
-
*
|
|
726
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
727
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
693
|
+
* 按 API Key ID 精确过滤。最大 128 字符。与 ApiKeyName 至少需传入其一,都传时以 ApiKeyId 为准。可通过 DescribeTokenPlanApiKeyList 接口获取。
|
|
728
694
|
*/
|
|
729
|
-
|
|
695
|
+
ApiKeyId?: string;
|
|
730
696
|
/**
|
|
731
|
-
*
|
|
697
|
+
* 按 API Key 名称模糊过滤。最大 64 字符。与 ApiKeyId 至少需传入其一,都传时以 ApiKeyId 为准。
|
|
732
698
|
*/
|
|
733
|
-
|
|
699
|
+
ApiKeyName?: string;
|
|
734
700
|
/**
|
|
735
|
-
*
|
|
701
|
+
* 按模型 ID (Model ID) 精确过滤。需要按模型名称过滤时传入该字段。
|
|
736
702
|
*/
|
|
737
|
-
|
|
703
|
+
ModelName?: string;
|
|
738
704
|
}
|
|
739
705
|
/**
|
|
740
|
-
*
|
|
706
|
+
* DescribeGlossaryEntries返回参数结构体
|
|
741
707
|
*/
|
|
742
|
-
export interface
|
|
708
|
+
export interface DescribeGlossaryEntriesResponse {
|
|
743
709
|
/**
|
|
744
|
-
*
|
|
710
|
+
* 术语条目列表。
|
|
745
711
|
*/
|
|
746
|
-
|
|
712
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
747
713
|
/**
|
|
748
|
-
*
|
|
714
|
+
* 符合条件的术语条目总数。
|
|
749
715
|
*/
|
|
750
|
-
|
|
751
|
-
}
|
|
752
|
-
/**
|
|
753
|
-
* DescribeModelList返回参数结构体
|
|
754
|
-
*/
|
|
755
|
-
export interface DescribeModelListResponse {
|
|
716
|
+
Total?: number;
|
|
756
717
|
/**
|
|
757
|
-
*
|
|
718
|
+
* 当前页码。
|
|
758
719
|
*/
|
|
759
|
-
|
|
720
|
+
Page?: number;
|
|
760
721
|
/**
|
|
761
|
-
*
|
|
722
|
+
* 每页大小。
|
|
762
723
|
*/
|
|
763
|
-
|
|
724
|
+
PageSize?: number;
|
|
764
725
|
/**
|
|
765
726
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
766
727
|
*/
|
|
767
728
|
RequestId?: string;
|
|
768
729
|
}
|
|
769
730
|
/**
|
|
770
|
-
*
|
|
731
|
+
* API 密钥详情
|
|
771
732
|
*/
|
|
772
|
-
export interface
|
|
773
|
-
/**
|
|
774
|
-
* 翻页上下文,传入下一次请求的 Context 参数继续翻页。
|
|
775
|
-
*/
|
|
776
|
-
Context?: string;
|
|
777
|
-
/**
|
|
778
|
-
* 是否已到末尾,为 true 时无需继续翻页。
|
|
779
|
-
*/
|
|
780
|
-
ListOver?: boolean;
|
|
733
|
+
export interface ApiKeyDetail {
|
|
781
734
|
/**
|
|
782
|
-
*
|
|
735
|
+
* API 密钥 ID。
|
|
783
736
|
*/
|
|
784
|
-
|
|
737
|
+
ApiKeyId?: string;
|
|
785
738
|
/**
|
|
786
|
-
*
|
|
739
|
+
* 名称。
|
|
787
740
|
*/
|
|
788
|
-
|
|
741
|
+
Name?: string;
|
|
789
742
|
/**
|
|
790
|
-
*
|
|
743
|
+
* API 密钥值。接口返回脱敏值
|
|
791
744
|
*/
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* 排序条件
|
|
796
|
-
*/
|
|
797
|
-
export interface RequestSort {
|
|
745
|
+
ApiKey?: string;
|
|
798
746
|
/**
|
|
799
|
-
*
|
|
747
|
+
* 备注。
|
|
800
748
|
*/
|
|
801
|
-
|
|
749
|
+
Remark?: string;
|
|
802
750
|
/**
|
|
803
|
-
*
|
|
751
|
+
* 平台类型。当前支持填值:maas
|
|
804
752
|
*/
|
|
805
|
-
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
* 计费条目
|
|
809
|
-
*/
|
|
810
|
-
export interface ModelChargingItem {
|
|
753
|
+
Platform?: string;
|
|
811
754
|
/**
|
|
812
|
-
*
|
|
755
|
+
* 主账号。
|
|
813
756
|
*/
|
|
814
|
-
|
|
757
|
+
Uin?: string;
|
|
815
758
|
/**
|
|
816
|
-
*
|
|
759
|
+
* 子账号。
|
|
817
760
|
*/
|
|
818
|
-
|
|
761
|
+
SubUin?: string;
|
|
819
762
|
/**
|
|
820
|
-
*
|
|
763
|
+
* 状态。取值:enable(启用)、disable(禁用)。
|
|
821
764
|
*/
|
|
822
|
-
|
|
765
|
+
Status?: string;
|
|
823
766
|
/**
|
|
824
|
-
*
|
|
767
|
+
* 绑定类型。取值:all(全部模型和服务)、model_all_endpoint_custom(全部模型+自定义服务)、model_custom_endpoint_all(自定义模型+全部服务)、model_custom_endpoint_custom(自定义模型+自定义服务)。
|
|
825
768
|
*/
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Token Plan 套餐列表项
|
|
830
|
-
*/
|
|
831
|
-
export interface TokenPlanListItem {
|
|
769
|
+
BindType?: string;
|
|
832
770
|
/**
|
|
833
|
-
*
|
|
771
|
+
* 创建时间。格式:YYYY-MM-DD HH:mm:ss。
|
|
834
772
|
*/
|
|
835
|
-
|
|
773
|
+
CreateTime?: string;
|
|
836
774
|
/**
|
|
837
|
-
*
|
|
775
|
+
* 更新时间。格式:YYYY-MM-DD HH:mm:ss。
|
|
838
776
|
*/
|
|
839
|
-
|
|
777
|
+
UpdateTime?: string;
|
|
840
778
|
/**
|
|
841
|
-
*
|
|
779
|
+
* 应用 ID。
|
|
842
780
|
*/
|
|
843
|
-
|
|
781
|
+
AppId?: string;
|
|
844
782
|
/**
|
|
845
|
-
*
|
|
783
|
+
* 是否可编辑。true 表示可编辑,false 表示不可编辑。
|
|
846
784
|
*/
|
|
847
|
-
|
|
785
|
+
Editable?: boolean;
|
|
848
786
|
/**
|
|
849
|
-
*
|
|
787
|
+
* 绑定资源列表,区分 endpoint 和 model 类型。
|
|
850
788
|
*/
|
|
851
|
-
|
|
789
|
+
BindingItems?: Array<BindingItem>;
|
|
852
790
|
/**
|
|
853
|
-
*
|
|
791
|
+
* IP 白名单列表。支持 IPv4 和 CIDR 格式。空数组表示不限制 IP。
|
|
854
792
|
*/
|
|
855
|
-
|
|
793
|
+
IpWhitelist?: Array<string>;
|
|
856
794
|
/**
|
|
857
|
-
*
|
|
795
|
+
* 当Platform为maas时该字段为空
|
|
858
796
|
*/
|
|
859
|
-
|
|
797
|
+
Creator?: string;
|
|
860
798
|
/**
|
|
861
|
-
*
|
|
799
|
+
* Token 限额信息多维度列表。未配置限额时不返回该字段。
|
|
862
800
|
*/
|
|
863
|
-
|
|
801
|
+
QuotaSet?: Array<QuotaInfo>;
|
|
864
802
|
/**
|
|
865
|
-
*
|
|
803
|
+
* Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
|
|
866
804
|
*/
|
|
867
|
-
|
|
805
|
+
QuotaStatus?: string;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Token Plan 企业版套餐调用明细项(字段与 CLS 日志对齐)
|
|
809
|
+
*/
|
|
810
|
+
export interface UsageDetailItem {
|
|
868
811
|
/**
|
|
869
|
-
*
|
|
812
|
+
* 主账号 UIN。
|
|
870
813
|
*/
|
|
871
|
-
|
|
814
|
+
Uin?: string;
|
|
872
815
|
/**
|
|
873
|
-
*
|
|
816
|
+
* 模型名称。
|
|
874
817
|
*/
|
|
875
|
-
|
|
818
|
+
ModelName?: string;
|
|
876
819
|
/**
|
|
877
|
-
*
|
|
820
|
+
* APIKey ID。
|
|
878
821
|
*/
|
|
879
|
-
|
|
822
|
+
ApiKeyId?: string;
|
|
880
823
|
/**
|
|
881
|
-
*
|
|
824
|
+
* APIKey 名称。
|
|
882
825
|
*/
|
|
883
|
-
|
|
826
|
+
ApiKeyName?: string;
|
|
884
827
|
/**
|
|
885
|
-
*
|
|
828
|
+
* 请求 ID。
|
|
886
829
|
*/
|
|
887
|
-
|
|
888
|
-
}
|
|
889
|
-
/**
|
|
890
|
-
* CreateGlossary返回参数结构体
|
|
891
|
-
*/
|
|
892
|
-
export interface CreateGlossaryResponse {
|
|
830
|
+
RequestId?: string;
|
|
893
831
|
/**
|
|
894
|
-
*
|
|
832
|
+
* 请求时间(RFC3339 格式)。
|
|
895
833
|
*/
|
|
896
|
-
|
|
834
|
+
RequestTime?: string;
|
|
897
835
|
/**
|
|
898
|
-
*
|
|
836
|
+
* 输入 token 数。
|
|
899
837
|
*/
|
|
900
|
-
|
|
838
|
+
InputToken?: number;
|
|
901
839
|
/**
|
|
902
|
-
*
|
|
840
|
+
* 缓存 token 数。
|
|
903
841
|
*/
|
|
904
|
-
|
|
842
|
+
CacheToken?: number;
|
|
905
843
|
/**
|
|
906
|
-
*
|
|
844
|
+
* 输出 token 数。
|
|
907
845
|
*/
|
|
908
|
-
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* CreateTokenPlanTeamOrderAndBuy请求参数结构体
|
|
912
|
-
*/
|
|
913
|
-
export interface CreateTokenPlanTeamOrderAndBuyRequest {
|
|
846
|
+
OutputToken?: number;
|
|
914
847
|
/**
|
|
915
|
-
*
|
|
848
|
+
* 总 token 数。
|
|
916
849
|
*/
|
|
917
|
-
|
|
850
|
+
TotalToken?: number;
|
|
918
851
|
/**
|
|
919
|
-
*
|
|
852
|
+
* 未命中缓存输入消耗额度。单位说明如下:
|
|
853
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
854
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
920
855
|
*/
|
|
921
|
-
|
|
856
|
+
InputQuota?: string;
|
|
922
857
|
/**
|
|
923
|
-
*
|
|
858
|
+
* 缓存消耗额度。单位说明如下:
|
|
859
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
860
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
924
861
|
*/
|
|
925
|
-
|
|
862
|
+
CacheQuota?: string;
|
|
926
863
|
/**
|
|
927
|
-
*
|
|
864
|
+
* 输出消耗额度。单位说明如下:
|
|
865
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
866
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
928
867
|
*/
|
|
929
|
-
|
|
868
|
+
OutputQuota?: string;
|
|
930
869
|
/**
|
|
931
|
-
*
|
|
870
|
+
* 总消耗额度。单位说明如下:
|
|
871
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
872
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
932
873
|
*/
|
|
933
|
-
|
|
874
|
+
TotalQuota?: string;
|
|
934
875
|
}
|
|
935
876
|
/**
|
|
936
|
-
*
|
|
877
|
+
* API Key 额度及用量信息
|
|
937
878
|
*/
|
|
938
|
-
export interface
|
|
939
|
-
/**
|
|
940
|
-
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
941
|
-
*/
|
|
942
|
-
GlossaryId: string;
|
|
879
|
+
export interface SubPackageBalance {
|
|
943
880
|
/**
|
|
944
|
-
*
|
|
881
|
+
* 独占额度。单位说明如下:
|
|
882
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
883
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
945
884
|
*/
|
|
946
|
-
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* RenewTokenPlanTeamOrder请求参数结构体
|
|
950
|
-
*/
|
|
951
|
-
export interface RenewTokenPlanTeamOrderRequest {
|
|
885
|
+
ExclusiveQuota?: string;
|
|
952
886
|
/**
|
|
953
|
-
*
|
|
887
|
+
* 独占额度已用量。单位说明如下:
|
|
888
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
889
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
954
890
|
*/
|
|
955
|
-
|
|
891
|
+
ExclusiveUsed?: string;
|
|
956
892
|
/**
|
|
957
|
-
*
|
|
893
|
+
* 独占额度剩余量。单位说明如下:
|
|
894
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
895
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
958
896
|
*/
|
|
959
|
-
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* DescribeGlossaries请求参数结构体
|
|
963
|
-
*/
|
|
964
|
-
export interface DescribeGlossariesRequest {
|
|
897
|
+
ExclusiveRemain?: string;
|
|
965
898
|
/**
|
|
966
|
-
*
|
|
899
|
+
* 共享额度上限,-1 表示不限。单位说明如下:
|
|
900
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
901
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
967
902
|
*/
|
|
968
|
-
|
|
903
|
+
SharedQuota?: string;
|
|
969
904
|
/**
|
|
970
|
-
*
|
|
905
|
+
* 共享额度已用量。单位说明如下:
|
|
906
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
907
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
971
908
|
*/
|
|
972
|
-
|
|
909
|
+
SharedUsed?: string;
|
|
973
910
|
/**
|
|
974
|
-
*
|
|
911
|
+
* 共享额度剩余量。单位说明如下:
|
|
912
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
913
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
975
914
|
*/
|
|
976
|
-
|
|
915
|
+
SharedRemain?: string;
|
|
977
916
|
/**
|
|
978
|
-
*
|
|
917
|
+
* API Key 额度包状态。取值:0(正常)、1(耗尽)。
|
|
979
918
|
*/
|
|
980
|
-
|
|
919
|
+
Status?: number;
|
|
981
920
|
}
|
|
982
921
|
/**
|
|
983
|
-
*
|
|
922
|
+
* DeleteApiKey请求参数结构体
|
|
984
923
|
*/
|
|
985
|
-
export
|
|
924
|
+
export type DeleteApiKeyRequest = null;
|
|
925
|
+
/**
|
|
926
|
+
* UpgradeTokenPlanTeamOrder返回参数结构体
|
|
927
|
+
*/
|
|
928
|
+
export interface UpgradeTokenPlanTeamOrderResponse {
|
|
929
|
+
/**
|
|
930
|
+
* 腾讯云订单 ID。用于关联一次升配操作下的所有子订单。
|
|
931
|
+
*/
|
|
932
|
+
BigOrderId?: string;
|
|
986
933
|
/**
|
|
987
934
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
988
935
|
*/
|
|
989
936
|
RequestId?: string;
|
|
990
937
|
}
|
|
991
938
|
/**
|
|
992
|
-
*
|
|
939
|
+
* 主额度包信息
|
|
993
940
|
*/
|
|
994
|
-
export interface
|
|
941
|
+
export interface TokenPlanPackageInfo {
|
|
995
942
|
/**
|
|
996
|
-
*
|
|
943
|
+
* 总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
997
944
|
*/
|
|
998
|
-
|
|
945
|
+
TotalQuota?: string;
|
|
999
946
|
/**
|
|
1000
|
-
*
|
|
947
|
+
* 总已使用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1001
948
|
*/
|
|
1002
|
-
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* DescribeTokenPlanApiKeyUsageDetail请求参数结构体
|
|
1006
|
-
*/
|
|
1007
|
-
export interface DescribeTokenPlanApiKeyUsageDetailRequest {
|
|
949
|
+
TotalUsed?: string;
|
|
1008
950
|
/**
|
|
1009
|
-
*
|
|
951
|
+
* 总周期数。
|
|
1010
952
|
*/
|
|
1011
|
-
|
|
953
|
+
TotalCycles?: number;
|
|
1012
954
|
/**
|
|
1013
|
-
*
|
|
955
|
+
* 周期单位。取值:month(月)
|
|
1014
956
|
*/
|
|
1015
|
-
|
|
957
|
+
CycleUnit?: string;
|
|
1016
958
|
/**
|
|
1017
|
-
*
|
|
959
|
+
* 套餐包生效时间。
|
|
1018
960
|
*/
|
|
1019
|
-
|
|
961
|
+
StartTime?: string;
|
|
1020
962
|
/**
|
|
1021
|
-
*
|
|
963
|
+
* 套餐包到期时间。
|
|
1022
964
|
*/
|
|
1023
|
-
|
|
965
|
+
ExpireTime?: string;
|
|
1024
966
|
/**
|
|
1025
|
-
*
|
|
967
|
+
* 独占池已分配额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1026
968
|
*/
|
|
1027
|
-
|
|
969
|
+
ExclusiveAllocated?: string;
|
|
1028
970
|
/**
|
|
1029
|
-
*
|
|
971
|
+
* 独占池已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1030
972
|
*/
|
|
1031
|
-
|
|
973
|
+
ExclusiveUsed?: string;
|
|
1032
974
|
/**
|
|
1033
|
-
*
|
|
975
|
+
* 共享池总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1034
976
|
*/
|
|
1035
|
-
|
|
977
|
+
SharedPool?: string;
|
|
1036
978
|
/**
|
|
1037
|
-
*
|
|
979
|
+
* 共享已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1038
980
|
*/
|
|
1039
|
-
|
|
981
|
+
SharedUsed?: string;
|
|
1040
982
|
/**
|
|
1041
|
-
*
|
|
983
|
+
* 当期额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1042
984
|
*/
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1045
|
-
/**
|
|
1046
|
-
* UpgradeTokenPlanTeamOrder请求参数结构体
|
|
1047
|
-
*/
|
|
1048
|
-
export interface UpgradeTokenPlanTeamOrderRequest {
|
|
985
|
+
CycleQuota?: string;
|
|
1049
986
|
/**
|
|
1050
|
-
*
|
|
987
|
+
* 当前周期。
|
|
1051
988
|
*/
|
|
1052
|
-
|
|
989
|
+
CurrentCycle?: number;
|
|
1053
990
|
/**
|
|
1054
|
-
*
|
|
991
|
+
* 剩余周期。
|
|
1055
992
|
*/
|
|
1056
|
-
|
|
993
|
+
RemainCycles?: number;
|
|
1057
994
|
}
|
|
1058
995
|
/**
|
|
1059
|
-
*
|
|
996
|
+
* 时间周期内的统计聚合值(按 metric key 索引)。声明 tokens / search 两族字段都在本 schema 中,按 MetricKeys 实际返回取值,参见响应顶层 `MetricKeys` 字段。
|
|
1060
997
|
*/
|
|
1061
|
-
export interface
|
|
998
|
+
export interface UsageStats {
|
|
1062
999
|
/**
|
|
1063
|
-
* <p
|
|
1000
|
+
* <p>[tokens 族] 时间周期内的累计总 token 数。</p>
|
|
1064
1001
|
*/
|
|
1065
|
-
|
|
1002
|
+
TotalToken?: number;
|
|
1066
1003
|
/**
|
|
1067
|
-
* <p
|
|
1004
|
+
* <p>[tokens 族] 时间周期内的累计输入 token 数。</p>
|
|
1068
1005
|
*/
|
|
1069
|
-
|
|
1006
|
+
InputTotalToken?: number;
|
|
1070
1007
|
/**
|
|
1071
|
-
* <p
|
|
1008
|
+
* <p>[tokens 族] 时间周期内的累计输出 token 数。</p>
|
|
1072
1009
|
*/
|
|
1073
|
-
|
|
1010
|
+
OutputTotalToken?: number;
|
|
1074
1011
|
/**
|
|
1075
|
-
* <p
|
|
1012
|
+
* <p>[tokens 族] 时间周期内的累计读缓存 token 数(命中缓存部分)</p>
|
|
1013
|
+
*/
|
|
1014
|
+
CacheTotalToken?: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* <p>[search 族] 整段累计联网搜索请求数</p>
|
|
1017
|
+
*/
|
|
1018
|
+
SearchRequestCount?: number;
|
|
1019
|
+
/**
|
|
1020
|
+
* <p>[search 族] 整段累计搜索引擎调用次数</p>
|
|
1021
|
+
*/
|
|
1022
|
+
SearchCount?: number;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* DescribeUsageRankList返回参数结构体
|
|
1026
|
+
*/
|
|
1027
|
+
export interface DescribeUsageRankListResponse {
|
|
1028
|
+
/**
|
|
1029
|
+
* <p>回填请求的统计维度。</p>
|
|
1030
|
+
*/
|
|
1031
|
+
Dimension?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* <p>回填请求的指标族:tokens / search 。</p>
|
|
1076
1034
|
*/
|
|
1077
1035
|
MetricType?: string;
|
|
1078
1036
|
/**
|
|
1079
|
-
* <p
|
|
1037
|
+
* <p>本次响应中 Stats / Series / PageStats / TotalStats 实际包含的 metric key 列表,按MetricType 区分:tokens=[Total,Input,Output,Cache]、search=[SearchRequestCount,SearchCount]</p>
|
|
1080
1038
|
*/
|
|
1081
|
-
|
|
1039
|
+
MetricKeys?: Array<string>;
|
|
1082
1040
|
/**
|
|
1083
|
-
* <p
|
|
1041
|
+
* <p>视图(数据来源)</p>
|
|
1084
1042
|
*/
|
|
1085
|
-
|
|
1043
|
+
ViewName?: string;
|
|
1086
1044
|
/**
|
|
1087
|
-
* <p
|
|
1045
|
+
* <p>回填请求的统计粒度(秒)。ShowAll=true 时为 0。</p>
|
|
1088
1046
|
*/
|
|
1089
|
-
|
|
1047
|
+
Period?: number;
|
|
1090
1048
|
/**
|
|
1091
|
-
* <p
|
|
1049
|
+
* <p>回填请求的起始时间。</p>
|
|
1092
1050
|
*/
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* ModifyTokenPlanApiKey返回参数结构体
|
|
1097
|
-
*/
|
|
1098
|
-
export interface ModifyTokenPlanApiKeyResponse {
|
|
1051
|
+
StartTime?: string;
|
|
1099
1052
|
/**
|
|
1100
|
-
*
|
|
1053
|
+
* <p>回填请求的结束时间。</p>
|
|
1101
1054
|
*/
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* CreateGlossaryEntries请求参数结构体
|
|
1106
|
-
*/
|
|
1107
|
-
export interface CreateGlossaryEntriesRequest {
|
|
1055
|
+
EndTime?: string;
|
|
1108
1056
|
/**
|
|
1109
|
-
*
|
|
1057
|
+
* <p>全量对象数。</p>
|
|
1110
1058
|
*/
|
|
1111
|
-
|
|
1059
|
+
Total?: number;
|
|
1112
1060
|
/**
|
|
1113
|
-
*
|
|
1061
|
+
* <p>回填请求的翻页起点。ShowAll=true 时为 0。</p>
|
|
1114
1062
|
*/
|
|
1115
|
-
|
|
1116
|
-
}
|
|
1117
|
-
/**
|
|
1118
|
-
* 用量时间周期内的时序点列表(按 metric key 索引)。为 JSON 数组的字符串形式,数组长度与响应 Timestamps 一致,无数据点处为 null。具体包含哪些 key 由响应 MetricKeys 决定。
|
|
1119
|
-
*/
|
|
1120
|
-
export interface UsageSeries {
|
|
1063
|
+
Offset?: number;
|
|
1121
1064
|
/**
|
|
1122
|
-
* <p
|
|
1065
|
+
* <p>页大小,恒为 10。ShowAll=true 时为 Total。</p>
|
|
1123
1066
|
*/
|
|
1124
|
-
|
|
1067
|
+
Limit?: number;
|
|
1125
1068
|
/**
|
|
1126
|
-
* <p>
|
|
1069
|
+
* <p>Series 数组对应的时间戳序列(Unix 秒)。ShowAll=true 时为空数组。</p>
|
|
1127
1070
|
*/
|
|
1128
|
-
|
|
1071
|
+
Timestamps?: Array<number | bigint>;
|
|
1129
1072
|
/**
|
|
1130
|
-
* <p>[
|
|
1073
|
+
* <p>对象排行列表,按<code>MetricKeys[0]</code>降序排序。ShowAll=false 时为当前页 10 个对象(含 Series);ShowAll=true 时为全量对象(不含 Series,用于 CSV 导出)。</p>
|
|
1131
1074
|
*/
|
|
1132
|
-
|
|
1075
|
+
TopList?: Array<UsageRankItem>;
|
|
1133
1076
|
/**
|
|
1134
|
-
* <p
|
|
1077
|
+
* <p>分页统计结果</p>
|
|
1135
1078
|
*/
|
|
1136
|
-
|
|
1079
|
+
PageStats?: UsageStats;
|
|
1137
1080
|
/**
|
|
1138
|
-
* <p
|
|
1081
|
+
* <p>总统计结果</p>
|
|
1139
1082
|
*/
|
|
1140
|
-
|
|
1083
|
+
TotalStats?: UsageStats;
|
|
1141
1084
|
/**
|
|
1142
|
-
*
|
|
1085
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1143
1086
|
*/
|
|
1144
|
-
|
|
1087
|
+
RequestId?: string;
|
|
1145
1088
|
}
|
|
1146
1089
|
/**
|
|
1147
|
-
*
|
|
1090
|
+
* DescribeApiKey返回参数结构体
|
|
1148
1091
|
*/
|
|
1149
|
-
export interface
|
|
1092
|
+
export interface DescribeApiKeyResponse {
|
|
1150
1093
|
/**
|
|
1151
1094
|
* API 密钥 ID。
|
|
1152
1095
|
*/
|
|
@@ -1156,7 +1099,7 @@ export interface ApiKeyDetail {
|
|
|
1156
1099
|
*/
|
|
1157
1100
|
Name?: string;
|
|
1158
1101
|
/**
|
|
1159
|
-
* API
|
|
1102
|
+
* API 密钥值(明文)。
|
|
1160
1103
|
*/
|
|
1161
1104
|
ApiKey?: string;
|
|
1162
1105
|
/**
|
|
@@ -1164,7 +1107,7 @@ export interface ApiKeyDetail {
|
|
|
1164
1107
|
*/
|
|
1165
1108
|
Remark?: string;
|
|
1166
1109
|
/**
|
|
1167
|
-
*
|
|
1110
|
+
* 平台类型。枚举:maas
|
|
1168
1111
|
*/
|
|
1169
1112
|
Platform?: string;
|
|
1170
1113
|
/**
|
|
@@ -1180,7 +1123,7 @@ export interface ApiKeyDetail {
|
|
|
1180
1123
|
*/
|
|
1181
1124
|
Status?: string;
|
|
1182
1125
|
/**
|
|
1183
|
-
* 绑定类型。取值:all
|
|
1126
|
+
* 绑定类型。取值:all(全部模型和接入点)、model_all_endpoint_custom(全部模型+自定义接入点)、model_custom_endpoint_all(自定义模型+全部接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。
|
|
1184
1127
|
*/
|
|
1185
1128
|
BindType?: string;
|
|
1186
1129
|
/**
|
|
@@ -1204,7 +1147,7 @@ export interface ApiKeyDetail {
|
|
|
1204
1147
|
*/
|
|
1205
1148
|
BindingItems?: Array<BindingItem>;
|
|
1206
1149
|
/**
|
|
1207
|
-
* IP 白名单列表。支持 IPv4
|
|
1150
|
+
* IP 白名单列表。支持 IPv4和 CIDR 格式。空数组表示不限制 IP。
|
|
1208
1151
|
*/
|
|
1209
1152
|
IpWhitelist?: Array<string>;
|
|
1210
1153
|
/**
|
|
@@ -1212,38 +1155,101 @@ export interface ApiKeyDetail {
|
|
|
1212
1155
|
*/
|
|
1213
1156
|
Creator?: string;
|
|
1214
1157
|
/**
|
|
1215
|
-
* Token
|
|
1158
|
+
* Token 限额多维度信息。未配置限额时不返回该字段。
|
|
1216
1159
|
*/
|
|
1217
1160
|
QuotaSet?: Array<QuotaInfo>;
|
|
1218
1161
|
/**
|
|
1219
|
-
* Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
|
|
1162
|
+
* Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
|
|
1163
|
+
*/
|
|
1164
|
+
QuotaStatus?: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1167
|
+
*/
|
|
1168
|
+
RequestId?: string;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* DescribeTokenPlanApiKeySecret请求参数结构体
|
|
1172
|
+
*/
|
|
1173
|
+
export interface DescribeTokenPlanApiKeySecretRequest {
|
|
1174
|
+
/**
|
|
1175
|
+
* API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
|
|
1176
|
+
*/
|
|
1177
|
+
ApiKeyId: string;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* 模型计费信息
|
|
1181
|
+
*/
|
|
1182
|
+
export interface ModelChargingInfo {
|
|
1183
|
+
/**
|
|
1184
|
+
* 计费类型。取值:Uniform(统一计费)、Tiered(阶梯计费)。
|
|
1185
|
+
*/
|
|
1186
|
+
Type?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* 计费名称,阶梯计费时表示区间标识,统一计费为空。
|
|
1189
|
+
*/
|
|
1190
|
+
Name?: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* 计费场景,用于区分同一产品不同功能的计费。
|
|
1193
|
+
*/
|
|
1194
|
+
Scenario?: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* 计费条目列表,顺序即前端展示顺序。
|
|
1197
|
+
*/
|
|
1198
|
+
ChargingItems?: Array<ModelChargingItem>;
|
|
1199
|
+
/**
|
|
1200
|
+
* 计费单位。取值:TOKEN(词元)、COUNT(次)、CREDIT(积分)、PICTURE(张)。
|
|
1201
|
+
*/
|
|
1202
|
+
ChargeUnit?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* 计费参考链接。
|
|
1205
|
+
*/
|
|
1206
|
+
Reference?: string;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* ModifyApiKeyStatus请求参数结构体
|
|
1210
|
+
*/
|
|
1211
|
+
export type ModifyApiKeyStatusRequest = null;
|
|
1212
|
+
/**
|
|
1213
|
+
* DescribeTokenPlan请求参数结构体
|
|
1214
|
+
*/
|
|
1215
|
+
export interface DescribeTokenPlanRequest {
|
|
1216
|
+
/**
|
|
1217
|
+
* 套餐 ID。可通过 DescribeTokenPlanList 接口获取。
|
|
1220
1218
|
*/
|
|
1221
|
-
|
|
1219
|
+
TeamId: string;
|
|
1222
1220
|
}
|
|
1223
1221
|
/**
|
|
1224
|
-
*
|
|
1222
|
+
* 术语库详情
|
|
1225
1223
|
*/
|
|
1226
|
-
export interface
|
|
1224
|
+
export interface GlossaryItem {
|
|
1227
1225
|
/**
|
|
1228
|
-
*
|
|
1226
|
+
* 术语库 ID。
|
|
1229
1227
|
*/
|
|
1230
|
-
|
|
1228
|
+
GlossaryId?: string;
|
|
1231
1229
|
/**
|
|
1232
|
-
*
|
|
1230
|
+
* 术语库名称。
|
|
1233
1231
|
*/
|
|
1234
|
-
|
|
1232
|
+
Name?: string;
|
|
1235
1233
|
/**
|
|
1236
|
-
*
|
|
1234
|
+
* 术语库描述。
|
|
1237
1235
|
*/
|
|
1238
|
-
|
|
1236
|
+
Description?: string;
|
|
1239
1237
|
/**
|
|
1240
|
-
*
|
|
1238
|
+
* 源语言代码。
|
|
1241
1239
|
*/
|
|
1242
|
-
|
|
1240
|
+
Source?: string;
|
|
1243
1241
|
/**
|
|
1244
|
-
*
|
|
1242
|
+
* 目标语言代码。
|
|
1245
1243
|
*/
|
|
1246
|
-
|
|
1244
|
+
Target?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* 创建时间。
|
|
1247
|
+
*/
|
|
1248
|
+
CreatedTime?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* 更新时间。
|
|
1251
|
+
*/
|
|
1252
|
+
UpdatedTime?: string;
|
|
1247
1253
|
}
|
|
1248
1254
|
/**
|
|
1249
1255
|
* 模型信息
|
|
@@ -1323,315 +1329,326 @@ export interface Model {
|
|
|
1323
1329
|
OfflineAt?: string;
|
|
1324
1330
|
}
|
|
1325
1331
|
/**
|
|
1326
|
-
*
|
|
1332
|
+
* ModifyTokenPlanApiKey返回参数结构体
|
|
1327
1333
|
*/
|
|
1328
|
-
export interface
|
|
1329
|
-
/**
|
|
1330
|
-
* 失败项的序号(从 1 开始,对应后缀编号)。
|
|
1331
|
-
*/
|
|
1332
|
-
Index?: number;
|
|
1333
|
-
/**
|
|
1334
|
-
* 失败项的名称。
|
|
1335
|
-
*/
|
|
1336
|
-
Name?: string;
|
|
1334
|
+
export interface ModifyTokenPlanApiKeyResponse {
|
|
1337
1335
|
/**
|
|
1338
|
-
*
|
|
1336
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1339
1337
|
*/
|
|
1340
|
-
|
|
1338
|
+
RequestId?: string;
|
|
1341
1339
|
}
|
|
1342
1340
|
/**
|
|
1343
|
-
*
|
|
1341
|
+
* DescribeApiKeyList请求参数结构体
|
|
1344
1342
|
*/
|
|
1345
|
-
export interface
|
|
1343
|
+
export interface DescribeApiKeyListRequest {
|
|
1346
1344
|
/**
|
|
1347
|
-
*
|
|
1345
|
+
* 平台类型。当前支持填值:maas
|
|
1348
1346
|
*/
|
|
1349
|
-
|
|
1347
|
+
Platform?: string;
|
|
1350
1348
|
/**
|
|
1351
|
-
*
|
|
1349
|
+
* 返回数量,默认为 20,最大值为 100。
|
|
1352
1350
|
*/
|
|
1353
|
-
|
|
1351
|
+
Limit?: number;
|
|
1354
1352
|
/**
|
|
1355
|
-
*
|
|
1353
|
+
* 偏移量,默认为 0。
|
|
1356
1354
|
*/
|
|
1357
|
-
|
|
1355
|
+
Offset?: number;
|
|
1358
1356
|
/**
|
|
1359
|
-
*
|
|
1357
|
+
* 过滤条件列表。支持的过滤字段:apikeyId(API 密钥 ID)、apiKeyName(名称)、platform(平台类型)、status(状态)、bindType(绑定类型)。
|
|
1360
1358
|
*/
|
|
1361
|
-
|
|
1359
|
+
Filters?: Array<RequestFilter>;
|
|
1362
1360
|
/**
|
|
1363
|
-
*
|
|
1361
|
+
* 排序条件列表。支持的排序字段:apiKeyName
|
|
1364
1362
|
*/
|
|
1365
|
-
|
|
1363
|
+
Sorts?: Array<RequestSort>;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* UpgradeTokenPlanTeamOrder请求参数结构体
|
|
1367
|
+
*/
|
|
1368
|
+
export interface UpgradeTokenPlanTeamOrderRequest {
|
|
1366
1369
|
/**
|
|
1367
|
-
*
|
|
1370
|
+
* 套餐 ID。可通过 DescribeTokenPlanList 接口获取。
|
|
1368
1371
|
*/
|
|
1369
|
-
|
|
1372
|
+
TeamId: string;
|
|
1370
1373
|
/**
|
|
1371
|
-
*
|
|
1374
|
+
* 升配后的新规格额度。套餐类型为 enterprise 时表示积分额度,套餐类型为 enterprise-auto 时表示 Token 数。必须大于当前额度。
|
|
1372
1375
|
*/
|
|
1373
|
-
|
|
1376
|
+
NewCreditOrToken: number;
|
|
1374
1377
|
}
|
|
1375
1378
|
/**
|
|
1376
|
-
*
|
|
1379
|
+
* Token 汇总计费项
|
|
1377
1380
|
*/
|
|
1378
|
-
export interface
|
|
1379
|
-
/**
|
|
1380
|
-
* 总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1381
|
-
*/
|
|
1382
|
-
TotalQuota?: string;
|
|
1381
|
+
export interface TokenSummaryBillingItem {
|
|
1383
1382
|
/**
|
|
1384
|
-
*
|
|
1383
|
+
* 计费项。取值:input(输入 Token)、output(输出 Token)、cache(缓存 Token)、call_count(调用次数)。
|
|
1385
1384
|
*/
|
|
1386
|
-
|
|
1385
|
+
BillingItem?: string;
|
|
1387
1386
|
/**
|
|
1388
|
-
*
|
|
1387
|
+
* 该计费项在周期内的原始用量汇总,单位:tokens。
|
|
1389
1388
|
*/
|
|
1390
|
-
|
|
1389
|
+
TotalQty?: number;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* DescribeTokenPlanApiKeyUsageDetail返回参数结构体
|
|
1393
|
+
*/
|
|
1394
|
+
export interface DescribeTokenPlanApiKeyUsageDetailResponse {
|
|
1391
1395
|
/**
|
|
1392
|
-
*
|
|
1396
|
+
* 翻页上下文,传入下一次请求的 Context 参数继续翻页。
|
|
1393
1397
|
*/
|
|
1394
|
-
|
|
1398
|
+
Context?: string;
|
|
1395
1399
|
/**
|
|
1396
|
-
*
|
|
1400
|
+
* 是否已到末尾,为 true 时无需继续翻页。
|
|
1397
1401
|
*/
|
|
1398
|
-
|
|
1402
|
+
ListOver?: boolean;
|
|
1399
1403
|
/**
|
|
1400
|
-
*
|
|
1404
|
+
* 调用明细列表。
|
|
1401
1405
|
*/
|
|
1402
|
-
|
|
1406
|
+
List?: Array<UsageDetailItem>;
|
|
1403
1407
|
/**
|
|
1404
|
-
*
|
|
1408
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
1405
1409
|
*/
|
|
1406
|
-
|
|
1410
|
+
ProductType?: string;
|
|
1407
1411
|
/**
|
|
1408
|
-
*
|
|
1412
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1409
1413
|
*/
|
|
1410
|
-
|
|
1414
|
+
RequestId?: string;
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* ModifyApiKeyInfo请求参数结构体
|
|
1418
|
+
*/
|
|
1419
|
+
export type ModifyApiKeyInfoRequest = null;
|
|
1420
|
+
/**
|
|
1421
|
+
* Token Plan 套餐列表项
|
|
1422
|
+
*/
|
|
1423
|
+
export interface TokenPlanListItem {
|
|
1411
1424
|
/**
|
|
1412
|
-
*
|
|
1425
|
+
* 套餐 ID。
|
|
1413
1426
|
*/
|
|
1414
|
-
|
|
1427
|
+
TeamId?: string;
|
|
1415
1428
|
/**
|
|
1416
|
-
*
|
|
1429
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
1417
1430
|
*/
|
|
1418
|
-
|
|
1431
|
+
ProductType?: string;
|
|
1419
1432
|
/**
|
|
1420
|
-
*
|
|
1433
|
+
* 套餐名称。最大 128 字符。
|
|
1421
1434
|
*/
|
|
1422
|
-
|
|
1435
|
+
Name?: string;
|
|
1423
1436
|
/**
|
|
1424
|
-
*
|
|
1437
|
+
* 账号 APP ID。
|
|
1425
1438
|
*/
|
|
1426
|
-
|
|
1439
|
+
AppId?: string;
|
|
1427
1440
|
/**
|
|
1428
|
-
*
|
|
1441
|
+
* 主账号 UIN。
|
|
1429
1442
|
*/
|
|
1430
|
-
|
|
1431
|
-
}
|
|
1432
|
-
/**
|
|
1433
|
-
* CreateTokenPlanTeamOrderAndBuy返回参数结构体
|
|
1434
|
-
*/
|
|
1435
|
-
export interface CreateTokenPlanTeamOrderAndBuyResponse {
|
|
1443
|
+
Uin?: string;
|
|
1436
1444
|
/**
|
|
1437
|
-
*
|
|
1445
|
+
* 套餐状态。取值:enable(启用)、disable(停用)。
|
|
1438
1446
|
*/
|
|
1439
|
-
|
|
1447
|
+
Status?: string;
|
|
1440
1448
|
/**
|
|
1441
|
-
*
|
|
1449
|
+
* 套餐关停原因。取值:NORMAL(正常)、ISOLATED(隔离/欠费)、FROZEN(冻结)、EXHAUSTED(额度耗尽)、DESTROYED(已销毁)
|
|
1442
1450
|
*/
|
|
1443
|
-
|
|
1444
|
-
}
|
|
1445
|
-
/**
|
|
1446
|
-
* 模型规格信息
|
|
1447
|
-
*/
|
|
1448
|
-
export interface ModelSpec {
|
|
1451
|
+
StopReason?: string;
|
|
1449
1452
|
/**
|
|
1450
|
-
*
|
|
1453
|
+
* 可创建 API Key 上限。
|
|
1451
1454
|
*/
|
|
1452
|
-
|
|
1455
|
+
ApiKeyMax?: number;
|
|
1453
1456
|
/**
|
|
1454
|
-
*
|
|
1457
|
+
* 云计费预付费资源包 ID。
|
|
1455
1458
|
*/
|
|
1456
|
-
|
|
1459
|
+
PrepayResourceID?: string;
|
|
1457
1460
|
/**
|
|
1458
|
-
*
|
|
1461
|
+
* 创建人。若为子账号创建的套餐,则该值为子账号UIN。
|
|
1459
1462
|
*/
|
|
1460
|
-
|
|
1463
|
+
Creator?: string;
|
|
1461
1464
|
/**
|
|
1462
|
-
*
|
|
1465
|
+
* 创建时间。
|
|
1463
1466
|
*/
|
|
1464
|
-
|
|
1467
|
+
CreatedAt?: string;
|
|
1465
1468
|
/**
|
|
1466
|
-
*
|
|
1469
|
+
* 更新时间。
|
|
1467
1470
|
*/
|
|
1468
|
-
|
|
1471
|
+
UpdatedAt?: string;
|
|
1469
1472
|
/**
|
|
1470
|
-
*
|
|
1473
|
+
* 套餐包基本信息。
|
|
1471
1474
|
*/
|
|
1472
|
-
|
|
1475
|
+
PackageInfo?: TokenPlanPackageInfo;
|
|
1473
1476
|
/**
|
|
1474
|
-
*
|
|
1477
|
+
* 是否开启自动续费。取值:0(未开启),1(开启)
|
|
1475
1478
|
*/
|
|
1476
|
-
|
|
1479
|
+
AutoRenewFlag?: number;
|
|
1477
1480
|
}
|
|
1478
1481
|
/**
|
|
1479
|
-
*
|
|
1482
|
+
* DescribeApiKey请求参数结构体
|
|
1480
1483
|
*/
|
|
1481
|
-
export interface
|
|
1484
|
+
export interface DescribeApiKeyRequest {
|
|
1482
1485
|
/**
|
|
1483
|
-
*
|
|
1486
|
+
* 平台类型。当前支持填值:maas
|
|
1484
1487
|
*/
|
|
1485
|
-
|
|
1488
|
+
Platform: string;
|
|
1486
1489
|
/**
|
|
1487
|
-
*
|
|
1490
|
+
* API 密钥 ID,与 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
1488
1491
|
*/
|
|
1489
|
-
|
|
1492
|
+
ApiKeyId?: string;
|
|
1490
1493
|
/**
|
|
1491
|
-
*
|
|
1494
|
+
* API 密钥明文,与 ApiKeyId 至少需传入其一。
|
|
1492
1495
|
*/
|
|
1493
|
-
|
|
1496
|
+
ApiKey?: string;
|
|
1494
1497
|
}
|
|
1495
1498
|
/**
|
|
1496
|
-
*
|
|
1499
|
+
* DescribeUsageRankList请求参数结构体
|
|
1497
1500
|
*/
|
|
1498
|
-
export interface
|
|
1501
|
+
export interface DescribeUsageRankListRequest {
|
|
1499
1502
|
/**
|
|
1500
|
-
*
|
|
1503
|
+
* <p>统计维度。取值:apikey(按 APIKey 统计)、endpoint(按接入点统计)、model(按模型统计)。</p>
|
|
1501
1504
|
*/
|
|
1502
|
-
|
|
1505
|
+
Dimension: string;
|
|
1503
1506
|
/**
|
|
1504
|
-
*
|
|
1507
|
+
* <p>起始时间(闭区间),RFC3339 格式。</p>
|
|
1505
1508
|
*/
|
|
1506
|
-
|
|
1509
|
+
StartTime: string;
|
|
1507
1510
|
/**
|
|
1508
|
-
*
|
|
1511
|
+
* <p>结束时间(开区间),RFC3339 格式。与 StartTime 的跨度最大 90 天。</p>
|
|
1509
1512
|
*/
|
|
1510
|
-
|
|
1513
|
+
EndTime: string;
|
|
1511
1514
|
/**
|
|
1512
|
-
*
|
|
1515
|
+
* <p>指标族切换字段。</p><ul><li>tokens(默认):Token 消耗图(statistics=sum),支持 Dimension = apikey/endpoint/model</li><li>search【待上线】:联网搜索调用次数(statistics=sum),仅支持 Dimension = model</li><li>其他值返回 InvalidParameter。</li></ul><p>枚举值:</p><ul><li>tokens: tokens</li></ul>
|
|
1513
1516
|
*/
|
|
1514
|
-
|
|
1515
|
-
}
|
|
1516
|
-
/**
|
|
1517
|
-
* DescribeTokenPlanList请求参数结构体
|
|
1518
|
-
*/
|
|
1519
|
-
export interface DescribeTokenPlanListRequest {
|
|
1517
|
+
MetricType?: string;
|
|
1520
1518
|
/**
|
|
1521
|
-
*
|
|
1519
|
+
* <p>维度过滤值。空字符串表示查询全部对象,非空时仅查询指定单个对象(如指定 APIKey ID)。最大 256 字符。</p>
|
|
1522
1520
|
*/
|
|
1523
|
-
|
|
1521
|
+
Target?: string;
|
|
1524
1522
|
/**
|
|
1525
|
-
*
|
|
1523
|
+
* <p>统计粒度(秒)。取值:60、300、3600、86400。必须不小于跨度对应下限:跨度 ≤ 1 天 → 60;1 ~ 5 天 → 300;5 ~ 10 天 → 3600;> 10 天 → 86400。仅 ShowAll=false 时使用。</p>
|
|
1526
1524
|
*/
|
|
1527
|
-
|
|
1525
|
+
Period?: number;
|
|
1528
1526
|
/**
|
|
1529
|
-
*
|
|
1527
|
+
* <p>翻页起点,从 0 起,默认 0。ShowAll=true 时忽略。页大小固定为 10。</p>
|
|
1530
1528
|
*/
|
|
1531
|
-
|
|
1529
|
+
Offset?: number;
|
|
1532
1530
|
/**
|
|
1533
|
-
*
|
|
1531
|
+
* <p>是否返回全量结果。</p><ul><li>false(默认):按 Offset 分页返回 TopList(每页 10 条),每个对象包含<br>Series 时序点用于绘制曲线。</li><li>true:忽略 Offset,返回全量对象列表,不返回 Series(CSV 导出场景)。</li></ul>
|
|
1534
1532
|
*/
|
|
1535
|
-
|
|
1533
|
+
ShowAll?: boolean;
|
|
1536
1534
|
}
|
|
1537
1535
|
/**
|
|
1538
|
-
*
|
|
1536
|
+
* CreateGlossaryEntries请求参数结构体
|
|
1539
1537
|
*/
|
|
1540
|
-
export interface
|
|
1538
|
+
export interface CreateGlossaryEntriesRequest {
|
|
1541
1539
|
/**
|
|
1542
|
-
*
|
|
1540
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
1543
1541
|
*/
|
|
1544
|
-
|
|
1542
|
+
GlossaryId: string;
|
|
1545
1543
|
/**
|
|
1546
|
-
*
|
|
1544
|
+
* 术语条目列表。单次最多 100 个。
|
|
1547
1545
|
*/
|
|
1548
|
-
|
|
1546
|
+
Entries: Array<GlossaryEntryInput>;
|
|
1549
1547
|
}
|
|
1550
1548
|
/**
|
|
1551
|
-
*
|
|
1549
|
+
* DescribeGlossaries返回参数结构体
|
|
1552
1550
|
*/
|
|
1553
|
-
export interface
|
|
1551
|
+
export interface DescribeGlossariesResponse {
|
|
1554
1552
|
/**
|
|
1555
|
-
*
|
|
1553
|
+
* 术语库列表。
|
|
1556
1554
|
*/
|
|
1557
|
-
|
|
1555
|
+
Items?: Array<GlossaryItem>;
|
|
1556
|
+
/**
|
|
1557
|
+
* 符合条件的术语库总数。
|
|
1558
|
+
*/
|
|
1559
|
+
TotalCount?: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* 当前页码。
|
|
1562
|
+
*/
|
|
1563
|
+
Current?: number;
|
|
1564
|
+
/**
|
|
1565
|
+
* 每页大小。
|
|
1566
|
+
*/
|
|
1567
|
+
PageSize?: number;
|
|
1558
1568
|
/**
|
|
1559
1569
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1560
1570
|
*/
|
|
1561
1571
|
RequestId?: string;
|
|
1562
1572
|
}
|
|
1563
1573
|
/**
|
|
1564
|
-
*
|
|
1574
|
+
* 批量创建失败项
|
|
1565
1575
|
*/
|
|
1566
|
-
export interface
|
|
1576
|
+
export interface BatchCreateFailedItem {
|
|
1567
1577
|
/**
|
|
1568
|
-
*
|
|
1578
|
+
* 失败项的序号(从 1 开始,对应后缀编号)。
|
|
1569
1579
|
*/
|
|
1570
|
-
|
|
1580
|
+
Index?: number;
|
|
1571
1581
|
/**
|
|
1572
|
-
*
|
|
1582
|
+
* 失败项的名称。
|
|
1573
1583
|
*/
|
|
1574
1584
|
Name?: string;
|
|
1575
1585
|
/**
|
|
1576
|
-
*
|
|
1577
|
-
*/
|
|
1578
|
-
AppId?: string;
|
|
1579
|
-
/**
|
|
1580
|
-
* 主账号 UIN。
|
|
1581
|
-
*/
|
|
1582
|
-
Uin?: string;
|
|
1583
|
-
/**
|
|
1584
|
-
* 状态。取值:enable(启用)、disable(停用)。
|
|
1586
|
+
* 失败原因。
|
|
1585
1587
|
*/
|
|
1586
|
-
|
|
1588
|
+
Reason?: string;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* CreateApiKey返回参数结构体
|
|
1592
|
+
*/
|
|
1593
|
+
export interface CreateApiKeyResponse {
|
|
1587
1594
|
/**
|
|
1588
|
-
*
|
|
1595
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1589
1596
|
*/
|
|
1590
|
-
|
|
1597
|
+
RequestId?: string;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* 模型规格信息
|
|
1601
|
+
*/
|
|
1602
|
+
export interface ModelSpec {
|
|
1591
1603
|
/**
|
|
1592
|
-
*
|
|
1604
|
+
* 每分钟处理 Token 数(Tokens Per Minute)。
|
|
1593
1605
|
*/
|
|
1594
|
-
|
|
1606
|
+
TPM?: string;
|
|
1595
1607
|
/**
|
|
1596
|
-
*
|
|
1608
|
+
* 每分钟请求数(Queries Per Minute)。
|
|
1597
1609
|
*/
|
|
1598
|
-
|
|
1610
|
+
QPM?: string;
|
|
1599
1611
|
/**
|
|
1600
|
-
*
|
|
1612
|
+
* 最大输入 Token 长度。
|
|
1601
1613
|
*/
|
|
1602
|
-
|
|
1614
|
+
MaxInputToken?: string;
|
|
1603
1615
|
/**
|
|
1604
|
-
*
|
|
1616
|
+
* 最大输出 Token 长度。
|
|
1605
1617
|
*/
|
|
1606
|
-
|
|
1618
|
+
MaxOutputToken?: string;
|
|
1607
1619
|
/**
|
|
1608
|
-
*
|
|
1620
|
+
* 上下文窗口长度。
|
|
1609
1621
|
*/
|
|
1610
|
-
|
|
1622
|
+
ContextLength?: string;
|
|
1611
1623
|
/**
|
|
1612
|
-
*
|
|
1624
|
+
* 并发数。
|
|
1613
1625
|
*/
|
|
1614
|
-
|
|
1626
|
+
Concurrency?: string;
|
|
1615
1627
|
/**
|
|
1616
|
-
*
|
|
1628
|
+
* 输入要求描述。
|
|
1617
1629
|
*/
|
|
1618
|
-
|
|
1630
|
+
InputDescription?: string;
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* 主包Token总结
|
|
1634
|
+
*/
|
|
1635
|
+
export interface TokenSummary {
|
|
1619
1636
|
/**
|
|
1620
|
-
*
|
|
1637
|
+
* 套餐包当前计费周期序号
|
|
1621
1638
|
*/
|
|
1622
|
-
|
|
1639
|
+
CycleSeq?: number;
|
|
1623
1640
|
/**
|
|
1624
|
-
*
|
|
1641
|
+
* 套餐包计费周期开始时间(RFC3339)
|
|
1625
1642
|
*/
|
|
1626
|
-
|
|
1643
|
+
CycleStartTime?: string;
|
|
1627
1644
|
/**
|
|
1628
|
-
*
|
|
1645
|
+
* 套餐包当前计费周期结束时间(RFC3339)
|
|
1629
1646
|
*/
|
|
1630
|
-
|
|
1647
|
+
CycleEndTime?: string;
|
|
1631
1648
|
/**
|
|
1632
|
-
*
|
|
1649
|
+
* 按计费项分组的 token 汇总列表
|
|
1633
1650
|
*/
|
|
1634
|
-
|
|
1651
|
+
BillingItems?: Array<TokenSummaryBillingItem>;
|
|
1635
1652
|
}
|
|
1636
1653
|
/**
|
|
1637
1654
|
* CreateTokenPlanApiKeys请求参数结构体
|
|
@@ -1671,107 +1688,72 @@ export interface CreateTokenPlanApiKeysRequest {
|
|
|
1671
1688
|
TPM?: number;
|
|
1672
1689
|
}
|
|
1673
1690
|
/**
|
|
1674
|
-
*
|
|
1691
|
+
* DeleteTokenPlanApiKey请求参数结构体
|
|
1675
1692
|
*/
|
|
1676
|
-
export interface
|
|
1677
|
-
/**
|
|
1678
|
-
* <p>[tokens 族] 时间周期内的累计总 token 数。</p>
|
|
1679
|
-
*/
|
|
1680
|
-
TotalToken?: number;
|
|
1681
|
-
/**
|
|
1682
|
-
* <p>[tokens 族] 时间周期内的累计输入 token 数。</p>
|
|
1683
|
-
*/
|
|
1684
|
-
InputTotalToken?: number;
|
|
1685
|
-
/**
|
|
1686
|
-
* <p>[tokens 族] 时间周期内的累计输出 token 数。</p>
|
|
1687
|
-
*/
|
|
1688
|
-
OutputTotalToken?: number;
|
|
1689
|
-
/**
|
|
1690
|
-
* <p>[tokens 族] 时间周期内的累计读缓存 token 数(命中缓存部分)</p>
|
|
1691
|
-
*/
|
|
1692
|
-
CacheTotalToken?: number;
|
|
1693
|
-
/**
|
|
1694
|
-
* <p>[search 族] 整段累计联网搜索请求数</p>
|
|
1695
|
-
*/
|
|
1696
|
-
SearchRequestCount?: number;
|
|
1693
|
+
export interface DeleteTokenPlanApiKeyRequest {
|
|
1697
1694
|
/**
|
|
1698
|
-
*
|
|
1695
|
+
* API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
|
|
1699
1696
|
*/
|
|
1700
|
-
|
|
1697
|
+
ApiKeyId: string;
|
|
1701
1698
|
}
|
|
1702
1699
|
/**
|
|
1703
|
-
*
|
|
1700
|
+
* 计费条目
|
|
1704
1701
|
*/
|
|
1705
|
-
export interface
|
|
1706
|
-
/**
|
|
1707
|
-
* <p>回填请求的统计维度。</p>
|
|
1708
|
-
*/
|
|
1709
|
-
Dimension?: string;
|
|
1702
|
+
export interface ModelChargingItem {
|
|
1710
1703
|
/**
|
|
1711
|
-
*
|
|
1704
|
+
* 价格维度标识。取值:Input(输入)、Output(输出)、Cache(缓存命中)、Thinking(思考)、BatchInput(批量输入)、BatchOutput(批量输出)、BatchCache(批量缓存命中)、ImageInput(输入图片)、ImageOutput(输出图片)、Search(搜索调用)。
|
|
1712
1705
|
*/
|
|
1713
|
-
|
|
1706
|
+
PriceName?: string;
|
|
1714
1707
|
/**
|
|
1715
|
-
*
|
|
1708
|
+
* 价格维度展示名,后端直接提供当前语言文本(如 输入、Input),前端无需翻译。
|
|
1716
1709
|
*/
|
|
1717
|
-
|
|
1710
|
+
DisplayName?: string;
|
|
1718
1711
|
/**
|
|
1719
|
-
*
|
|
1712
|
+
* 价格数值。
|
|
1720
1713
|
*/
|
|
1721
|
-
|
|
1714
|
+
Price?: string;
|
|
1722
1715
|
/**
|
|
1723
|
-
*
|
|
1716
|
+
* 价格单位,后端直接提供当前语言文本(如 元/百万tokens、元/张、积分/次)。
|
|
1724
1717
|
*/
|
|
1725
|
-
|
|
1718
|
+
PriceUnit?: string;
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* DescribeTokenPlanApiKey返回参数结构体
|
|
1722
|
+
*/
|
|
1723
|
+
export interface DescribeTokenPlanApiKeyResponse {
|
|
1726
1724
|
/**
|
|
1727
|
-
*
|
|
1725
|
+
* API Key 详情信息。
|
|
1728
1726
|
*/
|
|
1729
|
-
|
|
1727
|
+
ApiKey?: TokenPlanApiKeyInfo;
|
|
1730
1728
|
/**
|
|
1731
|
-
*
|
|
1729
|
+
* API Key 额度及用量信息。
|
|
1732
1730
|
*/
|
|
1733
|
-
|
|
1731
|
+
Balance?: SubPackageBalance;
|
|
1734
1732
|
/**
|
|
1735
|
-
*
|
|
1733
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1736
1734
|
*/
|
|
1737
|
-
|
|
1735
|
+
RequestId?: string;
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* DescribeTokenPlanList请求参数结构体
|
|
1739
|
+
*/
|
|
1740
|
+
export interface DescribeTokenPlanListRequest {
|
|
1738
1741
|
/**
|
|
1739
|
-
*
|
|
1742
|
+
* 分页查询偏移量,默认为 0。
|
|
1740
1743
|
*/
|
|
1741
1744
|
Offset?: number;
|
|
1742
1745
|
/**
|
|
1743
|
-
*
|
|
1746
|
+
* 分页查询返回数量,默认为 20,最大值为 100。
|
|
1744
1747
|
*/
|
|
1745
1748
|
Limit?: number;
|
|
1746
1749
|
/**
|
|
1747
|
-
*
|
|
1748
|
-
*/
|
|
1749
|
-
Timestamps?: Array<number | bigint>;
|
|
1750
|
-
/**
|
|
1751
|
-
* <p>对象排行列表,按<code>MetricKeys[0]</code>降序排序。ShowAll=false 时为当前页 10 个对象(含 Series);ShowAll=true 时为全量对象(不含 Series,用于 CSV 导出)。</p>
|
|
1752
|
-
*/
|
|
1753
|
-
TopList?: Array<UsageRankItem>;
|
|
1754
|
-
/**
|
|
1755
|
-
* <p>分页统计结果</p>
|
|
1756
|
-
*/
|
|
1757
|
-
PageStats?: UsageStats;
|
|
1758
|
-
/**
|
|
1759
|
-
* <p>总统计结果</p>
|
|
1760
|
-
*/
|
|
1761
|
-
TotalStats?: UsageStats;
|
|
1762
|
-
/**
|
|
1763
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1750
|
+
* 分页查询过滤条件列表。支持的过滤字段:TeamId(套餐 ID)、Name(套餐名称)、StopReason(关停原因)、ProductType(套餐类型)。
|
|
1764
1751
|
*/
|
|
1765
|
-
|
|
1766
|
-
}
|
|
1767
|
-
/**
|
|
1768
|
-
* DeleteTokenPlanApiKey请求参数结构体
|
|
1769
|
-
*/
|
|
1770
|
-
export interface DeleteTokenPlanApiKeyRequest {
|
|
1752
|
+
Filters?: Array<RequestFilter>;
|
|
1771
1753
|
/**
|
|
1772
|
-
*
|
|
1754
|
+
* 排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
|
|
1773
1755
|
*/
|
|
1774
|
-
|
|
1756
|
+
Sorts?: Array<RequestSort>;
|
|
1775
1757
|
}
|
|
1776
1758
|
/**
|
|
1777
1759
|
* 模型体验包信息
|
|
@@ -1795,219 +1777,289 @@ export interface ModelFreeTrialInfo {
|
|
|
1795
1777
|
ValidityDays?: number;
|
|
1796
1778
|
}
|
|
1797
1779
|
/**
|
|
1798
|
-
*
|
|
1780
|
+
* Token Plan API Key 详情
|
|
1799
1781
|
*/
|
|
1800
|
-
export interface
|
|
1782
|
+
export interface TokenPlanApiKeyInfo {
|
|
1801
1783
|
/**
|
|
1802
|
-
* API
|
|
1784
|
+
* API Key ID。
|
|
1803
1785
|
*/
|
|
1804
1786
|
ApiKeyId?: string;
|
|
1805
1787
|
/**
|
|
1806
|
-
*
|
|
1788
|
+
* API Key 密钥值(脱敏)。
|
|
1789
|
+
*/
|
|
1790
|
+
ApiKey?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* API Key 名称。
|
|
1807
1793
|
*/
|
|
1808
1794
|
Name?: string;
|
|
1809
1795
|
/**
|
|
1810
|
-
*
|
|
1796
|
+
* 所属套餐 ID。
|
|
1811
1797
|
*/
|
|
1812
|
-
|
|
1798
|
+
TeamId?: string;
|
|
1813
1799
|
/**
|
|
1814
|
-
*
|
|
1800
|
+
* 账号APP ID。
|
|
1801
|
+
*/
|
|
1802
|
+
AppId?: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* 主账号 UIN。
|
|
1805
|
+
*/
|
|
1806
|
+
Uin?: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* API Key 可用模型列表(JSON 数组字符串)。
|
|
1809
|
+
*/
|
|
1810
|
+
AllowedModels?: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* API Key 是否可用。取值:enable(启用)、disable(停用)。
|
|
1815
1813
|
*/
|
|
1816
|
-
|
|
1814
|
+
Status?: string;
|
|
1817
1815
|
/**
|
|
1818
|
-
*
|
|
1816
|
+
* API Key 停用原因。取值:NORMAL(正常,默认值),QUOTA_EXHAUSTED(API Key额度包耗尽),ABNORMAL(异常,需人工介入)
|
|
1819
1817
|
*/
|
|
1820
|
-
|
|
1818
|
+
StopReason?: string;
|
|
1821
1819
|
/**
|
|
1822
|
-
*
|
|
1820
|
+
* 用户侧开关。取值:enable(启用)、disable(停用)。
|
|
1823
1821
|
*/
|
|
1824
|
-
|
|
1822
|
+
UseStatus?: string;
|
|
1825
1823
|
/**
|
|
1826
|
-
*
|
|
1824
|
+
* 密钥版本号。
|
|
1827
1825
|
*/
|
|
1828
|
-
|
|
1826
|
+
KeyVersion?: number;
|
|
1829
1827
|
/**
|
|
1830
|
-
*
|
|
1828
|
+
* 最近一次重置时间。(ISO 8601)
|
|
1831
1829
|
*/
|
|
1832
|
-
|
|
1830
|
+
LastRotatedAt?: string;
|
|
1833
1831
|
/**
|
|
1834
|
-
*
|
|
1832
|
+
* 创建人,如果是子账号创建,则该值为子账号UIN。
|
|
1835
1833
|
*/
|
|
1836
|
-
|
|
1834
|
+
Creator?: string;
|
|
1837
1835
|
/**
|
|
1838
|
-
*
|
|
1836
|
+
* 创建时间。
|
|
1839
1837
|
*/
|
|
1840
|
-
|
|
1838
|
+
CreatedAt?: string;
|
|
1841
1839
|
/**
|
|
1842
|
-
*
|
|
1840
|
+
* 更新时间。
|
|
1843
1841
|
*/
|
|
1844
|
-
|
|
1842
|
+
UpdatedAt?: string;
|
|
1845
1843
|
/**
|
|
1846
|
-
*
|
|
1844
|
+
* TPM 限制(Tokens Per Minute)。
|
|
1847
1845
|
*/
|
|
1848
|
-
|
|
1846
|
+
TPM?: number;
|
|
1849
1847
|
/**
|
|
1850
|
-
*
|
|
1848
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
1851
1849
|
*/
|
|
1852
|
-
|
|
1850
|
+
ProductType?: string;
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* ModifyTokenPlanApiKey请求参数结构体
|
|
1854
|
+
*/
|
|
1855
|
+
export interface ModifyTokenPlanApiKeyRequest {
|
|
1853
1856
|
/**
|
|
1854
|
-
*
|
|
1857
|
+
* API Key ID。
|
|
1855
1858
|
*/
|
|
1856
|
-
|
|
1859
|
+
ApiKeyId: string;
|
|
1857
1860
|
/**
|
|
1858
|
-
*
|
|
1861
|
+
* 可用模型列表。不传则不修改。
|
|
1862
|
+
|
|
1863
|
+
- 如果套餐类型为企业版专业套餐:
|
|
1864
|
+
1)传入“all“ :使用套餐支持的所有模型
|
|
1865
|
+
2)传入 Model ID:指定具体模型。“all“和具体的 Model ID 不能同时传入。
|
|
1866
|
+
|
|
1867
|
+
- 如果套餐类型为企业版轻享套餐,不允许传该参数。
|
|
1859
1868
|
*/
|
|
1860
|
-
|
|
1869
|
+
AllowedModels?: Array<string>;
|
|
1861
1870
|
/**
|
|
1862
|
-
*
|
|
1871
|
+
* 独占额度,不传则不修改。单位说明:
|
|
1872
|
+
|
|
1873
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
1874
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
1863
1875
|
*/
|
|
1864
|
-
|
|
1876
|
+
ExclusiveQuota?: number;
|
|
1865
1877
|
/**
|
|
1866
|
-
*
|
|
1878
|
+
* 总额度上限。-1 表示不限,必须为 -1 或 >= API Key 当前的 ExclusiveQuota(独占额度),不传则不修改。单位说明如下:
|
|
1879
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
1880
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
1867
1881
|
*/
|
|
1868
|
-
|
|
1882
|
+
TotalQuota?: number;
|
|
1869
1883
|
/**
|
|
1870
|
-
*
|
|
1884
|
+
* 是否启用该 API Key。取值:enable(启用)、disable(停用),不传则不修改。
|
|
1871
1885
|
*/
|
|
1872
|
-
|
|
1886
|
+
UseStatus?: string;
|
|
1873
1887
|
/**
|
|
1874
|
-
*
|
|
1888
|
+
* TPM(Tokens Per Minute)限制。不传则不修改。必须 >= 0 且 <= 套餐 TPM。
|
|
1875
1889
|
*/
|
|
1876
|
-
|
|
1890
|
+
TPM?: number;
|
|
1877
1891
|
}
|
|
1878
1892
|
/**
|
|
1879
|
-
*
|
|
1893
|
+
* CreateGlossary请求参数结构体
|
|
1880
1894
|
*/
|
|
1881
|
-
export interface
|
|
1882
|
-
/**
|
|
1883
|
-
* 套餐 ID。可通过DescribeTokenPlanList接口获取。
|
|
1884
|
-
*/
|
|
1885
|
-
TeamId: string;
|
|
1895
|
+
export interface CreateGlossaryRequest {
|
|
1886
1896
|
/**
|
|
1887
|
-
*
|
|
1897
|
+
* 术语库名称。最大 50 字符。
|
|
1888
1898
|
*/
|
|
1889
|
-
|
|
1899
|
+
Name: string;
|
|
1890
1900
|
/**
|
|
1891
|
-
*
|
|
1901
|
+
* 源语言代码。最大 16 字符。例如:zh(中文)、en(英文)。
|
|
1892
1902
|
*/
|
|
1893
|
-
|
|
1903
|
+
Source: string;
|
|
1894
1904
|
/**
|
|
1895
|
-
*
|
|
1905
|
+
* 目标语言代码。最大 16 字符。例如:zh(中文)、en(英文)。
|
|
1896
1906
|
*/
|
|
1897
|
-
|
|
1907
|
+
Target: string;
|
|
1898
1908
|
/**
|
|
1899
|
-
*
|
|
1909
|
+
* 术语库描述。最大 255 字符。
|
|
1900
1910
|
*/
|
|
1901
|
-
|
|
1911
|
+
Description?: string;
|
|
1902
1912
|
}
|
|
1903
1913
|
/**
|
|
1904
|
-
*
|
|
1914
|
+
* 排行列表中的单个对象用量项,含对象标识、时间周期内的统计值(Stats)和时间周期内的时序点列表(Series,仅 ShowAll=false 时返回)。
|
|
1905
1915
|
*/
|
|
1906
|
-
export interface
|
|
1916
|
+
export interface UsageRankItem {
|
|
1907
1917
|
/**
|
|
1908
|
-
*
|
|
1918
|
+
* 全局排名(从 1 起)。分页场景下仍为全量排序中的位次,非页内序号
|
|
1909
1919
|
*/
|
|
1910
|
-
|
|
1920
|
+
Rank?: number;
|
|
1911
1921
|
/**
|
|
1912
|
-
*
|
|
1922
|
+
* 对象标识。apikey 维度为 APIKey ID;endpoint 维度为接入点;model 维度为模型名。
|
|
1913
1923
|
*/
|
|
1914
|
-
|
|
1924
|
+
Key?: string;
|
|
1915
1925
|
/**
|
|
1916
|
-
* APIKey
|
|
1926
|
+
* 对象展示名。apikey 维度返回 APIKey 名称(已删除的 APIKey 仍保留原名);
|
|
1927
|
+
endpoint / model 维度等于 Key。
|
|
1917
1928
|
*/
|
|
1918
|
-
|
|
1929
|
+
Name?: string;
|
|
1919
1930
|
/**
|
|
1920
|
-
*
|
|
1931
|
+
* 时间周期内的统计值
|
|
1932
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1921
1933
|
*/
|
|
1922
|
-
|
|
1934
|
+
Stats?: UsageStats;
|
|
1923
1935
|
/**
|
|
1924
|
-
*
|
|
1936
|
+
* 时间周期内的时序点列表
|
|
1937
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1925
1938
|
*/
|
|
1926
|
-
|
|
1939
|
+
Series?: UsageSeries;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* CreateGlossary返回参数结构体
|
|
1943
|
+
*/
|
|
1944
|
+
export interface CreateGlossaryResponse {
|
|
1927
1945
|
/**
|
|
1928
|
-
*
|
|
1946
|
+
* 术语库 ID。
|
|
1929
1947
|
*/
|
|
1930
|
-
|
|
1948
|
+
GlossaryId?: string;
|
|
1931
1949
|
/**
|
|
1932
|
-
*
|
|
1950
|
+
* 术语库名称。
|
|
1933
1951
|
*/
|
|
1934
|
-
|
|
1952
|
+
Name?: string;
|
|
1935
1953
|
/**
|
|
1936
|
-
*
|
|
1954
|
+
* 创建时间。Unix 时间戳(毫秒)。
|
|
1937
1955
|
*/
|
|
1938
|
-
|
|
1956
|
+
CreatedAt?: number;
|
|
1939
1957
|
/**
|
|
1940
|
-
*
|
|
1958
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1941
1959
|
*/
|
|
1942
|
-
|
|
1960
|
+
RequestId?: string;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* ModifyGlossaryEntries请求参数结构体
|
|
1964
|
+
*/
|
|
1965
|
+
export interface ModifyGlossaryEntriesRequest {
|
|
1943
1966
|
/**
|
|
1944
|
-
*
|
|
1967
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
1945
1968
|
*/
|
|
1946
|
-
|
|
1969
|
+
GlossaryId: string;
|
|
1947
1970
|
/**
|
|
1948
|
-
*
|
|
1949
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1950
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1971
|
+
* 术语条目列表。单次最多 200 个。
|
|
1951
1972
|
*/
|
|
1952
|
-
|
|
1973
|
+
Entries: Array<ModifyGlossaryEntryInput>;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* RenewTokenPlanTeamOrder请求参数结构体
|
|
1977
|
+
*/
|
|
1978
|
+
export interface RenewTokenPlanTeamOrderRequest {
|
|
1953
1979
|
/**
|
|
1954
|
-
*
|
|
1955
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1956
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1980
|
+
* 套餐 ID。可通过 DescribeTokenPlanList 接口获取。
|
|
1957
1981
|
*/
|
|
1958
|
-
|
|
1982
|
+
TeamId: string;
|
|
1959
1983
|
/**
|
|
1960
|
-
*
|
|
1961
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1962
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1984
|
+
* 续费时长。单位:月。必须大于 0。
|
|
1963
1985
|
*/
|
|
1964
|
-
|
|
1986
|
+
TimeSpan: number;
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* 模型上线的站点、地域信息
|
|
1990
|
+
*/
|
|
1991
|
+
export interface ModelSiteRegion {
|
|
1965
1992
|
/**
|
|
1966
|
-
*
|
|
1967
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1968
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1993
|
+
* 站点标识。取值:domestic(国内站)、international(国际站)。
|
|
1969
1994
|
*/
|
|
1970
|
-
|
|
1995
|
+
Site?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* 该站点下可用的地域列表,遵循腾讯云标准地域编码(如 ap-guangzhou、ap-beijing、ap-singapore、na-siliconvalley 等)。为空数组时表示该站点无可用地域。
|
|
1998
|
+
*/
|
|
1999
|
+
Regions?: Array<string>;
|
|
1971
2000
|
}
|
|
1972
2001
|
/**
|
|
1973
|
-
*
|
|
2002
|
+
* ModifyApiKeyStatus返回参数结构体
|
|
1974
2003
|
*/
|
|
1975
|
-
export interface
|
|
2004
|
+
export interface ModifyApiKeyStatusResponse {
|
|
1976
2005
|
/**
|
|
1977
|
-
*
|
|
2006
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1978
2007
|
*/
|
|
1979
|
-
|
|
2008
|
+
RequestId?: string;
|
|
1980
2009
|
}
|
|
1981
2010
|
/**
|
|
1982
|
-
*
|
|
2011
|
+
* CreateTokenPlanTeamOrderAndBuy返回参数结构体
|
|
1983
2012
|
*/
|
|
1984
|
-
export interface
|
|
2013
|
+
export interface CreateTokenPlanTeamOrderAndBuyResponse {
|
|
1985
2014
|
/**
|
|
1986
|
-
*
|
|
2015
|
+
* 腾讯云订单 ID。用于关联一次购买操作下的所有子订单。
|
|
1987
2016
|
*/
|
|
1988
|
-
|
|
2017
|
+
BigOrderId?: string;
|
|
1989
2018
|
/**
|
|
1990
|
-
*
|
|
2019
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1991
2020
|
*/
|
|
1992
|
-
|
|
2021
|
+
RequestId?: string;
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* 过滤条件
|
|
2025
|
+
*/
|
|
2026
|
+
export interface RequestFilter {
|
|
1993
2027
|
/**
|
|
1994
|
-
*
|
|
2028
|
+
* 过滤字段名称。
|
|
1995
2029
|
*/
|
|
1996
|
-
|
|
2030
|
+
Name: string;
|
|
1997
2031
|
/**
|
|
1998
|
-
*
|
|
2032
|
+
* 过滤操作符。取值:EXACT(精确匹配)、FUZZY(模糊匹配)、NOT(排除匹配)。
|
|
1999
2033
|
*/
|
|
2000
|
-
|
|
2034
|
+
Op: string;
|
|
2001
2035
|
/**
|
|
2002
|
-
*
|
|
2036
|
+
* 过滤值列表。最多支持 10 个。
|
|
2003
2037
|
*/
|
|
2004
|
-
|
|
2038
|
+
Values: Array<string>;
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* ModifyTokenPlanApiKeySecret请求参数结构体
|
|
2042
|
+
*/
|
|
2043
|
+
export interface ModifyTokenPlanApiKeySecretRequest {
|
|
2005
2044
|
/**
|
|
2006
|
-
*
|
|
2045
|
+
* API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
|
|
2007
2046
|
*/
|
|
2008
|
-
|
|
2047
|
+
ApiKeyId: string;
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* 排序条件
|
|
2051
|
+
*/
|
|
2052
|
+
export interface RequestSort {
|
|
2009
2053
|
/**
|
|
2010
|
-
*
|
|
2054
|
+
* 排序字段名称。
|
|
2011
2055
|
*/
|
|
2012
|
-
|
|
2056
|
+
Name: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* 排序方向。取值:ASC(升序)、DESC(降序)。
|
|
2059
|
+
*/
|
|
2060
|
+
Order: string;
|
|
2013
2061
|
}
|
|
2062
|
+
/**
|
|
2063
|
+
* CreateApiKey请求参数结构体
|
|
2064
|
+
*/
|
|
2065
|
+
export type CreateApiKeyRequest = null;
|