@aws-sdk/client-payment-cryptography-data 3.349.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 (107) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +294 -0
  3. package/dist-cjs/PaymentCryptographyData.js +33 -0
  4. package/dist-cjs/PaymentCryptographyDataClient.js +41 -0
  5. package/dist-cjs/commands/DecryptDataCommand.js +47 -0
  6. package/dist-cjs/commands/EncryptDataCommand.js +47 -0
  7. package/dist-cjs/commands/GenerateCardValidationDataCommand.js +47 -0
  8. package/dist-cjs/commands/GenerateMacCommand.js +47 -0
  9. package/dist-cjs/commands/GeneratePinDataCommand.js +47 -0
  10. package/dist-cjs/commands/ReEncryptDataCommand.js +47 -0
  11. package/dist-cjs/commands/TranslatePinDataCommand.js +47 -0
  12. package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +47 -0
  13. package/dist-cjs/commands/VerifyCardValidationDataCommand.js +47 -0
  14. package/dist-cjs/commands/VerifyMacCommand.js +47 -0
  15. package/dist-cjs/commands/VerifyPinDataCommand.js +47 -0
  16. package/dist-cjs/commands/index.js +14 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/index.js +10 -0
  21. package/dist-cjs/models/PaymentCryptographyDataServiceException.js +12 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +526 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +963 -0
  25. package/dist-cjs/runtimeConfig.browser.js +39 -0
  26. package/dist-cjs/runtimeConfig.js +48 -0
  27. package/dist-cjs/runtimeConfig.native.js +15 -0
  28. package/dist-cjs/runtimeConfig.shared.js +21 -0
  29. package/dist-es/PaymentCryptographyData.js +29 -0
  30. package/dist-es/PaymentCryptographyDataClient.js +37 -0
  31. package/dist-es/commands/DecryptDataCommand.js +43 -0
  32. package/dist-es/commands/EncryptDataCommand.js +43 -0
  33. package/dist-es/commands/GenerateCardValidationDataCommand.js +43 -0
  34. package/dist-es/commands/GenerateMacCommand.js +43 -0
  35. package/dist-es/commands/GeneratePinDataCommand.js +43 -0
  36. package/dist-es/commands/ReEncryptDataCommand.js +43 -0
  37. package/dist-es/commands/TranslatePinDataCommand.js +43 -0
  38. package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +43 -0
  39. package/dist-es/commands/VerifyCardValidationDataCommand.js +43 -0
  40. package/dist-es/commands/VerifyMacCommand.js +43 -0
  41. package/dist-es/commands/VerifyPinDataCommand.js +43 -0
  42. package/dist-es/commands/index.js +11 -0
  43. package/dist-es/endpoint/EndpointParameters.js +8 -0
  44. package/dist-es/endpoint/endpointResolver.js +8 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/index.js +5 -0
  47. package/dist-es/models/PaymentCryptographyDataServiceException.js +8 -0
  48. package/dist-es/models/index.js +1 -0
  49. package/dist-es/models/models_0.js +488 -0
  50. package/dist-es/protocols/Aws_restJson1.js +938 -0
  51. package/dist-es/runtimeConfig.browser.js +34 -0
  52. package/dist-es/runtimeConfig.js +43 -0
  53. package/dist-es/runtimeConfig.native.js +11 -0
  54. package/dist-es/runtimeConfig.shared.js +17 -0
  55. package/dist-types/PaymentCryptographyData.d.ts +88 -0
  56. package/dist-types/PaymentCryptographyDataClient.d.ts +174 -0
  57. package/dist-types/commands/DecryptDataCommand.d.ts +133 -0
  58. package/dist-types/commands/EncryptDataCommand.d.ts +138 -0
  59. package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +144 -0
  60. package/dist-types/commands/GenerateMacCommand.d.ts +134 -0
  61. package/dist-types/commands/GeneratePinDataCommand.d.ts +155 -0
  62. package/dist-types/commands/ReEncryptDataCommand.d.ts +150 -0
  63. package/dist-types/commands/TranslatePinDataCommand.d.ts +147 -0
  64. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +150 -0
  65. package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +156 -0
  66. package/dist-types/commands/VerifyMacCommand.d.ts +137 -0
  67. package/dist-types/commands/VerifyPinDataCommand.d.ts +134 -0
  68. package/dist-types/commands/index.d.ts +11 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  70. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  71. package/dist-types/endpoint/ruleset.d.ts +2 -0
  72. package/dist-types/index.d.ts +11 -0
  73. package/dist-types/models/PaymentCryptographyDataServiceException.d.ts +13 -0
  74. package/dist-types/models/index.d.ts +1 -0
  75. package/dist-types/models/models_0.d.ts +2191 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
  77. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  78. package/dist-types/runtimeConfig.d.ts +42 -0
  79. package/dist-types/runtimeConfig.native.d.ts +41 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  81. package/dist-types/ts3.4/PaymentCryptographyData.d.ts +194 -0
  82. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +181 -0
  83. package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +35 -0
  84. package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +35 -0
  85. package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +35 -0
  87. package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +38 -0
  88. package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +35 -0
  89. package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +35 -0
  93. package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +35 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  95. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  96. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  97. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  98. package/dist-types/ts3.4/index.d.ts +5 -0
  99. package/dist-types/ts3.4/models/PaymentCryptographyDataServiceException.d.ts +8 -0
  100. package/dist-types/ts3.4/models/index.d.ts +1 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +1168 -0
  102. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  107. package/package.json +99 -0
@@ -0,0 +1,1168 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export interface AmexCardSecurityCodeVersion1 {
12
+ CardExpiryDate: string | undefined;
13
+ }
14
+ export interface AmexCardSecurityCodeVersion2 {
15
+ CardExpiryDate: string | undefined;
16
+ ServiceCode: string | undefined;
17
+ }
18
+ export declare const PaddingType: {
19
+ readonly OAEP_SHA1: "OAEP_SHA1";
20
+ readonly OAEP_SHA256: "OAEP_SHA256";
21
+ readonly OAEP_SHA512: "OAEP_SHA512";
22
+ readonly PKCS1: "PKCS1";
23
+ };
24
+ export type PaddingType = (typeof PaddingType)[keyof typeof PaddingType];
25
+ export interface AsymmetricEncryptionAttributes {
26
+ PaddingType?: PaddingType | string;
27
+ }
28
+ export interface CardHolderVerificationValue {
29
+ UnpredictableNumber: string | undefined;
30
+ PanSequenceNumber: string | undefined;
31
+ ApplicationTransactionCounter: string | undefined;
32
+ }
33
+ export interface CardVerificationValue1 {
34
+ CardExpiryDate: string | undefined;
35
+ ServiceCode: string | undefined;
36
+ }
37
+ export interface CardVerificationValue2 {
38
+ CardExpiryDate: string | undefined;
39
+ }
40
+ export interface DynamicCardVerificationCode {
41
+ UnpredictableNumber: string | undefined;
42
+ PanSequenceNumber: string | undefined;
43
+ ApplicationTransactionCounter: string | undefined;
44
+ TrackData: string | undefined;
45
+ }
46
+ export interface DynamicCardVerificationValue {
47
+ PanSequenceNumber: string | undefined;
48
+ CardExpiryDate: string | undefined;
49
+ ServiceCode: string | undefined;
50
+ ApplicationTransactionCounter: string | undefined;
51
+ }
52
+ export type CardGenerationAttributes =
53
+ | CardGenerationAttributes.AmexCardSecurityCodeVersion1Member
54
+ | CardGenerationAttributes.AmexCardSecurityCodeVersion2Member
55
+ | CardGenerationAttributes.CardHolderVerificationValueMember
56
+ | CardGenerationAttributes.CardVerificationValue1Member
57
+ | CardGenerationAttributes.CardVerificationValue2Member
58
+ | CardGenerationAttributes.DynamicCardVerificationCodeMember
59
+ | CardGenerationAttributes.DynamicCardVerificationValueMember
60
+ | CardGenerationAttributes.$UnknownMember;
61
+ export declare namespace CardGenerationAttributes {
62
+ interface AmexCardSecurityCodeVersion1Member {
63
+ AmexCardSecurityCodeVersion1: AmexCardSecurityCodeVersion1;
64
+ AmexCardSecurityCodeVersion2?: never;
65
+ CardVerificationValue1?: never;
66
+ CardVerificationValue2?: never;
67
+ CardHolderVerificationValue?: never;
68
+ DynamicCardVerificationCode?: never;
69
+ DynamicCardVerificationValue?: never;
70
+ $unknown?: never;
71
+ }
72
+ interface AmexCardSecurityCodeVersion2Member {
73
+ AmexCardSecurityCodeVersion1?: never;
74
+ AmexCardSecurityCodeVersion2: AmexCardSecurityCodeVersion2;
75
+ CardVerificationValue1?: never;
76
+ CardVerificationValue2?: never;
77
+ CardHolderVerificationValue?: never;
78
+ DynamicCardVerificationCode?: never;
79
+ DynamicCardVerificationValue?: never;
80
+ $unknown?: never;
81
+ }
82
+ interface CardVerificationValue1Member {
83
+ AmexCardSecurityCodeVersion1?: never;
84
+ AmexCardSecurityCodeVersion2?: never;
85
+ CardVerificationValue1: CardVerificationValue1;
86
+ CardVerificationValue2?: never;
87
+ CardHolderVerificationValue?: never;
88
+ DynamicCardVerificationCode?: never;
89
+ DynamicCardVerificationValue?: never;
90
+ $unknown?: never;
91
+ }
92
+ interface CardVerificationValue2Member {
93
+ AmexCardSecurityCodeVersion1?: never;
94
+ AmexCardSecurityCodeVersion2?: never;
95
+ CardVerificationValue1?: never;
96
+ CardVerificationValue2: CardVerificationValue2;
97
+ CardHolderVerificationValue?: never;
98
+ DynamicCardVerificationCode?: never;
99
+ DynamicCardVerificationValue?: never;
100
+ $unknown?: never;
101
+ }
102
+ interface CardHolderVerificationValueMember {
103
+ AmexCardSecurityCodeVersion1?: never;
104
+ AmexCardSecurityCodeVersion2?: never;
105
+ CardVerificationValue1?: never;
106
+ CardVerificationValue2?: never;
107
+ CardHolderVerificationValue: CardHolderVerificationValue;
108
+ DynamicCardVerificationCode?: never;
109
+ DynamicCardVerificationValue?: never;
110
+ $unknown?: never;
111
+ }
112
+ interface DynamicCardVerificationCodeMember {
113
+ AmexCardSecurityCodeVersion1?: never;
114
+ AmexCardSecurityCodeVersion2?: never;
115
+ CardVerificationValue1?: never;
116
+ CardVerificationValue2?: never;
117
+ CardHolderVerificationValue?: never;
118
+ DynamicCardVerificationCode: DynamicCardVerificationCode;
119
+ DynamicCardVerificationValue?: never;
120
+ $unknown?: never;
121
+ }
122
+ interface DynamicCardVerificationValueMember {
123
+ AmexCardSecurityCodeVersion1?: never;
124
+ AmexCardSecurityCodeVersion2?: never;
125
+ CardVerificationValue1?: never;
126
+ CardVerificationValue2?: never;
127
+ CardHolderVerificationValue?: never;
128
+ DynamicCardVerificationCode?: never;
129
+ DynamicCardVerificationValue: DynamicCardVerificationValue;
130
+ $unknown?: never;
131
+ }
132
+ interface $UnknownMember {
133
+ AmexCardSecurityCodeVersion1?: never;
134
+ AmexCardSecurityCodeVersion2?: never;
135
+ CardVerificationValue1?: never;
136
+ CardVerificationValue2?: never;
137
+ CardHolderVerificationValue?: never;
138
+ DynamicCardVerificationCode?: never;
139
+ DynamicCardVerificationValue?: never;
140
+ $unknown: [string, any];
141
+ }
142
+ interface Visitor<T> {
143
+ AmexCardSecurityCodeVersion1: (value: AmexCardSecurityCodeVersion1) => T;
144
+ AmexCardSecurityCodeVersion2: (value: AmexCardSecurityCodeVersion2) => T;
145
+ CardVerificationValue1: (value: CardVerificationValue1) => T;
146
+ CardVerificationValue2: (value: CardVerificationValue2) => T;
147
+ CardHolderVerificationValue: (value: CardHolderVerificationValue) => T;
148
+ DynamicCardVerificationCode: (value: DynamicCardVerificationCode) => T;
149
+ DynamicCardVerificationValue: (value: DynamicCardVerificationValue) => T;
150
+ _: (name: string, value: any) => T;
151
+ }
152
+ const visit: <T>(value: CardGenerationAttributes, visitor: Visitor<T>) => T;
153
+ }
154
+ export interface DiscoverDynamicCardVerificationCode {
155
+ CardExpiryDate: string | undefined;
156
+ UnpredictableNumber: string | undefined;
157
+ ApplicationTransactionCounter: string | undefined;
158
+ }
159
+ export type CardVerificationAttributes =
160
+ | CardVerificationAttributes.AmexCardSecurityCodeVersion1Member
161
+ | CardVerificationAttributes.AmexCardSecurityCodeVersion2Member
162
+ | CardVerificationAttributes.CardHolderVerificationValueMember
163
+ | CardVerificationAttributes.CardVerificationValue1Member
164
+ | CardVerificationAttributes.CardVerificationValue2Member
165
+ | CardVerificationAttributes.DiscoverDynamicCardVerificationCodeMember
166
+ | CardVerificationAttributes.DynamicCardVerificationCodeMember
167
+ | CardVerificationAttributes.DynamicCardVerificationValueMember
168
+ | CardVerificationAttributes.$UnknownMember;
169
+ export declare namespace CardVerificationAttributes {
170
+ interface AmexCardSecurityCodeVersion1Member {
171
+ AmexCardSecurityCodeVersion1: AmexCardSecurityCodeVersion1;
172
+ AmexCardSecurityCodeVersion2?: never;
173
+ CardVerificationValue1?: never;
174
+ CardVerificationValue2?: never;
175
+ CardHolderVerificationValue?: never;
176
+ DynamicCardVerificationCode?: never;
177
+ DynamicCardVerificationValue?: never;
178
+ DiscoverDynamicCardVerificationCode?: never;
179
+ $unknown?: never;
180
+ }
181
+ interface AmexCardSecurityCodeVersion2Member {
182
+ AmexCardSecurityCodeVersion1?: never;
183
+ AmexCardSecurityCodeVersion2: AmexCardSecurityCodeVersion2;
184
+ CardVerificationValue1?: never;
185
+ CardVerificationValue2?: never;
186
+ CardHolderVerificationValue?: never;
187
+ DynamicCardVerificationCode?: never;
188
+ DynamicCardVerificationValue?: never;
189
+ DiscoverDynamicCardVerificationCode?: never;
190
+ $unknown?: never;
191
+ }
192
+ interface CardVerificationValue1Member {
193
+ AmexCardSecurityCodeVersion1?: never;
194
+ AmexCardSecurityCodeVersion2?: never;
195
+ CardVerificationValue1: CardVerificationValue1;
196
+ CardVerificationValue2?: never;
197
+ CardHolderVerificationValue?: never;
198
+ DynamicCardVerificationCode?: never;
199
+ DynamicCardVerificationValue?: never;
200
+ DiscoverDynamicCardVerificationCode?: never;
201
+ $unknown?: never;
202
+ }
203
+ interface CardVerificationValue2Member {
204
+ AmexCardSecurityCodeVersion1?: never;
205
+ AmexCardSecurityCodeVersion2?: never;
206
+ CardVerificationValue1?: never;
207
+ CardVerificationValue2: CardVerificationValue2;
208
+ CardHolderVerificationValue?: never;
209
+ DynamicCardVerificationCode?: never;
210
+ DynamicCardVerificationValue?: never;
211
+ DiscoverDynamicCardVerificationCode?: never;
212
+ $unknown?: never;
213
+ }
214
+ interface CardHolderVerificationValueMember {
215
+ AmexCardSecurityCodeVersion1?: never;
216
+ AmexCardSecurityCodeVersion2?: never;
217
+ CardVerificationValue1?: never;
218
+ CardVerificationValue2?: never;
219
+ CardHolderVerificationValue: CardHolderVerificationValue;
220
+ DynamicCardVerificationCode?: never;
221
+ DynamicCardVerificationValue?: never;
222
+ DiscoverDynamicCardVerificationCode?: never;
223
+ $unknown?: never;
224
+ }
225
+ interface DynamicCardVerificationCodeMember {
226
+ AmexCardSecurityCodeVersion1?: never;
227
+ AmexCardSecurityCodeVersion2?: never;
228
+ CardVerificationValue1?: never;
229
+ CardVerificationValue2?: never;
230
+ CardHolderVerificationValue?: never;
231
+ DynamicCardVerificationCode: DynamicCardVerificationCode;
232
+ DynamicCardVerificationValue?: never;
233
+ DiscoverDynamicCardVerificationCode?: never;
234
+ $unknown?: never;
235
+ }
236
+ interface DynamicCardVerificationValueMember {
237
+ AmexCardSecurityCodeVersion1?: never;
238
+ AmexCardSecurityCodeVersion2?: never;
239
+ CardVerificationValue1?: never;
240
+ CardVerificationValue2?: never;
241
+ CardHolderVerificationValue?: never;
242
+ DynamicCardVerificationCode?: never;
243
+ DynamicCardVerificationValue: DynamicCardVerificationValue;
244
+ DiscoverDynamicCardVerificationCode?: never;
245
+ $unknown?: never;
246
+ }
247
+ interface DiscoverDynamicCardVerificationCodeMember {
248
+ AmexCardSecurityCodeVersion1?: never;
249
+ AmexCardSecurityCodeVersion2?: never;
250
+ CardVerificationValue1?: never;
251
+ CardVerificationValue2?: never;
252
+ CardHolderVerificationValue?: never;
253
+ DynamicCardVerificationCode?: never;
254
+ DynamicCardVerificationValue?: never;
255
+ DiscoverDynamicCardVerificationCode: DiscoverDynamicCardVerificationCode;
256
+ $unknown?: never;
257
+ }
258
+ interface $UnknownMember {
259
+ AmexCardSecurityCodeVersion1?: never;
260
+ AmexCardSecurityCodeVersion2?: never;
261
+ CardVerificationValue1?: never;
262
+ CardVerificationValue2?: never;
263
+ CardHolderVerificationValue?: never;
264
+ DynamicCardVerificationCode?: never;
265
+ DynamicCardVerificationValue?: never;
266
+ DiscoverDynamicCardVerificationCode?: never;
267
+ $unknown: [string, any];
268
+ }
269
+ interface Visitor<T> {
270
+ AmexCardSecurityCodeVersion1: (value: AmexCardSecurityCodeVersion1) => T;
271
+ AmexCardSecurityCodeVersion2: (value: AmexCardSecurityCodeVersion2) => T;
272
+ CardVerificationValue1: (value: CardVerificationValue1) => T;
273
+ CardVerificationValue2: (value: CardVerificationValue2) => T;
274
+ CardHolderVerificationValue: (value: CardHolderVerificationValue) => T;
275
+ DynamicCardVerificationCode: (value: DynamicCardVerificationCode) => T;
276
+ DynamicCardVerificationValue: (value: DynamicCardVerificationValue) => T;
277
+ DiscoverDynamicCardVerificationCode: (
278
+ value: DiscoverDynamicCardVerificationCode
279
+ ) => T;
280
+ _: (name: string, value: any) => T;
281
+ }
282
+ const visit: <T>(value: CardVerificationAttributes, visitor: Visitor<T>) => T;
283
+ }
284
+ export interface CryptogramVerificationArpcMethod1 {
285
+ AuthResponseCode: string | undefined;
286
+ }
287
+ export interface CryptogramVerificationArpcMethod2 {
288
+ CardStatusUpdate: string | undefined;
289
+ ProprietaryAuthenticationData?: string;
290
+ }
291
+ export type CryptogramAuthResponse =
292
+ | CryptogramAuthResponse.ArpcMethod1Member
293
+ | CryptogramAuthResponse.ArpcMethod2Member
294
+ | CryptogramAuthResponse.$UnknownMember;
295
+ export declare namespace CryptogramAuthResponse {
296
+ interface ArpcMethod1Member {
297
+ ArpcMethod1: CryptogramVerificationArpcMethod1;
298
+ ArpcMethod2?: never;
299
+ $unknown?: never;
300
+ }
301
+ interface ArpcMethod2Member {
302
+ ArpcMethod1?: never;
303
+ ArpcMethod2: CryptogramVerificationArpcMethod2;
304
+ $unknown?: never;
305
+ }
306
+ interface $UnknownMember {
307
+ ArpcMethod1?: never;
308
+ ArpcMethod2?: never;
309
+ $unknown: [string, any];
310
+ }
311
+ interface Visitor<T> {
312
+ ArpcMethod1: (value: CryptogramVerificationArpcMethod1) => T;
313
+ ArpcMethod2: (value: CryptogramVerificationArpcMethod2) => T;
314
+ _: (name: string, value: any) => T;
315
+ }
316
+ const visit: <T>(value: CryptogramAuthResponse, visitor: Visitor<T>) => T;
317
+ }
318
+ export declare const DukptDerivationType: {
319
+ readonly AES_128: "AES_128";
320
+ readonly AES_192: "AES_192";
321
+ readonly AES_256: "AES_256";
322
+ readonly TDES_2KEY: "TDES_2KEY";
323
+ readonly TDES_3KEY: "TDES_3KEY";
324
+ };
325
+ export type DukptDerivationType =
326
+ (typeof DukptDerivationType)[keyof typeof DukptDerivationType];
327
+ export declare const DukptKeyVariant: {
328
+ readonly BIDIRECTIONAL: "BIDIRECTIONAL";
329
+ readonly REQUEST: "REQUEST";
330
+ readonly RESPONSE: "RESPONSE";
331
+ };
332
+ export type DukptKeyVariant =
333
+ (typeof DukptKeyVariant)[keyof typeof DukptKeyVariant];
334
+ export declare const DukptEncryptionMode: {
335
+ readonly CBC: "CBC";
336
+ readonly ECB: "ECB";
337
+ };
338
+ export type DukptEncryptionMode =
339
+ (typeof DukptEncryptionMode)[keyof typeof DukptEncryptionMode];
340
+ export interface DukptEncryptionAttributes {
341
+ KeySerialNumber: string | undefined;
342
+ Mode?: DukptEncryptionMode | string;
343
+ DukptKeyDerivationType?: DukptDerivationType | string;
344
+ DukptKeyVariant?: DukptKeyVariant | string;
345
+ InitializationVector?: string;
346
+ }
347
+ export declare const EncryptionMode: {
348
+ readonly CBC: "CBC";
349
+ readonly CFB: "CFB";
350
+ readonly CFB1: "CFB1";
351
+ readonly CFB128: "CFB128";
352
+ readonly CFB64: "CFB64";
353
+ readonly CFB8: "CFB8";
354
+ readonly ECB: "ECB";
355
+ readonly OFB: "OFB";
356
+ };
357
+ export type EncryptionMode =
358
+ (typeof EncryptionMode)[keyof typeof EncryptionMode];
359
+ export interface SymmetricEncryptionAttributes {
360
+ Mode: EncryptionMode | string | undefined;
361
+ InitializationVector?: string;
362
+ PaddingType?: PaddingType | string;
363
+ }
364
+ export type EncryptionDecryptionAttributes =
365
+ | EncryptionDecryptionAttributes.AsymmetricMember
366
+ | EncryptionDecryptionAttributes.DukptMember
367
+ | EncryptionDecryptionAttributes.SymmetricMember
368
+ | EncryptionDecryptionAttributes.$UnknownMember;
369
+ export declare namespace EncryptionDecryptionAttributes {
370
+ interface SymmetricMember {
371
+ Symmetric: SymmetricEncryptionAttributes;
372
+ Asymmetric?: never;
373
+ Dukpt?: never;
374
+ $unknown?: never;
375
+ }
376
+ interface AsymmetricMember {
377
+ Symmetric?: never;
378
+ Asymmetric: AsymmetricEncryptionAttributes;
379
+ Dukpt?: never;
380
+ $unknown?: never;
381
+ }
382
+ interface DukptMember {
383
+ Symmetric?: never;
384
+ Asymmetric?: never;
385
+ Dukpt: DukptEncryptionAttributes;
386
+ $unknown?: never;
387
+ }
388
+ interface $UnknownMember {
389
+ Symmetric?: never;
390
+ Asymmetric?: never;
391
+ Dukpt?: never;
392
+ $unknown: [string, any];
393
+ }
394
+ interface Visitor<T> {
395
+ Symmetric: (value: SymmetricEncryptionAttributes) => T;
396
+ Asymmetric: (value: AsymmetricEncryptionAttributes) => T;
397
+ Dukpt: (value: DukptEncryptionAttributes) => T;
398
+ _: (name: string, value: any) => T;
399
+ }
400
+ const visit: <T>(
401
+ value: EncryptionDecryptionAttributes,
402
+ visitor: Visitor<T>
403
+ ) => T;
404
+ }
405
+ export interface DecryptDataInput {
406
+ KeyIdentifier: string | undefined;
407
+ CipherText: string | undefined;
408
+ DecryptionAttributes: EncryptionDecryptionAttributes | undefined;
409
+ }
410
+ export interface DecryptDataOutput {
411
+ KeyArn: string | undefined;
412
+ KeyCheckValue: string | undefined;
413
+ PlainText: string | undefined;
414
+ }
415
+ export declare class InternalServerException extends __BaseException {
416
+ readonly name: "InternalServerException";
417
+ readonly $fault: "server";
418
+ Message?: string;
419
+ constructor(
420
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
421
+ );
422
+ }
423
+ export declare class ResourceNotFoundException extends __BaseException {
424
+ readonly name: "ResourceNotFoundException";
425
+ readonly $fault: "client";
426
+ ResourceId?: string;
427
+ constructor(
428
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
429
+ );
430
+ }
431
+ export declare class ThrottlingException extends __BaseException {
432
+ readonly name: "ThrottlingException";
433
+ readonly $fault: "client";
434
+ Message?: string;
435
+ constructor(
436
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
437
+ );
438
+ }
439
+ export interface ValidationExceptionField {
440
+ path: string | undefined;
441
+ message: string | undefined;
442
+ }
443
+ export declare class ValidationException extends __BaseException {
444
+ readonly name: "ValidationException";
445
+ readonly $fault: "client";
446
+ fieldList?: ValidationExceptionField[];
447
+ constructor(
448
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
449
+ );
450
+ }
451
+ export interface DukptAttributes {
452
+ KeySerialNumber: string | undefined;
453
+ DukptDerivationType: DukptDerivationType | string | undefined;
454
+ }
455
+ export interface DukptDerivationAttributes {
456
+ KeySerialNumber: string | undefined;
457
+ DukptKeyDerivationType?: DukptDerivationType | string;
458
+ DukptKeyVariant?: DukptKeyVariant | string;
459
+ }
460
+ export interface EncryptDataInput {
461
+ KeyIdentifier: string | undefined;
462
+ PlainText: string | undefined;
463
+ EncryptionAttributes: EncryptionDecryptionAttributes | undefined;
464
+ }
465
+ export interface EncryptDataOutput {
466
+ KeyArn: string | undefined;
467
+ KeyCheckValue: string | undefined;
468
+ CipherText: string | undefined;
469
+ }
470
+ export interface GenerateCardValidationDataInput {
471
+ KeyIdentifier: string | undefined;
472
+ PrimaryAccountNumber: string | undefined;
473
+ GenerationAttributes: CardGenerationAttributes | undefined;
474
+ ValidationDataLength?: number;
475
+ }
476
+ export interface GenerateCardValidationDataOutput {
477
+ KeyArn: string | undefined;
478
+ KeyCheckValue: string | undefined;
479
+ ValidationData: string | undefined;
480
+ }
481
+ export declare const MacAlgorithm: {
482
+ readonly CMAC: "CMAC";
483
+ readonly HMAC_SHA224: "HMAC_SHA224";
484
+ readonly HMAC_SHA256: "HMAC_SHA256";
485
+ readonly HMAC_SHA384: "HMAC_SHA384";
486
+ readonly HMAC_SHA512: "HMAC_SHA512";
487
+ readonly ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1";
488
+ readonly ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3";
489
+ };
490
+ export type MacAlgorithm = (typeof MacAlgorithm)[keyof typeof MacAlgorithm];
491
+ export interface MacAlgorithmDukpt {
492
+ KeySerialNumber: string | undefined;
493
+ DukptKeyVariant: DukptKeyVariant | string | undefined;
494
+ DukptDerivationType?: DukptDerivationType | string;
495
+ }
496
+ export declare const MajorKeyDerivationMode: {
497
+ readonly EMV_OPTION_A: "EMV_OPTION_A";
498
+ readonly EMV_OPTION_B: "EMV_OPTION_B";
499
+ };
500
+ export type MajorKeyDerivationMode =
501
+ (typeof MajorKeyDerivationMode)[keyof typeof MajorKeyDerivationMode];
502
+ export declare const SessionKeyDerivationMode: {
503
+ readonly AMEX: "AMEX";
504
+ readonly EMV2000: "EMV2000";
505
+ readonly EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY";
506
+ readonly MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY";
507
+ readonly VISA: "VISA";
508
+ };
509
+ export type SessionKeyDerivationMode =
510
+ (typeof SessionKeyDerivationMode)[keyof typeof SessionKeyDerivationMode];
511
+ export type SessionKeyDerivationValue =
512
+ | SessionKeyDerivationValue.ApplicationCryptogramMember
513
+ | SessionKeyDerivationValue.ApplicationTransactionCounterMember
514
+ | SessionKeyDerivationValue.$UnknownMember;
515
+ export declare namespace SessionKeyDerivationValue {
516
+ interface ApplicationCryptogramMember {
517
+ ApplicationCryptogram: string;
518
+ ApplicationTransactionCounter?: never;
519
+ $unknown?: never;
520
+ }
521
+ interface ApplicationTransactionCounterMember {
522
+ ApplicationCryptogram?: never;
523
+ ApplicationTransactionCounter: string;
524
+ $unknown?: never;
525
+ }
526
+ interface $UnknownMember {
527
+ ApplicationCryptogram?: never;
528
+ ApplicationTransactionCounter?: never;
529
+ $unknown: [string, any];
530
+ }
531
+ interface Visitor<T> {
532
+ ApplicationCryptogram: (value: string) => T;
533
+ ApplicationTransactionCounter: (value: string) => T;
534
+ _: (name: string, value: any) => T;
535
+ }
536
+ const visit: <T>(value: SessionKeyDerivationValue, visitor: Visitor<T>) => T;
537
+ }
538
+ export interface MacAlgorithmEmv {
539
+ MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
540
+ PrimaryAccountNumber: string | undefined;
541
+ PanSequenceNumber: string | undefined;
542
+ SessionKeyDerivationMode: SessionKeyDerivationMode | string | undefined;
543
+ SessionKeyDerivationValue: SessionKeyDerivationValue | undefined;
544
+ }
545
+ export type MacAttributes =
546
+ | MacAttributes.AlgorithmMember
547
+ | MacAttributes.DukptCmacMember
548
+ | MacAttributes.DukptIso9797Algorithm1Member
549
+ | MacAttributes.DukptIso9797Algorithm3Member
550
+ | MacAttributes.EmvMacMember
551
+ | MacAttributes.$UnknownMember;
552
+ export declare namespace MacAttributes {
553
+ interface AlgorithmMember {
554
+ Algorithm: MacAlgorithm | string;
555
+ EmvMac?: never;
556
+ DukptIso9797Algorithm1?: never;
557
+ DukptIso9797Algorithm3?: never;
558
+ DukptCmac?: never;
559
+ $unknown?: never;
560
+ }
561
+ interface EmvMacMember {
562
+ Algorithm?: never;
563
+ EmvMac: MacAlgorithmEmv;
564
+ DukptIso9797Algorithm1?: never;
565
+ DukptIso9797Algorithm3?: never;
566
+ DukptCmac?: never;
567
+ $unknown?: never;
568
+ }
569
+ interface DukptIso9797Algorithm1Member {
570
+ Algorithm?: never;
571
+ EmvMac?: never;
572
+ DukptIso9797Algorithm1: MacAlgorithmDukpt;
573
+ DukptIso9797Algorithm3?: never;
574
+ DukptCmac?: never;
575
+ $unknown?: never;
576
+ }
577
+ interface DukptIso9797Algorithm3Member {
578
+ Algorithm?: never;
579
+ EmvMac?: never;
580
+ DukptIso9797Algorithm1?: never;
581
+ DukptIso9797Algorithm3: MacAlgorithmDukpt;
582
+ DukptCmac?: never;
583
+ $unknown?: never;
584
+ }
585
+ interface DukptCmacMember {
586
+ Algorithm?: never;
587
+ EmvMac?: never;
588
+ DukptIso9797Algorithm1?: never;
589
+ DukptIso9797Algorithm3?: never;
590
+ DukptCmac: MacAlgorithmDukpt;
591
+ $unknown?: never;
592
+ }
593
+ interface $UnknownMember {
594
+ Algorithm?: never;
595
+ EmvMac?: never;
596
+ DukptIso9797Algorithm1?: never;
597
+ DukptIso9797Algorithm3?: never;
598
+ DukptCmac?: never;
599
+ $unknown: [string, any];
600
+ }
601
+ interface Visitor<T> {
602
+ Algorithm: (value: MacAlgorithm | string) => T;
603
+ EmvMac: (value: MacAlgorithmEmv) => T;
604
+ DukptIso9797Algorithm1: (value: MacAlgorithmDukpt) => T;
605
+ DukptIso9797Algorithm3: (value: MacAlgorithmDukpt) => T;
606
+ DukptCmac: (value: MacAlgorithmDukpt) => T;
607
+ _: (name: string, value: any) => T;
608
+ }
609
+ const visit: <T>(value: MacAttributes, visitor: Visitor<T>) => T;
610
+ }
611
+ export interface GenerateMacInput {
612
+ KeyIdentifier: string | undefined;
613
+ MessageData: string | undefined;
614
+ GenerationAttributes: MacAttributes | undefined;
615
+ MacLength?: number;
616
+ }
617
+ export interface GenerateMacOutput {
618
+ KeyArn: string | undefined;
619
+ KeyCheckValue: string | undefined;
620
+ Mac: string | undefined;
621
+ }
622
+ export interface Ibm3624NaturalPin {
623
+ DecimalizationTable: string | undefined;
624
+ PinValidationDataPadCharacter: string | undefined;
625
+ PinValidationData: string | undefined;
626
+ }
627
+ export interface Ibm3624PinFromOffset {
628
+ DecimalizationTable: string | undefined;
629
+ PinValidationDataPadCharacter: string | undefined;
630
+ PinValidationData: string | undefined;
631
+ PinOffset: string | undefined;
632
+ }
633
+ export interface Ibm3624PinOffset {
634
+ EncryptedPinBlock: string | undefined;
635
+ DecimalizationTable: string | undefined;
636
+ PinValidationDataPadCharacter: string | undefined;
637
+ PinValidationData: string | undefined;
638
+ }
639
+ export interface Ibm3624RandomPin {
640
+ DecimalizationTable: string | undefined;
641
+ PinValidationDataPadCharacter: string | undefined;
642
+ PinValidationData: string | undefined;
643
+ }
644
+ export interface VisaPin {
645
+ PinVerificationKeyIndex: number | undefined;
646
+ }
647
+ export interface VisaPinVerificationValue {
648
+ EncryptedPinBlock: string | undefined;
649
+ PinVerificationKeyIndex: number | undefined;
650
+ }
651
+ export type PinGenerationAttributes =
652
+ | PinGenerationAttributes.Ibm3624NaturalPinMember
653
+ | PinGenerationAttributes.Ibm3624PinFromOffsetMember
654
+ | PinGenerationAttributes.Ibm3624PinOffsetMember
655
+ | PinGenerationAttributes.Ibm3624RandomPinMember
656
+ | PinGenerationAttributes.VisaPinMember
657
+ | PinGenerationAttributes.VisaPinVerificationValueMember
658
+ | PinGenerationAttributes.$UnknownMember;
659
+ export declare namespace PinGenerationAttributes {
660
+ interface VisaPinMember {
661
+ VisaPin: VisaPin;
662
+ VisaPinVerificationValue?: never;
663
+ Ibm3624PinOffset?: never;
664
+ Ibm3624NaturalPin?: never;
665
+ Ibm3624RandomPin?: never;
666
+ Ibm3624PinFromOffset?: never;
667
+ $unknown?: never;
668
+ }
669
+ interface VisaPinVerificationValueMember {
670
+ VisaPin?: never;
671
+ VisaPinVerificationValue: VisaPinVerificationValue;
672
+ Ibm3624PinOffset?: never;
673
+ Ibm3624NaturalPin?: never;
674
+ Ibm3624RandomPin?: never;
675
+ Ibm3624PinFromOffset?: never;
676
+ $unknown?: never;
677
+ }
678
+ interface Ibm3624PinOffsetMember {
679
+ VisaPin?: never;
680
+ VisaPinVerificationValue?: never;
681
+ Ibm3624PinOffset: Ibm3624PinOffset;
682
+ Ibm3624NaturalPin?: never;
683
+ Ibm3624RandomPin?: never;
684
+ Ibm3624PinFromOffset?: never;
685
+ $unknown?: never;
686
+ }
687
+ interface Ibm3624NaturalPinMember {
688
+ VisaPin?: never;
689
+ VisaPinVerificationValue?: never;
690
+ Ibm3624PinOffset?: never;
691
+ Ibm3624NaturalPin: Ibm3624NaturalPin;
692
+ Ibm3624RandomPin?: never;
693
+ Ibm3624PinFromOffset?: never;
694
+ $unknown?: never;
695
+ }
696
+ interface Ibm3624RandomPinMember {
697
+ VisaPin?: never;
698
+ VisaPinVerificationValue?: never;
699
+ Ibm3624PinOffset?: never;
700
+ Ibm3624NaturalPin?: never;
701
+ Ibm3624RandomPin: Ibm3624RandomPin;
702
+ Ibm3624PinFromOffset?: never;
703
+ $unknown?: never;
704
+ }
705
+ interface Ibm3624PinFromOffsetMember {
706
+ VisaPin?: never;
707
+ VisaPinVerificationValue?: never;
708
+ Ibm3624PinOffset?: never;
709
+ Ibm3624NaturalPin?: never;
710
+ Ibm3624RandomPin?: never;
711
+ Ibm3624PinFromOffset: Ibm3624PinFromOffset;
712
+ $unknown?: never;
713
+ }
714
+ interface $UnknownMember {
715
+ VisaPin?: never;
716
+ VisaPinVerificationValue?: never;
717
+ Ibm3624PinOffset?: never;
718
+ Ibm3624NaturalPin?: never;
719
+ Ibm3624RandomPin?: never;
720
+ Ibm3624PinFromOffset?: never;
721
+ $unknown: [string, any];
722
+ }
723
+ interface Visitor<T> {
724
+ VisaPin: (value: VisaPin) => T;
725
+ VisaPinVerificationValue: (value: VisaPinVerificationValue) => T;
726
+ Ibm3624PinOffset: (value: Ibm3624PinOffset) => T;
727
+ Ibm3624NaturalPin: (value: Ibm3624NaturalPin) => T;
728
+ Ibm3624RandomPin: (value: Ibm3624RandomPin) => T;
729
+ Ibm3624PinFromOffset: (value: Ibm3624PinFromOffset) => T;
730
+ _: (name: string, value: any) => T;
731
+ }
732
+ const visit: <T>(value: PinGenerationAttributes, visitor: Visitor<T>) => T;
733
+ }
734
+ export declare const PinBlockFormatForPinData: {
735
+ readonly ISO_FORMAT_0: "ISO_FORMAT_0";
736
+ readonly ISO_FORMAT_3: "ISO_FORMAT_3";
737
+ };
738
+ export type PinBlockFormatForPinData =
739
+ (typeof PinBlockFormatForPinData)[keyof typeof PinBlockFormatForPinData];
740
+ export interface GeneratePinDataInput {
741
+ GenerationKeyIdentifier: string | undefined;
742
+ EncryptionKeyIdentifier: string | undefined;
743
+ GenerationAttributes: PinGenerationAttributes | undefined;
744
+ PinDataLength?: number;
745
+ PrimaryAccountNumber: string | undefined;
746
+ PinBlockFormat: PinBlockFormatForPinData | string | undefined;
747
+ }
748
+ export type PinData =
749
+ | PinData.PinOffsetMember
750
+ | PinData.VerificationValueMember
751
+ | PinData.$UnknownMember;
752
+ export declare namespace PinData {
753
+ interface PinOffsetMember {
754
+ PinOffset: string;
755
+ VerificationValue?: never;
756
+ $unknown?: never;
757
+ }
758
+ interface VerificationValueMember {
759
+ PinOffset?: never;
760
+ VerificationValue: string;
761
+ $unknown?: never;
762
+ }
763
+ interface $UnknownMember {
764
+ PinOffset?: never;
765
+ VerificationValue?: never;
766
+ $unknown: [string, any];
767
+ }
768
+ interface Visitor<T> {
769
+ PinOffset: (value: string) => T;
770
+ VerificationValue: (value: string) => T;
771
+ _: (name: string, value: any) => T;
772
+ }
773
+ const visit: <T>(value: PinData, visitor: Visitor<T>) => T;
774
+ }
775
+ export interface GeneratePinDataOutput {
776
+ GenerationKeyArn: string | undefined;
777
+ GenerationKeyCheckValue: string | undefined;
778
+ EncryptionKeyArn: string | undefined;
779
+ EncryptionKeyCheckValue: string | undefined;
780
+ EncryptedPinBlock: string | undefined;
781
+ PinData: PinData | undefined;
782
+ }
783
+ export interface Ibm3624PinVerification {
784
+ DecimalizationTable: string | undefined;
785
+ PinValidationDataPadCharacter: string | undefined;
786
+ PinValidationData: string | undefined;
787
+ PinOffset: string | undefined;
788
+ }
789
+ export type ReEncryptionAttributes =
790
+ | ReEncryptionAttributes.DukptMember
791
+ | ReEncryptionAttributes.SymmetricMember
792
+ | ReEncryptionAttributes.$UnknownMember;
793
+ export declare namespace ReEncryptionAttributes {
794
+ interface SymmetricMember {
795
+ Symmetric: SymmetricEncryptionAttributes;
796
+ Dukpt?: never;
797
+ $unknown?: never;
798
+ }
799
+ interface DukptMember {
800
+ Symmetric?: never;
801
+ Dukpt: DukptEncryptionAttributes;
802
+ $unknown?: never;
803
+ }
804
+ interface $UnknownMember {
805
+ Symmetric?: never;
806
+ Dukpt?: never;
807
+ $unknown: [string, any];
808
+ }
809
+ interface Visitor<T> {
810
+ Symmetric: (value: SymmetricEncryptionAttributes) => T;
811
+ Dukpt: (value: DukptEncryptionAttributes) => T;
812
+ _: (name: string, value: any) => T;
813
+ }
814
+ const visit: <T>(value: ReEncryptionAttributes, visitor: Visitor<T>) => T;
815
+ }
816
+ export interface ReEncryptDataInput {
817
+ IncomingKeyIdentifier: string | undefined;
818
+ OutgoingKeyIdentifier: string | undefined;
819
+ CipherText: string | undefined;
820
+ IncomingEncryptionAttributes: ReEncryptionAttributes | undefined;
821
+ OutgoingEncryptionAttributes: ReEncryptionAttributes | undefined;
822
+ }
823
+ export interface ReEncryptDataOutput {
824
+ KeyArn: string | undefined;
825
+ KeyCheckValue: string | undefined;
826
+ CipherText: string | undefined;
827
+ }
828
+ export interface TranslationPinDataIsoFormat034 {
829
+ PrimaryAccountNumber: string | undefined;
830
+ }
831
+ export interface TranslationPinDataIsoFormat1 {}
832
+ export type TranslationIsoFormats =
833
+ | TranslationIsoFormats.IsoFormat0Member
834
+ | TranslationIsoFormats.IsoFormat1Member
835
+ | TranslationIsoFormats.IsoFormat3Member
836
+ | TranslationIsoFormats.IsoFormat4Member
837
+ | TranslationIsoFormats.$UnknownMember;
838
+ export declare namespace TranslationIsoFormats {
839
+ interface IsoFormat0Member {
840
+ IsoFormat0: TranslationPinDataIsoFormat034;
841
+ IsoFormat1?: never;
842
+ IsoFormat3?: never;
843
+ IsoFormat4?: never;
844
+ $unknown?: never;
845
+ }
846
+ interface IsoFormat1Member {
847
+ IsoFormat0?: never;
848
+ IsoFormat1: TranslationPinDataIsoFormat1;
849
+ IsoFormat3?: never;
850
+ IsoFormat4?: never;
851
+ $unknown?: never;
852
+ }
853
+ interface IsoFormat3Member {
854
+ IsoFormat0?: never;
855
+ IsoFormat1?: never;
856
+ IsoFormat3: TranslationPinDataIsoFormat034;
857
+ IsoFormat4?: never;
858
+ $unknown?: never;
859
+ }
860
+ interface IsoFormat4Member {
861
+ IsoFormat0?: never;
862
+ IsoFormat1?: never;
863
+ IsoFormat3?: never;
864
+ IsoFormat4: TranslationPinDataIsoFormat034;
865
+ $unknown?: never;
866
+ }
867
+ interface $UnknownMember {
868
+ IsoFormat0?: never;
869
+ IsoFormat1?: never;
870
+ IsoFormat3?: never;
871
+ IsoFormat4?: never;
872
+ $unknown: [string, any];
873
+ }
874
+ interface Visitor<T> {
875
+ IsoFormat0: (value: TranslationPinDataIsoFormat034) => T;
876
+ IsoFormat1: (value: TranslationPinDataIsoFormat1) => T;
877
+ IsoFormat3: (value: TranslationPinDataIsoFormat034) => T;
878
+ IsoFormat4: (value: TranslationPinDataIsoFormat034) => T;
879
+ _: (name: string, value: any) => T;
880
+ }
881
+ const visit: <T>(value: TranslationIsoFormats, visitor: Visitor<T>) => T;
882
+ }
883
+ export interface TranslatePinDataInput {
884
+ IncomingKeyIdentifier: string | undefined;
885
+ OutgoingKeyIdentifier: string | undefined;
886
+ IncomingTranslationAttributes: TranslationIsoFormats | undefined;
887
+ OutgoingTranslationAttributes: TranslationIsoFormats | undefined;
888
+ EncryptedPinBlock: string | undefined;
889
+ IncomingDukptAttributes?: DukptDerivationAttributes;
890
+ OutgoingDukptAttributes?: DukptDerivationAttributes;
891
+ }
892
+ export interface TranslatePinDataOutput {
893
+ PinBlock: string | undefined;
894
+ KeyArn: string | undefined;
895
+ KeyCheckValue: string | undefined;
896
+ }
897
+ export declare const VerificationFailedReason: {
898
+ readonly INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM";
899
+ readonly INVALID_MAC: "INVALID_MAC";
900
+ readonly INVALID_PIN: "INVALID_PIN";
901
+ readonly INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA";
902
+ };
903
+ export type VerificationFailedReason =
904
+ (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
905
+ export declare class VerificationFailedException extends __BaseException {
906
+ readonly name: "VerificationFailedException";
907
+ readonly $fault: "client";
908
+ Reason: VerificationFailedReason | string | undefined;
909
+ Message: string | undefined;
910
+ constructor(
911
+ opts: __ExceptionOptionType<VerificationFailedException, __BaseException>
912
+ );
913
+ }
914
+ export interface SessionKeyAmex {
915
+ PrimaryAccountNumber: string | undefined;
916
+ PanSequenceNumber: string | undefined;
917
+ }
918
+ export interface SessionKeyEmv2000 {
919
+ PrimaryAccountNumber: string | undefined;
920
+ PanSequenceNumber: string | undefined;
921
+ ApplicationTransactionCounter: string | undefined;
922
+ }
923
+ export interface SessionKeyEmvCommon {
924
+ PrimaryAccountNumber: string | undefined;
925
+ PanSequenceNumber: string | undefined;
926
+ ApplicationTransactionCounter: string | undefined;
927
+ }
928
+ export interface SessionKeyMastercard {
929
+ PrimaryAccountNumber: string | undefined;
930
+ PanSequenceNumber: string | undefined;
931
+ ApplicationTransactionCounter: string | undefined;
932
+ UnpredictableNumber: string | undefined;
933
+ }
934
+ export interface SessionKeyVisa {
935
+ PrimaryAccountNumber: string | undefined;
936
+ PanSequenceNumber: string | undefined;
937
+ }
938
+ export type SessionKeyDerivation =
939
+ | SessionKeyDerivation.AmexMember
940
+ | SessionKeyDerivation.Emv2000Member
941
+ | SessionKeyDerivation.EmvCommonMember
942
+ | SessionKeyDerivation.MastercardMember
943
+ | SessionKeyDerivation.VisaMember
944
+ | SessionKeyDerivation.$UnknownMember;
945
+ export declare namespace SessionKeyDerivation {
946
+ interface EmvCommonMember {
947
+ EmvCommon: SessionKeyEmvCommon;
948
+ Mastercard?: never;
949
+ Emv2000?: never;
950
+ Amex?: never;
951
+ Visa?: never;
952
+ $unknown?: never;
953
+ }
954
+ interface MastercardMember {
955
+ EmvCommon?: never;
956
+ Mastercard: SessionKeyMastercard;
957
+ Emv2000?: never;
958
+ Amex?: never;
959
+ Visa?: never;
960
+ $unknown?: never;
961
+ }
962
+ interface Emv2000Member {
963
+ EmvCommon?: never;
964
+ Mastercard?: never;
965
+ Emv2000: SessionKeyEmv2000;
966
+ Amex?: never;
967
+ Visa?: never;
968
+ $unknown?: never;
969
+ }
970
+ interface AmexMember {
971
+ EmvCommon?: never;
972
+ Mastercard?: never;
973
+ Emv2000?: never;
974
+ Amex: SessionKeyAmex;
975
+ Visa?: never;
976
+ $unknown?: never;
977
+ }
978
+ interface VisaMember {
979
+ EmvCommon?: never;
980
+ Mastercard?: never;
981
+ Emv2000?: never;
982
+ Amex?: never;
983
+ Visa: SessionKeyVisa;
984
+ $unknown?: never;
985
+ }
986
+ interface $UnknownMember {
987
+ EmvCommon?: never;
988
+ Mastercard?: never;
989
+ Emv2000?: never;
990
+ Amex?: never;
991
+ Visa?: never;
992
+ $unknown: [string, any];
993
+ }
994
+ interface Visitor<T> {
995
+ EmvCommon: (value: SessionKeyEmvCommon) => T;
996
+ Mastercard: (value: SessionKeyMastercard) => T;
997
+ Emv2000: (value: SessionKeyEmv2000) => T;
998
+ Amex: (value: SessionKeyAmex) => T;
999
+ Visa: (value: SessionKeyVisa) => T;
1000
+ _: (name: string, value: any) => T;
1001
+ }
1002
+ const visit: <T>(value: SessionKeyDerivation, visitor: Visitor<T>) => T;
1003
+ }
1004
+ export interface VerifyAuthRequestCryptogramInput {
1005
+ KeyIdentifier: string | undefined;
1006
+ TransactionData: string | undefined;
1007
+ AuthRequestCryptogram: string | undefined;
1008
+ MajorKeyDerivationMode: MajorKeyDerivationMode | string | undefined;
1009
+ SessionKeyDerivationAttributes: SessionKeyDerivation | undefined;
1010
+ AuthResponseAttributes?: CryptogramAuthResponse;
1011
+ }
1012
+ export interface VerifyAuthRequestCryptogramOutput {
1013
+ KeyArn: string | undefined;
1014
+ KeyCheckValue: string | undefined;
1015
+ AuthResponseValue?: string;
1016
+ }
1017
+ export interface VerifyCardValidationDataInput {
1018
+ KeyIdentifier: string | undefined;
1019
+ PrimaryAccountNumber: string | undefined;
1020
+ VerificationAttributes: CardVerificationAttributes | undefined;
1021
+ ValidationData: string | undefined;
1022
+ }
1023
+ export interface VerifyCardValidationDataOutput {
1024
+ KeyArn: string | undefined;
1025
+ KeyCheckValue: string | undefined;
1026
+ }
1027
+ export interface VerifyMacInput {
1028
+ KeyIdentifier: string | undefined;
1029
+ MessageData: string | undefined;
1030
+ Mac: string | undefined;
1031
+ VerificationAttributes: MacAttributes | undefined;
1032
+ MacLength?: number;
1033
+ }
1034
+ export interface VerifyMacOutput {
1035
+ KeyArn: string | undefined;
1036
+ KeyCheckValue: string | undefined;
1037
+ }
1038
+ export interface VisaPinVerification {
1039
+ PinVerificationKeyIndex: number | undefined;
1040
+ VerificationValue: string | undefined;
1041
+ }
1042
+ export type PinVerificationAttributes =
1043
+ | PinVerificationAttributes.Ibm3624PinMember
1044
+ | PinVerificationAttributes.VisaPinMember
1045
+ | PinVerificationAttributes.$UnknownMember;
1046
+ export declare namespace PinVerificationAttributes {
1047
+ interface VisaPinMember {
1048
+ VisaPin: VisaPinVerification;
1049
+ Ibm3624Pin?: never;
1050
+ $unknown?: never;
1051
+ }
1052
+ interface Ibm3624PinMember {
1053
+ VisaPin?: never;
1054
+ Ibm3624Pin: Ibm3624PinVerification;
1055
+ $unknown?: never;
1056
+ }
1057
+ interface $UnknownMember {
1058
+ VisaPin?: never;
1059
+ Ibm3624Pin?: never;
1060
+ $unknown: [string, any];
1061
+ }
1062
+ interface Visitor<T> {
1063
+ VisaPin: (value: VisaPinVerification) => T;
1064
+ Ibm3624Pin: (value: Ibm3624PinVerification) => T;
1065
+ _: (name: string, value: any) => T;
1066
+ }
1067
+ const visit: <T>(value: PinVerificationAttributes, visitor: Visitor<T>) => T;
1068
+ }
1069
+ export interface VerifyPinDataInput {
1070
+ VerificationKeyIdentifier: string | undefined;
1071
+ EncryptionKeyIdentifier: string | undefined;
1072
+ VerificationAttributes: PinVerificationAttributes | undefined;
1073
+ EncryptedPinBlock: string | undefined;
1074
+ PrimaryAccountNumber: string | undefined;
1075
+ PinBlockFormat: PinBlockFormatForPinData | string | undefined;
1076
+ PinDataLength?: number;
1077
+ DukptAttributes?: DukptAttributes;
1078
+ }
1079
+ export interface VerifyPinDataOutput {
1080
+ VerificationKeyArn: string | undefined;
1081
+ VerificationKeyCheckValue: string | undefined;
1082
+ EncryptionKeyArn: string | undefined;
1083
+ EncryptionKeyCheckValue: string | undefined;
1084
+ }
1085
+ export declare const DukptEncryptionAttributesFilterSensitiveLog: (
1086
+ obj: DukptEncryptionAttributes
1087
+ ) => any;
1088
+ export declare const SymmetricEncryptionAttributesFilterSensitiveLog: (
1089
+ obj: SymmetricEncryptionAttributes
1090
+ ) => any;
1091
+ export declare const EncryptionDecryptionAttributesFilterSensitiveLog: (
1092
+ obj: EncryptionDecryptionAttributes
1093
+ ) => any;
1094
+ export declare const DecryptDataInputFilterSensitiveLog: (
1095
+ obj: DecryptDataInput
1096
+ ) => any;
1097
+ export declare const DecryptDataOutputFilterSensitiveLog: (
1098
+ obj: DecryptDataOutput
1099
+ ) => any;
1100
+ export declare const EncryptDataInputFilterSensitiveLog: (
1101
+ obj: EncryptDataInput
1102
+ ) => any;
1103
+ export declare const EncryptDataOutputFilterSensitiveLog: (
1104
+ obj: EncryptDataOutput
1105
+ ) => any;
1106
+ export declare const GenerateCardValidationDataInputFilterSensitiveLog: (
1107
+ obj: GenerateCardValidationDataInput
1108
+ ) => any;
1109
+ export declare const MacAlgorithmEmvFilterSensitiveLog: (
1110
+ obj: MacAlgorithmEmv
1111
+ ) => any;
1112
+ export declare const MacAttributesFilterSensitiveLog: (
1113
+ obj: MacAttributes
1114
+ ) => any;
1115
+ export declare const GenerateMacInputFilterSensitiveLog: (
1116
+ obj: GenerateMacInput
1117
+ ) => any;
1118
+ export declare const GeneratePinDataInputFilterSensitiveLog: (
1119
+ obj: GeneratePinDataInput
1120
+ ) => any;
1121
+ export declare const ReEncryptionAttributesFilterSensitiveLog: (
1122
+ obj: ReEncryptionAttributes
1123
+ ) => any;
1124
+ export declare const ReEncryptDataInputFilterSensitiveLog: (
1125
+ obj: ReEncryptDataInput
1126
+ ) => any;
1127
+ export declare const ReEncryptDataOutputFilterSensitiveLog: (
1128
+ obj: ReEncryptDataOutput
1129
+ ) => any;
1130
+ export declare const TranslationPinDataIsoFormat034FilterSensitiveLog: (
1131
+ obj: TranslationPinDataIsoFormat034
1132
+ ) => any;
1133
+ export declare const TranslationIsoFormatsFilterSensitiveLog: (
1134
+ obj: TranslationIsoFormats
1135
+ ) => any;
1136
+ export declare const TranslatePinDataInputFilterSensitiveLog: (
1137
+ obj: TranslatePinDataInput
1138
+ ) => any;
1139
+ export declare const SessionKeyAmexFilterSensitiveLog: (
1140
+ obj: SessionKeyAmex
1141
+ ) => any;
1142
+ export declare const SessionKeyEmv2000FilterSensitiveLog: (
1143
+ obj: SessionKeyEmv2000
1144
+ ) => any;
1145
+ export declare const SessionKeyEmvCommonFilterSensitiveLog: (
1146
+ obj: SessionKeyEmvCommon
1147
+ ) => any;
1148
+ export declare const SessionKeyMastercardFilterSensitiveLog: (
1149
+ obj: SessionKeyMastercard
1150
+ ) => any;
1151
+ export declare const SessionKeyVisaFilterSensitiveLog: (
1152
+ obj: SessionKeyVisa
1153
+ ) => any;
1154
+ export declare const SessionKeyDerivationFilterSensitiveLog: (
1155
+ obj: SessionKeyDerivation
1156
+ ) => any;
1157
+ export declare const VerifyAuthRequestCryptogramInputFilterSensitiveLog: (
1158
+ obj: VerifyAuthRequestCryptogramInput
1159
+ ) => any;
1160
+ export declare const VerifyCardValidationDataInputFilterSensitiveLog: (
1161
+ obj: VerifyCardValidationDataInput
1162
+ ) => any;
1163
+ export declare const VerifyMacInputFilterSensitiveLog: (
1164
+ obj: VerifyMacInput
1165
+ ) => any;
1166
+ export declare const VerifyPinDataInputFilterSensitiveLog: (
1167
+ obj: VerifyPinDataInput
1168
+ ) => any;