@aws-sdk/client-lex-runtime-v2 3.986.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexRuntimeV2ServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class LexRuntimeV2ServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, LexRuntimeV2ServiceException.prototype);
10
+ }
11
+ }
12
+ exports.LexRuntimeV2ServiceException = LexRuntimeV2ServiceException;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DependencyFailedException = exports.BadGatewayException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const LexRuntimeV2ServiceException_1 = require("./LexRuntimeV2ServiceException");
5
+ class AccessDeniedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class InternalServerException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ }
42
+ }
43
+ exports.InternalServerException = InternalServerException;
44
+ class ResourceNotFoundException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
45
+ name = "ResourceNotFoundException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ResourceNotFoundException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
54
+ }
55
+ }
56
+ exports.ResourceNotFoundException = ResourceNotFoundException;
57
+ class ThrottlingException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
58
+ name = "ThrottlingException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ThrottlingException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
67
+ }
68
+ }
69
+ exports.ThrottlingException = ThrottlingException;
70
+ class ValidationException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
71
+ name = "ValidationException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "ValidationException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, ValidationException.prototype);
80
+ }
81
+ }
82
+ exports.ValidationException = ValidationException;
83
+ class BadGatewayException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
84
+ name = "BadGatewayException";
85
+ $fault = "server";
86
+ constructor(opts) {
87
+ super({
88
+ name: "BadGatewayException",
89
+ $fault: "server",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, BadGatewayException.prototype);
93
+ }
94
+ }
95
+ exports.BadGatewayException = BadGatewayException;
96
+ class DependencyFailedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
97
+ name = "DependencyFailedException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "DependencyFailedException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, DependencyFailedException.prototype);
106
+ }
107
+ }
108
+ exports.DependencyFailedException = DependencyFailedException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2020-08-07",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.lexruntimev2",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  version: "2020-08-07",
34
36
  serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
35
37
  },
