tencentcloud-sdk-nodejs-tokenhub 4.1.294 → 4.1.297

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.
@@ -15,11 +15,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
15
15
  async DescribeApiKeyList(req, cb) {
16
16
  return this.request("DescribeApiKeyList", req, cb);
17
17
  }
18
- async DescribeModelList(req, cb) {
19
- return this.request("DescribeModelList", req, cb);
20
- }
21
- async DescribeTokenPlanApiKey(req, cb) {
22
- return this.request("DescribeTokenPlanApiKey", req, cb);
18
+ async DescribeGlossaries(req, cb) {
19
+ return this.request("DescribeGlossaries", req, cb);
23
20
  }
24
21
  async CreateTokenPlanApiKeys(req, cb) {
25
22
  return this.request("CreateTokenPlanApiKeys", req, cb);
@@ -33,8 +30,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
33
30
  async DescribeTokenPlanApiKeyUsageDetail(req, cb) {
34
31
  return this.request("DescribeTokenPlanApiKeyUsageDetail", req, cb);
35
32
  }
36
- async DescribeGlossaries(req, cb) {
37
- return this.request("DescribeGlossaries", req, cb);
33
+ async DescribeModelList(req, cb) {
34
+ return this.request("DescribeModelList", req, cb);
35
+ }
36
+ async DescribeModelQuota(req, cb) {
37
+ return this.request("DescribeModelQuota", req, cb);
38
38
  }
39
39
  async ModifyApiKeyInfo(req, cb) {
40
40
  return this.request("ModifyApiKeyInfo", req, cb);
@@ -78,6 +78,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
78
78
  async DescribeTokenPlan(req, cb) {
79
79
  return this.request("DescribeTokenPlan", req, cb);
80
80
  }
81
+ async DescribeTokenPlanApiKey(req, cb) {
82
+ return this.request("DescribeTokenPlanApiKey", req, cb);
83
+ }
81
84
  async ModifyTokenPlanApiKey(req, cb) {
82
85
  return this.request("ModifyTokenPlanApiKey", req, cb);
83
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tokenhub",
3
- "version": "4.1.294",
3
+ "version": "4.1.297",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeApiKeyResponse, DescribeTokenPlanApiKeySecretRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, DescribeTokenPlanListRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, ModifyTokenPlanApiKeySecretRequest, CreateApiKeyRequest } from "./tokenhub_models";
2
+ import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeModelQuotaResponse, DescribeTokenPlanApiKeySecretRequest, DescribeModelQuotaRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, DescribeTokenPlanListRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, DescribeApiKeyResponse, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, ModifyTokenPlanApiKeySecretRequest, CreateApiKeyRequest } from "./tokenhub_models";
3
3
  /**
4
4
  * tokenhub client
5
5
  * @class
@@ -31,17 +31,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
31
31
  */
32
32
  DescribeApiKeyList(req: DescribeApiKeyListRequest, cb?: (error: string, rep: DescribeApiKeyListResponse) => void): Promise<DescribeApiKeyListResponse>;
33
33
  /**
34
- * 查询模型列表。
35
-
36
- 支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
37
- */
38
- DescribeModelList(req: DescribeModelListRequest, cb?: (error: string, rep: DescribeModelListResponse) => void): Promise<DescribeModelListResponse>;
39
- /**
40
- * 查询 TokenPlan APIKey 详情。
34
+ * 查询术语库列表。
41
35
 
42
- 返回 APIKey 完整信息(含明文密钥)及子额度包余量。
36
+ 查询当前应用下的术语库列表。支持分页、过滤和排序。
43
37
  */
44
- DescribeTokenPlanApiKey(req: DescribeTokenPlanApiKeyRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyResponse) => void): Promise<DescribeTokenPlanApiKeyResponse>;
38
+ DescribeGlossaries(req: DescribeGlossariesRequest, cb?: (error: string, rep: DescribeGlossariesResponse) => void): Promise<DescribeGlossariesResponse>;
45
39
  /**
46
40
  * 批量创建 TokenPlan APIKey。
47
41
 
@@ -68,11 +62,15 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
68
62
  */
69
63
  DescribeTokenPlanApiKeyUsageDetail(req: DescribeTokenPlanApiKeyUsageDetailRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyUsageDetailResponse) => void): Promise<DescribeTokenPlanApiKeyUsageDetailResponse>;
70
64
  /**
71
- * 查询术语库列表。
65
+ * 查询模型列表。
72
66
 
73
- 查询当前应用下的术语库列表。支持分页、过滤和排序。
67
+ 支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
74
68
  */
75
- DescribeGlossaries(req: DescribeGlossariesRequest, cb?: (error: string, rep: DescribeGlossariesResponse) => void): Promise<DescribeGlossariesResponse>;
69
+ DescribeModelList(req: DescribeModelListRequest, cb?: (error: string, rep: DescribeModelListResponse) => void): Promise<DescribeModelListResponse>;
70
+ /**
71
+ * 查询指定模型的 TPM 和 QPM 配额上限。
72
+ */
73
+ DescribeModelQuota(req?: DescribeModelQuotaRequest, cb?: (error: string, rep: DescribeModelQuotaResponse) => void): Promise<DescribeModelQuotaResponse>;
76
74
  /**
77
75
  * 更新 API 密钥信息。
78
76
 
@@ -165,6 +163,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
165
163
  返回套餐基本信息及额度中心主额度包余量。
166
164
  */
167
165
  DescribeTokenPlan(req: DescribeTokenPlanRequest, cb?: (error: string, rep: DescribeTokenPlanResponse) => void): Promise<DescribeTokenPlanResponse>;
166
+ /**
167
+ * 查询 TokenPlan APIKey 详情。
168
+
169
+ 返回 APIKey 完整信息(含明文密钥)及子额度包余量。
170
+ */
171
+ DescribeTokenPlanApiKey(req: DescribeTokenPlanApiKeyRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyResponse) => void): Promise<DescribeTokenPlanApiKeyResponse>;
168
172
  /**
169
173
  * 修改 TokenPlan APIKey 配置(网关关注字段)。
170
174
 
@@ -61,20 +61,12 @@ class Client extends TencentCloudCommon.AbstractClient {
61
61
  return this.request("DescribeApiKeyList", req, cb);
62
62
  }
63
63
  /**
64
- * 查询模型列表。
65
-
66
- 支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
67
- */
68
- async DescribeModelList(req, cb) {
69
- return this.request("DescribeModelList", req, cb);
70
- }
71
- /**
72
- * 查询 TokenPlan APIKey 详情。
64
+ * 查询术语库列表。
73
65
 
74
- 返回 APIKey 完整信息(含明文密钥)及子额度包余量。
66
+ 查询当前应用下的术语库列表。支持分页、过滤和排序。
75
67
  */
