@aws-sdk/client-payment-cryptography 3.987.0 → 3.988.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 { defaultPaymentCryptographyHttpAuthSchemeProvider } 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: "2021-09-14",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.paymentcryptography",
30
+ errorTypeRegistries,
29
31
  version: "2021-09-14",
30
32
  serviceTarget: "PaymentCryptographyControlPlane",
31
33
  },
@@ -217,12 +217,68 @@ const _WS = "WrappingSpec";
217
217
  const _c = "client";
218
218
  const _e = "error";
219
219
  const _hE = "httpError";
220
- const _s = "server";
221
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptography";
220
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptography";
221
+ const _se = "server";
222
222
  const n0 = "com.amazonaws.paymentcryptography";
223
223
  import { TypeRegistry } from "@smithy/core/schema";
224
224
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, ValidationException, } from "../models/errors";
225
225
  import { PaymentCryptographyServiceException } from "../models/PaymentCryptographyServiceException";
226
+ const _s_registry = TypeRegistry.for(_s);
227
+ export var PaymentCryptographyServiceException$ = [-3, _s, "PaymentCryptographyServiceException", 0, [], []];
228
+ _s_registry.registerError(PaymentCryptographyServiceException$, PaymentCryptographyServiceException);
229
+ const n0_registry = TypeRegistry.for(n0);
230
+ export var AccessDeniedException$ = [-3, n0, _ADE,
231
+ { [_e]: _c, [_hE]: 403 },
232
+ [_M],
233
+ [0]
234
+ ];
235
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
236
+ export var ConflictException$ = [-3, n0, _CE,
237
+ { [_e]: _c, [_hE]: 409 },
238
+ [_M],
239
+ [0]
240
+ ];
241
+ n0_registry.registerError(ConflictException$, ConflictException);
242
+ export var InternalServerException$ = [-3, n0, _ISE,
243
+ { [_e]: _se, [_hE]: 500 },
244
+ [_M],
245
+ [0]
246
+ ];
247
+ n0_registry.registerError(InternalServerException$, InternalServerException);
248
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
249
+ { [_e]: _c, [_hE]: 404 },
250
+ [_RI],
251
+ [0]
252
+ ];
253
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
254
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
255
+ { [_e]: _c, [_hE]: 402 },
256
+ [_M],
257
+ [0]
258
+ ];
259
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
260
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
261
+ { [_e]: _se, [_hE]: 503 },
262
+ [_M],
263
+ [0]
264
+ ];
265
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
266
+ export var ThrottlingException$ = [-3, n0, _TE,
267
+ { [_e]: _c, [_hE]: 429 },
268
+ [_M],
269
+ [0]
270
+ ];
271
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
272
+ export var ValidationException$ = [-3, n0, _VE,
273
+ { [_e]: _c, [_hE]: 400 },
274
+ [_M],
275
+ [0]
276
+ ];
277
+ n0_registry.registerError(ValidationException$, ValidationException);
278
+ export const errorTypeRegistries = [
279
+ _s_registry,
280
+ n0_registry,
281
+ ];
226
282
  var CertificateSigningRequestType = [0, n0, _CSRT, 8, 0];
227
283
  var KeyMaterial = [0, n0, _KM, 8, 0];
228
284
  var OptionalBlockId = [0, n0, _OBI, 8, 0];
@@ -230,12 +286,6 @@ var OptionalBlockValue = [0, n0, _OBV, 8, 0];
230
286
  var Tr31WrappedKeyBlock = [0, n0, _TWKB, 8, 0];
231
287
  var Tr34WrappedKeyBlock = [0, n0, _TWKBr, 8, 0];
232
288
  var WrappedKeyCryptogram = [0, n0, _WKC, 8, 0];
