@aws-sdk/client-payment-cryptography-data 3.934.0 → 3.935.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 +101 -120
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +100 -0
- package/dist-es/models/errors.js +87 -0
- package/dist-es/models/models_0.js +0 -187
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +236 -0
- package/dist-types/models/errors.d.ts +94 -0
- package/dist-types/models/models_0.d.ts +1 -329
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +132 -0
- package/dist-types/ts3.4/models/errors.d.ts +52 -0
- package/dist-types/ts3.4/models/models_0.d.ts +19 -183
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -131,76 +131,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends PaymentCryptog
|
|
|
131
131
|
this.Message = opts.Message;
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
const MajorKeyDerivationMode = {
|
|
135
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
136
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
137
|
-
};
|
|
138
|
-
const PaddingType = {
|
|
139
|
-
OAEP_SHA1: "OAEP_SHA1",
|
|
140
|
-
OAEP_SHA256: "OAEP_SHA256",
|
|
141
|
-
OAEP_SHA512: "OAEP_SHA512",
|
|
142
|
-
PKCS1: "PKCS1",
|
|
143
|
-
};
|
|
144
|
-
const DukptDerivationType = {
|
|
145
|
-
AES_128: "AES_128",
|
|
146
|
-
AES_192: "AES_192",
|
|
147
|
-
AES_256: "AES_256",
|
|
148
|
-
TDES_2KEY: "TDES_2KEY",
|
|
149
|
-
TDES_3KEY: "TDES_3KEY",
|
|
150
|
-
};
|
|
151
|
-
const DukptKeyVariant = {
|
|
152
|
-
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
153
|
-
REQUEST: "REQUEST",
|
|
154
|
-
RESPONSE: "RESPONSE",
|
|
155
|
-
};
|
|
156
|
-
const DukptEncryptionMode = {
|
|
157
|
-
CBC: "CBC",
|
|
158
|
-
ECB: "ECB",
|
|
159
|
-
};
|
|
160
|
-
const EmvMajorKeyDerivationMode = {
|
|
161
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
162
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
163
|
-
};
|
|
164
|
-
const EmvEncryptionMode = {
|
|
165
|
-
CBC: "CBC",
|
|
166
|
-
ECB: "ECB",
|
|
167
|
-
};
|
|
168
|
-
const EncryptionMode = {
|
|
169
|
-
CBC: "CBC",
|
|
170
|
-
CFB: "CFB",
|
|
171
|
-
CFB1: "CFB1",
|
|
172
|
-
CFB128: "CFB128",
|
|
173
|
-
CFB64: "CFB64",
|
|
174
|
-
CFB8: "CFB8",
|
|
175
|
-
ECB: "ECB",
|
|
176
|
-
OFB: "OFB",
|
|
177
|
-
};
|
|
178
|
-
const KeyCheckValueAlgorithm = {
|
|
179
|
-
ANSI_X9_24: "ANSI_X9_24",
|
|
180
|
-
CMAC: "CMAC",
|
|
181
|
-
HMAC: "HMAC",
|
|
182
|
-
SHA_1: "SHA_1",
|
|
183
|
-
};
|
|
184
|
-
const SymmetricKeyAlgorithm = {
|
|
185
|
-
AES_128: "AES_128",
|
|
186
|
-
AES_192: "AES_192",
|
|
187
|
-
AES_256: "AES_256",
|
|
188
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
189
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
190
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
191
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
192
|
-
TDES_2KEY: "TDES_2KEY",
|
|
193
|
-
TDES_3KEY: "TDES_3KEY",
|
|
194
|
-
};
|
|
195
|
-
const KeyDerivationFunction = {
|
|
196
|
-
ANSI_X963: "ANSI_X963",
|
|
197
|
-
NIST_SP800: "NIST_SP800",
|
|
198
|
-
};
|
|
199
|
-
const KeyDerivationHashAlgorithm = {
|
|
200
|
-
SHA_256: "SHA_256",
|
|
201
|
-
SHA_384: "SHA_384",
|
|
202
|
-
SHA_512: "SHA_512",
|
|
203
|
-
};
|
|
204
134
|
let InternalServerException$1 = class InternalServerException extends PaymentCryptographyDataServiceException$1 {
|
|
205
135
|
name = "InternalServerException";
|
|
206
136
|
$fault = "server";
|
|
@@ -257,53 +187,6 @@ let ValidationException$1 = class ValidationException extends PaymentCryptograph
|
|
|
257
187
|
this.fieldList = opts.fieldList;
|
|
258
188
|
}
|
|
259
189
|
};
|
|
260
|
-
const PinBlockLengthPosition = {
|
|
261
|
-
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
262
|
-
NONE: "NONE",
|
|
263
|
-
};
|
|
264
|
-
const PinBlockPaddingType = {
|
|
265
|
-
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
266
|
-
NO_PADDING: "NO_PADDING",
|
|
267
|
-
};
|
|
268
|
-
const MacAlgorithm = {
|
|
269
|
-
CMAC: "CMAC",
|
|
270
|
-
HMAC: "HMAC",
|
|
271
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
272
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
273
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
274
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
275
|
-
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
276
|
-
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
277
|
-
};
|
|
278
|
-
const SessionKeyDerivationMode = {
|
|
279
|
-
AMEX: "AMEX",
|
|
280
|
-
EMV2000: "EMV2000",
|
|
281
|
-
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
282
|
-
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
283
|
-
VISA: "VISA",
|
|
284
|
-
};
|
|
285
|
-
const PinBlockFormatForEmvPinChange = {
|
|
286
|
-
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
287
|
-
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
288
|
-
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
289
|
-
};
|
|
290
|
-
const PinBlockFormatForPinData = {
|
|
291
|
-
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
292
|
-
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
293
|
-
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
294
|
-
ISO_FORMAT_4: "ISO_FORMAT_4",
|
|
295
|
-
};
|
|
296
|
-
const WrappedKeyMaterialFormat = {
|
|
297
|
-
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
298
|
-
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
299
|
-
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
300
|
-
};
|
|
301
|
-
const VerificationFailedReason = {
|
|
302
|
-
INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
|
|
303
|
-
INVALID_MAC: "INVALID_MAC",
|
|
304
|
-
INVALID_PIN: "INVALID_PIN",
|
|
305
|
-
INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
|
|
306
|
-
};
|
|
307
190
|
let VerificationFailedException$1 = class VerificationFailedException extends PaymentCryptographyDataServiceException$1 {
|
|
308
191
|
name = "VerificationFailedException";
|
|
309
192
|
$fault = "client";
|
|
@@ -1731,6 +1614,107 @@ class PaymentCryptographyData extends PaymentCryptographyDataClient {
|
|
|
1731
1614
|
}
|
|
1732
1615
|
smithyClient.createAggregatedClient(commands, PaymentCryptographyData);
|
|
1733
1616
|
|
|
1617
|
+
const MajorKeyDerivationMode = {
|
|
1618
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
1619
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
1620
|
+
};
|
|
1621
|
+
const PaddingType = {
|
|
1622
|
+
OAEP_SHA1: "OAEP_SHA1",
|
|
1623
|
+
OAEP_SHA256: "OAEP_SHA256",
|
|
1624
|
+
OAEP_SHA512: "OAEP_SHA512",
|
|
1625
|
+
PKCS1: "PKCS1",
|
|
1626
|
+
};
|
|
1627
|
+
const DukptDerivationType = {
|
|
1628
|
+
AES_128: "AES_128",
|
|
1629
|
+
AES_192: "AES_192",
|
|
1630
|
+
AES_256: "AES_256",
|
|
1631
|
+
TDES_2KEY: "TDES_2KEY",
|
|
1632
|
+
TDES_3KEY: "TDES_3KEY",
|
|
1633
|
+
};
|
|
1634
|
+
const DukptKeyVariant = {
|
|
1635
|
+
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
1636
|
+
REQUEST: "REQUEST",
|
|
1637
|
+
RESPONSE: "RESPONSE",
|
|
1638
|
+
};
|
|
1639
|
+
const DukptEncryptionMode = {
|
|
1640
|
+
CBC: "CBC",
|
|
1641
|
+
ECB: "ECB",
|
|
1642
|
+
};
|
|
1643
|
+
const EmvMajorKeyDerivationMode = {
|
|
1644
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
1645
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
1646
|
+
};
|
|
1647
|
+
const EmvEncryptionMode = {
|
|
1648
|
+
CBC: "CBC",
|
|
1649
|
+
ECB: "ECB",
|
|
1650
|
+
};
|
|
1651
|
+
const EncryptionMode = {
|
|
1652
|
+
CBC: "CBC",
|
|
1653
|
+
CFB: "CFB",
|
|
1654
|
+
CFB1: "CFB1",
|
|
1655
|
+
CFB128: "CFB128",
|
|
1656
|
+
CFB64: "CFB64",
|
|
1657
|
+
CFB8: "CFB8",
|
|
1658
|
+
ECB: "ECB",
|
|
1659
|
+
OFB: "OFB",
|
|
1660
|
+
};
|
|
1661
|
+
const SymmetricKeyAlgorithm = {
|
|
1662
|
+
AES_128: "AES_128",
|
|
1663
|
+
AES_192: "AES_192",
|
|
1664
|
+
AES_256: "AES_256",
|
|
1665
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
1666
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
1667
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
1668
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
1669
|
+
TDES_2KEY: "TDES_2KEY",
|
|
1670
|
+
TDES_3KEY: "TDES_3KEY",
|
|
1671
|
+
};
|
|
1672
|
+
const KeyDerivationFunction = {
|
|
1673
|
+
ANSI_X963: "ANSI_X963",
|
|
1674
|
+
NIST_SP800: "NIST_SP800",
|
|
1675
|
+
};
|
|
1676
|
+
const KeyDerivationHashAlgorithm = {
|
|
1677
|
+
SHA_256: "SHA_256",
|
|
1678
|
+
SHA_384: "SHA_384",
|
|
1679
|
+
SHA_512: "SHA_512",
|
|
1680
|
+
};
|
|
1681
|
+
const PinBlockLengthPosition = {
|
|
1682
|
+
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
1683
|
+
NONE: "NONE",
|
|
1684
|
+
};
|
|
1685
|
+
const PinBlockPaddingType = {
|
|
1686
|
+
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
1687
|
+
NO_PADDING: "NO_PADDING",
|
|
1688
|
+
};
|
|
1689
|
+
const MacAlgorithm = {
|
|
1690
|
+
CMAC: "CMAC",
|
|
1691
|
+
HMAC: "HMAC",
|
|
1692
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
1693
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
1694
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
1695
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
1696
|
+
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
1697
|
+
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
1698
|
+
};
|
|
1699
|
+
const SessionKeyDerivationMode = {
|
|
1700
|
+
AMEX: "AMEX",
|
|
1701
|
+
EMV2000: "EMV2000",
|
|
1702
|
+
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
1703
|
+
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
1704
|
+
VISA: "VISA",
|
|
1705
|
+
};
|
|
1706
|
+
const PinBlockFormatForEmvPinChange = {
|
|
1707
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
1708
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
1709
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
1710
|
+
};
|
|
1711
|
+
const PinBlockFormatForPinData = {
|
|
1712
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
1713
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
1714
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
1715
|
+
ISO_FORMAT_4: "ISO_FORMAT_4",
|
|
1716
|
+
};
|
|
1717
|
+
|
|
1734
1718
|
Object.defineProperty(exports, "$Command", {
|
|
1735
1719
|
enumerable: true,
|
|
1736
1720
|
get: function () { return smithyClient.Command; }
|
|
@@ -1753,7 +1737,6 @@ exports.GenerateMacCommand = GenerateMacCommand;
|
|
|
1753
1737
|
exports.GenerateMacEmvPinChangeCommand = GenerateMacEmvPinChangeCommand;
|
|
1754
1738
|
exports.GeneratePinDataCommand = GeneratePinDataCommand;
|
|
1755
1739
|
exports.InternalServerException = InternalServerException$1;
|
|
1756
|
-
exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
|
|
1757
1740
|
exports.KeyDerivationFunction = KeyDerivationFunction;
|
|
1758
1741
|
exports.KeyDerivationHashAlgorithm = KeyDerivationHashAlgorithm;
|
|
1759
1742
|
exports.MacAlgorithm = MacAlgorithm;
|
|
@@ -1775,9 +1758,7 @@ exports.TranslateKeyMaterialCommand = TranslateKeyMaterialCommand;
|
|
|
1775
1758
|
exports.TranslatePinDataCommand = TranslatePinDataCommand;
|
|
1776
1759
|
exports.ValidationException = ValidationException$1;
|
|
1777
1760
|
exports.VerificationFailedException = VerificationFailedException$1;
|
|
1778
|
-
exports.VerificationFailedReason = VerificationFailedReason;
|
|
1779
1761
|
exports.VerifyAuthRequestCryptogramCommand = VerifyAuthRequestCryptogramCommand;
|
|
1780
1762
|
exports.VerifyCardValidationDataCommand = VerifyCardValidationDataCommand;
|
|
1781
1763
|
exports.VerifyMacCommand = VerifyMacCommand;
|
|
1782
1764
|
exports.VerifyPinDataCommand = VerifyPinDataCommand;
|
|
1783
|
-
exports.WrappedKeyMaterialFormat = WrappedKeyMaterialFormat;
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./PaymentCryptographyDataClient";
|
|
2
2
|
export * from "./PaymentCryptographyData";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./models";
|
|
4
|
+
export * from "./models/enums";
|
|
5
|
+
export * from "./models/errors";
|
|
5
6
|
export { PaymentCryptographyDataServiceException } from "./models/PaymentCryptographyDataServiceException";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export const MajorKeyDerivationMode = {
|
|
2
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
3
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
4
|
+
};
|
|
5
|
+
export const PaddingType = {
|
|
6
|
+
OAEP_SHA1: "OAEP_SHA1",
|
|
7
|
+
OAEP_SHA256: "OAEP_SHA256",
|
|
8
|
+
OAEP_SHA512: "OAEP_SHA512",
|
|
9
|
+
PKCS1: "PKCS1",
|
|
10
|
+
};
|
|
11
|
+
export const DukptDerivationType = {
|
|
12
|
+
AES_128: "AES_128",
|
|
13
|
+
AES_192: "AES_192",
|
|
14
|
+
AES_256: "AES_256",
|
|
15
|
+
TDES_2KEY: "TDES_2KEY",
|
|
16
|
+
TDES_3KEY: "TDES_3KEY",
|
|
17
|
+
};
|
|
18
|
+
export const DukptKeyVariant = {
|
|
19
|
+
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
20
|
+
REQUEST: "REQUEST",
|
|
21
|
+
RESPONSE: "RESPONSE",
|
|
22
|
+
};
|
|
23
|
+
export const DukptEncryptionMode = {
|
|
24
|
+
CBC: "CBC",
|
|
25
|
+
ECB: "ECB",
|
|
26
|
+
};
|
|
27
|
+
export const EmvMajorKeyDerivationMode = {
|
|
28
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
29
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
30
|
+
};
|
|
31
|
+
export const EmvEncryptionMode = {
|
|
32
|
+
CBC: "CBC",
|
|
33
|
+
ECB: "ECB",
|
|
34
|
+
};
|
|
35
|
+
export const EncryptionMode = {
|
|
36
|
+
CBC: "CBC",
|
|
37
|
+
CFB: "CFB",
|
|
38
|
+
CFB1: "CFB1",
|
|
39
|
+
CFB128: "CFB128",
|
|
40
|
+
CFB64: "CFB64",
|
|
41
|
+
CFB8: "CFB8",
|
|
42
|
+
ECB: "ECB",
|
|
43
|
+
OFB: "OFB",
|
|
44
|
+
};
|
|
45
|
+
export const SymmetricKeyAlgorithm = {
|
|
46
|
+
AES_128: "AES_128",
|
|
47
|
+
AES_192: "AES_192",
|
|
48
|
+
AES_256: "AES_256",
|
|
49
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
50
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
51
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
52
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
53
|
+
TDES_2KEY: "TDES_2KEY",
|
|
54
|
+
TDES_3KEY: "TDES_3KEY",
|
|
55
|
+
};
|
|
56
|
+
export const KeyDerivationFunction = {
|
|
57
|
+
ANSI_X963: "ANSI_X963",
|
|
58
|
+
NIST_SP800: "NIST_SP800",
|
|
59
|
+
};
|
|
60
|
+
export const KeyDerivationHashAlgorithm = {
|
|
61
|
+
SHA_256: "SHA_256",
|
|
62
|
+
SHA_384: "SHA_384",
|
|
63
|
+
SHA_512: "SHA_512",
|
|
64
|
+
};
|
|
65
|
+
export const PinBlockLengthPosition = {
|
|
66
|
+
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
67
|
+
NONE: "NONE",
|
|
68
|
+
};
|
|
69
|
+
export const PinBlockPaddingType = {
|
|
70
|
+
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
71
|
+
NO_PADDING: "NO_PADDING",
|
|
72
|
+
};
|
|
73
|
+
export const MacAlgorithm = {
|
|
74
|
+
CMAC: "CMAC",
|
|
75
|
+
HMAC: "HMAC",
|
|
76
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
77
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
78
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
79
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
80
|
+
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
81
|
+
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
82
|
+
};
|
|
83
|
+
export const SessionKeyDerivationMode = {
|
|
84
|
+
AMEX: "AMEX",
|
|
85
|
+
EMV2000: "EMV2000",
|
|
86
|
+
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
87
|
+
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
88
|
+
VISA: "VISA",
|
|
89
|
+
};
|
|
90
|
+
export const PinBlockFormatForEmvPinChange = {
|
|
91
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
92
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
93
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
94
|
+
};
|
|
95
|
+
export const PinBlockFormatForPinData = {
|
|
96
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
97
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
98
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
99
|
+
ISO_FORMAT_4: "ISO_FORMAT_4",
|
|
100
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
Message;
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class InternalServerException extends __BaseException {
|
|
17
|
+
name = "InternalServerException";
|
|
18
|
+
$fault = "server";
|
|
19
|
+
Message;
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InternalServerException",
|
|
23
|
+
$fault: "server",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
31
|
+
name = "ResourceNotFoundException";
|
|
32
|
+
$fault = "client";
|
|
33
|
+
ResourceId;
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ResourceNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
41
|
+
this.ResourceId = opts.ResourceId;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class ThrottlingException extends __BaseException {
|
|
45
|
+
name = "ThrottlingException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
Message;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "ThrottlingException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ValidationException extends __BaseException {
|
|
59
|
+
name = "ValidationException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
fieldList;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ValidationException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
|
+
this.fieldList = opts.fieldList;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export class VerificationFailedException extends __BaseException {
|
|
73
|
+
name = "VerificationFailedException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
Reason;
|
|
76
|
+
Message;
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "VerificationFailedException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, VerificationFailedException.prototype);
|
|
84
|
+
this.Reason = opts.Reason;
|
|
85
|
+
this.Message = opts.Message;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,180 +1,9 @@
|
|
|
1
|
-
import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export const MajorKeyDerivationMode = {
|
|
17
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
18
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
19
|
-
};
|
|
20
|
-
export const PaddingType = {
|
|
21
|
-
OAEP_SHA1: "OAEP_SHA1",
|
|
22
|
-
OAEP_SHA256: "OAEP_SHA256",
|
|
23
|
-
OAEP_SHA512: "OAEP_SHA512",
|
|
24
|
-
PKCS1: "PKCS1",
|
|
25
|
-
};
|
|
26
|
-
export const DukptDerivationType = {
|
|
27
|
-
AES_128: "AES_128",
|
|
28
|
-
AES_192: "AES_192",
|
|
29
|
-
AES_256: "AES_256",
|
|
30
|
-
TDES_2KEY: "TDES_2KEY",
|
|
31
|
-
TDES_3KEY: "TDES_3KEY",
|
|
32
|
-
};
|
|
33
|
-
export const DukptKeyVariant = {
|
|
34
|
-
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
35
|
-
REQUEST: "REQUEST",
|
|
36
|
-
RESPONSE: "RESPONSE",
|
|
37
|
-
};
|
|
38
|
-
export const DukptEncryptionMode = {
|
|
39
|
-
CBC: "CBC",
|
|
40
|
-
ECB: "ECB",
|
|
41
|
-
};
|
|
42
|
-
export const EmvMajorKeyDerivationMode = {
|
|
43
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
44
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
45
|
-
};
|
|
46
|
-
export const EmvEncryptionMode = {
|
|
47
|
-
CBC: "CBC",
|
|
48
|
-
ECB: "ECB",
|
|
49
|
-
};
|
|
50
|
-
export const EncryptionMode = {
|
|
51
|
-
CBC: "CBC",
|
|
52
|
-
CFB: "CFB",
|
|
53
|
-
CFB1: "CFB1",
|
|
54
|
-
CFB128: "CFB128",
|
|
55
|
-
CFB64: "CFB64",
|
|
56
|
-
CFB8: "CFB8",
|
|
57
|
-
ECB: "ECB",
|
|
58
|
-
OFB: "OFB",
|
|
59
|
-
};
|
|
60
1
|
export const KeyCheckValueAlgorithm = {
|
|
61
2
|
ANSI_X9_24: "ANSI_X9_24",
|
|
62
3
|
CMAC: "CMAC",
|
|
63
4
|
HMAC: "HMAC",
|
|
64
5
|
SHA_1: "SHA_1",
|
|
65
6
|
};
|
|
66
|
-
export const SymmetricKeyAlgorithm = {
|
|
67
|
-
AES_128: "AES_128",
|
|
68
|
-
AES_192: "AES_192",
|
|
69
|
-
AES_256: "AES_256",
|
|
70
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
71
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
72
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
73
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
74
|
-
TDES_2KEY: "TDES_2KEY",
|
|
75
|
-
TDES_3KEY: "TDES_3KEY",
|
|
76
|
-
};
|
|
77
|
-
export const KeyDerivationFunction = {
|
|
78
|
-
ANSI_X963: "ANSI_X963",
|
|
79
|
-
NIST_SP800: "NIST_SP800",
|
|
80
|
-
};
|
|
81
|
-
export const KeyDerivationHashAlgorithm = {
|
|
82
|
-
SHA_256: "SHA_256",
|
|
83
|
-
SHA_384: "SHA_384",
|
|
84
|
-
SHA_512: "SHA_512",
|
|
85
|
-
};
|
|
86
|
-
export class InternalServerException extends __BaseException {
|
|
87
|
-
name = "InternalServerException";
|
|
88
|
-
$fault = "server";
|
|
89
|
-
Message;
|
|
90
|
-
constructor(opts) {
|
|
91
|
-
super({
|
|
92
|
-
name: "InternalServerException",
|
|
93
|
-
$fault: "server",
|
|
94
|
-
...opts,
|
|
95
|
-
});
|
|
96
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
97
|
-
this.Message = opts.Message;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
101
|
-
name = "ResourceNotFoundException";
|
|
102
|
-
$fault = "client";
|
|
103
|
-
ResourceId;
|
|
104
|
-
constructor(opts) {
|
|
105
|
-
super({
|
|
106
|
-
name: "ResourceNotFoundException",
|
|
107
|
-
$fault: "client",
|
|
108
|
-
...opts,
|
|
109
|
-
});
|
|
110
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
111
|
-
this.ResourceId = opts.ResourceId;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export class ThrottlingException extends __BaseException {
|
|
115
|
-
name = "ThrottlingException";
|
|
116
|
-
$fault = "client";
|
|
117
|
-
Message;
|
|
118
|
-
constructor(opts) {
|
|
119
|
-
super({
|
|
120
|
-
name: "ThrottlingException",
|
|
121
|
-
$fault: "client",
|
|
122
|
-
...opts,
|
|
123
|
-
});
|
|
124
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
125
|
-
this.Message = opts.Message;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
export class ValidationException extends __BaseException {
|
|
129
|
-
name = "ValidationException";
|
|
130
|
-
$fault = "client";
|
|
131
|
-
fieldList;
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "ValidationException",
|
|
135
|
-
$fault: "client",
|
|
136
|
-
...opts,
|
|
137
|
-
});
|
|
138
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
139
|
-
this.fieldList = opts.fieldList;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
export const PinBlockLengthPosition = {
|
|
143
|
-
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
144
|
-
NONE: "NONE",
|
|
145
|
-
};
|
|
146
|
-
export const PinBlockPaddingType = {
|
|
147
|
-
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
148
|
-
NO_PADDING: "NO_PADDING",
|
|
149
|
-
};
|
|
150
|
-
export const MacAlgorithm = {
|
|
151
|
-
CMAC: "CMAC",
|
|
152
|
-
HMAC: "HMAC",
|
|
153
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
154
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
155
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
156
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
157
|
-
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
158
|
-
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
159
|
-
};
|
|
160
|
-
export const SessionKeyDerivationMode = {
|
|
161
|
-
AMEX: "AMEX",
|
|
162
|
-
EMV2000: "EMV2000",
|
|
163
|
-
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
164
|
-
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
165
|
-
VISA: "VISA",
|
|
166
|
-
};
|
|
167
|
-
export const PinBlockFormatForEmvPinChange = {
|
|
168
|
-
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
169
|
-
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
170
|
-
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
171
|
-
};
|
|
172
|
-
export const PinBlockFormatForPinData = {
|
|
173
|
-
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
174
|
-
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
175
|
-
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
176
|
-
ISO_FORMAT_4: "ISO_FORMAT_4",
|
|
177
|
-
};
|
|
178
7
|
export const WrappedKeyMaterialFormat = {
|
|
179
8
|
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
180
9
|
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
@@ -186,19 +15,3 @@ export const VerificationFailedReason = {
|
|
|
186
15
|
INVALID_PIN: "INVALID_PIN",
|
|
187
16
|
INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
|
|
188
17
|
};
|
|
189
|
-
export class VerificationFailedException extends __BaseException {
|
|
190
|
-
name = "VerificationFailedException";
|
|
191
|
-
$fault = "client";
|
|
192
|
-
Reason;
|
|
193
|
-
Message;
|
|
194
|
-
constructor(opts) {
|
|
195
|
-
super({
|
|
196
|
-
name: "VerificationFailedException",
|
|
197
|
-
$fault: "client",
|
|
198
|
-
...opts,
|
|
199
|
-
});
|
|
200
|
-
Object.setPrototypeOf(this, VerificationFailedException.prototype);
|
|
201
|
-
this.Reason = opts.Reason;
|
|
202
|
-
this.Message = opts.Message;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
@@ -276,7 +276,7 @@ const _s = "server";
|
|
|
276
276
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptographydata";
|
|
277
277
|
const n0 = "com.amazonaws.paymentcryptographydata";
|
|
278
278
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
279
|
-
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, VerificationFailedException as __VerificationFailedException, } from "../models/
|
|
279
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, VerificationFailedException as __VerificationFailedException, } from "../models/errors";
|
|
280
280
|
import { PaymentCryptographyDataServiceException as __PaymentCryptographyDataServiceException } from "../models/PaymentCryptographyDataServiceException";
|
|
281
281
|
export var ApplicationCryptogramType = [0, n0, _ACT, 8, 0];
|
|
282
282
|
export var AuthRequestCryptogramType = [0, n0, _ARCT, 8, 0];
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,5 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { PaymentCryptographyDataExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
-
export * from "./models";
|
|
12
|
+
export * from "./models/enums";
|
|
13
|
+
export * from "./models/errors";
|
|
14
|
+
export type * from "./models/models_0";
|
|
13
15
|
export { PaymentCryptographyDataServiceException } from "./models/PaymentCryptographyDataServiceException";
|