@aws-sdk/client-lex-runtime-v2 3.1068.0 → 3.1070.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.
@@ -1,19 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const client_1 = require("@smithy/core/client");
6
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { invalidFunction } = require("@smithy/core/client");
3
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
7
4
  const getRuntimeConfig = (config) => {
8
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
5
+ const browserDefaults = getBrowserRuntimeConfig(config);
9
6
  return {
10
7
  ...browserDefaults,
11
8
  ...config,
12
9
  runtime: "react-native",
13
10
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
14
- handle: (0, client_1.invalidFunction)("event stream request is not supported in ReactNative."),
11
+ handle: invalidFunction("event stream request is not supported in ReactNative."),
15
12
  })),
16
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ sha256: config?.sha256 ?? Sha256,
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,43 +1,39 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const client_1 = require("@smithy/core/client");
7
- const protocols_2 = require("@smithy/core/protocols");
8
- const serde_1 = require("@smithy/core/serde");
9
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
- const endpointResolver_1 = require("./endpoint/endpointResolver");
11
- const schemas_0_1 = require("./schemas/schemas_0");
12
- const getRuntimeConfig = (config) => {
1
+ const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
+ const { NoOpLogger } = require("@smithy/core/client");
4
+ const { parseUrl } = require("@smithy/core/protocols");
5
+ const { fromBase64, fromUtf8, sdkStreamMixin, toBase64, toUtf8 } = require("@smithy/core/serde");
6
+ const { defaultLexRuntimeV2HttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
+ const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
+ const { errorTypeRegistries } = require("./schemas/schemas_0");
9
+ exports.getRuntimeConfig = (config) => {
13
10
  return {
14
11
  apiVersion: "2020-08-07",
15
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
12
+ base64Decoder: config?.base64Decoder ?? fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? toBase64,
17
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
18
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
19
16
  extensions: config?.extensions ?? [],
20
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultLexRuntimeV2HttpAuthSchemeProvider,
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultLexRuntimeV2HttpAuthSchemeProvider,
21
18
  httpAuthSchemes: config?.httpAuthSchemes ?? [
22
19
  {
23
20
  schemeId: "aws.auth#sigv4",
24
21
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
22
+ signer: new AwsSdkSigV4Signer(),
26
23
  },
27
24
  ],
28
- logger: config?.logger ?? new client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
25
+ logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
30
27
  protocolSettings: config?.protocolSettings ?? {
31
28
  defaultNamespace: "com.amazonaws.lexruntimev2",
32
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
29
+ errorTypeRegistries,
33
30
  version: "2020-08-07",
34
31
  serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
35
32
  },
36
- sdkStreamMixin: config?.sdkStreamMixin ?? serde_1.sdkStreamMixin,
33
+ sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
37
34
  serviceId: config?.serviceId ?? "Lex Runtime V2",
38
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
39
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
40
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
35
+ urlParser: config?.urlParser ?? parseUrl,
36
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
41
38
  };
42
39
  };
43
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextInputEvent$ = exports.StartConversationResponse$ = exports.StartConversationRequest$ = exports.Slot$ = exports.SessionState$ = exports.SentimentScore$ = exports.SentimentResponse$ = exports.RuntimeHintValue$ = exports.RuntimeHints$ = exports.RuntimeHintDetails$ = exports.RecognizeUtteranceResponse$ = exports.RecognizeUtteranceRequest$ = exports.RecognizeTextResponse$ = exports.RecognizeTextRequest$ = exports.RecognizedBotMember$ = exports.PutSessionResponse$ = exports.PutSessionRequest$ = exports.PlaybackInterruptionEvent$ = exports.PlaybackCompletionEvent$ = exports.Message$ = exports.Interpretation$ = exports.IntentResultEvent$ = exports.Intent$ = exports.ImageResponseCard$ = exports.HeartbeatEvent$ = exports.GetSessionResponse$ = exports.GetSessionRequest$ = exports.ElicitSubSlot$ = exports.DTMFInputEvent$ = exports.DisconnectionEvent$ = exports.DialogAction$ = exports.DeleteSessionResponse$ = exports.DeleteSessionRequest$ = exports.ConfigurationEvent$ = exports.ConfidenceScore$ = exports.Button$ = exports.AudioResponseEvent$ = exports.AudioInputEvent$ = exports.ActiveContextTimeToLive$ = exports.ActiveContext$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.DependencyFailedException$ = exports.ConflictException$ = exports.BadGatewayException$ = exports.AccessDeniedException$ = exports.LexRuntimeV2ServiceException$ = void 0;
4
- exports.StartConversation$ = exports.RecognizeUtterance$ = exports.RecognizeText$ = exports.PutSession$ = exports.GetSession$ = exports.DeleteSession$ = exports.StartConversationResponseEventStream$ = exports.StartConversationRequestEventStream$ = exports.Value$ = exports.TranscriptEvent$ = exports.TextResponseEvent$ = void 0;
5
1
  const _AC = "ActiveContext";
6
2
  const _ACL = "ActiveContextsList";
7
3
  const _ACPM = "ActiveContextParametersMap";
@@ -172,61 +168,70 @@ const _xalrbm = "x-amz-lex-recognized-bot-member";
172
168
  const _xalsi = "x-amz-lex-session-id";
173
169
  const _xalss = "x-amz-lex-session-state";
174
170
  const n0 = "com.amazonaws.lexruntimev2";
175
- const schema_1 = require("@smithy/core/schema");
176
- const errors_1 = require("../models/errors");
177
- const LexRuntimeV2ServiceException_1 = require("../models/LexRuntimeV2ServiceException");
178
- const _s_registry = schema_1.TypeRegistry.for(_s);
179
- exports.LexRuntimeV2ServiceException$ = [-3, _s, "LexRuntimeV2ServiceException", 0, [], []];
180
- _s_registry.registerError(exports.LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException);
181
- const n0_registry = schema_1.TypeRegistry.for(n0);
182
- exports.AccessDeniedException$ = [-3, n0, _ADE,
171
+ const { TypeRegistry } = require("@smithy/core/schema");
172
+ const { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException } = require("../models/errors");
173
+ const { LexRuntimeV2ServiceException } = require("../models/LexRuntimeV2ServiceException");
174
+ const _s_registry = TypeRegistry.for(_s);
175
+ const LexRuntimeV2ServiceException$ = [-3, _s, "LexRuntimeV2ServiceException", 0, [], []];
176
+ exports.LexRuntimeV2ServiceException$ = LexRuntimeV2ServiceException$;
177
+ _s_registry.registerError(LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException);
178
+ const n0_registry = TypeRegistry.for(n0);
179
+ const AccessDeniedException$ = [-3, n0, _ADE,
183
180
  { [_e]: _c, [_hE]: 403 },
184
181
  [_m],
185
182
  [0], 1
186
183
  ];
187
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
188
- exports.BadGatewayException$ = [-3, n0, _BGE,
184
+ exports.AccessDeniedException$ = AccessDeniedException$;
185
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
186
+ const BadGatewayException$ = [-3, n0, _BGE,
189
187
  { [_e]: _se, [_hE]: 502 },
190
188
  [_m],
191
189
  [0], 1
192
190
  ];
193
- n0_registry.registerError(exports.BadGatewayException$, errors_1.BadGatewayException);
194
- exports.ConflictException$ = [-3, n0, _CE,
191
+ exports.BadGatewayException$ = BadGatewayException$;
192
+ n0_registry.registerError(BadGatewayException$, BadGatewayException);
193
+ const ConflictException$ = [-3, n0, _CE,
195
194
  { [_e]: _c, [_hE]: 409 },
196
195
  [_m],
197
196
  [0], 1
198
197
  ];
199
- n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
200
- exports.DependencyFailedException$ = [-3, n0, _DFE,
198
+ exports.ConflictException$ = ConflictException$;
199
+ n0_registry.registerError(ConflictException$, ConflictException);
200
+ const DependencyFailedException$ = [-3, n0, _DFE,
201
201
  { [_e]: _c, [_hE]: 424 },
202
202
  [_m],
203
203
  [0], 1
204
204
  ];
205
- n0_registry.registerError(exports.DependencyFailedException$, errors_1.DependencyFailedException);
206
- exports.InternalServerException$ = [-3, n0, _ISE,
205
+ exports.DependencyFailedException$ = DependencyFailedException$;
206
+ n0_registry.registerError(DependencyFailedException$, DependencyFailedException);
207
+ const InternalServerException$ = [-3, n0, _ISE,
207
208
  { [_e]: _se, [_hE]: 500 },
208
209
  [_m],
209
210
  [0], 1
210
211
  ];
211
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
212
- exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
212
+ exports.InternalServerException$ = InternalServerException$;
213
+ n0_registry.registerError(InternalServerException$, InternalServerException);
214
+ const ResourceNotFoundException$ = [-3, n0, _RNFE,
213
215
  { [_e]: _c, [_hE]: 404 },
214
216
  [_m],
215
217
  [0], 1
216
218
  ];
217
- n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
218
- exports.ThrottlingException$ = [-3, n0, _TE,
219
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
220
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
221
+ const ThrottlingException$ = [-3, n0, _TE,
219
222
  { [_e]: _c, [_hE]: 429 },
220
223
  [_m],
221
224
  [0], 1
222
225
  ];
223
- n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
224
- exports.ValidationException$ = [-3, n0, _VE,
226
+ exports.ThrottlingException$ = ThrottlingException$;
227
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
228
+ const ValidationException$ = [-3, n0, _VE,
225
229
  { [_e]: _c, [_hE]: 400 },
226
230
  [_m],
227
231
  [0], 1
228
232
  ];
229
- n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
233
+ exports.ValidationException$ = ValidationException$;
234
+ n0_registry.registerError(ValidationException$, ValidationException);
230
235
  exports.errorTypeRegistries = [
231
236
  _s_registry,
232
237
  n0_registry,
@@ -235,241 +240,284 @@ var BlobStream = [0, n0, _BS, { [_st]: 1 }, 42];
235
240
  var DTMFRegex = [0, n0, _DTMFR, 8, 0];
236
241
  var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
237
242
  var Text = [0, n0, _T, 8, 0];
238
- exports.ActiveContext$ = [3, n0, _AC,
243
+ const ActiveContext$ = [3, n0, _AC,
239
244
  0,
240
245
  [_n, _tTL, _cA],
241
- [0, () => exports.ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]], 3
246
+ [0, () => ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]], 3
242
247
  ];
243
- exports.ActiveContextTimeToLive$ = [3, n0, _ACTTL,
248
+ exports.ActiveContext$ = ActiveContext$;
249
+ const ActiveContextTimeToLive$ = [3, n0, _ACTTL,
244
250
  0,
245
251
  [_tTLIS, _tTLu],
246
252
  [1, 1], 2
247
253
  ];
248
- exports.AudioInputEvent$ = [3, n0, _AIE,
254
+ exports.ActiveContextTimeToLive$ = ActiveContextTimeToLive$;
255
+ const AudioInputEvent$ = [3, n0, _AIE,
249
256
  0,
250
257
  [_cT, _aC, _eI, _cTM],
251
258
  [0, 21, 0, 1], 1
252
259
  ];
253
- exports.AudioResponseEvent$ = [3, n0, _ARE,
260
+ exports.AudioInputEvent$ = AudioInputEvent$;
261
+ const AudioResponseEvent$ = [3, n0, _ARE,
254
262
  0,
255
263
  [_aC, _cT, _eI],
256
264
  [21, 0, 0]
257
265
  ];
258
- exports.Button$ = [3, n0, _B,
266
+ exports.AudioResponseEvent$ = AudioResponseEvent$;
267
+ const Button$ = [3, n0, _B,
259
268
  0,
260
269
  [_t, _v],
261
270
  [0, 0], 2
262
271
  ];
263
- exports.ConfidenceScore$ = [3, n0, _CS,
272
+ exports.Button$ = Button$;
273
+ const ConfidenceScore$ = [3, n0, _CS,
264
274
  0,
265
275
  [_sc],
266
276
  [1]
267
277
  ];
268
- exports.ConfigurationEvent$ = [3, n0, _CEo,
278
+ exports.ConfidenceScore$ = ConfidenceScore$;
279
+ const ConfigurationEvent$ = [3, n0, _CEo,
269
280
  0,
270
281
  [_rCT, _rA, _sS, _wM, _dP, _eI, _cTM],
271
- [0, 128 | 0, [() => exports.SessionState$, 0], [() => Messages, 0], 2, 0, 1], 1
282
+ [0, 128 | 0, [() => SessionState$, 0], [() => Messages, 0], 2, 0, 1], 1
272
283
  ];
273
- exports.DeleteSessionRequest$ = [3, n0, _DSR,
284
+ exports.ConfigurationEvent$ = ConfigurationEvent$;
285
+ const DeleteSessionRequest$ = [3, n0, _DSR,
274
286
  0,
275
287
  [_bI, _bAI, _lI, _sI],
276
288
  [[0, 1], [0, 1], [0, 1], [0, 1]], 4
277
289
  ];
278
- exports.DeleteSessionResponse$ = [3, n0, _DSRe,
290
+ exports.DeleteSessionRequest$ = DeleteSessionRequest$;
291
+ const DeleteSessionResponse$ = [3, n0, _DSRe,
279
292
  0,
280
293
  [_bI, _bAI, _lI, _sI],
281
294
  [0, 0, 0, 0]
282
295
  ];
283
- exports.DialogAction$ = [3, n0, _DA,
296
+ exports.DeleteSessionResponse$ = DeleteSessionResponse$;
297
+ const DialogAction$ = [3, n0, _DA,
284
298
  0,
285
299
  [_ty, _sTE, _sES, _sSTE],
286
- [0, 0, 0, () => exports.ElicitSubSlot$], 1
300
+ [0, 0, 0, () => ElicitSubSlot$], 1
287
301
  ];
288
- exports.DisconnectionEvent$ = [3, n0, _DE,
302
+ exports.DialogAction$ = DialogAction$;
303
+ const DisconnectionEvent$ = [3, n0, _DE,
289
304
  0,
290
305
  [_eI, _cTM],
291
306
  [0, 1]
292
307
  ];
293
- exports.DTMFInputEvent$ = [3, n0, _DTMFIE,
308
+ exports.DisconnectionEvent$ = DisconnectionEvent$;
309
+ const DTMFInputEvent$ = [3, n0, _DTMFIE,
294
310
  0,
295
311
  [_iC, _eI, _cTM],
296
312
  [[() => DTMFRegex, 0], 0, 1], 1
297
313
  ];
298
- exports.ElicitSubSlot$ = [3, n0, _ESS,
314
+ exports.DTMFInputEvent$ = DTMFInputEvent$;
315
+ const ElicitSubSlot$ = [3, n0, _ESS,
299
316
  0,
300
317
  [_n, _sSTE],
301
- [0, () => exports.ElicitSubSlot$], 1
318
+ [0, () => ElicitSubSlot$], 1
302
319
  ];
303
- exports.GetSessionRequest$ = [3, n0, _GSR,
320
+ exports.ElicitSubSlot$ = ElicitSubSlot$;
321
+ const GetSessionRequest$ = [3, n0, _GSR,
304
322
  0,
305
323
  [_bI, _bAI, _lI, _sI],
306
324
  [[0, 1], [0, 1], [0, 1], [0, 1]], 4
307
325
  ];
308
- exports.GetSessionResponse$ = [3, n0, _GSRe,
326
+ exports.GetSessionRequest$ = GetSessionRequest$;
327
+ const GetSessionResponse$ = [3, n0, _GSRe,
309
328
  0,
310
329
  [_sI, _me, _i, _sS],
311
- [0, [() => Messages, 0], () => Interpretations, [() => exports.SessionState$, 0]]
330
+ [0, [() => Messages, 0], () => Interpretations, [() => SessionState$, 0]]
312
331
  ];
313
- exports.HeartbeatEvent$ = [3, n0, _HE,
332
+ exports.GetSessionResponse$ = GetSessionResponse$;
333
+ const HeartbeatEvent$ = [3, n0, _HE,
314
334
  0,
315
335
  [_eI],
316
336
  [0]
317
337
  ];
318
- exports.ImageResponseCard$ = [3, n0, _IRC,
338
+ exports.HeartbeatEvent$ = HeartbeatEvent$;
339
+ const ImageResponseCard$ = [3, n0, _IRC,
319
340
  0,
320
341
  [_ti, _su, _iU, _b],
321
342
  [0, 0, 0, () => ButtonsList], 1
322
343
  ];
323
- exports.Intent$ = [3, n0, _I,
344
+ exports.ImageResponseCard$ = ImageResponseCard$;
345
+ const Intent$ = [3, n0, _I,
324
346
  0,
325
347
  [_n, _sl, _sta, _cS],
326
348
  [0, () => Slots, 0, 0], 1
327
349
  ];
328
- exports.IntentResultEvent$ = [3, n0, _IRE,
350
+ exports.Intent$ = Intent$;
351
+ const IntentResultEvent$ = [3, n0, _IRE,
329
352
  0,
330
353
  [_iM, _i, _sS, _rA, _sI, _eI, _rBM],
331
- [0, () => Interpretations, [() => exports.SessionState$, 0], 128 | 0, 0, 0, () => exports.RecognizedBotMember$]
354
+ [0, () => Interpretations, [() => SessionState$, 0], 128 | 0, 0, 0, () => RecognizedBotMember$]
332
355
  ];
333
- exports.Interpretation$ = [3, n0, _In,
356
+ exports.IntentResultEvent$ = IntentResultEvent$;
357
+ const Interpretation$ = [3, n0, _In,
334
358
  0,
335
359
  [_nC, _sR, _in, _iS],
336
- [() => exports.ConfidenceScore$, () => exports.SentimentResponse$, () => exports.Intent$, 0]
360
+ [() => ConfidenceScore$, () => SentimentResponse$, () => Intent$, 0]
337
361
  ];
338
- exports.Message$ = [3, n0, _M,
362
+ exports.Interpretation$ = Interpretation$;
363
+ const Message$ = [3, n0, _M,
339
364
  0,
340
365
  [_cT, _co, _iRC],
341
- [0, [() => Text, 0], () => exports.ImageResponseCard$], 1
366
+ [0, [() => Text, 0], () => ImageResponseCard$], 1
342
367
  ];
343
- exports.PlaybackCompletionEvent$ = [3, n0, _PCE,
368
+ exports.Message$ = Message$;
369
+ const PlaybackCompletionEvent$ = [3, n0, _PCE,
344
370
  0,
345
371
  [_eI, _cTM],
346
372
  [0, 1]
347
373
  ];
348
- exports.PlaybackInterruptionEvent$ = [3, n0, _PIE,
374
+ exports.PlaybackCompletionEvent$ = PlaybackCompletionEvent$;
375
+ const PlaybackInterruptionEvent$ = [3, n0, _PIE,
349
376
  0,
350
377
  [_eR, _cBEI, _eI],
351
378
  [0, 0, 0]
352
379
  ];
353
- exports.PutSessionRequest$ = [3, n0, _PSR,
380
+ exports.PlaybackInterruptionEvent$ = PlaybackInterruptionEvent$;
381
+ const PutSessionRequest$ = [3, n0, _PSR,
354
382
  0,
355
383
  [_bI, _bAI, _lI, _sI, _sS, _me, _rA, _rCT],
356
- [[0, 1], [0, 1], [0, 1], [0, 1], [() => exports.SessionState$, 0], [() => Messages, 0], 128 | 0, [0, { [_hH]: _RCT }]], 5
384
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => SessionState$, 0], [() => Messages, 0], 128 | 0, [0, { [_hH]: _RCT }]], 5
357
385
  ];
358
- exports.PutSessionResponse$ = [3, n0, _PSRu,
386
+ exports.PutSessionRequest$ = PutSessionRequest$;
387
+ const PutSessionResponse$ = [3, n0, _PSRu,
359
388
  0,
360
389
  [_cT, _me, _sS, _rA, _sI, _aS],
361
390
  [[0, { [_hH]: _CT }], [0, { [_hH]: _xalm }], [0, { [_hH]: _xalss }], [0, { [_hH]: _xalra }], [0, { [_hH]: _xalsi }], [() => BlobStream, 16]]
362
391
  ];
363
- exports.RecognizedBotMember$ = [3, n0, _RBM,
392
+ exports.PutSessionResponse$ = PutSessionResponse$;
393
+ const RecognizedBotMember$ = [3, n0, _RBM,
364
394
  0,
365
395
  [_bI, _bN],
366
396
  [0, 0], 1
367
397
  ];
368
- exports.RecognizeTextRequest$ = [3, n0, _RTR,
398
+ exports.RecognizedBotMember$ = RecognizedBotMember$;
399
+ const RecognizeTextRequest$ = [3, n0, _RTR,
369
400
  0,
370
401
  [_bI, _bAI, _lI, _sI, _t, _sS, _rA],
371
- [[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => exports.SessionState$, 0], 128 | 0], 5
402
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => SessionState$, 0], 128 | 0], 5
372
403
  ];
373
- exports.RecognizeTextResponse$ = [3, n0, _RTRe,
404
+ exports.RecognizeTextRequest$ = RecognizeTextRequest$;
405
+ const RecognizeTextResponse$ = [3, n0, _RTRe,
374
406
  0,
375
407
  [_me, _sS, _i, _rA, _sI, _rBM],
376
- [[() => Messages, 0], [() => exports.SessionState$, 0], () => Interpretations, 128 | 0, 0, () => exports.RecognizedBotMember$]
408
+ [[() => Messages, 0], [() => SessionState$, 0], () => Interpretations, 128 | 0, 0, () => RecognizedBotMember$]
377
409
  ];
378
- exports.RecognizeUtteranceRequest$ = [3, n0, _RUR,
410
+ exports.RecognizeTextResponse$ = RecognizeTextResponse$;
411
+ const RecognizeUtteranceRequest$ = [3, n0, _RUR,
379
412
  0,
380
413
  [_bI, _bAI, _lI, _sI, _rCTe, _sS, _rA, _rCT, _iSn],
381
414
  [[0, 1], [0, 1], [0, 1], [0, 1], [0, { [_hH]: _CT }], [() => SensitiveNonEmptyString, { [_hH]: _xalss }], [() => SensitiveNonEmptyString, { [_hH]: _xalra }], [0, { [_hH]: _RCT_ }], [() => BlobStream, 16]], 5
382
415
  ];
383
- exports.RecognizeUtteranceResponse$ = [3, n0, _RURe,
416
+ exports.RecognizeUtteranceRequest$ = RecognizeUtteranceRequest$;
417
+ const RecognizeUtteranceResponse$ = [3, n0, _RURe,
384
418
  0,
385
419
  [_iM, _cT, _me, _i, _sS, _rA, _sI, _iT, _aS, _rBM],
386
420
  [[0, { [_hH]: _xalim }], [0, { [_hH]: _CT }], [0, { [_hH]: _xalm }], [0, { [_hH]: _xali }], [0, { [_hH]: _xalss }], [0, { [_hH]: _xalra }], [0, { [_hH]: _xalsi }], [0, { [_hH]: _xalit }], [() => BlobStream, 16], [0, { [_hH]: _xalrbm }]]
387
421
  ];
388
- exports.RuntimeHintDetails$ = [3, n0, _RHD,
422
+ exports.RecognizeUtteranceResponse$ = RecognizeUtteranceResponse$;
423
+ const RuntimeHintDetails$ = [3, n0, _RHD,
389
424
  0,
390
425
  [_rHV, _sSH],
391
426
  [() => RuntimeHintValuesList, () => SlotHintsSlotMap]
392
427
  ];
393
- exports.RuntimeHints$ = [3, n0, _RH,
428
+ exports.RuntimeHintDetails$ = RuntimeHintDetails$;
429
+ const RuntimeHints$ = [3, n0, _RH,
394
430
  0,
395
431
  [_sH],
396
432
  [() => SlotHintsIntentMap]
397
433
  ];
398
- exports.RuntimeHintValue$ = [3, n0, _RHV,
434
+ exports.RuntimeHints$ = RuntimeHints$;
435
+ const RuntimeHintValue$ = [3, n0, _RHV,
399
436
  0,
400
437
  [_p],
401
438
  [0], 1
402
439
  ];
403
- exports.SentimentResponse$ = [3, n0, _SR,
440
+ exports.RuntimeHintValue$ = RuntimeHintValue$;
441
+ const SentimentResponse$ = [3, n0, _SR,
404
442
  0,
405
443
  [_sen, _sSe],
406
- [0, () => exports.SentimentScore$]
444
+ [0, () => SentimentScore$]
407
445
  ];
408
- exports.SentimentScore$ = [3, n0, _SS,
446
+ exports.SentimentResponse$ = SentimentResponse$;
447
+ const SentimentScore$ = [3, n0, _SS,
409
448
  0,
410
449
  [_po, _ne, _neu, _mi],
411
450
  [1, 1, 1, 1]
412
451
  ];
413
- exports.SessionState$ = [3, n0, _SSe,
452
+ exports.SentimentScore$ = SentimentScore$;
453
+ const SessionState$ = [3, n0, _SSe,
414
454
  0,
415
455
  [_dA, _in, _aCc, _sA, _oRI, _rH],
416
- [() => exports.DialogAction$, () => exports.Intent$, [() => ActiveContextsList, 0], 128 | 0, 0, () => exports.RuntimeHints$]
456
+ [() => DialogAction$, () => Intent$, [() => ActiveContextsList, 0], 128 | 0, 0, () => RuntimeHints$]
417
457
  ];
418
- exports.Slot$ = [3, n0, _S,
458
+ exports.SessionState$ = SessionState$;
459
+ const Slot$ = [3, n0, _S,
419
460
  0,
420
461
  [_v, _sh, _va, _sSu],
421
- [() => exports.Value$, 0, () => Values, () => Slots]
462
+ [() => Value$, 0, () => Values, () => Slots]
422
463
  ];
423
- exports.StartConversationRequest$ = [3, n0, _SCR,
464
+ exports.Slot$ = Slot$;
465
+ const StartConversationRequest$ = [3, n0, _SCR,
424
466
  0,
425
467
  [_bI, _bAI, _lI, _sI, _rES, _cM],
426
- [[0, 1], [0, 1], [0, 1], [0, 1], [() => exports.StartConversationRequestEventStream$, 16], [0, { [_hH]: _xalcm }]], 5
468
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => StartConversationRequestEventStream$, 16], [0, { [_hH]: _xalcm }]], 5
427
469
  ];
428
- exports.StartConversationResponse$ = [3, n0, _SCRt,
470
+ exports.StartConversationRequest$ = StartConversationRequest$;
471
+ const StartConversationResponse$ = [3, n0, _SCRt,
429
472
  0,
430
473
  [_rESe],
431
- [[() => exports.StartConversationResponseEventStream$, 16]]
474
+ [[() => StartConversationResponseEventStream$, 16]]
432
475
  ];
433
- exports.TextInputEvent$ = [3, n0, _TIE,
476
+ exports.StartConversationResponse$ = StartConversationResponse$;
477
+ const TextInputEvent$ = [3, n0, _TIE,
434
478
  0,
435
479
  [_t, _eI, _cTM],
436
480
  [[() => Text, 0], 0, 1], 1
437
481
  ];
438
- exports.TextResponseEvent$ = [3, n0, _TRE,
482
+ exports.TextInputEvent$ = TextInputEvent$;
483
+ const TextResponseEvent$ = [3, n0, _TRE,
439
484
  0,
440
485
  [_me, _eI],
441
486
  [[() => Messages, 0], 0]
442
487
  ];
443
- exports.TranscriptEvent$ = [3, n0, _TEr,
488
+ exports.TextResponseEvent$ = TextResponseEvent$;
489
+ const TranscriptEvent$ = [3, n0, _TEr,
444
490
  0,
445
491
  [_tr, _eI],
446
492
  [0, 0]
447
493
  ];
448
- exports.Value$ = [3, n0, _V,
494
+ exports.TranscriptEvent$ = TranscriptEvent$;
495
+ const Value$ = [3, n0, _V,
449
496
  0,
450
497
  [_iV, _oV, _rV],
451
498
  [0, 0, 64 | 0], 1
452
499
  ];
500
+ exports.Value$ = Value$;
453
501
  var ActiveContextsList = [1, n0, _ACL,
454
- 0, [() => exports.ActiveContext$,
502
+ 0, [() => ActiveContext$,
455
503
  0]
456
504
  ];
457
505
  var ButtonsList = [1, n0, _BL,
458
- 0, () => exports.Button$
506
+ 0, () => Button$
459
507
  ];
460
508
  var Interpretations = [1, n0, _Int,
461
- 0, () => exports.Interpretation$
509
+ 0, () => Interpretation$
462
510
  ];
463
511
  var Messages = [1, n0, _Me,
464
- 0, [() => exports.Message$,
512
+ 0, [() => Message$,
465
513
  0]
466
514
  ];
467
515
  var RuntimeHintValuesList = [1, n0, _RHVL,
468
- 0, () => exports.RuntimeHintValue$
516
+ 0, () => RuntimeHintValue$
469
517
  ];
470
518
  var StringList = 64 | 0;
471
519
  var Values = [1, n0, _Va,
472
- 0, () => exports.Slot$
520
+ 0, () => Slot$
473
521
  ];
474
522
  var ActiveContextParametersMap = [2, n0, _ACPM,
475
523
  0, [0,
@@ -481,37 +529,39 @@ var SlotHintsIntentMap = [2, n0, _SHIM,
481
529
  0, 0, () => SlotHintsSlotMap
482
530
  ];
483
531
  var SlotHintsSlotMap = [2, n0, _SHSM,
484
- 0, 0, () => exports.RuntimeHintDetails$
532
+ 0, 0, () => RuntimeHintDetails$
485
533
  ];
486
534
  var Slots = [2, n0, _Sl,
487
- 0, 0, () => exports.Slot$
535
+ 0, 0, () => Slot$
488
536
  ];
489
537
  var StringMap = 128 | 0;
490
- exports.StartConversationRequestEventStream$ = [4, n0, _SCRES,
538
+ const StartConversationRequestEventStream$ = [4, n0, _SCRES,
491
539
  { [_st]: 1 },
492
540
  [_CEo, _AIE, _DTMFIE, _TIE, _PCE, _DE],
493
- [[() => exports.ConfigurationEvent$, 0], () => exports.AudioInputEvent$, [() => exports.DTMFInputEvent$, 0], [() => exports.TextInputEvent$, 0], () => exports.PlaybackCompletionEvent$, () => exports.DisconnectionEvent$]
541
+ [[() => ConfigurationEvent$, 0], () => AudioInputEvent$, [() => DTMFInputEvent$, 0], [() => TextInputEvent$, 0], () => PlaybackCompletionEvent$, () => DisconnectionEvent$]
494
542
  ];
495
- exports.StartConversationResponseEventStream$ = [4, n0, _SCRESt,
543
+ exports.StartConversationRequestEventStream$ = StartConversationRequestEventStream$;
544
+ const StartConversationResponseEventStream$ = [4, n0, _SCRESt,
496
545
  { [_st]: 1 },
497
546
  [_PIE, _TEr, _IRE, _TRE, _ARE, _HE, _ADE, _RNFE, _VE, _TE, _ISE, _CE, _DFE, _BGE],
498
- [() => exports.PlaybackInterruptionEvent$, () => exports.TranscriptEvent$, [() => exports.IntentResultEvent$, 0], [() => exports.TextResponseEvent$, 0], () => exports.AudioResponseEvent$, () => exports.HeartbeatEvent$, [() => exports.AccessDeniedException$, 0], [() => exports.ResourceNotFoundException$, 0], [() => exports.ValidationException$, 0], [() => exports.ThrottlingException$, 0], [() => exports.InternalServerException$, 0], [() => exports.ConflictException$, 0], [() => exports.DependencyFailedException$, 0], [() => exports.BadGatewayException$, 0]]
547
+ [() => PlaybackInterruptionEvent$, () => TranscriptEvent$, [() => IntentResultEvent$, 0], [() => TextResponseEvent$, 0], () => AudioResponseEvent$, () => HeartbeatEvent$, [() => AccessDeniedException$, 0], [() => ResourceNotFoundException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => InternalServerException$, 0], [() => ConflictException$, 0], [() => DependencyFailedException$, 0], [() => BadGatewayException$, 0]]
499
548
  ];
549
+ exports.StartConversationResponseEventStream$ = StartConversationResponseEventStream$;
500
550
  exports.DeleteSession$ = [9, n0, _DS,
501
- { [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.DeleteSessionRequest$, () => exports.DeleteSessionResponse$
551
+ { [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => DeleteSessionRequest$, () => DeleteSessionResponse$
502
552
  ];
503
553
  exports.GetSession$ = [9, n0, _GS,
504
- { [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.GetSessionRequest$, () => exports.GetSessionResponse$
554
+ { [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => GetSessionRequest$, () => GetSessionResponse$
505
555
  ];
506
556
  exports.PutSession$ = [9, n0, _PS,
507
- { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.PutSessionRequest$, () => exports.PutSessionResponse$
557
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => PutSessionRequest$, () => PutSessionResponse$
508
558
  ];
509
559
  exports.RecognizeText$ = [9, n0, _RT,
510
- { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] }, () => exports.RecognizeTextRequest$, () => exports.RecognizeTextResponse$
560
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] }, () => RecognizeTextRequest$, () => RecognizeTextResponse$
511
561
  ];
512
562
  exports.RecognizeUtterance$ = [9, n0, _RU,
513
- { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] }, () => exports.RecognizeUtteranceRequest$, () => exports.RecognizeUtteranceResponse$
563
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] }, () => RecognizeUtteranceRequest$, () => RecognizeUtteranceResponse$
514
564
  ];
515
565
  exports.StartConversation$ = [9, n0, _SC,
516
- { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation", 200] }, () => exports.StartConversationRequest$, () => exports.StartConversationResponse$
566
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation", 200] }, () => StartConversationRequest$, () => StartConversationResponse$
517
567
  ];
package/package.json CHANGED
@@ -1,22 +1,22 @@
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.1068.0",
4
+ "version": "3.1070.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo lex-runtime-v2",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test": "yarn g:vitest run --passWithNoTests",
16
- "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
16
+ "test:watch": "yarn g:vitest watch --passWithNoTests",
17
17
  "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
18
18
  "test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
19
- "test:watch": "yarn g:vitest watch --passWithNoTests"
19
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
20
20
  },
21
21
  "main": "./dist-cjs/index.js",
22
22
  "types": "./dist-types/index.d.ts",
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@aws-crypto/sha256-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.20",
29
- "@aws-sdk/credential-provider-node": "^3.972.55",
30
- "@aws-sdk/eventstream-handler-node": "^3.972.21",
31
- "@aws-sdk/middleware-eventstream": "^3.972.17",
32
- "@aws-sdk/types": "^3.973.12",
28
+ "@aws-sdk/core": "^3.974.21",
29
+ "@aws-sdk/credential-provider-node": "^3.972.56",
30
+ "@aws-sdk/eventstream-handler-node": "^3.972.22",
31
+ "@aws-sdk/middleware-eventstream": "^3.972.18",
32
+ "@aws-sdk/types": "^3.973.13",
33
33
  "@smithy/core": "^3.24.6",
34
34
  "@smithy/fetch-http-handler": "^5.4.6",
35
35
  "@smithy/node-http-handler": "^4.7.6",