@aws-sdk/client-sesv2 3.200.0 → 3.201.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
18
 
8
19
 
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "ses",
11
10
  };
12
11
  };
@@ -13,7 +13,7 @@ const serializeAws_restJson1BatchGetMetricDataCommand = async (input, context) =
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/metrics/batch";
16
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/metrics/batch";
17
17
  let body;
18
18
  body = JSON.stringify({
19
19
  ...(input.Queries != null && { Queries: serializeAws_restJson1BatchGetMetricDataQueries(input.Queries, context) }),
@@ -34,7 +34,7 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
34
34
  const headers = {
35
35
  "content-type": "application/json",
36
36
  };
37
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
37
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
38
38
  let body;
39
39
  body = JSON.stringify({
40
40
  ...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
@@ -72,7 +72,7 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
72
72
  const headers = {
73
73
  "content-type": "application/json",
74
74
  };
75
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
75
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
76
76
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
77
77
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
78
78
  let body;
@@ -98,7 +98,7 @@ const serializeAws_restJson1CreateContactCommand = async (input, context) => {
98
98
  const headers = {
99
99
  "content-type": "application/json",
100
100
  };
101
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
101
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
102
102
  "/v2/email/contact-lists/{ContactListName}/contacts";
103
103
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
104
104
  let body;
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateContactListCommand = async (input, context) =>
126
126
  const headers = {
127
127
  "content-type": "application/json",
128
128
  };
129
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
129
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
130
130
  let body;
131
131
  body = JSON.stringify({
132
132
  ...(input.ContactListName != null && { ContactListName: input.ContactListName }),
@@ -150,7 +150,7 @@ const serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = async
150
150
  const headers = {
151
151
  "content-type": "application/json",
152
152
  };
153
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
153
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
154
154
  "/v2/email/custom-verification-email-templates";
155
155
  let body;
156
156
  body = JSON.stringify({
@@ -177,7 +177,7 @@ const serializeAws_restJson1CreateDedicatedIpPoolCommand = async (input, context
177
177
  const headers = {
178
178
  "content-type": "application/json",
179
179
  };
180
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
180
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
181
181
  let body;
182
182
  body = JSON.stringify({
183
183
  ...(input.PoolName != null && { PoolName: input.PoolName }),
@@ -200,7 +200,7 @@ const serializeAws_restJson1CreateDeliverabilityTestReportCommand = async (input
200
200
  const headers = {
201
201
  "content-type": "application/json",
202
202
  };
203
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard/test";
203
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard/test";
204
204
  let body;
205
205
  body = JSON.stringify({
206
206
  ...(input.Content != null && { Content: serializeAws_restJson1EmailContent(input.Content, context) }),
@@ -224,7 +224,7 @@ const serializeAws_restJson1CreateEmailIdentityCommand = async (input, context)
224
224
  const headers = {
225
225
  "content-type": "application/json",
226
226
  };
227
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
227
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
228
228
  let body;
229
229
  body = JSON.stringify({
230
230
  ...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
@@ -250,7 +250,7 @@ const serializeAws_restJson1CreateEmailIdentityPolicyCommand = async (input, con
250
250
  const headers = {
251
251
  "content-type": "application/json",
252
252
  };
253
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
253
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
254
254
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
255
255
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
256
256
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
@@ -274,7 +274,7 @@ const serializeAws_restJson1CreateEmailTemplateCommand = async (input, context)
274
274
  const headers = {
275
275
  "content-type": "application/json",
276
276
  };
277
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
277
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
278
278
  let body;
279
279
  body = JSON.stringify({
280
280
  ...(input.TemplateContent != null && {
@@ -298,7 +298,7 @@ const serializeAws_restJson1CreateImportJobCommand = async (input, context) => {
298
298
  const headers = {
299
299
  "content-type": "application/json",
300
300
  };
301
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
301
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
302
302
  let body;
303
303
  body = JSON.stringify({
304
304
  ...(input.ImportDataSource != null && {
@@ -322,7 +322,7 @@ exports.serializeAws_restJson1CreateImportJobCommand = serializeAws_restJson1Cre
322
322
  const serializeAws_restJson1DeleteConfigurationSetCommand = async (input, context) => {
323
323
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
324
  const headers = {};
325
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
325
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
326
326
  "/v2/email/configuration-sets/{ConfigurationSetName}";
327
327
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
328
328
  let body;
@@ -340,7 +340,7 @@ exports.serializeAws_restJson1DeleteConfigurationSetCommand = serializeAws_restJ
340
340
  const serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
341
341
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
342
  const headers = {};
343
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
343
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
344
344
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
345
345
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
346
346
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
@@ -359,7 +359,7 @@ exports.serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = se
359
359
  const serializeAws_restJson1DeleteContactCommand = async (input, context) => {
360
360
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
361
  const headers = {};
362
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
362
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
363
363
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
364
364
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
365
365
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
@@ -378,7 +378,7 @@ exports.serializeAws_restJson1DeleteContactCommand = serializeAws_restJson1Delet
378
378
  const serializeAws_restJson1DeleteContactListCommand = async (input, context) => {
379
379
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
380
380
  const headers = {};
381
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
381
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
382
382
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
383
383
  let body;
384
384
  return new protocol_http_1.HttpRequest({
@@ -395,7 +395,7 @@ exports.serializeAws_restJson1DeleteContactListCommand = serializeAws_restJson1D
395
395
  const serializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = async (input, context) => {
396
396
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
397
  const headers = {};
398
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
398
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
399
399
  "/v2/email/custom-verification-email-templates/{TemplateName}";
400
400
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
401
401
  let body;
@@ -413,7 +413,7 @@ exports.serializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = ser
413
413
  const serializeAws_restJson1DeleteDedicatedIpPoolCommand = async (input, context) => {
414
414
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
415
  const headers = {};
416
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
416
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
417
417
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PoolName", () => input.PoolName, "{PoolName}", false);
418
418
  let body;
419
419
  return new protocol_http_1.HttpRequest({
@@ -430,7 +430,7 @@ exports.serializeAws_restJson1DeleteDedicatedIpPoolCommand = serializeAws_restJs
430
430
  const serializeAws_restJson1DeleteEmailIdentityCommand = async (input, context) => {
431
431
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
432
  const headers = {};
433
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
433
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
434
434
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
435
435
  let body;
436
436
  return new protocol_http_1.HttpRequest({
@@ -447,7 +447,7 @@ exports.serializeAws_restJson1DeleteEmailIdentityCommand = serializeAws_restJson
447
447
  const serializeAws_restJson1DeleteEmailIdentityPolicyCommand = async (input, context) => {
448
448
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
449
449
  const headers = {};
450
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
450
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
451
451
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
452
452
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
453
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
@@ -466,7 +466,7 @@ exports.serializeAws_restJson1DeleteEmailIdentityPolicyCommand = serializeAws_re
466
466
  const serializeAws_restJson1DeleteEmailTemplateCommand = async (input, context) => {
467
467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
468
468
  const headers = {};
469
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
469
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
470
470
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
471
471
  let body;
472
472
  return new protocol_http_1.HttpRequest({
@@ -483,7 +483,7 @@ exports.serializeAws_restJson1DeleteEmailTemplateCommand = serializeAws_restJson
483
483
  const serializeAws_restJson1DeleteSuppressedDestinationCommand = async (input, context) => {
484
484
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
485
485
  const headers = {};
486
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
486
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
487
487
  "/v2/email/suppression/addresses/{EmailAddress}";
488
488
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
489
489
  let body;
@@ -503,7 +503,7 @@ const serializeAws_restJson1GetAccountCommand = async (input, context) => {
503
503
  const headers = {
504
504
  "content-type": "application/json",
505
505
  };
506
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account";
506
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account";
507
507
  let body;
508
508
  body = "";
509
509
  return new protocol_http_1.HttpRequest({
@@ -520,7 +520,7 @@ exports.serializeAws_restJson1GetAccountCommand = serializeAws_restJson1GetAccou
520
520
  const serializeAws_restJson1GetBlacklistReportsCommand = async (input, context) => {
521
521
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
522
  const headers = {};
523
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
523
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
524
524
  "/v2/email/deliverability-dashboard/blacklist-report";
525
525
  const query = map({
526
526
  BlacklistItemNames: [
@@ -544,7 +544,7 @@ exports.serializeAws_restJson1GetBlacklistReportsCommand = serializeAws_restJson
544
544
  const serializeAws_restJson1GetConfigurationSetCommand = async (input, context) => {
545
545
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
546
546
  const headers = {};
547
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
547
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
548
548
  "/v2/email/configuration-sets/{ConfigurationSetName}";
549
549
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
550
550
  let body;
@@ -562,7 +562,7 @@ exports.serializeAws_restJson1GetConfigurationSetCommand = serializeAws_restJson
562
562
  const serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = async (input, context) => {
563
563
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
564
564
  const headers = {};
565
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
565
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
566
566
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
567
567
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
568
568
  let body;
@@ -580,7 +580,7 @@ exports.serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = seri
580
580
  const serializeAws_restJson1GetContactCommand = async (input, context) => {
581
581
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
582
582
  const headers = {};
583
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
583
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
584
584
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
585
585
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
586
586
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
@@ -599,7 +599,7 @@ exports.serializeAws_restJson1GetContactCommand = serializeAws_restJson1GetConta
599
599
  const serializeAws_restJson1GetContactListCommand = async (input, context) => {
600
600
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
601
  const headers = {};
602
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
602
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
603
603
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
604
604
  let body;
605
605
  return new protocol_http_1.HttpRequest({
@@ -616,7 +616,7 @@ exports.serializeAws_restJson1GetContactListCommand = serializeAws_restJson1GetC
616
616
  const serializeAws_restJson1GetCustomVerificationEmailTemplateCommand = async (input, context) => {
617
617
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
618
618
  const headers = {};
619
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
619
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
620
620
  "/v2/email/custom-verification-email-templates/{TemplateName}";
621
621
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
622
622
  let body;
@@ -634,7 +634,7 @@ exports.serializeAws_restJson1GetCustomVerificationEmailTemplateCommand = serial
634
634
  const serializeAws_restJson1GetDedicatedIpCommand = async (input, context) => {
635
635
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
636
636
  const headers = {};
637
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}";
637
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}";
638
638
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
639
639
  let body;
640
640
  return new protocol_http_1.HttpRequest({
@@ -651,7 +651,7 @@ exports.serializeAws_restJson1GetDedicatedIpCommand = serializeAws_restJson1GetD
651
651
  const serializeAws_restJson1GetDedicatedIpPoolCommand = async (input, context) => {
652
652
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
653
653
  const headers = {};
654
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
654
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
655
655
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PoolName", () => input.PoolName, "{PoolName}", false);
656
656
  let body;
657
657
  return new protocol_http_1.HttpRequest({
@@ -668,7 +668,7 @@ exports.serializeAws_restJson1GetDedicatedIpPoolCommand = serializeAws_restJson1
668
668
  const serializeAws_restJson1GetDedicatedIpsCommand = async (input, context) => {
669
669
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
670
  const headers = {};
671
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips";
671
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips";
672
672
  const query = map({
673
673
  PoolName: [, input.PoolName],
674
674
  NextToken: [, input.NextToken],
@@ -692,7 +692,7 @@ const serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (in
692
692
  const headers = {
693
693
  "content-type": "application/json",
694
694
  };
695
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
695
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
696
696
  let body;
697
697
  body = "";
698
698
  return new protocol_http_1.HttpRequest({
@@ -709,7 +709,7 @@ exports.serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = seriali
709
709
  const serializeAws_restJson1GetDeliverabilityTestReportCommand = async (input, context) => {
710
710
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
711
711
  const headers = {};
712
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
712
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
713
713
  "/v2/email/deliverability-dashboard/test-reports/{ReportId}";
714
714
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportId", () => input.ReportId, "{ReportId}", false);
715
715
  let body;
@@ -727,7 +727,7 @@ exports.serializeAws_restJson1GetDeliverabilityTestReportCommand = serializeAws_
727
727
  const serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = async (input, context) => {
728
728
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
729
729
  const headers = {};
730
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
730
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
731
731
  "/v2/email/deliverability-dashboard/campaigns/{CampaignId}";
732
732
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
733
733
  let body;
@@ -745,7 +745,7 @@ exports.serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = serialize
745
745
  const serializeAws_restJson1GetDomainStatisticsReportCommand = async (input, context) => {
746
746
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
747
747
  const headers = {};
748
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
748
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
749
749
  "/v2/email/deliverability-dashboard/statistics-report/{Domain}";
750
750
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
751
751
  const query = map({
@@ -771,7 +771,7 @@ exports.serializeAws_restJson1GetDomainStatisticsReportCommand = serializeAws_re
771
771
  const serializeAws_restJson1GetEmailIdentityCommand = async (input, context) => {
772
772
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
773
773
  const headers = {};
774
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
774
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
775
775
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
776
776
  let body;
777
777
  return new protocol_http_1.HttpRequest({
@@ -788,7 +788,7 @@ exports.serializeAws_restJson1GetEmailIdentityCommand = serializeAws_restJson1Ge
788
788
  const serializeAws_restJson1GetEmailIdentityPoliciesCommand = async (input, context) => {
789
789
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
790
  const headers = {};
791
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
791
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
792
792
  "/v2/email/identities/{EmailIdentity}/policies";
793
793
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
794
794
  let body;
@@ -806,7 +806,7 @@ exports.serializeAws_restJson1GetEmailIdentityPoliciesCommand = serializeAws_res
806
806
  const serializeAws_restJson1GetEmailTemplateCommand = async (input, context) => {
807
807
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
808
808
  const headers = {};
809
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
809
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
810
810
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
811
811
  let body;
812
812
  return new protocol_http_1.HttpRequest({
@@ -823,7 +823,7 @@ exports.serializeAws_restJson1GetEmailTemplateCommand = serializeAws_restJson1Ge
823
823
  const serializeAws_restJson1GetImportJobCommand = async (input, context) => {
824
824
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
825
825
  const headers = {};
826
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs/{JobId}";
826
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs/{JobId}";
827
827
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
828
828
  let body;
829
829
  return new protocol_http_1.HttpRequest({
@@ -840,7 +840,7 @@ exports.serializeAws_restJson1GetImportJobCommand = serializeAws_restJson1GetImp
840
840
  const serializeAws_restJson1GetSuppressedDestinationCommand = async (input, context) => {
841
841
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
842
842
  const headers = {};
843
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
843
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
844
844
  "/v2/email/suppression/addresses/{EmailAddress}";
845
845
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
846
846
  let body;
@@ -858,7 +858,7 @@ exports.serializeAws_restJson1GetSuppressedDestinationCommand = serializeAws_res
858
858
  const serializeAws_restJson1ListConfigurationSetsCommand = async (input, context) => {
859
859
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
860
860
  const headers = {};
861
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
861
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
862
862
  const query = map({
863
863
  NextToken: [, input.NextToken],
864
864
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -879,7 +879,7 @@ exports.serializeAws_restJson1ListConfigurationSetsCommand = serializeAws_restJs
879
879
  const serializeAws_restJson1ListContactListsCommand = async (input, context) => {
880
880
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
881
881
  const headers = {};
882
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
882
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
883
883
  const query = map({
884
884
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
885
885
  NextToken: [, input.NextToken],
@@ -902,7 +902,7 @@ const serializeAws_restJson1ListContactsCommand = async (input, context) => {
902
902
  const headers = {
903
903
  "content-type": "application/json",
904
904
  };
905
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
905
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
906
906
  "/v2/email/contact-lists/{ContactListName}/contacts";
907
907
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
908
908
  const query = map({
@@ -928,7 +928,7 @@ exports.serializeAws_restJson1ListContactsCommand = serializeAws_restJson1ListCo
928
928
  const serializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = async (input, context) => {
929
929
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
930
930
  const headers = {};
931
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
931
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
932
932
  "/v2/email/custom-verification-email-templates";
933
933
  const query = map({
934
934
  NextToken: [, input.NextToken],
@@ -950,7 +950,7 @@ exports.serializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = seri
950
950
  const serializeAws_restJson1ListDedicatedIpPoolsCommand = async (input, context) => {
951
951
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
952
952
  const headers = {};
953
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
953
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
954
954
  const query = map({
955
955
  NextToken: [, input.NextToken],
956
956
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -971,7 +971,7 @@ exports.serializeAws_restJson1ListDedicatedIpPoolsCommand = serializeAws_restJso
971
971
  const serializeAws_restJson1ListDeliverabilityTestReportsCommand = async (input, context) => {
972
972
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
973
973
  const headers = {};
974
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
974
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
975
975
  "/v2/email/deliverability-dashboard/test-reports";
976
976
  const query = map({
977
977
  NextToken: [, input.NextToken],
@@ -993,7 +993,7 @@ exports.serializeAws_restJson1ListDeliverabilityTestReportsCommand = serializeAw
993
993
  const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (input, context) => {
994
994
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
995
995
  const headers = {};
996
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
996
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
997
997
  "/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns";
998
998
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
999
999
  const query = map({
@@ -1021,7 +1021,7 @@ exports.serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = seriali
1021
1021
  const serializeAws_restJson1ListEmailIdentitiesCommand = async (input, context) => {
1022
1022
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1023
1023
  const headers = {};
1024
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
1024
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
1025
1025
  const query = map({
1026
1026
  NextToken: [, input.NextToken],
1027
1027
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -1042,7 +1042,7 @@ exports.serializeAws_restJson1ListEmailIdentitiesCommand = serializeAws_restJson
1042
1042
  const serializeAws_restJson1ListEmailTemplatesCommand = async (input, context) => {
1043
1043
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1044
1044
  const headers = {};
1045
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
1045
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
1046
1046
  const query = map({
1047
1047
  NextToken: [, input.NextToken],
1048
1048
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -1065,7 +1065,7 @@ const serializeAws_restJson1ListImportJobsCommand = async (input, context) => {
1065
1065
  const headers = {
1066
1066
  "content-type": "application/json",
1067
1067
  };
1068
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
1068
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
1069
1069
  const query = map({
1070
1070
  NextToken: [, input.NextToken],
1071
1071
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -1091,7 +1091,7 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
1091
1091
  const headers = {
1092
1092
  "content-type": "application/json",
1093
1093
  };
1094
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/vdm/recommendations";
1094
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/vdm/recommendations";
1095
1095
  let body;
1096
1096
  body = JSON.stringify({
1097
1097
  ...(input.Filter != null && { Filter: serializeAws_restJson1ListRecommendationsFilter(input.Filter, context) }),
@@ -1112,7 +1112,7 @@ exports.serializeAws_restJson1ListRecommendationsCommand = serializeAws_restJson
1112
1112
  const serializeAws_restJson1ListSuppressedDestinationsCommand = async (input, context) => {
1113
1113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1114
1114
  const headers = {};
1115
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1115
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1116
1116
  const query = map({
1117
1117
  Reason: [() => input.Reasons !== void 0, () => (input.Reasons || []).map((_entry) => _entry)],
1118
1118
  StartDate: [
@@ -1139,7 +1139,7 @@ exports.serializeAws_restJson1ListSuppressedDestinationsCommand = serializeAws_r
1139
1139
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1140
1140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1141
1141
  const headers = {};
1142
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1142
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1143
1143
  const query = map({
1144
1144
  ResourceArn: [, input.ResourceArn],
1145
1145
  });
@@ -1161,7 +1161,7 @@ const serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = async
1161
1161
  const headers = {
1162
1162
  "content-type": "application/json",
1163
1163
  };
1164
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/dedicated-ips/warmup";
1164
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/dedicated-ips/warmup";
1165
1165
  let body;
1166
1166
  body = JSON.stringify({
1167
1167
  ...(input.AutoWarmupEnabled != null && { AutoWarmupEnabled: input.AutoWarmupEnabled }),
@@ -1182,7 +1182,7 @@ const serializeAws_restJson1PutAccountDetailsCommand = async (input, context) =>
1182
1182
  const headers = {
1183
1183
  "content-type": "application/json",
1184
1184
  };
1185
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/details";
1185
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/details";
1186
1186
  let body;
1187
1187
  body = JSON.stringify({
1188
1188
  ...(input.AdditionalContactEmailAddresses != null && {
@@ -1210,7 +1210,7 @@ const serializeAws_restJson1PutAccountSendingAttributesCommand = async (input, c
1210
1210
  const headers = {
1211
1211
  "content-type": "application/json",
1212
1212
  };
1213
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/sending";
1213
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/sending";
1214
1214
  let body;
1215
1215
  body = JSON.stringify({
1216
1216
  ...(input.SendingEnabled != null && { SendingEnabled: input.SendingEnabled }),
@@ -1231,7 +1231,7 @@ const serializeAws_restJson1PutAccountSuppressionAttributesCommand = async (inpu
1231
1231
  const headers = {
1232
1232
  "content-type": "application/json",
1233
1233
  };
1234
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/suppression";
1234
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/suppression";
1235
1235
  let body;
1236
1236
  body = JSON.stringify({
1237
1237
  ...(input.SuppressedReasons != null && {
@@ -1254,7 +1254,7 @@ const serializeAws_restJson1PutAccountVdmAttributesCommand = async (input, conte
1254
1254
  const headers = {
1255
1255
  "content-type": "application/json",
1256
1256
  };
1257
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/vdm";
1257
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/vdm";
1258
1258
  let body;
1259
1259
  body = JSON.stringify({
1260
1260
  ...(input.VdmAttributes != null && {
@@ -1277,7 +1277,7 @@ const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (i
1277
1277
  const headers = {
1278
1278
  "content-type": "application/json",
1279
1279
  };
1280
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1280
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1281
1281
  "/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options";
1282
1282
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1283
1283
  let body;
@@ -1301,7 +1301,7 @@ const serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = async
1301
1301
  const headers = {
1302
1302
  "content-type": "application/json",
1303
1303
  };
1304
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1304
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1305
1305
  "/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options";
1306
1306
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1307
1307
  let body;
@@ -1324,7 +1324,7 @@ const serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (in
1324
1324
  const headers = {
1325
1325
  "content-type": "application/json",
1326
1326
  };
1327
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1327
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1328
1328
  "/v2/email/configuration-sets/{ConfigurationSetName}/sending";
1329
1329
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1330
1330
  let body;
@@ -1347,7 +1347,7 @@ const serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = async
1347
1347
  const headers = {
1348
1348
  "content-type": "application/json",
1349
1349
  };
1350
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1350
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1351
1351
  "/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options";
1352
1352
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1353
1353
  let body;
@@ -1372,7 +1372,7 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
1372
1372
  const headers = {
1373
1373
  "content-type": "application/json",
1374
1374
  };
1375
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1375
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1376
1376
  "/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options";
1377
1377
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1378
1378
  let body;
@@ -1395,7 +1395,7 @@ const serializeAws_restJson1PutConfigurationSetVdmOptionsCommand = async (input,
1395
1395
  const headers = {
1396
1396
  "content-type": "application/json",
1397
1397
  };
1398
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1398
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1399
1399
  "/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options";
1400
1400
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1401
1401
  let body;
@@ -1418,7 +1418,7 @@ const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context)
1418
1418
  const headers = {
1419
1419
  "content-type": "application/json",
1420
1420
  };
1421
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/pool";
1421
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/pool";
1422
1422
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
1423
1423
  let body;
1424
1424
  body = JSON.stringify({
@@ -1440,7 +1440,7 @@ const serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (input
1440
1440
  const headers = {
1441
1441
  "content-type": "application/json",
1442
1442
  };
1443
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/warmup";
1443
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/warmup";
1444
1444
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
1445
1445
  let body;
1446
1446
  body = JSON.stringify({
@@ -1462,7 +1462,7 @@ const serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = async (inp
1462
1462
  const headers = {
1463
1463
  "content-type": "application/json",
1464
1464
  };
1465
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
1465
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
1466
1466
  let body;
1467
1467
  body = JSON.stringify({
1468
1468
  ...(input.DashboardEnabled != null && { DashboardEnabled: input.DashboardEnabled }),
@@ -1486,7 +1486,7 @@ const serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand =
1486
1486
  const headers = {
1487
1487
  "content-type": "application/json",
1488
1488
  };
1489
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1489
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1490
1490
  "/v2/email/identities/{EmailIdentity}/configuration-set";
1491
1491
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1492
1492
  let body;
@@ -1509,7 +1509,7 @@ const serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (input
1509
1509
  const headers = {
1510
1510
  "content-type": "application/json",
1511
1511
  };
1512
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}/dkim";
1512
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}/dkim";
1513
1513
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1514
1514
  let body;
1515
1515
  body = JSON.stringify({
@@ -1531,7 +1531,7 @@ const serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = async
1531
1531
  const headers = {
1532
1532
  "content-type": "application/json",
1533
1533
  };
1534
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1534
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1535
1535
  "/v1/email/identities/{EmailIdentity}/dkim/signing";
1536
1536
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1537
1537
  let body;
@@ -1557,7 +1557,7 @@ const serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async (i
1557
1557
  const headers = {
1558
1558
  "content-type": "application/json",
1559
1559
  };
1560
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1560
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1561
1561
  "/v2/email/identities/{EmailIdentity}/feedback";
1562
1562
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1563
1563
  let body;
@@ -1580,7 +1580,7 @@ const serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async (i
1580
1580
  const headers = {
1581
1581
  "content-type": "application/json",
1582
1582
  };
1583
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1583
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1584
1584
  "/v2/email/identities/{EmailIdentity}/mail-from";
1585
1585
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1586
1586
  let body;
@@ -1604,7 +1604,7 @@ const serializeAws_restJson1PutSuppressedDestinationCommand = async (input, cont
1604
1604
  const headers = {
1605
1605
  "content-type": "application/json",
1606
1606
  };
1607
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1607
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1608
1608
  let body;
1609
1609
  body = JSON.stringify({
1610
1610
  ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
@@ -1626,7 +1626,7 @@ const serializeAws_restJson1SendBulkEmailCommand = async (input, context) => {
1626
1626
  const headers = {
1627
1627
  "content-type": "application/json",
1628
1628
  };
1629
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-bulk-emails";
1629
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-bulk-emails";
1630
1630
  let body;
1631
1631
  body = JSON.stringify({
1632
1632
  ...(input.BulkEmailEntries != null && {
@@ -1669,7 +1669,7 @@ const serializeAws_restJson1SendCustomVerificationEmailCommand = async (input, c
1669
1669
  const headers = {
1670
1670
  "content-type": "application/json",
1671
1671
  };
1672
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1672
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1673
1673
  "/v2/email/outbound-custom-verification-emails";
1674
1674
  let body;
1675
1675
  body = JSON.stringify({
@@ -1693,7 +1693,7 @@ const serializeAws_restJson1SendEmailCommand = async (input, context) => {
1693
1693
  const headers = {
1694
1694
  "content-type": "application/json",
1695
1695
  };
1696
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-emails";
1696
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-emails";
1697
1697
  let body;
1698
1698
  body = JSON.stringify({
1699
1699
  ...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
@@ -1733,7 +1733,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1733
1733
  const headers = {
1734
1734
  "content-type": "application/json",
1735
1735
  };
1736
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1736
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1737
1737
  let body;
1738
1738
  body = JSON.stringify({
1739
1739
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
@@ -1755,7 +1755,7 @@ const serializeAws_restJson1TestRenderEmailTemplateCommand = async (input, conte
1755
1755
  const headers = {
1756
1756
  "content-type": "application/json",
1757
1757
  };
1758
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}/render";
1758
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}/render";
1759
1759
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1760
1760
  let body;
1761
1761
  body = JSON.stringify({
@@ -1775,7 +1775,7 @@ exports.serializeAws_restJson1TestRenderEmailTemplateCommand = serializeAws_rest
1775
1775
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1776
1776
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1777
1777
  const headers = {};
1778
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1778
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1779
1779
  const query = map({
1780
1780
  ResourceArn: [, input.ResourceArn],
1781
1781
  TagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -1798,7 +1798,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
1798
1798
  const headers = {
1799
1799
  "content-type": "application/json",
1800
1800
  };
1801
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1801
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1802
1802
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
1803
1803
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1804
1804
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
@@ -1824,7 +1824,7 @@ const serializeAws_restJson1UpdateContactCommand = async (input, context) => {
1824
1824
  const headers = {
1825
1825
  "content-type": "application/json",
1826
1826
  };
1827
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1827
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1828
1828
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
1829
1829
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
1830
1830
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
@@ -1852,7 +1852,7 @@ const serializeAws_restJson1UpdateContactListCommand = async (input, context) =>
1852
1852
  const headers = {
1853
1853
  "content-type": "application/json",
1854
1854
  };
1855
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
1855
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
1856
1856
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
1857
1857
  let body;
1858
1858
  body = JSON.stringify({
@@ -1875,7 +1875,7 @@ const serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = async
1875
1875
  const headers = {
1876
1876
  "content-type": "application/json",
1877
1877
  };
1878
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1878
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1879
1879
  "/v2/email/custom-verification-email-templates/{TemplateName}";
1880
1880
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1881
1881
  let body;
@@ -1902,7 +1902,7 @@ const serializeAws_restJson1UpdateEmailIdentityPolicyCommand = async (input, con
1902
1902
  const headers = {
1903
1903
  "content-type": "application/json",
1904
1904
  };
1905
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1905
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1906
1906
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
1907
1907
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1908
1908
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
@@ -1926,7 +1926,7 @@ const serializeAws_restJson1UpdateEmailTemplateCommand = async (input, context)
1926
1926
  const headers = {
1927
1927
  "content-type": "application/json",
1928
1928
  };
1929
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
1929
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
1930
1930
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1931
1931
  let body;
1932
1932
  body = JSON.stringify({
@@ -7059,15 +7059,12 @@ const deserializeAws_restJson1VolumeStatistics = (output, context) => {
7059
7059
  SpamRawCount: (0, smithy_client_1.expectLong)(output.SpamRawCount),
7060
7060
  };
7061
7061
  };
7062
- const deserializeMetadata = (output) => {
7063
- var _a, _b;
7064
- return ({
7065
- httpStatusCode: output.statusCode,
7066
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
7067
- extendedRequestId: output.headers["x-amz-id-2"],
7068
- cfId: output.headers["x-amz-cf-id"],
7069
- });
7070
- };
7062
+ const deserializeMetadata = (output) => ({
7063
+ httpStatusCode: output.statusCode,
7064
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
7065
+ extendedRequestId: output.headers["x-amz-id-2"],
7066
+ cfId: output.headers["x-amz-cf-id"],
7067
+ });
7071
7068
  const collectBody = (streamBody = new Uint8Array(), context) => {
7072
7069
  if (streamBody instanceof Uint8Array) {
7073
7070
  return Promise.resolve(streamBody);
@@ -7087,9 +7084,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7087
7084
  return {};
7088
7085
  });
7089
7086
  const parseErrorBody = async (errorBody, context) => {
7090
- var _a;
7091
7087
  const value = await parseBody(errorBody, context);
7092
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
7088
+ value.message = value.message ?? value.Message;
7093
7089
  return value;
7094
7090
  };
7095
7091
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2019-09-27",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SESv2",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2019-09-27",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "SESv2",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sesv2",
3
3
  "description": "AWS SDK for JavaScript Sesv2 Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.201.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,44 +19,44 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.201.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.201.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
59
- "@tsconfig/recommended": "1.0.1",
59
+ "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^12.7.5",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": ">=12.0.0"
73
+ "node": ">=14.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {