@aws-sdk/client-mailmanager 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 { defaultMailManagerHttpAuthSchemeProvider } 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: "2023-10-17",
@@ -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.mailmanager",
30
+ errorTypeRegistries,
29
31
  version: "2023-10-17",
30
32
  serviceTarget: "MailManagerSvc",
31
33
  },
@@ -457,18 +457,56 @@ const n0 = "com.amazonaws.mailmanager";
457
457
  import { TypeRegistry } from "@smithy/core/schema";
458
458
  import { AccessDeniedException, ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
459
459
  import { MailManagerServiceException } from "../models/MailManagerServiceException";
460
+ const _s_registry = TypeRegistry.for(_s);
461
+ export var MailManagerServiceException$ = [-3, _s, "MailManagerServiceException", 0, [], []];
462
+ _s_registry.registerError(MailManagerServiceException$, MailManagerServiceException);
463
+ const n0_registry = TypeRegistry.for(n0);
464
+ export var AccessDeniedException$ = [-3, n0, _ADE,
465
+ { [_e]: _c, [_hE]: 403 },
466
+ [_M],
467
+ [0]
468
+ ];
469
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
470
+ export var ConflictException$ = [-3, n0, _CE,
471
+ { [_e]: _c, [_hE]: 409 },
472
+ [_M],
473
+ [0]
474
+ ];
475
+ n0_registry.registerError(ConflictException$, ConflictException);
476
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
477
+ { [_e]: _c, [_hE]: 404 },
478
+ [_M],
479
+ [0]
480
+ ];
481
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
482
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
483
+ { [_e]: _c, [_hE]: 402 },
484
+ [_M],
485
+ [0]
486
+ ];
487
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
488
+ export var ThrottlingException$ = [-3, n0, _TE,
489
+ { [_e]: _c, [_hE]: 429 },
490
+ [_M],
491
+ [0]
492
+ ];
493
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
494
+ export var ValidationException$ = [-3, n0, _VE,
495
+ { [_e]: _c, [_hE]: 400 },
496
+ [_M],
497
+ [0]
498
+ ];
499
+ n0_registry.registerError(ValidationException$, ValidationException);
500
+ export const errorTypeRegistries = [
501
+ _s_registry,
502
+ n0_registry,
503
+ ];
460
504
  var Address = [0, n0, _A, 8, 0];
461
505
  var AddressPrefix = [0, n0, _AP, 8, 0];
462
506
  var EmailAddress = [0, n0, _EA, 8, 0];
463
507
  var PreSignedUrl = [0, n0, _PSU, 8, 0];
464
508
  var SenderIpAddress = [0, n0, _SIA, 8, 0];
465
509
  var SmtpPassword = [0, n0, _SP, 8, 0];
