@ucloud-sdks/ucloud-sdk-js 0.2.28 → 0.2.29
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/lib/services/ukms/index.d.ts +35 -96
- package/lib/services/ukms/index.js +1 -10
- package/package.json +1 -1
|
@@ -135,12 +135,6 @@ export default class UKMSClient extends Client {
|
|
|
135
135
|
* See also: https://docs.ucloud.cn/api/ukms-api/list_keys
|
|
136
136
|
*/
|
|
137
137
|
listKeys(request?: ListKeysRequest): Promise<ListKeysResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
|
|
140
|
-
*
|
|
141
|
-
* See also: https://docs.ucloud.cn/api/ukms-api/list_schedule_deletion_keys
|
|
142
|
-
*/
|
|
143
|
-
listScheduleDeletionKeys(request?: ListScheduleDeletionKeysRequest): Promise<ListScheduleDeletionKeysResponse>;
|
|
144
138
|
/**
|
|
145
139
|
* RotateKeyOnDemand - 立即触发一次密钥轮转。
|
|
146
140
|
*
|
|
@@ -178,7 +172,7 @@ export default class UKMSClient extends Client {
|
|
|
178
172
|
*/
|
|
179
173
|
verify(request?: VerifyRequest): Promise<VerifyResponse>;
|
|
180
174
|
/**
|
|
181
|
-
* VerifyMac -
|
|
175
|
+
* VerifyMac - 验证指定消息、HMAC KMS 密钥和 MAC 算法的基于哈希的消息认证码 (HMAC)。为了验证 HMAC,VerifyMac 会使用您指定的消息、HMAC KMS 密钥和 MAC 算法计算 HMAC,并将计算出的 HMAC 与您指定的 HMAC 进行比较。如果两个 HMAC 完全相同,则验证成功;否则,验证失败。 验证结果表明,自计算 HMAC 以来,消息未发生更改,并且使用了指定的密钥来生成和验证 HMAC。
|
|
182
176
|
*
|
|
183
177
|
* See also: https://docs.ucloud.cn/api/ukms-api/verify_mac
|
|
184
178
|
*/
|
|
@@ -399,10 +393,6 @@ export interface DescribeKeyResponse {
|
|
|
399
393
|
* 计划删除时间,Unix 时间戳。
|
|
400
394
|
*/
|
|
401
395
|
DeletionDate?: number;
|
|
402
|
-
/**
|
|
403
|
-
* 密钥所属组织的数字 ID,来源于密钥关联的资源交易记录。
|
|
404
|
-
*/
|
|
405
|
-
OrganizationId?: number;
|
|
406
396
|
};
|
|
407
397
|
}
|
|
408
398
|
/**
|
|
@@ -586,6 +576,26 @@ export interface GenerateDataKeyPairRequest {
|
|
|
586
576
|
* GenerateDataKeyPair - 创建数据密钥对
|
|
587
577
|
*/
|
|
588
578
|
export interface GenerateDataKeyPairResponse {
|
|
579
|
+
/**
|
|
580
|
+
* 用于加密私钥的 KMS 密钥
|
|
581
|
+
*/
|
|
582
|
+
KeyId?: string;
|
|
583
|
+
/**
|
|
584
|
+
* 生成的数据键对类型。
|
|
585
|
+
*/
|
|
586
|
+
KeyPairSpec?: string;
|
|
587
|
+
/**
|
|
588
|
+
* 私钥的加密副本。
|
|
589
|
+
*/
|
|
590
|
+
PrivateKeyCiphertextBlob?: string;
|
|
591
|
+
/**
|
|
592
|
+
* 私钥的明文副本。
|
|
593
|
+
*/
|
|
594
|
+
PrivateKeyPlaintext?: string;
|
|
595
|
+
/**
|
|
596
|
+
* 公钥(明文)。
|
|
597
|
+
*/
|
|
598
|
+
DataPublicKey?: string;
|
|
589
599
|
}
|
|
590
600
|
/**
|
|
591
601
|
* GenerateDataKeyPairWithoutPlaintext - 创建数据密钥对(无明文返回)
|
|
@@ -595,6 +605,14 @@ export interface GenerateDataKeyPairWithoutPlaintextRequest {
|
|
|
595
605
|
* 密钥ID
|
|
596
606
|
*/
|
|
597
607
|
KeyId: string;
|
|
608
|
+
/**
|
|
609
|
+
* 指定生成的数据密钥对类型。
|
|
610
|
+
*/
|
|
611
|
+
KeyPairSpec: string;
|
|
612
|
+
/**
|
|
613
|
+
* 指定加密私钥时使用的加密上下文。
|
|
614
|
+
*/
|
|
615
|
+
EncryptionContext?: string;
|
|
598
616
|
}
|
|
599
617
|
/**
|
|
600
618
|
* GenerateDataKeyPairWithoutPlaintext - 创建数据密钥对(无明文返回)
|
|
@@ -682,6 +700,10 @@ export interface GenerateRandomRequest {
|
|
|
682
700
|
* GenerateRandom - 生成随机数
|
|
683
701
|
*/
|
|
684
702
|
export interface GenerateRandomResponse {
|
|
703
|
+
/**
|
|
704
|
+
* 随机字节串。
|
|
705
|
+
*/
|
|
706
|
+
Plaintext?: string;
|
|
685
707
|
}
|
|
686
708
|
/**
|
|
687
709
|
* GetKeyRotationStatus - 查询密钥自动轮转状态。
|
|
@@ -933,89 +955,6 @@ export interface ListKeysResponse {
|
|
|
933
955
|
*/
|
|
934
956
|
TotalCount: number;
|
|
935
957
|
}
|
|
936
|
-
/**
|
|
937
|
-
* ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
|
|
938
|
-
*/
|
|
939
|
-
export interface ListScheduleDeletionKeysRequest {
|
|
940
|
-
/**
|
|
941
|
-
* 输出列表起始位置,默认从0开始
|
|
942
|
-
*/
|
|
943
|
-
Offset?: number;
|
|
944
|
-
/**
|
|
945
|
-
* 输出列表数量,默认返回200个
|
|
946
|
-
*/
|
|
947
|
-
Limit?: number;
|
|
948
|
-
/**
|
|
949
|
-
* 列表排序方式, 可选项: "-created_time", "created_time","plan_delete_time","-plan_delete_time";默认按-plan_delete_time 计划删除时间升序返回
|
|
950
|
-
*/
|
|
951
|
-
OrderBy?: string;
|
|
952
|
-
/**
|
|
953
|
-
* 按密钥 ID 或别名模糊过滤
|
|
954
|
-
*/
|
|
955
|
-
Alias?: string;
|
|
956
|
-
/**
|
|
957
|
-
* UKMS 实例资源 ID
|
|
958
|
-
*/
|
|
959
|
-
ResourceId?: string;
|
|
960
|
-
/**
|
|
961
|
-
* 排序方向,默认 desc
|
|
962
|
-
*/
|
|
963
|
-
Sort?: string;
|
|
964
|
-
}
|
|
965
|
-
/**
|
|
966
|
-
* ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
|
|
967
|
-
*/
|
|
968
|
-
export interface ListScheduleDeletionKeysResponse {
|
|
969
|
-
/**
|
|
970
|
-
* 主密钥信息组成的列表
|
|
971
|
-
*/
|
|
972
|
-
Objects: {
|
|
973
|
-
/**
|
|
974
|
-
* CMK 的唯一标识符
|
|
975
|
-
*/
|
|
976
|
-
KeyId: string;
|
|
977
|
-
/**
|
|
978
|
-
* 密钥类型,如RSA、EC、DES
|
|
979
|
-
*/
|
|
980
|
-
KeyType: string;
|
|
981
|
-
/**
|
|
982
|
-
* 创建时间
|
|
983
|
-
*/
|
|
984
|
-
CreatedTime: number;
|
|
985
|
-
/**
|
|
986
|
-
* 别名,与CMK一一对应
|
|
987
|
-
*/
|
|
988
|
-
Alias: string;
|
|
989
|
-
/**
|
|
990
|
-
* 密钥状态 "Pre-Active", "Active", "Deactivated", "Compromised", "Destroyed", "Destroyed Compromised"
|
|
991
|
-
*/
|
|
992
|
-
Status: string;
|
|
993
|
-
/**
|
|
994
|
-
* 更新时间
|
|
995
|
-
*/
|
|
996
|
-
UpdateTime: number;
|
|
997
|
-
/**
|
|
998
|
-
* 对密钥的描述说明
|
|
999
|
-
*/
|
|
1000
|
-
Description?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* 计划删除时间 时间戳
|
|
1003
|
-
*/
|
|
1004
|
-
PlanDeleteTime?: number;
|
|
1005
|
-
}[];
|
|
1006
|
-
/**
|
|
1007
|
-
* 操作结果
|
|
1008
|
-
*/
|
|
1009
|
-
Status?: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* 请求唯一标识符
|
|
1012
|
-
*/
|
|
1013
|
-
RequestUuid?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* 符合条件的总数, 不同于Limit
|
|
1016
|
-
*/
|
|
1017
|
-
TotalCount?: number;
|
|
1018
|
-
}
|
|
1019
958
|
/**
|
|
1020
959
|
* RotateKeyOnDemand - 立即触发一次密钥轮转。
|
|
1021
960
|
*/
|
|
@@ -1201,7 +1140,7 @@ export interface VerifyResponse {
|
|
|
1201
1140
|
SigningAlgorithm: string;
|
|
1202
1141
|
}
|
|
1203
1142
|
/**
|
|
1204
|
-
* VerifyMac -
|
|
1143
|
+
* VerifyMac - 验证指定消息、HMAC KMS 密钥和 MAC 算法的基于哈希的消息认证码 (HMAC)。为了验证 HMAC,VerifyMac 会使用您指定的消息、HMAC KMS 密钥和 MAC 算法计算 HMAC,并将计算出的 HMAC 与您指定的 HMAC 进行比较。如果两个 HMAC 完全相同,则验证成功;否则,验证失败。 验证结果表明,自计算 HMAC 以来,消息未发生更改,并且使用了指定的密钥来生成和验证 HMAC。
|
|
1205
1144
|
*/
|
|
1206
1145
|
export interface VerifyMacRequest {
|
|
1207
1146
|
/**
|
|
@@ -1222,7 +1161,7 @@ export interface VerifyMacRequest {
|
|
|
1222
1161
|
MacAlgorithm: string;
|
|
1223
1162
|
}
|
|
1224
1163
|
/**
|
|
1225
|
-
* VerifyMac -
|
|
1164
|
+
* VerifyMac - 验证指定消息、HMAC KMS 密钥和 MAC 算法的基于哈希的消息认证码 (HMAC)。为了验证 HMAC,VerifyMac 会使用您指定的消息、HMAC KMS 密钥和 MAC 算法计算 HMAC,并将计算出的 HMAC 与您指定的 HMAC 进行比较。如果两个 HMAC 完全相同,则验证成功;否则,验证失败。 验证结果表明,自计算 HMAC 以来,消息未发生更改,并且使用了指定的密钥来生成和验证 HMAC。
|
|
1226
1165
|
*/
|
|
1227
1166
|
export interface VerifyMacResponse {
|
|
1228
1167
|
/**
|
|
@@ -201,15 +201,6 @@ class UKMSClient extends client_1.default {
|
|
|
201
201
|
const args = Object.assign({ Action: 'ListKeys' }, (request || {}));
|
|
202
202
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
203
203
|
}
|
|
204
|
-
/**
|
|
205
|
-
* ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
|
|
206
|
-
*
|
|
207
|
-
* See also: https://docs.ucloud.cn/api/ukms-api/list_schedule_deletion_keys
|
|
208
|
-
*/
|
|
209
|
-
listScheduleDeletionKeys(request) {
|
|
210
|
-
const args = Object.assign({ Action: 'ListScheduleDeletionKeys' }, (request || {}));
|
|
211
|
-
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
212
|
-
}
|
|
213
204
|
/**
|
|
214
205
|
* RotateKeyOnDemand - 立即触发一次密钥轮转。
|
|
215
206
|
*
|
|
@@ -265,7 +256,7 @@ class UKMSClient extends client_1.default {
|
|
|
265
256
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
266
257
|
}
|
|
267
258
|
/**
|
|
268
|
-
* VerifyMac -
|
|
259
|
+
* VerifyMac - 验证指定消息、HMAC KMS 密钥和 MAC 算法的基于哈希的消息认证码 (HMAC)。为了验证 HMAC,VerifyMac 会使用您指定的消息、HMAC KMS 密钥和 MAC 算法计算 HMAC,并将计算出的 HMAC 与您指定的 HMAC 进行比较。如果两个 HMAC 完全相同,则验证成功;否则,验证失败。 验证结果表明,自计算 HMAC 以来,消息未发生更改,并且使用了指定的密钥来生成和验证 HMAC。
|
|
269
260
|
*
|
|
270
261
|
* See also: https://docs.ucloud.cn/api/ukms-api/verify_mac
|
|
271
262
|
*/
|