@aws-sdk/client-payment-cryptography-data 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultPaymentCryptographyDataHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2022-02-03",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.paymentcryptographydata",
30
+ errorTypeRegistries,
29
31
  version: "2022-02-03",
30
32
  serviceTarget: "PaymentCryptographyDataPlane",
31
33
  },
@@ -289,12 +289,56 @@ const _h = "http";
289
289
  const _hE = "httpError";
290
290
  const _m = "message";
291
291
  const _p = "path";
292
- const _s = "server";
293
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptographydata";
292
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptographydata";
293
+ const _se = "server";
294
294
  const n0 = "com.amazonaws.paymentcryptographydata";
295
295
  import { TypeRegistry } from "@smithy/core/schema";
296
296
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, VerificationFailedException, } from "../models/errors";
297
297
  import { PaymentCryptographyDataServiceException } from "../models/PaymentCryptographyDataServiceException";
298
+ const _s_registry = TypeRegistry.for(_s);
299
+ export var PaymentCryptographyDataServiceException$ = [-3, _s, "PaymentCryptographyDataServiceException", 0, [], []];
300
+ _s_registry.registerError(PaymentCryptographyDataServiceException$, PaymentCryptographyDataServiceException);
301
+ const n0_registry = TypeRegistry.for(n0);
302
+ export var AccessDeniedException$ = [-3, n0, _ADE,
303
+ { [_e]: _c, [_hE]: 403 },
304
+ [_M],
305
+ [0]
306
+ ];
307
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
308
+ export var InternalServerException$ = [-3, n0, _ISE,
309
+ { [_e]: _se, [_hE]: 500 },
310
+ [_M],
311
+ [0]
312
+ ];
313
+ n0_registry.registerError(InternalServerException$, InternalServerException);
314
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
315
+ { [_e]: _c, [_hE]: 404 },
316
+ [_RI],
317
+ [0]
318
+ ];
319
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
320
+ export var ThrottlingException$ = [-3, n0, _TE,
321
+ { [_e]: _c, [_hE]: 429 },
322
+ [_M],
323
+ [0]
324
+ ];
325
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
326
+ export var ValidationException$ = [-3, n0, _VE,
327
+ { [_e]: _c },
328
+ [_m, _fL],
329
+ [0, () => ValidationExceptionFieldList], 1
330
+ ];
331
+ n0_registry.registerError(ValidationException$, ValidationException);
332
+ export var VerificationFailedException$ = [-3, n0, _VFE,
333
+ { [_e]: _c, [_hE]: 400 },
334
+ [_R, _M],
335
+ [0, 0], 2
336
+ ];
337
+ n0_registry.registerError(VerificationFailedException$, VerificationFailedException);
338
+ export const errorTypeRegistries = [
339
+ _s_registry,
340
+ n0_registry,
341
+ ];
298
342
  var ApplicationCryptogramType = [0, n0, _ACT, 8, 0];
299
343
  var As2805RandomKeyMaterial = [0, n0, _ARKM, 8, 0];
300
344
  var AuthRequestCryptogramType = [0, n0, _ARCT, 8, 0];
@@ -325,12 +369,6 @@ var TrackDataType = [0, n0, _TDT, 8, 0];
325
369
  var TransactionDataType = [0, n0, _TDTr, 8, 0];
326
370
  var ValidationDataType = [0, n0, _VDT, 8, 0];
327
371
  var VerificationValueType = [0, n0, _VVT, 8, 0];