466
- export var AccessDeniedException$ = [-3, n0, _ADE,
467
- { [_e]: _c, [_hE]: 403 },
468
- [_M],
469
- [0]
470
- ];
471
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
472
510
  export var AddHeaderAction$ = [3, n0, _AHA,
473
511
  0,
474
512
  [_HN, _HV],
@@ -524,12 +562,6 @@ export var ArchiveStringExpression$ = [3, n0, _ASE,
524
562
  [_E, _O, _V],
525
563
  [() => ArchiveStringToEvaluate$, 0, 64 | 0], 3
526
564
  ];
527
- export var ConflictException$ = [-3, n0, _CE,
528
- { [_e]: _c, [_hE]: 409 },
529
- [_M],
530
- [0]
531
- ];
532
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
533
565
  export var CreateAddonInstanceRequest$ = [3, n0, _CAIR,
534
566
  0,
535
567
  [_ASI, _CTl, _T],
@@ -1135,12 +1167,6 @@ export var ReplaceRecipientAction$ = [3, n0, _RRA,
1135
1167
  [_RW],
1136
1168
  [[() => Recipients, 0]]
1137
1169
  ];
1138
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
1139
- { [_e]: _c, [_hE]: 404 },
1140
- [_M],
1141
- [0]
1142
- ];
1143
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
1144
1170
  export var Row$ = [3, n0, _Row,
1145
1171
  0,
1146
1172
  [_AMI, _RT, _D, _To, _F, _Cc, _Su, _MI, _HA, _RH, _IRT, _XM, _XOM, _XP, _IPI, _SH, _SIA, _En, _SAo],
@@ -1221,12 +1247,6 @@ export var SendAction$ = [3, n0, _SAe,
1221
1247
  [_RA, _AFP],
1222
1248
  [0, 0], 1
1223
1249
  ];
1224
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
1225
- { [_e]: _c, [_hE]: 402 },
1226
- [_M],
1227
- [0]
1228
- ];
1229
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
1230
1250
  export var SnsAction$ = [3, n0, _SAn,
1231
1251
  0,
1232
1252
  [_TAo, _RA, _AFP, _Enc, _PT],
@@ -1307,12 +1327,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
1307
1327
  [],
1308
1328
  []
1309
1329
  ];
1310
- export var ThrottlingException$ = [-3, n0, _TE,
1311
- { [_e]: _c, [_hE]: 429 },
1312
- [_M],
1313
- [0]
1314
- ];
1315
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
1316
1330
  export var TrafficPolicy$ = [3, n0, _TPr,
1317
1331
  0,
1318
1332
  [_TPN, _TPI, _DA],
@@ -1378,14 +1392,6 @@ export var UpdateTrafficPolicyResponse$ = [3, n0, _UTPRp,
1378
1392
  [],
1379
1393
  []
1380
1394
  ];
1381
- export var ValidationException$ = [-3, n0, _VE,
1382
- { [_e]: _c, [_hE]: 400 },
1383
- [_M],
1384
- [0]
1385
- ];
1386
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
1387
- export var MailManagerServiceException$ = [-3, _s, "MailManagerServiceException", 0, [], []];
1388
- TypeRegistry.for(_s).registerError(MailManagerServiceException$, MailManagerServiceException);
1389
1395
  var AddonInstances = [1, n0, _AId,
1390
1396
  0, () => AddonInstance$
1391
1397
  ];
@@ -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 MailManagerServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ export declare var ValidationException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
3
16
  export declare var AddHeaderAction$: StaticStructureSchema;
4
17
  export declare var AddonInstance$: StaticStructureSchema;
5
18
  export declare var AddonSubscription$: StaticStructureSchema;
@@ -11,7 +24,6 @@ export declare var ArchiveAction$: StaticStructureSchema;
11
24
  export declare var ArchiveBooleanExpression$: StaticStructureSchema;
12
25
  export declare var ArchiveFilters$: StaticStructureSchema;
13
26
  export declare var ArchiveStringExpression$: StaticStructureSchema;
14
- export declare var ConflictException$: StaticErrorSchema;
15
27
  export declare var CreateAddonInstanceRequest$: StaticStructureSchema;
16
28
  export declare var CreateAddonInstanceResponse$: StaticStructureSchema;
17
29
  export declare var CreateAddonSubscriptionRequest$: StaticStructureSchema;
@@ -133,7 +145,6 @@ export declare var RegisterMemberToAddressListResponse$: StaticStructureSchema;
133
145
  export declare var Relay$: StaticStructureSchema;
134
146
  export declare var RelayAction$: StaticStructureSchema;
135
147
  export declare var ReplaceRecipientAction$: StaticStructureSchema;
136
- export declare var ResourceNotFoundException$: StaticErrorSchema;
137
148
  export declare var Row$: StaticStructureSchema;
138
149
  export declare var Rule$: StaticStructureSchema;
139
150
  export declare var RuleBooleanExpression$: StaticStructureSchema;
@@ -150,7 +161,6 @@ export declare var SavedAddress$: StaticStructureSchema;
150
161
  export declare var SearchStatus$: StaticStructureSchema;
151
162
  export declare var SearchSummary$: StaticStructureSchema;
152
163
  export declare var SendAction$: StaticStructureSchema;
153
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
154
164
  export declare var SnsAction$: StaticStructureSchema;
155
165
  export declare var StartAddressListImportJobRequest$: StaticStructureSchema;
156
166
  export declare var StartAddressListImportJobResponse$: StaticStructureSchema;
@@ -167,7 +177,6 @@ export declare var StopArchiveSearchResponse$: StaticStructureSchema;
167
177
  export declare var Tag$: StaticStructureSchema;
168
178
  export declare var TagResourceRequest$: StaticStructureSchema;
169
179
  export declare var TagResourceResponse$: StaticStructureSchema;
170
- export declare var ThrottlingException$: StaticErrorSchema;
171
180
  export declare var TrafficPolicy$: StaticStructureSchema;
172
181
  export declare var UntagResourceRequest$: StaticStructureSchema;
173
182
  export declare var UntagResourceResponse$: StaticStructureSchema;
@@ -181,8 +190,6 @@ export declare var UpdateRuleSetRequest$: StaticStructureSchema;
181
190
  export declare var UpdateRuleSetResponse$: StaticStructureSchema;
182
191
  export declare var UpdateTrafficPolicyRequest$: StaticStructureSchema;
183
192
  export declare var UpdateTrafficPolicyResponse$: StaticStructureSchema;
184
- export declare var ValidationException$: StaticErrorSchema;
185
- export declare var MailManagerServiceException$: StaticErrorSchema;
186
193
  export declare var ArchiveBooleanToEvaluate$: StaticUnionSchema;
187
194
  export declare var ArchiveFilterCondition$: StaticUnionSchema;
188
195
  export declare var ArchiveRetention$: 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 MailManagerServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
8
16
  export declare var AddHeaderAction$: StaticStructureSchema;
9
17
  export declare var AddonInstance$: StaticStructureSchema;
10
18
  export declare var AddonSubscription$: StaticStructureSchema;
@@ -16,7 +24,6 @@ export declare var ArchiveAction$: StaticStructureSchema;
16
24
  export declare var ArchiveBooleanExpression$: StaticStructureSchema;
17
25
  export declare var ArchiveFilters$: StaticStructureSchema;
18
26
  export declare var ArchiveStringExpression$: StaticStructureSchema;
19
- export declare var ConflictException$: StaticErrorSchema;
20
27
  export declare var CreateAddonInstanceRequest$: StaticStructureSchema;
21
28
  export declare var CreateAddonInstanceResponse$: StaticStructureSchema;
22
29
  export declare var CreateAddonSubscriptionRequest$: StaticStructureSchema;
@@ -138,7 +145,6 @@ export declare var RegisterMemberToAddressListResponse$: StaticStructureSchema;
138
145
  export declare var Relay$: StaticStructureSchema;
139
146
  export declare var RelayAction$: StaticStructureSchema;
140
147
  export declare var ReplaceRecipientAction$: StaticStructureSchema;
141
- export declare var ResourceNotFoundException$: StaticErrorSchema;
142
148
  export declare var Row$: StaticStructureSchema;
143
149
  export declare var Rule$: StaticStructureSchema;
144
150
  export declare var RuleBooleanExpression$: StaticStructureSchema;
@@ -155,7 +161,6 @@ export declare var SavedAddress$: StaticStructureSchema;
155
161
  export declare var SearchStatus$: StaticStructureSchema;
156
162
  export declare var SearchSummary$: StaticStructureSchema;
157
163
  export declare var SendAction$: StaticStructureSchema;
158
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
159
164
  export declare var SnsAction$: StaticStructureSchema;
160
165
  export declare var StartAddressListImportJobRequest$: StaticStructureSchema;
161
166
  export declare var StartAddressListImportJobResponse$: StaticStructureSchema;
@@ -172,7 +177,6 @@ export declare var StopArchiveSearchResponse$: StaticStructureSchema;
172
177
  export declare var Tag$: StaticStructureSchema;
173
178
  export declare var TagResourceRequest$: StaticStructureSchema;
174
179
  export declare var TagResourceResponse$: StaticStructureSchema;
175
- export declare var ThrottlingException$: StaticErrorSchema;
176
180
  export declare var TrafficPolicy$: StaticStructureSchema;
177
181
  export declare var UntagResourceRequest$: StaticStructureSchema;
178
182
  export declare var UntagResourceResponse$: StaticStructureSchema;
@@ -186,8 +190,6 @@ export declare var UpdateRuleSetRequest$: StaticStructureSchema;
186
190
  export declare var UpdateRuleSetResponse$: StaticStructureSchema;
187
191
  export declare var UpdateTrafficPolicyRequest$: StaticStructureSchema;
188
192
  export declare var UpdateTrafficPolicyResponse$: StaticStructureSchema;
189
- export declare var ValidationException$: StaticErrorSchema;
190
- export declare var MailManagerServiceException$: StaticErrorSchema;
191
193
  export declare var ArchiveBooleanToEvaluate$: StaticUnionSchema;
192
194
  export declare var ArchiveFilterCondition$: StaticUnionSchema;
193
195
  export declare var ArchiveRetention$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mailmanager",
3
3
  "description": "AWS SDK for JavaScript Mailmanager 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-mailmanager",
@@ -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",