@aws-sdk/client-payment-cryptography-data 3.953.0 → 3.954.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/README.md CHANGED
@@ -218,6 +218,14 @@ EncryptData
218
218
 
219
219
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography-data/command/EncryptDataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/EncryptDataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/EncryptDataCommandOutput/)
220
220
 
221
+ </details>
222
+ <details>
223
+ <summary>
224
+ GenerateAs2805KekValidation
225
+ </summary>
226
+
227
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography-data/command/GenerateAs2805KekValidationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateAs2805KekValidationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateAs2805KekValidationCommandOutput/)
228
+
221
229
  </details>
222
230
  <details>
223
231
  <summary>
package/dist-cjs/index.js CHANGED
@@ -212,8 +212,11 @@ const _ACSCVm = "AmexCardSecurityCodeVersion2";
212
212
  const _ACT = "ApplicationCryptogramType";
213
213
  const _ADE = "AccessDeniedException";
214
214
  const _AEA = "AsymmetricEncryptionAttributes";
215
+ const _AF = "As2805Format0";
216
+ const _AKVT = "As2805KekValidationType";
215
217
  const _AM = "ArpcMethod1";
216
218
  const _AMr = "ArpcMethod2";
219
+ const _APDA = "As2805PekDerivationAttributes";
217
220
  const _ARA = "AuthResponseAttributes";
218
221
  const _ARC = "AuthResponseCode";
219
222
  const _ARCT = "AuthRequestCryptogramType";
@@ -221,6 +224,7 @@ const _ARCu = "AuthRequestCryptogram";
221
224
  const _ARKA = "AuthorizationRequestKeyArn";
222
225
  const _ARKCV = "AuthorizationRequestKeyCheckValue";
223
226
  const _ARKI = "AuthorizationRequestKeyIdentifier";
227
+ const _ARKM = "As2805RandomKeyMaterial";
224
228
  const _ARV = "AuthResponseValue";
225
229
  const _ARVT = "AuthResponseValueType";
226
230
  const _ATC = "ApplicationTransactionCounter";
@@ -291,6 +295,9 @@ const _EPBT = "EncryptedPinBlockType";
291
295
  const _EWK = "EncryptionWrappedKey";
292
296
  const _Em = "Emv";
293
297
  const _GA = "GenerationAttributes";
298
+ const _GAKV = "GenerateAs2805KekValidation";
299
+ const _GAKVI = "GenerateAs2805KekValidationInput";
300
+ const _GAKVO = "GenerateAs2805KekValidationOutput";
294
301
  const _GCVD = "GenerateCardValidationData";
295
302
  const _GCVDI = "GenerateCardValidationDataInput";
296
303
  const _GCVDO = "GenerateCardValidationDataOutput";
@@ -307,6 +314,7 @@ const _GPD = "GeneratePinData";
307
314
  const _GPDI = "GeneratePinDataInput";
308
315
  const _GPDO = "GeneratePinDataOutput";
309
316
  const _HELBA = "HexEvenLengthBetween16And32";
317
+ const _IAA = "IncomingAs2805Attributes";
310
318
  const _IDA = "IncomingDukptAttributes";
311
319
  const _IDHTKB = "IncomingDiffieHellmanTr31KeyBlock";
312
320
  const _IEA = "IncomingEncryptionAttributes";
@@ -336,6 +344,9 @@ const _KDHA = "KeyDerivationHashAlgorithm";
336
344
  const _KI = "KeyIdentifier";
337
345
  const _KM = "KeyMaterial";
338
346
  const _KSN = "KeySerialNumber";
347
+ const _KVR = "KekValidationRequest";
348
+ const _KVRe = "KekValidationResponse";
349
+ const _KVT = "KekValidationType";
339
350
  const _M = "Message";
340
351
  const _MA = "MacAttributes";
341
352
  const _MAD = "MacAlgorithmDukpt";
@@ -394,6 +405,9 @@ const _RED = "ReEncryptData";
394
405
  const _REDI = "ReEncryptDataInput";
395
406
  const _REDO = "ReEncryptDataOutput";
396
407
  const _RI = "ResourceId";
408
+ const _RKR = "RandomKeyReceive";
409
+ const _RKS = "RandomKeySend";
410
+ const _RKSVM = "RandomKeySendVariantMask";
397
411
  const _RNFE = "ResourceNotFoundException";
398
412
  const _S = "Symmetric";
399
413
  const _SC = "ServiceCode";
@@ -417,6 +431,8 @@ const _SMCKI = "SecureMessagingConfidentialityKeyIdentifier";
417
431
  const _SMIKA = "SecureMessagingIntegrityKeyArn";
418
432
  const _SMIKCV = "SecureMessagingIntegrityKeyCheckValue";
419
433
  const _SMIKI = "SecureMessagingIntegrityKeyIdentifier";
434
+ const _STAN = "SystemTraceAuditNumber";
435
+ const _TA = "TransactionAmount";
420
436
  const _TD = "TrackData";
421
437
  const _TDT = "TrackDataType";
422
438
  const _TDTr = "TransactionDataType";
@@ -428,6 +444,7 @@ const _TKM = "TranslateKeyMaterial";
428
444
  const _TKMI = "TranslateKeyMaterialInput";
429
445
  const _TKMO = "TranslateKeyMaterialOutput";
430
446
  const _TPD = "TranslatePinData";
447
+ const _TPDAF = "TranslationPinDataAs2805Format0";
431
448
  const _TPDI = "TranslatePinDataInput";
432
449
  const _TPDIF = "TranslationPinDataIsoFormat034";
433
450
  const _TPDIFr = "TranslationPinDataIsoFormat1";
@@ -482,6 +499,7 @@ const _s = "server";
482
499
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptographydata";
483
500
  const n0 = "com.amazonaws.paymentcryptographydata";
484
501
  var ApplicationCryptogramType = [0, n0, _ACT, 8, 0];
502
+ var As2805RandomKeyMaterial = [0, n0, _ARKM, 8, 0];
485
503
  var AuthRequestCryptogramType = [0, n0, _ARCT, 8, 0];
486
504
  var AuthResponseValueType = [0, n0, _ARVT, 8, 0];
487
505
  var CardExpiryDateType = [0, n0, _CEDT, 8, 0];
@@ -539,6 +557,7 @@ var AmexCardSecurityCodeVersion2$ = [
539
557
  [() => ServiceCodeType, 0],
540
558
  ],
541
559
  ];
560
+ var As2805PekDerivationAttributes$ = [3, n0, _APDA, 0, [_STAN, _TA], [0, 0]];
542
561
  var AsymmetricEncryptionAttributes$ = [3, n0, _AEA, 0, [_PT], [0]];
543
562
  var CardHolderVerificationValue$ = [3, n0, _CHVV, 0, [_UN, _PSN, _ATC], [0, 0, 0]];
