@aws-sdk/client-payment-cryptography-data 3.428.0 → 3.430.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.
@@ -63,7 +63,7 @@ export interface AsymmetricEncryptionAttributes {
63
63
  * @public
64
64
  * <p>The padding to be included with the data.</p>
65
65
  */
66
- PaddingType?: PaddingType | string;
66
+ PaddingType?: PaddingType;
67
67
  }
68
68
  /**
69
69
  * @public
@@ -598,18 +598,18 @@ export interface DukptEncryptionAttributes {
598
598
  * <p>The block cipher mode of operation. Block ciphers are designed to encrypt a block of data of fixed size, for example, 128 bits. The size of the input block is usually same as the size of the encrypted output block, while the key length can be different. A mode of operation describes how to repeatedly apply a cipher's single-block operation to securely transform amounts of data larger than a block.</p>
599
599
  * <p>The default is CBC.</p>
600
600
  */
601
- Mode?: DukptEncryptionMode | string;
601
+ Mode?: DukptEncryptionMode;
602
602
  /**
603
603
  * @public
604
604
  * <p>The key type encrypted using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use <code>AES_128</code> as a derivation type for a BDK of <code>AES_128</code> or <code>TDES_2KEY</code>
605
605
  * </p>
606
606
  */
607
- DukptKeyDerivationType?: DukptDerivationType | string;
607
+ DukptKeyDerivationType?: DukptDerivationType;
608
608
  /**
609
609
  * @public
610
610
  * <p>The type of use of DUKPT, which can be incoming data decryption, outgoing data encryption, or both.</p>
611
611
  */
612
- DukptKeyVariant?: DukptKeyVariant | string;
612
+ DukptKeyVariant?: DukptKeyVariant;
613
613
  /**
614
614
  * @public
615
615
  * <p>An input to cryptographic primitive used to provide the intial state. Typically the <code>InitializationVector</code> must have a random or psuedo-random value, but sometimes it only needs to be unpredictable or unique. If you don't provide a value, Amazon Web Services Payment Cryptography generates a random value.</p>
@@ -643,7 +643,7 @@ export interface SymmetricEncryptionAttributes {
643
643
  * @public
644
644
  * <p>The block cipher mode of operation. Block ciphers are designed to encrypt a block of data of fixed size (for example, 128 bits). The size of the input block is usually same as the size of the encrypted output block, while the key length can be different. A mode of operation describes how to repeatedly apply a cipher's single-block operation to securely transform amounts of data larger than a block.</p>
645
645
  */
646
- Mode: EncryptionMode | string | undefined;
646
+ Mode: EncryptionMode | undefined;
647
647
  /**
648
648
  * @public
649
649
  * <p>An input to cryptographic primitive used to provide the intial state. The <code>InitializationVector</code> is typically required have a random or psuedo-random value, but sometimes it only needs to be unpredictable or unique. If a value is not provided, Amazon Web Services Payment Cryptography generates a random value.</p>
@@ -653,7 +653,7 @@ export interface SymmetricEncryptionAttributes {
653
653
  * @public
654
654
  * <p>The padding to be included with the data.</p>
655
655
  */
656
- PaddingType?: PaddingType | string;
656
+ PaddingType?: PaddingType;
657
657
  }
658
658
  /**
659
659
  * @public
@@ -841,7 +841,7 @@ export interface DukptAttributes {
841
841
  * @public
842
842
  * <p>The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use <code>AES_128</code> as a derivation type for a BDK of <code>AES_128</code> or <code>TDES_2KEY</code>.</p>
843
843
  */
844
- DukptDerivationType: DukptDerivationType | string | undefined;
844
+ DukptDerivationType: DukptDerivationType | undefined;
845
845
  }
846
846
  /**
847
847
  * @public
@@ -858,12 +858,12 @@ export interface DukptDerivationAttributes {
858
858
  * <p>The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use <code>AES_128</code> as a derivation type for a BDK of <code>AES_128</code> or <code>TDES_2KEY</code>
859
859
  * </p>
860
860
  */
861
- DukptKeyDerivationType?: DukptDerivationType | string;
861
+ DukptKeyDerivationType?: DukptDerivationType;
862
862
  /**
863
863
  * @public
864
864
  * <p>The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.</p>
865
865
  */
866
- DukptKeyVariant?: DukptKeyVariant | string;
866
+ DukptKeyVariant?: DukptKeyVariant;
867
867
  }
868
868
  /**
869
869
  * @public
@@ -981,12 +981,12 @@ export interface MacAlgorithmDukpt {
981
981
  * @public
982
982
  * <p>The type of use of DUKPT, which can be MAC generation, MAC verification, or both.</p>
983
983
  */
