tencentcloud-sdk-nodejs-tokenhub 4.1.344 → 4.1.346

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.
@@ -48,6 +48,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
48
48
  async DescribeUsageRankList(req, cb) {
49
49
  return this.request("DescribeUsageRankList", req, cb);
50
50
  }
51
+ async DescribeTokenPlanPersonalPackage(req, cb) {
52
+ return this.request("DescribeTokenPlanPersonalPackage", req, cb);
53
+ }
51
54
  async DeleteGlossaryEntries(req, cb) {
52
55
  return this.request("DeleteGlossaryEntries", req, cb);
53
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tokenhub",
3
- "version": "4.1.344",
3
+ "version": "4.1.346",
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, ModifyApiKeyBindingsResponse, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, ModifyApiKeyBindingsRequest, 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";
2
+ import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DescribeTokenPlanPersonalPackageResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, ModifyApiKeyBindingsResponse, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, ModifyApiKeyBindingsRequest, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeModelQuotaResponse, DescribeTokenPlanApiKeySecretRequest, DescribeModelQuotaRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeTokenPlanPersonalPackageRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, DescribeApiKeyResponse, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, DescribeTokenPlanListRequest, CreateApiKeyRequest } from "./tokenhub_models";
3
3
  /**
4
4
  * tokenhub client
5
5
  * @class
@@ -107,6 +107,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
107
107
  - TopList:按MetricKeys[0]降序的对象列表,含整段聚合值与逐时间点曲线。
108
108
  */
109
109
  DescribeUsageRankList(req: DescribeUsageRankListRequest, cb?: (error: string, rep: DescribeUsageRankListResponse) => void): Promise<DescribeUsageRankListResponse>;
110
+ /**
111
+ * 查询个人版套餐详情。
112
+
113
+ 查询指定产品类型的个人版 Token Plan 套餐状态、额度及续费信息。
114
+ */
115
+ DescribeTokenPlanPersonalPackage(req: DescribeTokenPlanPersonalPackageRequest, cb?: (error: string, rep: DescribeTokenPlanPersonalPackageResponse) => void): Promise<DescribeTokenPlanPersonalPackageResponse>;
110
116
  /**
111
117
  * 批量删除术语条目。
112
118
 
@@ -159,6 +159,14 @@ class Client extends TencentCloudCommon.AbstractClient {
159
159
  async DescribeUsageRankList(req, cb) {
160
160
  return this.request("DescribeUsageRankList", req, cb);
161
161
  }
162
+ /**
163
+ * 查询个人版套餐详情。
164
+
165
+ 查询指定产品类型的个人版 Token Plan 套餐状态、额度及续费信息。
166
+ */
167
+ async DescribeTokenPlanPersonalPackage(req, cb) {
168
+ return this.request("DescribeTokenPlanPersonalPackage", req, cb);
169
+ }
162
170
  /**
163
171
  * 批量删除术语条目。
164
172
 
@@ -311,6 +311,79 @@ export interface DescribeModelListResponse {
311
311
  */
312
312
  RequestId?: string;
313
313
  }
314
+ /**
315
+ * DescribeTokenPlanPersonalPackage返回参数结构体
316
+ */
317
+ export interface DescribeTokenPlanPersonalPackageResponse {
318
+ /**
319
+ * <p>产品类型。</p>
320
+ */
321
+ ProductType?: string;
322
+ /**
323
+ * <p>套餐状态。取值:active(生效中)、processing(处理中)、failed(创建失败)、isolated(隔离/欠费)、destroyed(已销毁)、used_up(额度用尽)、stopped(已停止)、unpurchased(未购买)。</p>
324
+ */
325
+ PackageStatus?: string;
326
+ /**
327
+ * <p>计费资源ID</p>
328
+ */
329
+ ResourceId?: string;
330
+ /**
331
+ * <p>总额度。</p>
332
+ */
333
+ TotalCredits?: string;
334
+ /**
335
+ * <p>已使用额度。</p>
336
+ */
337
+ TotalUsed?: string;
338
+ /**
339
+ * <p>单周期额度。</p>
340
+ */
341
+ CycleCredits?: string;
342
+ /**
343
+ * <p>总周期数。</p>
344
+ */
345
+ TotalCycles?: number;
346
+ /**
347
+ * <p>当前周期序号。</p>
348
+ */
349
+ CurrentCycle?: number;
350
+ /**
351
+ * <p>剩余周期数。</p>
352
+ */
353
+ RemainCycles?: number;
354
+ /**
355
+ * <p>套餐生效时间,ISO 8601 格式。</p>
356
+ */
357
+ StartTime?: string;
358
+ /**
359
+ * <p>套餐过期时间,ISO 8601 格式。</p>
360
+ */
361
+ ExpireTime?: string;
362
+ /**
363
+ * <p>当前周期到期日,ISO 8601 格式。</p>
364
+ */
365
+ PeriodEndDate?: string;
366
+ /**
367
+ * <p>自动续费标识。取值:0(未开启)、1(已开启)。</p>
368
+ */
369
+ AutoRenewFlag?: number;
370
+ /**
371
+ * <p>输出token数</p><p>单位:tokens</p>
372
+ */
373
+ OutputToken?: number;
374
+ /**
375
+ * <p>输入token数</p><p>单位:token</p>
376
+ */
377
+ InputToken?: number;
378
+ /**
379
+ * <p>缓存命中token数</p><p>单位:token</p>
380
+ */
381
+ CacheToken?: number;
382
+ /**
383
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
384
+ */
385
+ RequestId?: string;
386
+ }
314
387
  /**
315
388
  * DeleteEndpoint返回参数结构体
316
389
  */
@@ -1814,6 +1887,15 @@ export interface TokenPlanListItem {
1814
1887
  */
1815
1888
  AutoRenewFlag?: number;
1816
1889
  }
1890
+ /**
1891
+ * DescribeTokenPlanPersonalPackage请求参数结构体
1892
+ */
1893
+ export interface DescribeTokenPlanPersonalPackageRequest {
1894
+ /**
1895
+ * <p>产品类型。取值:personal(个人版)、personal-hunyuan(个人版混元)。</p>
1896
+ */
1897
+ ProductType: string;
1898
+ }
1817
1899
  /**
1818
1900
  * DescribeApiKey请求参数结构体
1819
1901
  */
@@ -2151,25 +2233,13 @@ export interface DescribeTokenPlanApiKeyResponse {
2151
2233
  RequestId?: string;
2152
2234
  }
2153
2235
  /**
2154
- * DescribeTokenPlanList请求参数结构体
2236
+ * ModifyTokenPlanApiKeySecret请求参数结构体
2155
2237
  */
2156
- export interface DescribeTokenPlanListRequest {
2157
- /**
2158
- * 分页查询偏移量,默认为 0。
2159
- */
2160
- Offset?: number;
2161
- /**
2162
- * 分页查询返回数量,默认为 20,最大值为 100。
2163
- */
2164
- Limit?: number;
2165
- /**
2166
- * 分页查询过滤条件列表。支持的过滤字段:TeamId(套餐 ID)、Name(套餐名称)、StopReason(关停原因)、ProductType(套餐类型)。
2167
- */
2168
- Filters?: Array<RequestFilter>;
2238
+ export interface ModifyTokenPlanApiKeySecretRequest {
2169
2239
  /**
2170
- * 排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
2240
+ * API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
2171
2241
  */
2172
- Sorts?: Array<RequestSort>;
2242
+ ApiKeyId: string;
2173
2243
  }
2174
2244
  /**
2175
2245
  * 模型体验包信息
@@ -2539,13 +2609,25 @@ export interface RequestFilter {
2539
2609
  Values: Array<string>;
2540
2610
  }
2541
2611
  /**
2542
- * ModifyTokenPlanApiKeySecret请求参数结构体
2612
+ * DescribeTokenPlanList请求参数结构体
2543
2613
  */
2544
- export interface ModifyTokenPlanApiKeySecretRequest {
2614
+ export interface DescribeTokenPlanListRequest {
2545
2615
  /**
2546
- * API Key ID。可通过DescribeTokenPlanApiKeyList接口获取。
2616
+ * 分页查询偏移量,默认为 0。
2547
2617
  */
2548
- ApiKeyId: string;
2618
+ Offset?: number;
2619
+ /**
2620
+ * 分页查询返回数量,默认为 20,最大值为 100。
2621
+ */
2622
+ Limit?: number;
2623
+ /**
2624
+ * 分页查询过滤条件列表。支持的过滤字段:TeamId(套餐 ID)、Name(套餐名称)、StopReason(关停原因)、ProductType(套餐类型)。
2625
+ */
2626
+ Filters?: Array<RequestFilter>;
2627
+ /**
2628
+ * 排序条件列表。支持的排序字段:CreatedAt(创建时间)、UpdatedAt(更新时间)。默认按 CreatedAt 降序。
2629
+ */
2630
+ Sorts?: Array<RequestSort>;
2549
2631
  }
2550
2632
  /**
2551
2633
  * 排序条件