tencentcloud-sdk-nodejs 4.1.263 → 4.1.265

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