@aws-sdk/client-lex-runtime-v2 3.716.0 → 3.723.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -172,7 +172,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
172
172
  }, "resolveRuntimeExtensions");
173
173
 
174
174
  // src/LexRuntimeV2Client.ts
175
- var _LexRuntimeV2Client = class _LexRuntimeV2Client extends import_smithy_client.Client {
175
+ var LexRuntimeV2Client = class extends import_smithy_client.Client {
176
+ static {
177
+ __name(this, "LexRuntimeV2Client");
178
+ }
179
+ /**
180
+ * The resolved configuration of LexRuntimeV2Client class. This is resolved and normalized from the {@link LexRuntimeV2ClientConfig | constructor configuration interface}.
181
+ */
182
+ config;
176
183
  constructor(...[configuration]) {
177
184
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
178
185
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -184,7 +191,7 @@ var _LexRuntimeV2Client = class _LexRuntimeV2Client extends import_smithy_client
184
191
  const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
185
192
  const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
186
193
  const _config_9 = (0, import_middleware_eventstream.resolveEventStreamConfig)(_config_8);
187
- const _config_10 = resolveRuntimeExtensions(_config_9, (configuration == null ? void 0 : configuration.extensions) || []);
194
+ const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
188
195
  super(_config_10);
189
196
  this.config = _config_10;
190
197
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -212,8 +219,6 @@ var _LexRuntimeV2Client = class _LexRuntimeV2Client extends import_smithy_client
212
219
  super.destroy();
213
220
  }
214
221
  };
215
- __name(_LexRuntimeV2Client, "LexRuntimeV2Client");
216
- var LexRuntimeV2Client = _LexRuntimeV2Client;
217
222
 
218
223
  // src/LexRuntimeV2.ts
219
224
 
@@ -230,7 +235,10 @@ var import_core2 = require("@aws-sdk/core");
230
235
 
231
236
  // src/models/LexRuntimeV2ServiceException.ts
232
237
 
233
- var _LexRuntimeV2ServiceException = class _LexRuntimeV2ServiceException extends import_smithy_client.ServiceException {
238
+ var LexRuntimeV2ServiceException = class _LexRuntimeV2ServiceException extends import_smithy_client.ServiceException {
239
+ static {
240
+ __name(this, "LexRuntimeV2ServiceException");
241
+ }
234
242
  /**
235
243
  * @internal
236
244
  */
@@ -239,12 +247,15 @@ var _LexRuntimeV2ServiceException = class _LexRuntimeV2ServiceException extends
239
247
  Object.setPrototypeOf(this, _LexRuntimeV2ServiceException.prototype);
240
248
  }
241
249
  };
242
- __name(_LexRuntimeV2ServiceException, "LexRuntimeV2ServiceException");
243
- var LexRuntimeV2ServiceException = _LexRuntimeV2ServiceException;
244
250
 
245
251
  // src/models/models_0.ts
246
252
 
247
- var _AccessDeniedException = class _AccessDeniedException extends LexRuntimeV2ServiceException {
253
+ var AccessDeniedException = class _AccessDeniedException extends LexRuntimeV2ServiceException {
254
+ static {
255
+ __name(this, "AccessDeniedException");
256
+ }
257
+ name = "AccessDeniedException";
258
+ $fault = "client";
248
259
  /**
249
260
  * @internal
250
261
  */
@@ -254,14 +265,15 @@ var _AccessDeniedException = class _AccessDeniedException extends LexRuntimeV2Se
254
265
  $fault: "client",
255
266
  ...opts
256
267
  });
257
- this.name = "AccessDeniedException";
258
- this.$fault = "client";
259
268
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
260
269
  }
261
270
  };
