@aws-sdk/client-payment-cryptography-data 3.1050.0 → 3.1052.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 (37) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +20 -0
  3. package/dist-cjs/schemas/schemas_0.js +22 -5
  4. package/dist-es/PaymentCryptographyData.js +2 -0
  5. package/dist-es/commands/GenerateAuthRequestCryptogramCommand.js +16 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/enums.js +5 -0
  8. package/dist-es/schemas/schemas_0.js +19 -2
  9. package/dist-types/PaymentCryptographyData.d.ts +7 -0
  10. package/dist-types/PaymentCryptographyDataClient.d.ts +3 -2
  11. package/dist-types/commands/DecryptDataCommand.d.ts +1 -1
  12. package/dist-types/commands/EncryptDataCommand.d.ts +1 -1
  13. package/dist-types/commands/GenerateAs2805KekValidationCommand.d.ts +2 -1
  14. package/dist-types/commands/GenerateAuthRequestCryptogramCommand.d.ts +121 -0
  15. package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +1 -1
  16. package/dist-types/commands/GenerateMacCommand.d.ts +1 -1
  17. package/dist-types/commands/GenerateMacEmvPinChangeCommand.d.ts +1 -1
  18. package/dist-types/commands/GeneratePinDataCommand.d.ts +1 -1
  19. package/dist-types/commands/ReEncryptDataCommand.d.ts +1 -1
  20. package/dist-types/commands/TranslateKeyMaterialCommand.d.ts +1 -1
  21. package/dist-types/commands/TranslatePinDataCommand.d.ts +1 -1
  22. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +1 -1
  23. package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +1 -1
  24. package/dist-types/commands/VerifyMacCommand.d.ts +1 -1
  25. package/dist-types/commands/VerifyPinDataCommand.d.ts +1 -1
  26. package/dist-types/commands/index.d.ts +1 -0
  27. package/dist-types/models/enums.d.ts +13 -0
  28. package/dist-types/models/models_0.d.ts +246 -196
  29. package/dist-types/schemas/schemas_0.d.ts +3 -0
  30. package/dist-types/ts3.4/PaymentCryptographyData.d.ts +17 -0
  31. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +6 -0
  32. package/dist-types/ts3.4/commands/GenerateAuthRequestCryptogramCommand.d.ts +53 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/enums.d.ts +7 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +102 -89
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  37. package/package.json +8 -8
@@ -40,6 +40,8 @@ export declare var EncryptDataInput$: StaticStructureSchema;
40
40
  export declare var EncryptDataOutput$: StaticStructureSchema;
41
41
  export declare var GenerateAs2805KekValidationInput$: StaticStructureSchema;
42
42
  export declare var GenerateAs2805KekValidationOutput$: StaticStructureSchema;
43
+ export declare var GenerateAuthRequestCryptogramInput$: StaticStructureSchema;
44
+ export declare var GenerateAuthRequestCryptogramOutput$: StaticStructureSchema;
43
45
  export declare var GenerateCardValidationDataInput$: StaticStructureSchema;
44
46
  export declare var GenerateCardValidationDataOutput$: StaticStructureSchema;
45
47
  export declare var GenerateMacEmvPinChangeInput$: StaticStructureSchema;
@@ -112,6 +114,7 @@ export declare var WrappedKeyMaterial$: StaticUnionSchema;
112
114
  export declare var DecryptData$: StaticOperationSchema;
113
115
  export declare var EncryptData$: StaticOperationSchema;
114
116
  export declare var GenerateAs2805KekValidation$: StaticOperationSchema;
117
+ export declare var GenerateAuthRequestCryptogram$: StaticOperationSchema;
115
118
  export declare var GenerateCardValidationData$: StaticOperationSchema;
116
119
  export declare var GenerateMac$: StaticOperationSchema;
117
120
  export declare var GenerateMacEmvPinChange$: StaticOperationSchema;
@@ -11,6 +11,10 @@ import {
11
11
  GenerateAs2805KekValidationCommandInput,
12
12
  GenerateAs2805KekValidationCommandOutput,
13
13
  } from "./commands/GenerateAs2805KekValidationCommand";