984
- DukptKeyVariant: DukptKeyVariant | string | undefined;
984
+ DukptKeyVariant: DukptKeyVariant | undefined;
985
985
  /**
986
986
  * @public
987
987
  * <p>The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use <code>AES_128</code> as a derivation type for a BDK of <code>AES_128</code> or <code>TDES_2KEY</code>.</p>
988
988
  */
989
- DukptDerivationType?: DukptDerivationType | string;
989
+ DukptDerivationType?: DukptDerivationType;
990
990
  }
991
991
  /**
992
992
  * @public
@@ -1066,7 +1066,7 @@ export interface MacAlgorithmEmv {
1066
1066
  * @public
1067
1067
  * <p>The method to use when deriving the master key for EMV MAC generation or verification.</p>
1068
1068
  */
1069
- MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
1069
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
1070
1070
  /**
1071
1071
  * @public
1072
1072
  * <p>The Primary Account Number (PAN), a unique identifier for a payment credit or debit card and associates the card to a specific account holder.</p>
@@ -1081,7 +1081,7 @@ export interface MacAlgorithmEmv {
1081
1081
  * @public
1082
1082
  * <p>The method of deriving a session key for EMV MAC generation or verification.</p>
1083
1083
  */
1084
- SessionKeyDerivationMode: SessionKeyDerivationMode | string | undefined;
1084
+ SessionKeyDerivationMode: SessionKeyDerivationMode | undefined;
1085
1085
  /**
1086
1086
  * @public
1087
1087
  * <p>Parameters that are required to generate session key for EMV generation and verification.</p>
@@ -1102,7 +1102,7 @@ export declare namespace MacAttributes {
1102
1102
  * <p>The encryption algorithm for MAC generation or verification.</p>
1103
1103
  */
