@aws-sdk/client-payment-cryptography-data 3.936.0 → 3.940.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.
package/dist-cjs/index.js CHANGED
@@ -1658,6 +1658,12 @@ const EncryptionMode = {
1658
1658
  ECB: "ECB",
1659
1659
  OFB: "OFB",
1660
1660
  };
1661
+ const KeyCheckValueAlgorithm = {
1662
+ ANSI_X9_24: "ANSI_X9_24",
1663
+ CMAC: "CMAC",
1664
+ HMAC: "HMAC",
1665
+ SHA_1: "SHA_1",
1666
+ };
1661
1667
  const SymmetricKeyAlgorithm = {
1662
1668
  AES_128: "AES_128",
1663
1669
  AES_192: "AES_192",
@@ -1714,6 +1720,17 @@ const PinBlockFormatForPinData = {
1714
1720
  ISO_FORMAT_3: "ISO_FORMAT_3",
1715
1721
  ISO_FORMAT_4: "ISO_FORMAT_4",
1716
1722
  };
1723
+ const WrappedKeyMaterialFormat = {
1724
+ KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
1725
+ TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
1726
+ TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
1727
+ };
1728
+ const VerificationFailedReason = {
1729
+ INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
1730
+ INVALID_MAC: "INVALID_MAC",
1731
+ INVALID_PIN: "INVALID_PIN",
1732
+ INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
1733
+ };
1717
1734
 
1718
1735
  Object.defineProperty(exports, "$Command", {
1719
1736
  enumerable: true,
@@ -1737,6 +1754,7 @@ exports.GenerateMacCommand = GenerateMacCommand;
1737
1754
  exports.GenerateMacEmvPinChangeCommand = GenerateMacEmvPinChangeCommand;
1738
1755
  exports.GeneratePinDataCommand = GeneratePinDataCommand;
1739
1756
  exports.InternalServerException = InternalServerException$1;
1757
+ exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
1740
1758
  exports.KeyDerivationFunction = KeyDerivationFunction;
1741
1759
  exports.KeyDerivationHashAlgorithm = KeyDerivationHashAlgorithm;
1742
1760
  exports.MacAlgorithm = MacAlgorithm;
@@ -1758,7 +1776,9 @@ exports.TranslateKeyMaterialCommand = TranslateKeyMaterialCommand;
1758
1776
  exports.TranslatePinDataCommand = TranslatePinDataCommand;
1759
1777
  exports.ValidationException = ValidationException$1;
1760
1778
  exports.VerificationFailedException = VerificationFailedException$1;
1779
+ exports.VerificationFailedReason = VerificationFailedReason;
1761
1780
  exports.VerifyAuthRequestCryptogramCommand = VerifyAuthRequestCryptogramCommand;
1762
1781
  exports.VerifyCardValidationDataCommand = VerifyCardValidationDataCommand;
1763
1782
  exports.VerifyMacCommand = VerifyMacCommand;
1764
1783
  exports.VerifyPinDataCommand = VerifyPinDataCommand;
1784
+ exports.WrappedKeyMaterialFormat = WrappedKeyMaterialFormat;
@@ -42,6 +42,12 @@ export const EncryptionMode = {
42
42
  ECB: "ECB",
43
43
  OFB: "OFB",
44
44
  };
45
+ export const KeyCheckValueAlgorithm = {
46
+ ANSI_X9_24: "ANSI_X9_24",
47
+ CMAC: "CMAC",
48
+ HMAC: "HMAC",
49
+ SHA_1: "SHA_1",
50
+ };
45
51
  export const SymmetricKeyAlgorithm = {
46
52
  AES_128: "AES_128",
47
53
  AES_192: "AES_192",
@@ -98,3 +104,14 @@ export const PinBlockFormatForPinData = {
98
104
  ISO_FORMAT_3: "ISO_FORMAT_3",
99
105
  ISO_FORMAT_4: "ISO_FORMAT_4",
100
106
  };
107
+ export const WrappedKeyMaterialFormat = {
108
+ KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
109
+ TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
110
+ TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
111
+ };
112
+ export const VerificationFailedReason = {
113
+ INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
114
+ INVALID_MAC: "INVALID_MAC",
115
+ INVALID_PIN: "INVALID_PIN",
116
+ INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
117
+ };
@@ -1,17 +1 @@
1
- export const KeyCheckValueAlgorithm = {
2
- ANSI_X9_24: "ANSI_X9_24",
3
- CMAC: "CMAC",
4
- HMAC: "HMAC",
5
- SHA_1: "SHA_1",
6
- };
7
- export const WrappedKeyMaterialFormat = {
8
- KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
9
- TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
10
- TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
11
- };
12
- export const VerificationFailedReason = {
13
- INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
14
- INVALID_MAC: "INVALID_MAC",
15
- INVALID_PIN: "INVALID_PIN",
16
- INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
17
- };
1
+ export {};
@@ -106,6 +106,20 @@ export declare const EncryptionMode: {
106
106
  * @public
107
107
  */
108
108
  export type EncryptionMode = (typeof EncryptionMode)[keyof typeof EncryptionMode];
109
+ /**
110
+ * @public
111
+ * @enum
112
+ */
113
+ export declare const KeyCheckValueAlgorithm: {
114
+ readonly ANSI_X9_24: "ANSI_X9_24";
115
+ readonly CMAC: "CMAC";
116
+ readonly HMAC: "HMAC";
117
+ readonly SHA_1: "SHA_1";
118
+ };
119
+ /**
120
+ * @public
121
+ */
122
+ export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
109
123
  /**
110
124
  * @public
111
125
  * @enum
@@ -234,3 +248,30 @@ export declare const PinBlockFormatForPinData: {
234
248
  * @public
235
249
  */
236
250
  export type PinBlockFormatForPinData = (typeof PinBlockFormatForPinData)[keyof typeof PinBlockFormatForPinData];
251
+ /**
252
+ * @public
253
+ * @enum
254
+ */
255
+ export declare const WrappedKeyMaterialFormat: {
256
+ readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
257
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
258
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
259
+ };
260
+ /**
261
+ * @public
262
+ */
263
+ export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
264
+ /**
265
+ * @public
266
+ * @enum
267
+ */
268
+ export declare const VerificationFailedReason: {
269
+ readonly INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM";
270
+ readonly INVALID_MAC: "INVALID_MAC";
271
+ readonly INVALID_PIN: "INVALID_PIN";
272
+ readonly INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA";
273
+ };
274
+ /**
275
+ * @public
276
+ */
277
+ export type VerificationFailedReason = (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
@@ -1,5 +1,6 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ValidationExceptionField, VerificationFailedReason } from "./models_0";
2
+ import { VerificationFailedReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
3
4
  import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
4
5
  /**
5
6
  * <p>You do not have sufficient access to perform this action.</p>
@@ -1,4 +1,4 @@
1
- import { DukptDerivationType, DukptEncryptionMode, DukptKeyVariant, EmvEncryptionMode, EmvMajorKeyDerivationMode, EncryptionMode, KeyDerivationFunction, KeyDerivationHashAlgorithm, MacAlgorithm, MajorKeyDerivationMode, PaddingType, PinBlockFormatForEmvPinChange, PinBlockFormatForPinData, PinBlockLengthPosition, PinBlockPaddingType, SessionKeyDerivationMode, SymmetricKeyAlgorithm } from "./enums";
1
+ import { DukptDerivationType, DukptEncryptionMode, DukptKeyVariant, EmvEncryptionMode, EmvMajorKeyDerivationMode, EncryptionMode, KeyCheckValueAlgorithm, KeyDerivationFunction, KeyDerivationHashAlgorithm, MacAlgorithm, MajorKeyDerivationMode, PaddingType, PinBlockFormatForEmvPinChange, PinBlockFormatForPinData, PinBlockLengthPosition, PinBlockPaddingType, SessionKeyDerivationMode, SymmetricKeyAlgorithm, WrappedKeyMaterialFormat } from "./enums";
2
2
  /**
3
3
  * <p>The parameter values of the current PIN to be changed on the EMV chip card.</p>
4
4
  * @public
@@ -739,20 +739,6 @@ export declare namespace EncryptionDecryptionAttributes {
739
739
  _: (name: string, value: any) => T;
740
740
  }
741
741
  }
742
- /**
743
- * @public
744
- * @enum
745
- */
746
- export declare const KeyCheckValueAlgorithm: {
747
- readonly ANSI_X9_24: "ANSI_X9_24";
748
- readonly CMAC: "CMAC";
749
- readonly HMAC: "HMAC";
750
- readonly SHA_1: "SHA_1";
751
- };
752
- /**
753
- * @public
754
- */
755
- export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
756
742
  /**
757
743
  * <p>Parameters required to establish ECDH based key exchange.</p>
758
744
  * @public
@@ -2272,19 +2258,6 @@ export interface TranslateKeyMaterialInput {
2272
2258
  */
2273
2259
  KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | undefined;
2274
2260
  }
2275
- /**
2276
- * @public
2277
- * @enum
2278
- */
2279
- export declare const WrappedKeyMaterialFormat: {
2280
- readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
2281
- readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
2282
- readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
2283
- };
2284
- /**
2285
- * @public
2286
- */
2287
- export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
2288
2261
  /**
2289
2262
  * <p>The parameter information of the outgoing wrapped key block.</p>
2290
2263
  * @public
@@ -2478,20 +2451,6 @@ export interface TranslatePinDataOutput {
2478
2451
  */
2479
2452
  KeyCheckValue: string | undefined;
2480
2453
  }
2481
- /**
2482
- * @public
2483
- * @enum
2484
- */
2485
- export declare const VerificationFailedReason: {
2486
- readonly INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM";
2487
- readonly INVALID_MAC: "INVALID_MAC";
2488
- readonly INVALID_PIN: "INVALID_PIN";
2489
- readonly INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA";
2490
- };
2491
- /**
2492
- * @public
2493
- */
2494
- export type VerificationFailedReason = (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
2495
2454
  /**
2496
2455
  * <p>Parameters to derive session key for an Amex payment card.</p>
2497
2456
  * @public
@@ -57,6 +57,14 @@ export declare const EncryptionMode: {
57
57
  };
58
58
  export type EncryptionMode =
59
59
  (typeof EncryptionMode)[keyof typeof EncryptionMode];
60
+ export declare const KeyCheckValueAlgorithm: {
61
+ readonly ANSI_X9_24: "ANSI_X9_24";
62
+ readonly CMAC: "CMAC";
63
+ readonly HMAC: "HMAC";
64
+ readonly SHA_1: "SHA_1";
65
+ };
66
+ export type KeyCheckValueAlgorithm =
67
+ (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
60
68
  export declare const SymmetricKeyAlgorithm: {
61
69
  readonly AES_128: "AES_128";
62
70
  readonly AES_192: "AES_192";
@@ -130,3 +138,18 @@ export declare const PinBlockFormatForPinData: {
130
138
  };
131
139
  export type PinBlockFormatForPinData =
132
140
  (typeof PinBlockFormatForPinData)[keyof typeof PinBlockFormatForPinData];
141
+ export declare const WrappedKeyMaterialFormat: {
142
+ readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
143
+ readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
144
+ readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
145
+ };
146
+ export type WrappedKeyMaterialFormat =
147
+ (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
148
+ export declare const VerificationFailedReason: {
149
+ readonly INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM";
150
+ readonly INVALID_MAC: "INVALID_MAC";
151
+ readonly INVALID_PIN: "INVALID_PIN";
152
+ readonly INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA";
153
+ };
154
+ export type VerificationFailedReason =
155
+ (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
@@ -1,5 +1,6 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ValidationExceptionField, VerificationFailedReason } from "./models_0";
2
+ import { VerificationFailedReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
3
4
  import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
4
5
  export declare class AccessDeniedException extends __BaseException {
5
6
  readonly name: "AccessDeniedException";
@@ -5,6 +5,7 @@ import {
5
5
  EmvEncryptionMode,
6
6
  EmvMajorKeyDerivationMode,
7
7
  EncryptionMode,
8
+ KeyCheckValueAlgorithm,
8
9
  KeyDerivationFunction,
9
10
  KeyDerivationHashAlgorithm,
10
11
  MacAlgorithm,
@@ -16,6 +17,7 @@ import {
16
17
  PinBlockPaddingType,
17
18
  SessionKeyDerivationMode,
18
19
  SymmetricKeyAlgorithm,
20
+ WrappedKeyMaterialFormat,
19
21
  } from "./enums";
20
22
  export interface CurrentPinAttributes {
21
23
  CurrentPinPekIdentifier: string | undefined;
@@ -396,14 +398,6 @@ export declare namespace EncryptionDecryptionAttributes {
396
398
  _: (name: string, value: any) => T;
397
399
  }
398
400
  }
399
- export declare const KeyCheckValueAlgorithm: {
400
- readonly ANSI_X9_24: "ANSI_X9_24";
401
- readonly CMAC: "CMAC";
402
- readonly HMAC: "HMAC";
403
- readonly SHA_1: "SHA_1";
404
- };
405
- export type KeyCheckValueAlgorithm =
406
- (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
407
401
  export interface EcdhDerivationAttributes {
408
402
  CertificateAuthorityPublicKeyIdentifier: string | undefined;
409
403
  PublicKeyCertificate: string | undefined;
@@ -991,13 +985,6 @@ export interface TranslateKeyMaterialInput {
991
985
  OutgoingKeyMaterial: OutgoingKeyMaterial | undefined;
992
986
  KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | undefined;
993
987
  }
994
- export declare const WrappedKeyMaterialFormat: {
995
- readonly KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM";
996
- readonly TR31_KEY_BLOCK: "TR31_KEY_BLOCK";
997
- readonly TR34_KEY_BLOCK: "TR34_KEY_BLOCK";
998
- };
999
- export type WrappedKeyMaterialFormat =
1000
- (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat];
1001
988
  export interface WrappedWorkingKey {
1002
989
  WrappedKeyMaterial: string | undefined;
1003
990
  KeyCheckValue: string | undefined;
@@ -1076,14 +1063,6 @@ export interface TranslatePinDataOutput {
1076
1063
  KeyArn: string | undefined;
1077
1064
  KeyCheckValue: string | undefined;
1078
1065
  }
1079
- export declare const VerificationFailedReason: {
1080
- readonly INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM";
1081
- readonly INVALID_MAC: "INVALID_MAC";
1082
- readonly INVALID_PIN: "INVALID_PIN";
1083
- readonly INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA";
1084
- };
1085
- export type VerificationFailedReason =
1086
- (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
1087
1066
  export interface SessionKeyAmex {
1088
1067
  PrimaryAccountNumber: string | undefined;
1089
1068
  PanSequenceNumber: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-payment-cryptography-data",
3
3
  "description": "AWS SDK for JavaScript Payment Cryptography Data Client for Node.js, Browser and React Native",
4
- "version": "3.936.0",
4
+ "version": "3.940.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-payment-cryptography-data",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.936.0",
24
- "@aws-sdk/credential-provider-node": "3.936.0",
23
+ "@aws-sdk/core": "3.940.0",
24
+ "@aws-sdk/credential-provider-node": "3.940.0",
25
25
  "@aws-sdk/middleware-host-header": "3.936.0",
26
26
  "@aws-sdk/middleware-logger": "3.936.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
- "@aws-sdk/middleware-user-agent": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.940.0",
29
29
  "@aws-sdk/region-config-resolver": "3.936.0",
30
30
  "@aws-sdk/types": "3.936.0",
31
31
  "@aws-sdk/util-endpoints": "3.936.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.936.0",
33
- "@aws-sdk/util-user-agent-node": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.940.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
35
  "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",