@aws-sdk/client-kms 3.1156.0 → 3.1157.0

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.
Files changed (50) hide show
  1. package/README.md +27 -0
  2. package/dist-cjs/index.js +102 -36
  3. package/dist-es/KMS.js +4 -0
  4. package/dist-es/commands/DecapsulateCommand.js +4 -0
  5. package/dist-es/commands/EncapsulateCommand.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +14 -0
  8. package/dist-es/models/errors.js +13 -13
  9. package/dist-es/schemas/schemas_0.js +58 -22
  10. package/dist-types/KMS.d.ts +27 -0
  11. package/dist-types/KMSClient.d.ts +17 -2
  12. package/dist-types/commands/CreateGrantCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateKeyCommand.d.ts +7 -4
  14. package/dist-types/commands/DecapsulateCommand.d.ts +233 -0
  15. package/dist-types/commands/DecryptCommand.d.ts +6 -2
  16. package/dist-types/commands/DeriveSharedSecretCommand.d.ts +3 -2
  17. package/dist-types/commands/DescribeKeyCommand.d.ts +5 -2
  18. package/dist-types/commands/EncapsulateCommand.d.ts +212 -0
  19. package/dist-types/commands/EncryptCommand.d.ts +3 -2
  20. package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -2
  21. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +10 -4
  22. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +10 -4
  23. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -2
  24. package/dist-types/commands/GenerateMacCommand.d.ts +3 -2
  25. package/dist-types/commands/GetKeyLastUsageCommand.d.ts +3 -2
  26. package/dist-types/commands/GetPublicKeyCommand.d.ts +8 -4
  27. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +3 -0
  28. package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
  30. package/dist-types/commands/ReEncryptCommand.d.ts +6 -2
  31. package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -2
  32. package/dist-types/commands/SignCommand.d.ts +3 -2
  33. package/dist-types/commands/VerifyCommand.d.ts +3 -2
  34. package/dist-types/commands/VerifyMacCommand.d.ts +3 -2
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/index.d.ts +13 -0
  37. package/dist-types/models/enums.d.ts +22 -0
  38. package/dist-types/models/errors.d.ts +22 -18
  39. package/dist-types/models/models_0.d.ts +208 -5
  40. package/dist-types/schemas/schemas_0.d.ts +6 -0
  41. package/dist-types/ts3.4/KMS.d.ts +28 -0
  42. package/dist-types/ts3.4/KMSClient.d.ts +6 -0
  43. package/dist-types/ts3.4/commands/DecapsulateCommand.d.ts +38 -0
  44. package/dist-types/ts3.4/commands/EncapsulateCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  46. package/dist-types/ts3.4/models/enums.d.ts +16 -0
  47. package/dist-types/ts3.4/models/errors.d.ts +6 -6
  48. package/dist-types/ts3.4/models/models_0.d.ts +27 -0
  49. package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  50. package/package.json +5 -5
@@ -50,9 +50,11 @@ export type XksProxyConnectivityType =
50
50
  (typeof XksProxyConnectivityType)[keyof typeof XksProxyConnectivityType];
51
51
  export declare const GrantOperation: {
52
52
  readonly CreateGrant: "CreateGrant";
53
+ readonly Decapsulate: "Decapsulate";
53
54
  readonly Decrypt: "Decrypt";
54
55
  readonly DeriveSharedSecret: "DeriveSharedSecret";
55
56
  readonly DescribeKey: "DescribeKey";
57
+ readonly Encapsulate: "Encapsulate";
56
58
  readonly Encrypt: "Encrypt";
57
59
  readonly GenerateDataKey: "GenerateDataKey";
58
60
  readonly GenerateDataKeyPair: "GenerateDataKeyPair";
@@ -98,6 +100,9 @@ export declare const KeySpec: {
98
100
  readonly ML_DSA_44: "ML_DSA_44";
99
101
  readonly ML_DSA_65: "ML_DSA_65";
100
102
  readonly ML_DSA_87: "ML_DSA_87";
103
+ readonly ML_KEM_1024: "ML_KEM_1024";
104
+ readonly ML_KEM_512: "ML_KEM_512";
105
+ readonly ML_KEM_768: "ML_KEM_768";
101
106
  readonly RSA_2048: "RSA_2048";
102
107
  readonly RSA_3072: "RSA_3072";
103
108
  readonly RSA_4096: "RSA_4096";
@@ -106,6 +111,7 @@ export declare const KeySpec: {
106
111
  };
107
112
  export type KeySpec = (typeof KeySpec)[keyof typeof KeySpec];
108
113
  export declare const KeyUsageType: {
114
+ readonly ENCAPSULATE_DECAPSULATE: "ENCAPSULATE_DECAPSULATE";
109
115
  readonly ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT";
110
116
  readonly GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC";
111
117
  readonly KEY_AGREEMENT: "KEY_AGREEMENT";
@@ -119,6 +125,11 @@ export declare const OriginType: {
119
125
  readonly EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE";
120
126
  };
121
127
  export type OriginType = (typeof OriginType)[keyof typeof OriginType];
128
+ export declare const EncapsulationAlgorithmSpec: {
129
+ readonly ML_KEM: "ML_KEM";
130
+ };
131
+ export type EncapsulationAlgorithmSpec =
132
+ (typeof EncapsulationAlgorithmSpec)[keyof typeof EncapsulationAlgorithmSpec];
122
133
  export declare const EncryptionAlgorithmSpec: {
123
134
  readonly RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1";
124
135
  readonly RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256";
@@ -187,6 +198,9 @@ export declare const DataKeyPairSpec: {
187
198
  readonly ECC_NIST_P384: "ECC_NIST_P384";
188
199
  readonly ECC_NIST_P521: "ECC_NIST_P521";
189
200
  readonly ECC_SECG_P256K1: "ECC_SECG_P256K1";
201
+ readonly ML_KEM_1024: "ML_KEM_1024";
202
+ readonly ML_KEM_512: "ML_KEM_512";
203
+ readonly ML_KEM_768: "ML_KEM_768";
190
204
  readonly RSA_2048: "RSA_2048";
191
205
  readonly RSA_3072: "RSA_3072";
192
206
  readonly RSA_4096: "RSA_4096";
@@ -208,8 +222,10 @@ export declare const KeyEncryptionMechanism: {
208
222
  export type KeyEncryptionMechanism =
209
223
  (typeof KeyEncryptionMechanism)[keyof typeof KeyEncryptionMechanism];
210
224
  export declare const KeyLastUsageTrackingOperation: {
225
+ readonly Decapsulate: "Decapsulate";
211
226
  readonly Decrypt: "Decrypt";
212
227
  readonly DeriveSharedSecret: "DeriveSharedSecret";
228
+ readonly Encapsulate: "Encapsulate";
213
229
  readonly Encrypt: "Encrypt";
214
230
  readonly GenerateDataKey: "GenerateDataKey";
215
231
  readonly GenerateDataKeyPair: "GenerateDataKeyPair";
@@ -238,12 +238,6 @@ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
238
238
  readonly $fault: "client";
239
239
  constructor(opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>);
240
240
  }
241
- export declare class IncorrectKeyException extends __BaseException {
242
- static readonly shapeId: string;
243
- readonly name: "IncorrectKeyException";
244
- readonly $fault: "client";
245
- constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
246
- }
247
241
  export declare class InvalidCiphertextException extends __BaseException {
248
242
  static readonly shapeId: string;
249
243
  readonly name: "InvalidCiphertextException";
@@ -262,6 +256,12 @@ export declare class KeyUnavailableException extends __BaseException {
262
256
  readonly $fault: "server";
263
257
  constructor(opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>);
264
258
  }
259
+ export declare class IncorrectKeyException extends __BaseException {
260
+ static readonly shapeId: string;
261
+ readonly name: "IncorrectKeyException";
262
+ readonly $fault: "client";
263
+ constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
264
+ }
265
265
  export declare class InvalidMarkerException extends __BaseException {
266
266
  static readonly shapeId: string;
267
267
  readonly name: "InvalidMarkerException";
@@ -7,6 +7,7 @@ import {
7
7
  DataKeyPairSpec,
8
8
  DataKeySpec,
9
9
  DryRunModifierType,
10
+ EncapsulationAlgorithmSpec,
10
11
  EncryptionAlgorithmSpec,
11
12
  ExpirationModelType,
12
13
  GrantOperation,
@@ -142,6 +143,7 @@ export interface KeyMetadata {
142
143
  EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | undefined;
143
144
  SigningAlgorithms?: SigningAlgorithmSpec[] | undefined;
144
145
  KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
146
+ EncapsulationAlgorithms?: EncapsulationAlgorithmSpec[] | undefined;
145
147
  MultiRegion?: boolean | undefined;
146
148
  MultiRegionConfiguration?: MultiRegionConfiguration | undefined;
147
149
  PendingDeletionWindowInDays?: number | undefined;
@@ -171,6 +173,18 @@ export interface CustomKeyStoresListEntry {
171
173
  CustomKeyStoreType?: CustomKeyStoreType | undefined;
172
174
  XksProxyConfiguration?: XksProxyConfigurationType | undefined;
173
175
  }
176
+ export interface DecapsulateRequest {
177
+ KeyId: string | undefined;
178
+ SharedSecretCiphertextBlob: Uint8Array | undefined;
179
+ EncapsulationAlgorithm: EncapsulationAlgorithmSpec | undefined;
180
+ GrantTokens?: string[] | undefined;
181
+ DryRun?: boolean | undefined;
182
+ }
183
+ export interface DecapsulateResponse {
184
+ KeyId?: string | undefined;
185
+ SharedSecret?: Uint8Array | undefined;
186
+ EncapsulationAlgorithm?: EncapsulationAlgorithmSpec | undefined;
187
+ }
174
188
  export interface RecipientInfo {
175
189
  KeyEncryptionAlgorithm?: KeyEncryptionMechanism | undefined;
176
190
  AttestationDocument?: Uint8Array | undefined;
@@ -257,6 +271,18 @@ export interface EnableKeyRotationRequest {
257
271
  KeyId: string | undefined;
258
272
  RotationPeriodInDays?: number | undefined;
259
273
  }
274
+ export interface EncapsulateRequest {
275
+ KeyId: string | undefined;
276
+ EncapsulationAlgorithm: EncapsulationAlgorithmSpec | undefined;
277
+ GrantTokens?: string[] | undefined;
278
+ DryRun?: boolean | undefined;
279
+ }
280
+ export interface EncapsulateResponse {
281
+ KeyId?: string | undefined;
282
+ SharedSecret?: Uint8Array | undefined;
283
+ SharedSecretCiphertextBlob?: Uint8Array | undefined;
284
+ EncapsulationAlgorithm?: EncapsulationAlgorithmSpec | undefined;
285
+ }
260
286
  export interface EncryptRequest {
261
287
  KeyId: string | undefined;
262
288
  Plaintext: Uint8Array | undefined;
@@ -408,6 +434,7 @@ export interface GetPublicKeyResponse {
408
434
  EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | undefined;
409
435
  SigningAlgorithms?: SigningAlgorithmSpec[] | undefined;
410
436
  KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
437
+ EncapsulationAlgorithms?: EncapsulationAlgorithmSpec[] | undefined;
411
438
  }
412
439
  export interface GrantListEntry {
413
440
  KeyId?: string | undefined;
@@ -63,6 +63,8 @@ export declare var CreateGrantResponse$: StaticStructureSchema;
63
63
  export declare var CreateKeyRequest$: StaticStructureSchema;
64
64
  export declare var CreateKeyResponse$: StaticStructureSchema;
65
65
  export declare var CustomKeyStoresListEntry$: StaticStructureSchema;
66
+ export declare var DecapsulateRequest$: StaticStructureSchema;
67
+ export declare var DecapsulateResponse$: StaticStructureSchema;
66
68
  export declare var DecryptRequest$: StaticStructureSchema;
67
69
  export declare var DecryptResponse$: StaticStructureSchema;
68
70
  export declare var DeleteAliasRequest$: StaticStructureSchema;
@@ -82,6 +84,8 @@ export declare var DisconnectCustomKeyStoreRequest$: StaticStructureSchema;
82
84
  export declare var DisconnectCustomKeyStoreResponse$: StaticStructureSchema;
83
85
  export declare var EnableKeyRequest$: StaticStructureSchema;
84
86
  export declare var EnableKeyRotationRequest$: StaticStructureSchema;
87
+ export declare var EncapsulateRequest$: StaticStructureSchema;
88
+ export declare var EncapsulateResponse$: StaticStructureSchema;
85
89
  export declare var EncryptRequest$: StaticStructureSchema;
86
90
  export declare var EncryptResponse$: StaticStructureSchema;
87
91
  export declare var GenerateDataKeyPairRequest$: StaticStructureSchema;
@@ -164,6 +168,7 @@ export declare var CreateAlias$: StaticOperationSchema;
164
168
  export declare var CreateCustomKeyStore$: StaticOperationSchema;
165
169
  export declare var CreateGrant$: StaticOperationSchema;
166
170
  export declare var CreateKey$: StaticOperationSchema;
171
+ export declare var Decapsulate$: StaticOperationSchema;
167
172
  export declare var Decrypt$: StaticOperationSchema;
168
173
  export declare var DeleteAlias$: StaticOperationSchema;
169
174
  export declare var DeleteCustomKeyStore$: StaticOperationSchema;
@@ -176,6 +181,7 @@ export declare var DisableKeyRotation$: StaticOperationSchema;
176
181
  export declare var DisconnectCustomKeyStore$: StaticOperationSchema;
177
182
  export declare var EnableKey$: StaticOperationSchema;
178
183
  export declare var EnableKeyRotation$: StaticOperationSchema;
184
+ export declare var Encapsulate$: StaticOperationSchema;
179
185
  export declare var Encrypt$: StaticOperationSchema;
180
186
  export declare var GenerateDataKey$: StaticOperationSchema;
181
187
  export declare var GenerateDataKeyPair$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
- "version": "3.1156.0",
3
+ "version": "3.1157.0",
4
4
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",
6
6
  "license": "Apache-2.0",
@@ -48,12 +48,12 @@
48
48
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.978.5",
52
- "@aws-sdk/credential-provider-node": "^3.972.88",
51
+ "@aws-sdk/core": "^3.978.6",
52
+ "@aws-sdk/credential-provider-node": "^3.972.89",
53
53
  "@aws-sdk/types": "^3.975.0",
54
- "@smithy/core": "^3.36.1",
54
+ "@smithy/core": "^3.37.0",
55
55
  "@smithy/fetch-http-handler": "^5.8.0",
56
- "@smithy/node-http-handler": "^4.12.1",
56
+ "@smithy/node-http-handler": "^4.13.0",
57
57
  "@smithy/types": "^4.19.0",
58
58
  "tslib": "^2.6.2"
59
59
  },