@aws-sdk/client-payment-cryptography-data 3.933.0 → 3.935.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.
@@ -1,23 +1,26 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/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 | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
- );
10
- }
1
+ import {
2
+ DukptDerivationType,
3
+ DukptEncryptionMode,
4
+ DukptKeyVariant,
5
+ EmvEncryptionMode,
6
+ EmvMajorKeyDerivationMode,
7
+ EncryptionMode,
8
+ KeyDerivationFunction,
9
+ KeyDerivationHashAlgorithm,
10
+ MacAlgorithm,
11
+ MajorKeyDerivationMode,
12
+ PaddingType,
13
+ PinBlockFormatForEmvPinChange,
14
+ PinBlockFormatForPinData,
15
+ PinBlockLengthPosition,
16
+ PinBlockPaddingType,
17
+ SessionKeyDerivationMode,
18
+ SymmetricKeyAlgorithm,
19
+ } from "./enums";
11
20
  export interface CurrentPinAttributes {
12
21
  CurrentPinPekIdentifier: string | undefined;
13
22
  CurrentEncryptedPinBlock: string | undefined;
14
23
  }
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
24
  export interface AmexAttributes {
22
25
  MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
23
26
  PrimaryAccountNumber: string | undefined;
@@ -33,13 +36,6 @@ export interface AmexCardSecurityCodeVersion2 {
33
36
  CardExpiryDate: string | undefined;
34
37
  ServiceCode: string | undefined;
35
38
  }
36
- export declare const PaddingType: {
37
- readonly OAEP_SHA1: "OAEP_SHA1";
38
- readonly OAEP_SHA256: "OAEP_SHA256";
39
- readonly OAEP_SHA512: "OAEP_SHA512";
40
- readonly PKCS1: "PKCS1";
41
- };
42
- export type PaddingType = (typeof PaddingType)[keyof typeof PaddingType];
43
39
  export interface AsymmetricEncryptionAttributes {
44
40
  PaddingType?: PaddingType | undefined;
45
41
  }
@@ -330,28 +326,6 @@ export declare namespace CryptogramAuthResponse {
330
326
  _: (name: string, value: any) => T;
331
327
  }
332
328
  }
333
- export declare const DukptDerivationType: {
334
- readonly AES_128: "AES_128";
335
- readonly AES_192: "AES_192";
336
- readonly AES_256: "AES_256";
337
- readonly TDES_2KEY: "TDES_2KEY";
338
- readonly TDES_3KEY: "TDES_3KEY";
339
- };
340
- export type DukptDerivationType =
341
- (typeof DukptDerivationType)[keyof typeof DukptDerivationType];
342
- export declare const DukptKeyVariant: {
343
- readonly BIDIRECTIONAL: "BIDIRECTIONAL";
344
- readonly REQUEST: "REQUEST";
345
- readonly RESPONSE: "RESPONSE";
346
- };
347
- export type DukptKeyVariant =
348
- (typeof DukptKeyVariant)[keyof typeof DukptKeyVariant];
349
- export declare const DukptEncryptionMode: {
350
- readonly CBC: "CBC";
351
- readonly ECB: "ECB";
352
- };
353
- export type DukptEncryptionMode =
354
- (typeof DukptEncryptionMode)[keyof typeof DukptEncryptionMode];
355
329
  export interface DukptEncryptionAttributes {
356
330
  KeySerialNumber: string | undefined;
357
331
  Mode?: DukptEncryptionMode | undefined;
@@ -359,18 +333,6 @@ export interface DukptEncryptionAttributes {
359
333
  DukptKeyVariant?: DukptKeyVariant | undefined;
360
334
  InitializationVector?: string | undefined;
361
335
  }
362
- export declare const EmvMajorKeyDerivationMode: {
363
- readonly EMV_OPTION_A: "EMV_OPTION_A";
364
- readonly EMV_OPTION_B: "EMV_OPTION_B";
365
- };
366
- export type EmvMajorKeyDerivationMode =
367
- (typeof EmvMajorKeyDerivationMode)[keyof typeof EmvMajorKeyDerivationMode];
368
- export declare const EmvEncryptionMode: {
369
- readonly CBC: "CBC";
370
- readonly ECB: "ECB";
371
- };
372
- export type EmvEncryptionMode =
373
- (typeof EmvEncryptionMode)[keyof typeof EmvEncryptionMode];
374
336
  export interface EmvEncryptionAttributes {
375
337
  MajorKeyDerivationMode: EmvMajorKeyDerivationMode | undefined;
376
338
  PrimaryAccountNumber: string | undefined;
@@ -379,18 +341,6 @@ export interface EmvEncryptionAttributes {
379
341
  Mode?: EmvEncryptionMode | undefined;
380
342
  InitializationVector?: string | undefined;
381
343
  }
382
- export declare const EncryptionMode: {
383
- readonly CBC: "CBC";
384
- readonly CFB: "CFB";
385
- readonly CFB1: "CFB1";
386
- readonly CFB128: "CFB128";
387
- readonly CFB64: "CFB64";
388
- readonly CFB8: "CFB8";
389
- readonly ECB: "ECB";
390
- readonly OFB: "OFB";
391
- };
392
- export type EncryptionMode =
393
- (typeof EncryptionMode)[keyof typeof EncryptionMode];
394
344
  export interface SymmetricEncryptionAttributes {
395
345
  Mode: EncryptionMode | undefined;
396
346
  InitializationVector?: string | undefined;
@@ -454,32 +404,6 @@ export declare const KeyCheckValueAlgorithm: {
454
404
  };
455
405
  export type KeyCheckValueAlgorithm =
456
406
  (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm];
457
- export declare const SymmetricKeyAlgorithm: {
458
- readonly AES_128: "AES_128";
459
- readonly AES_192: "AES_192";
460
- readonly AES_256: "AES_256";
461
- readonly HMAC_SHA224: "HMAC_SHA224";
462
- readonly HMAC_SHA256: "HMAC_SHA256";
463
- readonly HMAC_SHA384: "HMAC_SHA384";
464
- readonly HMAC_SHA512: "HMAC_SHA512";
465
- readonly TDES_2KEY: "TDES_2KEY";
466
- readonly TDES_3KEY: "TDES_3KEY";
467
- };
468
- export type SymmetricKeyAlgorithm =
469
- (typeof SymmetricKeyAlgorithm)[keyof typeof SymmetricKeyAlgorithm];
470
- export declare const KeyDerivationFunction: {
471
- readonly ANSI_X963: "ANSI_X963";
472
- readonly NIST_SP800: "NIST_SP800";
473
- };
474
- export type KeyDerivationFunction =
475
- (typeof KeyDerivationFunction)[keyof typeof KeyDerivationFunction];
476
- export declare const KeyDerivationHashAlgorithm: {
477
- readonly SHA_256: "SHA_256";
478
- readonly SHA_384: "SHA_384";
479
- readonly SHA_512: "SHA_512";
480
- };
481
- export type KeyDerivationHashAlgorithm =
482
- (typeof KeyDerivationHashAlgorithm)[keyof typeof KeyDerivationHashAlgorithm];
483
407
  export interface EcdhDerivationAttributes {
484
408
  CertificateAuthorityPublicKeyIdentifier: string | undefined;
485
409
  PublicKeyCertificate: string | undefined;
@@ -529,60 +453,16 @@ export interface DecryptDataOutput {
529
453
  KeyCheckValue: string | undefined;
530
454
  PlainText: string | undefined;
531
455
  }
532
- export declare class InternalServerException extends __BaseException {
533
- readonly name: "InternalServerException";
534
- readonly $fault: "server";
535
- Message?: string | undefined;
536
- constructor(
537
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
538
- );
539
- }
540
- export declare class ResourceNotFoundException extends __BaseException {
541
- readonly name: "ResourceNotFoundException";
542
- readonly $fault: "client";
543
- ResourceId?: string | undefined;
544
- constructor(
545
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
546
- );
547
- }
548
- export declare class ThrottlingException extends __BaseException {
549
- readonly name: "ThrottlingException";
550
- readonly $fault: "client";
551
- Message?: string | undefined;
552
- constructor(
553
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
554
- );
555
- }
556
456
  export interface ValidationExceptionField {
557
457
  path: string | undefined;
558
458
  message: string | undefined;
559
459
  }
560
- export declare class ValidationException extends __BaseException {
561
- readonly name: "ValidationException";
562
- readonly $fault: "client";
563
- fieldList?: ValidationExceptionField[] | undefined;
564
- constructor(
565
- opts: __ExceptionOptionType<ValidationException, __BaseException>
566
- );
567
- }
568
460
  export interface Emv2000Attributes {
569
461
  MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
570
462
  PrimaryAccountNumber: string | undefined;
571
463
  PanSequenceNumber: string | undefined;
572
464
  ApplicationTransactionCounter: string | undefined;
573
465
  }
574
- export declare const PinBlockLengthPosition: {
575
- readonly FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK";
576
- readonly NONE: "NONE";
577
- };
578
- export type PinBlockLengthPosition =
579
- (typeof PinBlockLengthPosition)[keyof typeof PinBlockLengthPosition];
580
- export declare const PinBlockPaddingType: {
581
- readonly ISO_IEC_7816_4: "ISO_IEC_7816_4";
582
- readonly NO_PADDING: "NO_PADDING";
583
- };
584
- export type PinBlockPaddingType =
585
- (typeof PinBlockPaddingType)[keyof typeof PinBlockPaddingType];
586
466
  export interface EmvCommonAttributes {
587
467
  MajorKeyDerivationMode: MajorKeyDerivationMode | undefined;
588
468
  PrimaryAccountNumber: string | undefined;
@@ -719,31 +599,11 @@ export interface GenerateCardValidationDataOutput {
719
599
  KeyCheckValue: string | undefined;
720
600
  ValidationData: string | undefined;
721
601
  }
722
- export declare const MacAlgorithm: {
723
- readonly CMAC: "CMAC";
724
- readonly HMAC: "HMAC";
725
- readonly HMAC_SHA224: "HMAC_SHA224";
726
- readonly HMAC_SHA256: "HMAC_SHA256";
727
- readonly HMAC_SHA384: "HMAC_SHA384";
728
- readonly HMAC_SHA512: "HMAC_SHA512";
729
- readonly ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1";
730
- readonly ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3";
731
- };
732
- export type MacAlgorithm = (typeof MacAlgorithm)[keyof typeof MacAlgorithm];
733
602
  export interface MacAlgorithmDukpt {
734
603
  KeySerialNumber: string | undefined;
735
604
  DukptKeyVariant: DukptKeyVariant | undefined;
736
605
  DukptDerivationType?: DukptDerivationType | undefined;
737
606
  }
738
- export declare const SessionKeyDerivationMode: {
739
- readonly AMEX: "AMEX";
740
- readonly EMV2000: "EMV2000";
741
- readonly EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY";
742
- readonly MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY";
743
- readonly VISA: "VISA";
744
- };
745
- export type SessionKeyDerivationMode =
746
- (typeof SessionKeyDerivationMode)[keyof typeof SessionKeyDerivationMode];
747
607
  export type SessionKeyDerivationValue =
748
608
  | SessionKeyDerivationValue.ApplicationCryptogramMember
749
609
  | SessionKeyDerivationValue.ApplicationTransactionCounterMember
@@ -853,13 +713,6 @@ export interface GenerateMacOutput {
853
713
  KeyCheckValue: string | undefined;
854
714
  Mac: string | undefined;
855
715
  }
856
- export declare const PinBlockFormatForEmvPinChange: {
857
- readonly ISO_FORMAT_0: "ISO_FORMAT_0";
858
- readonly ISO_FORMAT_1: "ISO_FORMAT_1";
859
- readonly ISO_FORMAT_3: "ISO_FORMAT_3";
860
- };
861
- export type PinBlockFormatForEmvPinChange =
862
- (typeof PinBlockFormatForEmvPinChange)[keyof typeof PinBlockFormatForEmvPinChange];
863
716
  export interface GenerateMacEmvPinChangeInput {
864
717
  NewPinPekIdentifier: string | undefined;
865
718
  NewEncryptedPinBlock: string | undefined;
@@ -997,14 +850,6 @@ export declare namespace PinGenerationAttributes {
997
850
  _: (name: string, value: any) => T;
998
851
  }
999
852
  }
1000
- export declare const PinBlockFormatForPinData: {
1001
- readonly ISO_FORMAT_0: "ISO_FORMAT_0";
1002
- readonly ISO_FORMAT_1: "ISO_FORMAT_1";
1003
- readonly ISO_FORMAT_3: "ISO_FORMAT_3";
1004
- readonly ISO_FORMAT_4: "ISO_FORMAT_4";
1005
- };
1006
- export type PinBlockFormatForPinData =
1007
- (typeof PinBlockFormatForPinData)[keyof typeof PinBlockFormatForPinData];
1008
853
  export interface GeneratePinDataInput {
1009
854
  GenerationKeyIdentifier: string | undefined;
1010
855
  EncryptionKeyIdentifier: string | undefined;
@@ -1239,15 +1084,6 @@ export declare const VerificationFailedReason: {
1239
1084
  };
1240
1085
  export type VerificationFailedReason =
1241
1086
  (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason];
1242
- export declare class VerificationFailedException extends __BaseException {
1243
- readonly name: "VerificationFailedException";
1244
- readonly $fault: "client";
1245
- Reason: VerificationFailedReason | undefined;
1246
- Message: string | undefined;
1247
- constructor(
1248
- opts: __ExceptionOptionType<VerificationFailedException, __BaseException>
1249
- );
1250
- }
1251
1087
  export interface SessionKeyAmex {
1252
1088
  PrimaryAccountNumber: string | undefined;
1253
1089
  PanSequenceNumber: string | undefined;
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.933.0",
4
+ "version": "3.935.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,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";