@aws-sdk/client-lex-runtime-service 3.721.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
@@ -157,7 +157,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
157
157
  }, "resolveRuntimeExtensions");
158
158
 
159
159
  // src/LexRuntimeServiceClient.ts
160
- var _LexRuntimeServiceClient = class _LexRuntimeServiceClient extends import_smithy_client.Client {
160
+ var LexRuntimeServiceClient = class extends import_smithy_client.Client {
161
+ static {
162
+ __name(this, "LexRuntimeServiceClient");
163
+ }
164
+ /**
165
+ * The resolved configuration of LexRuntimeServiceClient class. This is resolved and normalized from the {@link LexRuntimeServiceClientConfig | constructor configuration interface}.
166
+ */
167
+ config;
161
168
  constructor(...[configuration]) {
162
169
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
163
170
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -167,7 +174,7 @@ var _LexRuntimeServiceClient = class _LexRuntimeServiceClient extends import_smi
167
174
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
168
175
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
169
176
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
170
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
177
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
171
178
  super(_config_8);
172
179
  this.config = _config_8;
173
180
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -195,8 +202,6 @@ var _LexRuntimeServiceClient = class _LexRuntimeServiceClient extends import_smi
195
202
  super.destroy();
196
203
  }
197
204
  };
198
- __name(_LexRuntimeServiceClient, "LexRuntimeServiceClient");
199
- var LexRuntimeServiceClient = _LexRuntimeServiceClient;
200
205
 
201
206
  // src/LexRuntimeService.ts
202
207
 
@@ -213,7 +218,10 @@ var import_core2 = require("@aws-sdk/core");
213
218
 
214
219
  // src/models/LexRuntimeServiceServiceException.ts
215
220
 
216
- var _LexRuntimeServiceServiceException = class _LexRuntimeServiceServiceException extends import_smithy_client.ServiceException {
221
+ var LexRuntimeServiceServiceException = class _LexRuntimeServiceServiceException extends import_smithy_client.ServiceException {
222
+ static {
223
+ __name(this, "LexRuntimeServiceServiceException");
224
+ }
217
225
  /**
218
226
  * @internal
219
227
  */
@@ -222,12 +230,15 @@ var _LexRuntimeServiceServiceException = class _LexRuntimeServiceServiceExceptio
222
230
  Object.setPrototypeOf(this, _LexRuntimeServiceServiceException.prototype);
223
231
  }
224
232
  };
225
- __name(_LexRuntimeServiceServiceException, "LexRuntimeServiceServiceException");
226
- var LexRuntimeServiceServiceException = _LexRuntimeServiceServiceException;
227
233
 
228
234
  // src/models/models_0.ts
229
235
 
230
- var _BadRequestException = class _BadRequestException extends LexRuntimeServiceServiceException {
236
+ var BadRequestException = class _BadRequestException extends LexRuntimeServiceServiceException {
237
+ static {
238
+ __name(this, "BadRequestException");
239
+ }
240
+ name = "BadRequestException";
241
+ $fault = "client";
231
242
  /**
232
243
  * @internal
233
244
  */
@@ -237,14 +248,15 @@ var _BadRequestException = class _BadRequestException extends LexRuntimeServiceS
237
248
  $fault: "client",
238
249
  ...opts
239
250
  });
240
- this.name = "BadRequestException";
241
- this.$fault = "client";
242
251
  Object.setPrototypeOf(this, _BadRequestException.prototype);
243
252
  }
244
253
  };
245
- __name(_BadRequestException, "BadRequestException");
246
- var BadRequestException = _BadRequestException;
247
- var _ConflictException = class _ConflictException extends LexRuntimeServiceServiceException {
254
+ var ConflictException = class _ConflictException extends LexRuntimeServiceServiceException {
255
+ static {
256
+ __name(this, "ConflictException");
257
+ }
258
+ name = "ConflictException";
259
+ $fault = "client";
248
260
  /**
249
261
  * @internal
250
262
  */
@@ -254,14 +266,15 @@ var _ConflictException = class _ConflictException extends LexRuntimeServiceServi
254
266
  $fault: "client",
255
267
  ...opts
256
268
  });
257
- this.name = "ConflictException";
258
- this.$fault = "client";
259
269
  Object.setPrototypeOf(this, _ConflictException.prototype);
260
270
  }
261
271
  };
