@aws-sdk/client-lex-runtime-v2 3.45.0 → 3.47.2

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,50 @@
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.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
17
+
18
+
19
+
20
+
21
+
22
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
39
+
40
+
41
+ ### Features
42
+
43
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
44
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
51
 
8
52
 
@@ -1,14 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogAction = exports.DialogActionType = exports.StyleType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ConflictException = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = exports.AccessDeniedException = void 0;
4
- exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = exports.RecognizeTextRequest = void 0;
3
+ exports.StartConversationResponse = exports.StartConversationResponseEventStream = exports.RecognizeTextResponse = exports.IntentResultEvent = exports.GetSessionResponse = exports.StartConversationRequest = exports.StartConversationRequestEventStream = exports.RecognizeTextRequest = exports.PutSessionRequest = exports.ConfigurationEvent = exports.SessionState = exports.Interpretation = exports.Intent = exports.Slot = exports.TranscriptEvent = exports.TextResponseEvent = exports.PlaybackInterruptionEvent = exports.PlaybackInterruptionReason = exports.InputMode = exports.HeartbeatEvent = exports.TextInputEvent = exports.PlaybackCompletionEvent = exports.DTMFInputEvent = exports.DisconnectionEvent = exports.ConversationMode = exports.RecognizeUtteranceResponse = exports.RecognizeUtteranceRequest = exports.PutSessionResponse = exports.DialogAction = exports.DialogActionType = exports.StyleType = exports.Message = exports.ImageResponseCard = exports.Button = exports.MessageContentType = exports.SentimentResponse = exports.SentimentScore = exports.SentimentType = exports.ConfidenceScore = exports.IntentState = exports.Value = exports.Shape = exports.ConfirmationState = exports.GetSessionRequest = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.AudioResponseEvent = exports.AudioInputEvent = exports.ActiveContext = exports.ActiveContextTimeToLive = void 0;
5
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- var AccessDeniedException;
7
- (function (AccessDeniedException) {
8
- AccessDeniedException.filterSensitiveLog = (obj) => ({
9
- ...obj,
10
- });
11
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
12
5
  var ActiveContextTimeToLive;
13
6
  (function (ActiveContextTimeToLive) {
14
7
  ActiveContextTimeToLive.filterSensitiveLog = (obj) => ({
@@ -34,12 +27,6 @@ var AudioResponseEvent;
34
27
  ...obj,
35
28
  });
36
29
  })(AudioResponseEvent = exports.AudioResponseEvent || (exports.AudioResponseEvent = {}));
37
- var ConflictException;
38
- (function (ConflictException) {
39
- ConflictException.filterSensitiveLog = (obj) => ({
40
- ...obj,
41
- });
42
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
43
30
  var DeleteSessionRequest;
44
31
  (function (DeleteSessionRequest) {
45
32
  DeleteSessionRequest.filterSensitiveLog = (obj) => ({
@@ -52,30 +39,6 @@ var DeleteSessionResponse;
52
39
  ...obj,
53
40
  });
54
41
  })(DeleteSessionResponse = exports.DeleteSessionResponse || (exports.DeleteSessionResponse = {}));
55
- var InternalServerException;
56
- (function (InternalServerException) {
57
- InternalServerException.filterSensitiveLog = (obj) => ({
58
- ...obj,
59
- });
60
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
61
- var ResourceNotFoundException;
62
- (function (ResourceNotFoundException) {
63
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
64
- ...obj,
65
- });
66
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
67
- var ThrottlingException;
68
- (function (ThrottlingException) {
69
- ThrottlingException.filterSensitiveLog = (obj) => ({
70
- ...obj,
71
- });
72
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
73
- var ValidationException;
74
- (function (ValidationException) {
75
- ValidationException.filterSensitiveLog = (obj) => ({
76
- ...obj,
77
- });
78
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
79
42
  var GetSessionRequest;
80
43
  (function (GetSessionRequest) {
81
44
  GetSessionRequest.filterSensitiveLog = (obj) => ({
@@ -180,18 +143,6 @@ var DialogAction;
180
143
  ...obj,
181
144
  });
182
145
  })(DialogAction = exports.DialogAction || (exports.DialogAction = {}));
183
- var BadGatewayException;
184
- (function (BadGatewayException) {
185
- BadGatewayException.filterSensitiveLog = (obj) => ({
186
- ...obj,
187
- });
188
- })(BadGatewayException = exports.BadGatewayException || (exports.BadGatewayException = {}));
189
- var DependencyFailedException;
190
- (function (DependencyFailedException) {
191
- DependencyFailedException.filterSensitiveLog = (obj) => ({
192
- ...obj,
193
- });
194
- })(DependencyFailedException = exports.DependencyFailedException || (exports.DependencyFailedException = {}));
195
146
  var PutSessionResponse;
196
147
  (function (PutSessionResponse) {
197
148
  PutSessionResponse.filterSensitiveLog = (obj) => ({
@@ -438,21 +389,21 @@ var StartConversationResponseEventStream;
438
389
  if (obj.HeartbeatEvent !== undefined)
439
390
  return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
440
391
  if (obj.AccessDeniedException !== undefined)
441
- return { AccessDeniedException: AccessDeniedException.filterSensitiveLog(obj.AccessDeniedException) };
392
+ return { AccessDeniedException: obj.AccessDeniedException };
442
393
  if (obj.ResourceNotFoundException !== undefined)
443
- return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
394
+ return { ResourceNotFoundException: obj.ResourceNotFoundException };
444
395
  if (obj.ValidationException !== undefined)
445
- return { ValidationException: ValidationException.filterSensitiveLog(obj.ValidationException) };
396
+ return { ValidationException: obj.ValidationException };
446
397
  if (obj.ThrottlingException !== undefined)
447
- return { ThrottlingException: ThrottlingException.filterSensitiveLog(obj.ThrottlingException) };
398
+ return { ThrottlingException: obj.ThrottlingException };
448
399
  if (obj.InternalServerException !== undefined)
449
- return { InternalServerException: InternalServerException.filterSensitiveLog(obj.InternalServerException) };
400
+ return { InternalServerException: obj.InternalServerException };
450
401
  if (obj.ConflictException !== undefined)
451
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
402
+ return { ConflictException: obj.ConflictException };
452
403
  if (obj.DependencyFailedException !== undefined)
453
- return { DependencyFailedException: DependencyFailedException.filterSensitiveLog(obj.DependencyFailedException) };
404
+ return { DependencyFailedException: obj.DependencyFailedException };
454
405
  if (obj.BadGatewayException !== undefined)
455
- return { BadGatewayException: BadGatewayException.filterSensitiveLog(obj.BadGatewayException) };
406
+ return { BadGatewayException: obj.BadGatewayException };
456
407
  if (obj.$unknown !== undefined)
457
408
  return { [obj.$unknown[0]]: "UNKNOWN" };
458
409
  };
@@ -14,13 +14,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
14
14
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
15
15
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
16
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
18
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
17
19
  const getRuntimeConfig = (config) => {
18
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);
22
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
23
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
20
24
  return {
21
25
  ...clientSharedValues,
22
26
  ...config,
23
27
  runtime: "browser",
28
+ defaultsMode,
24
29
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
25
30
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
26
31
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -30,8 +35,8 @@ const getRuntimeConfig = (config) => {
30
35
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_browser_1.eventStreamSerdeProvider,
31
36
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
32
37
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
33
- requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(),
34
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
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
+ 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),
35
40
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
36
41
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
37
42
  useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -18,14 +18,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
18
18
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
19
19
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
20
20
  const smithy_client_1 = require("@aws-sdk/smithy-client");
21
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
21
22
  const getRuntimeConfig = (config) => {
22
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
23
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
24
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
25
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
25
27
  return {
26
28
  ...clientSharedValues,
27
29
  ...config,
28
30
  runtime: "node",
31
+ defaultsMode,
29
32
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
30
33
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
31
34
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -36,7 +39,10 @@ const getRuntimeConfig = (config) => {
36
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),
37
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),
38
41
  requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(),
39
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
42
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
43
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
45
+ }),
40
46
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
41
47
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
42
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),
@@ -1,9 +1,5 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
- export var AccessDeniedException;
4
- (function (AccessDeniedException) {
5
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AccessDeniedException || (AccessDeniedException = {}));
7
3
  export var ActiveContextTimeToLive;
8
4
  (function (ActiveContextTimeToLive) {
9
5
  ActiveContextTimeToLive.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -20,10 +16,6 @@ export var AudioResponseEvent;
20
16
  (function (AudioResponseEvent) {
21
17
  AudioResponseEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
18
  })(AudioResponseEvent || (AudioResponseEvent = {}));
23
- export var ConflictException;
24
- (function (ConflictException) {
25
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(ConflictException || (ConflictException = {}));
27
19
  export var DeleteSessionRequest;
28
20
  (function (DeleteSessionRequest) {
29
21
  DeleteSessionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -32,22 +24,6 @@ export var DeleteSessionResponse;
32
24
  (function (DeleteSessionResponse) {
33
25
  DeleteSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
26
  })(DeleteSessionResponse || (DeleteSessionResponse = {}));
35
- export var InternalServerException;
36
- (function (InternalServerException) {
37
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
38
- })(InternalServerException || (InternalServerException = {}));
39
- export var ResourceNotFoundException;
40
- (function (ResourceNotFoundException) {
41
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
43
- export var ThrottlingException;
44
- (function (ThrottlingException) {
45
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
- })(ThrottlingException || (ThrottlingException = {}));
47
- export var ValidationException;
48
- (function (ValidationException) {
49
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
50
- })(ValidationException || (ValidationException = {}));
51
27
  export var GetSessionRequest;
52
28
  (function (GetSessionRequest) {
53
29
  GetSessionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -133,14 +109,6 @@ export var DialogAction;
133
109
  (function (DialogAction) {
134
110
  DialogAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
111
  })(DialogAction || (DialogAction = {}));
136
- export var BadGatewayException;
137
- (function (BadGatewayException) {
138
- BadGatewayException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- })(BadGatewayException || (BadGatewayException = {}));
140
- export var DependencyFailedException;
141
- (function (DependencyFailedException) {
142
- DependencyFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- })(DependencyFailedException || (DependencyFailedException = {}));
144
112
  export var PutSessionResponse;
145
113
  (function (PutSessionResponse) {
146
114
  PutSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -333,21 +301,21 @@ export var StartConversationResponseEventStream;
333
301
  if (obj.HeartbeatEvent !== undefined)
334
302
  return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
335
303
  if (obj.AccessDeniedException !== undefined)
336
- return { AccessDeniedException: AccessDeniedException.filterSensitiveLog(obj.AccessDeniedException) };
304
+ return { AccessDeniedException: obj.AccessDeniedException };
337
305
  if (obj.ResourceNotFoundException !== undefined)
338
- return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
306
+ return { ResourceNotFoundException: obj.ResourceNotFoundException };
339
307
  if (obj.ValidationException !== undefined)
340
- return { ValidationException: ValidationException.filterSensitiveLog(obj.ValidationException) };
308
+ return { ValidationException: obj.ValidationException };
341
309
  if (obj.ThrottlingException !== undefined)
342
- return { ThrottlingException: ThrottlingException.filterSensitiveLog(obj.ThrottlingException) };
310
+ return { ThrottlingException: obj.ThrottlingException };
343
311
  if (obj.InternalServerException !== undefined)
344
- return { InternalServerException: InternalServerException.filterSensitiveLog(obj.InternalServerException) };
312
+ return { InternalServerException: obj.InternalServerException };
345
313
  if (obj.ConflictException !== undefined)
346
- return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
314
+ return { ConflictException: obj.ConflictException };
347
315
  if (obj.DependencyFailedException !== undefined)
348
- return { DependencyFailedException: DependencyFailedException.filterSensitiveLog(obj.DependencyFailedException) };
316
+ return { DependencyFailedException: obj.DependencyFailedException };
349
317
  if (obj.BadGatewayException !== undefined)
350
- return { BadGatewayException: BadGatewayException.filterSensitiveLog(obj.BadGatewayException) };
318
+ return { BadGatewayException: obj.BadGatewayException };
351
319
  if (obj.$unknown !== undefined)
352
320
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
353
321
  };
@@ -1,9 +1,9 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
5
  import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser";
6
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
7
7
  import { invalidFunction, invalidProvider } from "@aws-sdk/invalid-dependency";
8
8
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
9
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -11,8 +11,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
11
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
12
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
13
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
15
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
14
16
  export var getRuntimeConfig = function (config) {
15
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
18
+ var defaultsMode = resolveDefaultsModeConfig(config);
19
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
16
20
  var clientSharedValues = getSharedRuntimeConfig(config);
17
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new FetchHttpHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
21
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : (function () { return ({ handle: invalidFunction("event stream request is not supported in browser.") }); }), eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : DEFAULT_MAX_ATTEMPTS, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new RequestHandler(defaultConfigProvider), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
22
+ switch (_a.label) {
23
+ case 0: return [4, defaultConfigProvider()];
24
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
25
+ }
26
+ }); }); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Sha256, streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
18
27
  };
@@ -1,4 +1,4 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
6
6
  import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
7
7
  import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
8
8
  import { Hash } from "@aws-sdk/hash-node";
9
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
9
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
11
11
  import { NodeHttp2Handler, streamCollector } from "@aws-sdk/node-http-handler";
12
12
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
@@ -14,10 +14,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
14
14
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
15
15
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
16
16
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
17
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
18
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
18
19
  export var getRuntimeConfig = function (config) {
19
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
20
- emitWarningIfUnsupportedVersion(process.version);
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
22
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
23
30
  };
@@ -6,7 +6,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
6
6
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
7
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
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";
11
11
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
12
12
  import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
@@ -125,6 +125,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
125
125
  * The function that provides necessary utilities for generating and parsing event stream
126
126
  */
127
127
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
128
+ /**
129
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
130
+ */
131
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
128
132
  }
129
133
  declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
130
134
  /**
@@ -9,12 +9,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
9
9
  $fault: "client";
10
10
  message: string | undefined;
11
11
  }
12
- export declare namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
17
- }
18
12
  /**
19
13
  * <p>The time that a context is active. You can specify the time to live
20
14
  * in seconds or in conversation turns.</p>
@@ -151,12 +145,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
151
145
  $fault: "client";
152
146
  message: string | undefined;
153
147
  }
154
- export declare namespace ConflictException {
155
- /**
156
- * @internal
157
- */
158
- const filterSensitiveLog: (obj: ConflictException) => any;
159
- }
160
148
  export interface DeleteSessionRequest {
161
149
  /**
162
150
  * <p>The identifier of the bot that contains the session data.</p>
@@ -215,12 +203,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
215
203
  $fault: "server";
216
204
  message: string | undefined;
217
205
  }
218
- export declare namespace InternalServerException {
219
- /**
220
- * @internal
221
- */
222
- const filterSensitiveLog: (obj: InternalServerException) => any;
223
- }
224
206
  /**
225
207
  * <p></p>
226
208
  */
@@ -229,12 +211,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
229
211
  $fault: "client";
230
212
  message: string | undefined;
231
213
  }
232
- export declare namespace ResourceNotFoundException {
233
- /**
234
- * @internal
235
- */
236
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
237
- }
238
214
  /**
239
215
  * <p></p>
240
216
  */
@@ -243,12 +219,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
243
219
  $fault: "client";
244
220
  message: string | undefined;
245
221
  }
246
- export declare namespace ThrottlingException {
247
- /**
248
- * @internal
249
- */
250
- const filterSensitiveLog: (obj: ThrottlingException) => any;
251
- }
252
222
  /**
253
223
  * <p></p>
254
224
  */
@@ -257,12 +227,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
257
227
  $fault: "client";
258
228
  message: string | undefined;
259
229
  }
260
- export declare namespace ValidationException {
261
- /**
262
- * @internal
263
- */
264
- const filterSensitiveLog: (obj: ValidationException) => any;
265
- }
266
230
  export interface GetSessionRequest {
267
231
  /**
268
232
  * <p>The identifier of the bot that contains the session data.</p>
@@ -585,12 +549,6 @@ export interface BadGatewayException extends __SmithyException, $MetadataBearer
585
549
  $fault: "server";
586
550
  message: string | undefined;
587
551
  }
588
- export declare namespace BadGatewayException {
589
- /**
590
- * @internal
591
- */
592
- const filterSensitiveLog: (obj: BadGatewayException) => any;
593
- }
594
552
  /**
595
553
  * <p></p>
596
554
  */
@@ -599,12 +557,6 @@ export interface DependencyFailedException extends __SmithyException, $MetadataB
599
557
  $fault: "client";
600
558
  message: string | undefined;
601
559
  }
602
- export declare namespace DependencyFailedException {
603
- /**
604
- * @internal
605
- */
606
- const filterSensitiveLog: (obj: DependencyFailedException) => any;
607
- }
608
560
  export interface PutSessionResponse {
609
561
  /**
610
562
  * <p>The type of response. Same as the type specified in the
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -14,7 +15,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
15
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
16
17
  region: string | import("@aws-sdk/types").Provider<any>;
17
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
18
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
18
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
19
20
  sha256: import("@aws-sdk/types").HashConstructor;
20
21
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -5,10 +5,11 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
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
31
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
31
32
  tls?: boolean | undefined;
32
33
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -6,7 +6,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
6
6
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
7
7
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
8
8
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
9
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
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";
11
11
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
12
12
  import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
@@ -63,6 +63,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
63
63
  defaultUserAgentProvider?: Provider<__UserAgent>;
64
64
 
65
65
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
66
+
67
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
66
68
  }
67
69
  declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
68
70
 
@@ -7,10 +7,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
7
7
  $fault: "client";
8
8
  message: string | undefined;
9
9
  }
10
- export declare namespace AccessDeniedException {
11
-
12
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
13
- }
14
10
 
15
11
  export interface ActiveContextTimeToLive {
16
12
 
@@ -71,10 +67,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
71
67
  $fault: "client";
72
68
  message: string | undefined;
73
69
  }
74
- export declare namespace ConflictException {
75
-
76
- const filterSensitiveLog: (obj: ConflictException) => any;
77
- }
78
70
  export interface DeleteSessionRequest {
79
71
 
80
72
  botId: string | undefined;
@@ -109,40 +101,24 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
109
101
  $fault: "server";
110
102
  message: string | undefined;
111
103
  }
112
- export declare namespace InternalServerException {
113
-
114
- const filterSensitiveLog: (obj: InternalServerException) => any;
115
- }
116
104
 
117
105
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
118
106
  name: "ResourceNotFoundException";
119
107
  $fault: "client";
120
108
  message: string | undefined;
121
109
  }
122
- export declare namespace ResourceNotFoundException {
123
-
124
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
125
- }
126
110
 
127
111
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
128
112
  name: "ThrottlingException";
129
113
  $fault: "client";
130
114
  message: string | undefined;
131
115
  }
132
- export declare namespace ThrottlingException {
133
-
134
- const filterSensitiveLog: (obj: ThrottlingException) => any;
135
- }
136
116
 
137
117
  export interface ValidationException extends __SmithyException, $MetadataBearer {
138
118
  name: "ValidationException";
139
119
  $fault: "client";
140
120
  message: string | undefined;
141
121
  }
142
- export declare namespace ValidationException {
143
-
144
- const filterSensitiveLog: (obj: ValidationException) => any;
145
- }
146
122
  export interface GetSessionRequest {
147
123
 
148
124
  botId: string | undefined;
@@ -305,20 +281,12 @@ export interface BadGatewayException extends __SmithyException, $MetadataBearer
305
281
  $fault: "server";
306
282
  message: string | undefined;
307
283
  }
308
- export declare namespace BadGatewayException {
309
-
310
- const filterSensitiveLog: (obj: BadGatewayException) => any;
311
- }
312
284
 
313
285
  export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
314
286
  name: "DependencyFailedException";
315
287
  $fault: "client";
316
288
  message: string | undefined;
317
289
  }
318
- export declare namespace DependencyFailedException {
319
-
320
- const filterSensitiveLog: (obj: DependencyFailedException) => any;
321
- }
322
290
  export interface PutSessionResponse {
323
291
 
324
292
  contentType?: string;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -3,10 +3,11 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
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
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
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.45.0",
4
+ "version": "3.47.2",
5
5
  "scripts": {
6
- "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "jest --coverage --passWithNoTests"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,53 +18,49 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.45.0",
25
- "@aws-sdk/config-resolver": "3.45.0",
26
- "@aws-sdk/credential-provider-node": "3.45.0",
27
- "@aws-sdk/eventstream-handler-node": "3.40.0",
28
- "@aws-sdk/eventstream-serde-browser": "3.40.0",
29
- "@aws-sdk/eventstream-serde-config-resolver": "3.40.0",
30
- "@aws-sdk/eventstream-serde-node": "3.40.0",
31
- "@aws-sdk/fetch-http-handler": "3.40.0",
32
- "@aws-sdk/hash-node": "3.40.0",
33
- "@aws-sdk/invalid-dependency": "3.40.0",
34
- "@aws-sdk/middleware-content-length": "3.40.0",
35
- "@aws-sdk/middleware-eventstream": "3.40.0",
36
- "@aws-sdk/middleware-host-header": "3.40.0",
37
- "@aws-sdk/middleware-logger": "3.40.0",
38
- "@aws-sdk/middleware-retry": "3.40.0",
39
- "@aws-sdk/middleware-serde": "3.40.0",
40
- "@aws-sdk/middleware-signing": "3.45.0",
41
- "@aws-sdk/middleware-stack": "3.40.0",
42
- "@aws-sdk/middleware-user-agent": "3.40.0",
43
- "@aws-sdk/node-config-provider": "3.40.0",
44
- "@aws-sdk/node-http-handler": "3.40.0",
45
- "@aws-sdk/protocol-http": "3.40.0",
46
- "@aws-sdk/smithy-client": "3.41.0",
47
- "@aws-sdk/types": "3.40.0",
48
- "@aws-sdk/url-parser": "3.40.0",
49
- "@aws-sdk/util-base64-browser": "3.37.0",
50
- "@aws-sdk/util-base64-node": "3.37.0",
51
- "@aws-sdk/util-body-length-browser": "3.37.0",
52
- "@aws-sdk/util-body-length-node": "3.37.0",
53
- "@aws-sdk/util-user-agent-browser": "3.40.0",
54
- "@aws-sdk/util-user-agent-node": "3.40.0",
55
- "@aws-sdk/util-utf8-browser": "3.37.0",
56
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.2",
22
+ "@aws-sdk/config-resolver": "3.47.2",
23
+ "@aws-sdk/credential-provider-node": "3.47.2",
24
+ "@aws-sdk/eventstream-handler-node": "3.47.2",
25
+ "@aws-sdk/eventstream-serde-browser": "3.47.2",
26
+ "@aws-sdk/eventstream-serde-config-resolver": "3.47.2",
27
+ "@aws-sdk/eventstream-serde-node": "3.47.2",
28
+ "@aws-sdk/fetch-http-handler": "3.47.2",
29
+ "@aws-sdk/hash-node": "3.47.2",
30
+ "@aws-sdk/invalid-dependency": "3.47.2",
31
+ "@aws-sdk/middleware-content-length": "3.47.2",
32
+ "@aws-sdk/middleware-eventstream": "3.47.2",
33
+ "@aws-sdk/middleware-host-header": "3.47.2",
34
+ "@aws-sdk/middleware-logger": "3.47.2",
35
+ "@aws-sdk/middleware-retry": "3.47.2",
36
+ "@aws-sdk/middleware-serde": "3.47.2",
37
+ "@aws-sdk/middleware-signing": "3.47.2",
38
+ "@aws-sdk/middleware-stack": "3.47.2",
39
+ "@aws-sdk/middleware-user-agent": "3.47.2",
40
+ "@aws-sdk/node-config-provider": "3.47.2",
41
+ "@aws-sdk/node-http-handler": "3.47.2",
42
+ "@aws-sdk/protocol-http": "3.47.2",
43
+ "@aws-sdk/smithy-client": "3.47.2",
44
+ "@aws-sdk/types": "3.47.1",
45
+ "@aws-sdk/url-parser": "3.47.2",
46
+ "@aws-sdk/util-base64-browser": "3.47.1",
47
+ "@aws-sdk/util-base64-node": "3.47.2",
48
+ "@aws-sdk/util-body-length-browser": "3.47.1",
49
+ "@aws-sdk/util-body-length-node": "3.47.1",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.47.2",
51
+ "@aws-sdk/util-defaults-mode-node": "3.47.2",
52
+ "@aws-sdk/util-user-agent-browser": "3.47.2",
53
+ "@aws-sdk/util-user-agent-node": "3.47.2",
54
+ "@aws-sdk/util-utf8-browser": "3.47.1",
55
+ "@aws-sdk/util-utf8-node": "3.47.2",
57
56
  "tslib": "^2.3.0"
58
57
  },
59
58
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
61
- "@types/node": "^12.7.5",
62
- "downlevel-dts": "0.7.0",
63
- "jest": "^26.1.0",
64
- "rimraf": "^3.0.0",
65
- "ts-jest": "^26.4.1",
66
- "typedoc": "^0.19.2",
67
- "typescript": "~4.3.5"
59
+ "@aws-sdk/service-client-documentation-generator": "3.47.1",
60
+ "@types/node": "^12.7.5"
68
61
  },
69
62
  "engines": {
70
- "node": ">=10.0.0"
63
+ "node": ">=12.0.0"
71
64
  },
72
65
  "typesVersions": {
73
66
  "<4.0": {