1104
1104
  interface AlgorithmMember {
1105
- Algorithm: MacAlgorithm | string;
1105
+ Algorithm: MacAlgorithm;
1106
1106
  EmvMac?: never;
1107
1107
  DukptIso9797Algorithm1?: never;
1108
1108
  DukptIso9797Algorithm3?: never;
@@ -1169,7 +1169,7 @@ export declare namespace MacAttributes {
1169
1169
  $unknown: [string, any];
1170
1170
  }
1171
1171
  interface Visitor<T> {
1172
- Algorithm: (value: MacAlgorithm | string) => T;
1172
+ Algorithm: (value: MacAlgorithm) => T;
1173
1173
  EmvMac: (value: MacAlgorithmEmv) => T;
1174
1174
  DukptIso9797Algorithm1: (value: MacAlgorithmDukpt) => T;
1175
1175
  DukptIso9797Algorithm3: (value: MacAlgorithmDukpt) => T;
@@ -1501,7 +1501,7 @@ export interface GeneratePinDataInput {
1501
1501
  * <p>The <code>ISO_Format_0</code> PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.</p>
1502
1502
  * <p>The <code>ISO_Format_3</code> PIN block format is the same as <code>ISO_Format_0</code> except that the fill digits are random values from 10 to 15.</p>
1503
1503
  */
1504
- PinBlockFormat: PinBlockFormatForPinData | string | undefined;
1504
+ PinBlockFormat: PinBlockFormatForPinData | undefined;
1505
1505
  }
1506
1506
  /**
1507
1507
  * @public
@@ -1872,7 +1872,7 @@ export declare class VerificationFailedException extends __BaseException {
1872
1872
  * @public
1873
1873
  * <p>The reason for the exception.</p>
1874
1874
  */
1875
- Reason: VerificationFailedReason | string | undefined;
1875
+ Reason: VerificationFailedReason | undefined;
1876
1876
  Message: string | undefined;
1877
1877
  /**
1878
1878
  * @internal
@@ -2092,7 +2092,7 @@ export interface VerifyAuthRequestCryptogramInput {
2092
2092
  * @public
2093
2093
  * <p>The method to use when deriving the major encryption key for ARQC verification within Amazon Web Services Payment Cryptography. The same key derivation mode was used for ARQC generation outside of Amazon Web Services Payment Cryptography.</p>
2094
2094
  */
2095
- MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
2095
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
2096
2096
  /**
2097
2097
  * @public
2098
2098
  * <p>The attributes and values to use for deriving a session key for ARQC verification within Amazon Web Services Payment Cryptography. The same attributes were used for ARQC generation outside of Amazon Web Services Payment Cryptography.</p>
@@ -2302,7 +2302,7 @@ export interface VerifyPinDataInput {
2302
2302
  * <p>The <code>ISO_Format_0</code> PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.</p>
2303
2303
  * <p>The <code>ISO_Format_3</code> PIN block format is the same as <code>ISO_Format_0</code> except that the fill digits are random values from 10 to 15.</p>
2304
2304
  */
2305
- PinBlockFormat: PinBlockFormatForPinData | string | undefined;
2305
+ PinBlockFormat: PinBlockFormatForPinData | undefined;
2306
2306
  /**
2307
2307
  * @public
2308
2308
  * <p>The length of PIN being verified.</p>
@@ -23,7 +23,7 @@ export declare const PaddingType: {
23
23
  };
24
24
  export type PaddingType = (typeof PaddingType)[keyof typeof PaddingType];
25
25
  export interface AsymmetricEncryptionAttributes {
26
- PaddingType?: PaddingType | string;
26
+ PaddingType?: PaddingType;
27
27
  }
28
28
  export interface CardHolderVerificationValue {
29
29
  UnpredictableNumber: string | undefined;
@@ -339,9 +339,9 @@ export type DukptEncryptionMode =
339
339
  (typeof DukptEncryptionMode)[keyof typeof DukptEncryptionMode];
340
340
  export interface DukptEncryptionAttributes {
341
341
  KeySerialNumber: string | undefined;
342
- Mode?: DukptEncryptionMode | string;
343
- DukptKeyDerivationType?: DukptDerivationType | string;
344
- DukptKeyVariant?: DukptKeyVariant | string;
342
+ Mode?: DukptEncryptionMode;
343
+ DukptKeyDerivationType?: DukptDerivationType;
344
+ DukptKeyVariant?: DukptKeyVariant;
345
345
  InitializationVector?: string;
346
346
  }
347
347
  export declare const EncryptionMode: {
@@ -357,9 +357,9 @@ export declare const EncryptionMode: {
357
357
  export type EncryptionMode =
358
358
  (typeof EncryptionMode)[keyof typeof EncryptionMode];
359
359
  export interface SymmetricEncryptionAttributes {
360
- Mode: EncryptionMode | string | undefined;
360
+ Mode: EncryptionMode | undefined;
361
361
  InitializationVector?: string;
362
- PaddingType?: PaddingType | string;
362
+ PaddingType?: PaddingType;
363
363
  }
364
364
  export type EncryptionDecryptionAttributes =
365
365
  | EncryptionDecryptionAttributes.AsymmetricMember
@@ -450,12 +450,12 @@ export declare class ValidationException extends __BaseException {
450
450
  }
451
451
  export interface DukptAttributes {
452
452
  KeySerialNumber: string | undefined;
453
- DukptDerivationType: DukptDerivationType | string | undefined;
453
+ DukptDerivationType: DukptDerivationType | undefined;
454
454
  }
455
455
  export interface DukptDerivationAttributes {
456
456
  KeySerialNumber: string | undefined;
457
- DukptKeyDerivationType?: DukptDerivationType | string;
458
- DukptKeyVariant?: DukptKeyVariant | string;
457
+ DukptKeyDerivationType?: DukptDerivationType;
458
+ DukptKeyVariant?: DukptKeyVariant;
459
459
  }
460
460
  export interface EncryptDataInput {
461
461
  KeyIdentifier: string | undefined;
@@ -490,8 +490,8 @@ export declare const MacAlgorithm: {
490
490
  export type MacAlgorithm = (typeof MacAlgorithm)[keyof typeof MacAlgorithm];
491
491
  export interface MacAlgorithmDukpt {
492
492
  KeySerialNumber: string | undefined;
493
- DukptKeyVariant: DukptKeyVariant | string | undefined;
494
- DukptDerivationType?: DukptDerivationType | string;
493
+ DukptKeyVariant: DukptKeyVariant | undefined;
494
+ DukptDerivationType?: DukptDerivationType;
495
495
  }
496
496
  export declare const MajorKeyDerivationMode: {
497
497
  readonly EMV_OPTION_A: "EMV_OPTION_A";
@@ -536,10 +536,10 @@ export declare namespace SessionKeyDerivationValue {
536
536
  const visit: <T>(value: SessionKeyDerivationValue, visitor: Visitor<T>) => T;
537
537
  }
538
538
  export interface MacAlgorithmEmv {
539
- MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
539
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
540
540
  PrimaryAccountNumber: string | undefined;
541
541
  PanSequenceNumber: string | undefined;
542
- SessionKeyDerivationMode: SessionKeyDerivationMode | string | undefined;
542
+ SessionKeyDerivationMode: SessionKeyDerivationMode | undefined;
543
543
  SessionKeyDerivationValue: SessionKeyDerivationValue | undefined;
544
544
  }
545
545
  export type MacAttributes =
@@ -551,7 +551,7 @@ export type MacAttributes =
551
551
  | MacAttributes.$UnknownMember;
552
552
  export declare namespace MacAttributes {
553
553
  interface AlgorithmMember {
554
- Algorithm: MacAlgorithm | string;
554
+ Algorithm: MacAlgorithm;
555
555
  EmvMac?: never;
556
556
  DukptIso9797Algorithm1?: never;
557
557
  DukptIso9797Algorithm3?: never;
@@ -599,7 +599,7 @@ export declare namespace MacAttributes {
599
599
  $unknown: [string, any];
600
600
  }
601
601
  interface Visitor<T> {
602
- Algorithm: (value: MacAlgorithm | string) => T;
602
+ Algorithm: (value: MacAlgorithm) => T;
603
603
  EmvMac: (value: MacAlgorithmEmv) => T;
604
604
  DukptIso9797Algorithm1: (value: MacAlgorithmDukpt) => T;
605
605
  DukptIso9797Algorithm3: (value: MacAlgorithmDukpt) => T;
@@ -743,7 +743,7 @@ export interface GeneratePinDataInput {
743
743
  GenerationAttributes: PinGenerationAttributes | undefined;
744
744
  PinDataLength?: number;
745
745
  PrimaryAccountNumber: string | undefined;
746
- PinBlockFormat: PinBlockFormatForPinData | string | undefined;
746
+ PinBlockFormat: PinBlockFormatForPinData | undefined;
747
747
  }
748
748
  export type PinData =
749
749
  | PinData.PinOffsetMember
@@ -905,7 +905,7 @@ export type VerificationFailedReason =
905
905
  export declare class VerificationFailedException extends __BaseException {
906
906
  readonly name: "VerificationFailedException";
907
907
  readonly $fault: "client";
908
- Reason: VerificationFailedReason | string | undefined;
908
+ Reason: VerificationFailedReason | undefined;
909
909
  Message: string | undefined;
910
910
  constructor(
911
911
  opts: __ExceptionOptionType<VerificationFailedException, __BaseException>
@@ -1005,7 +1005,7 @@ export interface VerifyAuthRequestCryptogramInput {
1005
1005
  KeyIdentifier: string | undefined;
1006
1006
  TransactionData: string | undefined;
1007
1007
  AuthRequestCryptogram: string | undefined;
1008
- MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
1008
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
1009
1009
  SessionKeyDerivationAttributes: SessionKeyDerivation | undefined;
1010
1010
  AuthResponseAttributes?: CryptogramAuthResponse;
1011
1011
  }
@@ -1072,7 +1072,7 @@ export interface VerifyPinDataInput {
1072
1072
  VerificationAttributes: PinVerificationAttributes | undefined;
1073
1073
  EncryptedPinBlock: string | undefined;
1074
1074
  PrimaryAccountNumber: string | undefined;
1075
- PinBlockFormat: PinBlockFormatForPinData | string | undefined;
1075
+ PinBlockFormat: PinBlockFormatForPinData | undefined;
1076
1076
  PinDataLength?: number;
1077
1077
  DukptAttributes?: DukptAttributes;
1078
1078
  }
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.428.0",
4
+ "version": "3.430.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,28 +21,28 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.430.0",
25
+ "@aws-sdk/credential-provider-node": "3.430.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.428.0",
31
- "@aws-sdk/region-config-resolver": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.430.0",
32
32
  "@aws-sdk/types": "3.428.0",
33
33
  "@aws-sdk/util-endpoints": "3.428.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.428.0",
35
- "@aws-sdk/util-user-agent-node": "3.428.0",
36
- "@smithy/config-resolver": "^2.0.14",
35
+ "@aws-sdk/util-user-agent-node": "3.430.0",
36
+ "@smithy/config-resolver": "^2.0.15",
37
37
  "@smithy/fetch-http-handler": "^2.2.3",
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
42
- "@smithy/middleware-retry": "^2.0.16",
41
+ "@smithy/middleware-endpoint": "^2.1.2",
42
+ "@smithy/middleware-retry": "^2.0.17",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",
45
- "@smithy/node-config-provider": "^2.1.1",
45
+ "@smithy/node-config-provider": "^2.1.2",
46
46
  "@smithy/node-http-handler": "^2.1.7",
47
47
  "@smithy/protocol-http": "^3.0.7",
48
48
  "@smithy/smithy-client": "^2.1.11",
@@ -52,7 +52,7 @@
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
54
  "@smithy/util-defaults-mode-browser": "^2.0.15",
55
- "@smithy/util-defaults-mode-node": "^2.0.19",
55
+ "@smithy/util-defaults-mode-node": "^2.0.20",
56
56
  "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"