544
563
  var CardVerificationValue1$ = [
@@ -685,6 +704,22 @@ var EncryptDataOutput$ = [
685
704
  [_KA, _KCV, _CT],
686
705
  [0, 0, [() => CipherTextType, 0]],
687
706
  ];
707
+ var GenerateAs2805KekValidationInput$ = [
708
+ 3,
709
+ n0,
710
+ _GAKVI,
711
+ 0,
712
+ [_KI, _KVT, _RKSVM],
713
+ [0, [() => As2805KekValidationType$, 0], 0],
714
+ ];
715
+ var GenerateAs2805KekValidationOutput$ = [
716
+ 3,
717
+ n0,
718
+ _GAKVO,
719
+ 0,
720
+ [_KA, _KCV, _RKS, _RKR],
721
+ [0, 0, [() => As2805RandomKeyMaterial, 0], [() => As2805RandomKeyMaterial, 0]],
722
+ ];
688
723
  var GenerateCardValidationDataInput$ = [
689
724
  3,
690
725
  n0,
@@ -817,6 +852,15 @@ var IncomingDiffieHellmanTr31KeyBlock$ = [
817
852
  ];
818
853
  var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
819
854
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
855
+ var KekValidationRequest$ = [3, n0, _KVR, 0, [_DKA], [0]];
856
+ var KekValidationResponse$ = [
857
+ 3,
858
+ n0,
859
+ _KVRe,
860
+ 0,
861
+ [_RKS],
862
+ [[() => As2805RandomKeyMaterial, 0]],
863
+ ];
820
864
  var MacAlgorithmDukpt$ = [3, n0, _MAD, 0, [_KSN, _DKV, _DDT], [0, 0, 0]];
821
865
  var MacAlgorithmEmv$ = [
822
866
  3,
@@ -932,7 +976,7 @@ var TranslatePinDataInput$ = [
932
976
  n0,
933
977
  _TPDI,
934
978
  0,
935
- [_IKI, _OKI, _ITA, _OTA, _EPB, _IDA, _ODA, _IWK, _OWK],
979
+ [_IKI, _OKI, _ITA, _OTA, _EPB, _IDA, _ODA, _IWK, _OWK, _IAA],
936
980
  [
937
981
  0,
938
982
  0,
@@ -943,6 +987,7 @@ var TranslatePinDataInput$ = [
943
987
  () => DukptDerivationAttributes$,
944
988
  [() => WrappedKey$, 0],
945
989
  [() => WrappedKey$, 0],
990
+ () => As2805PekDerivationAttributes$,
946
991
  ],
947
992
  ];
948
993
  var TranslatePinDataOutput$ = [
@@ -953,6 +998,14 @@ var TranslatePinDataOutput$ = [
953
998
  [_PB, _KA, _KCV],
954
999
  [[() => EncryptedPinBlockType, 0], 0, 0],
955
1000
  ];
1001
+ var TranslationPinDataAs2805Format0$ = [
1002
+ 3,
1003
+ n0,
1004
+ _TPDAF,
1005
+ 0,
1006
+ [_PAN],
1007
+ [[() => PrimaryAccountNumberType, 0]],
1008
+ ];
956
1009
  var TranslationPinDataIsoFormat034$ = [
957
1010
  3,
958
1011
  n0,
@@ -1086,6 +1139,14 @@ var PaymentCryptographyDataServiceException$ = [
1086
1139
  ];
1087
1140
  schema.TypeRegistry.for(_sm).registerError(PaymentCryptographyDataServiceException$, PaymentCryptographyDataServiceException);
1088
1141
  var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField$];
1142
+ var As2805KekValidationType$ = [
1143
+ 3,
1144
+ n0,
1145
+ _AKVT,
1146
+ 0,
1147
+ [_KVR, _KVRe],
1148
+ [() => KekValidationRequest$, [() => KekValidationResponse$, 0]],
1149
+ ];
1089
1150
  var CardGenerationAttributes$ = [
1090
1151
  3,
1091
1152
  n0,
@@ -1247,12 +1308,13 @@ var TranslationIsoFormats$ = [
1247
1308
  n0,
1248
1309
  _TIF,
1249
1310
  0,
1250
- [_IF, _IFs, _IFso, _IFsoo],
1311
+ [_IF, _IFs, _IFso, _IFsoo, _AF],
1251
1312
  [
1252
1313
  [() => TranslationPinDataIsoFormat034$, 0],
1253
1314
  () => TranslationPinDataIsoFormat1$,
1254
1315
  [() => TranslationPinDataIsoFormat034$, 0],
1255
1316
  [() => TranslationPinDataIsoFormat034$, 0],
1317
+ [() => TranslationPinDataAs2805Format0$, 0],
1256
1318
  ],
1257
1319
  ];
1258
1320
  var WrappedKeyMaterial$ = [
@@ -1279,6 +1341,14 @@ var EncryptData$ = [
1279
1341
  () => EncryptDataInput$,
1280
1342
  () => EncryptDataOutput$,
1281
1343
  ];
1344
+ var GenerateAs2805KekValidation$ = [
1345
+ 9,
1346
+ n0,
1347
+ _GAKV,
1348
+ { [_h]: ["POST", "/as2805kekvalidation/generate", 200] },
1349
+ () => GenerateAs2805KekValidationInput$,
1350
+ () => GenerateAs2805KekValidationOutput$,
1351
+ ];
1282
1352
  var GenerateCardValidationData$ = [
1283
1353
  9,
1284
1354
  n0,
@@ -1392,6 +1462,18 @@ class EncryptDataCommand extends smithyClient.Command
1392
1462
  .build() {
1393
1463
  }
1394
1464
 
1465
+ class GenerateAs2805KekValidationCommand extends smithyClient.Command
1466
+ .classBuilder()
1467
+ .ep(commonParams)
1468
+ .m(function (Command, cs, config, o) {
1469
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1470
+ })
1471
+ .s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
1472
+ .n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
1473
+ .sc(GenerateAs2805KekValidation$)
1474
+ .build() {
1475
+ }
1476
+
1395
1477
  class GenerateCardValidationDataCommand extends smithyClient.Command
1396
1478
  .classBuilder()
1397
1479
  .ep(commonParams)
@@ -1527,6 +1609,7 @@ class VerifyPinDataCommand extends smithyClient.Command
1527
1609
  const commands = {
1528
1610
  DecryptDataCommand,
1529
1611
  EncryptDataCommand,
1612
+ GenerateAs2805KekValidationCommand,
1530
1613
  GenerateCardValidationDataCommand,
1531
1614
  GenerateMacCommand,
1532
1615
  GenerateMacEmvPinChangeCommand,
@@ -1547,6 +1630,17 @@ const MajorKeyDerivationMode = {
1547
1630
  EMV_OPTION_A: "EMV_OPTION_A",
1548
1631
  EMV_OPTION_B: "EMV_OPTION_B",
1549
1632
  };
1633
+ const SymmetricKeyAlgorithm = {
1634
+ AES_128: "AES_128",
1635
+ AES_192: "AES_192",
1636
+ AES_256: "AES_256",
1637
+ HMAC_SHA224: "HMAC_SHA224",
1638
+ HMAC_SHA256: "HMAC_SHA256",
1639
+ HMAC_SHA384: "HMAC_SHA384",
1640
+ HMAC_SHA512: "HMAC_SHA512",
1641
+ TDES_2KEY: "TDES_2KEY",
1642
+ TDES_3KEY: "TDES_3KEY",
1643
+ };
1550
1644
  const PaddingType = {
1551
1645
  OAEP_SHA1: "OAEP_SHA1",
1552
1646
  OAEP_SHA256: "OAEP_SHA256",
@@ -1593,17 +1687,6 @@ const KeyCheckValueAlgorithm = {
1593
1687
  HMAC: "HMAC",
1594
1688
  SHA_1: "SHA_1",
1595
1689
  };
1596
- const SymmetricKeyAlgorithm = {
1597
- AES_128: "AES_128",
1598
- AES_192: "AES_192",
1599
- AES_256: "AES_256",
1600
- HMAC_SHA224: "HMAC_SHA224",
1601
- HMAC_SHA256: "HMAC_SHA256",
1602
- HMAC_SHA384: "HMAC_SHA384",
1603
- HMAC_SHA512: "HMAC_SHA512",
1604
- TDES_2KEY: "TDES_2KEY",
1605
- TDES_3KEY: "TDES_3KEY",
1606
- };
1607
1690
  const KeyDerivationFunction = {
1608
1691
  ANSI_X963: "ANSI_X963",
1609
1692
  NIST_SP800: "NIST_SP800",
@@ -1621,7 +1704,12 @@ const PinBlockPaddingType = {
1621
1704
  ISO_IEC_7816_4: "ISO_IEC_7816_4",
1622
1705
  NO_PADDING: "NO_PADDING",
1623
1706
  };
1707
+ const RandomKeySendVariantMask = {
1708
+ VARIANT_MASK_82: "VARIANT_MASK_82",
1709
+ VARIANT_MASK_82C0: "VARIANT_MASK_82C0",
1710
+ };
1624
1711
  const MacAlgorithm = {
1712
+ AS2805_4_1: "AS2805_4_1",
1625
1713
  CMAC: "CMAC",
1626
1714
  HMAC: "HMAC",
1627
1715
  HMAC_SHA224: "HMAC_SHA224",
@@ -1674,6 +1762,8 @@ exports.AccessDeniedException$ = AccessDeniedException$;
1674
1762
  exports.AmexAttributes$ = AmexAttributes$;
1675
1763
  exports.AmexCardSecurityCodeVersion1$ = AmexCardSecurityCodeVersion1$;
1676
1764
  exports.AmexCardSecurityCodeVersion2$ = AmexCardSecurityCodeVersion2$;
1765
+ exports.As2805KekValidationType$ = As2805KekValidationType$;
1766
+ exports.As2805PekDerivationAttributes$ = As2805PekDerivationAttributes$;
1677
1767
  exports.AsymmetricEncryptionAttributes$ = AsymmetricEncryptionAttributes$;
1678
1768
  exports.CardGenerationAttributes$ = CardGenerationAttributes$;
1679
1769
  exports.CardHolderVerificationValue$ = CardHolderVerificationValue$;
@@ -1711,6 +1801,10 @@ exports.EncryptDataInput$ = EncryptDataInput$;
1711
1801
  exports.EncryptDataOutput$ = EncryptDataOutput$;
1712
1802
  exports.EncryptionDecryptionAttributes$ = EncryptionDecryptionAttributes$;
1713
1803
  exports.EncryptionMode = EncryptionMode;
1804
+ exports.GenerateAs2805KekValidation$ = GenerateAs2805KekValidation$;
1805
+ exports.GenerateAs2805KekValidationCommand = GenerateAs2805KekValidationCommand;
1806
+ exports.GenerateAs2805KekValidationInput$ = GenerateAs2805KekValidationInput$;
1807
+ exports.GenerateAs2805KekValidationOutput$ = GenerateAs2805KekValidationOutput$;
1714
1808
  exports.GenerateCardValidationData$ = GenerateCardValidationData$;
1715
1809
  exports.GenerateCardValidationDataCommand = GenerateCardValidationDataCommand;
1716
1810
  exports.GenerateCardValidationDataInput$ = GenerateCardValidationDataInput$;
@@ -1736,6 +1830,8 @@ exports.IncomingDiffieHellmanTr31KeyBlock$ = IncomingDiffieHellmanTr31KeyBlock$;
1736
1830
  exports.IncomingKeyMaterial$ = IncomingKeyMaterial$;
1737
1831
  exports.InternalServerException = InternalServerException;
1738
1832
  exports.InternalServerException$ = InternalServerException$;
1833
+ exports.KekValidationRequest$ = KekValidationRequest$;
1834
+ exports.KekValidationResponse$ = KekValidationResponse$;
1739
1835
  exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
1740
1836
  exports.KeyDerivationFunction = KeyDerivationFunction;
1741
1837
  exports.KeyDerivationHashAlgorithm = KeyDerivationHashAlgorithm;
@@ -1759,6 +1855,7 @@ exports.PinBlockPaddingType = PinBlockPaddingType;
1759
1855
  exports.PinData$ = PinData$;
1760
1856
  exports.PinGenerationAttributes$ = PinGenerationAttributes$;
1761
1857
  exports.PinVerificationAttributes$ = PinVerificationAttributes$;
1858
+ exports.RandomKeySendVariantMask = RandomKeySendVariantMask;
1762
1859
  exports.ReEncryptData$ = ReEncryptData$;
1763
1860
  exports.ReEncryptDataCommand = ReEncryptDataCommand;
1764
1861
  exports.ReEncryptDataInput$ = ReEncryptDataInput$;
@@ -1787,6 +1884,7 @@ exports.TranslatePinDataCommand = TranslatePinDataCommand;
1787
1884
  exports.TranslatePinDataInput$ = TranslatePinDataInput$;
1788
1885
  exports.TranslatePinDataOutput$ = TranslatePinDataOutput$;
1789
1886
  exports.TranslationIsoFormats$ = TranslationIsoFormats$;
1887
+ exports.TranslationPinDataAs2805Format0$ = TranslationPinDataAs2805Format0$;
1790
1888
  exports.TranslationPinDataIsoFormat034$ = TranslationPinDataIsoFormat034$;
1791
1889
  exports.TranslationPinDataIsoFormat1$ = TranslationPinDataIsoFormat1$;
1792
1890
  exports.ValidationException = ValidationException;
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { DecryptDataCommand } from "./commands/DecryptDataCommand";
3
3
  import { EncryptDataCommand } from "./commands/EncryptDataCommand";
4
+ import { GenerateAs2805KekValidationCommand, } from "./commands/GenerateAs2805KekValidationCommand";
4
5
  import { GenerateCardValidationDataCommand, } from "./commands/GenerateCardValidationDataCommand";
5
6
  import { GenerateMacCommand } from "./commands/GenerateMacCommand";
6
7
  import { GenerateMacEmvPinChangeCommand, } from "./commands/GenerateMacEmvPinChangeCommand";
@@ -16,6 +17,7 @@ import { PaymentCryptographyDataClient } from "./PaymentCryptographyDataClient";
16
17
  const commands = {
17
18
  DecryptDataCommand,
18
19
  EncryptDataCommand,
20
+ GenerateAs2805KekValidationCommand,
19
21
  GenerateCardValidationDataCommand,
20
22
  GenerateMacCommand,
21
23
  GenerateMacEmvPinChangeCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GenerateAs2805KekValidation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GenerateAs2805KekValidationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PaymentCryptographyDataPlane", "GenerateAs2805KekValidation", {})
13
+ .n("PaymentCryptographyDataClient", "GenerateAs2805KekValidationCommand")
14
+ .sc(GenerateAs2805KekValidation$)
15
+ .build() {
16
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./DecryptDataCommand";
2
2
  export * from "./EncryptDataCommand";
3
+ export * from "./GenerateAs2805KekValidationCommand";
3
4
  export * from "./GenerateCardValidationDataCommand";
4
5
  export * from "./GenerateMacCommand";
5
6
  export * from "./GenerateMacEmvPinChangeCommand";
@@ -2,6 +2,17 @@ export const MajorKeyDerivationMode = {
2
2
  EMV_OPTION_A: "EMV_OPTION_A",
3
3
  EMV_OPTION_B: "EMV_OPTION_B",
4
4
  };
5
+ export const SymmetricKeyAlgorithm = {
6
+ AES_128: "AES_128",
7
+ AES_192: "AES_192",
8
+ AES_256: "AES_256",
9
+ HMAC_SHA224: "HMAC_SHA224",
10
+ HMAC_SHA256: "HMAC_SHA256",
11
+ HMAC_SHA384: "HMAC_SHA384",
12
+ HMAC_SHA512: "HMAC_SHA512",
13
+ TDES_2KEY: "TDES_2KEY",
14
+ TDES_3KEY: "TDES_3KEY",
15
+ };
5
16
  export const PaddingType = {
6
17
  OAEP_SHA1: "OAEP_SHA1",
7
18
  OAEP_SHA256: "OAEP_SHA256",
@@ -48,17 +59,6 @@ export const KeyCheckValueAlgorithm = {
48
59
  HMAC: "HMAC",
49
60
  SHA_1: "SHA_1",
50
61
  };
51
- export const SymmetricKeyAlgorithm = {
52
- AES_128: "AES_128",
53
- AES_192: "AES_192",
54
- AES_256: "AES_256",
55
- HMAC_SHA224: "HMAC_SHA224",
56
- HMAC_SHA256: "HMAC_SHA256",
57
- HMAC_SHA384: "HMAC_SHA384",
58
- HMAC_SHA512: "HMAC_SHA512",
59
- TDES_2KEY: "TDES_2KEY",
60
- TDES_3KEY: "TDES_3KEY",
61
- };
62
62
  export const KeyDerivationFunction = {
63
63
  ANSI_X963: "ANSI_X963",
64
64
  NIST_SP800: "NIST_SP800",
@@ -76,7 +76,12 @@ export const PinBlockPaddingType = {
76
76
  ISO_IEC_7816_4: "ISO_IEC_7816_4",
77
77
  NO_PADDING: "NO_PADDING",
78
78
  };
79
+ export const RandomKeySendVariantMask = {
80
+ VARIANT_MASK_82: "VARIANT_MASK_82",
81
+ VARIANT_MASK_82C0: "VARIANT_MASK_82C0",
82
+ };
79
83
  export const MacAlgorithm = {
84
+ AS2805_4_1: "AS2805_4_1",
80
85
  CMAC: "CMAC",
81
86
  HMAC: "HMAC",
82
87
  HMAC_SHA224: "HMAC_SHA224",
@@ -6,8 +6,11 @@ const _ACSCVm = "AmexCardSecurityCodeVersion2";
6
6
  const _ACT = "ApplicationCryptogramType";
7
7
  const _ADE = "AccessDeniedException";
8
8
  const _AEA = "AsymmetricEncryptionAttributes";
9
+ const _AF = "As2805Format0";
10
+ const _AKVT = "As2805KekValidationType";
9
11
  const _AM = "ArpcMethod1";
10
12
  const _AMr = "ArpcMethod2";
13
+ const _APDA = "As2805PekDerivationAttributes";
11
14
  const _ARA = "AuthResponseAttributes";
12
15
  const _ARC = "AuthResponseCode";
13
16
  const _ARCT = "AuthRequestCryptogramType";
@@ -15,6 +18,7 @@ const _ARCu = "AuthRequestCryptogram";
15
18
  const _ARKA = "AuthorizationRequestKeyArn";
16
19
  const _ARKCV = "AuthorizationRequestKeyCheckValue";
17
20
  const _ARKI = "AuthorizationRequestKeyIdentifier";
21
+ const _ARKM = "As2805RandomKeyMaterial";
18
22
  const _ARV = "AuthResponseValue";
19
23
  const _ARVT = "AuthResponseValueType";
20
24
  const _ATC = "ApplicationTransactionCounter";
@@ -85,6 +89,9 @@ const _EPBT = "EncryptedPinBlockType";
85
89
  const _EWK = "EncryptionWrappedKey";
86
90
  const _Em = "Emv";
87
91
  const _GA = "GenerationAttributes";
92
+ const _GAKV = "GenerateAs2805KekValidation";
93
+ const _GAKVI = "GenerateAs2805KekValidationInput";
94
+ const _GAKVO = "GenerateAs2805KekValidationOutput";
88
95
  const _GCVD = "GenerateCardValidationData";
89
96
  const _GCVDI = "GenerateCardValidationDataInput";
90
97
  const _GCVDO = "GenerateCardValidationDataOutput";
@@ -101,6 +108,7 @@ const _GPD = "GeneratePinData";
101
108
  const _GPDI = "GeneratePinDataInput";
102
109
  const _GPDO = "GeneratePinDataOutput";
103
110
  const _HELBA = "HexEvenLengthBetween16And32";
111
+ const _IAA = "IncomingAs2805Attributes";
104
112
  const _IDA = "IncomingDukptAttributes";
105
113
  const _IDHTKB = "IncomingDiffieHellmanTr31KeyBlock";
106
114
  const _IEA = "IncomingEncryptionAttributes";
@@ -130,6 +138,9 @@ const _KDHA = "KeyDerivationHashAlgorithm";
130
138
  const _KI = "KeyIdentifier";
131
139
  const _KM = "KeyMaterial";
132
140
  const _KSN = "KeySerialNumber";
141
+ const _KVR = "KekValidationRequest";
142
+ const _KVRe = "KekValidationResponse";
143
+ const _KVT = "KekValidationType";
133
144
  const _M = "Message";
134
145
  const _MA = "MacAttributes";
135
146
  const _MAD = "MacAlgorithmDukpt";
@@ -188,6 +199,9 @@ const _RED = "ReEncryptData";
188
199
  const _REDI = "ReEncryptDataInput";
189
200
  const _REDO = "ReEncryptDataOutput";
190
201
  const _RI = "ResourceId";
202
+ const _RKR = "RandomKeyReceive";
203
+ const _RKS = "RandomKeySend";
204
+ const _RKSVM = "RandomKeySendVariantMask";
191
205
  const _RNFE = "ResourceNotFoundException";
192
206
  const _S = "Symmetric";
193
207
  const _SC = "ServiceCode";
@@ -211,6 +225,8 @@ const _SMCKI = "SecureMessagingConfidentialityKeyIdentifier";
211
225
  const _SMIKA = "SecureMessagingIntegrityKeyArn";
212
226
  const _SMIKCV = "SecureMessagingIntegrityKeyCheckValue";
213
227
  const _SMIKI = "SecureMessagingIntegrityKeyIdentifier";
228
+ const _STAN = "SystemTraceAuditNumber";
229
+ const _TA = "TransactionAmount";
214
230
  const _TD = "TrackData";
215
231
  const _TDT = "TrackDataType";
216
232
  const _TDTr = "TransactionDataType";
@@ -222,6 +238,7 @@ const _TKM = "TranslateKeyMaterial";
222
238
  const _TKMI = "TranslateKeyMaterialInput";
223
239
  const _TKMO = "TranslateKeyMaterialOutput";
224
240
  const _TPD = "TranslatePinData";
241
+ const _TPDAF = "TranslationPinDataAs2805Format0";
225
242
  const _TPDI = "TranslatePinDataInput";
226
243
  const _TPDIF = "TranslationPinDataIsoFormat034";
227
244
  const _TPDIFr = "TranslationPinDataIsoFormat1";
@@ -279,6 +296,7 @@ import { TypeRegistry } from "@smithy/core/schema";
279
296
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, VerificationFailedException, } from "../models/errors";
280
297
  import { PaymentCryptographyDataServiceException } from "../models/PaymentCryptographyDataServiceException";
281
298
  var ApplicationCryptogramType = [0, n0, _ACT, 8, 0];
299
+ var As2805RandomKeyMaterial = [0, n0, _ARKM, 8, 0];
282
300
  var AuthRequestCryptogramType = [0, n0, _ARCT, 8, 0];
283
301
  var AuthResponseValueType = [0, n0, _ARVT, 8, 0];
284
302
  var CardExpiryDateType = [0, n0, _CEDT, 8, 0];
@@ -336,6 +354,7 @@ export var AmexCardSecurityCodeVersion2$ = [
336
354
  [() => ServiceCodeType, 0],
337
355
  ],
338
356
  ];
357
+ export var As2805PekDerivationAttributes$ = [3, n0, _APDA, 0, [_STAN, _TA], [0, 0]];
339
358
  export var AsymmetricEncryptionAttributes$ = [3, n0, _AEA, 0, [_PT], [0]];
340
359
  export var CardHolderVerificationValue$ = [3, n0, _CHVV, 0, [_UN, _PSN, _ATC], [0, 0, 0]];
341
360
  export var CardVerificationValue1$ = [
@@ -482,6 +501,22 @@ export var EncryptDataOutput$ = [
482
501
  [_KA, _KCV, _CT],
483
502
  [0, 0, [() => CipherTextType, 0]],
484
503
  ];
504
+ export var GenerateAs2805KekValidationInput$ = [
505
+ 3,
506
+ n0,
507
+ _GAKVI,
508
+ 0,
509
+ [_KI, _KVT, _RKSVM],
510
+ [0, [() => As2805KekValidationType$, 0], 0],
511
+ ];
512
+ export var GenerateAs2805KekValidationOutput$ = [
513
+ 3,
514
+ n0,
515
+ _GAKVO,
516
+ 0,
517
+ [_KA, _KCV, _RKS, _RKR],
518
+ [0, 0, [() => As2805RandomKeyMaterial, 0], [() => As2805RandomKeyMaterial, 0]],
519
+ ];
485
520
  export var GenerateCardValidationDataInput$ = [
486
521
  3,
487
522
  n0,
@@ -614,6 +649,15 @@ export var IncomingDiffieHellmanTr31KeyBlock$ = [
614
649
  ];
615
650
  export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
616
651
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
652
+ export var KekValidationRequest$ = [3, n0, _KVR, 0, [_DKA], [0]];
653
+ export var KekValidationResponse$ = [
654
+ 3,
655
+ n0,
656
+ _KVRe,
657
+ 0,
658
+ [_RKS],
659
+ [[() => As2805RandomKeyMaterial, 0]],
660
+ ];
617
661
  export var MacAlgorithmDukpt$ = [3, n0, _MAD, 0, [_KSN, _DKV, _DDT], [0, 0, 0]];
618
662
  export var MacAlgorithmEmv$ = [
619
663
  3,
@@ -729,7 +773,7 @@ export var TranslatePinDataInput$ = [
729
773
  n0,
730
774
  _TPDI,
731
775
  0,
732
- [_IKI, _OKI, _ITA, _OTA, _EPB, _IDA, _ODA, _IWK, _OWK],
776
+ [_IKI, _OKI, _ITA, _OTA, _EPB, _IDA, _ODA, _IWK, _OWK, _IAA],
733
777
  [
734
778
  0,
735
779
  0,
@@ -740,6 +784,7 @@ export var TranslatePinDataInput$ = [
740
784
  () => DukptDerivationAttributes$,
741
785
  [() => WrappedKey$, 0],
742
786
  [() => WrappedKey$, 0],
787
+ () => As2805PekDerivationAttributes$,
743
788
  ],
744
789
  ];
745
790
  export var TranslatePinDataOutput$ = [
@@ -750,6 +795,14 @@ export var TranslatePinDataOutput$ = [
750
795
  [_PB, _KA, _KCV],
751
796
  [[() => EncryptedPinBlockType, 0], 0, 0],
752
797
  ];
798
+ export var TranslationPinDataAs2805Format0$ = [
799
+ 3,
800
+ n0,
801
+ _TPDAF,
802
+ 0,
803
+ [_PAN],
804
+ [[() => PrimaryAccountNumberType, 0]],
805
+ ];
753
806
  export var TranslationPinDataIsoFormat034$ = [
754
807
  3,
755
808
  n0,
@@ -883,6 +936,14 @@ export var PaymentCryptographyDataServiceException$ = [
883
936
  ];
884
937
  TypeRegistry.for(_sm).registerError(PaymentCryptographyDataServiceException$, PaymentCryptographyDataServiceException);
885
938
  var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField$];
939
+ export var As2805KekValidationType$ = [
940
+ 3,
941
+ n0,
942
+ _AKVT,
943
+ 0,
944
+ [_KVR, _KVRe],
945
+ [() => KekValidationRequest$, [() => KekValidationResponse$, 0]],
946
+ ];
886
947
  export var CardGenerationAttributes$ = [
887
948
  3,
888
949
  n0,
@@ -1044,12 +1105,13 @@ export var TranslationIsoFormats$ = [
1044
1105
  n0,
1045
1106
  _TIF,
1046
1107
  0,
1047
- [_IF, _IFs, _IFso, _IFsoo],
1108
+ [_IF, _IFs, _IFso, _IFsoo, _AF],
1048
1109
  [
1049
1110
  [() => TranslationPinDataIsoFormat034$, 0],
1050
1111
  () => TranslationPinDataIsoFormat1$,
1051
1112
  [() => TranslationPinDataIsoFormat034$, 0],
1052
1113
  [() => TranslationPinDataIsoFormat034$, 0],
1114
+ [() => TranslationPinDataAs2805Format0$, 0],
1053
1115
  ],
1054
1116
  ];
1055
1117
  export var WrappedKeyMaterial$ = [
@@ -1076,6 +1138,14 @@ export var EncryptData$ = [
1076
1138
  () => EncryptDataInput$,
1077
1139
  () => EncryptDataOutput$,
1078
1140
  ];
1141
+ export var GenerateAs2805KekValidation$ = [
1142
+ 9,
1143
+ n0,
1144
+ _GAKV,
1145
+ { [_h]: ["POST", "/as2805kekvalidation/generate", 200] },
1146
+ () => GenerateAs2805KekValidationInput$,
1147
+ () => GenerateAs2805KekValidationOutput$,
1148
+ ];
1079
1149
  export var GenerateCardValidationData$ = [
1080
1150
  9,
1081
1151
  n0,
@@ -1,6 +1,7 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { DecryptDataCommandInput, DecryptDataCommandOutput } from "./commands/DecryptDataCommand";
3
3
  import { EncryptDataCommandInput, EncryptDataCommandOutput } from "./commands/EncryptDataCommand";
4
+ import { GenerateAs2805KekValidationCommandInput, GenerateAs2805KekValidationCommandOutput } from "./commands/GenerateAs2805KekValidationCommand";
4
5
  import { GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput } from "./commands/GenerateCardValidationDataCommand";
5
6
  import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
6
7
  import { GenerateMacEmvPinChangeCommandInput, GenerateMacEmvPinChangeCommandOutput } from "./commands/GenerateMacEmvPinChangeCommand";
@@ -26,6 +27,12 @@ export interface PaymentCryptographyData {
26
27
  encryptData(args: EncryptDataCommandInput, options?: __HttpHandlerOptions): Promise<EncryptDataCommandOutput>;
27
28
  encryptData(args: EncryptDataCommandInput, cb: (err: any, data?: EncryptDataCommandOutput) => void): void;
28
29
  encryptData(args: EncryptDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EncryptDataCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link GenerateAs2805KekValidationCommand}
32
+ */
33
+ generateAs2805KekValidation(args: GenerateAs2805KekValidationCommandInput, options?: __HttpHandlerOptions): Promise<GenerateAs2805KekValidationCommandOutput>;
34
+ generateAs2805KekValidation(args: GenerateAs2805KekValidationCommandInput, cb: (err: any, data?: GenerateAs2805KekValidationCommandOutput) => void): void;
35
+ generateAs2805KekValidation(args: GenerateAs2805KekValidationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateAs2805KekValidationCommandOutput) => void): void;
29
36
  /**
30
37
  * @see {@link GenerateCardValidationDataCommand}
31
38
  */
@@ -9,6 +9,7 @@ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptional
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { DecryptDataCommandInput, DecryptDataCommandOutput } from "./commands/DecryptDataCommand";
11
11
  import { EncryptDataCommandInput, EncryptDataCommandOutput } from "./commands/EncryptDataCommand";
12
+ import { GenerateAs2805KekValidationCommandInput, GenerateAs2805KekValidationCommandOutput } from "./commands/GenerateAs2805KekValidationCommand";
12
13
  import { GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput } from "./commands/GenerateCardValidationDataCommand";
13
14
  import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
14
15
  import { GenerateMacEmvPinChangeCommandInput, GenerateMacEmvPinChangeCommandOutput } from "./commands/GenerateMacEmvPinChangeCommand";
@@ -26,11 +27,11 @@ export { __Client };
26
27
  /**
27
28
  * @public
28
29
  */
29
- export type ServiceInputTypes = DecryptDataCommandInput | EncryptDataCommandInput | GenerateCardValidationDataCommandInput | GenerateMacCommandInput | GenerateMacEmvPinChangeCommandInput | GeneratePinDataCommandInput | ReEncryptDataCommandInput | TranslateKeyMaterialCommandInput | TranslatePinDataCommandInput | VerifyAuthRequestCryptogramCommandInput | VerifyCardValidationDataCommandInput | VerifyMacCommandInput | VerifyPinDataCommandInput;
30
+ export type ServiceInputTypes = DecryptDataCommandInput | EncryptDataCommandInput | GenerateAs2805KekValidationCommandInput | GenerateCardValidationDataCommandInput | GenerateMacCommandInput | GenerateMacEmvPinChangeCommandInput | GeneratePinDataCommandInput | ReEncryptDataCommandInput | TranslateKeyMaterialCommandInput | TranslatePinDataCommandInput | VerifyAuthRequestCryptogramCommandInput | VerifyCardValidationDataCommandInput | VerifyMacCommandInput | VerifyPinDataCommandInput;
30
31
  /**
31
32
  * @public
32
33
  */
33
- export type ServiceOutputTypes = DecryptDataCommandOutput | EncryptDataCommandOutput | GenerateCardValidationDataCommandOutput | GenerateMacCommandOutput | GenerateMacEmvPinChangeCommandOutput | GeneratePinDataCommandOutput | ReEncryptDataCommandOutput | TranslateKeyMaterialCommandOutput | TranslatePinDataCommandOutput | VerifyAuthRequestCryptogramCommandOutput | VerifyCardValidationDataCommandOutput | VerifyMacCommandOutput | VerifyPinDataCommandOutput;
34
+ export type ServiceOutputTypes = DecryptDataCommandOutput | EncryptDataCommandOutput | GenerateAs2805KekValidationCommandOutput | GenerateCardValidationDataCommandOutput | GenerateMacCommandOutput | GenerateMacEmvPinChangeCommandOutput | GeneratePinDataCommandOutput | ReEncryptDataCommandOutput | TranslateKeyMaterialCommandOutput | TranslatePinDataCommandOutput | VerifyAuthRequestCryptogramCommandOutput | VerifyCardValidationDataCommandOutput | VerifyMacCommandOutput | VerifyPinDataCommandOutput;
34
35
  /**
35
36
  * @public
36
37
  */