328
- export var AccessDeniedException$ = [-3, n0, _ADE,
329
- { [_e]: _c, [_hE]: 403 },
330
- [_M],
331
- [0]
332
- ];
333
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
334
372
  export var AmexAttributes$ = [3, n0, _AA,
335
373
  0,
336
374
  [_MKDM, _PAN, _PSN, _ATC, _ARKI, _CPA],
@@ -536,12 +574,6 @@ export var IncomingDiffieHellmanTr31KeyBlock$ = [3, n0, _IDHTKB,
536
574
  [_PKI, _CAPKI, _PKC, _DKA, _KDF, _KDHA, _DD, _WKB],
537
575
  [0, 0, 0, 0, 0, 0, () => DiffieHellmanDerivationData$, [() => Tr31WrappedKeyBlock, 0]], 8
538
576
  ];
539
- export var InternalServerException$ = [-3, n0, _ISE,
540
- { [_e]: _s, [_hE]: 500 },
541
- [_M],
542
- [0]
543
- ];
544
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
545
577
  export var KekValidationRequest$ = [3, n0, _KVR,
546
578
  0,
547
579
  [_DKA],
@@ -582,12 +614,6 @@ export var ReEncryptDataOutput$ = [3, n0, _REDO,
582
614
  [_KA, _KCV, _CT],
583
615
  [0, 0, [() => CipherTextType, 0]], 3
584
616
  ];
585
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
586
- { [_e]: _c, [_hE]: 404 },
587
- [_RI],
588
- [0]
589
- ];
590
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
591
617
  export var SessionKeyAmex$ = [3, n0, _SKA,
592
618
  0,
593
619
  [_PAN, _PSN],
@@ -618,12 +644,6 @@ export var SymmetricEncryptionAttributes$ = [3, n0, _SEA,
618
644
  [_Mo, _IV, _PT],
619
645
  [0, [() => InitializationVectorType, 0], 0], 1
620
646
  ];
621
- export var ThrottlingException$ = [-3, n0, _TE,
622
- { [_e]: _c, [_hE]: 429 },
623
- [_M],
624
- [0]
625
- ];
626
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
627
647
  export var TranslateKeyMaterialInput$ = [3, n0, _TKMI,
628
648
  0,
629
649
  [_IKM, _OKM, _KCVA],
@@ -659,23 +679,11 @@ export var TranslationPinDataIsoFormat1$ = [3, n0, _TPDIFr,
659
679
  [],
660
680
  []
661
681
  ];
662
- export var ValidationException$ = [-3, n0, _VE,
663
- { [_e]: _c },
664
- [_m, _fL],
665
- [0, () => ValidationExceptionFieldList], 1
666
- ];
667
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
668
682
  export var ValidationExceptionField$ = [3, n0, _VEF,
669
683
  0,
670
684
  [_p, _m],
671
685
  [0, 0], 2
672
686
  ];
673
- export var VerificationFailedException$ = [-3, n0, _VFE,
674
- { [_e]: _c, [_hE]: 400 },
675
- [_R, _M],
676
- [0, 0], 2
677
- ];
678
- TypeRegistry.for(n0).registerError(VerificationFailedException$, VerificationFailedException);
679
687
  export var VerifyAuthRequestCryptogramInput$ = [3, n0, _VARCI,
680
688
  0,
681
689
  [_KI, _TDr, _ARCu, _MKDM, _SKDA, _ARA],
@@ -751,8 +759,6 @@ export var WrappedWorkingKey$ = [3, n0, _WWK,
751
759
  [_WKM, _KCV, _WKMF],
752
760
  [[() => KeyMaterial, 0], 0, 0], 3
753
761
  ];
754
- export var PaymentCryptographyDataServiceException$ = [-3, _sm, "PaymentCryptographyDataServiceException", 0, [], []];
755
- TypeRegistry.for(_sm).registerError(PaymentCryptographyDataServiceException$, PaymentCryptographyDataServiceException);
756
762
  var ValidationExceptionFieldList = [1, n0, _VEFL,
757
763
  0, () => ValidationExceptionField$
758
764
  ];
@@ -1,5 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var PaymentCryptographyDataServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ThrottlingException$: StaticErrorSchema;
8
+ export declare var ValidationException$: StaticErrorSchema;
9
+ export declare var VerificationFailedException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
3
16
  export declare var AmexAttributes$: StaticStructureSchema;
4
17
  export declare var AmexCardSecurityCodeVersion1$: StaticStructureSchema;
5
18
  export declare var AmexCardSecurityCodeVersion2$: StaticStructureSchema;
@@ -41,7 +54,6 @@ export declare var Ibm3624PinOffset$: StaticStructureSchema;
41
54
  export declare var Ibm3624PinVerification$: StaticStructureSchema;
42
55
  export declare var Ibm3624RandomPin$: StaticStructureSchema;
43
56
  export declare var IncomingDiffieHellmanTr31KeyBlock$: StaticStructureSchema;
44
- export declare var InternalServerException$: StaticErrorSchema;
45
57
  export declare var KekValidationRequest$: StaticStructureSchema;
46
58
  export declare var KekValidationResponse$: StaticStructureSchema;
47
59
  export declare var MacAlgorithmDukpt$: StaticStructureSchema;
@@ -50,14 +62,12 @@ export declare var MasterCardAttributes$: StaticStructureSchema;
50
62
  export declare var OutgoingTr31KeyBlock$: StaticStructureSchema;
51
63
  export declare var ReEncryptDataInput$: StaticStructureSchema;
52
64
  export declare var ReEncryptDataOutput$: StaticStructureSchema;
53
- export declare var ResourceNotFoundException$: StaticErrorSchema;
54
65
  export declare var SessionKeyAmex$: StaticStructureSchema;
55
66
  export declare var SessionKeyEmv2000$: StaticStructureSchema;
56
67
  export declare var SessionKeyEmvCommon$: StaticStructureSchema;
57
68
  export declare var SessionKeyMastercard$: StaticStructureSchema;
58
69
  export declare var SessionKeyVisa$: StaticStructureSchema;
59
70
  export declare var SymmetricEncryptionAttributes$: StaticStructureSchema;
60
- export declare var ThrottlingException$: StaticErrorSchema;
61
71
  export declare var TranslateKeyMaterialInput$: StaticStructureSchema;
62
72
  export declare var TranslateKeyMaterialOutput$: StaticStructureSchema;
63
73
  export declare var TranslatePinDataInput$: StaticStructureSchema;
@@ -65,9 +75,7 @@ export declare var TranslatePinDataOutput$: StaticStructureSchema;
65
75
  export declare var TranslationPinDataAs2805Format0$: StaticStructureSchema;
66
76
  export declare var TranslationPinDataIsoFormat034$: StaticStructureSchema;
67
77
  export declare var TranslationPinDataIsoFormat1$: StaticStructureSchema;
68
- export declare var ValidationException$: StaticErrorSchema;
69
78
  export declare var ValidationExceptionField$: StaticStructureSchema;
70
- export declare var VerificationFailedException$: StaticErrorSchema;
71
79
  export declare var VerifyAuthRequestCryptogramInput$: StaticStructureSchema;
72
80
  export declare var VerifyAuthRequestCryptogramOutput$: StaticStructureSchema;
73
81
  export declare var VerifyCardValidationDataInput$: StaticStructureSchema;
@@ -83,7 +91,6 @@ export declare var VisaPinVerification$: StaticStructureSchema;
83
91
  export declare var VisaPinVerificationValue$: StaticStructureSchema;
84
92
  export declare var WrappedKey$: StaticStructureSchema;
85
93
  export declare var WrappedWorkingKey$: StaticStructureSchema;
86
- export declare var PaymentCryptographyDataServiceException$: StaticErrorSchema;
87
94
  export declare var As2805KekValidationType$: StaticUnionSchema;
88
95
  export declare var CardGenerationAttributes$: StaticUnionSchema;
89
96
  export declare var CardVerificationAttributes$: StaticUnionSchema;
@@ -1,10 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var PaymentCryptographyDataServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare var ValidationException$: StaticErrorSchema;
14
+ export declare var VerificationFailedException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
8
16
  export declare var AmexAttributes$: StaticStructureSchema;
9
17
  export declare var AmexCardSecurityCodeVersion1$: StaticStructureSchema;
10
18
  export declare var AmexCardSecurityCodeVersion2$: StaticStructureSchema;
@@ -46,7 +54,6 @@ export declare var Ibm3624PinOffset$: StaticStructureSchema;
46
54
  export declare var Ibm3624PinVerification$: StaticStructureSchema;
47
55
  export declare var Ibm3624RandomPin$: StaticStructureSchema;
48
56
  export declare var IncomingDiffieHellmanTr31KeyBlock$: StaticStructureSchema;
49
- export declare var InternalServerException$: StaticErrorSchema;
50
57
  export declare var KekValidationRequest$: StaticStructureSchema;
51
58
  export declare var KekValidationResponse$: StaticStructureSchema;
52
59
  export declare var MacAlgorithmDukpt$: StaticStructureSchema;
@@ -55,14 +62,12 @@ export declare var MasterCardAttributes$: StaticStructureSchema;
55
62
  export declare var OutgoingTr31KeyBlock$: StaticStructureSchema;
56
63
  export declare var ReEncryptDataInput$: StaticStructureSchema;
57
64
  export declare var ReEncryptDataOutput$: StaticStructureSchema;
58
- export declare var ResourceNotFoundException$: StaticErrorSchema;
59
65
  export declare var SessionKeyAmex$: StaticStructureSchema;
60
66
  export declare var SessionKeyEmv2000$: StaticStructureSchema;
61
67
  export declare var SessionKeyEmvCommon$: StaticStructureSchema;
62
68
  export declare var SessionKeyMastercard$: StaticStructureSchema;
63
69
  export declare var SessionKeyVisa$: StaticStructureSchema;
64
70
  export declare var SymmetricEncryptionAttributes$: StaticStructureSchema;
65
- export declare var ThrottlingException$: StaticErrorSchema;
66
71
  export declare var TranslateKeyMaterialInput$: StaticStructureSchema;
67
72
  export declare var TranslateKeyMaterialOutput$: StaticStructureSchema;
68
73
  export declare var TranslatePinDataInput$: StaticStructureSchema;
@@ -70,9 +75,7 @@ export declare var TranslatePinDataOutput$: StaticStructureSchema;
70
75
  export declare var TranslationPinDataAs2805Format0$: StaticStructureSchema;
71
76
  export declare var TranslationPinDataIsoFormat034$: StaticStructureSchema;
72
77
  export declare var TranslationPinDataIsoFormat1$: StaticStructureSchema;
73
- export declare var ValidationException$: StaticErrorSchema;
74
78
  export declare var ValidationExceptionField$: StaticStructureSchema;
75
- export declare var VerificationFailedException$: StaticErrorSchema;
76
79
  export declare var VerifyAuthRequestCryptogramInput$: StaticStructureSchema;
77
80
  export declare var VerifyAuthRequestCryptogramOutput$: StaticStructureSchema;
78
81
  export declare var VerifyCardValidationDataInput$: StaticStructureSchema;
@@ -88,7 +91,6 @@ export declare var VisaPinVerification$: StaticStructureSchema;
88
91
  export declare var VisaPinVerificationValue$: StaticStructureSchema;
89
92
  export declare var WrappedKey$: StaticStructureSchema;
90
93
  export declare var WrappedWorkingKey$: StaticStructureSchema;
91
- export declare var PaymentCryptographyDataServiceException$: StaticErrorSchema;
92
94
  export declare var As2805KekValidationType$: StaticUnionSchema;
93
95
  export declare var CardGenerationAttributes$: StaticUnionSchema;
94
96
  export declare var CardVerificationAttributes$: StaticUnionSchema;
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.987.0",
4
+ "version": "3.989.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,38 +21,38 @@
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.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",