262
- __name(_AccessDeniedException, "AccessDeniedException");
263
- var AccessDeniedException = _AccessDeniedException;
264
- var _ConflictException = class _ConflictException extends LexRuntimeV2ServiceException {
271
+ var ConflictException = class _ConflictException extends LexRuntimeV2ServiceException {
272
+ static {
273
+ __name(this, "ConflictException");
274
+ }
275
+ name = "ConflictException";
276
+ $fault = "client";
265
277
  /**
266
278
  * @internal
267
279
  */
@@ -271,14 +283,15 @@ var _ConflictException = class _ConflictException extends LexRuntimeV2ServiceExc
271
283
  $fault: "client",
272
284
  ...opts
273
285
  });
274
- this.name = "ConflictException";
275
- this.$fault = "client";
276
286
  Object.setPrototypeOf(this, _ConflictException.prototype);
277
287
  }
278
288
  };
279
- __name(_ConflictException, "ConflictException");
280
- var ConflictException = _ConflictException;
281
- var _InternalServerException = class _InternalServerException extends LexRuntimeV2ServiceException {
289
+ var InternalServerException = class _InternalServerException extends LexRuntimeV2ServiceException {
290
+ static {
291
+ __name(this, "InternalServerException");
292
+ }
293
+ name = "InternalServerException";
294
+ $fault = "server";
282
295
  /**
283
296
  * @internal
284
297
  */
@@ -288,14 +301,15 @@ var _InternalServerException = class _InternalServerException extends LexRuntime
288
301
  $fault: "server",
289
302
  ...opts
290
303
  });
291
- this.name = "InternalServerException";
292
- this.$fault = "server";
293
304
  Object.setPrototypeOf(this, _InternalServerException.prototype);
294
305
  }
295
306
  };
296
- __name(_InternalServerException, "InternalServerException");
297
- var InternalServerException = _InternalServerException;
298
- var _ResourceNotFoundException = class _ResourceNotFoundException extends LexRuntimeV2ServiceException {
307
+ var ResourceNotFoundException = class _ResourceNotFoundException extends LexRuntimeV2ServiceException {
308
+ static {
309
+ __name(this, "ResourceNotFoundException");
310
+ }
311
+ name = "ResourceNotFoundException";
312
+ $fault = "client";
299
313
  /**
300
314
  * @internal
301
315
  */
@@ -305,14 +319,15 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends LexRun
305
319
  $fault: "client",
306
320
  ...opts
307
321
  });
308
- this.name = "ResourceNotFoundException";
309
- this.$fault = "client";
310
322
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
311
323
  }
312
324
  };
313
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
314
- var ResourceNotFoundException = _ResourceNotFoundException;
315
- var _ThrottlingException = class _ThrottlingException extends LexRuntimeV2ServiceException {
325
+ var ThrottlingException = class _ThrottlingException extends LexRuntimeV2ServiceException {
326
+ static {
327
+ __name(this, "ThrottlingException");
328
+ }
329
+ name = "ThrottlingException";
330
+ $fault = "client";
316
331
  /**
317
332
  * @internal
318
333
  */
@@ -322,14 +337,15 @@ var _ThrottlingException = class _ThrottlingException extends LexRuntimeV2Servic
322
337
  $fault: "client",
323
338
  ...opts
324
339
  });
325
- this.name = "ThrottlingException";
326
- this.$fault = "client";
327
340
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
328
341
  }
329
342
  };
330
- __name(_ThrottlingException, "ThrottlingException");
331
- var ThrottlingException = _ThrottlingException;
332
- var _ValidationException = class _ValidationException extends LexRuntimeV2ServiceException {
343
+ var ValidationException = class _ValidationException extends LexRuntimeV2ServiceException {
344
+ static {
345
+ __name(this, "ValidationException");
346
+ }
347
+ name = "ValidationException";
348
+ $fault = "client";
333
349
  /**
334
350
  * @internal
335
351
  */
@@ -339,13 +355,9 @@ var _ValidationException = class _ValidationException extends LexRuntimeV2Servic
339
355
  $fault: "client",
340
356
  ...opts
341
357
  });
342
- this.name = "ValidationException";
343
- this.$fault = "client";
344
358
  Object.setPrototypeOf(this, _ValidationException.prototype);