@@ -0,0 +1,517 @@
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
+ const _AC = "ActiveContext";
6
+ const _ACL = "ActiveContextsList";
7
+ const _ACPM = "ActiveContextParametersMap";
8
+ const _ACTTL = "ActiveContextTimeToLive";
9
+ const _ADE = "AccessDeniedException";
10
+ const _AIE = "AudioInputEvent";
11
+ const _ARE = "AudioResponseEvent";
12
+ const _B = "Button";
13
+ const _BGE = "BadGatewayException";
14
+ const _BL = "ButtonsList";
15
+ const _BS = "BlobStream";
16
+ const _CE = "ConflictException";
17
+ const _CEo = "ConfigurationEvent";
18
+ const _CS = "ConfidenceScore";
19
+ const _CT = "Content-Type";
20
+ const _DA = "DialogAction";
21
+ const _DE = "DisconnectionEvent";
22
+ const _DFE = "DependencyFailedException";
23
+ const _DS = "DeleteSession";
24
+ const _DSR = "DeleteSessionRequest";
25
+ const _DSRe = "DeleteSessionResponse";
26
+ const _DTMFIE = "DTMFInputEvent";
27
+ const _DTMFR = "DTMFRegex";
28
+ const _ESS = "ElicitSubSlot";
29
+ const _GS = "GetSession";
30
+ const _GSR = "GetSessionRequest";
31
+ const _GSRe = "GetSessionResponse";
32
+ const _HE = "HeartbeatEvent";
33
+ const _I = "Intent";
34
+ const _IRC = "ImageResponseCard";
35
+ const _IRE = "IntentResultEvent";
36
+ const _ISE = "InternalServerException";
37
+ const _In = "Interpretation";
38
+ const _Int = "Interpretations";
39
+ const _M = "Message";
40
+ const _Me = "Messages";
41
+ const _PCE = "PlaybackCompletionEvent";
42
+ const _PIE = "PlaybackInterruptionEvent";
43
+ const _PS = "PutSession";
44
+ const _PSR = "PutSessionRequest";
45
+ const _PSRu = "PutSessionResponse";
46
+ const _RBM = "RecognizedBotMember";
47
+ const _RCT = "ResponseContentType";
48
+ const _RCT_ = "Response-Content-Type";
49
+ const _RH = "RuntimeHints";
50
+ const _RHD = "RuntimeHintDetails";
51
+ const _RHV = "RuntimeHintValue";
52
+ const _RHVL = "RuntimeHintValuesList";
53
+ const _RNFE = "ResourceNotFoundException";
54
+ const _RT = "RecognizeText";
55
+ const _RTR = "RecognizeTextRequest";
56
+ const _RTRe = "RecognizeTextResponse";
57
+ const _RU = "RecognizeUtterance";
58
+ const _RUR = "RecognizeUtteranceRequest";
59
+ const _RURe = "RecognizeUtteranceResponse";
60
+ const _S = "Slot";
61
+ const _SC = "StartConversation";
62
+ const _SCR = "StartConversationRequest";
63
+ const _SCRES = "StartConversationRequestEventStream";
64
+ const _SCRESt = "StartConversationResponseEventStream";
65
+ const _SCRt = "StartConversationResponse";
66
+ const _SHIM = "SlotHintsIntentMap";
67
+ const _SHSM = "SlotHintsSlotMap";
68
+ const _SNES = "SensitiveNonEmptyString";
69
+ const _SR = "SentimentResponse";
70
+ const _SS = "SentimentScore";
71
+ const _SSe = "SessionState";
72
+ const _Sl = "Slots";
73
+ const _T = "Text";
74
+ const _TE = "ThrottlingException";
75
+ const _TEr = "TranscriptEvent";
76
+ const _TIE = "TextInputEvent";
77
+ const _TRE = "TextResponseEvent";
78
+ const _V = "Value";
79
+ const _VE = "ValidationException";
80
+ const _Va = "Values";
81
+ const _aC = "audioChunk";
82
+ const _aCc = "activeContexts";
83
+ const _aS = "audioStream";
84
+ const _b = "buttons";
85
+ const _bAI = "botAliasId";
86
+ const _bI = "botId";
87
+ const _bN = "botName";
88
+ const _c = "client";
89
+ const _cA = "contextAttributes";
90
+ const _cBEI = "causedByEventId";
91
+ const _cM = "conversationMode";
92
+ const _cS = "confirmationState";
93
+ const _cT = "contentType";
94
+ const _cTM = "clientTimestampMillis";
95
+ const _co = "content";
96
+ const _dA = "dialogAction";
97
+ const _dP = "disablePlayback";
98
+ const _e = "error";
99
+ const _eI = "eventId";
100
+ const _eR = "eventReason";
101
+ const _h = "http";
102
+ const _hE = "httpError";
103
+ const _hH = "httpHeader";
104
+ const _i = "interpretations";
105
+ const _iC = "inputCharacter";
106
+ const _iM = "inputMode";
107
+ const _iRC = "imageResponseCard";
108
+ const _iS = "interpretationSource";
109
+ const _iSn = "inputStream";
110
+ const _iT = "inputTranscript";
111
+ const _iU = "imageUrl";
112
+ const _iV = "interpretedValue";
113
+ const _in = "intent";
114
+ const _lI = "localeId";
115
+ const _m = "message";
116
+ const _me = "messages";
117
+ const _mi = "mixed";
118
+ const _n = "name";
119
+ const _nC = "nluConfidence";
120
+ const _ne = "negative";
121
+ const _neu = "neutral";
122
+ const _oRI = "originatingRequestId";
123
+ const _oV = "originalValue";
124
+ const _p = "phrase";
125
+ const _po = "positive";
126
+ const _rA = "requestAttributes";
127
+ const _rBM = "recognizedBotMember";
128
+ const _rCT = "responseContentType";
129
+ const _rCTe = "requestContentType";
130
+ const _rES = "requestEventStream";
131
+ const _rESe = "responseEventStream";
132
+ const _rH = "runtimeHints";
133
+ const _rHV = "runtimeHintValues";
134
+ const _rV = "resolvedValues";
135
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lexruntimev2";
136
+ const _sA = "sessionAttributes";
137
+ const _sES = "slotElicitationStyle";
138
+ const _sH = "slotHints";
139
+ const _sI = "sessionId";
140
+ const _sR = "sentimentResponse";
141
+ const _sS = "sessionState";
142
+ const _sSH = "subSlotHints";
143
+ const _sSTE = "subSlotToElicit";
144
+ const _sSe = "sentimentScore";
145
+ const _sSu = "subSlots";
146
+ const _sTE = "slotToElicit";
147
+ const _sc = "score";
148
+ const _se = "server";
149
+ const _sen = "sentiment";
150
+ const _sh = "shape";
151
+ const _sl = "slots";
152
+ const _st = "streaming";
153
+ const _sta = "state";
154
+ const _su = "subtitle";
155
+ const _t = "text";
156
+ const _tTL = "timeToLive";
157
+ const _tTLIS = "timeToLiveInSeconds";
158
+ const _tTLu = "turnsToLive";
159
+ const _ti = "title";
160
+ const _tr = "transcript";
161
+ const _ty = "type";
162
+ const _v = "value";
163
+ const _va = "values";
164
+ const _wM = "welcomeMessages";
165
+ const _xalcm = "x-amz-lex-conversation-mode";
166
+ const _xali = "x-amz-lex-interpretations";
167
+ const _xalim = "x-amz-lex-input-mode";
168
+ const _xalit = "x-amz-lex-input-transcript";
169
+ const _xalm = "x-amz-lex-messages";
170
+ const _xalra = "x-amz-lex-request-attributes";
171
+ const _xalrbm = "x-amz-lex-recognized-bot-member";
172
+ const _xalsi = "x-amz-lex-session-id";
173
+ const _xalss = "x-amz-lex-session-state";
174
+ 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,
183
+ { [_e]: _c, [_hE]: 403 },
184
+ [_m],
185
+ [0], 1
186
+ ];
187
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
188
+ exports.BadGatewayException$ = [-3, n0, _BGE,
189
+ { [_e]: _se, [_hE]: 502 },
190
+ [_m],
191
+ [0], 1
192
+ ];
193
+ n0_registry.registerError(exports.BadGatewayException$, errors_1.BadGatewayException);
194
+ exports.ConflictException$ = [-3, n0, _CE,
195
+ { [_e]: _c, [_hE]: 409 },
196
+ [_m],
197
+ [0], 1
198
+ ];
199
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
200
+ exports.DependencyFailedException$ = [-3, n0, _DFE,
201
+ { [_e]: _c, [_hE]: 424 },
202
+ [_m],
203
+ [0], 1
204
+ ];
205
+ n0_registry.registerError(exports.DependencyFailedException$, errors_1.DependencyFailedException);
206
+ exports.InternalServerException$ = [-3, n0, _ISE,
207
+ { [_e]: _se, [_hE]: 500 },
208
+ [_m],
209
+ [0], 1
210
+ ];
211
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
212
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
213
+ { [_e]: _c, [_hE]: 404 },
214
+ [_m],
215
+ [0], 1
216
+ ];
217
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
218
+ exports.ThrottlingException$ = [-3, n0, _TE,
219
+ { [_e]: _c, [_hE]: 429 },
220
+ [_m],
221
+ [0], 1
222
+ ];
223
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
224
+ exports.ValidationException$ = [-3, n0, _VE,
225
+ { [_e]: _c, [_hE]: 400 },
226
+ [_m],
227
+ [0], 1
228
+ ];
229
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
230
+ exports.errorTypeRegistries = [
231
+ _s_registry,
232
+ n0_registry,
233
+ ];
234
+ var BlobStream = [0, n0, _BS, { [_st]: 1 }, 42];
235
+ var DTMFRegex = [0, n0, _DTMFR, 8, 0];
236
+ var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
237
+ var Text = [0, n0, _T, 8, 0];
238
+ exports.ActiveContext$ = [3, n0, _AC,
239
+ 0,
240
+ [_n, _tTL, _cA],
241
+ [0, () => exports.ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]], 3
242
+ ];
243
+ exports.ActiveContextTimeToLive$ = [3, n0, _ACTTL,
244
+ 0,
245
+ [_tTLIS, _tTLu],
246
+ [1, 1], 2
247
+ ];
248
+ exports.AudioInputEvent$ = [3, n0, _AIE,
249
+ 0,
250
+ [_cT, _aC, _eI, _cTM],
251
+ [0, 21, 0, 1], 1
252
+ ];
253
+ exports.AudioResponseEvent$ = [3, n0, _ARE,
254
+ 0,
255
+ [_aC, _cT, _eI],
256
+ [21, 0, 0]
257
+ ];
258
+ exports.Button$ = [3, n0, _B,
259
+ 0,
260
+ [_t, _v],
261
+ [0, 0], 2
262
+ ];
263
+ exports.ConfidenceScore$ = [3, n0, _CS,
264
+ 0,
265
+ [_sc],
266
+ [1]
267
+ ];
268
+ exports.ConfigurationEvent$ = [3, n0, _CEo,
269
+ 0,
270
+ [_rCT, _rA, _sS, _wM, _dP, _eI, _cTM],
271
+ [0, 128 | 0, [() => exports.SessionState$, 0], [() => Messages, 0], 2, 0, 1], 1
272
+ ];
273
+ exports.DeleteSessionRequest$ = [3, n0, _DSR,
274
+ 0,
275
+ [_bI, _bAI, _lI, _sI],
276
+ [[0, 1], [0, 1], [0, 1], [0, 1]], 4
277
+ ];
278
+ exports.DeleteSessionResponse$ = [3, n0, _DSRe,
279
+ 0,
280
+ [_bI, _bAI, _lI, _sI],
281
+ [0, 0, 0, 0]
282
+ ];
283
+ exports.DialogAction$ = [3, n0, _DA,
284
+ 0,
285
+ [_ty, _sTE, _sES, _sSTE],
286
+ [0, 0, 0, () => exports.ElicitSubSlot$], 1
287
+ ];
288
+ exports.DisconnectionEvent$ = [3, n0, _DE,
289
+ 0,
290
+ [_eI, _cTM],
291
+ [0, 1]
292
+ ];
293
+ exports.DTMFInputEvent$ = [3, n0, _DTMFIE,
294
+ 0,
295
+ [_iC, _eI, _cTM],
296
+ [[() => DTMFRegex, 0], 0, 1], 1
297
+ ];
298
+ exports.ElicitSubSlot$ = [3, n0, _ESS,
299
+ 0,
300
+ [_n, _sSTE],
301
+ [0, () => exports.ElicitSubSlot$], 1
302
+ ];
303
+ exports.GetSessionRequest$ = [3, n0, _GSR,
304
+ 0,
305
+ [_bI, _bAI, _lI, _sI],
306
+ [[0, 1], [0, 1], [0, 1], [0, 1]], 4
307
+ ];
308
+ exports.GetSessionResponse$ = [3, n0, _GSRe,
309
+ 0,
310
+ [_sI, _me, _i, _sS],
311
+ [0, [() => Messages, 0], () => Interpretations, [() => exports.SessionState$, 0]]
312
+ ];
313
+ exports.HeartbeatEvent$ = [3, n0, _HE,
314
+ 0,
315
+ [_eI],
316
+ [0]
317
+ ];
318
+ exports.ImageResponseCard$ = [3, n0, _IRC,
319
+ 0,
320
+ [_ti, _su, _iU, _b],
321
+ [0, 0, 0, () => ButtonsList], 1
322
+ ];
323
+ exports.Intent$ = [3, n0, _I,
324
+ 0,
325
+ [_n, _sl, _sta, _cS],
326
+ [0, () => Slots, 0, 0], 1
327
+ ];
328
+ exports.IntentResultEvent$ = [3, n0, _IRE,
329
+ 0,
330
+ [_iM, _i, _sS, _rA, _sI, _eI, _rBM],
331
+ [0, () => Interpretations, [() => exports.SessionState$, 0], 128 | 0, 0, 0, () => exports.RecognizedBotMember$]
332
+ ];
333
+ exports.Interpretation$ = [3, n0, _In,
334
+ 0,
335
+ [_nC, _sR, _in, _iS],
336
+ [() => exports.ConfidenceScore$, () => exports.SentimentResponse$, () => exports.Intent$, 0]
337
+ ];
338
+ exports.Message$ = [3, n0, _M,
339
+ 0,
340
+ [_cT, _co, _iRC],
341
+ [0, [() => Text, 0], () => exports.ImageResponseCard$], 1
342
+ ];
343
+ exports.PlaybackCompletionEvent$ = [3, n0, _PCE,
344
+ 0,
345
+ [_eI, _cTM],
346
+ [0, 1]
347
+ ];
348
+ exports.PlaybackInterruptionEvent$ = [3, n0, _PIE,
349
+ 0,
350
+ [_eR, _cBEI, _eI],
351
+ [0, 0, 0]
352
+ ];
353
+ exports.PutSessionRequest$ = [3, n0, _PSR,
354
+ 0,
355
+ [_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
357
+ ];
358
+ exports.PutSessionResponse$ = [3, n0, _PSRu,
359
+ 0,
360
+ [_cT, _me, _sS, _rA, _sI, _aS],
361
+ [[0, { [_hH]: _CT }], [0, { [_hH]: _xalm }], [0, { [_hH]: _xalss }], [0, { [_hH]: _xalra }], [0, { [_hH]: _xalsi }], [() => BlobStream, 16]]
362
+ ];
363
+ exports.RecognizedBotMember$ = [3, n0, _RBM,
364
+ 0,
365
+ [_bI, _bN],
366
+ [0, 0], 1
367
+ ];
368
+ exports.RecognizeTextRequest$ = [3, n0, _RTR,
369
+ 0,
370
+ [_bI, _bAI, _lI, _sI, _t, _sS, _rA],
371
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => exports.SessionState$, 0], 128 | 0], 5
372
+ ];
373
+ exports.RecognizeTextResponse$ = [3, n0, _RTRe,
374
+ 0,
375
+ [_me, _sS, _i, _rA, _sI, _rBM],
376
+ [[() => Messages, 0], [() => exports.SessionState$, 0], () => Interpretations, 128 | 0, 0, () => exports.RecognizedBotMember$]
377
+ ];
378
+ exports.RecognizeUtteranceRequest$ = [3, n0, _RUR,
379
+ 0,
380
+ [_bI, _bAI, _lI, _sI, _rCTe, _sS, _rA, _rCT, _iSn],
381
+ [[0, 1], [0, 1], [0, 1], [0, 1], [0, { [_hH]: _CT }], [() => SensitiveNonEmptyString, { [_hH]: _xalss }], [() => SensitiveNonEmptyString, { [_hH]: _xalra }], [0, { [_hH]: _RCT_ }], [() => BlobStream, 16]], 5
382
+ ];
383
+ exports.RecognizeUtteranceResponse$ = [3, n0, _RURe,
384
+ 0,
385
+ [_iM, _cT, _me, _i, _sS, _rA, _sI, _iT, _aS, _rBM],
386
+ [[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
+ ];
388
+ exports.RuntimeHintDetails$ = [3, n0, _RHD,
389
+ 0,
390
+ [_rHV, _sSH],
391
+ [() => RuntimeHintValuesList, () => SlotHintsSlotMap]
392
+ ];
393
+ exports.RuntimeHints$ = [3, n0, _RH,
394
+ 0,
395
+ [_sH],
396
+ [() => SlotHintsIntentMap]
397
+ ];
398
+ exports.RuntimeHintValue$ = [3, n0, _RHV,
399
+ 0,
400
+ [_p],
401
+ [0], 1
402
+ ];
403
+ exports.SentimentResponse$ = [3, n0, _SR,
404
+ 0,
405
+ [_sen, _sSe],
406
+ [0, () => exports.SentimentScore$]
407
+ ];
408
+ exports.SentimentScore$ = [3, n0, _SS,
409
+ 0,
410
+ [_po, _ne, _neu, _mi],
411
+ [1, 1, 1, 1]
412
+ ];
413
+ exports.SessionState$ = [3, n0, _SSe,
414
+ 0,
415
+ [_dA, _in, _aCc, _sA, _oRI, _rH],
416
+ [() => exports.DialogAction$, () => exports.Intent$, [() => ActiveContextsList, 0], 128 | 0, 0, () => exports.RuntimeHints$]
417
+ ];
418
+ exports.Slot$ = [3, n0, _S,
419
+ 0,
420
+ [_v, _sh, _va, _sSu],
421
+ [() => exports.Value$, 0, () => Values, () => Slots]
422
+ ];
423
+ exports.StartConversationRequest$ = [3, n0, _SCR,
424
+ 0,
425
+ [_bI, _bAI, _lI, _sI, _rES, _cM],
426
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => exports.StartConversationRequestEventStream$, 16], [0, { [_hH]: _xalcm }]], 5
427
+ ];
428
+ exports.StartConversationResponse$ = [3, n0, _SCRt,
429
+ 0,
430
+ [_rESe],
431
+ [[() => exports.StartConversationResponseEventStream$, 16]]
432
+ ];
433
+ exports.TextInputEvent$ = [3, n0, _TIE,
434
+ 0,
435
+ [_t, _eI, _cTM],
436
+ [[() => Text, 0], 0, 1], 1
437
+ ];
438
+ exports.TextResponseEvent$ = [3, n0, _TRE,
439
+ 0,
440
+ [_me, _eI],
441
+ [[() => Messages, 0], 0]
442
+ ];
443
+ exports.TranscriptEvent$ = [3, n0, _TEr,
444
+ 0,
445
+ [_tr, _eI],
446
+ [0, 0]
447
+ ];
448
+ exports.Value$ = [3, n0, _V,
449
+ 0,
450
+ [_iV, _oV, _rV],
451
+ [0, 0, 64 | 0], 1
452
+ ];
453
+ var ActiveContextsList = [1, n0, _ACL,
454
+ 0, [() => exports.ActiveContext$,
455
+ 0]
456
+ ];
457
+ var ButtonsList = [1, n0, _BL,
458
+ 0, () => exports.Button$
459
+ ];
460
+ var Interpretations = [1, n0, _Int,
461
+ 0, () => exports.Interpretation$
462
+ ];
463
+ var Messages = [1, n0, _Me,
464
+ 0, [() => exports.Message$,
465
+ 0]
466
+ ];
467
+ var RuntimeHintValuesList = [1, n0, _RHVL,
468
+ 0, () => exports.RuntimeHintValue$
469
+ ];
470
+ var StringList = 64 | 0;
471
+ var Values = [1, n0, _Va,
472
+ 0, () => exports.Slot$
473
+ ];
474
+ var ActiveContextParametersMap = [2, n0, _ACPM,
475
+ 0, [0,
476
+ 0],
477
+ [() => Text,
478
+ 0]
479
+ ];
480
+ var SlotHintsIntentMap = [2, n0, _SHIM,
481
+ 0, 0, () => SlotHintsSlotMap
482
+ ];
483
+ var SlotHintsSlotMap = [2, n0, _SHSM,
484
+ 0, 0, () => exports.RuntimeHintDetails$
485
+ ];
486
+ var Slots = [2, n0, _Sl,
487
+ 0, 0, () => exports.Slot$
488
+ ];
489
+ var StringMap = 128 | 0;
490
+ exports.StartConversationRequestEventStream$ = [4, n0, _SCRES,
491
+ { [_st]: 1 },
492
+ [_CEo, _AIE, _DTMFIE, _TIE, _PCE, _DE],
493
+ [[() => exports.ConfigurationEvent$, 0], () => exports.AudioInputEvent$, [() => exports.DTMFInputEvent$, 0], [() => exports.TextInputEvent$, 0], () => exports.PlaybackCompletionEvent$, () => exports.DisconnectionEvent$]
494
+ ];
495
+ exports.StartConversationResponseEventStream$ = [4, n0, _SCRESt,
496
+ { [_st]: 1 },
497
+ [_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]]
499
+ ];
500
+ exports.DeleteSession$ = [9, n0, _DS,
501
+ { [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.DeleteSessionRequest$, () => exports.DeleteSessionResponse$
502
+ ];
503
+ exports.GetSession$ = [9, n0, _GS,
504
+ { [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.GetSessionRequest$, () => exports.GetSessionResponse$
505
+ ];
506
+ exports.PutSession$ = [9, n0, _PS,
507
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => exports.PutSessionRequest$, () => exports.PutSessionResponse$
508
+ ];
509
+ exports.RecognizeText$ = [9, n0, _RT,
510
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] }, () => exports.RecognizeTextRequest$, () => exports.RecognizeTextResponse$
511
+ ];
512
+ exports.RecognizeUtterance$ = [9, n0, _RU,
513
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] }, () => exports.RecognizeUtteranceRequest$, () => exports.RecognizeUtteranceResponse$
514
+ ];
515
+ exports.StartConversation$ = [9, n0, _SC,
516
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation", 200] }, () => exports.StartConversationRequest$, () => exports.StartConversationResponse$
517
+ ];
@@ -7,6 +7,7 @@ import { sdkStreamMixin } from "@smithy/util-stream";
7
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
8
  import { defaultLexRuntimeV2HttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
9
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
10
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
11
  export const getRuntimeConfig = (config) => {
11
12
  return {
12
13
  apiVersion: "2020-08-07",
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
27
28
  protocol: config?.protocol ?? AwsRestJsonProtocol,
28
29
  protocolSettings: config?.protocolSettings ?? {
29
30
  defaultNamespace: "com.amazonaws.lexruntimev2",
31
+ errorTypeRegistries,
30
32
  version: "2020-08-07",
31
33
  serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
32
34
  },