262
- __name(_ConflictException, "ConflictException");
263
- var ConflictException = _ConflictException;
264
- var _InternalFailureException = class _InternalFailureException extends LexRuntimeServiceServiceException {
272
+ var InternalFailureException = class _InternalFailureException extends LexRuntimeServiceServiceException {
273
+ static {
274
+ __name(this, "InternalFailureException");
275
+ }
276
+ name = "InternalFailureException";
277
+ $fault = "server";
265
278
  /**
266
279
  * @internal
267
280
  */
@@ -271,14 +284,16 @@ var _InternalFailureException = class _InternalFailureException extends LexRunti
271
284
  $fault: "server",
272
285
  ...opts
273
286
  });
274
- this.name = "InternalFailureException";
275
- this.$fault = "server";
276
287
  Object.setPrototypeOf(this, _InternalFailureException.prototype);
277
288
  }
278
289
  };
279
- __name(_InternalFailureException, "InternalFailureException");
280
- var InternalFailureException = _InternalFailureException;
281
- var _LimitExceededException = class _LimitExceededException extends LexRuntimeServiceServiceException {
290
+ var LimitExceededException = class _LimitExceededException extends LexRuntimeServiceServiceException {
291
+ static {
292
+ __name(this, "LimitExceededException");
293
+ }
294
+ name = "LimitExceededException";
295
+ $fault = "client";
296
+ retryAfterSeconds;
282
297
  /**
283
298
  * @internal
284
299
  */
@@ -288,15 +303,16 @@ var _LimitExceededException = class _LimitExceededException extends LexRuntimeSe
288
303
  $fault: "client",
289
304
  ...opts
290
305
  });
291
- this.name = "LimitExceededException";
292
- this.$fault = "client";
293
306
  Object.setPrototypeOf(this, _LimitExceededException.prototype);
294
307
  this.retryAfterSeconds = opts.retryAfterSeconds;
295
308
  }
296
309
  };
297
- __name(_LimitExceededException, "LimitExceededException");
298
- var LimitExceededException = _LimitExceededException;
299
- var _NotFoundException = class _NotFoundException extends LexRuntimeServiceServiceException {
310
+ var NotFoundException = class _NotFoundException extends LexRuntimeServiceServiceException {
311
+ static {
312
+ __name(this, "NotFoundException");
313
+ }
314
+ name = "NotFoundException";
315
+ $fault = "client";
300
316
  /**
301
317
  * @internal
302
318
  */
@@ -306,13 +322,9 @@ var _NotFoundException = class _NotFoundException extends LexRuntimeServiceServi
306
322
  $fault: "client",
307
323
  ...opts
308
324
  });
309
- this.name = "NotFoundException";
310
- this.$fault = "client";
311
325
  Object.setPrototypeOf(this, _NotFoundException.prototype);
312
326
  }
313
327
  };
314
- __name(_NotFoundException, "NotFoundException");
315
- var NotFoundException = _NotFoundException;
316
328
  var FulfillmentState = {
317
329
  FAILED: "Failed",
318
330
  FULFILLED: "Fulfilled",
@@ -336,7 +348,13 @@ var ConfirmationStatus = {
336
348
  DENIED: "Denied",
337
349
  NONE: "None"
338
350
  };
339
- var _BadGatewayException = class _BadGatewayException extends LexRuntimeServiceServiceException {
351
+ var BadGatewayException = class _BadGatewayException extends LexRuntimeServiceServiceException {
352
+ static {
353
+ __name(this, "BadGatewayException");
354
+ }
355
+ name = "BadGatewayException";
356
+ $fault = "server";
357
+ Message;
340
358
  /**
341
359
  * @internal
342
360
  */
@@ -346,15 +364,17 @@ var _BadGatewayException = class _BadGatewayException extends LexRuntimeServiceS
346
364
  $fault: "server",
347
365
  ...opts
348
366
  });
349
- this.name = "BadGatewayException";
350
- this.$fault = "server";
351
367
  Object.setPrototypeOf(this, _BadGatewayException.prototype);
352
368
  this.Message = opts.Message;
353
369
  }
354
370
  };