345
359
  }
346
360
  };
347
- __name(_ValidationException, "ValidationException");
348
- var ValidationException = _ValidationException;
349
361
  var ConfirmationState = {
350
362
  CONFIRMED: "Confirmed",
351
363
  DENIED: "Denied",
@@ -393,7 +405,12 @@ var DialogActionType = {
393
405
  ELICIT_SLOT: "ElicitSlot",
394
406
  NONE: "None"
395
407
  };
396
- var _BadGatewayException = class _BadGatewayException extends LexRuntimeV2ServiceException {
408
+ var BadGatewayException = class _BadGatewayException extends LexRuntimeV2ServiceException {
409
+ static {
410
+ __name(this, "BadGatewayException");
411
+ }
412
+ name = "BadGatewayException";
413
+ $fault = "server";
397
414
  /**
398
415
  * @internal
399
416
  */
@@ -403,14 +420,15 @@ var _BadGatewayException = class _BadGatewayException extends LexRuntimeV2Servic
403
420
  $fault: "server",
404
421
  ...opts
405
422
  });
406
- this.name = "BadGatewayException";
407
- this.$fault = "server";
408
423
  Object.setPrototypeOf(this, _BadGatewayException.prototype);
409
424
  }
410
425
  };
411
- __name(_BadGatewayException, "BadGatewayException");
412
- var BadGatewayException = _BadGatewayException;
413
- var _DependencyFailedException = class _DependencyFailedException extends LexRuntimeV2ServiceException {
426
+ var DependencyFailedException = class _DependencyFailedException extends LexRuntimeV2ServiceException {
427
+ static {
428
+ __name(this, "DependencyFailedException");
429
+ }
430
+ name = "DependencyFailedException";
431
+ $fault = "client";
414
432
  /**
415
433
  * @internal
416
434
  */
@@ -420,13 +438,9 @@ var _DependencyFailedException = class _DependencyFailedException extends LexRun
420
438
  $fault: "client",
421
439
  ...opts
422
440
  });
423
- this.name = "DependencyFailedException";
424
- this.$fault = "client";
425
441
  Object.setPrototypeOf(this, _DependencyFailedException.prototype);
426
442
  }
427
443
  };
428
- __name(_DependencyFailedException, "DependencyFailedException");
429
- var DependencyFailedException = _DependencyFailedException;
430
444
  var ConversationMode = {
431
445
  AUDIO: "AUDIO",
432
446
  TEXT: "TEXT"
@@ -1490,78 +1504,83 @@ var _xalsi = "x-amz-lex-session-id";
1490
1504
  var _xalss = "x-amz-lex-session-state";
1491
1505
 
1492
1506
  // src/commands/DeleteSessionCommand.ts
1493
- var _DeleteSessionCommand = class _DeleteSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1507
+ var DeleteSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1494
1508
  return [
1495
1509
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1496
1510
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1497
1511
  ];
1498
1512
  }).s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {}).n("LexRuntimeV2Client", "DeleteSessionCommand").f(void 0, void 0).ser(se_DeleteSessionCommand).de(de_DeleteSessionCommand).build() {
1513
+ static {
1514
+ __name(this, "DeleteSessionCommand");
1515
+ }
1499
1516
  };
1500
- __name(_DeleteSessionCommand, "DeleteSessionCommand");
1501
- var DeleteSessionCommand = _DeleteSessionCommand;
1502
1517
 
1503
1518
  // src/commands/GetSessionCommand.ts
1504
1519
 
1505
1520
 
1506
1521
 
1507
- var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1522
+ var GetSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1508
1523
  return [
1509
1524
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1510
1525
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1511
1526
  ];
1512
1527
  }).s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {}).n("LexRuntimeV2Client", "GetSessionCommand").f(void 0, GetSessionResponseFilterSensitiveLog).ser(se_GetSessionCommand).de(de_GetSessionCommand).build() {
1528
+ static {
1529
+ __name(this, "GetSessionCommand");
1530
+ }
1513
1531
  };