14
+ import {
15
+ GenerateAuthRequestCryptogramCommandInput,
16
+ GenerateAuthRequestCryptogramCommandOutput,
17
+ } from "./commands/GenerateAuthRequestCryptogramCommand";
14
18
  import {
15
19
  GenerateCardValidationDataCommandInput,
16
20
  GenerateCardValidationDataCommandOutput,
@@ -96,6 +100,19 @@ export interface PaymentCryptographyData {
96
100
  options: __HttpHandlerOptions,
97
101
  cb: (err: any, data?: GenerateAs2805KekValidationCommandOutput) => void
98
102
  ): void;
103
+ generateAuthRequestCryptogram(
104
+ args: GenerateAuthRequestCryptogramCommandInput,
105
+ options?: __HttpHandlerOptions
106
+ ): Promise<GenerateAuthRequestCryptogramCommandOutput>;
107
+ generateAuthRequestCryptogram(
108
+ args: GenerateAuthRequestCryptogramCommandInput,
109
+ cb: (err: any, data?: GenerateAuthRequestCryptogramCommandOutput) => void
110
+ ): void;
111
+ generateAuthRequestCryptogram(
112
+ args: GenerateAuthRequestCryptogramCommandInput,
113
+ options: __HttpHandlerOptions,
114
+ cb: (err: any, data?: GenerateAuthRequestCryptogramCommandOutput) => void
115
+ ): void;
99
116
  generateCardValidationData(
100
117
  args: GenerateCardValidationDataCommandInput,
101
118
  options?: __HttpHandlerOptions
@@ -48,6 +48,10 @@ import {
48
48
  GenerateAs2805KekValidationCommandInput,
49
49
  GenerateAs2805KekValidationCommandOutput,
50
50
  } from "./commands/GenerateAs2805KekValidationCommand";
51
+ import {
52
+ GenerateAuthRequestCryptogramCommandInput,
53
+ GenerateAuthRequestCryptogramCommandOutput,
54
+ } from "./commands/GenerateAuthRequestCryptogramCommand";
51
55
  import {
52
56
  GenerateCardValidationDataCommandInput,
53
57
  GenerateCardValidationDataCommandOutput,
@@ -103,6 +107,7 @@ export type ServiceInputTypes =
103
107
  | DecryptDataCommandInput
104
108
  | EncryptDataCommandInput
105
109
  | GenerateAs2805KekValidationCommandInput
110
+ | GenerateAuthRequestCryptogramCommandInput
106
111
  | GenerateCardValidationDataCommandInput
107
112
  | GenerateMacCommandInput
108
113
  | GenerateMacEmvPinChangeCommandInput
@@ -118,6 +123,7 @@ export type ServiceOutputTypes =
118
123
  | DecryptDataCommandOutput
119
124
  | EncryptDataCommandOutput
120
125
  | GenerateAs2805KekValidationCommandOutput
126
+ | GenerateAuthRequestCryptogramCommandOutput
121
127
  | GenerateCardValidationDataCommandOutput
122
128
  | GenerateMacCommandOutput
123
129
  | GenerateMacEmvPinChangeCommandOutput
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GenerateAuthRequestCryptogramInput,
5
+ GenerateAuthRequestCryptogramOutput,
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 GenerateAuthRequestCryptogramCommandInput
15
+ extends GenerateAuthRequestCryptogramInput {}
16
+ export interface GenerateAuthRequestCryptogramCommandOutput
17
+ extends GenerateAuthRequestCryptogramOutput,
18
+ __MetadataBearer {}
19
+ declare const GenerateAuthRequestCryptogramCommand_base: {
20
+ new (
21
+ input: GenerateAuthRequestCryptogramCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GenerateAuthRequestCryptogramCommandInput,
24
+ GenerateAuthRequestCryptogramCommandOutput,
25
+ PaymentCryptographyDataClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: GenerateAuthRequestCryptogramCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ GenerateAuthRequestCryptogramCommandInput,
33
+ GenerateAuthRequestCryptogramCommandOutput,
34
+ PaymentCryptographyDataClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class GenerateAuthRequestCryptogramCommand extends GenerateAuthRequestCryptogramCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: GenerateAuthRequestCryptogramInput;
46
+ output: GenerateAuthRequestCryptogramOutput;
47
+ };
48
+ sdk: {
49
+ input: GenerateAuthRequestCryptogramCommandInput;
50
+ output: GenerateAuthRequestCryptogramCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./DecryptDataCommand";
2
2
  export * from "./EncryptDataCommand";
3
3
  export * from "./GenerateAs2805KekValidationCommand";
4
+ export * from "./GenerateAuthRequestCryptogramCommand";
4
5
  export * from "./GenerateCardValidationDataCommand";
5
6
  export * from "./GenerateMacCommand";
6
7
  export * from "./GenerateMacEmvPinChangeCommand";
@@ -17,6 +17,13 @@ export declare const SymmetricKeyAlgorithm: {
17
17
  };
18
18
  export type SymmetricKeyAlgorithm =
19
19
  (typeof SymmetricKeyAlgorithm)[keyof typeof SymmetricKeyAlgorithm];
20
+ export declare const RandomKeyMaxLength: {
21
+ readonly BYTES_16: "BYTES_16";
22
+ readonly BYTES_24: "BYTES_24";
23
+ readonly BYTES_8: "BYTES_8";
24
+ };
25
+ export type RandomKeyMaxLength =
26
+ (typeof RandomKeyMaxLength)[keyof typeof RandomKeyMaxLength];
20
27
  export declare const PaddingType: {
21
28
  readonly OAEP_SHA1: "OAEP_SHA1";
22
29
  readonly OAEP_SHA256: "OAEP_SHA256";
@@ -15,6 +15,7 @@ import {
15
15
  PinBlockFormatForPinData,
16
16
  PinBlockLengthPosition,
17
17
  PinBlockPaddingType,
18
+ RandomKeyMaxLength,
18
19
  RandomKeySendVariantMask,
19
20
  SessionKeyDerivationMode,
20
21
  SymmetricKeyAlgorithm,
@@ -41,6 +42,7 @@ export interface AmexCardSecurityCodeVersion2 {
41
42
  }
42
43
  export interface KekValidationRequest {
43
44
  DeriveKeyAlgorithm: SymmetricKeyAlgorithm | undefined;
45
+ RandomKeyMaxLength?: RandomKeyMaxLength | undefined;
44
46
  }
45
47
  export interface KekValidationResponse {
46
48
  RandomKeySend: string | undefined;
@@ -630,6 +632,106 @@ export interface GenerateAs2805KekValidationOutput {
630
632
  RandomKeySend: string | undefined;
631
633
  RandomKeyReceive: string | undefined;
632
634
  }
635
+ export interface SessionKeyAmex {
636
+ PrimaryAccountNumber: string | undefined;
637
+ PanSequenceNumber: string | undefined;
638
+ }
639
+ export interface SessionKeyEmv2000 {
640
+ PrimaryAccountNumber: string | undefined;
641
+ PanSequenceNumber: string | undefined;
642
+ ApplicationTransactionCounter: string | undefined;
643
+ }
644
+ export interface SessionKeyEmvCommon {
645
+ PrimaryAccountNumber: string | undefined;
646
+ PanSequenceNumber: string | undefined;
647
+ ApplicationTransactionCounter: string | undefined;
648
+ }
649
+ export interface SessionKeyMastercard {
650
+ PrimaryAccountNumber: string | undefined;
651
+ PanSequenceNumber: string | undefined;
652
+ ApplicationTransactionCounter: string | undefined;
653
+ UnpredictableNumber: string | undefined;
654
+ }
655
+ export interface SessionKeyVisa {
656
+ PrimaryAccountNumber: string | undefined;
657
+ PanSequenceNumber: string | undefined;
658
+ }
659
+ export type SessionKeyDerivation =
660
+ | SessionKeyDerivation.AmexMember
661
+ | SessionKeyDerivation.Emv2000Member
662
+ | SessionKeyDerivation.EmvCommonMember
663
+ | SessionKeyDerivation.MastercardMember
664
+ | SessionKeyDerivation.VisaMember
665
+ | SessionKeyDerivation.$UnknownMember;
666
+ export declare namespace SessionKeyDerivation {
667
+ interface EmvCommonMember {
668
+ EmvCommon: SessionKeyEmvCommon;
669
+ Mastercard?: never;
670
+ Emv2000?: never;
671
+ Amex?: never;
672
+ Visa?: never;
673
+ $unknown?: never;
674
+ }
675
+ interface MastercardMember {
676
+ EmvCommon?: never;
677
+ Mastercard: SessionKeyMastercard;
678
+ Emv2000?: never;
679
+ Amex?: never;
680
+ Visa?: never;
681
+ $unknown?: never;
682
+ }
683
+ interface Emv2000Member {
684
+ EmvCommon?: never;
685
+ Mastercard?: never;
686
+ Emv2000: SessionKeyEmv2000;
687
+ Amex?: never;
688
+ Visa?: never;
689
+ $unknown?: never;
690
+ }
691
+ interface AmexMember {
692
+ EmvCommon?: never;
693
+ Mastercard?: never;
694
+ Emv2000?: never;
695
+ Amex: SessionKeyAmex;
696
+ Visa?: never;
697
+ $unknown?: never;
698
+ }
699
+ interface VisaMember {
700
+ EmvCommon?: never;
701
+ Mastercard?: never;
702
+ Emv2000?: never;
703
+ Amex?: never;
704
+ Visa: SessionKeyVisa;
705
+ $unknown?: never;
706
+ }
707
+ interface $UnknownMember {
708
+ EmvCommon?: never;
709
+ Mastercard?: never;
710
+ Emv2000?: never;
711
+ Amex?: never;
712
+ Visa?: never;
713
+ $unknown: [string, any];
714
+ }
715
+ interface Visitor<T> {
716
+ EmvCommon: (value: SessionKeyEmvCommon) => T;
717
+ Mastercard: (value: SessionKeyMastercard) => T;
718
+ Emv2000: (value: SessionKeyEmv2000) => T;
719
+ Amex: (value: SessionKeyAmex) => T;
720
+ Visa: (value: SessionKeyVisa) => T;
721
+ _: (name: string, value: any) => T;
722
+ }
723
+ }
724
+ export interface GenerateAuthRequestCryptogramInput {
725
+ KeyIdentifier: string | undefined;
726
+ TransactionData: string | undefined;
727
+ MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
728
+ SessionKeyDerivationAttributes: SessionKeyDerivation | undefined;
729
+ }
730
+ export interface GenerateAuthRequestCryptogramOutput {
731
+ KeyArn: string | undefined;
732
+ KeyCheckValue: string | undefined;
733
+ AuthRequestCryptogram: string | undefined;
734
+ }
633
735
  export interface GenerateCardValidationDataInput {
634
736
  KeyIdentifier: string | undefined;
635
737
  PrimaryAccountNumber: string | undefined;
@@ -1130,95 +1232,6 @@ export interface TranslatePinDataOutput {
1130
1232
  KeyArn: string | undefined;
1131
1233
  KeyCheckValue: string | undefined;
1132
1234
  }
1133
- export interface SessionKeyAmex {
1134
- PrimaryAccountNumber: string | undefined;
1135
- PanSequenceNumber: string | undefined;
1136
- }
1137
- export interface SessionKeyEmv2000 {
1138
- PrimaryAccountNumber: string | undefined;
1139
- PanSequenceNumber: string | undefined;
1140
- ApplicationTransactionCounter: string | undefined;
1141
- }
1142
- export interface SessionKeyEmvCommon {
1143
- PrimaryAccountNumber: string | undefined;
1144
- PanSequenceNumber: string | undefined;
1145
- ApplicationTransactionCounter: string | undefined;
1146
- }
1147
- export interface SessionKeyMastercard {
1148
- PrimaryAccountNumber: string | undefined;
1149
- PanSequenceNumber: string | undefined;
1150
- ApplicationTransactionCounter: string | undefined;
1151
- UnpredictableNumber: string | undefined;
1152
- }
1153
- export interface SessionKeyVisa {
1154
- PrimaryAccountNumber: string | undefined;
1155
- PanSequenceNumber: string | undefined;
1156
- }
1157
- export type SessionKeyDerivation =
1158
- | SessionKeyDerivation.AmexMember
1159
- | SessionKeyDerivation.Emv2000Member
1160
- | SessionKeyDerivation.EmvCommonMember
1161
- | SessionKeyDerivation.MastercardMember
1162
- | SessionKeyDerivation.VisaMember
1163
- | SessionKeyDerivation.$UnknownMember;
1164
- export declare namespace SessionKeyDerivation {
1165
- interface EmvCommonMember {
1166
- EmvCommon: SessionKeyEmvCommon;
1167
- Mastercard?: never;
1168
- Emv2000?: never;
1169
- Amex?: never;
1170
- Visa?: never;
1171
- $unknown?: never;
1172
- }
1173
- interface MastercardMember {
1174
- EmvCommon?: never;
1175
- Mastercard: SessionKeyMastercard;
1176
- Emv2000?: never;
1177
- Amex?: never;
1178
- Visa?: never;
1179
- $unknown?: never;
1180
- }
1181
- interface Emv2000Member {
1182
- EmvCommon?: never;
1183
- Mastercard?: never;
1184
- Emv2000: SessionKeyEmv2000;
1185
- Amex?: never;
1186
- Visa?: never;
1187
- $unknown?: never;
1188
- }
1189
- interface AmexMember {
1190
- EmvCommon?: never;
1191
- Mastercard?: never;
1192
- Emv2000?: never;
1193
- Amex: SessionKeyAmex;
1194
- Visa?: never;
1195
- $unknown?: never;
1196
- }
1197
- interface VisaMember {
1198
- EmvCommon?: never;
1199
- Mastercard?: never;
1200
- Emv2000?: never;
1201
- Amex?: never;
1202
- Visa: SessionKeyVisa;
1203
- $unknown?: never;
1204
- }
1205
- interface $UnknownMember {
1206
- EmvCommon?: never;
1207
- Mastercard?: never;
1208
- Emv2000?: never;
1209
- Amex?: never;
1210
- Visa?: never;
1211
- $unknown: [string, any];
1212
- }
1213
- interface Visitor<T> {
1214
- EmvCommon: (value: SessionKeyEmvCommon) => T;
1215
- Mastercard: (value: SessionKeyMastercard) => T;
1216
- Emv2000: (value: SessionKeyEmv2000) => T;
1217
- Amex: (value: SessionKeyAmex) => T;
1218
- Visa: (value: SessionKeyVisa) => T;
1219
- _: (name: string, value: any) => T;
1220
- }
1221
- }
1222
1235
  export interface VerifyAuthRequestCryptogramInput {
1223
1236
  KeyIdentifier: string | undefined;
1224
1237
  TransactionData: string | undefined;
@@ -40,6 +40,8 @@ export declare var EncryptDataInput$: StaticStructureSchema;
40
40
  export declare var EncryptDataOutput$: StaticStructureSchema;
41
41
  export declare var GenerateAs2805KekValidationInput$: StaticStructureSchema;
42
42
  export declare var GenerateAs2805KekValidationOutput$: StaticStructureSchema;
43
+ export declare var GenerateAuthRequestCryptogramInput$: StaticStructureSchema;
44
+ export declare var GenerateAuthRequestCryptogramOutput$: StaticStructureSchema;
43
45
  export declare var GenerateCardValidationDataInput$: StaticStructureSchema;
44
46
  export declare var GenerateCardValidationDataOutput$: StaticStructureSchema;
45
47
  export declare var GenerateMacEmvPinChangeInput$: StaticStructureSchema;
@@ -112,6 +114,7 @@ export declare var WrappedKeyMaterial$: StaticUnionSchema;
112
114
  export declare var DecryptData$: StaticOperationSchema;
113
115
  export declare var EncryptData$: StaticOperationSchema;
114
116
  export declare var GenerateAs2805KekValidation$: StaticOperationSchema;
117
+ export declare var GenerateAuthRequestCryptogram$: StaticOperationSchema;
115
118
  export declare var GenerateCardValidationData$: StaticOperationSchema;
116
119
  export declare var GenerateMac$: StaticOperationSchema;
117
120
  export declare var GenerateMacEmvPinChange$: StaticOperationSchema;
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.1050.0",
4
+ "version": "3.1052.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-payment-cryptography-data",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.12",
25
- "@aws-sdk/credential-provider-node": "^3.972.43",
26
- "@aws-sdk/types": "^3.973.8",
27
- "@smithy/core": "^3.24.2",
28
- "@smithy/fetch-http-handler": "^5.4.2",
29
- "@smithy/node-http-handler": "^4.7.2",
30
- "@smithy/types": "^4.14.1",
24
+ "@aws-sdk/core": "^3.974.13",
25
+ "@aws-sdk/credential-provider-node": "^3.972.44",
26
+ "@aws-sdk/types": "^3.973.9",
27
+ "@smithy/core": "^3.24.3",
28
+ "@smithy/fetch-http-handler": "^5.4.3",
29
+ "@smithy/node-http-handler": "^4.7.3",
30
+ "@smithy/types": "^4.14.2",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {