tencentcloud-sdk-nodejs-tokenhub 4.1.314 → 4.1.343

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.
@@ -54,6 +54,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
54
54
  async ModifyApiKeyStatus(req, cb) {
55
55
  return this.request("ModifyApiKeyStatus", req, cb);
56
56
  }
57
+ async ModifyApiKeyBindings(req, cb) {
58
+ return this.request("ModifyApiKeyBindings", req, cb);
59
+ }
57
60
  async UpgradeTokenPlanTeamOrder(req, cb) {
58
61
  return this.request("UpgradeTokenPlanTeamOrder", req, cb);
59
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tokenhub",
3
- "version": "4.1.314",
3
+ "version": "4.1.343",
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, 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, 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";
3
3
  /**
4
4
  * tokenhub client
5
5
  * @class
@@ -117,6 +117,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
117
117
  * 更新 API 密钥的启用或禁用状态。
118
118
  */
119
119
  ModifyApiKeyStatus(req: ModifyApiKeyStatusRequest, cb?: (error: string, rep: ModifyApiKeyStatusResponse) => void): Promise<ModifyApiKeyStatusResponse>;
120
+ /**
121
+ * 更新 API 密钥绑定。
122
+
123
+ 更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
124
+ */
125
+ ModifyApiKeyBindings(req: ModifyApiKeyBindingsRequest, cb?: (error: string, rep: ModifyApiKeyBindingsResponse) => void): Promise<ModifyApiKeyBindingsResponse>;
120
126
  /**
121
127
  * 升配套餐。
122
128
 
@@ -173,6 +173,14 @@ class Client extends TencentCloudCommon.AbstractClient {
173
173
  async ModifyApiKeyStatus(req, cb) {
174
174
  return this.request("ModifyApiKeyStatus", req, cb);
175
175
  }
176
+ /**
177
+ * 更新 API 密钥绑定。
178
+
179
+ 更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
180
+ */
181
+ async ModifyApiKeyBindings(req, cb) {
182
+ return this.request("ModifyApiKeyBindings", req, cb);
183
+ }
176
184
  /**
177
185
  * 升配套餐。
178
186
 
@@ -755,6 +755,15 @@ export interface DescribeGlossaryEntriesRequest {
755
755
  */
756
756
  PageSize?: number;
757
757
  }
758
+ /**
759
+ * ModifyApiKeyBindings返回参数结构体
760
+ */
761
+ export interface ModifyApiKeyBindingsResponse {
762
+ /**
763
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
764
+ */
765
+ RequestId?: string;
766
+ }
758
767
  /**
759
768
  * DescribeTokenPlanApiKey请求参数结构体
760
769
  */
@@ -790,6 +799,27 @@ export interface ModifyGlossaryEntryInput {
790
799
  */
791
800
  TargetTerm?: string;
792
801
  }
802
+ /**
803
+ * ModifyApiKeyBindings请求参数结构体
804
+ */
805
+ export interface ModifyApiKeyBindingsRequest {
806
+ /**
807
+ * <p>API 密钥 ID。</p>
808
+ */
809
+ ApiKeyId: string;
810
+ /**
811
+ * <p>平台类型。取值:maas。</p>
812
+ */
813
+ Platform: string;
814
+ /**
815
+ * <p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
816
+ */
817
+ BindType: string;
818
+ /**
819
+ * <p>修改后的apikey的模型或服务绑定列表</p>
820
+ */
821
+ Bindings?: Array<BindingItem>;
822
+ }
793
823
  /**
794
824
  * CreateEndpoint返回参数结构体
795
825
  */