tencentcloud-sdk-nodejs 4.1.248 → 4.1.250
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/bi/v20220105/bi_client.js +3 -0
- package/es/services/dataagent/v20250513/dataagent_client.js +6 -0
- package/es/services/mongodb/v20190725/mongodb_client.js +165 -153
- 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/bi/v20220105/bi_client.d.ts +5 -1
- package/tencentcloud/services/bi/v20220105/bi_client.js +6 -0
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +273 -341
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- 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/dbbrain/v20210527/dbbrain_models.d.ts +7 -7
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +6 -35
- 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/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/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 +7 -15
- 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 +347 -1183
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +13 -9
|
@@ -2433,7 +2433,7 @@ export interface CreateEksLogConfigRequest {
|
|
|
2433
2433
|
*/
|
|
2434
2434
|
export interface CreateClusterResponse {
|
|
2435
2435
|
/**
|
|
2436
|
-
*
|
|
2436
|
+
* <p>集群ID</p>
|
|
2437
2437
|
*/
|
|
2438
2438
|
ClusterId?: string;
|
|
2439
2439
|
/**
|
|
@@ -5381,47 +5381,47 @@ export interface SchedulerPluginConfigs {
|
|
|
5381
5381
|
*/
|
|
5382
5382
|
export interface CreateClusterRequest {
|
|
5383
5383
|
/**
|
|
5384
|
-
*
|
|
5384
|
+
* <p>集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。</p>
|
|
5385
5385
|
*/
|
|
5386
5386
|
ClusterType: string;
|
|
5387
5387
|
/**
|
|
5388
|
-
*
|
|
5388
|
+
* <p>集群容器网络配置信息</p>
|
|
5389
5389
|
*/
|
|
5390
5390
|
ClusterCIDRSettings: ClusterCIDRSettings;
|
|
5391
5391
|
/**
|
|
5392
|
-
* CVM创建透传参数,json
|
|
5392
|
+
* <p>CVM创建透传参数,json化字符串格式,详见<a href="https://cloud.tencent.com/document/product/213/15730">CVM创建实例</a>接口。总机型(包括地域)数量不超过10个,相同机型(地域)购买多台机器可以通过设置参数中RunInstances中InstanceCount来实现。</p>
|
|
5393
5393
|
*/
|
|
5394
5394
|
RunInstancesForNode?: Array<RunInstancesForNode>;
|
|
5395
5395
|
/**
|
|
5396
|
-
*
|
|
5396
|
+
* <p>集群的基本配置信息</p>
|
|
5397
5397
|
*/
|
|
5398
5398
|
ClusterBasicSettings?: ClusterBasicSettings;
|
|
5399
5399
|
/**
|
|
5400
|
-
*
|
|
5400
|
+
* <p>集群高级配置信息</p>
|
|
5401
5401
|
*/
|
|
5402
5402
|
ClusterAdvancedSettings?: ClusterAdvancedSettings;
|
|
5403
5403
|
/**
|
|
5404
|
-
*
|
|
5404
|
+
* <p>节点高级配置信息</p>
|
|
5405
5405
|
*/
|
|
5406
5406
|
InstanceAdvancedSettings?: InstanceAdvancedSettings;
|
|
5407
5407
|
/**
|
|
5408
|
-
*
|
|
5408
|
+
* <p>已存在实例的配置信息。所有实例必须在同一个VPC中,最大数量不超过 50,不支持添加竞价实例。</p>
|
|
5409
5409
|
*/
|
|
5410
5410
|
ExistedInstancesForNode?: Array<ExistedInstancesForNode>;
|
|
5411
5411
|
/**
|
|
5412
|
-
* CVM
|
|
5412
|
+
* <p>CVM类型和其对应的数据盘挂载配置信息</p>
|
|
5413
5413
|
*/
|
|
5414
5414
|
InstanceDataDiskMountSettings?: Array<InstanceDataDiskMountSetting>;
|
|
5415
5415
|
/**
|
|
5416
|
-
*
|
|
5416
|
+
* <p>需要安装的扩展组件信息</p>
|
|
5417
5417
|
*/
|
|
5418
5418
|
ExtensionAddons?: Array<ExtensionAddon>;
|
|
5419
5419
|
/**
|
|
5420
|
-
*
|
|
5420
|
+
* <p>本地专用集群Id</p>
|
|
5421
5421
|
*/
|
|
5422
5422
|
CdcId?: string;
|
|
5423
5423
|
/**
|
|
5424
|
-
*
|
|
5424
|
+
* <p>屏蔽安装指定Addon组件,填写相应的AddonName</p>
|
|
5425
5425
|
*/
|
|
5426
5426
|
DisableAddons?: Array<string>;
|
|
5427
5427
|
}
|
|
@@ -10878,57 +10878,56 @@ export interface DescribeTKEEdgeClusterCredentialResponse {
|
|
|
10878
10878
|
*/
|
|
10879
10879
|
export interface InstanceAdvancedSettings {
|
|
10880
10880
|
/**
|
|
10881
|
-
*
|
|
10881
|
+
* <p>该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限</p>
|
|
10882
10882
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10883
10883
|
*/
|
|
10884
10884
|
DesiredPodNumber: number;
|
|
10885
10885
|
/**
|
|
10886
|
-
* GPU驱动相关参数,相关的GPU参数获取:https://cloud.tencent.com/document/api/213/15715
|
|
10886
|
+
* <p>GPU驱动相关参数,相关的GPU参数获取:https://cloud.tencent.com/document/api/213/15715</p>
|
|
10887
10887
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10888
10888
|
*/
|
|
10889
10889
|
GPUArgs: GPUArgs;
|
|
10890
10890
|
/**
|
|
10891
|
-
* base64
|
|
10891
|
+
* <p>base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效</p>
|
|
10892
10892
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10893
10893
|
*/
|
|
10894
10894
|
PreStartUserScript: string;
|
|
10895
10895
|
/**
|
|
10896
|
-
*
|
|
10896
|
+
* <p>节点污点</p>
|
|
10897
10897
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10898
10898
|
*/
|
|
10899
10899
|
Taints: Array<Taint>;
|
|
10900
10900
|
/**
|
|
10901
|
-
*
|
|
10902
|
-
注意:多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。
|
|
10901
|
+
* <p>数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 (tlinux系统格式化成xfs)并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。<br>注意:多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。</p>
|
|
10903
10902
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10904
10903
|
*/
|
|
10905
10904
|
MountTarget?: string;
|
|
10906
10905
|
/**
|
|
10907
|
-
* dockerd --graph 指定值。若未指定此参数,将使用内置默认路径 /var/lib/docker
|
|
10906
|
+
* <p>dockerd --graph 指定值。若未指定此参数,将使用内置默认路径 /var/lib/docker 作为存储根目录。</p>
|
|
10908
10907
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10909
10908
|
*/
|
|
10910
10909
|
DockerGraphPath?: string;
|
|
10911
10910
|
/**
|
|
10912
|
-
* base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config
|
|
10911
|
+
* <p>base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度</p>
|
|
10913
10912
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10914
10913
|
*/
|
|
10915
10914
|
UserScript?: string;
|
|
10916
10915
|
/**
|
|
10917
|
-
*
|
|
10916
|
+
* <p>设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度.</p>
|
|
10918
10917
|
*/
|
|
10919
10918
|
Unschedulable?: number;
|
|
10920
10919
|
/**
|
|
10921
|
-
*
|
|
10920
|
+
* <p>节点Label数组</p>
|
|
10922
10921
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10923
10922
|
*/
|
|
10924
10923
|
Labels?: Array<Label>;
|
|
10925
10924
|
/**
|
|
10926
|
-
*
|
|
10925
|
+
* <p>多盘数据盘挂载信息:新建节点时请确保购买CVM的参数传递了购买多个数据盘的信息,如CreateClusterInstances API的RunInstancesPara下的DataDisks也需要设置购买多个数据盘, 具体可以参考CreateClusterInstances接口的添加集群节点(多块数据盘)样例;添加已有节点时,请确保填写的分区信息在节点上真实存在</p>
|
|
10927
10926
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10928
10927
|
*/
|
|
10929
10928
|
DataDisks?: Array<DataDisk>;
|
|
10930
10929
|
/**
|
|
10931
|
-
*
|
|
10930
|
+
* <p>节点相关的自定义参数信息</p>
|
|
10932
10931
|
*/
|
|
10933
10932
|
ExtraArgs?: InstanceExtraArgs;
|
|
10934
10933
|
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeTokenPlanApiKeyListResponse,
|
|
3
|
+
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";
|
|
4
4
|
/**
|
|
5
5
|
* tokenhub client
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 续费套餐。
|
|
12
|
+
|
|
13
|
+
对已有的 TokenPlan 套餐发起续费下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
14
|
+
*/
|
|
15
|
+
RenewTokenPlanTeamOrder(req: RenewTokenPlanTeamOrderRequest, cb?: (error: string, rep: RenewTokenPlanTeamOrderResponse) => void): Promise<RenewTokenPlanTeamOrderResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* 购买套餐。
|
|
18
|
+
|
|
19
|
+
发起 TokenPlan 套餐下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
20
|
+
*/
|
|
21
|
+
CreateTokenPlanTeamOrderAndBuy(req: CreateTokenPlanTeamOrderAndBuyRequest, cb?: (error: string, rep: CreateTokenPlanTeamOrderAndBuyResponse) => void): Promise<CreateTokenPlanTeamOrderAndBuyResponse>;
|
|
10
22
|
/**
|
|
11
23
|
* 查询 API 密钥列表。
|
|
12
24
|
|
|
@@ -14,11 +26,17 @@ export declare class Client extends AbstractClient {
|
|
|
14
26
|
*/
|
|
15
27
|
DescribeApiKeyList(req: DescribeApiKeyListRequest, cb?: (error: string, rep: DescribeApiKeyListResponse) => void): Promise<DescribeApiKeyListResponse>;
|
|
16
28
|
/**
|
|
17
|
-
*
|
|
29
|
+
* 查询模型列表。
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
20
32
|
*/
|
|
21
|
-
|
|
33
|
+
DescribeModelList(req?: DescribeModelListRequest, cb?: (error: string, rep: DescribeModelListResponse) => void): Promise<DescribeModelListResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* 查询 TokenPlan APIKey 详情。
|
|
36
|
+
|
|
37
|
+
返回 APIKey 完整信息(含明文密钥)及子额度包余量。
|
|
38
|
+
*/
|
|
39
|
+
DescribeTokenPlanApiKey(req: DescribeTokenPlanApiKeyRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyResponse) => void): Promise<DescribeTokenPlanApiKeyResponse>;
|
|
22
40
|
/**
|
|
23
41
|
* 批量创建 TokenPlan APIKey。
|
|
24
42
|
|
|
@@ -32,45 +50,43 @@ export declare class Client extends AbstractClient {
|
|
|
32
50
|
*/
|
|
33
51
|
DescribeTokenPlanApiKeyList(req: DescribeTokenPlanApiKeyListRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyListResponse) => void): Promise<DescribeTokenPlanApiKeyListResponse>;
|
|
34
52
|
/**
|
|
35
|
-
*
|
|
53
|
+
* 批量创建术语条目。
|
|
36
54
|
|
|
37
|
-
|
|
55
|
+
在指定术语库下批量创建术语条目。单次最多创建 100 条。
|
|
38
56
|
*/
|
|
39
|
-
|
|
57
|
+
CreateGlossaryEntries(req: CreateGlossaryEntriesRequest, cb?: (error: string, rep: CreateGlossaryEntriesResponse) => void): Promise<CreateGlossaryEntriesResponse>;
|
|
40
58
|
/**
|
|
41
|
-
*
|
|
59
|
+
* 查询 TokenPlan APIKey 调用明细。
|
|
42
60
|
|
|
43
|
-
|
|
61
|
+
从 CLS 日志服务查询套餐下的调用明细,按 pkg_id 过滤,支持游标分页。
|
|
44
62
|
*/
|
|
45
|
-
|
|
63
|
+
DescribeTokenPlanApiKeyUsageDetail(req: DescribeTokenPlanApiKeyUsageDetailRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyUsageDetailResponse) => void): Promise<DescribeTokenPlanApiKeyUsageDetailResponse>;
|
|
46
64
|
/**
|
|
47
|
-
*
|
|
65
|
+
* 查询术语库列表。
|
|
48
66
|
|
|
49
|
-
|
|
67
|
+
查询当前应用下的术语库列表。支持分页、过滤和排序。
|
|
50
68
|
*/
|
|
51
|
-
|
|
69
|
+
DescribeGlossaries(req: DescribeGlossariesRequest, cb?: (error: string, rep: DescribeGlossariesResponse) => void): Promise<DescribeGlossariesResponse>;
|
|
52
70
|
/**
|
|
53
|
-
*
|
|
71
|
+
* 查询术语条目列表。
|
|
54
72
|
|
|
55
|
-
|
|
73
|
+
查询指定术语库下的术语条目。支持分页。
|
|
56
74
|
*/
|
|
57
|
-
|
|
75
|
+
DescribeGlossaryEntries(req: DescribeGlossaryEntriesRequest, cb?: (error: string, rep: DescribeGlossaryEntriesResponse) => void): Promise<DescribeGlossaryEntriesResponse>;
|
|
58
76
|
/**
|
|
59
|
-
*
|
|
77
|
+
* 查询用量排行列表。
|
|
60
78
|
|
|
61
|
-
|
|
62
|
-
*/
|
|
63
|
-
DescribeTokenPlanList(req: DescribeTokenPlanListRequest, cb?: (error: string, rep: DescribeTokenPlanListResponse) => void): Promise<DescribeTokenPlanListResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* 查询模型列表。
|
|
79
|
+
按 apikey、endpoint、model 三个维度统计指定时间窗内的用量排行,返回顶部数据卡所需的 PageStats/TotalStats、左侧 Top 列表(含每对象整段累计值)、右侧色块趋势图所需的逐点曲线。前端通过 Offset 翻页、ShowAll 切换 CSV 全量导出模式。
|
|
66
80
|
|
|
67
|
-
|
|
81
|
+
MetricType 字段用于切换指标族,本期支持 tokens;接口预留以支持后续指标族扩展。响应回显 MetricType 与 MetricKeys(实际参与渲染的 metric key 列表,顺序固定 [Total, Input, Output]),前端按此渲染顶部数据卡与趋势图,无需硬编码 key 名。
|
|
68
82
|
*/
|
|
69
|
-
|
|
83
|
+
DescribeUsageRankList(req: DescribeUsageRankListRequest, cb?: (error: string, rep: DescribeUsageRankListResponse) => void): Promise<DescribeUsageRankListResponse>;
|
|
70
84
|
/**
|
|
71
|
-
*
|
|
85
|
+
* 批量删除术语条目。
|
|
86
|
+
|
|
87
|
+
在指定术语库下批量删除术语条目。单次最多删除 200 条。若术语库不存在或不属于当前应用,返回 ResourceNotFound 错误。
|
|
72
88
|
*/
|
|
73
|
-
|
|
89
|
+
DeleteGlossaryEntries(req: DeleteGlossaryEntriesRequest, cb?: (error: string, rep: DeleteGlossaryEntriesResponse) => void): Promise<DeleteGlossaryEntriesResponse>;
|
|
74
90
|
/**
|
|
75
91
|
* 升配套餐。
|
|
76
92
|
|
|
@@ -78,31 +94,57 @@ export declare class Client extends AbstractClient {
|
|
|
78
94
|
*/
|
|
79
95
|
UpgradeTokenPlanTeamOrder(req: UpgradeTokenPlanTeamOrderRequest, cb?: (error: string, rep: UpgradeTokenPlanTeamOrderResponse) => void): Promise<UpgradeTokenPlanTeamOrderResponse>;
|
|
80
96
|
/**
|
|
81
|
-
*
|
|
97
|
+
* 创建术语库。
|
|
82
98
|
|
|
83
|
-
|
|
99
|
+
在当前应用下创建一个新的翻译术语库,用于自定义源语言到目标语言的术语映射。创建成功后返回术语库 ID,可通过该 ID 进一步管理术语条目。
|
|
84
100
|
*/
|
|
85
|
-
|
|
101
|
+
CreateGlossary(req: CreateGlossaryRequest, cb?: (error: string, rep: CreateGlossaryResponse) => void): Promise<CreateGlossaryResponse>;
|
|
86
102
|
/**
|
|
87
|
-
*
|
|
103
|
+
* 删除术语库。
|
|
88
104
|
|
|
89
|
-
|
|
105
|
+
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
106
|
+
*/
|
|
107
|
+
DeleteGlossary(req: DeleteGlossaryRequest, cb?: (error: string, rep: DeleteGlossaryResponse) => void): Promise<DeleteGlossaryResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* 重置 TokenPlan APIKey 密钥。
|
|
90
110
|
|
|
91
|
-
|
|
111
|
+
重新生成密钥值,密钥版本号递增,旧密钥立即失效。APIKey ID 不变。重置后需通过 DescribeTokenPlanApiKeySecret 查询新密钥。
|
|
92
112
|
*/
|
|
93
|
-
|
|
113
|
+
ModifyTokenPlanApiKeySecret(req: ModifyTokenPlanApiKeySecretRequest, cb?: (error: string, rep: ModifyTokenPlanApiKeySecretResponse) => void): Promise<ModifyTokenPlanApiKeySecretResponse>;
|
|
94
114
|
/**
|
|
95
|
-
*
|
|
115
|
+
* 查询 TokenPlan 套餐详情。
|
|
96
116
|
|
|
97
|
-
|
|
117
|
+
返回套餐基本信息及额度中心主额度包余量。
|
|
98
118
|
*/
|
|
99
|
-
|
|
119
|
+
DescribeTokenPlan(req: DescribeTokenPlanRequest, cb?: (error: string, rep: DescribeTokenPlanResponse) => void): Promise<DescribeTokenPlanResponse>;
|
|
100
120
|
/**
|
|
101
|
-
*
|
|
121
|
+
* 批量修改术语条目。
|
|
102
122
|
|
|
103
|
-
|
|
123
|
+
在指定术语库下批量修改术语条目。单次最多修改 200 条。
|
|
104
124
|
*/
|
|
105
|
-
|
|
125
|
+
ModifyGlossaryEntries(req: ModifyGlossaryEntriesRequest, cb?: (error: string, rep: ModifyGlossaryEntriesResponse) => void): Promise<ModifyGlossaryEntriesResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* 查询 TokenPlan 套餐列表。
|
|
128
|
+
|
|
129
|
+
支持分页、过滤和排序。主账号可查看全部,子账号仅可查看自己创建的。返回结果包含每个套餐关联的额度中心主额度包详情。
|
|
130
|
+
*/
|
|
131
|
+
DescribeTokenPlanList(req: DescribeTokenPlanListRequest, cb?: (error: string, rep: DescribeTokenPlanListResponse) => void): Promise<DescribeTokenPlanListResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
134
|
+
*/
|
|
135
|
+
DescribeApiKey(req: DescribeApiKeyRequest, cb?: (error: string, rep: DescribeApiKeyResponse) => void): Promise<DescribeApiKeyResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* 删除 TokenPlan APIKey。
|
|
138
|
+
|
|
139
|
+
同时删除额度中心子额度包并通知网关清除缓存。
|
|
140
|
+
*/
|
|
141
|
+
DeleteTokenPlanApiKey(req: DeleteTokenPlanApiKeyRequest, cb?: (error: string, rep: DeleteTokenPlanApiKeyResponse) => void): Promise<DeleteTokenPlanApiKeyResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* 修改 TokenPlan APIKey 配置(网关关注字段)。
|
|
144
|
+
|
|
145
|
+
修改后自动通知网关更新缓存并同步额度中心。
|
|
146
|
+
*/
|
|
147
|
+
ModifyTokenPlanApiKey(req: ModifyTokenPlanApiKeyRequest, cb?: (error: string, rep: ModifyTokenPlanApiKeyResponse) => void): Promise<ModifyTokenPlanApiKeyResponse>;
|
|
106
148
|
/**
|
|
107
149
|
* 查询 TokenPlan APIKey 密钥(明文)。
|
|
108
150
|
|
|
@@ -27,6 +27,22 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("tokenhub.tencentcloudapi.com", "2026-03-22", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* 续费套餐。
|
|
32
|
+
|
|
33
|
+
对已有的 TokenPlan 套餐发起续费下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
34
|
+
*/
|
|
35
|
+
async RenewTokenPlanTeamOrder(req, cb) {
|
|
36
|
+
return this.request("RenewTokenPlanTeamOrder", req, cb);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 购买套餐。
|
|
40
|
+
|
|
41
|
+
发起 TokenPlan 套餐下单并完成支付,成功后返回大订单 ID 及关联的子订单、资源信息。
|
|
42
|
+
*/
|
|
43
|
+
async CreateTokenPlanTeamOrderAndBuy(req, cb) {
|
|
44
|
+
return this.request("CreateTokenPlanTeamOrderAndBuy", req, cb);
|
|
45
|
+
}
|
|
30
46
|
/**
|
|
31
47
|
* 查询 API 密钥列表。
|
|
32
48
|
|
|
@@ -36,12 +52,20 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
36
52
|
return this.request("DescribeApiKeyList", req, cb);
|
|
37
53
|
}
|
|
38
54
|
/**
|
|
39
|
-
*
|
|
55
|
+
* 查询模型列表。
|
|
40
56
|
|
|
41
|
-
|
|
57
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
42
58
|
*/
|
|
43
|
-
async
|
|
44
|
-
return this.request("
|
|
59
|
+
async DescribeModelList(req, cb) {
|
|
60
|
+
return this.request("DescribeModelList", req, cb);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 查询 TokenPlan APIKey 详情。
|
|
64
|
+
|
|
65
|
+
返回 APIKey 完整信息(含明文密钥)及子额度包余量。
|
|
66
|
+
*/
|
|
67
|
+
async DescribeTokenPlanApiKey(req, cb) {
|
|
68
|
+
return this.request("DescribeTokenPlanApiKey", req, cb);
|
|
45
69
|
}
|
|
46
70
|
/**
|
|
47
71
|
* 批量创建 TokenPlan APIKey。
|
|
@@ -60,58 +84,54 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
60
84
|
return this.request("DescribeTokenPlanApiKeyList", req, cb);
|
|
61
85
|
}
|
|
62
86
|
/**
|
|
63
|
-
*
|
|
87
|
+
* 批量创建术语条目。
|
|
64
88
|
|
|
65
|
-
|
|
89
|
+
在指定术语库下批量创建术语条目。单次最多创建 100 条。
|
|
66
90
|
*/
|
|
67
|
-
async
|
|
68
|
-
return this.request("
|
|
91
|
+
async CreateGlossaryEntries(req, cb) {
|
|
92
|
+
return this.request("CreateGlossaryEntries", req, cb);
|
|
69
93
|
}
|
|
70
94
|
/**
|
|
71
|
-
*
|
|
95
|
+
* 查询 TokenPlan APIKey 调用明细。
|
|
72
96
|
|
|
73
|
-
|
|
97
|
+
从 CLS 日志服务查询套餐下的调用明细,按 pkg_id 过滤,支持游标分页。
|
|
74
98
|
*/
|
|
75
|
-
async
|
|
76
|
-
return this.request("
|
|
99
|
+
async DescribeTokenPlanApiKeyUsageDetail(req, cb) {
|
|
100
|
+
return this.request("DescribeTokenPlanApiKeyUsageDetail", req, cb);
|
|
77
101
|
}
|
|
78
102
|
/**
|
|
79
|
-
*
|
|
103
|
+
* 查询术语库列表。
|
|
80
104
|
|
|
81
|
-
|
|
105
|
+
查询当前应用下的术语库列表。支持分页、过滤和排序。
|
|
82
106
|
*/
|
|
83
|
-
async
|
|
84
|
-
return this.request("
|
|
107
|
+
async DescribeGlossaries(req, cb) {
|
|
108
|
+
return this.request("DescribeGlossaries", req, cb);
|
|
85
109
|
}
|
|
86
110
|
/**
|
|
87
|
-
*
|
|
111
|
+
* 查询术语条目列表。
|
|
88
112
|
|
|
89
|
-
|
|
113
|
+
查询指定术语库下的术语条目。支持分页。
|
|
90
114
|
*/
|
|
91
|
-
async
|
|
92
|
-
return this.request("
|
|
115
|
+
async DescribeGlossaryEntries(req, cb) {
|
|
116
|
+
return this.request("DescribeGlossaryEntries", req, cb);
|
|
93
117
|
}
|
|
94
118
|
/**
|
|
95
|
-
*
|
|
119
|
+
* 查询用量排行列表。
|
|
96
120
|
|
|
97
|
-
|
|
98
|
-
*/
|
|
99
|
-
async DescribeTokenPlanList(req, cb) {
|
|
100
|
-
return this.request("DescribeTokenPlanList", req, cb);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* 查询模型列表。
|
|
121
|
+
按 apikey、endpoint、model 三个维度统计指定时间窗内的用量排行,返回顶部数据卡所需的 PageStats/TotalStats、左侧 Top 列表(含每对象整段累计值)、右侧色块趋势图所需的逐点曲线。前端通过 Offset 翻页、ShowAll 切换 CSV 全量导出模式。
|
|
104
122
|
|
|
105
|
-
|
|
123
|
+
MetricType 字段用于切换指标族,本期支持 tokens;接口预留以支持后续指标族扩展。响应回显 MetricType 与 MetricKeys(实际参与渲染的 metric key 列表,顺序固定 [Total, Input, Output]),前端按此渲染顶部数据卡与趋势图,无需硬编码 key 名。
|
|
106
124
|
*/
|
|
107
|
-
async
|
|
108
|
-
return this.request("
|
|
125
|
+
async DescribeUsageRankList(req, cb) {
|
|
126
|
+
return this.request("DescribeUsageRankList", req, cb);
|
|
109
127
|
}
|
|
110
128
|
/**
|
|
111
|
-
*
|
|
129
|
+
* 批量删除术语条目。
|
|
130
|
+
|
|
131
|
+
在指定术语库下批量删除术语条目。单次最多删除 200 条。若术语库不存在或不属于当前应用,返回 ResourceNotFound 错误。
|
|
112
132
|
*/
|
|
113
|
-
async
|
|
114
|
-
return this.request("
|
|
133
|
+
async DeleteGlossaryEntries(req, cb) {
|
|
134
|
+
return this.request("DeleteGlossaryEntries", req, cb);
|
|
115
135
|
}
|
|
116
136
|
/**
|
|
117
137
|
* 升配套餐。
|
|
@@ -122,38 +142,74 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
122
142
|
return this.request("UpgradeTokenPlanTeamOrder", req, cb);
|
|
123
143
|
}
|
|
124
144
|
/**
|
|
125
|
-
*
|
|
145
|
+
* 创建术语库。
|
|
126
146
|
|
|
127
|
-
|
|
147
|
+
在当前应用下创建一个新的翻译术语库,用于自定义源语言到目标语言的术语映射。创建成功后返回术语库 ID,可通过该 ID 进一步管理术语条目。
|
|
128
148
|
*/
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
149
|
+
async CreateGlossary(req, cb) {
|
|
150
|
+
return this.request("CreateGlossary", req, cb);
|
|
131
151
|
}
|
|
132
152
|
/**
|
|
133
|
-
*
|
|
153
|
+
* 删除术语库。
|
|
134
154
|
|
|
135
|
-
|
|
155
|
+
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
156
|
+
*/
|
|
157
|
+
async DeleteGlossary(req, cb) {
|
|
158
|
+
return this.request("DeleteGlossary", req, cb);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 重置 TokenPlan APIKey 密钥。
|
|
136
162
|
|
|
137
|
-
|
|
163
|
+
重新生成密钥值,密钥版本号递增,旧密钥立即失效。APIKey ID 不变。重置后需通过 DescribeTokenPlanApiKeySecret 查询新密钥。
|
|
138
164
|
*/
|
|
139
|
-
async
|
|
140
|
-
return this.request("
|
|
165
|
+
async ModifyTokenPlanApiKeySecret(req, cb) {
|
|
166
|
+
return this.request("ModifyTokenPlanApiKeySecret", req, cb);
|
|
141
167
|
}
|
|
142
168
|
/**
|
|
143
|
-
*
|
|
169
|
+
* 查询 TokenPlan 套餐详情。
|
|
144
170
|
|
|
145
|
-
|
|
171
|
+
返回套餐基本信息及额度中心主额度包余量。
|
|
146
172
|
*/
|
|
147
|
-
async
|
|
148
|
-
return this.request("
|
|
173
|
+
async DescribeTokenPlan(req, cb) {
|
|
174
|
+
return this.request("DescribeTokenPlan", req, cb);
|
|
149
175
|
}
|
|
150
176
|
/**
|
|
151
|
-
*
|
|
177
|
+
* 批量修改术语条目。
|
|
152
178
|
|
|
153
|
-
|
|
179
|
+
在指定术语库下批量修改术语条目。单次最多修改 200 条。
|
|
154
180
|
*/
|
|
155
|
-
async
|
|
156
|
-
return this.request("
|
|
181
|
+
async ModifyGlossaryEntries(req, cb) {
|
|
182
|
+
return this.request("ModifyGlossaryEntries", req, cb);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* 查询 TokenPlan 套餐列表。
|
|
186
|
+
|
|
187
|
+
支持分页、过滤和排序。主账号可查看全部,子账号仅可查看自己创建的。返回结果包含每个套餐关联的额度中心主额度包详情。
|
|
188
|
+
*/
|
|
189
|
+
async DescribeTokenPlanList(req, cb) {
|
|
190
|
+
return this.request("DescribeTokenPlanList", req, cb);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
194
|
+
*/
|
|
195
|
+
async DescribeApiKey(req, cb) {
|
|
196
|
+
return this.request("DescribeApiKey", req, cb);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* 删除 TokenPlan APIKey。
|
|
200
|
+
|
|
201
|
+
同时删除额度中心子额度包并通知网关清除缓存。
|
|
202
|
+
*/
|
|
203
|
+
async DeleteTokenPlanApiKey(req, cb) {
|
|
204
|
+
return this.request("DeleteTokenPlanApiKey", req, cb);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 修改 TokenPlan APIKey 配置(网关关注字段)。
|
|
208
|
+
|
|
209
|
+
修改后自动通知网关更新缓存并同步额度中心。
|
|
210
|
+
*/
|
|
211
|
+
async ModifyTokenPlanApiKey(req, cb) {
|
|
212
|
+
return this.request("ModifyTokenPlanApiKey", req, cb);
|
|
157
213
|
}
|
|
158
214
|
/**
|
|
159
215
|
* 查询 TokenPlan APIKey 密钥(明文)。
|