@aws-sdk/client-payment-cryptography-data 3.670.0 → 3.676.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +179 -5
  3. package/dist-es/PaymentCryptographyData.js +2 -0
  4. package/dist-es/commands/GenerateMacEmvPinChangeCommand.js +23 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +92 -4
  7. package/dist-es/protocols/Aws_restJson1.js +41 -0
  8. package/dist-types/PaymentCryptographyData.d.ts +7 -0
  9. package/dist-types/PaymentCryptographyDataClient.d.ts +3 -2
  10. package/dist-types/commands/DecryptDataCommand.d.ts +10 -9
  11. package/dist-types/commands/EncryptDataCommand.d.ts +11 -9
  12. package/dist-types/commands/GenerateMacCommand.d.ts +9 -9
  13. package/dist-types/commands/GenerateMacEmvPinChangeCommand.d.ts +173 -0
  14. package/dist-types/commands/GeneratePinDataCommand.d.ts +1 -1
  15. package/dist-types/commands/ReEncryptDataCommand.d.ts +11 -10
  16. package/dist-types/commands/TranslatePinDataCommand.d.ts +5 -4
  17. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +1 -1
  18. package/dist-types/commands/VerifyMacCommand.d.ts +9 -9
  19. package/dist-types/commands/VerifyPinDataCommand.d.ts +2 -2
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +475 -13
  22. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  23. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/ts3.4/PaymentCryptographyData.d.ts +17 -0
  26. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +6 -0
  27. package/dist-types/ts3.4/commands/GenerateMacEmvPinChangeCommand.d.ts +51 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +185 -6
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
  32. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
  33. package/package.json +5 -5
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GenerateMacEmvPinChangeInput,
5
+ GenerateMacEmvPinChangeOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ PaymentCryptographyDataClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../PaymentCryptographyDataClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GenerateMacEmvPinChangeCommandInput
15
+ extends GenerateMacEmvPinChangeInput {}
16
+ export interface GenerateMacEmvPinChangeCommandOutput
17
+ extends GenerateMacEmvPinChangeOutput,
18
+ __MetadataBearer {}
19
+ declare const GenerateMacEmvPinChangeCommand_base: {
20
+ new (
21
+ input: GenerateMacEmvPinChangeCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ GenerateMacEmvPinChangeCommandInput,
24
+ GenerateMacEmvPinChangeCommandOutput,
25
+ PaymentCryptographyDataClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: GenerateMacEmvPinChangeCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ GenerateMacEmvPinChangeCommandInput,
33
+ GenerateMacEmvPinChangeCommandOutput,
34
+ PaymentCryptographyDataClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class GenerateMacEmvPinChangeCommand extends GenerateMacEmvPinChangeCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: GenerateMacEmvPinChangeInput;
44
+ output: GenerateMacEmvPinChangeOutput;
45
+ };
46
+ sdk: {
47
+ input: GenerateMacEmvPinChangeCommandInput;
48
+ output: GenerateMacEmvPinChangeCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -2,6 +2,7 @@ export * from "./DecryptDataCommand";
2
2
  export * from "./EncryptDataCommand";
3
3
  export * from "./GenerateCardValidationDataCommand";
4
4
  export * from "./GenerateMacCommand";
5
+ export * from "./GenerateMacEmvPinChangeCommand";
5
6
  export * from "./GeneratePinDataCommand";
6
7
  export * from "./ReEncryptDataCommand";
7
8
  export * from "./TranslatePinDataCommand";
@@ -8,6 +8,24 @@ export declare class AccessDeniedException extends __BaseException {
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
10
10
  }
11
+ export interface CurrentPinAttributes {
12
+ CurrentPinPekIdentifier: string | undefined;
13
+ CurrentEncryptedPinBlock: string | undefined;
14
+ }
15
+ export declare const MajorKeyDerivationMode: {
16
+ readonly EMV_OPTION_A: "EMV_OPTION_A";
17
+ readonly EMV_OPTION_B: "EMV_OPTION_B";
18
+ };
19
+ export type MajorKeyDerivationMode =
20
+ (typeof MajorKeyDerivationMode)[keyof typeof MajorKeyDerivationMode];
21
+ export interface AmexAttributes {
22
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
23
+ PrimaryAccountNumber: string | undefined;
24
+ PanSequenceNumber: string | undefined;
25
+ ApplicationTransactionCounter: string | undefined;
26
+ AuthorizationRequestKeyIdentifier: string | undefined;
27
+ CurrentPinAttributes?: CurrentPinAttributes;
28
+ }
11
29
  export interface AmexCardSecurityCodeVersion1 {
12
30
  CardExpiryDate: string | undefined;
13
31
  }
@@ -510,6 +528,113 @@ export declare class ValidationException extends __BaseException {
510
528
  opts: __ExceptionOptionType<ValidationException, __BaseException>
511
529
  );
512
530
  }
531
+ export interface Emv2000Attributes {
532
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
533
+ PrimaryAccountNumber: string | undefined;
534
+ PanSequenceNumber: string | undefined;
535
+ ApplicationTransactionCounter: string | undefined;
536
+ }
537
+ export declare const PinBlockLengthPosition: {
538
+ readonly FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK";
539
+ readonly NONE: "NONE";
540
+ };
541
+ export type PinBlockLengthPosition =
542
+ (typeof PinBlockLengthPosition)[keyof typeof PinBlockLengthPosition];
543
+ export declare const PinBlockPaddingType: {
544
+ readonly ISO_IEC_7816_4: "ISO_IEC_7816_4";
545
+ readonly NO_PADDING: "NO_PADDING";
546
+ };
547
+ export type PinBlockPaddingType =
548
+ (typeof PinBlockPaddingType)[keyof typeof PinBlockPaddingType];
549
+ export interface EmvCommonAttributes {
550
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
551
+ PrimaryAccountNumber: string | undefined;
552
+ PanSequenceNumber: string | undefined;
553
+ ApplicationCryptogram: string | undefined;
554
+ Mode: EmvEncryptionMode | undefined;
555
+ PinBlockPaddingType: PinBlockPaddingType | undefined;
556
+ PinBlockLengthPosition: PinBlockLengthPosition | undefined;
557
+ }
558
+ export interface MasterCardAttributes {
559
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
560
+ PrimaryAccountNumber: string | undefined;
561
+ PanSequenceNumber: string | undefined;
562
+ ApplicationCryptogram: string | undefined;
563
+ }
564
+ export interface VisaAttributes {
565
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
566
+ PrimaryAccountNumber: string | undefined;
567
+ PanSequenceNumber: string | undefined;
568
+ ApplicationTransactionCounter: string | undefined;
569
+ AuthorizationRequestKeyIdentifier: string | undefined;
570
+ CurrentPinAttributes?: CurrentPinAttributes;
571
+ }
572
+ export type DerivationMethodAttributes =
573
+ | DerivationMethodAttributes.AmexMember
574
+ | DerivationMethodAttributes.Emv2000Member
575
+ | DerivationMethodAttributes.EmvCommonMember
576
+ | DerivationMethodAttributes.MastercardMember
577
+ | DerivationMethodAttributes.VisaMember
578
+ | DerivationMethodAttributes.$UnknownMember;
579
+ export declare namespace DerivationMethodAttributes {
580
+ interface EmvCommonMember {
581
+ EmvCommon: EmvCommonAttributes;
582
+ Amex?: never;
583
+ Visa?: never;
584
+ Emv2000?: never;
585
+ Mastercard?: never;
586
+ $unknown?: never;
587
+ }
588
+ interface AmexMember {
589
+ EmvCommon?: never;
590
+ Amex: AmexAttributes;
591
+ Visa?: never;
592
+ Emv2000?: never;
593
+ Mastercard?: never;
594
+ $unknown?: never;
595
+ }
596
+ interface VisaMember {
597
+ EmvCommon?: never;
598
+ Amex?: never;
599
+ Visa: VisaAttributes;
600
+ Emv2000?: never;
601
+ Mastercard?: never;
602
+ $unknown?: never;
603
+ }
604
+ interface Emv2000Member {
605
+ EmvCommon?: never;
606
+ Amex?: never;
607
+ Visa?: never;
608
+ Emv2000: Emv2000Attributes;
609
+ Mastercard?: never;
610
+ $unknown?: never;
611
+ }
612
+ interface MastercardMember {
613
+ EmvCommon?: never;
614
+ Amex?: never;
615
+ Visa?: never;
616
+ Emv2000?: never;
617
+ Mastercard: MasterCardAttributes;
618
+ $unknown?: never;
619
+ }
620
+ interface $UnknownMember {
621
+ EmvCommon?: never;
622
+ Amex?: never;
623
+ Visa?: never;
624
+ Emv2000?: never;
625
+ Mastercard?: never;
626
+ $unknown: [string, any];
627
+ }
628
+ interface Visitor<T> {
629
+ EmvCommon: (value: EmvCommonAttributes) => T;
630
+ Amex: (value: AmexAttributes) => T;
631
+ Visa: (value: VisaAttributes) => T;
632
+ Emv2000: (value: Emv2000Attributes) => T;
633
+ Mastercard: (value: MasterCardAttributes) => T;
634
+ _: (name: string, value: any) => T;
635
+ }
636
+ const visit: <T>(value: DerivationMethodAttributes, visitor: Visitor<T>) => T;
637
+ }
513
638
  export interface DukptAttributes {
514
639
  KeySerialNumber: string | undefined;
515
640
  DukptDerivationType: DukptDerivationType | undefined;
@@ -556,12 +681,6 @@ export interface MacAlgorithmDukpt {
556
681
  DukptKeyVariant: DukptKeyVariant | undefined;
557
682
  DukptDerivationType?: DukptDerivationType;
558
683
  }
559
- export declare const MajorKeyDerivationMode: {
560
- readonly EMV_OPTION_A: "EMV_OPTION_A";
561
- readonly EMV_OPTION_B: "EMV_OPTION_B";
562
- };
563
- export type MajorKeyDerivationMode =
564
- (typeof MajorKeyDerivationMode)[keyof typeof MajorKeyDerivationMode];
565
684
  export declare const SessionKeyDerivationMode: {
566
685
  readonly AMEX: "AMEX";
567
686
  readonly EMV2000: "EMV2000";
@@ -682,6 +801,39 @@ export interface GenerateMacOutput {
682
801
  KeyCheckValue: string | undefined;
683
802
  Mac: string | undefined;
684
803
  }
804
+ export declare const PinBlockFormatForEmvPinChange: {
805
+ readonly ISO_FORMAT_0: "ISO_FORMAT_0";
806
+ readonly ISO_FORMAT_1: "ISO_FORMAT_1";
807
+ readonly ISO_FORMAT_3: "ISO_FORMAT_3";
808
+ };
809
+ export type PinBlockFormatForEmvPinChange =
810
+ (typeof PinBlockFormatForEmvPinChange)[keyof typeof PinBlockFormatForEmvPinChange];
811
+ export interface GenerateMacEmvPinChangeInput {
812
+ NewPinPekIdentifier: string | undefined;
813
+ NewEncryptedPinBlock: string | undefined;
814
+ PinBlockFormat: PinBlockFormatForEmvPinChange | undefined;
815
+ SecureMessagingIntegrityKeyIdentifier: string | undefined;
816
+ SecureMessagingConfidentialityKeyIdentifier: string | undefined;
817
+ MessageData: string | undefined;
818
+ DerivationMethodAttributes: DerivationMethodAttributes | undefined;
819
+ }
820
+ export interface VisaAmexDerivationOutputs {
821
+ AuthorizationRequestKeyArn: string | undefined;
822
+ AuthorizationRequestKeyCheckValue: string | undefined;
823
+ CurrentPinPekArn?: string;
824
+ CurrentPinPekKeyCheckValue?: string;
825
+ }
826
+ export interface GenerateMacEmvPinChangeOutput {
827
+ NewPinPekArn: string | undefined;
828
+ SecureMessagingIntegrityKeyArn: string | undefined;
829
+ SecureMessagingConfidentialityKeyArn: string | undefined;
830
+ Mac: string | undefined;
831
+ EncryptedPinBlock: string | undefined;
832
+ NewPinPekKeyCheckValue: string | undefined;
833
+ SecureMessagingIntegrityKeyCheckValue: string | undefined;
834
+ SecureMessagingConfidentialityKeyCheckValue: string | undefined;
835
+ VisaAmexDerivationOutputs?: VisaAmexDerivationOutputs;
836
+ }
685
837
  export interface Ibm3624NaturalPin {
686
838
  DecimalizationTable: string | undefined;
687
839
  PinValidationDataPadCharacter: string | undefined;
@@ -1149,6 +1301,12 @@ export interface VerifyPinDataOutput {
1149
1301
  EncryptionKeyArn: string | undefined;
1150
1302
  EncryptionKeyCheckValue: string | undefined;
1151
1303
  }
1304
+ export declare const CurrentPinAttributesFilterSensitiveLog: (
1305
+ obj: CurrentPinAttributes
1306
+ ) => any;
1307
+ export declare const AmexAttributesFilterSensitiveLog: (
1308
+ obj: AmexAttributes
1309
+ ) => any;
1152
1310
  export declare const AmexCardSecurityCodeVersion1FilterSensitiveLog: (
1153
1311
  obj: AmexCardSecurityCodeVersion1
1154
1312
  ) => any;
@@ -1204,6 +1362,21 @@ export declare const DecryptDataInputFilterSensitiveLog: (
1204
1362
  export declare const DecryptDataOutputFilterSensitiveLog: (
1205
1363
  obj: DecryptDataOutput
1206
1364
  ) => any;
1365
+ export declare const Emv2000AttributesFilterSensitiveLog: (
1366
+ obj: Emv2000Attributes
1367
+ ) => any;
1368
+ export declare const EmvCommonAttributesFilterSensitiveLog: (
1369
+ obj: EmvCommonAttributes
1370
+ ) => any;
1371
+ export declare const MasterCardAttributesFilterSensitiveLog: (
1372
+ obj: MasterCardAttributes
1373
+ ) => any;
1374
+ export declare const VisaAttributesFilterSensitiveLog: (
1375
+ obj: VisaAttributes
1376
+ ) => any;
1377
+ export declare const DerivationMethodAttributesFilterSensitiveLog: (
1378
+ obj: DerivationMethodAttributes
1379
+ ) => any;
1207
1380
  export declare const EncryptDataInputFilterSensitiveLog: (
1208
1381
  obj: EncryptDataInput
1209
1382
  ) => any;
@@ -1231,6 +1404,12 @@ export declare const GenerateMacInputFilterSensitiveLog: (
1231
1404
  export declare const GenerateMacOutputFilterSensitiveLog: (
1232
1405
  obj: GenerateMacOutput
1233
1406
  ) => any;
1407
+ export declare const GenerateMacEmvPinChangeInputFilterSensitiveLog: (
1408
+ obj: GenerateMacEmvPinChangeInput
1409
+ ) => any;
1410
+ export declare const GenerateMacEmvPinChangeOutputFilterSensitiveLog: (
1411
+ obj: GenerateMacEmvPinChangeOutput
1412
+ ) => any;
1234
1413
  export declare const Ibm3624NaturalPinFilterSensitiveLog: (
1235
1414
  obj: Ibm3624NaturalPin
1236
1415
  ) => any;
@@ -19,6 +19,10 @@ import {
19
19
  GenerateMacCommandInput,
20
20
  GenerateMacCommandOutput,
21
21
  } from "../commands/GenerateMacCommand";
22
+ import {
23
+ GenerateMacEmvPinChangeCommandInput,
24
+ GenerateMacEmvPinChangeCommandOutput,
25
+ } from "../commands/GenerateMacEmvPinChangeCommand";
22
26
  import {
23
27
  GeneratePinDataCommandInput,
24
28
  GeneratePinDataCommandOutput,
@@ -63,6 +67,10 @@ export declare const se_GenerateMacCommand: (
63
67
  input: GenerateMacCommandInput,
64
68
  context: __SerdeContext
65
69
  ) => Promise<__HttpRequest>;
70
+ export declare const se_GenerateMacEmvPinChangeCommand: (
71
+ input: GenerateMacEmvPinChangeCommandInput,
72
+ context: __SerdeContext
73
+ ) => Promise<__HttpRequest>;
66
74
  export declare const se_GeneratePinDataCommand: (
67
75
  input: GeneratePinDataCommandInput,
68
76
  context: __SerdeContext
@@ -107,6 +115,10 @@ export declare const de_GenerateMacCommand: (
107
115
  output: __HttpResponse,
108
116
  context: __SerdeContext
109
117
  ) => Promise<GenerateMacCommandOutput>;
118
+ export declare const de_GenerateMacEmvPinChangeCommand: (
119
+ output: __HttpResponse,
120
+ context: __SerdeContext
121
+ ) => Promise<GenerateMacEmvPinChangeCommandOutput>;
110
122
  export declare const de_GeneratePinDataCommand: (
111
123
  output: __HttpResponse,
112
124
  context: __SerdeContext
@@ -12,7 +12,9 @@ export declare const getRuntimeConfig: (
12
12
  input: any
13
13
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
14
14
  defaultUserAgentProvider: (
15
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
15
+ config?:
16
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
17
+ | undefined
16
18
  ) => Promise<import("@smithy/types").UserAgent>;
17
19
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
20
  region: string | import("@smithy/types").Provider<any>;
@@ -25,7 +25,9 @@ export declare const getRuntimeConfig: (
25
25
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
26
  region: string | import("@smithy/types").Provider<any>;
27
27
  defaultUserAgentProvider: (
28
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
28
+ config?:
29
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
30
+ | undefined
29
31
  ) => Promise<import("@smithy/types").UserAgent>;
30
32
  credentialDefaultProvider: (
31
33
  input: any
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.670.0",
4
+ "version": "3.676.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,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.670.0",
24
- "@aws-sdk/client-sts": "3.670.0",
23
+ "@aws-sdk/client-sso-oidc": "3.675.0",
24
+ "@aws-sdk/client-sts": "3.675.0",
25
25
  "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.670.0",
26
+ "@aws-sdk/credential-provider-node": "3.675.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
- "@aws-sdk/util-user-agent-browser": "3.670.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.675.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.669.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",