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