tencentcloud-sdk-nodejs-kms 4.1.71 → 4.1.78
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { UpdateAliasRequest, EnableWhiteBoxKeyRequest, AsymmetricRsaDecryptRequest, EnableKeyRotationRequest, DescribeWhiteBoxKeyDetailsResponse, CreateKeyRequest, DisableWhiteBoxKeyResponse, DisableKeyResponse, DescribeWhiteBoxServiceStatusRequest, UpdateDataKeyDescriptionRequest, DescribeDataKeyResponse, DisableDataKeyResponse, DescribeKeyRequest, DescribeDataKeysRequest, ListAlgorithmsResponse, DisableKeysResponse, EnableDataKeyResponse, DescribeWhiteBoxKeyResponse, UpdateKeyDescriptionResponse, DescribeWhiteBoxServiceStatusResponse, ScheduleDataKeyDeletionResponse, EnableKeyRequest, GetKeyRotationStatusRequest, ListAlgorithmsRequest, ListKeyDetailResponse, GenerateDataKeyRequest, UpdateAliasResponse, ScheduleKeyDeletionResponse, PostQuantumCryptoVerifyRequest, GenerateRandomResponse, UpdateDataKeyNameRequest, ScheduleDataKeyDeletionRequest, DescribeKeysRequest, GetPublicKeyRequest, GetServiceStatusRequest, EnableWhiteBoxKeysResponse, ArchiveKeyResponse, VerifyByAsymmetricKeyResponse, DescribeDataKeysResponse, DescribeWhiteBoxKeyRequest, GetParametersForImportResponse, DecryptResponse, ListDataKeyDetailResponse, CreateWhiteBoxKeyResponse, ImportKeyMaterialRequest, DeleteImportedKeyMaterialResponse, EnableKeysRequest, EnableWhiteBoxKeysRequest, EncryptByWhiteBoxResponse, UpdateDataKeyNameResponse, DescribeKeysResponse, EnableWhiteBoxKeyResponse, ListDataKeysResponse, ReEncryptRequest, ListKeysResponse, DescribeDataKeyRequest, AsymmetricSm2DecryptResponse, DisableKeyRotationResponse, VerifyByAsymmetricKeyRequest, DisableWhiteBoxKeysRequest, ImportDataKeyRequest, ListKeyDetailRequest, DeleteWhiteBoxKeyRequest, GetRegionsResponse, UpdateDataKeyDescriptionResponse, CancelKeyDeletionRequest, EnableDataKeysResponse, GenerateDataKeyResponse, EnableDataKeysRequest, CreateWhiteBoxKeyRequest, GetDataKeyPlaintextResponse, DisableDataKeyRequest, OverwriteWhiteBoxDeviceFingerprintsResponse, DisableWhiteBoxKeysResponse, ArchiveKeyRequest, GetParametersForImportRequest, CreateKeyResponse, ReEncryptResponse, EncryptResponse, GetDataKeyPlaintextRequest, GetDataKeyCiphertextBlobRequest, DeleteImportedKeyMaterialRequest, EnableKeyResponse, ImportDataKeyResponse, GetServiceStatusResponse, GetKeyRotationStatusResponse, EncryptRequest, AsymmetricSm2DecryptRequest, ListDataKeysRequest, DeleteWhiteBoxKeyResponse, ListDataKeyDetailRequest, CancelDataKeyDeletionResponse, ListKeysRequest, DescribeWhiteBoxDecryptKeyRequest, CancelKeyArchiveResponse, GetPublicKeyResponse, DecryptRequest, DescribeWhiteBoxKeyDetailsRequest, PostQuantumCryptoSignRequest, PostQuantumCryptoDecryptRequest,
|
|
2
|
+
import { UpdateAliasRequest, EnableWhiteBoxKeyRequest, AsymmetricRsaDecryptRequest, EnableKeyRotationRequest, DescribeWhiteBoxKeyDetailsResponse, CreateKeyRequest, DisableWhiteBoxKeyResponse, DisableKeyResponse, DescribeWhiteBoxServiceStatusRequest, UpdateDataKeyDescriptionRequest, DescribeDataKeyResponse, DisableDataKeyResponse, DescribeKeyRequest, DescribeDataKeysRequest, ListAlgorithmsResponse, DisableKeysResponse, EnableDataKeyResponse, DescribeWhiteBoxKeyResponse, UpdateKeyDescriptionResponse, DescribeWhiteBoxServiceStatusResponse, AsymmetricRsaDecryptResponse, ScheduleDataKeyDeletionResponse, EnableKeyRequest, GetKeyRotationStatusRequest, ListAlgorithmsRequest, ListKeyDetailResponse, GenerateDataKeyRequest, UpdateAliasResponse, ScheduleKeyDeletionResponse, PostQuantumCryptoVerifyRequest, GenerateRandomResponse, UpdateDataKeyNameRequest, ScheduleDataKeyDeletionRequest, DescribeKeysRequest, GetPublicKeyRequest, GetServiceStatusRequest, EnableWhiteBoxKeysResponse, ArchiveKeyResponse, VerifyByAsymmetricKeyResponse, DescribeDataKeysResponse, DescribeWhiteBoxKeyRequest, GetParametersForImportResponse, DecryptResponse, ListDataKeyDetailResponse, CreateWhiteBoxKeyResponse, ImportKeyMaterialRequest, DeleteImportedKeyMaterialResponse, EnableKeysRequest, EnableWhiteBoxKeysRequest, EncryptByWhiteBoxResponse, UpdateDataKeyNameResponse, DescribeKeysResponse, EnableWhiteBoxKeyResponse, ListDataKeysResponse, ReEncryptRequest, ListKeysResponse, DescribeDataKeyRequest, AsymmetricSm2DecryptResponse, DisableKeyRotationResponse, VerifyByAsymmetricKeyRequest, DisableWhiteBoxKeysRequest, ImportDataKeyRequest, ListKeyDetailRequest, DeleteWhiteBoxKeyRequest, GetRegionsResponse, UpdateDataKeyDescriptionResponse, CancelKeyDeletionRequest, EnableDataKeysResponse, GenerateDataKeyResponse, EnableDataKeysRequest, CreateWhiteBoxKeyRequest, GetDataKeyPlaintextResponse, DisableDataKeyRequest, OverwriteWhiteBoxDeviceFingerprintsResponse, DisableWhiteBoxKeysResponse, ArchiveKeyRequest, GetParametersForImportRequest, CreateKeyResponse, ReEncryptResponse, EncryptResponse, GetDataKeyPlaintextRequest, GetDataKeyCiphertextBlobRequest, DeleteImportedKeyMaterialRequest, EnableKeyResponse, ImportDataKeyResponse, GetServiceStatusResponse, GetKeyRotationStatusResponse, EncryptRequest, AsymmetricSm2DecryptRequest, ListDataKeysRequest, DeleteWhiteBoxKeyResponse, ListDataKeyDetailRequest, CancelDataKeyDeletionResponse, ListKeysRequest, DescribeWhiteBoxDecryptKeyRequest, CancelKeyArchiveResponse, GetPublicKeyResponse, DecryptRequest, DescribeWhiteBoxKeyDetailsRequest, PostQuantumCryptoSignRequest, PostQuantumCryptoDecryptRequest, CancelKeyDeletionResponse, DisableKeysRequest, DisableWhiteBoxKeyRequest, UnbindCloudResourceRequest, OverwriteWhiteBoxDeviceFingerprintsRequest, EnableKeyRotationResponse, BindCloudResourceResponse, EnableKeysResponse, SignByAsymmetricKeyRequest, DescribeWhiteBoxDeviceFingerprintsRequest, GetRegionsRequest, PostQuantumCryptoEncryptResponse, EncryptByWhiteBoxRequest, GenerateRandomRequest, DisableDataKeysResponse, ScheduleKeyDeletionRequest, CancelDataKeyDeletionRequest, PostQuantumCryptoEncryptRequest, DisableKeyRequest, ImportKeyMaterialResponse, EnableDataKeyRequest, BindCloudResourceRequest, GetDataKeyCiphertextBlobResponse, PostQuantumCryptoSignResponse, SignByAsymmetricKeyResponse, PostQuantumCryptoVerifyResponse, DescribeWhiteBoxDecryptKeyResponse, DescribeWhiteBoxDeviceFingerprintsResponse, PostQuantumCryptoDecryptResponse, DisableDataKeysRequest, UpdateKeyDescriptionRequest, UnbindCloudResourceResponse, DescribeKeyResponse, CancelKeyArchiveRequest, DisableKeyRotationRequest } from "./kms_models";
|
|
3
3
|
/**
|
|
4
4
|
* kms client
|
|
5
5
|
* @class
|
|
@@ -299,13 +299,21 @@ export interface DescribeWhiteBoxServiceStatusResponse {
|
|
|
299
299
|
RequestId?: string;
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
302
|
+
* AsymmetricRsaDecrypt返回参数结构体
|
|
303
303
|
*/
|
|
304
|
-
export interface
|
|
304
|
+
export interface AsymmetricRsaDecryptResponse {
|
|
305
305
|
/**
|
|
306
|
-
* CMK
|
|
306
|
+
* CMK的唯一标识
|
|
307
307
|
*/
|
|
308
308
|
KeyId?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 解密后的明文,base64编码
|
|
311
|
+
*/
|
|
312
|
+
Plaintext?: string;
|
|
313
|
+
/**
|
|
314
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
315
|
+
*/
|
|
316
|
+
RequestId?: string;
|
|
309
317
|
}
|
|
310
318
|
/**
|
|
311
319
|
* ScheduleDataKeyDeletion返回参数结构体
|
|
@@ -922,6 +930,34 @@ export interface DataKeyMetadata {
|
|
|
922
930
|
* 资源ID,格式:creatorUin/$creatorUin/$dataKeyId
|
|
923
931
|
*/
|
|
924
932
|
ResourceId?: string;
|
|
933
|
+
/**
|
|
934
|
+
* 密钥是否是主副本。0:主本,1:同步副本。
|
|
935
|
+
*/
|
|
936
|
+
IsSyncReplica?: number;
|
|
937
|
+
/**
|
|
938
|
+
* 同步的原始地域
|
|
939
|
+
*/
|
|
940
|
+
SourceRegion?: string;
|
|
941
|
+
/**
|
|
942
|
+
* 密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。
|
|
943
|
+
*/
|
|
944
|
+
SyncStatus?: number;
|
|
945
|
+
/**
|
|
946
|
+
* 同步的结果描述
|
|
947
|
+
*/
|
|
948
|
+
SyncMessages?: string;
|
|
949
|
+
/**
|
|
950
|
+
* 同步的开始时间
|
|
951
|
+
*/
|
|
952
|
+
SyncStartTime?: number;
|
|
953
|
+
/**
|
|
954
|
+
* 同步的结束时间
|
|
955
|
+
*/
|
|
956
|
+
SyncEndTime?: number;
|
|
957
|
+
/**
|
|
958
|
+
* 同步的原始集群,如果为空,是公有云公共集群
|
|
959
|
+
*/
|
|
960
|
+
SourceHsmClusterId?: string;
|
|
925
961
|
}
|
|
926
962
|
/**
|
|
927
963
|
* VerifyByAsymmetricKey请求参数结构体
|
|
@@ -1445,6 +1481,14 @@ export interface GetServiceStatusResponse {
|
|
|
1445
1481
|
* IsAllowedDataKeyHosted为1时有效,已使用的数据密钥数量。
|
|
1446
1482
|
*/
|
|
1447
1483
|
DataKeyUsedCount?: number;
|
|
1484
|
+
/**
|
|
1485
|
+
* 同步任务的目标地域信息
|
|
1486
|
+
*/
|
|
1487
|
+
SyncTaskList?: Array<DestinationSyncConfig>;
|
|
1488
|
+
/**
|
|
1489
|
+
* 是否支持同步任务。true:支持,false:不支持。
|
|
1490
|
+
*/
|
|
1491
|
+
IsAllowedSync?: boolean;
|
|
1448
1492
|
/**
|
|
1449
1493
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1450
1494
|
*/
|
|
@@ -1709,6 +1753,34 @@ export interface KeyMetadata {
|
|
|
1709
1753
|
* 上次乱转时间(Unix timestamp)
|
|
1710
1754
|
*/
|
|
1711
1755
|
LastRotateTime?: number;
|
|
1756
|
+
/**
|
|
1757
|
+
* 密钥是否是主副本。0:主本,1:同步副本。
|
|
1758
|
+
*/
|
|
1759
|
+
IsSyncReplica?: number;
|
|
1760
|
+
/**
|
|
1761
|
+
* 同步的原始地域
|
|
1762
|
+
*/
|
|
1763
|
+
SourceRegion?: string;
|
|
1764
|
+
/**
|
|
1765
|
+
* 密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。
|
|
1766
|
+
*/
|
|
1767
|
+
SyncStatus?: number;
|
|
1768
|
+
/**
|
|
1769
|
+
* 同步的结果描述
|
|
1770
|
+
*/
|
|
1771
|
+
SyncMessages?: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* 同步的开始时间
|
|
1774
|
+
*/
|
|
1775
|
+
SyncStartTime?: number;
|
|
1776
|
+
/**
|
|
1777
|
+
* 同步的结束时间
|
|
1778
|
+
*/
|
|
1779
|
+
SyncEndTime?: number;
|
|
1780
|
+
/**
|
|
1781
|
+
* 同步的原始集群,如果为空,是公有云公共集群
|
|
1782
|
+
*/
|
|
1783
|
+
SourceHsmClusterId?: string;
|
|
1712
1784
|
}
|
|
1713
1785
|
/**
|
|
1714
1786
|
* CancelKeyArchive返回参数结构体
|
|
@@ -1813,21 +1885,17 @@ export interface PostQuantumCryptoDecryptRequest {
|
|
|
1813
1885
|
EncryptionAlgorithm?: string;
|
|
1814
1886
|
}
|
|
1815
1887
|
/**
|
|
1816
|
-
*
|
|
1888
|
+
* 同步任务的目标地域列表,包括地域和集群信息。如果集群为空,表示公有云共享集群,如果集群不为空,表示独享集群。
|
|
1817
1889
|
*/
|
|
1818
|
-
export interface
|
|
1890
|
+
export interface DestinationSyncConfig {
|
|
1819
1891
|
/**
|
|
1820
|
-
*
|
|
1892
|
+
* 同步任务的目标地域
|
|
1821
1893
|
*/
|
|
1822
|
-
|
|
1894
|
+
DestinationRegion?: string;
|
|
1823
1895
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*/
|
|
1826
|
-
Plaintext?: string;
|
|
1827
|
-
/**
|
|
1828
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1896
|
+
* HsmClusterId为空表示公有云共享版,如果不为空表示地域下独享版集群。
|
|
1829
1897
|
*/
|
|
1830
|
-
|
|
1898
|
+
HsmClusterId?: string;
|
|
1831
1899
|
}
|
|
1832
1900
|
/**
|
|
1833
1901
|
* CancelKeyDeletion返回参数结构体
|
|
@@ -1994,6 +2062,15 @@ export interface GenerateRandomRequest {
|
|
|
1994
2062
|
*/
|
|
1995
2063
|
NumberOfBytes: number;
|
|
1996
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* 返回CMK列表信息
|
|
2067
|
+
*/
|
|
2068
|
+
export interface Key {
|
|
2069
|
+
/**
|
|
2070
|
+
* CMK的全局唯一标识。
|
|
2071
|
+
*/
|
|
2072
|
+
KeyId?: string;
|
|
2073
|
+
}
|
|
1997
2074
|
/**
|
|
1998
2075
|
* DisableDataKeys返回参数结构体
|
|
1999
2076
|
*/
|