tencentcloud-sdk-nodejs-tokenhub 4.1.244 → 4.1.246
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 +3 -0
- package/package.json +1 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +7 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.js +8 -0
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +24 -7
|
@@ -30,6 +30,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
30
30
|
async DescribeTokenPlanList(req, cb) {
|
|
31
31
|
return this.request("DescribeTokenPlanList", req, cb);
|
|
32
32
|
}
|
|
33
|
+
async DescribeModelList(req, cb) {
|
|
34
|
+
return this.request("DescribeModelList", req, cb);
|
|
35
|
+
}
|
|
33
36
|
async DescribeApiKey(req, cb) {
|
|
34
37
|
return this.request("DescribeApiKey", req, cb);
|
|
35
38
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeTokenPlanApiKeyListResponse, DescribeUsageRankListRequest, DescribeTokenPlanRequest, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, DescribeApiKeyListResponse, RenewTokenPlanTeamOrderResponse,
|
|
2
|
+
import { DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeTokenPlanApiKeyListResponse, DescribeUsageRankListRequest, DescribeTokenPlanRequest, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, DescribeApiKeyListResponse, RenewTokenPlanTeamOrderResponse, DescribeModelListRequest, DescribeApiKeyListRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanListResponse, CreateTokenPlanApiKeysResponse, DescribeTokenPlanApiKeyRequest, DescribeApiKeyRequest, DescribeModelListResponse, DescribeTokenPlanApiKeyUsageDetailResponse, DescribeTokenPlanApiKeyListRequest, CreateTokenPlanTeamOrderAndBuyRequest, ModifyTokenPlanApiKeyRequest, RenewTokenPlanTeamOrderRequest, DeleteTokenPlanApiKeyResponse, DescribeTokenPlanApiKeyUsageDetailRequest, ModifyTokenPlanApiKeyResponse, CreateTokenPlanTeamOrderAndBuyResponse, DescribeTokenPlanListRequest, UpgradeTokenPlanTeamOrderResponse, DescribeTokenPlanResponse, CreateTokenPlanApiKeysRequest, DescribeUsageRankListResponse, DeleteTokenPlanApiKeyRequest, DescribeApiKeyResponse, DescribeTokenPlanApiKeySecretRequest } from "./tokenhub_models";
|
|
3
3
|
/**
|
|
4
4
|
* tokenhub client
|
|
5
5
|
* @class
|
|
@@ -60,6 +60,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
60
60
|
支持分页、过滤和排序。主账号可查看全部,子账号仅可查看自己创建的。返回结果包含每个套餐关联的额度中心主额度包详情。
|
|
61
61
|
*/
|
|
62
62
|
DescribeTokenPlanList(req: DescribeTokenPlanListRequest, cb?: (error: string, rep: DescribeTokenPlanListResponse) => void): Promise<DescribeTokenPlanListResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* 查询模型列表。
|
|
65
|
+
|
|
66
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
67
|
+
*/
|
|
68
|
+
DescribeModelList(req?: DescribeModelListRequest, cb?: (error: string, rep: DescribeModelListResponse) => void): Promise<DescribeModelListResponse>;
|
|
63
69
|
/**
|
|
64
70
|
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
65
71
|
*/
|
|
@@ -100,6 +100,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
100
100
|
async DescribeTokenPlanList(req, cb) {
|
|
101
101
|
return this.request("DescribeTokenPlanList", req, cb);
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* 查询模型列表。
|
|
105
|
+
|
|
106
|
+
支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
|
|
107
|
+
*/
|
|
108
|
+
async DescribeModelList(req, cb) {
|
|
109
|
+
return this.request("DescribeModelList", req, cb);
|
|
110
|
+
}
|
|
103
111
|
/**
|
|
104
112
|
* 根据 API 密钥 ID 或密钥值查询 API 密钥详情,返回明文密钥。ApiKeyId 和 ApiKey 至少需传入其一,优先使用 ApiKeyId。
|
|
105
113
|
*/
|
|
@@ -83,6 +83,10 @@ export interface BindingItem {
|
|
|
83
83
|
* 资源类型。取值:endpoint(服务)、model(模型)。
|
|
84
84
|
*/
|
|
85
85
|
ResourceType: string;
|
|
86
|
+
/**
|
|
87
|
+
* 资源状态
|
|
88
|
+
*/
|
|
89
|
+
Status?: string;
|
|
86
90
|
}
|
|
87
91
|
/**
|
|
88
92
|
* DescribeTokenPlanApiKeySecret返回参数结构体
|
|
@@ -414,14 +418,9 @@ export interface TokenPlanApiKeyInfo {
|
|
|
414
418
|
ProductType?: string;
|
|
415
419
|
}
|
|
416
420
|
/**
|
|
417
|
-
*
|
|
421
|
+
* DescribeModelList请求参数结构体
|
|
418
422
|
*/
|
|
419
|
-
export
|
|
420
|
-
/**
|
|
421
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
422
|
-
*/
|
|
423
|
-
RequestId?: string;
|
|
424
|
-
}
|
|
423
|
+
export type DescribeModelListRequest = null;
|
|
425
424
|
/**
|
|
426
425
|
* DescribeApiKeyList请求参数结构体
|
|
427
426
|
*/
|
|
@@ -550,6 +549,15 @@ export interface TokenSummaryBillingItem {
|
|
|
550
549
|
*/
|
|
551
550
|
TotalQty?: number;
|
|
552
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* DescribeModelList返回参数结构体
|
|
554
|
+
*/
|
|
555
|
+
export interface DescribeModelListResponse {
|
|
556
|
+
/**
|
|
557
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
558
|
+
*/
|
|
559
|
+
RequestId?: string;
|
|
560
|
+
}
|
|
553
561
|
/**
|
|
554
562
|
* DescribeTokenPlanApiKeyUsageDetail返回参数结构体
|
|
555
563
|
*/
|
|
@@ -802,6 +810,15 @@ export interface DescribeTokenPlanApiKeyUsageDetailRequest {
|
|
|
802
810
|
*/
|
|
803
811
|
ModelName?: string;
|
|
804
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* ModifyTokenPlanApiKey返回参数结构体
|
|
815
|
+
*/
|
|
816
|
+
export interface ModifyTokenPlanApiKeyResponse {
|
|
817
|
+
/**
|
|
818
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
819
|
+
*/
|
|
820
|
+
RequestId?: string;
|
|
821
|
+
}
|
|
805
822
|
/**
|
|
806
823
|
* API 密钥详情
|
|
807
824
|
*/
|