355
- __name(_BadGatewayException, "BadGatewayException");
356
- var BadGatewayException = _BadGatewayException;
357
- var _DependencyFailedException = class _DependencyFailedException extends LexRuntimeServiceServiceException {
371
+ var DependencyFailedException = class _DependencyFailedException extends LexRuntimeServiceServiceException {
372
+ static {
373
+ __name(this, "DependencyFailedException");
374
+ }
375
+ name = "DependencyFailedException";
376
+ $fault = "client";
377
+ Message;
358
378
  /**
359
379
  * @internal
360
380
  */
@@ -364,15 +384,17 @@ var _DependencyFailedException = class _DependencyFailedException extends LexRun
364
384
  $fault: "client",
365
385
  ...opts
366
386
  });
367
- this.name = "DependencyFailedException";
368
- this.$fault = "client";
369
387
  Object.setPrototypeOf(this, _DependencyFailedException.prototype);
370
388
  this.Message = opts.Message;
371
389
  }
372
390
  };
373
- __name(_DependencyFailedException, "DependencyFailedException");
374
- var DependencyFailedException = _DependencyFailedException;
375
- var _LoopDetectedException = class _LoopDetectedException extends LexRuntimeServiceServiceException {
391
+ var LoopDetectedException = class _LoopDetectedException extends LexRuntimeServiceServiceException {
392
+ static {
393
+ __name(this, "LoopDetectedException");
394
+ }
395
+ name = "LoopDetectedException";
396
+ $fault = "server";
397
+ Message;
376
398
  /**
377
399
  * @internal
378
400
  */
@@ -382,15 +404,16 @@ var _LoopDetectedException = class _LoopDetectedException extends LexRuntimeServ
382
404
  $fault: "server",
383
405
  ...opts
384
406
  });
385
- this.name = "LoopDetectedException";
386
- this.$fault = "server";
387
407
  Object.setPrototypeOf(this, _LoopDetectedException.prototype);
388
408
  this.Message = opts.Message;
389
409
  }
390
410
  };
391
- __name(_LoopDetectedException, "LoopDetectedException");
392
- var LoopDetectedException = _LoopDetectedException;
393
- var _NotAcceptableException = class _NotAcceptableException extends LexRuntimeServiceServiceException {
411
+ var NotAcceptableException = class _NotAcceptableException extends LexRuntimeServiceServiceException {
412
+ static {
413
+ __name(this, "NotAcceptableException");
414
+ }
415
+ name = "NotAcceptableException";
416
+ $fault = "client";
394
417
  /**
395
418
  * @internal
396
419
  */
@@ -400,13 +423,9 @@ var _NotAcceptableException = class _NotAcceptableException extends LexRuntimeSe
400
423
  $fault: "client",
401
424
  ...opts
402
425
  });
403
- this.name = "NotAcceptableException";
404
- this.$fault = "client";
405
426
  Object.setPrototypeOf(this, _NotAcceptableException.prototype);
406
427
  }
407
428
  };
408
- __name(_NotAcceptableException, "NotAcceptableException");
409
- var NotAcceptableException = _NotAcceptableException;
410
429
  var DialogState = {
411
430
  CONFIRM_INTENT: "ConfirmIntent",
412
431
  ELICIT_INTENT: "ElicitIntent",
@@ -415,7 +434,12 @@ var DialogState = {
415
434
  FULFILLED: "Fulfilled",
416
435
  READY_FOR_FULFILLMENT: "ReadyForFulfillment"
417
436
  };
418
- var _RequestTimeoutException = class _RequestTimeoutException extends LexRuntimeServiceServiceException {
437
+ var RequestTimeoutException = class _RequestTimeoutException extends LexRuntimeServiceServiceException {
438
+ static {
439
+ __name(this, "RequestTimeoutException");
440
+ }
441
+ name = "RequestTimeoutException";
442
+ $fault = "client";
419
443
  /**
420
444
  * @internal
421
445
  */
@@ -425,14 +449,15 @@ var _RequestTimeoutException = class _RequestTimeoutException extends LexRuntime
425
449
  $fault: "client",
426
450
  ...opts
427
451
  });
428
- this.name = "RequestTimeoutException";
429
- this.$fault = "client";
430
452
  Object.setPrototypeOf(this, _RequestTimeoutException.prototype);
431
453
  }
432
454
  };
