@ucloud-sdks/ucloud-sdk-js 0.2.21 → 0.2.22

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.
@@ -428,7 +428,7 @@ export interface DisableKeyRequest {
428
428
  /**
429
429
  * 密钥 DB 数字 ID。
430
430
  */
431
- KeyId: number;
431
+ KeyId: string;
432
432
  /**
433
433
  * UKMS 实例资源 ID。
434
434
  */
@@ -464,7 +464,7 @@ export interface EnableKeyRequest {
464
464
  /**
465
465
  * 密钥 DB 数字 ID。
466
466
  */
467
- KeyId: number;
467
+ KeyId: string;
468
468
  /**
469
469
  * UKMS 实例资源 ID。
470
470
  */
@@ -667,6 +667,10 @@ export interface GenerateMacRequest {
667
667
  * 待哈希的消息。
668
668
  */
669
669
  MacMessage: string;
670
+ /**
671
+ * 用于生成消息认证码的 MAC 算法。
672
+ */
673
+ MacAlgorithm: string;
670
674
  }
671
675
  /**
672
676
  * GenerateMac - 使用HMAC密钥管理服务(KMS)密钥和该密钥支持的MAC算法,为消息生成基于哈希的消息认证码(HMAC)。
@@ -1005,11 +1009,15 @@ export interface ScheduleKeyDeletionRequest {
1005
1009
  /**
1006
1010
  * 密钥 DB 数字 ID。
1007
1011
  */
1008
- KeyId: number;
1012
+ KeyId: string;
1009
1013
  /**
1010
1014
  * UKMS 实例资源 ID。
1011
1015
  */
1012
1016
  ResourceId?: string;
1017
+ /**
1018
+ * 删除等待天数,取值范围为 7~30 天;未填写时默认为 30 天。
1019
+ */
1020
+ DeleteDay?: number;
1013
1021
  }
1014
1022
  /**
1015
1023
  * ScheduleKeyDeletion - 计划删除指定密钥。
@@ -1114,10 +1122,6 @@ export interface UpdateKeyDescriptionResponse {
1114
1122
  * Verify - 使用非对称密钥验证签名。
1115
1123
  */
1116
1124
  export interface VerifyRequest {
1117
- /**
1118
- * UKMS 实例资源 ID。
1119
- */
1120
- ResourceId: string;
1121
1125
  /**
1122
1126
  * 密钥 ID、ARN 或别名。
1123
1127
  */
@@ -1134,6 +1138,10 @@ export interface VerifyRequest {
1134
1138
  * 签名时使用的算法。可选值:RSASSA_PSS_SHA_256、RSASSA_PSS_SHA_384、RSASSA_PSS_SHA_512、RSASSA_PKCS1_V1_5_SHA_256、RSASSA_PKCS1_V1_5_SHA_384、RSASSA_PKCS1_V1_5_SHA_512、ECDSA_SHA_256、ECDSA_SHA_384、ECDSA_SHA_512;须与密钥 KeySpec 匹配。
1135
1139
  */
1136
1140
  SigningAlgorithm: string;
1141
+ /**
1142
+ * UKMS 实例资源 ID。
1143
+ */
1144
+ ResourceId?: string;
1137
1145
  /**
1138
1146
  * 消息类型。可选值:RAW、DIGEST;默认 RAW。
1139
1147
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.21",
4
+ "version": "0.2.22",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,