76
- async DescribeTokenPlanApiKey(req, cb) {
77
- return this.request("DescribeTokenPlanApiKey", req, cb);
68
+ async DescribeGlossaries(req, cb) {
69
+ return this.request("DescribeGlossaries", req, cb);
78
70
  }
79
71
  /**
80
72
  * 批量创建 TokenPlan APIKey。
@@ -110,12 +102,18 @@ class Client extends TencentCloudCommon.AbstractClient {
110
102
  return this.request("DescribeTokenPlanApiKeyUsageDetail", req, cb);
111
103
  }
112
104
  /**
113
- * 查询术语库列表。
105
+ * 查询模型列表。
114
106
 
115
- 查询当前应用下的术语库列表。支持分页、过滤和排序。
107
+ 支持按模型 ID、模型名称、模型能力等条件筛选,支持分页和排序。
116
108
  */
117
- async DescribeGlossaries(req, cb) {
118
- return this.request("DescribeGlossaries", req, cb);
109
+ async DescribeModelList(req, cb) {
110
+ return this.request("DescribeModelList", req, cb);
111
+ }
112
+ /**
113
+ * 查询指定模型的 TPM 和 QPM 配额上限。
114
+ */
115
+ async DescribeModelQuota(req, cb) {
116
+ return this.request("DescribeModelQuota", req, cb);
119
117
  }
120
118
  /**
121
119
  * 更新 API 密钥信息。
@@ -237,6 +235,14 @@ class Client extends TencentCloudCommon.AbstractClient {
237
235
  async DescribeTokenPlan(req, cb) {
238
236
  return this.request("DescribeTokenPlan", req, cb);
239
237
  }
238
+ /**
239
+ * 查询 TokenPlan APIKey 详情。
240
+
241
+ 返回 APIKey 完整信息(含明文密钥)及子额度包余量。
242
+ */
243
+ async DescribeTokenPlanApiKey(req, cb) {
244
+ return this.request("DescribeTokenPlanApiKey", req, cb);
245
+ }
240
246
  /**
241
247
  * 修改 TokenPlan APIKey 配置(网关关注字段)。
242
248
 
@@ -1280,81 +1280,9 @@ export interface DescribeUsageRankListResponse {
1280
1280
  RequestId?: string;
1281
1281
  }
1282
1282
  /**
1283
- * DescribeApiKey返回参数结构体
1283
+ * DescribeModelQuota返回参数结构体
1284
1284
  */
1285
- export interface DescribeApiKeyResponse {
1286
- /**
1287
- * API 密钥 ID。
1288
- */
1289
- ApiKeyId?: string;
1290
- /**
1291
- * 名称。
1292
- */
1293
- Name?: string;
1294
- /**
1295
- * API 密钥值(明文)。
1296
- */
1297
- ApiKey?: string;
1298
- /**
1299
- * 备注。
1300
- */
1301
- Remark?: string;
1302
- /**
1303
- * 平台类型。枚举:maas
1304
- */
1305
- Platform?: string;
1306
- /**
1307
- * 主账号。
1308
- */
1309
- Uin?: string;
1310
- /**
1311
- * 子账号。
1312
- */
1313
- SubUin?: string;
1314
- /**
1315
- * 状态。取值:enable(启用)、disable(禁用)。
1316
- */
1317
- Status?: string;
1318
- /**
1319
- * 绑定类型。取值:all(全部模型和接入点)、model_all_endpoint_custom(全部模型+自定义接入点)、model_custom_endpoint_all(自定义模型+全部接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。
1320
- */
1321
- BindType?: string;
1322
- /**
1323
- * 创建时间。格式:YYYY-MM-DD HH:mm:ss。
1324
- */
1325
- CreateTime?: string;
1326
- /**
1327
- * 更新时间。格式:YYYY-MM-DD HH:mm:ss。
1328
- */
1329
- UpdateTime?: string;
1330
- /**
1331
- * 应用 ID。
1332
- */
1333
- AppId?: string;
1334
- /**
1335
- * 是否可编辑。true 表示可编辑,false 表示不可编辑。
1336
- */
1337
- Editable?: boolean;
1338
- /**
1339
- * 绑定资源列表,区分 endpoint 和 model 类型。
1340
- */
1341
- BindingItems?: Array<BindingItem>;
1342
- /**
1343
- * IP 白名单列表。支持 IPv4和 CIDR 格式。空数组表示不限制 IP。
1344
- */
1345
- IpWhitelist?: Array<string>;
1346
- /**
1347
- * 当Platform为maas时该字段为空
1348
- */
1349
- Creator?: string;
1350
- /**
1351
- * Token 限额多维度信息。未配置限额时不返回该字段。
1352
- */
1353
- QuotaSet?: Array<QuotaInfo>;
1354
- /**
1355
- * Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
1356
- */
1357
- QuotaStatus?: string;
1285
+ export interface DescribeModelQuotaResponse {
1358
1286
  /**
1359
1287
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1360
1288
  */
@@ -1369,6 +1297,10 @@ export interface DescribeTokenPlanApiKeySecretRequest {
1369
1297
  */
1370
1298
  ApiKeyId: string;
1371
1299
  }
1300
+ /**
1301
+ * DescribeModelQuota请求参数结构体
1302
+ */
1303
+ export type DescribeModelQuotaRequest = null;
1372
1304
  /**
1373
1305
  * 模型计费信息
1374
1306
  */
@@ -2387,6 +2319,87 @@ export interface ModelSiteRegion {
2387
2319
  */
2388
2320
  Regions?: Array<string>;
2389
2321
  }
2322
+ /**
2323
+ * DescribeApiKey返回参数结构体
2324
+ */
2325
+ export interface DescribeApiKeyResponse {
2326
+ /**
2327
+ * API 密钥 ID。
2328
+ */
2329
+ ApiKeyId?: string;
2330
+ /**
2331
+ * 名称。
2332
+ */
2333
+ Name?: string;
2334
+ /**
2335
+ * API 密钥值(明文)。
2336
+ */
2337
+ ApiKey?: string;
2338
+ /**
2339
+ * 备注。
2340
+ */
2341
+ Remark?: string;
2342
+ /**
2343
+ * 平台类型。枚举:maas
2344
+ */
2345
+ Platform?: string;
2346
+ /**
2347
+ * 主账号。
2348
+ */
2349
+ Uin?: string;
2350
+ /**
2351
+ * 子账号。
2352
+ */
2353
+ SubUin?: string;
2354
+ /**
2355
+ * 状态。取值:enable(启用)、disable(禁用)。
2356
+ */
2357
+ Status?: string;
2358
+ /**
2359
+ * 绑定类型。取值:all(全部模型和接入点)、model_all_endpoint_custom(全部模型+自定义接入点)、model_custom_endpoint_all(自定义模型+全部接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。
2360
+ */
2361
+ BindType?: string;
2362
+ /**
2363
+ * 创建时间。格式:YYYY-MM-DD HH:mm:ss。
2364
+ */
2365
+ CreateTime?: string;
2366
+ /**
2367
+ * 更新时间。格式:YYYY-MM-DD HH:mm:ss。
2368
+ */
2369
+ UpdateTime?: string;
2370
+ /**
2371
+ * 应用 ID。
2372
+ */
2373
+ AppId?: string;
2374
+ /**
2375
+ * 是否可编辑。true 表示可编辑,false 表示不可编辑。
2376
+ */
2377
+ Editable?: boolean;
2378
+ /**
2379
+ * 绑定资源列表,区分 endpoint 和 model 类型。
2380
+ */
2381
+ BindingItems?: Array<BindingItem>;
2382
+ /**
2383
+ * IP 白名单列表。支持 IPv4和 CIDR 格式。空数组表示不限制 IP。
2384
+ */
2385
+ IpWhitelist?: Array<string>;
2386
+ /**
2387
+ * 当Platform为maas时该字段为空
2388
+ */
2389
+ Creator?: string;
2390
+ /**
2391
+ * Token 限额多维度信息。未配置限额时不返回该字段。
2392
+ */
2393
+ QuotaSet?: Array<QuotaInfo>;
2394
+ /**
2395
+ * Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
2396
+ */
2397
+ QuotaStatus?: string;
2398
+ /**
2399
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2400
+ */
2401
+ RequestId?: string;
2402
+ }
2390
2403
  /**
2391
2404
  * ModifyApiKeyStatus返回参数结构体
2392
2405
  */