tencentcloud-sdk-nodejs-tokenhub 4.1.294 → 4.1.298

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.298",
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,37 @@ 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;
1285
+ export interface DescribeModelQuotaResponse {
1322
1286
  /**
1323
- * 创建时间。格式:YYYY-MM-DD HH:mm:ss。
1287
+ * <p>模型 ID。</p>
1324
1288
  */
1325
- CreateTime?: string;
1289
+ ModelId?: string;
1326
1290
  /**
1327
- * 更新时间。格式:YYYY-MM-DD HH:mm:ss。
1291
+ * <p>TPM 限制(Tokens Per Minute)。模型无配额配置时不返回此字段。</p>
1328
1292
  */
1329
- UpdateTime?: string;
1293
+ TPMLimit?: number;
1330
1294
  /**
1331
- * 应用 ID。
1295
+ * <p>RPM 限制(Request Per Minute)。模型无配额配置时不返回此字段。</p>
1332
1296
  */
1333
- AppId?: string;
1297
+ RPMLimit?: number;
1334
1298
  /**
1335
- * 是否可编辑。true 表示可编辑,false 表示不可编辑。
1299
+ * <p>TPM 保障包 input 配额</p>
1336
1300
  */
1337
- Editable?: boolean;
1301
+ TPMInputQuotaLimit?: number;
1338
1302
  /**
1339
- * 绑定资源列表,区分 endpoint model 类型。
1303
+ * <p>TPM 保障包 output 配额</p>
1340
1304
  */
1341
- BindingItems?: Array<BindingItem>;
1305
+ TPMOutputQuotaLimit?: number;
1342
1306
  /**
1343
- * IP 白名单列表。支持 IPv4和 CIDR 格式。空数组表示不限制 IP。
1307
+ * <p>TPM 预留 input 配额</p>
1344
1308
  */
1345
- IpWhitelist?: Array<string>;
1309
+ TPMInputReserveLimit?: number;
1346
1310
  /**
1347
- * 当Platform为maas时该字段为空
1311
+ * <p>TPM 预留 output 配额</p>
1348
1312
  */
1349
- Creator?: string;
1350
- /**
1351
- * Token 限额多维度信息。未配置限额时不返回该字段。
1352
- */
1353
- QuotaSet?: Array<QuotaInfo>;
1354
- /**
1355
- * Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
1356
- */
1357
- QuotaStatus?: string;
1313
+ TPMOutputReserveLimit?: number;
1358
1314
  /**
1359
1315
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1360
1316
  */
@@ -1369,6 +1325,15 @@ export interface DescribeTokenPlanApiKeySecretRequest {
1369
1325
  */
1370
1326
  ApiKeyId: string;
1371
1327
  }
1328
+ /**
1329
+ * DescribeModelQuota请求参数结构体
1330
+ */
1331
+ export interface DescribeModelQuotaRequest {
1332
+ /**
1333
+ * <p>模型 ID。可通过 DescribeModelList 获取。</p>
1334
+ */
1335
+ ModelId: string;
1336
+ }
1372
1337
  /**
1373
1338
  * 模型计费信息
1374
1339
  */
@@ -2387,6 +2352,87 @@ export interface ModelSiteRegion {
2387
2352
  */
2388
2353
  Regions?: Array<string>;
2389
2354
  }
2355
+ /**
2356
+ * DescribeApiKey返回参数结构体
2357
+ */
2358
+ export interface DescribeApiKeyResponse {
2359
+ /**
2360
+ * API 密钥 ID。
2361
+ */
2362
+ ApiKeyId?: string;
2363
+ /**
2364
+ * 名称。
2365
+ */
2366
+ Name?: string;
2367
+ /**
2368
+ * API 密钥值(明文)。
2369
+ */
2370
+ ApiKey?: string;
2371
+ /**
2372
+ * 备注。
2373
+ */
2374
+ Remark?: string;
2375
+ /**
2376
+ * 平台类型。枚举:maas
2377
+ */
2378
+ Platform?: string;
2379
+ /**
2380
+ * 主账号。
2381
+ */
2382
+ Uin?: string;
2383
+ /**
2384
+ * 子账号。
2385
+ */
2386
+ SubUin?: string;
2387
+ /**
2388
+ * 状态。取值:enable(启用)、disable(禁用)。
2389
+ */
2390
+ Status?: string;
2391
+ /**
2392
+ * 绑定类型。取值:all(全部模型和接入点)、model_all_endpoint_custom(全部模型+自定义接入点)、model_custom_endpoint_all(自定义模型+全部接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。
2393
+ */
2394
+ BindType?: string;
2395
+ /**
2396
+ * 创建时间。格式:YYYY-MM-DD HH:mm:ss。
2397
+ */
2398
+ CreateTime?: string;
2399
+ /**
2400
+ * 更新时间。格式:YYYY-MM-DD HH:mm:ss。
2401
+ */
2402
+ UpdateTime?: string;
2403
+ /**
2404
+ * 应用 ID。
2405
+ */
2406
+ AppId?: string;
2407
+ /**
2408
+ * 是否可编辑。true 表示可编辑,false 表示不可编辑。
2409
+ */
2410
+ Editable?: boolean;
2411
+ /**
2412
+ * 绑定资源列表,区分 endpoint 和 model 类型。
2413
+ */
2414
+ BindingItems?: Array<BindingItem>;
2415
+ /**
2416
+ * IP 白名单列表。支持 IPv4和 CIDR 格式。空数组表示不限制 IP。
2417
+ */
2418
+ IpWhitelist?: Array<string>;
2419
+ /**
2420
+ * 当Platform为maas时该字段为空
2421
+ */
2422
+ Creator?: string;
2423
+ /**
2424
+ * Token 限额多维度信息。未配置限额时不返回该字段。
2425
+ */
2426
+ QuotaSet?: Array<QuotaInfo>;
2427
+ /**
2428
+ * Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
2429
+ */
2430
+ QuotaStatus?: string;
2431
+ /**
2432
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2433
+ */
2434
+ RequestId?: string;
2435
+ }
2390
2436
  /**
2391
2437
  * ModifyApiKeyStatus返回参数结构体
2392
2438
  */