433
- __name(_RequestTimeoutException, "RequestTimeoutException");
434
- var RequestTimeoutException = _RequestTimeoutException;
435
- var _UnsupportedMediaTypeException = class _UnsupportedMediaTypeException extends LexRuntimeServiceServiceException {
455
+ var UnsupportedMediaTypeException = class _UnsupportedMediaTypeException extends LexRuntimeServiceServiceException {
456
+ static {
457
+ __name(this, "UnsupportedMediaTypeException");
458
+ }
459
+ name = "UnsupportedMediaTypeException";
460
+ $fault = "client";
436
461
  /**
437
462
  * @internal
438
463
  */
@@ -442,13 +467,9 @@ var _UnsupportedMediaTypeException = class _UnsupportedMediaTypeException extend
442
467
  $fault: "client",
443
468
  ...opts
444
469
  });
445
- this.name = "UnsupportedMediaTypeException";
446
- this.$fault = "client";
447
470
  Object.setPrototypeOf(this, _UnsupportedMediaTypeException.prototype);
448
471
  }
449
472
  };
450
- __name(_UnsupportedMediaTypeException, "UnsupportedMediaTypeException");
451
- var UnsupportedMediaTypeException = _UnsupportedMediaTypeException;
452
473
  var ContentType = {
453
474
  GENERIC: "application/vnd.amazonaws.card.generic"
454
475
  };
@@ -1022,71 +1043,76 @@ var _xalsi = "x-amz-lex-session-id";
1022
1043
  var _xalste = "x-amz-lex-slot-to-elicit";
1023
1044
 
1024
1045
  // src/commands/DeleteSessionCommand.ts
1025
- var _DeleteSessionCommand = class _DeleteSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1046
+ var DeleteSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1026
1047
  return [
1027
1048
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1028
1049
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1029
1050
  ];
1030
1051
  }).s("AWSDeepSenseRunTimeService", "DeleteSession", {}).n("LexRuntimeServiceClient", "DeleteSessionCommand").f(void 0, void 0).ser(se_DeleteSessionCommand).de(de_DeleteSessionCommand).build() {
1052
+ static {
1053
+ __name(this, "DeleteSessionCommand");
1054
+ }
1031
1055
  };
1032
- __name(_DeleteSessionCommand, "DeleteSessionCommand");
1033
- var DeleteSessionCommand = _DeleteSessionCommand;
1034
1056
 
1035
1057
  // src/commands/GetSessionCommand.ts
1036
1058
 
1037
1059
 
1038
1060
 
1039
- var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1061
+ var GetSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1040
1062
  return [
1041
1063
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1042
1064
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1043
1065
  ];
1044
1066
  }).s("AWSDeepSenseRunTimeService", "GetSession", {}).n("LexRuntimeServiceClient", "GetSessionCommand").f(void 0, GetSessionResponseFilterSensitiveLog).ser(se_GetSessionCommand).de(de_GetSessionCommand).build() {
1067
+ static {
1068
+ __name(this, "GetSessionCommand");
1069
+ }
1045
1070
  };
1046
- __name(_GetSessionCommand, "GetSessionCommand");
1047
- var GetSessionCommand = _GetSessionCommand;
1048
1071
 
1049
1072
  // src/commands/PostContentCommand.ts
1050
1073
 
1051
1074
 
1052
1075
 
1053
- var _PostContentCommand = class _PostContentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1076
+ var PostContentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1054
1077
  return [
1055
1078
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1056
1079
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1057
1080
  ];
1058
1081
  }).s("AWSDeepSenseRunTimeService", "PostContent", {}).n("LexRuntimeServiceClient", "PostContentCommand").f(PostContentRequestFilterSensitiveLog, PostContentResponseFilterSensitiveLog).ser(se_PostContentCommand).de(de_PostContentCommand).build() {
1082
+ static {
1083
+ __name(this, "PostContentCommand");
1084
+ }
1059
1085
  };
1060
- __name(_PostContentCommand, "PostContentCommand");
1061
- var PostContentCommand = _PostContentCommand;
1062
1086
 
1063
1087
  // src/commands/PostTextCommand.ts
1064
1088
 
1065
1089
 
1066
1090
 
1067
- var _PostTextCommand = class _PostTextCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1091
+ var PostTextCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1068
1092
  return [
1069
1093
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1070
1094
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1071
1095
  ];
1072
1096
  }).s("AWSDeepSenseRunTimeService", "PostText", {}).n("LexRuntimeServiceClient", "PostTextCommand").f(PostTextRequestFilterSensitiveLog, PostTextResponseFilterSensitiveLog).ser(se_PostTextCommand).de(de_PostTextCommand).build() {
1097
+ static {
1098
+ __name(this, "PostTextCommand");
1099
+ }
1073
1100
  };
