@aws-sdk/client-lex-models-v2 3.199.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,25 @@
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
+
17
+ # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-lex-models-v2
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-lex-models-v2
@@ -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: "lex",
11
10
  };
12
11
  };
@@ -10,7 +10,7 @@ const models_0_1 = require("../models/models_0");
10
10
  const serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
11
11
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
12
  const headers = {};
13
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
13
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
14
14
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
16
16
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -32,7 +32,7 @@ const serializeAws_restJson1CreateBotCommand = async (input, context) => {
32
32
  const headers = {
33
33
  "content-type": "application/json",
34
34
  };
35
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots";
35
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots";
36
36
  let body;
37
37
  body = JSON.stringify({
38
38
  ...(input.botName != null && { botName: input.botName }),
@@ -61,7 +61,7 @@ const serializeAws_restJson1CreateBotAliasCommand = async (input, context) => {
61
61
  const headers = {
62
62
  "content-type": "application/json",
63
63
  };
64
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases";
64
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases";
65
65
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
66
66
  let body;
67
67
  body = JSON.stringify({
@@ -95,7 +95,7 @@ const serializeAws_restJson1CreateBotLocaleCommand = async (input, context) => {
95
95
  const headers = {
96
96
  "content-type": "application/json",
97
97
  };
98
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
98
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
99
99
  "/bots/{botId}/botversions/{botVersion}/botlocales";
100
100
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
101
101
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateBotVersionCommand = async (input, context) =>
126
126
  const headers = {
127
127
  "content-type": "application/json",
128
128
  };
129
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions";
129
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions";
130
130
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
131
131
  let body;
132
132
  body = JSON.stringify({
@@ -151,7 +151,7 @@ const serializeAws_restJson1CreateExportCommand = async (input, context) => {
151
151
  const headers = {
152
152
  "content-type": "application/json",
153
153
  };
154
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/exports";
154
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports";
155
155
  let body;
156
156
  body = JSON.stringify({
157
157
  ...(input.fileFormat != null && { fileFormat: input.fileFormat }),
@@ -176,7 +176,7 @@ const serializeAws_restJson1CreateIntentCommand = async (input, context) => {
176
176
  const headers = {
177
177
  "content-type": "application/json",
178
178
  };
179
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
179
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
180
180
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents";
181
181
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
182
182
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -230,7 +230,7 @@ const serializeAws_restJson1CreateResourcePolicyCommand = async (input, context)
230
230
  const headers = {
231
231
  "content-type": "application/json",
232
232
  };
233
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
233
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
234
234
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
235
235
  let body;
236
236
  body = JSON.stringify({
@@ -252,7 +252,7 @@ const serializeAws_restJson1CreateResourcePolicyStatementCommand = async (input,
252
252
  const headers = {
253
253
  "content-type": "application/json",
254
254
  };
255
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}/statements";
255
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}/statements";
256
256
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
257
257
  const query = map({
258
258
  expectedRevisionId: [, input.expectedRevisionId],
@@ -282,7 +282,7 @@ const serializeAws_restJson1CreateSlotCommand = async (input, context) => {
282
282
  const headers = {
283
283
  "content-type": "application/json",
284
284
  };
285
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
285
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
286
286
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots";
287
287
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
288
288
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -322,7 +322,7 @@ const serializeAws_restJson1CreateSlotTypeCommand = async (input, context) => {
322
322
  const headers = {
323
323
  "content-type": "application/json",
324
324
  };
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
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes";
327
327
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
328
328
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -361,7 +361,7 @@ const serializeAws_restJson1CreateUploadUrlCommand = async (input, context) => {
361
361
  const headers = {
362
362
  "content-type": "application/json",
363
363
  };
364
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createuploadurl";
364
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createuploadurl";
365
365
  let body;
366
366
  body = "";
367
367
  return new protocol_http_1.HttpRequest({
@@ -378,7 +378,7 @@ exports.serializeAws_restJson1CreateUploadUrlCommand = serializeAws_restJson1Cre
378
378
  const serializeAws_restJson1DeleteBotCommand = 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 || ""}` + "/bots/{botId}";
381
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}";
382
382
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
383
383
  const query = map({
384
384
  skipResourceInUseCheck: [
@@ -402,7 +402,7 @@ exports.serializeAws_restJson1DeleteBotCommand = serializeAws_restJson1DeleteBot
402
402
  const serializeAws_restJson1DeleteBotAliasCommand = async (input, context) => {
403
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
404
  const headers = {};
405
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
405
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
406
406
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAliasId", () => input.botAliasId, "{botAliasId}", false);
407
407
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
408
408
  const query = map({
@@ -427,7 +427,7 @@ exports.serializeAws_restJson1DeleteBotAliasCommand = serializeAws_restJson1Dele
427
427
  const serializeAws_restJson1DeleteBotLocaleCommand = async (input, context) => {
428
428
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
429
  const headers = {};
430
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
430
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
431
431
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}";
432
432
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
433
433
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -447,7 +447,7 @@ exports.serializeAws_restJson1DeleteBotLocaleCommand = serializeAws_restJson1Del
447
447
  const serializeAws_restJson1DeleteBotVersionCommand = 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 || ""}` + "/bots/{botId}/botversions/{botVersion}";
450
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions/{botVersion}";
451
451
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
452
452
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
453
453
  const query = map({
@@ -472,7 +472,7 @@ exports.serializeAws_restJson1DeleteBotVersionCommand = serializeAws_restJson1De
472
472
  const serializeAws_restJson1DeleteCustomVocabularyCommand = async (input, context) => {
473
473
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
474
  const headers = {};
475
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
475
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
476
476
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary";
477
477
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
478
478
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -492,7 +492,7 @@ exports.serializeAws_restJson1DeleteCustomVocabularyCommand = serializeAws_restJ
492
492
  const serializeAws_restJson1DeleteExportCommand = async (input, context) => {
493
493
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
494
494
  const headers = {};
495
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
495
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
496
496
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "exportId", () => input.exportId, "{exportId}", false);
497
497
  let body;
498
498
  return new protocol_http_1.HttpRequest({
@@ -509,7 +509,7 @@ exports.serializeAws_restJson1DeleteExportCommand = serializeAws_restJson1Delete
509
509
  const serializeAws_restJson1DeleteImportCommand = async (input, context) => {
510
510
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
511
511
  const headers = {};
512
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}";
512
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}";
513
513
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importId", () => input.importId, "{importId}", false);
514
514
  let body;
515
515
  return new protocol_http_1.HttpRequest({
@@ -526,7 +526,7 @@ exports.serializeAws_restJson1DeleteImportCommand = serializeAws_restJson1Delete
526
526
  const serializeAws_restJson1DeleteIntentCommand = async (input, context) => {
527
527
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
528
  const headers = {};
529
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
529
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
530
530
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}";
531
531
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
532
532
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -547,7 +547,7 @@ exports.serializeAws_restJson1DeleteIntentCommand = serializeAws_restJson1Delete
547
547
  const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context) => {
548
548
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
549
549
  const headers = {};
550
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
550
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
551
551
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
552
552
  const query = map({
553
553
  expectedRevisionId: [, input.expectedRevisionId],
@@ -568,7 +568,7 @@ exports.serializeAws_restJson1DeleteResourcePolicyCommand = serializeAws_restJso
568
568
  const serializeAws_restJson1DeleteResourcePolicyStatementCommand = async (input, context) => {
569
569
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
570
  const headers = {};
571
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
571
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
572
572
  "/policy/{resourceArn}/statements/{statementId}";
573
573
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
574
574
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statementId", () => input.statementId, "{statementId}", false);
@@ -591,7 +591,7 @@ exports.serializeAws_restJson1DeleteResourcePolicyStatementCommand = serializeAw
591
591
  const serializeAws_restJson1DeleteSlotCommand = async (input, context) => {
592
592
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
593
593
  const headers = {};
594
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
594
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
595
595
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}";
596
596
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotId", () => input.slotId, "{slotId}", false);
597
597
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -613,7 +613,7 @@ exports.serializeAws_restJson1DeleteSlotCommand = serializeAws_restJson1DeleteSl
613
613
  const serializeAws_restJson1DeleteSlotTypeCommand = async (input, context) => {
614
614
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
615
615
  const headers = {};
616
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
616
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
617
617
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}";
618
618
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
619
619
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -641,7 +641,7 @@ exports.serializeAws_restJson1DeleteSlotTypeCommand = serializeAws_restJson1Dele
641
641
  const serializeAws_restJson1DeleteUtterancesCommand = async (input, context) => {
642
642
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
643
643
  const headers = {};
644
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/utterances";
644
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/utterances";
645
645
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
646
646
  const query = map({
647
647
  localeId: [, input.localeId],
@@ -663,7 +663,7 @@ exports.serializeAws_restJson1DeleteUtterancesCommand = serializeAws_restJson1De
663
663
  const serializeAws_restJson1DescribeBotCommand = async (input, context) => {
664
664
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
665
  const headers = {};
666
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}";
666
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}";
667
667
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
668
668
  let body;
669
669
  return new protocol_http_1.HttpRequest({
@@ -680,7 +680,7 @@ exports.serializeAws_restJson1DescribeBotCommand = serializeAws_restJson1Describ
680
680
  const serializeAws_restJson1DescribeBotAliasCommand = async (input, context) => {
681
681
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
682
  const headers = {};
683
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
683
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
684
684
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAliasId", () => input.botAliasId, "{botAliasId}", false);
685
685
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
686
686
  let body;
@@ -698,7 +698,7 @@ exports.serializeAws_restJson1DescribeBotAliasCommand = serializeAws_restJson1De
698
698
  const serializeAws_restJson1DescribeBotLocaleCommand = async (input, context) => {
699
699
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
700
700
  const headers = {};
701
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
701
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
702
702
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}";
703
703
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
704
704
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -718,7 +718,7 @@ exports.serializeAws_restJson1DescribeBotLocaleCommand = serializeAws_restJson1D
718
718
  const serializeAws_restJson1DescribeBotRecommendationCommand = async (input, context) => {
719
719
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
720
720
  const headers = {};
721
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
721
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
722
722
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}";
723
723
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
724
724
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -739,7 +739,7 @@ exports.serializeAws_restJson1DescribeBotRecommendationCommand = serializeAws_re
739
739
  const serializeAws_restJson1DescribeBotVersionCommand = async (input, context) => {
740
740
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
741
741
  const headers = {};
742
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions/{botVersion}";
742
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions/{botVersion}";
743
743
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
744
744
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
745
745
  let body;
@@ -757,7 +757,7 @@ exports.serializeAws_restJson1DescribeBotVersionCommand = serializeAws_restJson1
757
757
  const serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = async (input, context) => {
758
758
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
759
  const headers = {};
760
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
760
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
761
761
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata";
762
762
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
763
763
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -777,7 +777,7 @@ exports.serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = serializ
777
777
  const serializeAws_restJson1DescribeExportCommand = async (input, context) => {
778
778
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
779
779
  const headers = {};
780
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
780
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
781
781
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "exportId", () => input.exportId, "{exportId}", false);
782
782
  let body;
783
783
  return new protocol_http_1.HttpRequest({
@@ -794,7 +794,7 @@ exports.serializeAws_restJson1DescribeExportCommand = serializeAws_restJson1Desc
794
794
  const serializeAws_restJson1DescribeImportCommand = async (input, context) => {
795
795
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
796
796
  const headers = {};
797
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}";
797
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}";
798
798
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importId", () => input.importId, "{importId}", false);
799
799
  let body;
800
800
  return new protocol_http_1.HttpRequest({
@@ -811,7 +811,7 @@ exports.serializeAws_restJson1DescribeImportCommand = serializeAws_restJson1Desc
811
811
  const serializeAws_restJson1DescribeIntentCommand = async (input, context) => {
812
812
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
813
813
  const headers = {};
814
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
814
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
815
815
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}";
816
816
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
817
817
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -832,7 +832,7 @@ exports.serializeAws_restJson1DescribeIntentCommand = serializeAws_restJson1Desc
832
832
  const serializeAws_restJson1DescribeResourcePolicyCommand = async (input, context) => {
833
833
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
834
834
  const headers = {};
835
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
835
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
836
836
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
837
837
  let body;
838
838
  return new protocol_http_1.HttpRequest({
@@ -849,7 +849,7 @@ exports.serializeAws_restJson1DescribeResourcePolicyCommand = serializeAws_restJ
849
849
  const serializeAws_restJson1DescribeSlotCommand = async (input, context) => {
850
850
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
851
851
  const headers = {};
852
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
852
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
853
853
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}";
854
854
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotId", () => input.slotId, "{slotId}", false);
855
855
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -871,7 +871,7 @@ exports.serializeAws_restJson1DescribeSlotCommand = serializeAws_restJson1Descri
871
871
  const serializeAws_restJson1DescribeSlotTypeCommand = async (input, context) => {
872
872
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
873
873
  const headers = {};
874
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
874
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
875
875
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}";
876
876
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
877
877
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -894,7 +894,7 @@ const serializeAws_restJson1ListAggregatedUtterancesCommand = async (input, cont
894
894
  const headers = {
895
895
  "content-type": "application/json",
896
896
  };
897
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/aggregatedutterances";
897
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/aggregatedutterances";
898
898
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
899
899
  let body;
900
900
  body = JSON.stringify({
@@ -927,7 +927,7 @@ const serializeAws_restJson1ListBotAliasesCommand = async (input, context) => {
927
927
  const headers = {
928
928
  "content-type": "application/json",
929
929
  };
930
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases";
930
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases";
931
931
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
932
932
  let body;
933
933
  body = JSON.stringify({
@@ -950,7 +950,7 @@ const serializeAws_restJson1ListBotLocalesCommand = async (input, context) => {
950
950
  const headers = {
951
951
  "content-type": "application/json",
952
952
  };
953
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
953
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
954
954
  "/bots/{botId}/botversions/{botVersion}/botlocales";
955
955
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
956
956
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -977,7 +977,7 @@ const serializeAws_restJson1ListBotRecommendationsCommand = async (input, contex
977
977
  const headers = {
978
978
  "content-type": "application/json",
979
979
  };
980
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
980
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
981
981
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations";
982
982
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
983
983
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1003,7 +1003,7 @@ const serializeAws_restJson1ListBotsCommand = async (input, context) => {
1003
1003
  const headers = {
1004
1004
  "content-type": "application/json",
1005
1005
  };
1006
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots";
1006
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots";
1007
1007
  let body;
1008
1008
  body = JSON.stringify({
1009
1009
  ...(input.filters != null && { filters: serializeAws_restJson1BotFilters(input.filters, context) }),
@@ -1027,7 +1027,7 @@ const serializeAws_restJson1ListBotVersionsCommand = async (input, context) => {
1027
1027
  const headers = {
1028
1028
  "content-type": "application/json",
1029
1029
  };
1030
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions";
1030
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions";
1031
1031
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1032
1032
  let body;
1033
1033
  body = JSON.stringify({
@@ -1051,7 +1051,7 @@ const serializeAws_restJson1ListBuiltInIntentsCommand = async (input, context) =
1051
1051
  const headers = {
1052
1052
  "content-type": "application/json",
1053
1053
  };
1054
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/intents";
1054
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/intents";
1055
1055
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
1056
1056
  let body;
1057
1057
  body = JSON.stringify({
@@ -1075,7 +1075,7 @@ const serializeAws_restJson1ListBuiltInSlotTypesCommand = async (input, context)
1075
1075
  const headers = {
1076
1076
  "content-type": "application/json",
1077
1077
  };
1078
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/slottypes";
1078
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/slottypes";
1079
1079
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
1080
1080
  let body;
1081
1081
  body = JSON.stringify({
@@ -1099,7 +1099,7 @@ const serializeAws_restJson1ListExportsCommand = async (input, context) => {
1099
1099
  const headers = {
1100
1100
  "content-type": "application/json",
1101
1101
  };
1102
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/exports";
1102
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports";
1103
1103
  let body;
1104
1104
  body = JSON.stringify({
1105
1105
  ...(input.botId != null && { botId: input.botId }),
@@ -1126,7 +1126,7 @@ const serializeAws_restJson1ListImportsCommand = async (input, context) => {
1126
1126
  const headers = {
1127
1127
  "content-type": "application/json",
1128
1128
  };
1129
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/imports";
1129
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports";
1130
1130
  let body;
1131
1131
  body = JSON.stringify({
1132
1132
  ...(input.botId != null && { botId: input.botId }),
@@ -1153,7 +1153,7 @@ const serializeAws_restJson1ListIntentsCommand = async (input, context) => {
1153
1153
  const headers = {
1154
1154
  "content-type": "application/json",
1155
1155
  };
1156
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1156
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1157
1157
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents";
1158
1158
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1159
1159
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1181,7 +1181,7 @@ const serializeAws_restJson1ListRecommendedIntentsCommand = async (input, contex
1181
1181
  const headers = {
1182
1182
  "content-type": "application/json",
1183
1183
  };
1184
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1184
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1185
1185
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents";
1186
1186
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1187
1187
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1208,7 +1208,7 @@ const serializeAws_restJson1ListSlotsCommand = async (input, context) => {
1208
1208
  const headers = {
1209
1209
  "content-type": "application/json",
1210
1210
  };
1211
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1211
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1212
1212
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots";
1213
1213
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1214
1214
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1237,7 +1237,7 @@ const serializeAws_restJson1ListSlotTypesCommand = async (input, context) => {
1237
1237
  const headers = {
1238
1238
  "content-type": "application/json",
1239
1239
  };
1240
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1240
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1241
1241
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes";
1242
1242
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1243
1243
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1263,7 +1263,7 @@ exports.serializeAws_restJson1ListSlotTypesCommand = serializeAws_restJson1ListS
1263
1263
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1264
1264
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1265
1265
  const headers = {};
1266
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1266
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1267
1267
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
1268
1268
  let body;
1269
1269
  return new protocol_http_1.HttpRequest({
@@ -1282,7 +1282,7 @@ const serializeAws_restJson1SearchAssociatedTranscriptsCommand = async (input, c
1282
1282
  const headers = {
1283
1283
  "content-type": "application/json",
1284
1284
  };
1285
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1285
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1286
1286
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts";
1287
1287
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1288
1288
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1313,7 +1313,7 @@ const serializeAws_restJson1StartBotRecommendationCommand = async (input, contex
1313
1313
  const headers = {
1314
1314
  "content-type": "application/json",
1315
1315
  };
1316
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1316
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1317
1317
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations";
1318
1318
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1319
1319
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1343,7 +1343,7 @@ const serializeAws_restJson1StartImportCommand = async (input, context) => {
1343
1343
  const headers = {
1344
1344
  "content-type": "application/json",
1345
1345
  };
1346
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/imports";
1346
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports";
1347
1347
  let body;
1348
1348
  body = JSON.stringify({
1349
1349
  ...(input.filePassword != null && { filePassword: input.filePassword }),
@@ -1367,7 +1367,7 @@ exports.serializeAws_restJson1StartImportCommand = serializeAws_restJson1StartIm
1367
1367
  const serializeAws_restJson1StopBotRecommendationCommand = async (input, context) => {
1368
1368
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1369
1369
  const headers = {};
1370
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1370
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1371
1371
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation";
1372
1372
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1373
1373
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1390,7 +1390,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1390
1390
  const headers = {
1391
1391
  "content-type": "application/json",
1392
1392
  };
1393
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1393
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1394
1394
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
1395
1395
  let body;
1396
1396
  body = JSON.stringify({
@@ -1410,7 +1410,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
1410
1410
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1411
1411
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1412
1412
  const headers = {};
1413
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1413
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}";
1414
1414
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
1415
1415
  const query = map({
1416
1416
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -1433,7 +1433,7 @@ const serializeAws_restJson1UpdateBotCommand = async (input, context) => {
1433
1433
  const headers = {
1434
1434
  "content-type": "application/json",
1435
1435
  };
1436
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}";
1436
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}";
1437
1437
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1438
1438
  let body;
1439
1439
  body = JSON.stringify({
@@ -1459,7 +1459,7 @@ const serializeAws_restJson1UpdateBotAliasCommand = async (input, context) => {
1459
1459
  const headers = {
1460
1460
  "content-type": "application/json",
1461
1461
  };
1462
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
1462
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}";
1463
1463
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAliasId", () => input.botAliasId, "{botAliasId}", false);
1464
1464
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1465
1465
  let body;
@@ -1493,7 +1493,7 @@ const serializeAws_restJson1UpdateBotLocaleCommand = async (input, context) => {
1493
1493
  const headers = {
1494
1494
  "content-type": "application/json",
1495
1495
  };
1496
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1496
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1497
1497
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}";
1498
1498
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1499
1499
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1524,7 +1524,7 @@ const serializeAws_restJson1UpdateBotRecommendationCommand = async (input, conte
1524
1524
  const headers = {
1525
1525
  "content-type": "application/json",
1526
1526
  };
1527
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1527
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1528
1528
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}";
1529
1529
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1530
1530
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
@@ -1552,7 +1552,7 @@ const serializeAws_restJson1UpdateExportCommand = async (input, context) => {
1552
1552
  const headers = {
1553
1553
  "content-type": "application/json",
1554
1554
  };
1555
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
1555
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}";
1556
1556
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "exportId", () => input.exportId, "{exportId}", false);
1557
1557
  let body;
1558
1558
  body = JSON.stringify({
@@ -1574,7 +1574,7 @@ const serializeAws_restJson1UpdateIntentCommand = async (input, context) => {
1574
1574
  const headers = {
1575
1575
  "content-type": "application/json",
1576
1576
  };
1577
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1577
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1578
1578
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}";
1579
1579
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "intentId", () => input.intentId, "{intentId}", false);
1580
1580
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -1632,7 +1632,7 @@ const serializeAws_restJson1UpdateResourcePolicyCommand = async (input, context)
1632
1632
  const headers = {
1633
1633
  "content-type": "application/json",
1634
1634
  };
1635
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
1635
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}";
1636
1636
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1637
1637
  const query = map({
1638
1638
  expectedRevisionId: [, input.expectedRevisionId],
@@ -1658,7 +1658,7 @@ const serializeAws_restJson1UpdateSlotCommand = async (input, context) => {
1658
1658
  const headers = {
1659
1659
  "content-type": "application/json",
1660
1660
  };
1661
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1661
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1662
1662
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}";
1663
1663
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotId", () => input.slotId, "{slotId}", false);
1664
1664
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -1699,7 +1699,7 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
1699
1699
  const headers = {
1700
1700
  "content-type": "application/json",
1701
1701
  };
1702
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1702
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1703
1703
  "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}";
1704
1704
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "slotTypeId", () => input.slotTypeId, "{slotTypeId}", false);
1705
1705
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
@@ -8778,15 +8778,12 @@ const deserializeAws_restJson1WaitAndContinueSpecification = (output, context) =
8778
8778
  : undefined,
8779
8779
  };
8780
8780
  };
8781
- const deserializeMetadata = (output) => {
8782
- var _a, _b;
8783
- return ({
8784
- httpStatusCode: output.statusCode,
8785
- 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"],
8786
- extendedRequestId: output.headers["x-amz-id-2"],
8787
- cfId: output.headers["x-amz-cf-id"],
8788
- });
8789
- };
8781
+ const deserializeMetadata = (output) => ({
8782
+ httpStatusCode: output.statusCode,
8783
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
8784
+ extendedRequestId: output.headers["x-amz-id-2"],
8785
+ cfId: output.headers["x-amz-cf-id"],
8786
+ });
8790
8787
  const collectBody = (streamBody = new Uint8Array(), context) => {
8791
8788
  if (streamBody instanceof Uint8Array) {
8792
8789
  return Promise.resolve(streamBody);
@@ -8806,9 +8803,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
8806
8803
  return {};
8807
8804
  });
8808
8805
  const parseErrorBody = async (errorBody, context) => {
8809
- var _a;
8810
8806
  const value = await parseBody(errorBody, context);
8811
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
8807
+ value.message = value.message ?? value.Message;
8812
8808
  return value;
8813
8809
  };
8814
8810
  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: "2020-08-07",
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 : "Lex Models V2",
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: "2020-08-07",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "Lex Models V2",
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-lex-models-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
4
- "version": "3.199.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,45 +19,45 @@
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.199.0",
23
- "@aws-sdk/config-resolver": "3.198.0",
24
- "@aws-sdk/credential-provider-node": "3.199.0",
25
- "@aws-sdk/fetch-http-handler": "3.199.0",
26
- "@aws-sdk/hash-node": "3.198.0",
27
- "@aws-sdk/invalid-dependency": "3.198.0",
28
- "@aws-sdk/middleware-content-length": "3.199.0",
29
- "@aws-sdk/middleware-endpoint": "3.198.0",
30
- "@aws-sdk/middleware-host-header": "3.198.0",
31
- "@aws-sdk/middleware-logger": "3.198.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
33
- "@aws-sdk/middleware-retry": "3.198.0",
34
- "@aws-sdk/middleware-serde": "3.198.0",
35
- "@aws-sdk/middleware-signing": "3.198.0",
36
- "@aws-sdk/middleware-stack": "3.198.0",
37
- "@aws-sdk/middleware-user-agent": "3.198.0",
38
- "@aws-sdk/node-config-provider": "3.198.0",
39
- "@aws-sdk/node-http-handler": "3.199.0",
40
- "@aws-sdk/protocol-http": "3.198.0",
41
- "@aws-sdk/smithy-client": "3.198.0",
42
- "@aws-sdk/types": "3.198.0",
43
- "@aws-sdk/url-parser": "3.198.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.198.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
50
- "@aws-sdk/util-endpoints": "3.198.0",
51
- "@aws-sdk/util-user-agent-browser": "3.198.0",
52
- "@aws-sdk/util-user-agent-node": "3.198.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",
55
- "@aws-sdk/util-waiter": "3.198.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
+ "@aws-sdk/util-waiter": "3.201.0",
56
56
  "tslib": "^2.3.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
- "@tsconfig/recommended": "1.0.1",
60
+ "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^12.7.5",
62
62
  "concurrently": "7.0.0",
63
63
  "downlevel-dts": "0.10.1",
@@ -71,7 +71,7 @@
71
71
  }
72
72
  },
73
73
  "engines": {
74
- "node": ">=12.0.0"
74
+ "node": ">=14.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {