@aws-sdk/client-pinpoint-email 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 { defaultPinpointEmailHttpAuthSchemeProvider } 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: "2018-07-26",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.pinpointemail",
30
+ errorTypeRegistries,
29
31
  version: "2018-07-26",
30
32
  serviceTarget: "AmazonPinpointEmailService",
31
33
  },
@@ -308,30 +308,80 @@ const _h = "http";
308
308
  const _hE = "httpError";
309
309
  const _hQ = "httpQuery";
310
310
  const _m = "message";
311
- const _s = "server";
312
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointemail";
311
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointemail";
312
+ const _se = "server";
313
313
  const n0 = "com.amazonaws.pinpointemail";
314
314
  import { TypeRegistry } from "@smithy/core/schema";
315
315
  import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/errors";
316
316
  import { PinpointEmailServiceException } from "../models/PinpointEmailServiceException";
317
+ const _s_registry = TypeRegistry.for(_s);
318
+ export var PinpointEmailServiceException$ = [-3, _s, "PinpointEmailServiceException", 0, [], []];
319
+ _s_registry.registerError(PinpointEmailServiceException$, PinpointEmailServiceException);
320
+ const n0_registry = TypeRegistry.for(n0);
317
321
  export var AccountSuspendedException$ = [-3, n0, _ASE,
318
322
  { [_e]: _c, [_hE]: 400 },
319
323
  [_m],
320
324
  [0]
321
325
  ];
322
- TypeRegistry.for(n0).registerError(AccountSuspendedException$, AccountSuspendedException);
326
+ n0_registry.registerError(AccountSuspendedException$, AccountSuspendedException);
323
327
  export var AlreadyExistsException$ = [-3, n0, _AEE,
324
328
  { [_e]: _c, [_hE]: 400 },
325
329
  [_m],
326
330
  [0]
327
331
  ];
328
- TypeRegistry.for(n0).registerError(AlreadyExistsException$, AlreadyExistsException);
332
+ n0_registry.registerError(AlreadyExistsException$, AlreadyExistsException);
329
333
  export var BadRequestException$ = [-3, n0, _BRE,
330
334
  { [_e]: _c, [_hE]: 400 },
331
335
  [_m],
332
336
  [0]
333
337
  ];
334
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
338
+ n0_registry.registerError(BadRequestException$, BadRequestException);
339
+ export var ConcurrentModificationException$ = [-3, n0, _CME,
340
+ { [_e]: _se, [_hE]: 500 },
341
+ [_m],
342
+ [0]
343
+ ];
344
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
345
+ export var LimitExceededException$ = [-3, n0, _LEE,
346
+ { [_e]: _c, [_hE]: 400 },
347
+ [_m],
348
+ [0]
349
+ ];
350
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
351
+ export var MailFromDomainNotVerifiedException$ = [-3, n0, _MFDNVE,
352
+ { [_e]: _c, [_hE]: 400 },
353
+ [_m],
354
+ [0]
355
+ ];
356
+ n0_registry.registerError(MailFromDomainNotVerifiedException$, MailFromDomainNotVerifiedException);
357
+ export var MessageRejected$ = [-3, n0, _MR,
358
+ { [_e]: _c, [_hE]: 400 },
359
+ [_m],
360
+ [0]
361
+ ];
362
+ n0_registry.registerError(MessageRejected$, MessageRejected);
363
+ export var NotFoundException$ = [-3, n0, _NFE,
364
+ { [_e]: _c, [_hE]: 404 },
365
+ [_m],
366
+ [0]
367
+ ];
368
+ n0_registry.registerError(NotFoundException$, NotFoundException);
369
+ export var SendingPausedException$ = [-3, n0, _SPE,
370
+ { [_e]: _c, [_hE]: 400 },
371
+ [_m],
372
+ [0]
373
+ ];
374
+ n0_registry.registerError(SendingPausedException$, SendingPausedException);
375
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
376
+ { [_e]: _c, [_hE]: 429 },
377
+ [_m],
378
+ [0]
379
+ ];
380
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
381
+ export const errorTypeRegistries = [
382
+ _s_registry,
383
+ n0_registry,
384
+ ];
335
385
  export var BlacklistEntry$ = [3, n0, _BE,
336
386
  0,
337
387
  [_RN, _LT, _D],
@@ -352,12 +402,6 @@ export var CloudWatchDimensionConfiguration$ = [3, n0, _CWDC,
352
402
  [_DN, _DVS, _DDV],
353
403
  [0, 0, 0], 3
354
404
  ];
355
- export var ConcurrentModificationException$ = [-3, n0, _CME,
356
- { [_e]: _s, [_hE]: 500 },
357
- [_m],
358
- [0]
359
- ];
360
- TypeRegistry.for(n0).registerError(ConcurrentModificationException$, ConcurrentModificationException);
361
405
  export var Content$ = [3, n0, _C,
362
406
  0,
363
407
  [_Da, _Ch],
@@ -643,12 +687,6 @@ export var KinesisFirehoseDestination$ = [3, n0, _KFD,
643
687
  [_IRA, _DSA],
644
688
  [0, 0], 2
645
689
  ];
646
- export var LimitExceededException$ = [-3, n0, _LEE,
647
- { [_e]: _c, [_hE]: 400 },
648
- [_m],
649
- [0]
650
- ];
651
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
652
690
  export var ListConfigurationSetsRequest$ = [3, n0, _LCSR,
653
691
  0,
654
692
  [_NT, _PS],
@@ -714,34 +752,16 @@ export var MailFromAttributes$ = [3, n0, _MFA,
714
752
  [_MFD, _MFDS, _BOMF],
715
753
  [0, 0, 0], 3
716
754
  ];
717
- export var MailFromDomainNotVerifiedException$ = [-3, n0, _MFDNVE,
718
- { [_e]: _c, [_hE]: 400 },
719
- [_m],
720
- [0]
721
- ];
722
- TypeRegistry.for(n0).registerError(MailFromDomainNotVerifiedException$, MailFromDomainNotVerifiedException);
723
755
  export var Message$ = [3, n0, _M,
724
756
  0,
725
757
  [_S, _B],
726
758
  [() => Content$, () => Body$], 2
727
759
  ];
728
- export var MessageRejected$ = [-3, n0, _MR,
729
- { [_e]: _c, [_hE]: 400 },
730
- [_m],
731
- [0]
732
- ];
733
- TypeRegistry.for(n0).registerError(MessageRejected$, MessageRejected);
734
760
  export var MessageTag$ = [3, n0, _MT,
735
761
  0,
736
762
  [_N, _V],
737
763
  [0, 0], 2
738
764
  ];
739
- export var NotFoundException$ = [-3, n0, _NFE,
740
- { [_e]: _c, [_hE]: 404 },
741
- [_m],
742
- [0]
743
- ];
744
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
745
765
  export var OverallVolume$ = [3, n0, _OV,
746
766
  0,
747
767
  [_VS, _RRP, _DIP],
@@ -902,12 +922,6 @@ export var SendingOptions$ = [3, n0, _SO,
902
922
  [_SEe],
903
923
  [2]
904
924
  ];
905
- export var SendingPausedException$ = [-3, n0, _SPE,
906
- { [_e]: _c, [_hE]: 400 },
907
- [_m],
908
- [0]
909
- ];
910
- TypeRegistry.for(n0).registerError(SendingPausedException$, SendingPausedException);
911
925
  export var SendQuota$ = [3, n0, _SQ,
912
926
  0,
913
927
  [_MHS, _MSR, _SLH],
@@ -938,12 +952,6 @@ export var Template$ = [3, n0, _Te,
938
952
  [_TAe, _TD],
939
953
  [0, 0]
940
954
  ];
941
- export var TooManyRequestsException$ = [-3, n0, _TMRE,
942
- { [_e]: _c, [_hE]: 429 },
943
- [_m],
944
- [0]
945
- ];
946
- TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
947
955
  export var TrackingOptions$ = [3, n0, _TO,
948
956
  0,
949
957
  [_CRD],
@@ -974,8 +982,6 @@ export var VolumeStatistics$ = [3, n0, _VS,
974
982
  [_IRC, _SRC, _PI, _PSr],
975
983
  [1, 1, 1, 1]
976
984
  ];
977
- export var PinpointEmailServiceException$ = [-3, _sm, "PinpointEmailServiceException", 0, [], []];
978
- TypeRegistry.for(_sm).registerError(PinpointEmailServiceException$, PinpointEmailServiceException);
979
985
  var BlacklistEntries = [1, n0, _BEl,
980
986
  0, () => BlacklistEntry$
981
987
  ];
@@ -1,12 +1,26 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var PinpointEmailServiceException$: StaticErrorSchema;
2
4
  export declare var AccountSuspendedException$: StaticErrorSchema;
3
5
  export declare var AlreadyExistsException$: StaticErrorSchema;
4
6
  export declare var BadRequestException$: StaticErrorSchema;
7
+ export declare var ConcurrentModificationException$: StaticErrorSchema;
8
+ export declare var LimitExceededException$: StaticErrorSchema;
9
+ export declare var MailFromDomainNotVerifiedException$: StaticErrorSchema;
10
+ export declare var MessageRejected$: StaticErrorSchema;
11
+ export declare var NotFoundException$: StaticErrorSchema;
12
+ export declare var SendingPausedException$: StaticErrorSchema;
13
+ export declare var TooManyRequestsException$: StaticErrorSchema;
14
+ /**
15
+ * TypeRegistry instances containing modeled errors.
16
+ * @internal
17
+ *
18
+ */
19
+ export declare const errorTypeRegistries: TypeRegistry[];
5
20
  export declare var BlacklistEntry$: StaticStructureSchema;
6
21
  export declare var Body$: StaticStructureSchema;
7
22
  export declare var CloudWatchDestination$: StaticStructureSchema;
8
23
  export declare var CloudWatchDimensionConfiguration$: StaticStructureSchema;
9
- export declare var ConcurrentModificationException$: StaticErrorSchema;
10
24
  export declare var Content$: StaticStructureSchema;
11
25
  export declare var CreateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
12
26
  export declare var CreateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
@@ -64,7 +78,6 @@ export declare var IdentityInfo$: StaticStructureSchema;
64
78
  export declare var InboxPlacementTrackingOption$: StaticStructureSchema;
65
79
  export declare var IspPlacement$: StaticStructureSchema;
66
80
  export declare var KinesisFirehoseDestination$: StaticStructureSchema;
67
- export declare var LimitExceededException$: StaticErrorSchema;
68
81
  export declare var ListConfigurationSetsRequest$: StaticStructureSchema;
69
82
  export declare var ListConfigurationSetsResponse$: StaticStructureSchema;
70
83
  export declare var ListDedicatedIpPoolsRequest$: StaticStructureSchema;
@@ -78,11 +91,8 @@ export declare var ListEmailIdentitiesResponse$: StaticStructureSchema;
78
91
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
79
92
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
80
93
  export declare var MailFromAttributes$: StaticStructureSchema;
81
- export declare var MailFromDomainNotVerifiedException$: StaticErrorSchema;
82
94
  export declare var Message$: StaticStructureSchema;
83
- export declare var MessageRejected$: StaticErrorSchema;
84
95
  export declare var MessageTag$: StaticStructureSchema;
85
- export declare var NotFoundException$: StaticErrorSchema;
86
96
  export declare var OverallVolume$: StaticStructureSchema;
87
97
  export declare var PinpointDestination$: StaticStructureSchema;
88
98
  export declare var PlacementStatistics$: StaticStructureSchema;
@@ -115,21 +125,18 @@ export declare var ReputationOptions$: StaticStructureSchema;
115
125
  export declare var SendEmailRequest$: StaticStructureSchema;
116
126
  export declare var SendEmailResponse$: StaticStructureSchema;
117
127
  export declare var SendingOptions$: StaticStructureSchema;
118
- export declare var SendingPausedException$: StaticErrorSchema;
119
128
  export declare var SendQuota$: StaticStructureSchema;
120
129
  export declare var SnsDestination$: StaticStructureSchema;
121
130
  export declare var Tag$: StaticStructureSchema;
122
131
  export declare var TagResourceRequest$: StaticStructureSchema;
123
132
  export declare var TagResourceResponse$: StaticStructureSchema;
124
133
  export declare var Template$: StaticStructureSchema;
125
- export declare var TooManyRequestsException$: StaticErrorSchema;
126
134
  export declare var TrackingOptions$: StaticStructureSchema;
127
135
  export declare var UntagResourceRequest$: StaticStructureSchema;
128
136
  export declare var UntagResourceResponse$: StaticStructureSchema;
129
137
  export declare var UpdateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
130
138
  export declare var UpdateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
131
139
  export declare var VolumeStatistics$: StaticStructureSchema;
132
- export declare var PinpointEmailServiceException$: StaticErrorSchema;
133
140
  export declare var CreateConfigurationSet$: StaticOperationSchema;
134
141
  export declare var CreateConfigurationSetEventDestination$: StaticOperationSchema;
135
142
  export declare var CreateDedicatedIpPool$: StaticOperationSchema;
@@ -1,16 +1,25 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var PinpointEmailServiceException$: StaticErrorSchema;
6
8
  export declare var AccountSuspendedException$: StaticErrorSchema;
7
9
  export declare var AlreadyExistsException$: StaticErrorSchema;
8
10
  export declare var BadRequestException$: StaticErrorSchema;
11
+ export declare var ConcurrentModificationException$: StaticErrorSchema;
12
+ export declare var LimitExceededException$: StaticErrorSchema;
13
+ export declare var MailFromDomainNotVerifiedException$: StaticErrorSchema;
14
+ export declare var MessageRejected$: StaticErrorSchema;
15
+ export declare var NotFoundException$: StaticErrorSchema;
16
+ export declare var SendingPausedException$: StaticErrorSchema;
17
+ export declare var TooManyRequestsException$: StaticErrorSchema;
18
+ export declare const errorTypeRegistries: TypeRegistry[];
9
19
  export declare var BlacklistEntry$: StaticStructureSchema;
10
20
  export declare var Body$: StaticStructureSchema;
11
21
  export declare var CloudWatchDestination$: StaticStructureSchema;
12
22
  export declare var CloudWatchDimensionConfiguration$: StaticStructureSchema;
13
- export declare var ConcurrentModificationException$: StaticErrorSchema;
14
23
  export declare var Content$: StaticStructureSchema;
15
24
  export declare var CreateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
16
25
  export declare var CreateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
@@ -68,7 +77,6 @@ export declare var IdentityInfo$: StaticStructureSchema;
68
77
  export declare var InboxPlacementTrackingOption$: StaticStructureSchema;
69
78
  export declare var IspPlacement$: StaticStructureSchema;
70
79
  export declare var KinesisFirehoseDestination$: StaticStructureSchema;
71
- export declare var LimitExceededException$: StaticErrorSchema;
72
80
  export declare var ListConfigurationSetsRequest$: StaticStructureSchema;
73
81
  export declare var ListConfigurationSetsResponse$: StaticStructureSchema;
74
82
  export declare var ListDedicatedIpPoolsRequest$: StaticStructureSchema;
@@ -82,11 +90,8 @@ export declare var ListEmailIdentitiesResponse$: StaticStructureSchema;
82
90
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
83
91
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
84
92
  export declare var MailFromAttributes$: StaticStructureSchema;
85
- export declare var MailFromDomainNotVerifiedException$: StaticErrorSchema;
86
93
  export declare var Message$: StaticStructureSchema;
87
- export declare var MessageRejected$: StaticErrorSchema;
88
94
  export declare var MessageTag$: StaticStructureSchema;
89
- export declare var NotFoundException$: StaticErrorSchema;
90
95
  export declare var OverallVolume$: StaticStructureSchema;
91
96
  export declare var PinpointDestination$: StaticStructureSchema;
92
97
  export declare var PlacementStatistics$: StaticStructureSchema;
@@ -119,21 +124,18 @@ export declare var ReputationOptions$: StaticStructureSchema;
119
124
  export declare var SendEmailRequest$: StaticStructureSchema;
120
125
  export declare var SendEmailResponse$: StaticStructureSchema;
121
126
  export declare var SendingOptions$: StaticStructureSchema;
122
- export declare var SendingPausedException$: StaticErrorSchema;
123
127
  export declare var SendQuota$: StaticStructureSchema;
124
128
  export declare var SnsDestination$: StaticStructureSchema;
125
129
  export declare var Tag$: StaticStructureSchema;
126
130
  export declare var TagResourceRequest$: StaticStructureSchema;
127
131
  export declare var TagResourceResponse$: StaticStructureSchema;
128
132
  export declare var Template$: StaticStructureSchema;
129
- export declare var TooManyRequestsException$: StaticErrorSchema;
130
133
  export declare var TrackingOptions$: StaticStructureSchema;
131
134
  export declare var UntagResourceRequest$: StaticStructureSchema;
132
135
  export declare var UntagResourceResponse$: StaticStructureSchema;
133
136
  export declare var UpdateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
134
137
  export declare var UpdateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
135
138
  export declare var VolumeStatistics$: StaticStructureSchema;
136
- export declare var PinpointEmailServiceException$: StaticErrorSchema;
137
139
  export declare var CreateConfigurationSet$: StaticOperationSchema;
138
140
  export declare var CreateConfigurationSetEventDestination$: StaticOperationSchema;
139
141
  export declare var CreateDedicatedIpPool$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-email",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Email 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-pinpoint-email",
@@ -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",