1074
- __name(_PostTextCommand, "PostTextCommand");
1075
- var PostTextCommand = _PostTextCommand;
1076
1101
 
1077
1102
  // src/commands/PutSessionCommand.ts
1078
1103
 
1079
1104
 
1080
1105
 
1081
- var _PutSessionCommand = class _PutSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1106
+ var PutSessionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1082
1107
  return [
1083
1108
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1084
1109
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1085
1110
  ];
1086
1111
  }).s("AWSDeepSenseRunTimeService", "PutSession", {}).n("LexRuntimeServiceClient", "PutSessionCommand").f(PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog).ser(se_PutSessionCommand).de(de_PutSessionCommand).build() {
1112
+ static {
1113
+ __name(this, "PutSessionCommand");
1114
+ }
1087
1115
  };
1088
- __name(_PutSessionCommand, "PutSessionCommand");
1089
- var PutSessionCommand = _PutSessionCommand;
1090
1116
 
1091
1117
  // src/LexRuntimeService.ts
1092
1118
  var commands = {
@@ -1096,10 +1122,11 @@ var commands = {
1096
1122
  PostTextCommand,
1097
1123
  PutSessionCommand
1098
1124
  };
1099
- var _LexRuntimeService = class _LexRuntimeService extends LexRuntimeServiceClient {
1125
+ var LexRuntimeService = class extends LexRuntimeServiceClient {
1126
+ static {
1127
+ __name(this, "LexRuntimeService");
1128
+ }
1100
1129
  };
1101
- __name(_LexRuntimeService, "LexRuntimeService");
1102
- var LexRuntimeService = _LexRuntimeService;
1103
1130
  (0, import_smithy_client.createAggregatedClient)(commands, LexRuntimeService);
1104
1131
  // Annotate the CommonJS export names for ESM import in node:
1105
1132
 
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class LexRuntimeServiceClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,63 +1,64 @@
1
1
  import { SENSITIVE_STRING, } from "@smithy/smithy-client";
2
2
  import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
3
3
  export class BadRequestException extends __BaseException {
4
+ name = "BadRequestException";
5
+ $fault = "client";
4
6
  constructor(opts) {
5
7
  super({
6
8
  name: "BadRequestException",
7
9
  $fault: "client",
8
10
  ...opts,
9
11
  });
10
- this.name = "BadRequestException";
11
- this.$fault = "client";
12
12
  Object.setPrototypeOf(this, BadRequestException.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 InternalFailureException extends __BaseException {
28
+ name = "InternalFailureException";
29
+ $fault = "server";
28
30
  constructor(opts) {
29
31
  super({
30
32
  name: "InternalFailureException",
31
33
  $fault: "server",
32
34
  ...opts,
33
35
  });
34
- this.name = "InternalFailureException";
35
- this.$fault = "server";
36
36
  Object.setPrototypeOf(this, InternalFailureException.prototype);
37
37
  }
38
38
  }
39
39
  export class LimitExceededException extends __BaseException {
40
+ name = "LimitExceededException";
41
+ $fault = "client";
42
+ retryAfterSeconds;
40
43
  constructor(opts) {
41
44
  super({
42
45
  name: "LimitExceededException",
43
46
  $fault: "client",
44
47
  ...opts,
45
48
  });
46
- this.name = "LimitExceededException";
47
- this.$fault = "client";
48
49
  Object.setPrototypeOf(this, LimitExceededException.prototype);
49
50
  this.retryAfterSeconds = opts.retryAfterSeconds;
50
51
  }
51
52
  }
52
53
  export class NotFoundException extends __BaseException {
54
+ name = "NotFoundException";
55
+ $fault = "client";
53
56
  constructor(opts) {
54
57
  super({
55
58
  name: "NotFoundException",
56
59
  $fault: "client",
57
60
  ...opts,
58
61
  });
59
- this.name = "NotFoundException";
60
- this.$fault = "client";
61
62
  Object.setPrototypeOf(this, NotFoundException.prototype);
62
63
  }
63
64
  }
@@ -85,53 +86,56 @@ export const ConfirmationStatus = {
85
86
  NONE: "None",
86
87
  };
87
88
  export class BadGatewayException extends __BaseException {
89
+ name = "BadGatewayException";
90
+ $fault = "server";
91
+ Message;
88
92
  constructor(opts) {
89
93
  super({
90
94
  name: "BadGatewayException",
91
95
  $fault: "server",
92
96
  ...opts,
93
97
  });
94
- this.name = "BadGatewayException";
95
- this.$fault = "server";
96
98
  Object.setPrototypeOf(this, BadGatewayException.prototype);
97
99
  this.Message = opts.Message;
98
100
  }
99
101
  }
100
102
  export class DependencyFailedException extends __BaseException {
103
+ name = "DependencyFailedException";
104
+ $fault = "client";
105
+ Message;
101
106
  constructor(opts) {
102
107
  super({
103
108
  name: "DependencyFailedException",
104
109
  $fault: "client",
105
110
  ...opts,
106
111
  });
107
- this.name = "DependencyFailedException";
108
- this.$fault = "client";
109
112
  Object.setPrototypeOf(this, DependencyFailedException.prototype);
110
113
  this.Message = opts.Message;
111
114
  }
112
115
  }
113
116
  export class LoopDetectedException extends __BaseException {
117
+ name = "LoopDetectedException";
118
+ $fault = "server";
119
+ Message;
114
120
  constructor(opts) {
115
121
  super({
116
122
  name: "LoopDetectedException",
117
123
  $fault: "server",
118
124
  ...opts,
119
125
  });
120
- this.name = "LoopDetectedException";
121
- this.$fault = "server";
122
126
  Object.setPrototypeOf(this, LoopDetectedException.prototype);
123
127
  this.Message = opts.Message;
124
128
  }
125
129
  }
126
130
  export class NotAcceptableException extends __BaseException {
131
+ name = "NotAcceptableException";
132
+ $fault = "client";
127
133
  constructor(opts) {
128
134
  super({
129
135
  name: "NotAcceptableException",
130
136
  $fault: "client",
131
137
  ...opts,
132
138
  });
133
- this.name = "NotAcceptableException";
134
- this.$fault = "client";
135
139
  Object.setPrototypeOf(this, NotAcceptableException.prototype);
136
140
  }
137
141
  }
@@ -144,26 +148,26 @@ export const DialogState = {
144
148
  READY_FOR_FULFILLMENT: "ReadyForFulfillment",
145
149
  };
146
150
  export class RequestTimeoutException extends __BaseException {
151
+ name = "RequestTimeoutException";
152
+ $fault = "client";
147
153
  constructor(opts) {
148
154
  super({
149
155
  name: "RequestTimeoutException",
150
156
  $fault: "client",
151
157
  ...opts,
152
158
  });
153
- this.name = "RequestTimeoutException";
154
- this.$fault = "client";
155
159
  Object.setPrototypeOf(this, RequestTimeoutException.prototype);
156
160
  }
157
161
  }
158
162
  export class UnsupportedMediaTypeException extends __BaseException {
163
+ name = "UnsupportedMediaTypeException";
164
+ $fault = "client";
159
165
  constructor(opts) {
160
166
  super({
161
167
  name: "UnsupportedMediaTypeException",
162
168
  $fault: "client",
163
169
  ...opts,
164
170
  });
165
- this.name = "UnsupportedMediaTypeException";
166
- this.$fault = "client";
167
171
  Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
168
172
  }
169
173
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
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
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
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
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeServiceClientConfig) =
32
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
33
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
- 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;
35
+ 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;
36
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
37
  logger?: import("@smithy/types").Logger | undefined;
38
38
  }) => import("@smithy/types").EndpointV2;
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ _: unknown
15
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
16
  defaultUserAgentProvider: (
15
17
  config?:
16
18
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- init?:
13
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
- | undefined
15
- ) => import("@smithy/types").MemoizedProvider<
16
- import("@smithy/types").AwsCredentialIdentity
17
- >;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ init?:
15
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ | undefined
17
+ ) => import("@smithy/types").MemoizedProvider<
18
+ import("@smithy/types").AwsCredentialIdentity
19
+ >);
18
20
  defaultUserAgentProvider: (
19
21
  config?:
20
22
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
30
30
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
31
  | undefined
32
32
  ) => Promise<import("@smithy/types").UserAgent>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
33
+ credentialDefaultProvider:
34
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
35
+ | ((
36
+ _: unknown
37
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
36
38
  maxAttempts: number | import("@smithy/types").Provider<number>;
37
39
  retryMode: string | import("@smithy/types").Provider<string>;
38
40
  logger: import("@smithy/types").Logger;
@@ -53,11 +55,21 @@ export declare const getRuntimeConfig: (
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-service",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
4
- "version": "3.721.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-service",
@@ -22,57 +22,57 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.721.0",
26
- "@aws-sdk/client-sts": "3.721.0",
27
- "@aws-sdk/core": "3.716.0",
28
- "@aws-sdk/credential-provider-node": "3.721.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.721.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.721.0",
38
- "@smithy/config-resolver": "^3.0.13",
39
- "@smithy/core": "^2.5.5",
40
- "@smithy/fetch-http-handler": "^4.1.2",
41
- "@smithy/hash-node": "^3.0.11",
42
- "@smithy/invalid-dependency": "^3.0.11",
43
- "@smithy/middleware-content-length": "^3.0.13",
44
- "@smithy/middleware-endpoint": "^3.2.6",
45
- "@smithy/middleware-retry": "^3.0.31",
46
- "@smithy/middleware-serde": "^3.0.11",
47
- "@smithy/middleware-stack": "^3.0.11",
48
- "@smithy/node-config-provider": "^3.1.12",
49
- "@smithy/node-http-handler": "^3.3.2",
50
- "@smithy/protocol-http": "^4.1.8",
51
- "@smithy/smithy-client": "^3.5.1",
52
- "@smithy/types": "^3.7.2",
53
- "@smithy/url-parser": "^3.0.11",
54
- "@smithy/util-base64": "^3.0.0",
55
- "@smithy/util-body-length-browser": "^3.0.0",
56
- "@smithy/util-body-length-node": "^3.0.0",
57
- "@smithy/util-defaults-mode-browser": "^3.0.31",
58
- "@smithy/util-defaults-mode-node": "^3.0.31",
59
- "@smithy/util-endpoints": "^2.1.7",
60
- "@smithy/util-middleware": "^3.0.11",
61
- "@smithy/util-retry": "^3.0.11",
62
- "@smithy/util-stream": "^3.3.2",
63
- "@smithy/util-utf8": "^3.0.0",
25
+ "@aws-sdk/client-sso-oidc": "3.723.0",
26
+ "@aws-sdk/client-sts": "3.723.0",
27
+ "@aws-sdk/core": "3.723.0",
28
+ "@aws-sdk/credential-provider-node": "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/fetch-http-handler": "^5.0.0",
41
+ "@smithy/hash-node": "^4.0.0",
42
+ "@smithy/invalid-dependency": "^4.0.0",
43
+ "@smithy/middleware-content-length": "^4.0.0",
44
+ "@smithy/middleware-endpoint": "^4.0.0",
45
+ "@smithy/middleware-retry": "^4.0.0",
46
+ "@smithy/middleware-serde": "^4.0.0",
47
+ "@smithy/middleware-stack": "^4.0.0",
48
+ "@smithy/node-config-provider": "^4.0.0",
49
+ "@smithy/node-http-handler": "^4.0.0",
50
+ "@smithy/protocol-http": "^5.0.0",
51
+ "@smithy/smithy-client": "^4.0.0",
52
+ "@smithy/types": "^4.0.0",
53
+ "@smithy/url-parser": "^4.0.0",
54
+ "@smithy/util-base64": "^4.0.0",
55
+ "@smithy/util-body-length-browser": "^4.0.0",
56
+ "@smithy/util-body-length-node": "^4.0.0",
57
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
58
+ "@smithy/util-defaults-mode-node": "^4.0.0",
59
+ "@smithy/util-endpoints": "^3.0.0",
60
+ "@smithy/util-middleware": "^4.0.0",
61
+ "@smithy/util-retry": "^4.0.0",
62
+ "@smithy/util-stream": "^4.0.0",
63
+ "@smithy/util-utf8": "^4.0.0",
64
64
  "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@tsconfig/node16": "16.1.3",
68
- "@types/node": "^16.18.96",
67
+ "@tsconfig/node18": "18.2.4",
68
+ "@types/node": "^18.19.69",
69
69
  "concurrently": "7.0.0",
70
70
  "downlevel-dts": "0.10.1",
71
71
  "rimraf": "3.0.2",
72
- "typescript": "~4.9.5"
72
+ "typescript": "~5.2.2"
73
73
  },
74
74
  "engines": {
75
- "node": ">=16.0.0"
75
+ "node": ">=18.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {