tencentcloud-sdk-nodejs-kms 4.1.91 → 4.1.154

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/README.md CHANGED
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
62
62
 
63
63
  1. clone 代码到本地:
64
64
  ```
65
+ git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
66
+ # 或者
65
67
  git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
68
  # 或者
67
69
  git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
135
137
  // ...
136
138
  ```
137
139
 
138
- 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
140
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
139
141
 
140
142
  ## Common Client
141
143
 
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
143
145
 
144
146
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
145
147
 
146
- 详细使用请参阅示例:[使用 Common Client 进行调用](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples/common)
148
+ 详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
147
149
 
148
150
  ## 更多示例
149
151
 
150
- 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
152
+ 请参考 [examples](examples) 目录。
151
153
 
152
154
  # 相关配置
153
155
 
154
156
  ## 代理
155
157
 
156
- 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
158
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
157
159
 
158
160
  # 凭证管理
159
161
 
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-kms",
3
- "version": "4.1.91",
3
+ "version": "4.1.154",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -12,7 +12,8 @@
12
12
  "build:es": "tsc -p tsconfig.es.json",
13
13
  "build:slim": "node ./scripts/build_slim.js",
14
14
  "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
- "clean": "rimraf tencentcloud es"
15
+ "clean": "rimraf tencentcloud es",
16
+ "test:common": "vitest run"
16
17
  },
17
18
  "engines": {
18
19
  "node": ">=10"
@@ -44,9 +45,9 @@
44
45
  "url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
45
46
  },
46
47
  "devDependencies": {
47
- "@types/form-data": "^2.5.0",
48
+ "@types/ini": "^4.1.1",
48
49
  "@types/json-bigint": "^1.0.1",
49
- "@types/node": "^14.0.26",
50
+ "@types/node": "^18.0.0",
50
51
  "@types/node-fetch": "^2.5.7",
51
52
  "@types/uuid": "^9.0.8",
52
53
  "@typescript-eslint/eslint-plugin": "^2.34.0",
@@ -61,6 +62,7 @@
61
62
  "prettier": "^2.3.0",
62
63
  "rimraf": "^5.0.10",
63
64
  "ts-node": "^8.10.2",
64
- "typescript": "^3.9.7"
65
+ "typescript": "^5.9.2",
66
+ "vitest": "2.1.9"
65
67
  }
66
68
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.kms = void 0;
3
4
  var kms_1 = require("./kms");
4
5
  Object.defineProperty(exports, "kms", { enumerable: true, get: function () { return kms_1.kms; } });
@@ -117,7 +117,7 @@ export interface DisableKeyResponse {
117
117
  /**
118
118
  * DescribeWhiteBoxServiceStatus请求参数结构体
119
119
  */
120
- export declare type DescribeWhiteBoxServiceStatusRequest = null;
120
+ export type DescribeWhiteBoxServiceStatusRequest = null;
121
121
  /**
122
122
  * UpdateDataKeyDescription请求参数结构体
123
123
  */
@@ -353,7 +353,7 @@ export interface GetKeyRotationStatusRequest {
353
353
  /**
354
354
  * ListAlgorithms请求参数结构体
355
355
  */
356
- export declare type ListAlgorithmsRequest = null;
356
+ export type ListAlgorithmsRequest = null;
357
357
  /**
358
358
  * 标签键和标签值
359
359
  */
@@ -428,6 +428,10 @@ export interface GenerateDataKeyRequest {
428
428
  * KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
429
429
  */
430
430
  HsmClusterId?: string;
431
+ /**
432
+ * 标签列表,当参数IsHostedByKms=1,数据密钥托管到kms时有效.
433
+ */
434
+ Tags?: Array<Tag>;
431
435
  }
432
436
  /**
433
437
  * UpdateAlias返回参数结构体
@@ -532,7 +536,7 @@ export interface GetPublicKeyRequest {
532
536
  /**
533
537
  * GetServiceStatus请求参数结构体
534
538
  */
535
- export declare type GetServiceStatusRequest = null;
539
+ export type GetServiceStatusRequest = null;
536
540
  /**
537
541
  * EnableWhiteBoxKeys返回参数结构体
538
542
  */
@@ -886,6 +890,10 @@ export interface DataKeyMetadata {
886
890
  * CMK的全局唯一标识
887
891
  */
888
892
  KeyId?: string;
893
+ /**
894
+ * CMK的名称
895
+ */
896
+ KeyName?: string;
889
897
  /**
890
898
  * 作为密钥更容易辨识,更容易被人看懂的数据密钥名称
891
899
  */
@@ -1022,6 +1030,10 @@ export interface ImportDataKeyRequest {
1022
1030
  * KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
1023
1031
  */
1024
1032
  HsmClusterId?: string;
1033
+ /**
1034
+ * 标签列表
1035
+ */
1036
+ Tags?: Array<Tag>;
1025
1037
  }
1026
1038
  /**
1027
1039
  * ListKeyDetail请求参数结构体
@@ -1164,6 +1176,14 @@ export interface GenerateDataKeyResponse {
1164
1176
  * DataKey的全局唯一标识,当KMS托管数据密钥时返回。
1165
1177
  */
1166
1178
  DataKeyId?: string;
1179
+ /**
1180
+ * 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误
1181
+ */
1182
+ TagCode?: number;
1183
+ /**
1184
+ * 标签操作的返回信息
1185
+ */
1186
+ TagMsg?: string;
1167
1187
  /**
1168
1188
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1169
1189
  */
@@ -1408,6 +1428,14 @@ export interface ImportDataKeyResponse {
1408
1428
  * DataKey的全局唯一标识 否 官网/国内&国际站展示
1409
1429
  */
1410
1430
  DataKeyId?: string;
1431
+ /**
1432
+ * 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误
1433
+ */
1434
+ TagCode?: number;
1435
+ /**
1436
+ * 标签操作的返回信息
1437
+ */
1438
+ TagMsg?: string;
1411
1439
  /**
1412
1440
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1413
1441
  */
@@ -1624,6 +1652,10 @@ export interface ListDataKeyDetailRequest {
1624
1652
  * 数据密钥的长度
1625
1653
  */
1626
1654
  DataKeyLen?: number;
1655
+ /**
1656
+ * 标签过滤条件
1657
+ */
1658
+ TagFilters?: Array<TagFilter>;
1627
1659
  }
1628
1660
  /**
1629
1661
  * CancelDataKeyDeletion返回参数结构体
@@ -2018,7 +2050,7 @@ export interface DescribeWhiteBoxDeviceFingerprintsRequest {
2018
2050
  /**
2019
2051
  * GetRegions请求参数结构体
2020
2052
  */
2021
- export declare type GetRegionsRequest = null;
2053
+ export type GetRegionsRequest = null;
2022
2054
  /**
2023
2055
  * PostQuantumCryptoEncrypt返回参数结构体
2024
2056
  */
@@ -2291,7 +2323,7 @@ export interface UnbindCloudResourceResponse {
2291
2323
  */
2292
2324
  export interface DescribeKeyResponse {
2293
2325
  /**
2294
- * 密钥属性信息
2326
+ * 密钥属性信息。
2295
2327
  */
2296
2328
  KeyMetadata?: KeyMetadata;
2297
2329
  /**