tencentcloud-sdk-nodejs 4.1.247 → 4.1.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/sdk_version.js +1 -1
- package/es/services/cynosdb/v20190107/cynosdb_client.js +29 -8
- package/es/services/dataagent/v20250513/dataagent_client.js +6 -0
- package/es/services/mongodb/v20190725/mongodb_client.js +165 -153
- package/es/services/mps/v20190612/mps_client.js +10 -4
- package/es/services/ocr/v20181119/ocr_client.js +5 -8
- package/es/services/tokenhub/v20260322/tokenhub_client.js +43 -22
- package/es/services/tsf/v20180326/tsf_client.js +4 -73
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +212 -117
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +219 -341
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +83 -67
- package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +9 -9
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +141 -9
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +1 -1
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +36 -42
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +37 -9
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +54 -12
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +508 -123
- package/tencentcloud/services/dataagent/v20250513/dataagent_client.d.ts +9 -1
- package/tencentcloud/services/dataagent/v20250513/dataagent_client.js +12 -0
- package/tencentcloud/services/dataagent/v20250513/dataagent_models.d.ts +108 -6
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +43 -35
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +1 -1
- package/tencentcloud/services/hai/v20230812/hai_models.d.ts +10 -6
- package/tencentcloud/services/igtm/v20231024/igtm_models.d.ts +28 -20
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +32 -79
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +186 -170
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +274 -250
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +254 -104
- package/tencentcloud/services/mps/v20190612/mps_client.d.ts +14 -6
- package/tencentcloud/services/mps/v20190612/mps_client.js +19 -7
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +330 -160
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +11 -22
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +13 -26
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +204 -271
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +18 -10
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +23 -24
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +81 -39
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.js +107 -51
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +545 -230
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +20 -42
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -143
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -190
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +85 -1013
- package/tencentcloud/services/vdb/v20230616/vdb_models.d.ts +51 -39
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +78 -68
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +172 -119
|
@@ -1,3 +1,54 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* 绑定资源项
|
|
20
|
+
*/
|
|
21
|
+
export interface BindingItem {
|
|
22
|
+
/**
|
|
23
|
+
* 资源 ID(模型 ID 或服务 ID)。
|
|
24
|
+
*/
|
|
25
|
+
ResourceId: string;
|
|
26
|
+
/**
|
|
27
|
+
* 资源类型。取值:endpoint(服务)、model(模型)。
|
|
28
|
+
*/
|
|
29
|
+
ResourceType: string;
|
|
30
|
+
/**
|
|
31
|
+
* 资源状态
|
|
32
|
+
*/
|
|
33
|
+
Status?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* DescribeTokenPlanApiKeySecret返回参数结构体
|
|
37
|
+
*/
|
|
38
|
+
export interface DescribeTokenPlanApiKeySecretResponse {
|
|
39
|
+
/**
|
|
40
|
+
* APIKey ID。
|
|
41
|
+
*/
|
|
42
|
+
ApiKeyId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* APIKey 密钥值(明文)。请妥善保管。
|
|
45
|
+
*/
|
|
46
|
+
ApiKey?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
49
|
+
*/
|
|
50
|
+
RequestId?: string;
|
|
51
|
+
}
|
|
1
52
|
/**
|
|
2
53
|
* Token Plan API Key 列表项
|
|
3
54
|
*/
|
|
@@ -72,64 +123,26 @@ export interface TokenPlanApiKeyListItem {
|
|
|
72
123
|
ProductType?: string;
|
|
73
124
|
}
|
|
74
125
|
/**
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
export interface BindingItem {
|
|
78
|
-
/**
|
|
79
|
-
* 资源 ID(模型 ID 或服务 ID)。
|
|
80
|
-
*/
|
|
81
|
-
ResourceId: string;
|
|
82
|
-
/**
|
|
83
|
-
* 资源类型。取值:endpoint(服务)、model(模型)。
|
|
84
|
-
*/
|
|
85
|
-
ResourceType: string;
|
|
86
|
-
/**
|
|
87
|
-
* 资源状态
|
|
88
|
-
*/
|
|
89
|
-
Status?: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* DescribeTokenPlanApiKeySecret返回参数结构体
|
|
126
|
+
* 批量创建成功项
|
|
93
127
|
*/
|
|
94
|
-
export interface
|
|
128
|
+
export interface CreateApiKeysResultItem {
|
|
95
129
|
/**
|
|
96
130
|
* APIKey ID。
|
|
97
131
|
*/
|
|
98
132
|
ApiKeyId?: string;
|
|
99
|
-
/**
|
|
100
|
-
* APIKey 密钥值(明文)。请妥善保管。
|
|
101
|
-
*/
|
|
102
|
-
ApiKey?: string;
|
|
103
|
-
/**
|
|
104
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
105
|
-
*/
|
|
106
|
-
RequestId?: string;
|
|
107
133
|
}
|
|
108
134
|
/**
|
|
109
|
-
*
|
|
135
|
+
* 新建术语条目项
|
|
110
136
|
*/
|
|
111
|
-
export interface
|
|
112
|
-
/**
|
|
113
|
-
* 时间周期内的累计总 token 数。
|
|
114
|
-
*/
|
|
115
|
-
TotalToken?: number;
|
|
116
|
-
/**
|
|
117
|
-
* 时间周期内的累计输入 token 数。
|
|
118
|
-
*/
|
|
119
|
-
InputTotalToken?: number;
|
|
137
|
+
export interface GlossaryEntryInput {
|
|
120
138
|
/**
|
|
121
|
-
*
|
|
139
|
+
* 源语言术语。最大 1000 字符。
|
|
122
140
|
*/
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* 批量创建成功项
|
|
127
|
-
*/
|
|
128
|
-
export interface CreateApiKeysResultItem {
|
|
141
|
+
SourceTerm: string;
|
|
129
142
|
/**
|
|
130
|
-
*
|
|
143
|
+
* 目标语言术语。最大 1000 字符。
|
|
131
144
|
*/
|
|
132
|
-
|
|
145
|
+
TargetTerm: string;
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
148
|
* ModifyTokenPlanApiKeySecret返回参数结构体
|
|
@@ -166,54 +179,52 @@ export interface DescribeTokenPlanApiKeyListResponse {
|
|
|
166
179
|
RequestId?: string;
|
|
167
180
|
}
|
|
168
181
|
/**
|
|
169
|
-
*
|
|
182
|
+
* 删除术语条目项
|
|
170
183
|
*/
|
|
171
|
-
export interface
|
|
172
|
-
/**
|
|
173
|
-
* 统计维度。取值:apikey(按 APIKey 统计)、endpoint(按接入点统计)、model(按模型统计)。
|
|
174
|
-
*/
|
|
175
|
-
Dimension: string;
|
|
176
|
-
/**
|
|
177
|
-
* 起始时间(闭区间),RFC3339 格式。
|
|
178
|
-
*/
|
|
179
|
-
StartTime: string;
|
|
184
|
+
export interface DeleteGlossaryEntryInput {
|
|
180
185
|
/**
|
|
181
|
-
*
|
|
186
|
+
* 术语条目 ID。可通过 DescribeGlossaryEntries 接口获取。
|
|
182
187
|
*/
|
|
183
|
-
|
|
188
|
+
EntryId: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* DescribeTokenPlan请求参数结构体
|
|
192
|
+
*/
|
|
193
|
+
export interface DescribeTokenPlanRequest {
|
|
184
194
|
/**
|
|
185
|
-
*
|
|
195
|
+
* 套餐 ID。可通过 DescribeTokenPlanList 接口获取。
|
|
186
196
|
*/
|
|
187
|
-
|
|
197
|
+
TeamId: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 术语条目详情
|
|
201
|
+
*/
|
|
202
|
+
export interface GlossaryEntryItem {
|
|
188
203
|
/**
|
|
189
|
-
*
|
|
204
|
+
* 术语条目 ID。
|
|
190
205
|
*/
|
|
191
|
-
|
|
206
|
+
EntryId?: string;
|
|
192
207
|
/**
|
|
193
|
-
*
|
|
208
|
+
* 源语言术语。
|
|
194
209
|
*/
|
|
195
|
-
|
|
210
|
+
SourceTerm?: string;
|
|
196
211
|
/**
|
|
197
|
-
*
|
|
212
|
+
* 目标语言术语。
|
|
198
213
|
*/
|
|
199
|
-
|
|
214
|
+
TargetTerm?: string;
|
|
200
215
|
/**
|
|
201
|
-
*
|
|
202
|
-
- false(默认):按 Offset 分页返回 TopList(每页 10 条),每个对象包含
|
|
203
|
-
Series 时序点用于绘制曲线。
|
|
204
|
-
- true:忽略 Offset,返回全量对象列表,不返回 Series(CSV 导出场景)。
|
|
205
|
-
|
|
216
|
+
* 更新时间。Unix 时间戳(毫秒)。
|
|
206
217
|
*/
|
|
207
|
-
|
|
218
|
+
UpdatedAt?: number;
|
|
208
219
|
}
|
|
209
220
|
/**
|
|
210
|
-
*
|
|
221
|
+
* DeleteGlossary返回参数结构体
|
|
211
222
|
*/
|
|
212
|
-
export interface
|
|
223
|
+
export interface DeleteGlossaryResponse {
|
|
213
224
|
/**
|
|
214
|
-
*
|
|
225
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
215
226
|
*/
|
|
216
|
-
|
|
227
|
+
RequestId?: string;
|
|
217
228
|
}
|
|
218
229
|
/**
|
|
219
230
|
* DescribeTokenPlanApiKey返回参数结构体
|
|
@@ -286,6 +297,15 @@ export interface SubPackageBalance {
|
|
|
286
297
|
*/
|
|
287
298
|
Status?: number;
|
|
288
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* DeleteGlossaryEntries返回参数结构体
|
|
302
|
+
*/
|
|
303
|
+
export interface DeleteGlossaryEntriesResponse {
|
|
304
|
+
/**
|
|
305
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
306
|
+
*/
|
|
307
|
+
RequestId?: string;
|
|
308
|
+
}
|
|
289
309
|
/**
|
|
290
310
|
* DescribeApiKeyList返回参数结构体
|
|
291
311
|
*/
|
|
@@ -464,30 +484,98 @@ export interface UsageSeries {
|
|
|
464
484
|
OutputTotalToken?: string;
|
|
465
485
|
}
|
|
466
486
|
/**
|
|
467
|
-
*
|
|
487
|
+
* CreateGlossary请求参数结构体
|
|
468
488
|
*/
|
|
469
|
-
export interface
|
|
489
|
+
export interface CreateGlossaryRequest {
|
|
470
490
|
/**
|
|
471
|
-
*
|
|
491
|
+
* 术语库名称。最大 50 字符。
|
|
472
492
|
*/
|
|
473
|
-
|
|
493
|
+
Name: string;
|
|
474
494
|
/**
|
|
475
|
-
*
|
|
495
|
+
* 源语言代码。最大 16 字符。例如:zh(中文)、en(英文)。
|
|
476
496
|
*/
|
|
477
|
-
|
|
497
|
+
Source: string;
|
|
498
|
+
/**
|
|
499
|
+
* 目标语言代码。最大 16 字符。例如:zh(中文)、en(英文)。
|
|
500
|
+
*/
|
|
501
|
+
Target: string;
|
|
502
|
+
/**
|
|
503
|
+
* 术语库描述。最大 255 字符。
|
|
504
|
+
*/
|
|
505
|
+
Description?: string;
|
|
478
506
|
}
|
|
479
507
|
/**
|
|
480
|
-
*
|
|
508
|
+
* DescribeGlossaryEntries返回参数结构体
|
|
481
509
|
*/
|
|
482
|
-
export interface
|
|
510
|
+
export interface DescribeGlossaryEntriesResponse {
|
|
483
511
|
/**
|
|
484
|
-
*
|
|
512
|
+
* 术语条目列表。
|
|
485
513
|
*/
|
|
486
|
-
|
|
514
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
487
515
|
/**
|
|
488
|
-
*
|
|
516
|
+
* 符合条件的术语条目总数。
|
|
489
517
|
*/
|
|
490
|
-
|
|
518
|
+
Total?: number;
|
|
519
|
+
/**
|
|
520
|
+
* 当前页码。
|
|
521
|
+
*/
|
|
522
|
+
Page?: number;
|
|
523
|
+
/**
|
|
524
|
+
* 每页大小。
|
|
525
|
+
*/
|
|
526
|
+
PageSize?: number;
|
|
527
|
+
/**
|
|
528
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
529
|
+
*/
|
|
530
|
+
RequestId?: string;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* DeleteGlossary请求参数结构体
|
|
534
|
+
*/
|
|
535
|
+
export interface DeleteGlossaryRequest {
|
|
536
|
+
/**
|
|
537
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
538
|
+
*/
|
|
539
|
+
GlossaryId: string;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* DescribeGlossaryEntries请求参数结构体
|
|
543
|
+
*/
|
|
544
|
+
export interface DescribeGlossaryEntriesRequest {
|
|
545
|
+
/**
|
|
546
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
547
|
+
*/
|
|
548
|
+
GlossaryId: string;
|
|
549
|
+
/**
|
|
550
|
+
* 页码。默认为 1。
|
|
551
|
+
*/
|
|
552
|
+
Page?: number;
|
|
553
|
+
/**
|
|
554
|
+
* 每页大小。默认为 20,最大值为 200。
|
|
555
|
+
*/
|
|
556
|
+
PageSize?: number;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* DeleteGlossaryEntries请求参数结构体
|
|
560
|
+
*/
|
|
561
|
+
export interface DeleteGlossaryEntriesRequest {
|
|
562
|
+
/**
|
|
563
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
564
|
+
*/
|
|
565
|
+
GlossaryId: string;
|
|
566
|
+
/**
|
|
567
|
+
* 待删除的术语条目列表。单次最多 200 个。
|
|
568
|
+
*/
|
|
569
|
+
Entries: Array<DeleteGlossaryEntryInput>;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* CreateGlossaryEntries返回参数结构体
|
|
573
|
+
*/
|
|
574
|
+
export interface CreateGlossaryEntriesResponse {
|
|
575
|
+
/**
|
|
576
|
+
* 创建成功的术语条目列表。
|
|
577
|
+
*/
|
|
578
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
491
579
|
/**
|
|
492
580
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
493
581
|
*/
|
|
@@ -536,6 +624,63 @@ export interface DescribeApiKeyRequest {
|
|
|
536
624
|
*/
|
|
537
625
|
ApiKey?: string;
|
|
538
626
|
}
|
|
627
|
+
/**
|
|
628
|
+
* 修改术语条目项
|
|
629
|
+
*/
|
|
630
|
+
export interface ModifyGlossaryEntryInput {
|
|
631
|
+
/**
|
|
632
|
+
* 术语条目 ID。可通过 DescribeGlossaryEntries 接口获取。
|
|
633
|
+
*/
|
|
634
|
+
EntryId: string;
|
|
635
|
+
/**
|
|
636
|
+
* 源语言术语。最大 1000 字符。不传则保持不变。
|
|
637
|
+
*/
|
|
638
|
+
SourceTerm?: string;
|
|
639
|
+
/**
|
|
640
|
+
* 目标语言术语。最大 1000 字符。不传则保持不变。
|
|
641
|
+
*/
|
|
642
|
+
TargetTerm?: string;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* ModifyTokenPlanApiKey请求参数结构体
|
|
646
|
+
*/
|
|
647
|
+
export interface ModifyTokenPlanApiKeyRequest {
|
|
648
|
+
/**
|
|
649
|
+
* API Key ID。
|
|
650
|
+
*/
|
|
651
|
+
ApiKeyId: string;
|
|
652
|
+
/**
|
|
653
|
+
* 可用模型列表。不传则不修改。
|
|
654
|
+
|
|
655
|
+
- 如果套餐类型为企业版专业套餐:
|
|
656
|
+
1)传入“all“ :使用套餐支持的所有模型
|
|
657
|
+
2)传入 Model ID:指定具体模型。“all“和具体的 Model ID 不能同时传入。
|
|
658
|
+
|
|
659
|
+
- 如果套餐类型为企业版轻享套餐,不允许传该参数。
|
|
660
|
+
*/
|
|
661
|
+
AllowedModels?: Array<string>;
|
|
662
|
+
/**
|
|
663
|
+
* 独占额度,不传则不修改。单位说明:
|
|
664
|
+
|
|
665
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
666
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
667
|
+
*/
|
|
668
|
+
ExclusiveQuota?: number;
|
|
669
|
+
/**
|
|
670
|
+
* 总额度上限。-1 表示不限,必须为 -1 或 >= API Key 当前的 ExclusiveQuota(独占额度),不传则不修改。单位说明如下:
|
|
671
|
+
- 套餐类型为专业套餐,单位取值为积分;
|
|
672
|
+
- 套餐类型为轻享套餐,单位取值为 token。
|
|
673
|
+
*/
|
|
674
|
+
TotalQuota?: number;
|
|
675
|
+
/**
|
|
676
|
+
* 是否启用该 API Key。取值:enable(启用)、disable(停用),不传则不修改。
|
|
677
|
+
*/
|
|
678
|
+
UseStatus?: string;
|
|
679
|
+
/**
|
|
680
|
+
* TPM(Tokens Per Minute)限制。不传则不修改。必须 >= 0 且 <= 套餐 TPM。
|
|
681
|
+
*/
|
|
682
|
+
TPM?: number;
|
|
683
|
+
}
|
|
539
684
|
/**
|
|
540
685
|
* Token 汇总计费项
|
|
541
686
|
*/
|
|
@@ -658,29 +803,25 @@ export interface TokenPlanListItem {
|
|
|
658
803
|
AutoRenewFlag?: number;
|
|
659
804
|
}
|
|
660
805
|
/**
|
|
661
|
-
*
|
|
806
|
+
* CreateGlossary返回参数结构体
|
|
662
807
|
*/
|
|
663
|
-
export interface
|
|
808
|
+
export interface CreateGlossaryResponse {
|
|
664
809
|
/**
|
|
665
|
-
*
|
|
810
|
+
* 术语库 ID。
|
|
666
811
|
*/
|
|
667
|
-
|
|
812
|
+
GlossaryId?: string;
|
|
668
813
|
/**
|
|
669
|
-
*
|
|
814
|
+
* 术语库名称。
|
|
670
815
|
*/
|
|
671
|
-
|
|
816
|
+
Name?: string;
|
|
672
817
|
/**
|
|
673
|
-
*
|
|
818
|
+
* 创建时间。Unix 时间戳(毫秒)。
|
|
674
819
|
*/
|
|
675
|
-
|
|
820
|
+
CreatedAt?: number;
|
|
676
821
|
/**
|
|
677
|
-
*
|
|
678
|
-
*/
|
|
679
|
-
Filters?: Array<RequestFilter>;
|
|
680
|
-
/**
|
|
681
|
-
* 分页查询排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
|
|
822
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
682
823
|
*/
|
|
683
|
-
|
|
824
|
+
RequestId?: string;
|
|
684
825
|
}
|
|
685
826
|
/**
|
|
686
827
|
* CreateTokenPlanTeamOrderAndBuy请求参数结构体
|
|
@@ -708,44 +849,17 @@ export interface CreateTokenPlanTeamOrderAndBuyRequest {
|
|
|
708
849
|
EnableAutoRenew?: boolean;
|
|
709
850
|
}
|
|
710
851
|
/**
|
|
711
|
-
*
|
|
852
|
+
* ModifyGlossaryEntries请求参数结构体
|
|
712
853
|
*/
|
|
713
|
-
export interface
|
|
714
|
-
/**
|
|
715
|
-
* API Key ID。
|
|
716
|
-
*/
|
|
717
|
-
ApiKeyId: string;
|
|
718
|
-
/**
|
|
719
|
-
* 可用模型列表。不传则不修改。
|
|
720
|
-
|
|
721
|
-
- 如果套餐类型为企业版专业套餐:
|
|
722
|
-
1)传入“all“ :使用套餐支持的所有模型
|
|
723
|
-
2)传入 Model ID:指定具体模型。“all“和具体的 Model ID 不能同时传入。
|
|
724
|
-
|
|
725
|
-
- 如果套餐类型为企业版轻享套餐,不允许传该参数。
|
|
726
|
-
*/
|
|
727
|
-
AllowedModels?: Array<string>;
|
|
854
|
+
export interface ModifyGlossaryEntriesRequest {
|
|
728
855
|
/**
|
|
729
|
-
*
|
|
730
|
-
|
|
731
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
732
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
856
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
733
857
|
*/
|
|
734
|
-
|
|
858
|
+
GlossaryId: string;
|
|
735
859
|
/**
|
|
736
|
-
*
|
|
737
|
-
- 套餐类型为专业套餐,单位取值为积分;
|
|
738
|
-
- 套餐类型为轻享套餐,单位取值为 token。
|
|
739
|
-
*/
|
|
740
|
-
TotalQuota?: number;
|
|
741
|
-
/**
|
|
742
|
-
* 是否启用该 API Key。取值:enable(启用)、disable(停用),不传则不修改。
|
|
860
|
+
* 术语条目列表。单次最多 200 个。
|
|
743
861
|
*/
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* TPM(Tokens Per Minute)限制。不传则不修改。必须 >= 0 且 <= 套餐 TPM。
|
|
747
|
-
*/
|
|
748
|
-
TPM?: number;
|
|
862
|
+
Entries: Array<ModifyGlossaryEntryInput>;
|
|
749
863
|
}
|
|
750
864
|
/**
|
|
751
865
|
* RenewTokenPlanTeamOrder请求参数结构体
|
|
@@ -760,6 +874,27 @@ export interface RenewTokenPlanTeamOrderRequest {
|
|
|
760
874
|
*/
|
|
761
875
|
TimeSpan: number;
|
|
762
876
|
}
|
|
877
|
+
/**
|
|
878
|
+
* DescribeGlossaries请求参数结构体
|
|
879
|
+
*/
|
|
880
|
+
export interface DescribeGlossariesRequest {
|
|
881
|
+
/**
|
|
882
|
+
* 返回数量。默认为 20,最大值为 100。
|
|
883
|
+
*/
|
|
884
|
+
Limit?: number;
|
|
885
|
+
/**
|
|
886
|
+
* 偏移量。默认为 0。
|
|
887
|
+
*/
|
|
888
|
+
Offset?: number;
|
|
889
|
+
/**
|
|
890
|
+
* 过滤条件列表。支持的过滤字段:GlossaryId(术语库 ID)、Name(名称)、Source(源语言代码)、Target(目标语言代码)。
|
|
891
|
+
*/
|
|
892
|
+
Filters?: Array<RequestFilter>;
|
|
893
|
+
/**
|
|
894
|
+
* 排序条件列表。支持的排序字段:CreatedTime(创建时间)、UpdatedTime(更新时间)。
|
|
895
|
+
*/
|
|
896
|
+
Sorts?: Array<RequestSort>;
|
|
897
|
+
}
|
|
763
898
|
/**
|
|
764
899
|
* DeleteTokenPlanApiKey返回参数结构体
|
|
765
900
|
*/
|
|
@@ -810,6 +945,60 @@ export interface DescribeTokenPlanApiKeyUsageDetailRequest {
|
|
|
810
945
|
*/
|
|
811
946
|
ModelName?: string;
|
|
812
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* UpgradeTokenPlanTeamOrder请求参数结构体
|
|
950
|
+
*/
|
|
951
|
+
export interface UpgradeTokenPlanTeamOrderRequest {
|
|
952
|
+
/**
|
|
953
|
+
* 套餐 ID。可通过 DescribeTokenPlanList 接口获取。
|
|
954
|
+
*/
|
|
955
|
+
TeamId: string;
|
|
956
|
+
/**
|
|
957
|
+
* 升配后的新规格额度。套餐类型为 enterprise 时表示积分额度,套餐类型为 enterprise-auto 时表示 Token 数。必须大于当前额度。
|
|
958
|
+
*/
|
|
959
|
+
NewCreditOrToken: number;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* DescribeUsageRankList请求参数结构体
|
|
963
|
+
*/
|
|
964
|
+
export interface DescribeUsageRankListRequest {
|
|
965
|
+
/**
|
|
966
|
+
* 统计维度。取值:apikey(按 APIKey 统计)、endpoint(按接入点统计)、model(按模型统计)。
|
|
967
|
+
*/
|
|
968
|
+
Dimension: string;
|
|
969
|
+
/**
|
|
970
|
+
* 起始时间(闭区间),RFC3339 格式。
|
|
971
|
+
*/
|
|
972
|
+
StartTime: string;
|
|
973
|
+
/**
|
|
974
|
+
* 结束时间(开区间),RFC3339 格式。与 StartTime 的跨度最大 90 天。
|
|
975
|
+
*/
|
|
976
|
+
EndTime: string;
|
|
977
|
+
/**
|
|
978
|
+
* 指标族切换字段。本期支持 tokens(累计 Token 用量,statistics=sum);传其他值将返回 InvalidParameter。空字符串或不传时默认 tokens。接口预留 MetricType 字段以支持后续指标族扩展。
|
|
979
|
+
*/
|
|
980
|
+
MetricType?: string;
|
|
981
|
+
/**
|
|
982
|
+
* 维度过滤值。空字符串表示查询全部对象,非空时仅查询指定单个对象(如指定 APIKey ID)。最大 256 字符。
|
|
983
|
+
*/
|
|
984
|
+
Target?: string;
|
|
985
|
+
/**
|
|
986
|
+
* 统计粒度(秒)。取值:60、300、3600、86400。必须不小于跨度对应下限:跨度 ≤ 1 天 → 60;1 ~ 5 天 → 300;5 ~ 10 天 → 3600;> 10 天 → 86400。仅 ShowAll=false 时使用。
|
|
987
|
+
*/
|
|
988
|
+
Period?: number;
|
|
989
|
+
/**
|
|
990
|
+
* 翻页起点,从 0 起,默认 0。ShowAll=true 时忽略。页大小固定为 10。
|
|
991
|
+
*/
|
|
992
|
+
Offset?: number;
|
|
993
|
+
/**
|
|
994
|
+
* 是否返回全量结果。
|
|
995
|
+
- false(默认):按 Offset 分页返回 TopList(每页 10 条),每个对象包含
|
|
996
|
+
Series 时序点用于绘制曲线。
|
|
997
|
+
- true:忽略 Offset,返回全量对象列表,不返回 Series(CSV 导出场景)。
|
|
998
|
+
|
|
999
|
+
*/
|
|
1000
|
+
ShowAll?: boolean;
|
|
1001
|
+
}
|
|
813
1002
|
/**
|
|
814
1003
|
* ModifyTokenPlanApiKey返回参数结构体
|
|
815
1004
|
*/
|
|
@@ -819,6 +1008,19 @@ export interface ModifyTokenPlanApiKeyResponse {
|
|
|
819
1008
|
*/
|
|
820
1009
|
RequestId?: string;
|
|
821
1010
|
}
|
|
1011
|
+
/**
|
|
1012
|
+
* CreateGlossaryEntries请求参数结构体
|
|
1013
|
+
*/
|
|
1014
|
+
export interface CreateGlossaryEntriesRequest {
|
|
1015
|
+
/**
|
|
1016
|
+
* 术语库 ID。可通过 DescribeGlossaries 接口获取。
|
|
1017
|
+
*/
|
|
1018
|
+
GlossaryId: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* 术语条目列表。单次最多 100 个。
|
|
1021
|
+
*/
|
|
1022
|
+
Entries: Array<GlossaryEntryInput>;
|
|
1023
|
+
}
|
|
822
1024
|
/**
|
|
823
1025
|
* API 密钥详情
|
|
824
1026
|
*/
|
|
@@ -889,90 +1091,136 @@ export interface ApiKeyDetail {
|
|
|
889
1091
|
Creator?: string;
|
|
890
1092
|
}
|
|
891
1093
|
/**
|
|
892
|
-
*
|
|
1094
|
+
* DescribeGlossaries返回参数结构体
|
|
893
1095
|
*/
|
|
894
|
-
export interface
|
|
1096
|
+
export interface DescribeGlossariesResponse {
|
|
895
1097
|
/**
|
|
896
|
-
*
|
|
1098
|
+
* 术语库列表。
|
|
897
1099
|
*/
|
|
898
|
-
|
|
1100
|
+
Items?: Array<GlossaryItem>;
|
|
899
1101
|
/**
|
|
900
|
-
*
|
|
1102
|
+
* 符合条件的术语库总数。
|
|
901
1103
|
*/
|
|
902
|
-
|
|
1104
|
+
TotalCount?: number;
|
|
903
1105
|
/**
|
|
904
|
-
*
|
|
1106
|
+
* 当前页码。
|
|
905
1107
|
*/
|
|
906
|
-
|
|
1108
|
+
Current?: number;
|
|
907
1109
|
/**
|
|
908
|
-
*
|
|
1110
|
+
* 每页大小。
|
|
909
1111
|
*/
|
|
910
|
-
|
|
1112
|
+
PageSize?: number;
|
|
911
1113
|
/**
|
|
912
|
-
*
|
|
1114
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
913
1115
|
*/
|
|
914
1116
|
RequestId?: string;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* 批量创建失败项
|
|
1120
|
+
*/
|
|
1121
|
+
export interface BatchCreateFailedItem {
|
|
915
1122
|
/**
|
|
916
|
-
*
|
|
1123
|
+
* 失败项的序号(从 1 开始,对应后缀编号)。
|
|
917
1124
|
*/
|
|
918
|
-
|
|
1125
|
+
Index?: number;
|
|
919
1126
|
/**
|
|
920
|
-
*
|
|
1127
|
+
* 失败项的名称。
|
|
921
1128
|
*/
|
|
922
|
-
|
|
1129
|
+
Name?: string;
|
|
923
1130
|
/**
|
|
924
|
-
*
|
|
1131
|
+
* 失败原因。
|
|
925
1132
|
*/
|
|
926
|
-
|
|
1133
|
+
Reason?: string;
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* 术语库详情
|
|
1137
|
+
*/
|
|
1138
|
+
export interface GlossaryItem {
|
|
927
1139
|
/**
|
|
928
|
-
*
|
|
1140
|
+
* 术语库 ID。
|
|
929
1141
|
*/
|
|
930
|
-
|
|
1142
|
+
GlossaryId?: string;
|
|
931
1143
|
/**
|
|
932
|
-
*
|
|
1144
|
+
* 术语库名称。
|
|
933
1145
|
*/
|
|
934
|
-
|
|
1146
|
+
Name?: string;
|
|
935
1147
|
/**
|
|
936
|
-
*
|
|
937
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
938
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1148
|
+
* 术语库描述。
|
|
939
1149
|
*/
|
|
940
|
-
|
|
1150
|
+
Description?: string;
|
|
941
1151
|
/**
|
|
942
|
-
*
|
|
943
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
944
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1152
|
+
* 源语言代码。
|
|
945
1153
|
*/
|
|
946
|
-
|
|
1154
|
+
Source?: string;
|
|
947
1155
|
/**
|
|
948
|
-
*
|
|
949
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
950
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1156
|
+
* 目标语言代码。
|
|
951
1157
|
*/
|
|
952
|
-
|
|
1158
|
+
Target?: string;
|
|
953
1159
|
/**
|
|
954
|
-
*
|
|
955
|
-
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
956
|
-
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1160
|
+
* 创建时间。
|
|
957
1161
|
*/
|
|
958
|
-
|
|
1162
|
+
CreatedTime?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* 更新时间。
|
|
1165
|
+
*/
|
|
1166
|
+
UpdatedTime?: string;
|
|
959
1167
|
}
|
|
960
1168
|
/**
|
|
961
|
-
*
|
|
1169
|
+
* 主额度包信息
|
|
962
1170
|
*/
|
|
963
|
-
export interface
|
|
1171
|
+
export interface TokenPlanPackageInfo {
|
|
964
1172
|
/**
|
|
965
|
-
*
|
|
1173
|
+
* 总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
966
1174
|
*/
|
|
967
|
-
|
|
1175
|
+
TotalQuota?: string;
|
|
968
1176
|
/**
|
|
969
|
-
*
|
|
1177
|
+
* 总已使用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
970
1178
|
*/
|
|
971
|
-
|
|
1179
|
+
TotalUsed?: string;
|
|
972
1180
|
/**
|
|
973
|
-
*
|
|
1181
|
+
* 总周期数。
|
|
974
1182
|
*/
|
|
975
|
-
|
|
1183
|
+
TotalCycles?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* 周期单位。取值:month(月)
|
|
1186
|
+
*/
|
|
1187
|
+
CycleUnit?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* 套餐包生效时间。
|
|
1190
|
+
*/
|
|
1191
|
+
StartTime?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* 套餐包到期时间。
|
|
1194
|
+
*/
|
|
1195
|
+
ExpireTime?: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* 独占池已分配额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1198
|
+
*/
|
|
1199
|
+
ExclusiveAllocated?: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* 独占池已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1202
|
+
*/
|
|
1203
|
+
ExclusiveUsed?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* 共享池总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1206
|
+
*/
|
|
1207
|
+
SharedPool?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* 共享已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1210
|
+
*/
|
|
1211
|
+
SharedUsed?: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* 当期额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1214
|
+
*/
|
|
1215
|
+
CycleQuota?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* 当前周期。
|
|
1218
|
+
*/
|
|
1219
|
+
CurrentCycle?: number;
|
|
1220
|
+
/**
|
|
1221
|
+
* 剩余周期。
|
|
1222
|
+
*/
|
|
1223
|
+
RemainCycles?: number;
|
|
976
1224
|
}
|
|
977
1225
|
/**
|
|
978
1226
|
* CreateTokenPlanTeamOrderAndBuy返回参数结构体
|
|
@@ -1060,61 +1308,17 @@ export interface UpgradeTokenPlanTeamOrderResponse {
|
|
|
1060
1308
|
RequestId?: string;
|
|
1061
1309
|
}
|
|
1062
1310
|
/**
|
|
1063
|
-
*
|
|
1311
|
+
* ModifyGlossaryEntries返回参数结构体
|
|
1064
1312
|
*/
|
|
1065
|
-
export interface
|
|
1313
|
+
export interface ModifyGlossaryEntriesResponse {
|
|
1066
1314
|
/**
|
|
1067
|
-
*
|
|
1315
|
+
* 修改后的术语条目列表。
|
|
1068
1316
|
*/
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* 总已使用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1072
|
-
*/
|
|
1073
|
-
TotalUsed?: string;
|
|
1074
|
-
/**
|
|
1075
|
-
* 总周期数。
|
|
1076
|
-
*/
|
|
1077
|
-
TotalCycles?: number;
|
|
1317
|
+
Entries?: Array<GlossaryEntryItem>;
|
|
1078
1318
|
/**
|
|
1079
|
-
*
|
|
1080
|
-
*/
|
|
1081
|
-
CycleUnit?: string;
|
|
1082
|
-
/**
|
|
1083
|
-
* 套餐包生效时间。
|
|
1084
|
-
*/
|
|
1085
|
-
StartTime?: string;
|
|
1086
|
-
/**
|
|
1087
|
-
* 套餐包到期时间。
|
|
1088
|
-
*/
|
|
1089
|
-
ExpireTime?: string;
|
|
1090
|
-
/**
|
|
1091
|
-
* 独占池已分配额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1092
|
-
*/
|
|
1093
|
-
ExclusiveAllocated?: string;
|
|
1094
|
-
/**
|
|
1095
|
-
* 独占池已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1096
|
-
*/
|
|
1097
|
-
ExclusiveUsed?: string;
|
|
1098
|
-
/**
|
|
1099
|
-
* 共享池总额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1100
|
-
*/
|
|
1101
|
-
SharedPool?: string;
|
|
1102
|
-
/**
|
|
1103
|
-
* 共享已用额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1104
|
-
*/
|
|
1105
|
-
SharedUsed?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* 当期额度。根据套餐类型区分单位:credits(企业版专业套餐),tokens(企业版auto套餐)
|
|
1108
|
-
*/
|
|
1109
|
-
CycleQuota?: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* 当前周期。
|
|
1112
|
-
*/
|
|
1113
|
-
CurrentCycle?: number;
|
|
1114
|
-
/**
|
|
1115
|
-
* 剩余周期。
|
|
1319
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1116
1320
|
*/
|
|
1117
|
-
|
|
1321
|
+
RequestId?: string;
|
|
1118
1322
|
}
|
|
1119
1323
|
/**
|
|
1120
1324
|
* DescribeTokenPlan返回参数结构体
|
|
@@ -1226,6 +1430,23 @@ export interface CreateTokenPlanApiKeysRequest {
|
|
|
1226
1430
|
*/
|
|
1227
1431
|
TPM?: number;
|
|
1228
1432
|
}
|
|
1433
|
+
/**
|
|
1434
|
+
* 时间周期内的统计聚合值(按 metric key 索引)。本期返回 tokens 族(statistics=sum)的累计 Token 用量;具体包含哪些 key、顺序如何,参见响应顶层 `MetricKeys` 字段。接口预留 MetricType 字段以支持后续指标族扩展,本期仅支持 tokens。
|
|
1435
|
+
*/
|
|
1436
|
+
export interface UsageStats {
|
|
1437
|
+
/**
|
|
1438
|
+
* 时间周期内的累计总 token 数。
|
|
1439
|
+
*/
|
|
1440
|
+
TotalToken?: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* 时间周期内的累计输入 token 数。
|
|
1443
|
+
*/
|
|
1444
|
+
InputTotalToken?: number;
|
|
1445
|
+
/**
|
|
1446
|
+
* 时间周期内的累计输出 token 数。
|
|
1447
|
+
*/
|
|
1448
|
+
OutputTotalToken?: number;
|
|
1449
|
+
}
|
|
1229
1450
|
/**
|
|
1230
1451
|
* DescribeUsageRankList返回参数结构体
|
|
1231
1452
|
*/
|
|
@@ -1373,6 +1594,100 @@ export interface DescribeApiKeyResponse {
|
|
|
1373
1594
|
*/
|
|
1374
1595
|
RequestId?: string;
|
|
1375
1596
|
}
|
|
1597
|
+
/**
|
|
1598
|
+
* DescribeTokenPlanApiKeyList请求参数结构体
|
|
1599
|
+
*/
|
|
1600
|
+
export interface DescribeTokenPlanApiKeyListRequest {
|
|
1601
|
+
/**
|
|
1602
|
+
* 套餐 ID。可通过DescribeTokenPlanList接口获取。
|
|
1603
|
+
*/
|
|
1604
|
+
TeamId: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* 分页查询偏移量,默认为 0。
|
|
1607
|
+
*/
|
|
1608
|
+
Offset?: number;
|
|
1609
|
+
/**
|
|
1610
|
+
* 分页查询返回数量,默认为 20,最大值为 100。
|
|
1611
|
+
*/
|
|
1612
|
+
Limit?: number;
|
|
1613
|
+
/**
|
|
1614
|
+
* 分页查询过滤条件列表。支持的过滤字段:ApiKeyId (API Key ID)、Name (API Key 名称)、Status (API Key是否可用)、StopReason (API Key停用原因)、UseStatus (API Key用户侧开关)。
|
|
1615
|
+
*/
|
|
1616
|
+
Filters?: Array<RequestFilter>;
|
|
1617
|
+
/**
|
|
1618
|
+
* 分页查询排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
|
|
1619
|
+
*/
|
|
1620
|
+
Sorts?: Array<RequestSort>;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Token Plan 企业版套餐调用明细项(字段与 CLS 日志对齐)
|
|
1624
|
+
*/
|
|
1625
|
+
export interface UsageDetailItem {
|
|
1626
|
+
/**
|
|
1627
|
+
* 主账号 UIN。
|
|
1628
|
+
*/
|
|
1629
|
+
Uin?: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* 模型名称。
|
|
1632
|
+
*/
|
|
1633
|
+
ModelName?: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* APIKey ID。
|
|
1636
|
+
*/
|
|
1637
|
+
ApiKeyId?: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* APIKey 名称。
|
|
1640
|
+
*/
|
|
1641
|
+
ApiKeyName?: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* 请求 ID。
|
|
1644
|
+
*/
|
|
1645
|
+
RequestId?: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* 请求时间(RFC3339 格式)。
|
|
1648
|
+
*/
|
|
1649
|
+
RequestTime?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* 输入 token 数。
|
|
1652
|
+
*/
|
|
1653
|
+
InputToken?: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* 缓存 token 数。
|
|
1656
|
+
*/
|
|
1657
|
+
CacheToken?: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* 输出 token 数。
|
|
1660
|
+
*/
|
|
1661
|
+
OutputToken?: number;
|
|
1662
|
+
/**
|
|
1663
|
+
* 总 token 数。
|
|
1664
|
+
*/
|
|
1665
|
+
TotalToken?: number;
|
|
1666
|
+
/**
|
|
1667
|
+
* 未命中缓存输入消耗额度。单位说明如下:
|
|
1668
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1669
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1670
|
+
*/
|
|
1671
|
+
InputQuota?: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* 缓存消耗额度。单位说明如下:
|
|
1674
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1675
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1676
|
+
*/
|
|
1677
|
+
CacheQuota?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* 输出消耗额度。单位说明如下:
|
|
1680
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1681
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1682
|
+
*/
|
|
1683
|
+
OutputQuota?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* 总消耗额度。单位说明如下:
|
|
1686
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
1687
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
1688
|
+
*/
|
|
1689
|
+
TotalQuota?: string;
|
|
1690
|
+
}
|
|
1376
1691
|
/**
|
|
1377
1692
|
* DescribeTokenPlanApiKeySecret请求参数结构体
|
|
1378
1693
|
*/
|