1514
- __name(_GetSessionCommand, "GetSessionCommand");
1515
- var GetSessionCommand = _GetSessionCommand;
1516
1532
 
1517
1533
  // src/commands/PutSessionCommand.ts
1518
1534
 
1519
1535
 
1520
1536
 
1521
- var _PutSessionCommand = class _PutSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1537
+ var PutSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1522
1538
  return [
1523
1539
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1524
1540
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1525
1541
  ];
1526
1542
  }).s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {}).n("LexRuntimeV2Client", "PutSessionCommand").f(PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog).ser(se_PutSessionCommand).de(de_PutSessionCommand).build() {
1543
+ static {
1544
+ __name(this, "PutSessionCommand");
1545
+ }
1527
1546
  };
1528
- __name(_PutSessionCommand, "PutSessionCommand");
1529
- var PutSessionCommand = _PutSessionCommand;
1530
1547
 
1531
1548
  // src/commands/RecognizeTextCommand.ts
1532
1549
 
1533
1550
 
1534
1551
 
1535
- var _RecognizeTextCommand = class _RecognizeTextCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1552
+ var RecognizeTextCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1536
1553
  return [
1537
1554
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1538
1555
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1539
1556
  ];
1540
1557
  }).s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {}).n("LexRuntimeV2Client", "RecognizeTextCommand").f(RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog).ser(se_RecognizeTextCommand).de(de_RecognizeTextCommand).build() {
1558
+ static {
1559
+ __name(this, "RecognizeTextCommand");
1560
+ }
1541
1561
  };
1542
- __name(_RecognizeTextCommand, "RecognizeTextCommand");
1543
- var RecognizeTextCommand = _RecognizeTextCommand;
1544
1562
 
1545
1563
  // src/commands/RecognizeUtteranceCommand.ts
1546
1564
 
1547
1565
 
1548
1566
 
1549
- var _RecognizeUtteranceCommand = class _RecognizeUtteranceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1567
+ var RecognizeUtteranceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1550
1568
  return [
1551
1569
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1552
1570
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1553
1571
  ];
1554
1572
  }).s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {}).n("LexRuntimeV2Client", "RecognizeUtteranceCommand").f(RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog).ser(se_RecognizeUtteranceCommand).de(de_RecognizeUtteranceCommand).build() {
1573
+ static {
1574
+ __name(this, "RecognizeUtteranceCommand");
1575
+ }
1555
1576
  };
1556
- __name(_RecognizeUtteranceCommand, "RecognizeUtteranceCommand");
1557
- var RecognizeUtteranceCommand = _RecognizeUtteranceCommand;
1558
1577
 
1559
1578
  // src/commands/StartConversationCommand.ts
1560
1579
 
1561
1580
 
1562
1581
 
1563
1582
 
1564
- var _StartConversationCommand = class _StartConversationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1583
+ var StartConversationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1565
1584
  return [
1566
1585
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1567
1586
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
@@ -1576,9 +1595,10 @@ var _StartConversationCommand = class _StartConversationCommand extends import_s
1576
1595
  output: true
1577
1596
  }
1578
1597
  }).n("LexRuntimeV2Client", "StartConversationCommand").f(StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog).ser(se_StartConversationCommand).de(de_StartConversationCommand).build() {
1598
+ static {
1599
+ __name(this, "StartConversationCommand");
1600
+ }
1579
1601
  };
1580
- __name(_StartConversationCommand, "StartConversationCommand");
1581
- var StartConversationCommand = _StartConversationCommand;
1582
1602
 
1583
1603
  // src/LexRuntimeV2.ts
1584
1604
  var commands = {
@@ -1589,10 +1609,11 @@ var commands = {
1589
1609
  RecognizeUtteranceCommand,
1590
1610
  StartConversationCommand
1591
1611
  };
1592
- var _LexRuntimeV2 = class _LexRuntimeV2 extends LexRuntimeV2Client {
1612
+ var LexRuntimeV2 = class extends LexRuntimeV2Client {
1613
+ static {
1614
+ __name(this, "LexRuntimeV2");
1615
+ }
1593
1616
  };
1594
- __name(_LexRuntimeV2, "LexRuntimeV2");
1595
- var LexRuntimeV2 = _LexRuntimeV2;
1596
1617
  (0, import_smithy_client.createAggregatedClient)(commands, LexRuntimeV2);
1597
1618
  // Annotate the CommonJS export names for ESM import in node:
1598
1619
 
@@ -16,6 +16,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
16
16
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
17
17
  export { __Client };
18
18
  export class LexRuntimeV2Client extends __Client {
19
+ config;
19
20
  constructor(...[configuration]) {
20
21
  const _config_0 = __getRuntimeConfig(configuration || {});
21
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,74 +1,74 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
3
3
  export class AccessDeniedException extends __BaseException {
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
4
6
  constructor(opts) {
5
7
  super({
6
8
  name: "AccessDeniedException",
7
9
  $fault: "client",
8
10
  ...opts,
9
11
  });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
15
  export class ConflictException extends __BaseException {
16
+ name = "ConflictException";
17
+ $fault = "client";
16
18
  constructor(opts) {
17
19
  super({
18
20
  name: "ConflictException",
19
21
  $fault: "client",
20
22
  ...opts,
21
23
  });
22
- this.name = "ConflictException";
23
- this.$fault = "client";
24
24
  Object.setPrototypeOf(this, ConflictException.prototype);
25
25
  }
26
26
  }
27
27
  export class InternalServerException extends __BaseException {
28
+ name = "InternalServerException";
29
+ $fault = "server";
28
30
  constructor(opts) {
29
31
  super({
30
32
  name: "InternalServerException",
31
33
  $fault: "server",
32
34
  ...opts,
33
35
  });
34
- this.name = "InternalServerException";
35
- this.$fault = "server";
36
36
  Object.setPrototypeOf(this, InternalServerException.prototype);
37
37
  }
38
38
  }
39
39
  export class ResourceNotFoundException extends __BaseException {
40
+ name = "ResourceNotFoundException";
41
+ $fault = "client";
40
42
  constructor(opts) {
41
43
  super({
42
44
  name: "ResourceNotFoundException",
43
45
  $fault: "client",
44
46
  ...opts,
45
47
  });
46
- this.name = "ResourceNotFoundException";
47
- this.$fault = "client";
48
48
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
49
49
  }
50
50
  }
51
51
  export class ThrottlingException extends __BaseException {
52
+ name = "ThrottlingException";
53
+ $fault = "client";
52
54
  constructor(opts) {
53
55
  super({
54
56
  name: "ThrottlingException",
55
57
  $fault: "client",
56
58
  ...opts,
57
59
  });
58
- this.name = "ThrottlingException";
59
- this.$fault = "client";
60
60
  Object.setPrototypeOf(this, ThrottlingException.prototype);
61
61
  }
62
62
  }
63
63
  export class ValidationException extends __BaseException {
64
+ name = "ValidationException";
65
+ $fault = "client";
64
66
  constructor(opts) {
65
67
  super({
66
68
  name: "ValidationException",
67
69
  $fault: "client",
68
70
  ...opts,
69
71
  });
70
- this.name = "ValidationException";
71
- this.$fault = "client";
72
72
  Object.setPrototypeOf(this, ValidationException.prototype);
73
73
  }
74
74
  }
@@ -120,26 +120,26 @@ export const DialogActionType = {
120
120
  NONE: "None",
121
121
  };
122
122
  export class BadGatewayException extends __BaseException {
123
+ name = "BadGatewayException";
124
+ $fault = "server";
123
125
  constructor(opts) {
124
126
  super({
125
127
  name: "BadGatewayException",
126
128
  $fault: "server",
127
129
  ...opts,
128
130
  });
129
- this.name = "BadGatewayException";
130
- this.$fault = "server";
131
131
  Object.setPrototypeOf(this, BadGatewayException.prototype);
132
132
  }
133
133
  }
134
134
  export class DependencyFailedException extends __BaseException {
135
+ name = "DependencyFailedException";
136
+ $fault = "client";
135
137
  constructor(opts) {
136
138
  super({
137
139
  name: "DependencyFailedException",
138
140
  $fault: "client",
139
141
  ...opts,
140
142
  });
141
- this.name = "DependencyFailedException";
142
- this.$fault = "client";
143
143
  Object.setPrototypeOf(this, DependencyFailedException.prototype);
144
144
  }
145
145
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
13
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
13
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
@@ -23,7 +23,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
23
23
  region: string | import("@smithy/types").Provider<any>;
24
24
  profile?: string | undefined;
25
25
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
26
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
26
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -34,7 +34,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
34
34
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
35
35
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
36
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
37
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
37
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
38
38
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
39
39
  logger?: import("@smithy/types").Logger | undefined;
40
40
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -29,9 +29,11 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
29
29
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
30
30
  | undefined
31
31
  ) => Promise<import("@smithy/types").UserAgent>;
32
- credentialDefaultProvider: (
33
- input: any
34
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
32
+ credentialDefaultProvider:
33
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
34
+ | ((
35
+ _: unknown
36
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
35
37
  maxAttempts: number | import("@smithy/types").Provider<number>;
36
38
  retryMode: string | import("@smithy/types").Provider<string>;
37
39
  logger: import("@smithy/types").Logger;
@@ -53,11 +55,21 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
53
55
  | import("@smithy/types").RetryStrategyV2
54
56
  | undefined;
55
57
  endpoint?:
56
- | string
57
- | import("@smithy/types").Endpoint
58
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
- | import("@smithy/types").EndpointV2
60
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
58
+ | ((
59
+ | string
60
+ | import("@smithy/types").Endpoint
61
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
62
+ | import("@smithy/types").EndpointV2
63
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
64
+ ) &
65
+ (
66
+ | string
67
+ | import("@smithy/types").Provider<string>
68
+ | import("@smithy/types").Endpoint
69
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
70
+ | import("@smithy/types").EndpointV2
71
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
72
+ ))
61
73
  | undefined;
62
74
  endpointProvider: (
63
75
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-runtime-v2",
@@ -20,62 +20,62 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/eventstream-handler-node": "3.714.0",
28
- "@aws-sdk/middleware-eventstream": "3.714.0",
29
- "@aws-sdk/middleware-host-header": "3.714.0",
30
- "@aws-sdk/middleware-logger": "3.714.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
32
- "@aws-sdk/middleware-user-agent": "3.716.0",
33
- "@aws-sdk/region-config-resolver": "3.714.0",
34
- "@aws-sdk/types": "3.714.0",
35
- "@aws-sdk/util-endpoints": "3.714.0",
36
- "@aws-sdk/util-user-agent-browser": "3.714.0",
37
- "@aws-sdk/util-user-agent-node": "3.716.0",
38
- "@smithy/config-resolver": "^3.0.13",
39
- "@smithy/core": "^2.5.5",
40
- "@smithy/eventstream-serde-browser": "^3.0.14",
41
- "@smithy/eventstream-serde-config-resolver": "^3.0.11",
42
- "@smithy/eventstream-serde-node": "^3.0.13",
43
- "@smithy/fetch-http-handler": "^4.1.2",
44
- "@smithy/hash-node": "^3.0.11",
45
- "@smithy/invalid-dependency": "^3.0.11",
46
- "@smithy/middleware-content-length": "^3.0.13",
47
- "@smithy/middleware-endpoint": "^3.2.6",
48
- "@smithy/middleware-retry": "^3.0.31",
49
- "@smithy/middleware-serde": "^3.0.11",
50
- "@smithy/middleware-stack": "^3.0.11",
51
- "@smithy/node-config-provider": "^3.1.12",
52
- "@smithy/node-http-handler": "^3.3.2",
53
- "@smithy/protocol-http": "^4.1.8",
54
- "@smithy/smithy-client": "^3.5.1",
55
- "@smithy/types": "^3.7.2",
56
- "@smithy/url-parser": "^3.0.11",
57
- "@smithy/util-base64": "^3.0.0",
58
- "@smithy/util-body-length-browser": "^3.0.0",
59
- "@smithy/util-body-length-node": "^3.0.0",
60
- "@smithy/util-defaults-mode-browser": "^3.0.31",
61
- "@smithy/util-defaults-mode-node": "^3.0.31",
62
- "@smithy/util-endpoints": "^2.1.7",
63
- "@smithy/util-middleware": "^3.0.11",
64
- "@smithy/util-retry": "^3.0.11",
65
- "@smithy/util-stream": "^3.3.2",
66
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/eventstream-handler-node": "3.723.0",
28
+ "@aws-sdk/middleware-eventstream": "3.723.0",
29
+ "@aws-sdk/middleware-host-header": "3.723.0",
30
+ "@aws-sdk/middleware-logger": "3.723.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
32
+ "@aws-sdk/middleware-user-agent": "3.723.0",
33
+ "@aws-sdk/region-config-resolver": "3.723.0",
34
+ "@aws-sdk/types": "3.723.0",
35
+ "@aws-sdk/util-endpoints": "3.723.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
37
+ "@aws-sdk/util-user-agent-node": "3.723.0",
38
+ "@smithy/config-resolver": "^4.0.0",
39
+ "@smithy/core": "^3.0.0",
40
+ "@smithy/eventstream-serde-browser": "^4.0.0",
41
+ "@smithy/eventstream-serde-config-resolver": "^4.0.0",
42
+ "@smithy/eventstream-serde-node": "^4.0.0",
43
+ "@smithy/fetch-http-handler": "^5.0.0",
44
+ "@smithy/hash-node": "^4.0.0",
45
+ "@smithy/invalid-dependency": "^4.0.0",
46
+ "@smithy/middleware-content-length": "^4.0.0",
47
+ "@smithy/middleware-endpoint": "^4.0.0",
48
+ "@smithy/middleware-retry": "^4.0.0",
49
+ "@smithy/middleware-serde": "^4.0.0",
50
+ "@smithy/middleware-stack": "^4.0.0",
51
+ "@smithy/node-config-provider": "^4.0.0",
52
+ "@smithy/node-http-handler": "^4.0.0",
53
+ "@smithy/protocol-http": "^5.0.0",
54
+ "@smithy/smithy-client": "^4.0.0",
55
+ "@smithy/types": "^4.0.0",
56
+ "@smithy/url-parser": "^4.0.0",
57
+ "@smithy/util-base64": "^4.0.0",
58
+ "@smithy/util-body-length-browser": "^4.0.0",
59
+ "@smithy/util-body-length-node": "^4.0.0",
60
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
61
+ "@smithy/util-defaults-mode-node": "^4.0.0",
62
+ "@smithy/util-endpoints": "^3.0.0",
63
+ "@smithy/util-middleware": "^4.0.0",
64
+ "@smithy/util-retry": "^4.0.0",
65
+ "@smithy/util-stream": "^4.0.0",
66
+ "@smithy/util-utf8": "^4.0.0",
67
67
  "tslib": "^2.6.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@tsconfig/node16": "16.1.3",
71
- "@types/node": "^16.18.96",
70
+ "@tsconfig/node18": "18.2.4",
71
+ "@types/node": "^18.19.69",
72
72
  "concurrently": "7.0.0",
73
73
  "downlevel-dts": "0.10.1",
74
74
  "rimraf": "3.0.2",
75
- "typescript": "~4.9.5"
75
+ "typescript": "~5.2.2"
76
76
  },
77
77
  "engines": {
78
- "node": ">=16.0.0"
78
+ "node": ">=18.0.0"
79
79
  },
80
80
  "typesVersions": {
81
81
  "<4.0": {