@aws-sdk/client-lex-runtime-v2 3.53.0 → 3.55.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.
@@ -18,9 +18,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
18
18
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
19
19
  const getRuntimeConfig = (config) => {
20
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
21
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
22
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
23
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
24
24
  return {
25
25
  ...clientSharedValues,
26
26
  ...config,
@@ -30,11 +30,11 @@ const getRuntimeConfig = (config) => {
30
30
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
31
31
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
32
32
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
33
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (() => ({ handle: invalid_dependency_1.invalidFunction("event stream request is not supported in browser.") })),
33
+ 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 }),
34
+ eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser.") })),
35
35
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_browser_1.eventStreamSerdeProvider,
36
36
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
37
- region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
37
+ region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
38
38
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
39
39
  retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
40
40
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
@@ -21,9 +21,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
21
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
22
22
  const getRuntimeConfig = (config) => {
23
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
24
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
24
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
26
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
27
27
  return {
28
28
  ...clientSharedValues,
29
29
  ...config,
@@ -32,21 +32,21 @@ const getRuntimeConfig = (config) => {
32
32
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
33
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
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 : 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 : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
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
37
  eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
38
38
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_node_1.eventStreamSerdeProvider,
39
- maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
- region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
+ region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
41
41
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(),
42
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
42
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)({
43
43
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
44
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
45
45
  }),
46
46
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
47
47
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
48
- useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
49
- useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
+ useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
49
+ useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
50
50
  utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.fromUtf8,
51
51
  utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_node_1.toUtf8,
52
52
  };
@@ -6,12 +6,12 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
6
6
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
7
7
  const getRuntimeConfig = (config) => {
8
8
  var _a, _b;
9
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
9
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
10
10
  return {
11
11
  ...browserDefaults,
12
12
  ...config,
13
13
  runtime: "react-native",
14
- eventStreamPayloadHandlerProvider: (_a = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _a !== void 0 ? _a : (() => ({ handle: invalid_dependency_1.invalidFunction("event stream request is not supported in ReactNative.") })),
14
+ eventStreamPayloadHandlerProvider: (_a = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _a !== void 0 ? _a : (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative.") })),
15
15
  sha256: (_b = config === null || config === void 0 ? void 0 : config.sha256) !== null && _b !== void 0 ? _b : sha256_js_1.Sha256,
16
16
  };
17
17
  };
@@ -18,7 +18,7 @@ var LexRuntimeV2 = (function (_super) {
18
18
  }
19
19
  else if (typeof cb === "function") {
20
20
  if (typeof optionsOrCb !== "object")
21
- throw new Error("Expect http options but get " + typeof optionsOrCb);
21
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
22
22
  this.send(command, optionsOrCb || {}, cb);
23
23
  }
24
24
  else {
@@ -32,7 +32,7 @@ var LexRuntimeV2 = (function (_super) {
32
32
  }
33
33
  else if (typeof cb === "function") {
34
34
  if (typeof optionsOrCb !== "object")
35
- throw new Error("Expect http options but get " + typeof optionsOrCb);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
36
  this.send(command, optionsOrCb || {}, cb);
37
37
  }
38
38
  else {
@@ -46,7 +46,7 @@ var LexRuntimeV2 = (function (_super) {
46
46
  }
47
47
  else if (typeof cb === "function") {
48
48
  if (typeof optionsOrCb !== "object")
49
- throw new Error("Expect http options but get " + typeof optionsOrCb);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
50
  this.send(command, optionsOrCb || {}, cb);
51
51
  }
52
52
  else {
@@ -60,7 +60,7 @@ var LexRuntimeV2 = (function (_super) {
60
60
  }
61
61
  else if (typeof cb === "function") {
62
62
  if (typeof optionsOrCb !== "object")
63
- throw new Error("Expect http options but get " + typeof optionsOrCb);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
64
  this.send(command, optionsOrCb || {}, cb);
65
65
  }
66
66
  else {
@@ -74,7 +74,7 @@ var LexRuntimeV2 = (function (_super) {
74
74
  }
75
75
  else if (typeof cb === "function") {
76
76
  if (typeof optionsOrCb !== "object")
77
- throw new Error("Expect http options but get " + typeof optionsOrCb);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
78
  this.send(command, optionsOrCb || {}, cb);
79
79
  }
80
80
  else {
@@ -88,7 +88,7 @@ var LexRuntimeV2 = (function (_super) {
88
88
  }
89
89
  else if (typeof cb === "function") {
90
90
  if (typeof optionsOrCb !== "object")
91
- throw new Error("Expect http options but get " + typeof optionsOrCb);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
92
  this.send(command, optionsOrCb || {}, cb);
93
93
  }
94
94
  else {
@@ -11,7 +11,7 @@ export var serializeAws_restJson1DeleteSessionCommand = function (input, context
11
11
  case 1:
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = {};
14
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
14
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
15
15
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}";
16
16
  if (input.botId !== undefined) {
17
17
  labelValue = input.botId;
@@ -73,7 +73,7 @@ export var serializeAws_restJson1GetSessionCommand = function (input, context) {
73
73
  case 1:
74
74
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
75
75
  headers = {};
76
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
76
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
77
77
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}";
78
78
  if (input.botId !== undefined) {
79
79
  labelValue = input.botId;
@@ -135,7 +135,7 @@ export var serializeAws_restJson1PutSessionCommand = function (input, context) {
135
135
  case 1:
136
136
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
137
137
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.responseContentType) && { responsecontenttype: input.responseContentType }));
138
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
138
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
139
139
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}";
140
140
  if (input.botId !== undefined) {
141
141
  labelValue = input.botId;
@@ -205,7 +205,7 @@ export var serializeAws_restJson1RecognizeTextCommand = function (input, context
205
205
  headers = {
206
206
  "content-type": "application/json",
207
207
  };
208
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
208
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
209
209
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text";
210
210
  if (input.botId !== undefined) {
211
211
  labelValue = input.botId;
@@ -276,7 +276,7 @@ export var serializeAws_restJson1RecognizeUtteranceCommand = function (input, co
276
276
  })), (isSerializableHeaderValue(input.requestContentType) && { "content-type": input.requestContentType })), (isSerializableHeaderValue(input.responseContentType) && {
277
277
  "response-content-type": input.responseContentType,
278
278
  }));
279
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
279
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
280
280
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance";
281
281
  if (input.botId !== undefined) {
282
282
  labelValue = input.botId;
@@ -343,7 +343,7 @@ export var serializeAws_restJson1StartConversationCommand = function (input, con
343
343
  headers = __assign({}, (isSerializableHeaderValue(input.conversationMode) && {
344
344
  "x-amz-lex-conversation-mode": input.conversationMode,
345
345
  }));
346
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
346
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
347
347
  "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation";
348
348
  if (input.botId !== undefined) {
349
349
  labelValue = input.botId;
@@ -7,7 +7,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
7
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
9
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
11
11
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
12
12
  import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
13
13
  import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
@@ -36,7 +36,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
36
36
  * A function that can calculate the length of a request body.
37
37
  * @internal
38
38
  */
39
- bodyLengthChecker?: (body: any) => number | undefined;
39
+ bodyLengthChecker?: __BodyLengthCalculator;
40
40
  /**
41
41
  * A function that converts a stream into an array of bytes.
42
42
  * @internal
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
9
9
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
10
10
  apiVersion: string;
11
11
  urlParser: import("@aws-sdk/types").UrlParser;
12
- bodyLengthChecker: (body: any) => number | undefined;
12
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
13
13
  streamCollector: import("@aws-sdk/types").StreamCollector;
14
14
  base64Decoder: import("@aws-sdk/types").Decoder;
15
15
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -22,12 +22,12 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
24
24
  serviceId: string;
25
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
25
+ region: string | import("@aws-sdk/types").Provider<any>;
26
26
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
27
27
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
28
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
29
29
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
30
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
30
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
31
31
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
32
32
  tls?: boolean | undefined;
33
33
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -7,7 +7,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
7
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
9
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
11
11
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
12
12
  import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
13
13
  import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
@@ -24,7 +24,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
24
24
 
25
25
  urlParser?: __UrlParser;
26
26
 
27
- bodyLengthChecker?: (body: any) => number | undefined;
27
+ bodyLengthChecker?: __BodyLengthCalculator;
28
28
 
29
29
  streamCollector?: __StreamCollector;
30
30
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
7
7
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
8
8
  apiVersion: string;
9
9
  urlParser: import("@aws-sdk/types").UrlParser;
10
- bodyLengthChecker: (body: any) => number | undefined;
10
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
11
11
  streamCollector: import("@aws-sdk/types").StreamCollector;
12
12
  base64Decoder: import("@aws-sdk/types").Decoder;
13
13
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -20,12 +20,12 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  serviceId: string;
23
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
+ region: string | import("@aws-sdk/types").Provider<any>;
24
24
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
25
25
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
26
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
27
27
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
4
- "version": "3.53.0",
4
+ "version": "3.55.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",
@@ -18,52 +18,52 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/eventstream-handler-node": "3.53.0",
25
- "@aws-sdk/eventstream-serde-browser": "3.53.0",
26
- "@aws-sdk/eventstream-serde-config-resolver": "3.53.0",
27
- "@aws-sdk/eventstream-serde-node": "3.53.0",
28
- "@aws-sdk/fetch-http-handler": "3.53.0",
29
- "@aws-sdk/hash-node": "3.53.0",
30
- "@aws-sdk/invalid-dependency": "3.53.0",
31
- "@aws-sdk/middleware-content-length": "3.53.0",
32
- "@aws-sdk/middleware-eventstream": "3.53.0",
33
- "@aws-sdk/middleware-host-header": "3.53.0",
34
- "@aws-sdk/middleware-logger": "3.53.0",
35
- "@aws-sdk/middleware-retry": "3.53.0",
36
- "@aws-sdk/middleware-serde": "3.53.0",
37
- "@aws-sdk/middleware-signing": "3.53.0",
38
- "@aws-sdk/middleware-stack": "3.53.0",
39
- "@aws-sdk/middleware-user-agent": "3.53.0",
40
- "@aws-sdk/node-config-provider": "3.53.0",
41
- "@aws-sdk/node-http-handler": "3.53.0",
42
- "@aws-sdk/protocol-http": "3.53.0",
43
- "@aws-sdk/smithy-client": "3.53.0",
44
- "@aws-sdk/types": "3.53.0",
45
- "@aws-sdk/url-parser": "3.53.0",
46
- "@aws-sdk/util-base64-browser": "3.52.0",
47
- "@aws-sdk/util-base64-node": "3.52.0",
48
- "@aws-sdk/util-body-length-browser": "3.52.0",
49
- "@aws-sdk/util-body-length-node": "3.52.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
52
- "@aws-sdk/util-user-agent-browser": "3.53.0",
53
- "@aws-sdk/util-user-agent-node": "3.53.0",
54
- "@aws-sdk/util-utf8-browser": "3.52.0",
55
- "@aws-sdk/util-utf8-node": "3.52.0",
56
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.55.0",
22
+ "@aws-sdk/config-resolver": "3.55.0",
23
+ "@aws-sdk/credential-provider-node": "3.55.0",
24
+ "@aws-sdk/eventstream-handler-node": "3.55.0",
25
+ "@aws-sdk/eventstream-serde-browser": "3.55.0",
26
+ "@aws-sdk/eventstream-serde-config-resolver": "3.55.0",
27
+ "@aws-sdk/eventstream-serde-node": "3.55.0",
28
+ "@aws-sdk/fetch-http-handler": "3.55.0",
29
+ "@aws-sdk/hash-node": "3.55.0",
30
+ "@aws-sdk/invalid-dependency": "3.55.0",
31
+ "@aws-sdk/middleware-content-length": "3.55.0",
32
+ "@aws-sdk/middleware-eventstream": "3.55.0",
33
+ "@aws-sdk/middleware-host-header": "3.55.0",
34
+ "@aws-sdk/middleware-logger": "3.55.0",
35
+ "@aws-sdk/middleware-retry": "3.55.0",
36
+ "@aws-sdk/middleware-serde": "3.55.0",
37
+ "@aws-sdk/middleware-signing": "3.55.0",
38
+ "@aws-sdk/middleware-stack": "3.55.0",
39
+ "@aws-sdk/middleware-user-agent": "3.55.0",
40
+ "@aws-sdk/node-config-provider": "3.55.0",
41
+ "@aws-sdk/node-http-handler": "3.55.0",
42
+ "@aws-sdk/protocol-http": "3.55.0",
43
+ "@aws-sdk/smithy-client": "3.55.0",
44
+ "@aws-sdk/types": "3.55.0",
45
+ "@aws-sdk/url-parser": "3.55.0",
46
+ "@aws-sdk/util-base64-browser": "3.55.0",
47
+ "@aws-sdk/util-base64-node": "3.55.0",
48
+ "@aws-sdk/util-body-length-browser": "3.55.0",
49
+ "@aws-sdk/util-body-length-node": "3.55.0",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
51
+ "@aws-sdk/util-defaults-mode-node": "3.55.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
53
+ "@aws-sdk/util-user-agent-node": "3.55.0",
54
+ "@aws-sdk/util-utf8-browser": "3.55.0",
55
+ "@aws-sdk/util-utf8-node": "3.55.0",
56
+ "tslib": "^2.3.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
60
60
  "@tsconfig/recommended": "1.0.1",
61
61
  "@types/node": "^12.7.5",
62
62
  "concurrently": "7.0.0",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "rimraf": "3.0.2",
65
65
  "typedoc": "0.19.2",
66
- "typescript": "~4.3.5"
66
+ "typescript": "~4.6.2"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=12.0.0"