tencentcloud-sdk-nodejs-tokenhub 4.1.246 → 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/services/tokenhub/v20260322/tokenhub_client.js +43 -22
- package/package.json +1 -1
- 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
|
@@ -3,11 +3,20 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("tokenhub.tencentcloudapi.com", "2026-03-22", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async RenewTokenPlanTeamOrder(req, cb) {
|
|
7
|
+
return this.request("RenewTokenPlanTeamOrder", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async CreateTokenPlanTeamOrderAndBuy(req, cb) {
|
|
10
|
+
return this.request("CreateTokenPlanTeamOrderAndBuy", req, cb);
|
|
11
|
+
}
|
|
6
12
|
async DescribeApiKeyList(req, cb) {
|
|
7
13
|
return this.request("DescribeApiKeyList", req, cb);
|
|
8
14
|
}
|
|
9
|
-
async
|
|
10
|
-
return this.request("
|
|
15
|
+
async DescribeModelList(req, cb) {
|
|
16
|
+
return this.request("DescribeModelList", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeTokenPlanApiKey(req, cb) {
|
|
19
|
+
return this.request("DescribeTokenPlanApiKey", req, cb);
|
|
11
20
|
}
|
|
12
21
|
async CreateTokenPlanApiKeys(req, cb) {
|
|
13
22
|
return this.request("CreateTokenPlanApiKeys", req, cb);
|
|
@@ -15,42 +24,54 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
15
24
|
async DescribeTokenPlanApiKeyList(req, cb) {
|
|
16
25
|
return this.request("DescribeTokenPlanApiKeyList", req, cb);
|
|
17
26
|
}
|
|
18
|
-
async
|
|
19
|
-
return this.request("
|
|
20
|
-
}
|
|
21
|
-
async RenewTokenPlanTeamOrder(req, cb) {
|
|
22
|
-
return this.request("RenewTokenPlanTeamOrder", req, cb);
|
|
23
|
-
}
|
|
24
|
-
async CreateTokenPlanTeamOrderAndBuy(req, cb) {
|
|
25
|
-
return this.request("CreateTokenPlanTeamOrderAndBuy", req, cb);
|
|
27
|
+
async CreateGlossaryEntries(req, cb) {
|
|
28
|
+
return this.request("CreateGlossaryEntries", req, cb);
|
|
26
29
|
}
|
|
27
30
|
async DescribeTokenPlanApiKeyUsageDetail(req, cb) {
|
|
28
31
|
return this.request("DescribeTokenPlanApiKeyUsageDetail", req, cb);
|
|
29
32
|
}
|
|
30
|
-
async
|
|
31
|
-
return this.request("
|
|
33
|
+
async DescribeGlossaries(req, cb) {
|
|
34
|
+
return this.request("DescribeGlossaries", req, cb);
|
|
32
35
|
}
|
|
33
|
-
async
|
|
34
|
-
return this.request("
|
|
36
|
+
async DescribeGlossaryEntries(req, cb) {
|
|
37
|
+
return this.request("DescribeGlossaryEntries", req, cb);
|
|
35
38
|
}
|
|
36
|
-
async
|
|
37
|
-
return this.request("
|
|
39
|
+
async DescribeUsageRankList(req, cb) {
|
|
40
|
+
return this.request("DescribeUsageRankList", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DeleteGlossaryEntries(req, cb) {
|
|
43
|
+
return this.request("DeleteGlossaryEntries", req, cb);
|
|
38
44
|
}
|
|
39
45
|
async UpgradeTokenPlanTeamOrder(req, cb) {
|
|
40
46
|
return this.request("UpgradeTokenPlanTeamOrder", req, cb);
|
|
41
47
|
}
|
|
48
|
+
async CreateGlossary(req, cb) {
|
|
49
|
+
return this.request("CreateGlossary", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async DeleteGlossary(req, cb) {
|
|
52
|
+
return this.request("DeleteGlossary", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async ModifyTokenPlanApiKeySecret(req, cb) {
|
|
55
|
+
return this.request("ModifyTokenPlanApiKeySecret", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeTokenPlan(req, cb) {
|
|
58
|
+
return this.request("DescribeTokenPlan", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async ModifyGlossaryEntries(req, cb) {
|
|
61
|
+
return this.request("ModifyGlossaryEntries", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DescribeTokenPlanList(req, cb) {
|
|
64
|
+
return this.request("DescribeTokenPlanList", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async DescribeApiKey(req, cb) {
|
|
67
|
+
return this.request("DescribeApiKey", req, cb);
|
|
68
|
+
}
|
|
42
69
|
async DeleteTokenPlanApiKey(req, cb) {
|
|
43
70
|
return this.request("DeleteTokenPlanApiKey", req, cb);
|
|
44
71
|
}
|
|
45
|
-
async DescribeUsageRankList(req, cb) {
|
|
46
|
-
return this.request("DescribeUsageRankList", req, cb);
|
|
47
|
-
}
|
|
48
72
|
async ModifyTokenPlanApiKey(req, cb) {
|
|
49
73
|
return this.request("ModifyTokenPlanApiKey", req, cb);
|
|
50
74
|
}
|
|
51
|
-
async DescribeTokenPlanApiKey(req, cb) {
|
|
52
|
-
return this.request("DescribeTokenPlanApiKey", req, cb);
|
|
53
|
-
}
|
|
54
75
|
async DescribeTokenPlanApiKeySecret(req, cb) {
|
|
55
76
|
return this.request("DescribeTokenPlanApiKeySecret", req, cb);
|
|
56
77
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeTokenPlanApiKeyListResponse,
|
|
2
|
+
import { DescribeTokenPlanListResponse, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeTokenPlanApiKeyListResponse, DescribeTokenPlanRequest, DeleteGlossaryResponse, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, DeleteGlossaryEntriesResponse, DescribeApiKeyListResponse, RenewTokenPlanTeamOrderResponse, DescribeModelListRequest, DescribeApiKeyListRequest, CreateGlossaryRequest, DescribeGlossaryEntriesResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeTokenPlanApiKeyRequest, DescribeApiKeyRequest, ModifyTokenPlanApiKeyRequest, DescribeModelListResponse, DescribeTokenPlanApiKeyUsageDetailResponse, CreateGlossaryResponse, CreateTokenPlanTeamOrderAndBuyRequest, ModifyGlossaryEntriesRequest, RenewTokenPlanTeamOrderRequest, DescribeGlossariesRequest, DeleteTokenPlanApiKeyResponse, DescribeTokenPlanApiKeyUsageDetailRequest, UpgradeTokenPlanTeamOrderRequest, DescribeUsageRankListRequest, ModifyTokenPlanApiKeyResponse, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateTokenPlanTeamOrderAndBuyResponse, DescribeTokenPlanListRequest, UpgradeTokenPlanTeamOrderResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, CreateTokenPlanApiKeysRequest, DescribeUsageRankListResponse, DeleteTokenPlanApiKeyRequest, DescribeApiKeyResponse, DescribeTokenPlanApiKeyListRequest, DescribeTokenPlanApiKeySecretRequest } from "./tokenhub_models";
|
|
3
3
|
/**
|
|
4
4
|
* tokenhub client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 续费套餐。
|
|
11
|
+
|
|
12
|
+
对已有的 TokenPlan 套餐发起续费下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
13
|
+
*/
|
|
14
|
+
RenewTokenPlanTeamOrder(req: RenewTokenPlanTeamOrderRequest, cb?: (error: string, rep: RenewTokenPlanTeamOrderResponse) => void): Promise<RenewTokenPlanTeamOrderResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 购买套餐。
|
|
17
|
+
|
|
18
|
+
发起 TokenPlan 套餐下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
19
|
+
*/
|
|
20
|
+
CreateTokenPlanTeamOrderAndBuy(req: CreateTokenPlanTeamOrderAndBuyRequest, cb?: (error: string, rep: CreateTokenPlanTeamOrderAndBuyResponse) => void): Promise<CreateTokenPlanTeamOrderAndBuyResponse>;
|
|
9
21
|
/**
|
|
10
22
|
* 查询 API 密钥列表。
|
|
11
23
|
|
|
@@ -13,11 +25,17 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
13
25
|
*/
|
|
14
26
|
DescribeApiKeyList(req: DescribeApiKeyListRequest, cb?: (error: string, rep: DescribeApiKeyListResponse) => void): Promise<DescribeApiKeyListResponse>;
|
|
15
27
|
/**
|
|
16
|
-
*
|
|
28
|
+
* 查询模型列表。
|
|
17
29
|
|
|
18
|
-
|
|
30
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
19
31
|
*/
|
|
20
|
-
|
|
32
|
+
DescribeModelList(req?: DescribeModelListRequest, cb?: (error: string, rep: DescribeModelListResponse) => void): Promise<DescribeModelListResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* 查询 TokenPlan APIKey 详情。
|
|
35
|
+
|
|
36
|
+
返回 APIKey 完整信息(含明文密钥)及子额度包余量。
|
|
37
|
+
*/
|
|
38
|
+
DescribeTokenPlanApiKey(req: DescribeTokenPlanApiKeyRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyResponse) => void): Promise<DescribeTokenPlanApiKeyResponse>;
|
|
21
39
|
/**
|
|
22
40
|
* 批量创建 TokenPlan APIKey。
|
|
23
41
|
|
|
@@ -31,45 +49,43 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
31
49
|
*/
|
|
32
50
|
DescribeTokenPlanApiKeyList(req: DescribeTokenPlanApiKeyListRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyListResponse) => void): Promise<DescribeTokenPlanApiKeyListResponse>;
|
|
33
51
|
/**
|
|
34
|
-
*
|
|
52
|
+
* 批量创建术语条目。
|
|
35
53
|
|
|
36
|
-
|
|
54
|
+
在指定术语库下批量创建术语条目。单次最多创建 100 条。
|
|
37
55
|
*/
|
|
38
|
-
|
|
56
|
+
CreateGlossaryEntries(req: CreateGlossaryEntriesRequest, cb?: (error: string, rep: CreateGlossaryEntriesResponse) => void): Promise<CreateGlossaryEntriesResponse>;
|
|
39
57
|
/**
|
|
40
|
-
*
|
|
58
|
+
* 查询 TokenPlan APIKey 调用明细。
|
|
41
59
|
|
|
42
|
-
|
|
60
|
+
从 CLS 日志服务查询套餐下的调用明细,按 pkg_id 过滤,支持游标分页。
|
|
43
61
|
*/
|
|
44
|
-
|
|
62
|
+
DescribeTokenPlanApiKeyUsageDetail(req: DescribeTokenPlanApiKeyUsageDetailRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyUsageDetailResponse) => void): Promise<DescribeTokenPlanApiKeyUsageDetailResponse>;
|
|
45
63
|
/**
|
|
46
|
-
*
|
|
64
|
+
* 查询术语库列表。
|
|
47
65
|
|
|
48
|
-
|
|
66
|
+
查询当前应用下的术语库列表。支持分页、过滤和排序。
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
DescribeGlossaries(req: DescribeGlossariesRequest, cb?: (error: string, rep: DescribeGlossariesResponse) => void): Promise<DescribeGlossariesResponse>;
|
|
51
69
|
/**
|
|
52
|
-
*
|
|
70
|
+
* 查询术语条目列表。
|
|
53
71
|
|
|
54
|
-
|
|
72
|
+
查询指定术语库下的术语条目。支持分页。
|
|
55
73
|
*/
|
|
56
|
-
|
|
74
|
+
DescribeGlossaryEntries(req: DescribeGlossaryEntriesRequest, cb?: (error: string, rep: DescribeGlossaryEntriesResponse) => void): Promise<DescribeGlossaryEntriesResponse>;
|
|
57
75
|
/**
|
|
58
|
-
*
|
|
76
|
+
* 查询用量排行列表。
|
|
59
77
|
|
|
60
|
-
|
|
78
|
+
按 apikey、endpoint、model 三个维度统计指定时间窗内的用量排行,返回顶部数据卡所需的 PageStats/TotalStats、左侧 Top 列表(含每对象整段累计值)、右侧色块趋势图所需的逐点曲线。前端通过 Offset 翻页、ShowAll 切换 CSV 全量导出模式。
|
|
79
|
+
|
|
80
|
+
MetricType 字段用于切换指标族,本期支持 tokens;接口预留以支持后续指标族扩展。响应回显 MetricType 与 MetricKeys(实际参与渲染的 metric key 列表,顺序固定 [Total, Input, Output]),前端按此渲染顶部数据卡与趋势图,无需硬编码 key 名。
|
|
61
81
|
*/
|
|
62
|
-
|
|
82
|
+
DescribeUsageRankList(req: DescribeUsageRankListRequest, cb?: (error: string, rep: DescribeUsageRankListResponse) => void): Promise<DescribeUsageRankListResponse>;
|
|
63
83
|
/**
|
|
64
|
-
*
|
|
84
|
+
* 批量删除术语条目。
|
|
65
85
|
|
|
66
|
-
|
|
86
|
+
在指定术语库下批量删除术语条目。单次最多删除 200 条。若术语库不存在或不属于当前应用,返回 ResourceNotFound 错误。
|
|
67
87
|
*/
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
71
|
-
*/
|
|
72
|
-
DescribeApiKey(req: DescribeApiKeyRequest, cb?: (error: string, rep: DescribeApiKeyResponse) => void): Promise<DescribeApiKeyResponse>;
|
|
88
|
+
DeleteGlossaryEntries(req: DeleteGlossaryEntriesRequest, cb?: (error: string, rep: DeleteGlossaryEntriesResponse) => void): Promise<DeleteGlossaryEntriesResponse>;
|
|
73
89
|
/**
|
|
74
90
|
* 升配套餐。
|
|
75
91
|
|
|
@@ -77,31 +93,57 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
77
93
|
*/
|
|
78
94
|
UpgradeTokenPlanTeamOrder(req: UpgradeTokenPlanTeamOrderRequest, cb?: (error: string, rep: UpgradeTokenPlanTeamOrderResponse) => void): Promise<UpgradeTokenPlanTeamOrderResponse>;
|
|
79
95
|
/**
|
|
80
|
-
*
|
|
96
|
+
* 创建术语库。
|
|
81
97
|
|
|
82
|
-
|
|
98
|
+
在当前应用下创建一个新的翻译术语库,用于自定义源语言到目标语言的术语映射。创建成功后返回术语库 ID,可通过该 ID 进一步管理术语条目。
|
|
83
99
|
*/
|
|
84
|
-
|
|
100
|
+
CreateGlossary(req: CreateGlossaryRequest, cb?: (error: string, rep: CreateGlossaryResponse) => void): Promise<CreateGlossaryResponse>;
|
|
85
101
|
/**
|
|
86
|
-
*
|
|
102
|
+
* 删除术语库。
|
|
87
103
|
|
|
88
|
-
|
|
104
|
+
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
105
|
+
*/
|
|
106
|
+
DeleteGlossary(req: DeleteGlossaryRequest, cb?: (error: string, rep: DeleteGlossaryResponse) => void): Promise<DeleteGlossaryResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* 重置 TokenPlan APIKey 密钥。
|
|
89
109
|
|
|
90
|
-
|
|
110
|
+
重新生成密钥值,密钥版本号递增,旧密钥立即失效。APIKey ID 不变。重置后需通过 DescribeTokenPlanApiKeySecret 查询新密钥。
|
|
91
111
|
*/
|
|
92
|
-
|
|
112
|
+
ModifyTokenPlanApiKeySecret(req: ModifyTokenPlanApiKeySecretRequest, cb?: (error: string, rep: ModifyTokenPlanApiKeySecretResponse) => void): Promise<ModifyTokenPlanApiKeySecretResponse>;
|
|
93
113
|
/**
|
|
94
|
-
*
|
|
114
|
+
* 查询 TokenPlan 套餐详情。
|
|
95
115
|
|
|
96
|
-
|
|
116
|
+
返回套餐基本信息及额度中心主额度包余量。
|
|
97
117
|
*/
|
|
98
|
-
|
|
118
|
+
DescribeTokenPlan(req: DescribeTokenPlanRequest, cb?: (error: string, rep: DescribeTokenPlanResponse) => void): Promise<DescribeTokenPlanResponse>;
|
|
99
119
|
/**
|
|
100
|
-
*
|
|
120
|
+
* 批量修改术语条目。
|
|
101
121
|
|
|
102
|
-
|
|
122
|
+
在指定术语库下批量修改术语条目。单次最多修改 200 条。
|
|
103
123
|
*/
|
|
104
|
-
|
|
124
|
+
ModifyGlossaryEntries(req: ModifyGlossaryEntriesRequest, cb?: (error: string, rep: ModifyGlossaryEntriesResponse) => void): Promise<ModifyGlossaryEntriesResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* 查询 TokenPlan 套餐列表。
|
|
127
|
+
|
|
128
|
+
支持分页、过滤和排序。主账号可查看全部,子账号仅可查看自己创建的。返回结果包含每个套餐关联的额度中心主额度包详情。
|
|
129
|
+
*/
|
|
130
|
+
DescribeTokenPlanList(req: DescribeTokenPlanListRequest, cb?: (error: string, rep: DescribeTokenPlanListResponse) => void): Promise<DescribeTokenPlanListResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
133
|
+
*/
|
|
134
|
+
DescribeApiKey(req: DescribeApiKeyRequest, cb?: (error: string, rep: DescribeApiKeyResponse) => void): Promise<DescribeApiKeyResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* 删除 TokenPlan APIKey。
|
|
137
|
+
|
|
138
|
+
同时删除额度中心子额度包并通知网关清除缓存。
|
|
139
|
+
*/
|
|
140
|
+
DeleteTokenPlanApiKey(req: DeleteTokenPlanApiKeyRequest, cb?: (error: string, rep: DeleteTokenPlanApiKeyResponse) => void): Promise<DeleteTokenPlanApiKeyResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* 修改 TokenPlan APIKey 配置(网关关注字段)。
|
|
143
|
+
|
|
144
|
+
修改后自动通知网关更新缓存并同步额度中心。
|
|
145
|
+
*/
|
|
146
|
+
ModifyTokenPlanApiKey(req: ModifyTokenPlanApiKeyRequest, cb?: (error: string, rep: ModifyTokenPlanApiKeyResponse) => void): Promise<ModifyTokenPlanApiKeyResponse>;
|
|
105
147
|
/**
|
|
106
148
|
* 查询 TokenPlan APIKey 密钥(明文)。
|
|
107
149
|
|
|
@@ -28,6 +28,22 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
constructor(clientConfig) {
|
|
29
29
|
super("tokenhub.tencentcloudapi.com", "2026-03-22", clientConfig);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 续费套餐。
|
|
33
|
+
|
|
34
|
+
对已有的 TokenPlan 套餐发起续费下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
35
|
+
*/
|
|
36
|
+
async RenewTokenPlanTeamOrder(req, cb) {
|
|
37
|
+
return this.request("RenewTokenPlanTeamOrder", req, cb);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 购买套餐。
|
|
41
|
+
|
|
42
|
+
发起 TokenPlan 套餐下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
43
|
+
*/
|
|
44
|
+
async CreateTokenPlanTeamOrderAndBuy(req, cb) {
|
|
45
|
+
return this.request("CreateTokenPlanTeamOrderAndBuy", req, cb);
|
|
46
|
+
}
|
|
31
47
|
/**
|
|
32
48
|
* 查询 API 密钥列表。
|
|
33
49
|
|
|
@@ -37,12 +53,20 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
37
53
|
return this.request("DescribeApiKeyList", req, cb);
|
|
38
54
|
}
|
|
39
55
|
/**
|
|
40
|
-
*
|
|
56
|
+
* 查询模型列表。
|
|
41
57
|
|
|
42
|
-
|
|
58
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
43
59
|
*/
|
|
44
|
-
async
|
|
45
|
-
return this.request("
|
|
60
|
+
async DescribeModelList(req, cb) {
|
|
61
|
+
return this.request("DescribeModelList", req, cb);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 查询 TokenPlan APIKey 详情。
|
|
65
|
+
|
|
66
|
+
返回 APIKey 完整信息(含明文密钥)及子额度包余量。
|
|
67
|
+
*/
|
|
68
|
+
async DescribeTokenPlanApiKey(req, cb) {
|
|
69
|
+
return this.request("DescribeTokenPlanApiKey", req, cb);
|
|
46
70
|
}
|
|
47
71
|
/**
|
|
48
72
|
* 批量创建 TokenPlan APIKey。
|
|
@@ -61,58 +85,54 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
61
85
|
return this.request("DescribeTokenPlanApiKeyList", req, cb);
|
|
62
86
|
}
|
|
63
87
|
/**
|
|
64
|
-
*
|
|
88
|
+
* 批量创建术语条目。
|
|
65
89
|
|
|
66
|
-
|
|
90
|
+
在指定术语库下批量创建术语条目。单次最多创建 100 条。
|
|
67
91
|
*/
|
|
68
|
-
async
|
|
69
|
-
return this.request("
|
|
92
|
+
async CreateGlossaryEntries(req, cb) {
|
|
93
|
+
return this.request("CreateGlossaryEntries", req, cb);
|
|
70
94
|
}
|
|
71
95
|
/**
|
|
72
|
-
*
|
|
96
|
+
* 查询 TokenPlan APIKey 调用明细。
|
|
73
97
|
|
|
74
|
-
|
|
98
|
+
从 CLS 日志服务查询套餐下的调用明细,按 pkg_id 过滤,支持游标分页。
|
|
75
99
|
*/
|
|
76
|
-
async
|
|
77
|
-
return this.request("
|
|
100
|
+
async DescribeTokenPlanApiKeyUsageDetail(req, cb) {
|
|
101
|
+
return this.request("DescribeTokenPlanApiKeyUsageDetail", req, cb);
|
|
78
102
|
}
|
|
79
103
|
/**
|
|
80
|
-
*
|
|
104
|
+
* 查询术语库列表。
|
|
81
105
|
|
|
82
|
-
|
|
106
|
+
查询当前应用下的术语库列表。支持分页、过滤和排序。
|
|
83
107
|
*/
|
|
84
|
-
async
|
|
85
|
-
return this.request("
|
|
108
|
+
async DescribeGlossaries(req, cb) {
|
|
109
|
+
return this.request("DescribeGlossaries", req, cb);
|
|
86
110
|
}
|
|
87
111
|
/**
|
|
88
|
-
*
|
|
112
|
+
* 查询术语条目列表。
|
|
89
113
|
|
|
90
|
-
|
|
114
|
+
查询指定术语库下的术语条目。支持分页。
|
|
91
115
|
*/
|
|
92
|
-
async
|
|
93
|
-
return this.request("
|
|
116
|
+
async DescribeGlossaryEntries(req, cb) {
|
|
117
|
+
return this.request("DescribeGlossaryEntries", req, cb);
|
|
94
118
|
}
|
|
95
119
|
/**
|
|
96
|
-
*
|
|
120
|
+
* 查询用量排行列表。
|
|
97
121
|
|
|
98
|
-
|
|
122
|
+
按 apikey、endpoint、model 三个维度统计指定时间窗内的用量排行,返回顶部数据卡所需的 PageStats/TotalStats、左侧 Top 列表(含每对象整段累计值)、右侧色块趋势图所需的逐点曲线。前端通过 Offset 翻页、ShowAll 切换 CSV 全量导出模式。
|
|
123
|
+
|
|
124
|
+
MetricType 字段用于切换指标族,本期支持 tokens;接口预留以支持后续指标族扩展。响应回显 MetricType 与 MetricKeys(实际参与渲染的 metric key 列表,顺序固定 [Total, Input, Output]),前端按此渲染顶部数据卡与趋势图,无需硬编码 key 名。
|
|
99
125
|
*/
|
|
100
|
-
async
|
|
101
|
-
return this.request("
|
|
126
|
+
async DescribeUsageRankList(req, cb) {
|
|
127
|
+
return this.request("DescribeUsageRankList", req, cb);
|
|
102
128
|
}
|
|
103
129
|
/**
|
|
104
|
-
*
|
|
130
|
+
* 批量删除术语条目。
|
|
105
131
|
|
|
106
|
-
|
|
132
|
+
在指定术语库下批量删除术语条目。单次最多删除 200 条。若术语库不存在或不属于当前应用,返回 ResourceNotFound 错误。
|
|
107
133
|
*/
|
|
108
|
-
async
|
|
109
|
-
return this.request("
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
113
|
-
*/
|
|
114
|
-
async DescribeApiKey(req, cb) {
|
|
115
|
-
return this.request("DescribeApiKey", req, cb);
|
|
134
|
+
async DeleteGlossaryEntries(req, cb) {
|
|
135
|
+
return this.request("DeleteGlossaryEntries", req, cb);
|
|
116
136
|
}
|
|
117
137
|
/**
|
|
118
138
|
* 升配套餐。
|
|
@@ -123,38 +143,74 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
123
143
|
return this.request("UpgradeTokenPlanTeamOrder", req, cb);
|
|
124
144
|
}
|
|
125
145
|
/**
|
|
126
|
-
*
|
|
146
|
+
* 创建术语库。
|
|
127
147
|
|
|
128
|
-
|
|
148
|
+
在当前应用下创建一个新的翻译术语库,用于自定义源语言到目标语言的术语映射。创建成功后返回术语库 ID,可通过该 ID 进一步管理术语条目。
|
|
129
149
|
*/
|
|
130
|
-
async
|
|
131
|
-
return this.request("
|
|
150
|
+
async CreateGlossary(req, cb) {
|
|
151
|
+
return this.request("CreateGlossary", req, cb);
|
|
132
152
|
}
|
|
133
153
|
/**
|
|
134
|
-
*
|
|
154
|
+
* 删除术语库。
|
|
135
155
|
|
|
136
|
-
|
|
156
|
+
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
157
|
+
*/
|
|
158
|
+
async DeleteGlossary(req, cb) {
|
|
159
|
+
return this.request("DeleteGlossary", req, cb);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* 重置 TokenPlan APIKey 密钥。
|
|
137
163
|
|
|
138
|
-
|
|
164
|
+
重新生成密钥值,密钥版本号递增,旧密钥立即失效。APIKey ID 不变。重置后需通过 DescribeTokenPlanApiKeySecret 查询新密钥。
|
|
139
165
|
*/
|
|
140
|
-
async
|
|
141
|
-
return this.request("
|
|
166
|
+
async ModifyTokenPlanApiKeySecret(req, cb) {
|
|
167
|
+
return this.request("ModifyTokenPlanApiKeySecret", req, cb);
|
|
142
168
|
}
|
|
143
169
|
/**
|
|
144
|
-
*
|
|
170
|
+
* 查询 TokenPlan 套餐详情。
|
|
145
171
|
|
|
146
|
-
|
|
172
|
+
返回套餐基本信息及额度中心主额度包余量。
|
|
147
173
|
*/
|
|
148
|
-
async
|
|
149
|
-
return this.request("
|
|
174
|
+
async DescribeTokenPlan(req, cb) {
|
|
175
|
+
return this.request("DescribeTokenPlan", req, cb);
|
|
150
176
|
}
|
|
151
177
|
/**
|
|
152
|
-
*
|
|
178
|
+
* 批量修改术语条目。
|
|
153
179
|
|
|
154
|
-
|
|
180
|
+
在指定术语库下批量修改术语条目。单次最多修改 200 条。
|
|
155
181
|
*/
|
|
156
|
-
async
|
|
157
|
-
return this.request("
|
|
182
|
+
async ModifyGlossaryEntries(req, cb) {
|
|
183
|
+
return this.request("ModifyGlossaryEntries", req, cb);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 查询 TokenPlan 套餐列表。
|
|
187
|
+
|
|
188
|
+
支持分页、过滤和排序。主账号可查看全部,子账号仅可查看自己创建的。返回结果包含每个套餐关联的额度中心主额度包详情。
|
|
189
|
+
*/
|
|
190
|
+
async DescribeTokenPlanList(req, cb) {
|
|
191
|
+
return this.request("DescribeTokenPlanList", req, cb);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
195
|
+
*/
|
|
196
|
+
async DescribeApiKey(req, cb) {
|
|
197
|
+
return this.request("DescribeApiKey", req, cb);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 删除 TokenPlan APIKey。
|
|
201
|
+
|
|
202
|
+
同时删除额度中心子额度包并通知网关清除缓存。
|
|
203
|
+
*/
|
|
204
|
+
async DeleteTokenPlanApiKey(req, cb) {
|
|
205
|
+
return this.request("DeleteTokenPlanApiKey", req, cb);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* 修改 TokenPlan APIKey 配置(网关关注字段)。
|
|
209
|
+
|
|
210
|
+
修改后自动通知网关更新缓存并同步额度中心。
|
|
211
|
+
*/
|
|
212
|
+
async ModifyTokenPlanApiKey(req, cb) {
|
|
213
|
+
return this.request("ModifyTokenPlanApiKey", req, cb);
|
|
158
214
|
}
|
|
159
215
|
/**
|
|
160
216
|
* 查询 TokenPlan APIKey 密钥(明文)。
|