@aws-sdk/client-lex-runtime-v2 3.952.0 → 3.954.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 +216 -156
- package/dist-cjs/runtimeConfig.shared.js +6 -1
- package/dist-es/commands/DeleteSessionCommand.js +2 -2
- package/dist-es/commands/GetSessionCommand.js +2 -2
- package/dist-es/commands/PutSessionCommand.js +2 -2
- package/dist-es/commands/RecognizeTextCommand.js +2 -2
- package/dist-es/commands/RecognizeUtteranceCommand.js +2 -2
- package/dist-es/commands/StartConversationCommand.js +2 -2
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.shared.js +6 -1
- package/dist-es/schemas/schemas_0.js +133 -133
- package/dist-types/LexRuntimeV2Client.d.ts +1 -10
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -2
- package/dist-types/runtimeConfig.d.ts +6 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -2
- package/dist-types/runtimeConfig.shared.d.ts +6 -1
- package/dist-types/schemas/schemas_0.d.ts +61 -77
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +0 -4
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +60 -79
- package/package.json +40 -40
|
@@ -27,7 +27,12 @@ const getRuntimeConfig = (config) => {
|
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
30
|
-
protocol: config?.protocol ??
|
|
30
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
31
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
32
|
+
defaultNamespace: "com.amazonaws.lexruntimev2",
|
|
33
|
+
version: "2020-08-07",
|
|
34
|
+
serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
35
|
+
},
|
|
31
36
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
32
37
|
serviceId: config?.serviceId ?? "Lex Runtime V2",
|
|
33
38
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { DeleteSession } from "../schemas/schemas_0";
|
|
4
|
+
import { DeleteSession$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class DeleteSessionCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class DeleteSessionCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {})
|
|
13
13
|
.n("LexRuntimeV2Client", "DeleteSessionCommand")
|
|
14
|
-
.sc(DeleteSession)
|
|
14
|
+
.sc(DeleteSession$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetSession } from "../schemas/schemas_0";
|
|
4
|
+
import { GetSession$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetSessionCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetSessionCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {})
|
|
13
13
|
.n("LexRuntimeV2Client", "GetSessionCommand")
|
|
14
|
-
.sc(GetSession)
|
|
14
|
+
.sc(GetSession$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { PutSession } from "../schemas/schemas_0";
|
|
4
|
+
import { PutSession$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class PutSessionCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class PutSessionCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {})
|
|
13
13
|
.n("LexRuntimeV2Client", "PutSessionCommand")
|
|
14
|
-
.sc(PutSession)
|
|
14
|
+
.sc(PutSession$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { RecognizeText } from "../schemas/schemas_0";
|
|
4
|
+
import { RecognizeText$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class RecognizeTextCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class RecognizeTextCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {})
|
|
13
13
|
.n("LexRuntimeV2Client", "RecognizeTextCommand")
|
|
14
|
-
.sc(RecognizeText)
|
|
14
|
+
.sc(RecognizeText$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { RecognizeUtterance } from "../schemas/schemas_0";
|
|
4
|
+
import { RecognizeUtterance$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class RecognizeUtteranceCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class RecognizeUtteranceCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {})
|
|
13
13
|
.n("LexRuntimeV2Client", "RecognizeUtteranceCommand")
|
|
14
|
-
.sc(RecognizeUtterance)
|
|
14
|
+
.sc(RecognizeUtterance$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { StartConversation } from "../schemas/schemas_0";
|
|
5
|
+
import { StartConversation$ } from "../schemas/schemas_0";
|
|
6
6
|
export { $Command };
|
|
7
7
|
export class StartConversationCommand extends $Command
|
|
8
8
|
.classBuilder()
|
|
@@ -17,6 +17,6 @@ export class StartConversationCommand extends $Command
|
|
|
17
17
|
},
|
|
18
18
|
})
|
|
19
19
|
.n("LexRuntimeV2Client", "StartConversationCommand")
|
|
20
|
-
.sc(StartConversation)
|
|
20
|
+
.sc(StartConversation$)
|
|
21
21
|
.build() {
|
|
22
22
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./LexRuntimeV2Client";
|
|
2
2
|
export * from "./LexRuntimeV2";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
4
5
|
export * from "./models/enums";
|
|
5
6
|
export * from "./models/errors";
|
|
6
7
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|
|
@@ -24,7 +24,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
24
|
},
|
|
25
25
|
],
|
|
26
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
-
protocol: config?.protocol ??
|
|
27
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
28
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
29
|
+
defaultNamespace: "com.amazonaws.lexruntimev2",
|
|
30
|
+
version: "2020-08-07",
|
|
31
|
+
serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
32
|
+
},
|
|
28
33
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
29
34
|
serviceId: config?.serviceId ?? "Lex Runtime V2",
|
|
30
35
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -169,40 +169,40 @@ const _xalsi = "x-amz-lex-session-id";
|
|
|
169
169
|
const _xalss = "x-amz-lex-session-state";
|
|
170
170
|
const n0 = "com.amazonaws.lexruntimev2";
|
|
171
171
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
172
|
-
import { AccessDeniedException
|
|
173
|
-
import { LexRuntimeV2ServiceException
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
179
|
-
TypeRegistry.for(n0).registerError(AccessDeniedException
|
|
180
|
-
export var ActiveContext = [
|
|
172
|
+
import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
173
|
+
import { LexRuntimeV2ServiceException } from "../models/LexRuntimeV2ServiceException";
|
|
174
|
+
var BlobStream = [0, n0, _BS, { [_s]: 1 }, 42];
|
|
175
|
+
var DTMFRegex = [0, n0, _DTMFR, 8, 0];
|
|
176
|
+
var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
|
|
177
|
+
var Text = [0, n0, _T, 8, 0];
|
|
178
|
+
export var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
179
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
180
|
+
export var ActiveContext$ = [
|
|
181
181
|
3,
|
|
182
182
|
n0,
|
|
183
183
|
_AC,
|
|
184
184
|
0,
|
|
185
185
|
[_n, _tTL, _cA],
|
|
186
|
-
[0, () => ActiveContextTimeToLive
|
|
186
|
+
[0, () => ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]],
|
|
187
187
|
];
|
|
188
|
-
export var ActiveContextTimeToLive = [3, n0, _ACTTL, 0, [_tTLIS, _tTLu], [1, 1]];
|
|
189
|
-
export var AudioInputEvent = [3, n0, _AIE, 0, [_aC, _cT, _eI, _cTM], [21, 0, 0, 1]];
|
|
190
|
-
export var AudioResponseEvent = [3, n0, _ARE, 0, [_aC, _cT, _eI], [21, 0, 0]];
|
|
191
|
-
export var BadGatewayException = [-3, n0, _BGE, { [_e]: _se, [_hE]: 502 }, [_m], [0]];
|
|
192
|
-
TypeRegistry.for(n0).registerError(BadGatewayException
|
|
193
|
-
export var Button = [3, n0, _B, 0, [_t, _v], [0, 0]];
|
|
194
|
-
export var ConfidenceScore = [3, n0, _CS, 0, [_sc], [1]];
|
|
195
|
-
export var ConfigurationEvent = [
|
|
188
|
+
export var ActiveContextTimeToLive$ = [3, n0, _ACTTL, 0, [_tTLIS, _tTLu], [1, 1]];
|
|
189
|
+
export var AudioInputEvent$ = [3, n0, _AIE, 0, [_aC, _cT, _eI, _cTM], [21, 0, 0, 1]];
|
|
190
|
+
export var AudioResponseEvent$ = [3, n0, _ARE, 0, [_aC, _cT, _eI], [21, 0, 0]];
|
|
191
|
+
export var BadGatewayException$ = [-3, n0, _BGE, { [_e]: _se, [_hE]: 502 }, [_m], [0]];
|
|
192
|
+
TypeRegistry.for(n0).registerError(BadGatewayException$, BadGatewayException);
|
|
193
|
+
export var Button$ = [3, n0, _B, 0, [_t, _v], [0, 0]];
|
|
194
|
+
export var ConfidenceScore$ = [3, n0, _CS, 0, [_sc], [1]];
|
|
195
|
+
export var ConfigurationEvent$ = [
|
|
196
196
|
3,
|
|
197
197
|
n0,
|
|
198
198
|
_CE,
|
|
199
199
|
0,
|
|
200
200
|
[_rA, _rCT, _sS, _wM, _dP, _eI, _cTM],
|
|
201
|
-
[128 | 0, 0, [() => SessionState
|
|
201
|
+
[128 | 0, 0, [() => SessionState$, 0], [() => Messages, 0], 2, 0, 1],
|
|
202
202
|
];
|
|
203
|
-
export var ConflictException = [-3, n0, _CEo, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
|
|
204
|
-
TypeRegistry.for(n0).registerError(ConflictException
|
|
205
|
-
export var DeleteSessionRequest = [
|
|
203
|
+
export var ConflictException$ = [-3, n0, _CEo, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
|
|
204
|
+
TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
205
|
+
export var DeleteSessionRequest$ = [
|
|
206
206
|
3,
|
|
207
207
|
n0,
|
|
208
208
|
_DSR,
|
|
@@ -215,21 +215,21 @@ export var DeleteSessionRequest = [
|
|
|
215
215
|
[0, 1],
|
|
216
216
|
],
|
|
217
217
|
];
|
|
218
|
-
export var DeleteSessionResponse = [3, n0, _DSRe, 0, [_bI, _bAI, _lI, _sI], [0, 0, 0, 0]];
|
|
219
|
-
export var DependencyFailedException = [-3, n0, _DFE, { [_e]: _c, [_hE]: 424 }, [_m], [0]];
|
|
220
|
-
TypeRegistry.for(n0).registerError(DependencyFailedException
|
|
221
|
-
export var DialogAction = [
|
|
218
|
+
export var DeleteSessionResponse$ = [3, n0, _DSRe, 0, [_bI, _bAI, _lI, _sI], [0, 0, 0, 0]];
|
|
219
|
+
export var DependencyFailedException$ = [-3, n0, _DFE, { [_e]: _c, [_hE]: 424 }, [_m], [0]];
|
|
220
|
+
TypeRegistry.for(n0).registerError(DependencyFailedException$, DependencyFailedException);
|
|
221
|
+
export var DialogAction$ = [
|
|
222
222
|
3,
|
|
223
223
|
n0,
|
|
224
224
|
_DA,
|
|
225
225
|
0,
|
|
226
226
|
[_ty, _sTE, _sES, _sSTE],
|
|
227
|
-
[0, 0, 0, () => ElicitSubSlot],
|
|
227
|
+
[0, 0, 0, () => ElicitSubSlot$],
|
|
228
228
|
];
|
|
229
|
-
export var DisconnectionEvent = [3, n0, _DE, 0, [_eI, _cTM], [0, 1]];
|
|
230
|
-
export var DTMFInputEvent = [3, n0, _DTMFIE, 0, [_iC, _eI, _cTM], [[() => DTMFRegex, 0], 0, 1]];
|
|
231
|
-
export var ElicitSubSlot = [3, n0, _ESS, 0, [_n, _sSTE], [0, () => ElicitSubSlot]];
|
|
232
|
-
export var GetSessionRequest = [
|
|
229
|
+
export var DisconnectionEvent$ = [3, n0, _DE, 0, [_eI, _cTM], [0, 1]];
|
|
230
|
+
export var DTMFInputEvent$ = [3, n0, _DTMFIE, 0, [_iC, _eI, _cTM], [[() => DTMFRegex, 0], 0, 1]];
|
|
231
|
+
export var ElicitSubSlot$ = [3, n0, _ESS, 0, [_n, _sSTE], [0, () => ElicitSubSlot$]];
|
|
232
|
+
export var GetSessionRequest$ = [
|
|
233
233
|
3,
|
|
234
234
|
n0,
|
|
235
235
|
_GSR,
|
|
@@ -242,16 +242,16 @@ export var GetSessionRequest = [
|
|
|
242
242
|
[0, 1],
|
|
243
243
|
],
|
|
244
244
|
];
|
|
245
|
-
export var GetSessionResponse = [
|
|
245
|
+
export var GetSessionResponse$ = [
|
|
246
246
|
3,
|
|
247
247
|
n0,
|
|
248
248
|
_GSRe,
|
|
249
249
|
0,
|
|
250
250
|
[_sI, _me, _i, _sS],
|
|
251
|
-
[0, [() => Messages, 0], () => Interpretations, [() => SessionState
|
|
251
|
+
[0, [() => Messages, 0], () => Interpretations, [() => SessionState$, 0]],
|
|
252
252
|
];
|
|
253
|
-
export var HeartbeatEvent = [3, n0, _HE, 0, [_eI], [0]];
|
|
254
|
-
export var ImageResponseCard = [
|
|
253
|
+
export var HeartbeatEvent$ = [3, n0, _HE, 0, [_eI], [0]];
|
|
254
|
+
export var ImageResponseCard$ = [
|
|
255
255
|
3,
|
|
256
256
|
n0,
|
|
257
257
|
_IRC,
|
|
@@ -259,44 +259,44 @@ export var ImageResponseCard = [
|
|
|
259
259
|
[_ti, _su, _iU, _b],
|
|
260
260
|
[0, 0, 0, () => ButtonsList],
|
|
261
261
|
];
|
|
262
|
-
export var Intent = [3, n0, _I, 0, [_n, _sl, _st, _cS], [0, () => Slots, 0, 0]];
|
|
263
|
-
export var IntentResultEvent = [
|
|
262
|
+
export var Intent$ = [3, n0, _I, 0, [_n, _sl, _st, _cS], [0, () => Slots, 0, 0]];
|
|
263
|
+
export var IntentResultEvent$ = [
|
|
264
264
|
3,
|
|
265
265
|
n0,
|
|
266
266
|
_IRE,
|
|
267
267
|
0,
|
|
268
268
|
[_iM, _i, _sS, _rA, _sI, _eI, _rBM],
|
|
269
|
-
[0, () => Interpretations, [() => SessionState
|
|
269
|
+
[0, () => Interpretations, [() => SessionState$, 0], 128 | 0, 0, 0, () => RecognizedBotMember$],
|
|
270
270
|
];
|
|
271
|
-
export var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m], [0]];
|
|
272
|
-
TypeRegistry.for(n0).registerError(InternalServerException
|
|
273
|
-
export var Interpretation = [
|
|
271
|
+
export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m], [0]];
|
|
272
|
+
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
273
|
+
export var Interpretation$ = [
|
|
274
274
|
3,
|
|
275
275
|
n0,
|
|
276
276
|
_In,
|
|
277
277
|
0,
|
|
278
278
|
[_nC, _sR, _in, _iS],
|
|
279
|
-
[() => ConfidenceScore
|
|
279
|
+
[() => ConfidenceScore$, () => SentimentResponse$, () => Intent$, 0],
|
|
280
280
|
];
|
|
281
|
-
export var Message = [
|
|
281
|
+
export var Message$ = [
|
|
282
282
|
3,
|
|
283
283
|
n0,
|
|
284
284
|
_M,
|
|
285
285
|
0,
|
|
286
286
|
[_co, _cT, _iRC],
|
|
287
|
-
[[() => Text, 0], 0, () => ImageResponseCard],
|
|
287
|
+
[[() => Text, 0], 0, () => ImageResponseCard$],
|
|
288
288
|
];
|
|
289
|
-
export var PlaybackCompletionEvent = [3, n0, _PCE, 0, [_eI, _cTM], [0, 1]];
|
|
290
|
-
export var PlaybackInterruptionEvent = [3, n0, _PIE, 0, [_eR, _cBEI, _eI], [0, 0, 0]];
|
|
291
|
-
export var PutSessionRequest = [
|
|
289
|
+
export var PlaybackCompletionEvent$ = [3, n0, _PCE, 0, [_eI, _cTM], [0, 1]];
|
|
290
|
+
export var PlaybackInterruptionEvent$ = [3, n0, _PIE, 0, [_eR, _cBEI, _eI], [0, 0, 0]];
|
|
291
|
+
export var PutSessionRequest$ = [
|
|
292
292
|
3,
|
|
293
293
|
n0,
|
|
294
294
|
_PSR,
|
|
295
295
|
0,
|
|
296
296
|
[_bI, _bAI, _lI, _sI, _me, _sS, _rA, _rCT],
|
|
297
|
-
[[0, 1], [0, 1], [0, 1], [0, 1], [() => Messages, 0], [() => SessionState
|
|
297
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [() => Messages, 0], [() => SessionState$, 0], 128 | 0, [0, { [_hH]: _RCT }]],
|
|
298
298
|
];
|
|
299
|
-
export var PutSessionResponse = [
|
|
299
|
+
export var PutSessionResponse$ = [
|
|
300
300
|
3,
|
|
301
301
|
n0,
|
|
302
302
|
_PSRu,
|
|
@@ -311,24 +311,24 @@ export var PutSessionResponse = [
|
|
|
311
311
|
[() => BlobStream, 16],
|
|
312
312
|
],
|
|
313
313
|
];
|
|
314
|
-
export var RecognizedBotMember = [3, n0, _RBM, 0, [_bI, _bN], [0, 0]];
|
|
315
|
-
export var RecognizeTextRequest = [
|
|
314
|
+
export var RecognizedBotMember$ = [3, n0, _RBM, 0, [_bI, _bN], [0, 0]];
|
|
315
|
+
export var RecognizeTextRequest$ = [
|
|
316
316
|
3,
|
|
317
317
|
n0,
|
|
318
318
|
_RTR,
|
|
319
319
|
0,
|
|
320
320
|
[_bI, _bAI, _lI, _sI, _t, _sS, _rA],
|
|
321
|
-
[[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => SessionState
|
|
321
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => SessionState$, 0], 128 | 0],
|
|
322
322
|
];
|
|
323
|
-
export var RecognizeTextResponse = [
|
|
323
|
+
export var RecognizeTextResponse$ = [
|
|
324
324
|
3,
|
|
325
325
|
n0,
|
|
326
326
|
_RTRe,
|
|
327
327
|
0,
|
|
328
328
|
[_me, _sS, _i, _rA, _sI, _rBM],
|
|
329
|
-
[[() => Messages, 0], [() => SessionState
|
|
329
|
+
[[() => Messages, 0], [() => SessionState$, 0], () => Interpretations, 128 | 0, 0, () => RecognizedBotMember$],
|
|
330
330
|
];
|
|
331
|
-
export var RecognizeUtteranceRequest = [
|
|
331
|
+
export var RecognizeUtteranceRequest$ = [
|
|
332
332
|
3,
|
|
333
333
|
n0,
|
|
334
334
|
_RUR,
|
|
@@ -346,7 +346,7 @@ export var RecognizeUtteranceRequest = [
|
|
|
346
346
|
[() => BlobStream, 16],
|
|
347
347
|
],
|
|
348
348
|
];
|
|
349
|
-
export var RecognizeUtteranceResponse = [
|
|
349
|
+
export var RecognizeUtteranceResponse$ = [
|
|
350
350
|
3,
|
|
351
351
|
n0,
|
|
352
352
|
_RURe,
|
|
@@ -365,9 +365,9 @@ export var RecognizeUtteranceResponse = [
|
|
|
365
365
|
[0, { [_hH]: _xalrbm }],
|
|
366
366
|
],
|
|
367
367
|
];
|
|
368
|
-
export var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
369
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException
|
|
370
|
-
export var RuntimeHintDetails = [
|
|
368
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
369
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
370
|
+
export var RuntimeHintDetails$ = [
|
|
371
371
|
3,
|
|
372
372
|
n0,
|
|
373
373
|
_RHD,
|
|
@@ -375,27 +375,27 @@ export var RuntimeHintDetails = [
|
|
|
375
375
|
[_rHV, _sSH],
|
|
376
376
|
[() => RuntimeHintValuesList, () => SlotHintsSlotMap],
|
|
377
377
|
];
|
|
378
|
-
export var RuntimeHints = [3, n0, _RH, 0, [_sH], [() => SlotHintsIntentMap]];
|
|
379
|
-
export var RuntimeHintValue = [3, n0, _RHV, 0, [_p], [0]];
|
|
380
|
-
export var SentimentResponse = [3, n0, _SR, 0, [_sen, _sSe], [0, () => SentimentScore]];
|
|
381
|
-
export var SentimentScore = [3, n0, _SS, 0, [_po, _ne, _neu, _mi], [1, 1, 1, 1]];
|
|
382
|
-
export var SessionState = [
|
|
378
|
+
export var RuntimeHints$ = [3, n0, _RH, 0, [_sH], [() => SlotHintsIntentMap]];
|
|
379
|
+
export var RuntimeHintValue$ = [3, n0, _RHV, 0, [_p], [0]];
|
|
380
|
+
export var SentimentResponse$ = [3, n0, _SR, 0, [_sen, _sSe], [0, () => SentimentScore$]];
|
|
381
|
+
export var SentimentScore$ = [3, n0, _SS, 0, [_po, _ne, _neu, _mi], [1, 1, 1, 1]];
|
|
382
|
+
export var SessionState$ = [
|
|
383
383
|
3,
|
|
384
384
|
n0,
|
|
385
385
|
_SSe,
|
|
386
386
|
0,
|
|
387
387
|
[_dA, _in, _aCc, _sA, _oRI, _rH],
|
|
388
|
-
[() => DialogAction
|
|
388
|
+
[() => DialogAction$, () => Intent$, [() => ActiveContextsList, 0], 128 | 0, 0, () => RuntimeHints$],
|
|
389
389
|
];
|
|
390
|
-
export var Slot = [
|
|
390
|
+
export var Slot$ = [
|
|
391
391
|
3,
|
|
392
392
|
n0,
|
|
393
393
|
_S,
|
|
394
394
|
0,
|
|
395
395
|
[_v, _sh, _va, _sSu],
|
|
396
|
-
[() => Value
|
|
396
|
+
[() => Value$, 0, () => Values, () => Slots],
|
|
397
397
|
];
|
|
398
|
-
export var StartConversationRequest = [
|
|
398
|
+
export var StartConversationRequest$ = [
|
|
399
399
|
3,
|
|
400
400
|
n0,
|
|
401
401
|
_SCR,
|
|
@@ -407,118 +407,118 @@ export var StartConversationRequest = [
|
|
|
407
407
|
[0, 1],
|
|
408
408
|
[0, 1],
|
|
409
409
|
[0, { [_hH]: _xalcm }],
|
|
410
|
-
[() => StartConversationRequestEventStream
|
|
410
|
+
[() => StartConversationRequestEventStream$, 16],
|
|
411
411
|
],
|
|
412
412
|
];
|
|
413
|
-
export var StartConversationResponse = [
|
|
413
|
+
export var StartConversationResponse$ = [
|
|
414
414
|
3,
|
|
415
415
|
n0,
|
|
416
416
|
_SCRt,
|
|
417
417
|
0,
|
|
418
418
|
[_rESe],
|
|
419
|
-
[[() => StartConversationResponseEventStream
|
|
419
|
+
[[() => StartConversationResponseEventStream$, 16]],
|
|
420
420
|
];
|
|
421
|
-
export var TextInputEvent = [3, n0, _TIE, 0, [_t, _eI, _cTM], [[() => Text, 0], 0, 1]];
|
|
422
|
-
export var TextResponseEvent = [3, n0, _TRE, 0, [_me, _eI], [[() => Messages, 0], 0]];
|
|
423
|
-
export var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
424
|
-
TypeRegistry.for(n0).registerError(ThrottlingException
|
|
425
|
-
export var TranscriptEvent = [3, n0, _TEr, 0, [_tr, _eI], [0, 0]];
|
|
426
|
-
export var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
427
|
-
TypeRegistry.for(n0).registerError(ValidationException
|
|
428
|
-
export var Value = [3, n0, _V, 0, [_oV, _iV, _rV], [0, 0, 64 | 0]];
|
|
429
|
-
export var LexRuntimeV2ServiceException = [-3, _sm, "LexRuntimeV2ServiceException", 0, [], []];
|
|
430
|
-
TypeRegistry.for(_sm).registerError(LexRuntimeV2ServiceException
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
export var StartConversationRequestEventStream = [
|
|
421
|
+
export var TextInputEvent$ = [3, n0, _TIE, 0, [_t, _eI, _cTM], [[() => Text, 0], 0, 1]];
|
|
422
|
+
export var TextResponseEvent$ = [3, n0, _TRE, 0, [_me, _eI], [[() => Messages, 0], 0]];
|
|
423
|
+
export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
424
|
+
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
425
|
+
export var TranscriptEvent$ = [3, n0, _TEr, 0, [_tr, _eI], [0, 0]];
|
|
426
|
+
export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
427
|
+
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
428
|
+
export var Value$ = [3, n0, _V, 0, [_oV, _iV, _rV], [0, 0, 64 | 0]];
|
|
429
|
+
export var LexRuntimeV2ServiceException$ = [-3, _sm, "LexRuntimeV2ServiceException", 0, [], []];
|
|
430
|
+
TypeRegistry.for(_sm).registerError(LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException);
|
|
431
|
+
var ActiveContextsList = [1, n0, _ACL, 0, [() => ActiveContext$, 0]];
|
|
432
|
+
var ButtonsList = [1, n0, _BL, 0, () => Button$];
|
|
433
|
+
var Interpretations = [1, n0, _Int, 0, () => Interpretation$];
|
|
434
|
+
var Messages = [1, n0, _Me, 0, [() => Message$, 0]];
|
|
435
|
+
var RuntimeHintValuesList = [1, n0, _RHVL, 0, () => RuntimeHintValue$];
|
|
436
|
+
var StringList = 64 | 0;
|
|
437
|
+
var Values = [1, n0, _Va, 0, () => Slot$];
|
|
438
|
+
var ActiveContextParametersMap = [2, n0, _ACPM, 0, [0, 0], [() => Text, 0]];
|
|
439
|
+
var SlotHintsIntentMap = [2, n0, _SHIM, 0, 0, () => SlotHintsSlotMap];
|
|
440
|
+
var SlotHintsSlotMap = [2, n0, _SHSM, 0, 0, () => RuntimeHintDetails$];
|
|
441
|
+
var Slots = [2, n0, _Sl, 0, 0, () => Slot$];
|
|
442
|
+
var StringMap = 128 | 0;
|
|
443
|
+
export var StartConversationRequestEventStream$ = [
|
|
444
444
|
3,
|
|
445
445
|
n0,
|
|
446
446
|
_SCRES,
|
|
447
447
|
{ [_s]: 1 },
|
|
448
448
|
[_CE, _AIE, _DTMFIE, _TIE, _PCE, _DE],
|
|
449
449
|
[
|
|
450
|
-
[() => ConfigurationEvent
|
|
451
|
-
() => AudioInputEvent
|
|
452
|
-
[() => DTMFInputEvent
|
|
453
|
-
[() => TextInputEvent
|
|
454
|
-
() => PlaybackCompletionEvent
|
|
455
|
-
() => DisconnectionEvent
|
|
450
|
+
[() => ConfigurationEvent$, 0],
|
|
451
|
+
() => AudioInputEvent$,
|
|
452
|
+
[() => DTMFInputEvent$, 0],
|
|
453
|
+
[() => TextInputEvent$, 0],
|
|
454
|
+
() => PlaybackCompletionEvent$,
|
|
455
|
+
() => DisconnectionEvent$,
|
|
456
456
|
],
|
|
457
457
|
];
|
|
458
|
-
export var StartConversationResponseEventStream = [
|
|
458
|
+
export var StartConversationResponseEventStream$ = [
|
|
459
459
|
3,
|
|
460
460
|
n0,
|
|
461
461
|
_SCRESt,
|
|
462
462
|
{ [_s]: 1 },
|
|
463
463
|
[_PIE, _TEr, _IRE, _TRE, _ARE, _HE, _ADE, _RNFE, _VE, _TE, _ISE, _CEo, _DFE, _BGE],
|
|
464
464
|
[
|
|
465
|
-
() => PlaybackInterruptionEvent
|
|
466
|
-
() => TranscriptEvent
|
|
467
|
-
[() => IntentResultEvent
|
|
468
|
-
[() => TextResponseEvent
|
|
469
|
-
() => AudioResponseEvent
|
|
470
|
-
() => HeartbeatEvent
|
|
471
|
-
[() => AccessDeniedException
|
|
472
|
-
[() => ResourceNotFoundException
|
|
473
|
-
[() => ValidationException
|
|
474
|
-
[() => ThrottlingException
|
|
475
|
-
[() => InternalServerException
|
|
476
|
-
[() => ConflictException
|
|
477
|
-
[() => DependencyFailedException
|
|
478
|
-
[() => BadGatewayException
|
|
465
|
+
() => PlaybackInterruptionEvent$,
|
|
466
|
+
() => TranscriptEvent$,
|
|
467
|
+
[() => IntentResultEvent$, 0],
|
|
468
|
+
[() => TextResponseEvent$, 0],
|
|
469
|
+
() => AudioResponseEvent$,
|
|
470
|
+
() => HeartbeatEvent$,
|
|
471
|
+
[() => AccessDeniedException$, 0],
|
|
472
|
+
[() => ResourceNotFoundException$, 0],
|
|
473
|
+
[() => ValidationException$, 0],
|
|
474
|
+
[() => ThrottlingException$, 0],
|
|
475
|
+
[() => InternalServerException$, 0],
|
|
476
|
+
[() => ConflictException$, 0],
|
|
477
|
+
[() => DependencyFailedException$, 0],
|
|
478
|
+
[() => BadGatewayException$, 0],
|
|
479
479
|
],
|
|
480
480
|
];
|
|
481
|
-
export var DeleteSession = [
|
|
481
|
+
export var DeleteSession$ = [
|
|
482
482
|
9,
|
|
483
483
|
n0,
|
|
484
484
|
_DS,
|
|
485
485
|
{ [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
|
|
486
|
-
() => DeleteSessionRequest
|
|
487
|
-
() => DeleteSessionResponse
|
|
486
|
+
() => DeleteSessionRequest$,
|
|
487
|
+
() => DeleteSessionResponse$,
|
|
488
488
|
];
|
|
489
|
-
export var GetSession = [
|
|
489
|
+
export var GetSession$ = [
|
|
490
490
|
9,
|
|
491
491
|
n0,
|
|
492
492
|
_GS,
|
|
493
493
|
{ [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
|
|
494
|
-
() => GetSessionRequest
|
|
495
|
-
() => GetSessionResponse
|
|
494
|
+
() => GetSessionRequest$,
|
|
495
|
+
() => GetSessionResponse$,
|
|
496
496
|
];
|
|
497
|
-
export var PutSession = [
|
|
497
|
+
export var PutSession$ = [
|
|
498
498
|
9,
|
|
499
499
|
n0,
|
|
500
500
|
_PS,
|
|
501
501
|
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
|
|
502
|
-
() => PutSessionRequest
|
|
503
|
-
() => PutSessionResponse
|
|
502
|
+
() => PutSessionRequest$,
|
|
503
|
+
() => PutSessionResponse$,
|
|
504
504
|
];
|
|
505
|
-
export var RecognizeText = [
|
|
505
|
+
export var RecognizeText$ = [
|
|
506
506
|
9,
|
|
507
507
|
n0,
|
|
508
508
|
_RT,
|
|
509
509
|
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] },
|
|
510
|
-
() => RecognizeTextRequest
|
|
511
|
-
() => RecognizeTextResponse
|
|
510
|
+
() => RecognizeTextRequest$,
|
|
511
|
+
() => RecognizeTextResponse$,
|
|
512
512
|
];
|
|
513
|
-
export var RecognizeUtterance = [
|
|
513
|
+
export var RecognizeUtterance$ = [
|
|
514
514
|
9,
|
|
515
515
|
n0,
|
|
516
516
|
_RU,
|
|
517
517
|
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] },
|
|
518
|
-
() => RecognizeUtteranceRequest
|
|
519
|
-
() => RecognizeUtteranceResponse
|
|
518
|
+
() => RecognizeUtteranceRequest$,
|
|
519
|
+
() => RecognizeUtteranceResponse$,
|
|
520
520
|
];
|
|
521
|
-
export var StartConversation = [
|
|
521
|
+
export var StartConversation$ = [
|
|
522
522
|
9,
|
|
523
523
|
n0,
|
|
524
524
|
_SC,
|
|
@@ -529,6 +529,6 @@ export var StartConversation = [
|
|
|
529
529
|
200,
|
|
530
530
|
],
|
|
531
531
|
},
|
|
532
|
-
() => StartConversationRequest
|
|
533
|
-
() => StartConversationResponse
|
|
532
|
+
() => StartConversationRequest$,
|
|
533
|
+
() => StartConversationResponse$,
|
|
534
534
|
];
|
|
@@ -8,7 +8,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
|
|
|
8
8
|
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
9
9
|
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
10
10
|
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
11
|
-
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type
|
|
11
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type SdkStreamMixinInjector as __SdkStreamMixinInjector, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
12
12
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
14
14
|
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
@@ -150,15 +150,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
150
150
|
* Optional extensions
|
|
151
151
|
*/
|
|
152
152
|
extensions?: RuntimeExtension[];
|
|
153
|
-
/**
|
|
154
|
-
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
155
|
-
* may be overridden. A default will always be set by the client.
|
|
156
|
-
* Available options depend on the service's supported protocols and will not be validated by
|
|
157
|
-
* the client.
|
|
158
|
-
* @alpha
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
161
|
-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
162
153
|
/**
|
|
163
154
|
* The function that provides necessary utilities for generating and parsing event stream
|
|
164
155
|
*/
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { LexRuntimeV2ExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
+
export * from "./schemas/schemas_0";
|
|
12
13
|
export * from "./models/enums";
|
|
13
14
|
export * from "./models/errors";
|
|
14
15
|
export type * from "./models/models_0";
|