@aws-sdk/client-lex-runtime-service 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,155 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnsupportedMediaTypeException = exports.RequestTimeoutException = exports.NotAcceptableException = exports.LoopDetectedException = exports.DependencyFailedException = exports.BadGatewayException = exports.NotFoundException = exports.LimitExceededException = exports.InternalFailureException = exports.ConflictException = exports.BadRequestException = void 0;
4
+ const LexRuntimeServiceServiceException_1 = require("./LexRuntimeServiceServiceException");
5
+ class BadRequestException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
6
+ name = "BadRequestException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BadRequestException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BadRequestException.prototype);
15
+ }
16
+ }
17
+ exports.BadRequestException = BadRequestException;
18
+ class ConflictException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
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 InternalFailureException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
32
+ name = "InternalFailureException";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalFailureException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
41
+ }
42
+ }
43
+ exports.InternalFailureException = InternalFailureException;
44
+ class LimitExceededException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
45
+ name = "LimitExceededException";
46
+ $fault = "client";
47
+ retryAfterSeconds;
48
+ constructor(opts) {
49
+ super({
50
+ name: "LimitExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
55
+ this.retryAfterSeconds = opts.retryAfterSeconds;
56
+ }
57
+ }
58
+ exports.LimitExceededException = LimitExceededException;
59
+ class NotFoundException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
60
+ name = "NotFoundException";
61
+ $fault = "client";
62
+ constructor(opts) {
63
+ super({
64
+ name: "NotFoundException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, NotFoundException.prototype);
69
+ }
70
+ }
71
+ exports.NotFoundException = NotFoundException;
72
+ class BadGatewayException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
73
+ name = "BadGatewayException";
74
+ $fault = "server";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "BadGatewayException",
79
+ $fault: "server",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, BadGatewayException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
86
+ exports.BadGatewayException = BadGatewayException;
87
+ class DependencyFailedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
88
+ name = "DependencyFailedException";
89
+ $fault = "client";
90
+ Message;
91
+ constructor(opts) {
92
+ super({
93
+ name: "DependencyFailedException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ Object.setPrototypeOf(this, DependencyFailedException.prototype);
98
+ this.Message = opts.Message;
99
+ }
100
+ }
101
+ exports.DependencyFailedException = DependencyFailedException;
102
+ class LoopDetectedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
103
+ name = "LoopDetectedException";
104
+ $fault = "server";
105
+ Message;
106
+ constructor(opts) {
107
+ super({
108
+ name: "LoopDetectedException",
109
+ $fault: "server",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, LoopDetectedException.prototype);
113
+ this.Message = opts.Message;
114
+ }
115
+ }
116
+ exports.LoopDetectedException = LoopDetectedException;
117
+ class NotAcceptableException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
118
+ name = "NotAcceptableException";
119
+ $fault = "client";
120
+ constructor(opts) {
121
+ super({
122
+ name: "NotAcceptableException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ Object.setPrototypeOf(this, NotAcceptableException.prototype);
127
+ }
128
+ }
129
+ exports.NotAcceptableException = NotAcceptableException;
130
+ class RequestTimeoutException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
131
+ name = "RequestTimeoutException";
132
+ $fault = "client";
133
+ constructor(opts) {
134
+ super({
135
+ name: "RequestTimeoutException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
140
+ }
141
+ }
142
+ exports.RequestTimeoutException = RequestTimeoutException;
143
+ class UnsupportedMediaTypeException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
144
+ name = "UnsupportedMediaTypeException";
145
+ $fault = "client";
146
+ constructor(opts) {
147
+ super({
148
+ name: "UnsupportedMediaTypeException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
153
+ }
154
+ }
155
+ exports.UnsupportedMediaTypeException = UnsupportedMediaTypeException;
@@ -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: "2016-11-28",
@@ -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.lexruntimeservice",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  version: "2016-11-28",
34
36
  serviceTarget: "AWSDeepSenseRunTimeService",
35
37
  },
@@ -0,0 +1,365 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutSession$ = exports.PostText$ = exports.PostContent$ = exports.GetSession$ = exports.DeleteSession$ = exports.SentimentResponse$ = exports.ResponseCard$ = exports.PutSessionResponse$ = exports.PutSessionRequest$ = exports.PredictedIntent$ = exports.PostTextResponse$ = exports.PostTextRequest$ = exports.PostContentResponse$ = exports.PostContentRequest$ = exports.IntentSummary$ = exports.IntentConfidence$ = exports.GetSessionResponse$ = exports.GetSessionRequest$ = exports.GenericAttachment$ = exports.DialogAction$ = exports.DeleteSessionResponse$ = exports.DeleteSessionRequest$ = exports.Button$ = exports.ActiveContextTimeToLive$ = exports.ActiveContext$ = exports.errorTypeRegistries = exports.UnsupportedMediaTypeException$ = exports.RequestTimeoutException$ = exports.NotFoundException$ = exports.NotAcceptableException$ = exports.LoopDetectedException$ = exports.LimitExceededException$ = exports.InternalFailureException$ = exports.DependencyFailedException$ = exports.ConflictException$ = exports.BadRequestException$ = exports.BadGatewayException$ = exports.LexRuntimeServiceServiceException$ = void 0;
4
+ const _A = "Accept";
5
+ const _AC = "ActiveContext";
6
+ const _ACL = "ActiveContextsList";
7
+ const _ACPM = "ActiveContextParametersMap";
8
+ const _ACTTL = "ActiveContextTimeToLive";
9
+ const _B = "Button";
10
+ const _BGE = "BadGatewayException";
11
+ const _BRE = "BadRequestException";
12
+ const _BS = "BlobStream";
13
+ const _CE = "ConflictException";
14
+ const _CT = "Content-Type";
15
+ const _DA = "DialogAction";
16
+ const _DFE = "DependencyFailedException";
17
+ const _DS = "DeleteSession";
18
+ const _DSR = "DeleteSessionRequest";
19
+ const _DSRe = "DeleteSessionResponse";
20
+ const _GA = "GenericAttachment";
21
+ const _GS = "GetSession";
22
+ const _GSR = "GetSessionRequest";
23
+ const _GSRe = "GetSessionResponse";
24
+ const _IC = "IntentConfidence";
25
+ const _IFE = "InternalFailureException";
26
+ const _IL = "IntentList";
27
+ const _IS = "IntentSummary";
28
+ const _ISL = "IntentSummaryList";
29
+ const _LDE = "LoopDetectedException";
30
+ const _LEE = "LimitExceededException";
31
+ const _M = "Message";
32
+ const _NAE = "NotAcceptableException";
33
+ const _NFE = "NotFoundException";
34
+ const _PC = "PostContent";
35
+ const _PCR = "PostContentRequest";
36
+ const _PCRo = "PostContentResponse";
37
+ const _PI = "PredictedIntent";
38
+ const _PS = "PutSession";
39
+ const _PSR = "PutSessionRequest";
40
+ const _PSRu = "PutSessionResponse";
41
+ const _PT = "PostText";
42
+ const _PTR = "PostTextRequest";
43
+ const _PTRo = "PostTextResponse";
44
+ const _RA = "Retry-After";
45
+ const _RC = "ResponseCard";
46
+ const _RTE = "RequestTimeoutException";
47
+ const _SJACS = "SynthesizedJsonActiveContextsString";
48
+ const _SJAS = "SynthesizedJsonAttributesString";
49
+ const _SJS = "SynthesizedJsonString";
50
+ const _SM = "StringMap";
51
+ const _SR = "SentimentResponse";
52
+ const _SS = "SensitiveString";
53
+ const _SSU = "SensitiveStringUnbounded";
54
+ const _T = "Text";
55
+ const _UMTE = "UnsupportedMediaTypeException";
56
+ const _a = "application/json";
57
+ const _aC = "activeContexts";
58
+ const _aI = "alternativeIntents";
59
+ const _aLU = "attachmentLinkUrl";
60
+ const _aS = "audioStream";
61
+ const _ac = "accept";
62
+ const _b = "buttons";
63
+ const _bA = "botAlias";
64
+ const _bN = "botName";
65
+ const _bV = "botVersion";
66
+ const _c = "client";
67
+ const _cL = "checkpointLabel";
68
+ const _cLF = "checkpointLabelFilter";
69
+ const _cS = "confirmationStatus";
70
+ const _cT = "contentType";
71
+ const _dA = "dialogAction";
72
+ const _dAT = "dialogActionType";
73
+ const _dS = "dialogState";
74
+ const _e = "error";
75
+ const _eIT = "encodedInputTranscript";
76
+ const _eM = "encodedMessage";
77
+ const _fS = "fulfillmentState";
78
+ const _gA = "genericAttachments";
79
+ const _gAL = "genericAttachmentList";
80
+ const _h = "http";
81
+ const _hE = "httpError";
82
+ const _hH = "httpHeader";
83
+ const _hQ = "httpQuery";
84
+ const _iN = "intentName";
85
+ const _iS = "inputStream";
86
+ const _iT = "inputTranscript";
87
+ const _iTn = "inputText";
88
+ const _iU = "imageUrl";
89
+ const _lOB = "listOfButtons";
90
+ const _m = "message";
91
+ const _mF = "messageFormat";
92
+ const _mT = "mediaType";
93
+ const _n = "name";
94
+ const _nIC = "nluIntentConfidence";
95
+ const _p = "parameters";
96
+ const _rA = "requestAttributes";
97
+ const _rAS = "retryAfterSeconds";
98
+ const _rC = "responseCard";
99
+ const _rISV = "recentIntentSummaryView";
100
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lexruntimeservice";
101
+ const _sA = "sessionAttributes";
102
+ const _sI = "sessionId";
103
+ const _sL = "sentimentLabel";
104
+ const _sR = "sentimentResponse";
105
+ const _sS = "sentimentScore";
106
+ const _sT = "subTitle";
107
+ const _sTE = "slotToElicit";
108
+ const _sc = "score";
109
+ const _se = "server";
110
+ const _sen = "sensitive";
111
+ const _sl = "slots";
112
+ const _st = "streaming";
113
+ const _t = "text";
114
+ const _tTL = "timeToLive";
115
+ const _tTLIS = "timeToLiveInSeconds";
116
+ const _tTLu = "turnsToLive";
117
+ const _ti = "title";
118
+ const _ty = "type";
119
+ const _uI = "userId";
120
+ const _v = "value";
121
+ const _ve = "version";
122
+ const _xalac = "x-amz-lex-active-contexts";
123
+ const _xalai = "x-amz-lex-alternative-intents";
124
+ const _xalbv = "x-amz-lex-bot-version";
125
+ const _xalds = "x-amz-lex-dialog-state";
126
+ const _xaleit = "x-amz-lex-encoded-input-transcript";
127
+ const _xalem = "x-amz-lex-encoded-message";
128
+ const _xalin = "x-amz-lex-intent-name";
129
+ const _xalit = "x-amz-lex-input-transcript";
130
+ const _xalm = "x-amz-lex-message";
131
+ const _xalmf = "x-amz-lex-message-format";
132
+ const _xalnic = "x-amz-lex-nlu-intent-confidence";
133
+ const _xalra = "x-amz-lex-request-attributes";
134
+ const _xals = "x-amz-lex-slots";
135
+ const _xals_ = "x-amz-lex-sentiment";
136
+ const _xalsa = "x-amz-lex-session-attributes";
137
+ const _xalsi = "x-amz-lex-session-id";
138
+ const _xalste = "x-amz-lex-slot-to-elicit";
139
+ const n0 = "com.amazonaws.lexruntimeservice";
140
+ const schema_1 = require("@smithy/core/schema");
141
+ const errors_1 = require("../models/errors");
142
+ const LexRuntimeServiceServiceException_1 = require("../models/LexRuntimeServiceServiceException");
143
+ const _s_registry = schema_1.TypeRegistry.for(_s);
144
+ exports.LexRuntimeServiceServiceException$ = [-3, _s, "LexRuntimeServiceServiceException", 0, [], []];
145
+ _s_registry.registerError(exports.LexRuntimeServiceServiceException$, LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException);
146
+ const n0_registry = schema_1.TypeRegistry.for(n0);
147
+ exports.BadGatewayException$ = [-3, n0, _BGE,
148
+ { [_e]: _se, [_hE]: 502 },
149
+ [_M],
150
+ [0]
151
+ ];
152
+ n0_registry.registerError(exports.BadGatewayException$, errors_1.BadGatewayException);
153
+ exports.BadRequestException$ = [-3, n0, _BRE,
154
+ { [_e]: _c, [_hE]: 400 },
155
+ [_m],
156
+ [0]
157
+ ];
158
+ n0_registry.registerError(exports.BadRequestException$, errors_1.BadRequestException);
159
+ exports.ConflictException$ = [-3, n0, _CE,
160
+ { [_e]: _c, [_hE]: 409 },
161
+ [_m],
162
+ [0]
163
+ ];
164
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
165
+ exports.DependencyFailedException$ = [-3, n0, _DFE,
166
+ { [_e]: _c, [_hE]: 424 },
167
+ [_M],
168
+ [0]
169
+ ];
170
+ n0_registry.registerError(exports.DependencyFailedException$, errors_1.DependencyFailedException);
171
+ exports.InternalFailureException$ = [-3, n0, _IFE,
172
+ { [_e]: _se, [_hE]: 500 },
173
+ [_m],
174
+ [0]
175
+ ];
176
+ n0_registry.registerError(exports.InternalFailureException$, errors_1.InternalFailureException);
177
+ exports.LimitExceededException$ = [-3, n0, _LEE,
178
+ { [_e]: _c, [_hE]: 429 },
179
+ [_rAS, _m],
180
+ [[0, { [_hH]: _RA }], 0]
181
+ ];
182
+ n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
183
+ exports.LoopDetectedException$ = [-3, n0, _LDE,
184
+ { [_e]: _se, [_hE]: 508 },
185
+ [_M],
186
+ [0]
187
+ ];
188
+ n0_registry.registerError(exports.LoopDetectedException$, errors_1.LoopDetectedException);
189
+ exports.NotAcceptableException$ = [-3, n0, _NAE,
190
+ { [_e]: _c, [_hE]: 406 },
191
+ [_m],
192
+ [0]
193
+ ];
194
+ n0_registry.registerError(exports.NotAcceptableException$, errors_1.NotAcceptableException);
195
+ exports.NotFoundException$ = [-3, n0, _NFE,
196
+ { [_e]: _c, [_hE]: 404 },
197
+ [_m],
198
+ [0]
199
+ ];
200
+ n0_registry.registerError(exports.NotFoundException$, errors_1.NotFoundException);
201
+ exports.RequestTimeoutException$ = [-3, n0, _RTE,
202
+ { [_e]: _c, [_hE]: 408 },
203
+ [_m],
204
+ [0]
205
+ ];
206
+ n0_registry.registerError(exports.RequestTimeoutException$, errors_1.RequestTimeoutException);
207
+ exports.UnsupportedMediaTypeException$ = [-3, n0, _UMTE,
208
+ { [_e]: _c, [_hE]: 415 },
209
+ [_m],
210
+ [0]
211
+ ];
212
+ n0_registry.registerError(exports.UnsupportedMediaTypeException$, errors_1.UnsupportedMediaTypeException);
213
+ exports.errorTypeRegistries = [
214
+ _s_registry,
215
+ n0_registry,
216
+ ];
217
+ var BlobStream = [0, n0, _BS, { [_st]: 1 }, 42];
218
+ var SensitiveString = [0, n0, _SS, 8, 0];
219
+ var SensitiveStringUnbounded = [0, n0, _SSU, 8, 0];
220
+ var SynthesizedJsonActiveContextsString = [0, n0, _SJACS, { [_mT]: _a, [_sen]: 1 }, 0];
221
+ var SynthesizedJsonAttributesString = [0, n0, _SJAS, { [_mT]: _a, [_sen]: 1 }, 0];
222
+ var SynthesizedJsonString = [0, n0, _SJS, { [_mT]: _a }, 0];
223
+ var Text = [0, n0, _T, 8, 0];
224
+ exports.ActiveContext$ = [3, n0, _AC,
225
+ 0,
226
+ [_n, _tTL, _p],
227
+ [0, () => exports.ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]], 3
228
+ ];
229
+ exports.ActiveContextTimeToLive$ = [3, n0, _ACTTL,
230
+ 0,
231
+ [_tTLIS, _tTLu],
232
+ [1, 1]
233
+ ];
234
+ exports.Button$ = [3, n0, _B,
235
+ 0,
236
+ [_t, _v],
237
+ [0, 0], 2
238
+ ];
239
+ exports.DeleteSessionRequest$ = [3, n0, _DSR,
240
+ 0,
241
+ [_bN, _bA, _uI],
242
+ [[0, 1], [0, 1], [0, 1]], 3
243
+ ];
244
+ exports.DeleteSessionResponse$ = [3, n0, _DSRe,
245
+ 0,
246
+ [_bN, _bA, _uI, _sI],
247
+ [0, 0, 0, 0]
248
+ ];
249
+ exports.DialogAction$ = [3, n0, _DA,
250
+ 0,
251
+ [_ty, _iN, _sl, _sTE, _fS, _m, _mF],
252
+ [0, 0, [() => StringMap, 0], 0, 0, [() => Text, 0], 0], 1
253
+ ];
254
+ exports.GenericAttachment$ = [3, n0, _GA,
255
+ 0,
256
+ [_ti, _sT, _aLU, _iU, _b],
257
+ [0, 0, 0, 0, () => listOfButtons]
258
+ ];
259
+ exports.GetSessionRequest$ = [3, n0, _GSR,
260
+ 0,
261
+ [_bN, _bA, _uI, _cLF],
262
+ [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _cLF }]], 3
263
+ ];
264
+ exports.GetSessionResponse$ = [3, n0, _GSRe,
265
+ 0,
266
+ [_rISV, _sA, _sI, _dA, _aC],
267
+ [[() => IntentSummaryList, 0], [() => StringMap, 0], 0, [() => exports.DialogAction$, 0], [() => ActiveContextsList, 0]]
268
+ ];
269
+ exports.IntentConfidence$ = [3, n0, _IC,
270
+ 0,
271
+ [_sc],
272
+ [1]
273
+ ];
274
+ exports.IntentSummary$ = [3, n0, _IS,
275
+ 0,
276
+ [_dAT, _iN, _cL, _sl, _cS, _fS, _sTE],
277
+ [0, 0, 0, [() => StringMap, 0], 0, 0, 0], 1
278
+ ];
279
+ exports.PostContentRequest$ = [3, n0, _PCR,
280
+ 0,
281
+ [_bN, _bA, _uI, _cT, _iS, _sA, _rA, _ac, _aC],
282
+ [[0, 1], [0, 1], [0, 1], [0, { [_hH]: _CT }], [() => BlobStream, 16], [() => SynthesizedJsonAttributesString, { [_hH]: _xalsa }], [() => SynthesizedJsonAttributesString, { [_hH]: _xalra }], [0, { [_hH]: _A }], [() => SynthesizedJsonActiveContextsString, { [_hH]: _xalac }]], 5
283
+ ];
284
+ exports.PostContentResponse$ = [3, n0, _PCRo,
285
+ 0,
286
+ [_cT, _iN, _nIC, _aI, _sl, _sA, _sR, _m, _eM, _mF, _dS, _sTE, _iT, _eIT, _aS, _bV, _sI, _aC],
287
+ [[0, { [_hH]: _CT }], [0, { [_hH]: _xalin }], [() => SynthesizedJsonString, { [_hH]: _xalnic }], [() => SynthesizedJsonString, { [_hH]: _xalai }], [() => SynthesizedJsonString, { [_hH]: _xals }], [() => SynthesizedJsonString, { [_hH]: _xalsa }], [0, { [_hH]: _xals_ }], [() => Text, { [_hH]: _xalm }], [() => SensitiveString, { [_hH]: _xalem }], [0, { [_hH]: _xalmf }], [0, { [_hH]: _xalds }], [0, { [_hH]: _xalste }], [0, { [_hH]: _xalit }], [() => SensitiveStringUnbounded, { [_hH]: _xaleit }], [() => BlobStream, 16], [0, { [_hH]: _xalbv }], [0, { [_hH]: _xalsi }], [() => SynthesizedJsonActiveContextsString, { [_hH]: _xalac }]]
288
+ ];
289
+ exports.PostTextRequest$ = [3, n0, _PTR,
290
+ 0,
291
+ [_bN, _bA, _uI, _iTn, _sA, _rA, _aC],
292
+ [[0, 1], [0, 1], [0, 1], [() => Text, 0], [() => StringMap, 0], [() => StringMap, 0], [() => ActiveContextsList, 0]], 4
293
+ ];
294
+ exports.PostTextResponse$ = [3, n0, _PTRo,
295
+ 0,
296
+ [_iN, _nIC, _aI, _sl, _sA, _m, _sR, _mF, _dS, _sTE, _rC, _sI, _bV, _aC],
297
+ [0, () => exports.IntentConfidence$, [() => IntentList, 0], [() => StringMap, 0], [() => StringMap, 0], [() => Text, 0], () => exports.SentimentResponse$, 0, 0, 0, () => exports.ResponseCard$, 0, 0, [() => ActiveContextsList, 0]]
298
+ ];
299
+ exports.PredictedIntent$ = [3, n0, _PI,
300
+ 0,
301
+ [_iN, _nIC, _sl],
302
+ [0, () => exports.IntentConfidence$, [() => StringMap, 0]]
303
+ ];
304
+ exports.PutSessionRequest$ = [3, n0, _PSR,
305
+ 0,
306
+ [_bN, _bA, _uI, _sA, _dA, _rISV, _ac, _aC],
307
+ [[0, 1], [0, 1], [0, 1], [() => StringMap, 0], [() => exports.DialogAction$, 0], [() => IntentSummaryList, 0], [0, { [_hH]: _A }], [() => ActiveContextsList, 0]], 3
308
+ ];
309
+ exports.PutSessionResponse$ = [3, n0, _PSRu,
310
+ 0,
311
+ [_cT, _iN, _sl, _sA, _m, _eM, _mF, _dS, _sTE, _aS, _sI, _aC],
312
+ [[0, { [_hH]: _CT }], [0, { [_hH]: _xalin }], [() => SynthesizedJsonString, { [_hH]: _xals }], [() => SynthesizedJsonString, { [_hH]: _xalsa }], [() => Text, { [_hH]: _xalm }], [() => SensitiveString, { [_hH]: _xalem }], [0, { [_hH]: _xalmf }], [0, { [_hH]: _xalds }], [0, { [_hH]: _xalste }], [() => BlobStream, 16], [0, { [_hH]: _xalsi }], [() => SynthesizedJsonActiveContextsString, { [_hH]: _xalac }]]
313
+ ];
314
+ exports.ResponseCard$ = [3, n0, _RC,
315
+ 0,
316
+ [_ve, _cT, _gA],
317
+ [0, 0, () => genericAttachmentList]
318
+ ];
319
+ exports.SentimentResponse$ = [3, n0, _SR,
320
+ 0,
321
+ [_sL, _sS],
322
+ [0, 0]
323
+ ];
324
+ var ActiveContextsList = [1, n0, _ACL,
325
+ 8, [() => exports.ActiveContext$,
326
+ 0]
327
+ ];
328
+ var genericAttachmentList = [1, n0, _gAL,
329
+ 0, () => exports.GenericAttachment$
330
+ ];
331
+ var IntentList = [1, n0, _IL,
332
+ 0, [() => exports.PredictedIntent$,
333
+ 0]
334
+ ];
335
+ var IntentSummaryList = [1, n0, _ISL,
336
+ 0, [() => exports.IntentSummary$,
337
+ 0]
338
+ ];
339
+ var listOfButtons = [1, n0, _lOB,
340
+ 0, () => exports.Button$
341
+ ];
342
+ var ActiveContextParametersMap = [2, n0, _ACPM,
343
+ 0, [0,
344
+ 0],
345
+ [() => Text,
346
+ 0]
347
+ ];
348
+ var StringMap = [2, n0, _SM,
349
+ 8, 0, 0
350
+ ];
351
+ exports.DeleteSession$ = [9, n0, _DS,
352
+ { [_h]: ["DELETE", "/bot/{botName}/alias/{botAlias}/user/{userId}/session", 200] }, () => exports.DeleteSessionRequest$, () => exports.DeleteSessionResponse$
353
+ ];
354
+ exports.GetSession$ = [9, n0, _GS,
355
+ { [_h]: ["GET", "/bot/{botName}/alias/{botAlias}/user/{userId}/session", 200] }, () => exports.GetSessionRequest$, () => exports.GetSessionResponse$
356
+ ];
357
+ exports.PostContent$ = [9, n0, _PC,
358
+ { [_h]: ["POST", "/bot/{botName}/alias/{botAlias}/user/{userId}/content", 200] }, () => exports.PostContentRequest$, () => exports.PostContentResponse$
359
+ ];
360
+ exports.PostText$ = [9, n0, _PT,
361
+ { [_h]: ["POST", "/bot/{botName}/alias/{botAlias}/user/{userId}/text", 200] }, () => exports.PostTextRequest$, () => exports.PostTextResponse$
362
+ ];
363
+ exports.PutSession$ = [9, n0, _PS,
364
+ { [_h]: ["POST", "/bot/{botName}/alias/{botAlias}/user/{userId}/session", 200] }, () => exports.PutSessionRequest$, () => exports.PutSessionResponse$
365
+ ];
@@ -7,6 +7,7 @@ import { sdkStreamMixin } from "@smithy/util-stream";
7
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
8
  import { defaultLexRuntimeServiceHttpAuthSchemeProvider } 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: "2016-11-28",
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
27
28
  protocol: config?.protocol ?? AwsRestJsonProtocol,
28
29
  protocolSettings: config?.protocolSettings ?? {
29
30
  defaultNamespace: "com.amazonaws.lexruntimeservice",
31
+ errorTypeRegistries,
30
32
  version: "2016-11-28",
31
33
  serviceTarget: "AWSDeepSenseRunTimeService",
32
34
  },