233
- export var AccessDeniedException$ = [-3, n0, _ADE,
234
- { [_e]: _c, [_hE]: 403 },
235
- [_M],
236
- [0]
237
- ];
238
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
239
289
  export var AddKeyReplicationRegionsInput$ = [3, n0, _AKRRI,
240
290
  0,
241
291
  [_KI, _RR],
@@ -256,12 +306,6 @@ export var CertificateSubjectType$ = [3, n0, _CST,
256
306
  [_CN, _OU, _O, _C, _Co, _SOP, _EA],
257
307
  [0, 0, 0, 0, 0, 0, 0], 1
258
308
  ];
259
- export var ConflictException$ = [-3, n0, _CE,
260
- { [_e]: _c, [_hE]: 409 },
261
- [_M],
262
- [0]
263
- ];
264
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
265
309
  export var CreateAliasInput$ = [3, n0, _CAI,
266
310
  0,
267
311
  [_AN, _KA],
@@ -472,12 +516,6 @@ export var ImportTr34KeyBlock$ = [3, n0, _ITKBm,
472
516
  [_CAPKI, _SKC, _WKB, _KBF, _IT, _WKI, _WKCr, _RN],
473
517
  [0, 0, [() => Tr34WrappedKeyBlock, 0], 0, 0, 0, 0, 0], 4
474
518
  ];
475
- export var InternalServerException$ = [-3, n0, _ISE,
476
- { [_e]: _s, [_hE]: 500 },
477
- [_M],
478
- [0]
479
- ];
480
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
481
519
  export var Key$ = [3, n0, _K,
482
520
  0,
483
521
  [_KA, _KAe, _KCV, _KCVA, _En, _E, _KS, _KO, _CT, _UST, _USTs, _DPT, _DT, _DKU, _MRKT, _PR, _RS, _UDRR],
@@ -548,12 +586,6 @@ export var ReplicationStatusType$ = [3, n0, _RST,
548
586
  [_St, _SM],
549
587
  [0, 0], 1
550
588
  ];
551
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
552
- { [_e]: _c, [_hE]: 404 },
553
- [_RI],
554
- [0]
555
- ];
556
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
557
589
  export var RestoreKeyInput$ = [3, n0, _RKI,
558
590
  0,
559
591
  [_KI],
@@ -569,18 +601,6 @@ export var RootCertificatePublicKey$ = [3, n0, _RCPK,
569
601
  [_KAe, _PKC],
570
602
  [() => KeyAttributes$, 0], 2
571
603
  ];
572
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
573
- { [_e]: _c, [_hE]: 402 },
574
- [_M],
575
- [0]
576
- ];
577
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
578
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
579
- { [_e]: _s, [_hE]: 503 },
580
- [_M],
581
- [0]
582
- ];
583
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
584
604
  export var StartKeyUsageInput$ = [3, n0, _SKUI,
585
605
  0,
586
606
  [_KI],
@@ -616,12 +636,6 @@ export var TagResourceOutput$ = [3, n0, _TRO,
616
636
  [],
617
637
  []
618
638
  ];
619
- export var ThrottlingException$ = [-3, n0, _TE,
620
- { [_e]: _c, [_hE]: 429 },
621
- [_M],
622
- [0]
623
- ];
624
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
625
639
  export var TrustedCertificatePublicKey$ = [3, n0, _TCPK,
626
640
  0,
627
641
  [_KAe, _PKC, _CAPKI],
@@ -647,19 +661,11 @@ export var UpdateAliasOutput$ = [3, n0, _UAO,
647
661
  [_A],
648
662
  [() => Alias$], 1
649
663
  ];
650
- export var ValidationException$ = [-3, n0, _VE,
651
- { [_e]: _c, [_hE]: 400 },
652
- [_M],
653
- [0]
654
- ];
655
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
656
664
  export var WrappedKey$ = [3, n0, _WK,
657
665
  0,
658
666
  [_WKAr, _WKMF, _KM, _KCV, _KCVA],
659
667
  [0, 0, [() => KeyMaterial, 0], 0, 0], 3
660
668
  ];
661
- export var PaymentCryptographyServiceException$ = [-3, _sm, "PaymentCryptographyServiceException", 0, [], []];
662
- TypeRegistry.for(_sm).registerError(PaymentCryptographyServiceException$, PaymentCryptographyServiceException);
663
669
  var Aliases = [1, n0, _Al,
664
670
  0, () => Alias$
665
671
  ];
@@ -1,10 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var PaymentCryptographyServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
10
+ export declare var ThrottlingException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
3
18
  export declare var AddKeyReplicationRegionsInput$: StaticStructureSchema;
4
19
  export declare var AddKeyReplicationRegionsOutput$: StaticStructureSchema;
5
20
  export declare var Alias$: StaticStructureSchema;
6
21
  export declare var CertificateSubjectType$: StaticStructureSchema;
7
- export declare var ConflictException$: StaticErrorSchema;
8
22
  export declare var CreateAliasInput$: StaticStructureSchema;
9
23
  export declare var CreateAliasOutput$: StaticStructureSchema;
10
24
  export declare var CreateKeyInput$: StaticStructureSchema;
@@ -47,7 +61,6 @@ export declare var ImportKeyInput$: StaticStructureSchema;
47
61
  export declare var ImportKeyOutput$: StaticStructureSchema;
48
62
  export declare var ImportTr31KeyBlock$: StaticStructureSchema;
49
63
  export declare var ImportTr34KeyBlock$: StaticStructureSchema;
50
- export declare var InternalServerException$: StaticErrorSchema;
51
64
  export declare var Key$: StaticStructureSchema;
52
65
  export declare var KeyAttributes$: StaticStructureSchema;
53
66
  export declare var KeyBlockHeaders$: StaticStructureSchema;
@@ -62,12 +75,9 @@ export declare var ListTagsForResourceOutput$: StaticStructureSchema;
62
75
  export declare var RemoveKeyReplicationRegionsInput$: StaticStructureSchema;
63
76
  export declare var RemoveKeyReplicationRegionsOutput$: StaticStructureSchema;
64
77
  export declare var ReplicationStatusType$: StaticStructureSchema;
65
- export declare var ResourceNotFoundException$: StaticErrorSchema;
66
78
  export declare var RestoreKeyInput$: StaticStructureSchema;
67
79
  export declare var RestoreKeyOutput$: StaticStructureSchema;
68
80
  export declare var RootCertificatePublicKey$: StaticStructureSchema;
69
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
70
- export declare var ServiceUnavailableException$: StaticErrorSchema;
71
81
  export declare var StartKeyUsageInput$: StaticStructureSchema;
72
82
  export declare var StartKeyUsageOutput$: StaticStructureSchema;
73
83
  export declare var StopKeyUsageInput$: StaticStructureSchema;
@@ -75,15 +85,12 @@ export declare var StopKeyUsageOutput$: StaticStructureSchema;
75
85
  export declare var Tag$: StaticStructureSchema;
76
86
  export declare var TagResourceInput$: StaticStructureSchema;
77
87
  export declare var TagResourceOutput$: StaticStructureSchema;
78
- export declare var ThrottlingException$: StaticErrorSchema;
79
88
  export declare var TrustedCertificatePublicKey$: StaticStructureSchema;
80
89
  export declare var UntagResourceInput$: StaticStructureSchema;
81
90
  export declare var UntagResourceOutput$: StaticStructureSchema;
82
91
  export declare var UpdateAliasInput$: StaticStructureSchema;
83
92
  export declare var UpdateAliasOutput$: StaticStructureSchema;
84
- export declare var ValidationException$: StaticErrorSchema;
85
93
  export declare var WrappedKey$: StaticStructureSchema;
86
- export declare var PaymentCryptographyServiceException$: StaticErrorSchema;
87
94
  export declare var DiffieHellmanDerivationData$: StaticUnionSchema;
88
95
  export declare var ExportKeyMaterial$: StaticUnionSchema;
89
96
  export declare var ImportKeyMaterial$: StaticUnionSchema;
@@ -1,15 +1,24 @@
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 PaymentCryptographyServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var InternalServerException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
14
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
15
+ export declare var ThrottlingException$: StaticErrorSchema;
16
+ export declare var ValidationException$: StaticErrorSchema;
17
+ export declare const errorTypeRegistries: TypeRegistry[];
8
18
  export declare var AddKeyReplicationRegionsInput$: StaticStructureSchema;
9
19
  export declare var AddKeyReplicationRegionsOutput$: StaticStructureSchema;
10
20
  export declare var Alias$: StaticStructureSchema;
11
21
  export declare var CertificateSubjectType$: StaticStructureSchema;
12
- export declare var ConflictException$: StaticErrorSchema;
13
22
  export declare var CreateAliasInput$: StaticStructureSchema;
14
23
  export declare var CreateAliasOutput$: StaticStructureSchema;
15
24
  export declare var CreateKeyInput$: StaticStructureSchema;
@@ -52,7 +61,6 @@ export declare var ImportKeyInput$: StaticStructureSchema;
52
61
  export declare var ImportKeyOutput$: StaticStructureSchema;
53
62
  export declare var ImportTr31KeyBlock$: StaticStructureSchema;
54
63
  export declare var ImportTr34KeyBlock$: StaticStructureSchema;
55
- export declare var InternalServerException$: StaticErrorSchema;
56
64
  export declare var Key$: StaticStructureSchema;
57
65
  export declare var KeyAttributes$: StaticStructureSchema;
58
66
  export declare var KeyBlockHeaders$: StaticStructureSchema;
@@ -67,12 +75,9 @@ export declare var ListTagsForResourceOutput$: StaticStructureSchema;
67
75
  export declare var RemoveKeyReplicationRegionsInput$: StaticStructureSchema;
68
76
  export declare var RemoveKeyReplicationRegionsOutput$: StaticStructureSchema;
69
77
  export declare var ReplicationStatusType$: StaticStructureSchema;
70
- export declare var ResourceNotFoundException$: StaticErrorSchema;
71
78
  export declare var RestoreKeyInput$: StaticStructureSchema;
72
79
  export declare var RestoreKeyOutput$: StaticStructureSchema;
73
80
  export declare var RootCertificatePublicKey$: StaticStructureSchema;
74
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
75
- export declare var ServiceUnavailableException$: StaticErrorSchema;
76
81
  export declare var StartKeyUsageInput$: StaticStructureSchema;
77
82
  export declare var StartKeyUsageOutput$: StaticStructureSchema;
78
83
  export declare var StopKeyUsageInput$: StaticStructureSchema;
@@ -80,15 +85,12 @@ export declare var StopKeyUsageOutput$: StaticStructureSchema;
80
85
  export declare var Tag$: StaticStructureSchema;
81
86
  export declare var TagResourceInput$: StaticStructureSchema;
82
87
  export declare var TagResourceOutput$: StaticStructureSchema;
83
- export declare var ThrottlingException$: StaticErrorSchema;
84
88
  export declare var TrustedCertificatePublicKey$: StaticStructureSchema;
85
89
  export declare var UntagResourceInput$: StaticStructureSchema;
86
90
  export declare var UntagResourceOutput$: StaticStructureSchema;
87
91
  export declare var UpdateAliasInput$: StaticStructureSchema;
88
92
  export declare var UpdateAliasOutput$: StaticStructureSchema;
89
- export declare var ValidationException$: StaticErrorSchema;
90
93
  export declare var WrappedKey$: StaticStructureSchema;
91
- export declare var PaymentCryptographyServiceException$: StaticErrorSchema;
92
94
  export declare var DiffieHellmanDerivationData$: StaticUnionSchema;
93
95
  export declare var ExportKeyMaterial$: StaticUnionSchema;
94
96
  export declare var ImportKeyMaterial$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-payment-cryptography",
3
3
  "description": "AWS SDK for JavaScript Payment Cryptography Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.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",
@@ -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.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
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.8",
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.988.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.6",
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",