@aws-sdk/client-lex-runtime-v2 3.1075.0 → 3.1076.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 +870 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +11 -11
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/LexRuntimeV2ServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -97
- package/dist-cjs/runtimeConfig.browser.js +0 -37
- package/dist-cjs/runtimeConfig.js +0 -52
- package/dist-cjs/runtimeConfig.native.js +0 -16
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -567
package/dist-cjs/index.js
CHANGED
|
@@ -1,23 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
4
3
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
5
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
6
5
|
exports.$Command = Command;
|
|
7
6
|
exports.__Client = Client;
|
|
8
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
10
|
-
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
11
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
12
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
13
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
14
|
-
const {
|
|
15
|
-
const {
|
|
16
|
-
const {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const {
|
|
20
|
-
|
|
7
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
10
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
11
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
12
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
14
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
15
|
+
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
16
|
+
const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
17
|
+
const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
|
|
18
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
19
|
+
|
|
20
|
+
const defaultLexRuntimeV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
21
|
+
return {
|
|
22
|
+
operation: getSmithyContext(context).operation,
|
|
23
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
24
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
25
|
+
})(),
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
29
|
+
return {
|
|
30
|
+
schemeId: "aws.auth#sigv4",
|
|
31
|
+
signingProperties: {
|
|
32
|
+
name: "lex",
|
|
33
|
+
region: authParameters.region,
|
|
34
|
+
},
|
|
35
|
+
propertiesExtractor: (config, context) => ({
|
|
36
|
+
signingProperties: {
|
|
37
|
+
config,
|
|
38
|
+
context,
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const defaultLexRuntimeV2HttpAuthSchemeProvider = (authParameters) => {
|
|
44
|
+
const options = [];
|
|
45
|
+
switch (authParameters.operation) {
|
|
46
|
+
default: {
|
|
47
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return options;
|
|
51
|
+
};
|
|
52
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
53
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
54
|
+
return Object.assign(config_0, {
|
|
55
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
56
|
+
});
|
|
57
|
+
};
|
|
21
58
|
|
|
22
59
|
const resolveClientEndpointParameters = (options) => {
|
|
23
60
|
return Object.assign(options, {
|
|
@@ -33,6 +70,753 @@ const commonParams = {
|
|
|
33
70
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
34
71
|
};
|
|
35
72
|
|
|
73
|
+
var version = "3.1075.0";
|
|
74
|
+
var packageInfo = {
|
|
75
|
+
version: version};
|
|
76
|
+
|
|
77
|
+
const k = "ref";
|
|
78
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
79
|
+
const _data = {
|
|
80
|
+
conditions: [
|
|
81
|
+
[c, [g]],
|
|
82
|
+
[c, j],
|
|
83
|
+
["aws.partition", j, d],
|
|
84
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
85
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
86
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
87
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
88
|
+
],
|
|
89
|
+
results: [
|
|
90
|
+
[a],
|
|
91
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
92
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
93
|
+
[g, i],
|
|
94
|
+
["https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
95
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
96
|
+
["https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
97
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
98
|
+
["https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
99
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
100
|
+
["https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
101
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
102
|
+
]
|
|
103
|
+
};
|
|
104
|
+
const root = 2;
|
|
105
|
+
const r = 100_000_000;
|
|
106
|
+
const nodes = new Int32Array([
|
|
107
|
+
-1, 1, -1,
|
|
108
|
+
0, 12, 3,
|
|
109
|
+
1, 4, r + 11,
|
|
110
|
+
2, 5, r + 11,
|
|
111
|
+
3, 8, 6,
|
|
112
|
+
4, 7, r + 10,
|
|
113
|
+
5, r + 8, r + 9,
|
|
114
|
+
4, 10, 9,
|
|
115
|
+
6, r + 6, r + 7,
|
|
116
|
+
5, 11, r + 5,
|
|
117
|
+
6, r + 4, r + 5,
|
|
118
|
+
3, r + 1, 13,
|
|
119
|
+
4, r + 2, r + 3,
|
|
120
|
+
]);
|
|
121
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
122
|
+
|
|
123
|
+
const cache = new EndpointCache({
|
|
124
|
+
size: 50,
|
|
125
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
126
|
+
});
|
|
127
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
128
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
129
|
+
endpointParams: endpointParams,
|
|
130
|
+
logger: context.logger,
|
|
131
|
+
}));
|
|
132
|
+
};
|
|
133
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
134
|
+
|
|
135
|
+
class LexRuntimeV2ServiceException extends ServiceException {
|
|
136
|
+
constructor(options) {
|
|
137
|
+
super(options);
|
|
138
|
+
Object.setPrototypeOf(this, LexRuntimeV2ServiceException.prototype);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
class AccessDeniedException extends LexRuntimeV2ServiceException {
|
|
143
|
+
name = "AccessDeniedException";
|
|
144
|
+
$fault = "client";
|
|
145
|
+
constructor(opts) {
|
|
146
|
+
super({
|
|
147
|
+
name: "AccessDeniedException",
|
|
148
|
+
$fault: "client",
|
|
149
|
+
...opts,
|
|
150
|
+
});
|
|
151
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class ConflictException extends LexRuntimeV2ServiceException {
|
|
155
|
+
name = "ConflictException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
constructor(opts) {
|
|
158
|
+
super({
|
|
159
|
+
name: "ConflictException",
|
|
160
|
+
$fault: "client",
|
|
161
|
+
...opts,
|
|
162
|
+
});
|
|
163
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class InternalServerException extends LexRuntimeV2ServiceException {
|
|
167
|
+
name = "InternalServerException";
|
|
168
|
+
$fault = "server";
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "InternalServerException",
|
|
172
|
+
$fault: "server",
|
|
173
|
+
...opts,
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
class ResourceNotFoundException extends LexRuntimeV2ServiceException {
|
|
179
|
+
name = "ResourceNotFoundException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ResourceNotFoundException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
class ThrottlingException extends LexRuntimeV2ServiceException {
|
|
191
|
+
name = "ThrottlingException";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "ThrottlingException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
class ValidationException extends LexRuntimeV2ServiceException {
|
|
203
|
+
name = "ValidationException";
|
|
204
|
+
$fault = "client";
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "ValidationException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class BadGatewayException extends LexRuntimeV2ServiceException {
|
|
215
|
+
name = "BadGatewayException";
|
|
216
|
+
$fault = "server";
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "BadGatewayException",
|
|
220
|
+
$fault: "server",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
class DependencyFailedException extends LexRuntimeV2ServiceException {
|
|
227
|
+
name = "DependencyFailedException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "DependencyFailedException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const _AC = "ActiveContext";
|
|
240
|
+
const _ACL = "ActiveContextsList";
|
|
241
|
+
const _ACPM = "ActiveContextParametersMap";
|
|
242
|
+
const _ACTTL = "ActiveContextTimeToLive";
|
|
243
|
+
const _ADE = "AccessDeniedException";
|
|
244
|
+
const _AIE = "AudioInputEvent";
|
|
245
|
+
const _ARE = "AudioResponseEvent";
|
|
246
|
+
const _B = "Button";
|
|
247
|
+
const _BGE = "BadGatewayException";
|
|
248
|
+
const _BL = "ButtonsList";
|
|
249
|
+
const _BS = "BlobStream";
|
|
250
|
+
const _CE = "ConflictException";
|
|
251
|
+
const _CEo = "ConfigurationEvent";
|
|
252
|
+
const _CS = "ConfidenceScore";
|
|
253
|
+
const _CT = "Content-Type";
|
|
254
|
+
const _DA = "DialogAction";
|
|
255
|
+
const _DE = "DisconnectionEvent";
|
|
256
|
+
const _DFE = "DependencyFailedException";
|
|
257
|
+
const _DS = "DeleteSession";
|
|
258
|
+
const _DSR = "DeleteSessionRequest";
|
|
259
|
+
const _DSRe = "DeleteSessionResponse";
|
|
260
|
+
const _DTMFIE = "DTMFInputEvent";
|
|
261
|
+
const _DTMFR = "DTMFRegex";
|
|
262
|
+
const _ESS = "ElicitSubSlot";
|
|
263
|
+
const _GS = "GetSession";
|
|
264
|
+
const _GSR = "GetSessionRequest";
|
|
265
|
+
const _GSRe = "GetSessionResponse";
|
|
266
|
+
const _HE = "HeartbeatEvent";
|
|
267
|
+
const _I = "Intent";
|
|
268
|
+
const _IRC = "ImageResponseCard";
|
|
269
|
+
const _IRE = "IntentResultEvent";
|
|
270
|
+
const _ISE = "InternalServerException";
|
|
271
|
+
const _In = "Interpretation";
|
|
272
|
+
const _Int = "Interpretations";
|
|
273
|
+
const _M = "Message";
|
|
274
|
+
const _Me = "Messages";
|
|
275
|
+
const _PCE = "PlaybackCompletionEvent";
|
|
276
|
+
const _PIE = "PlaybackInterruptionEvent";
|
|
277
|
+
const _PS = "PutSession";
|
|
278
|
+
const _PSR = "PutSessionRequest";
|
|
279
|
+
const _PSRu = "PutSessionResponse";
|
|
280
|
+
const _RBM = "RecognizedBotMember";
|
|
281
|
+
const _RCT = "ResponseContentType";
|
|
282
|
+
const _RCT_ = "Response-Content-Type";
|
|
283
|
+
const _RH = "RuntimeHints";
|
|
284
|
+
const _RHD = "RuntimeHintDetails";
|
|
285
|
+
const _RHV = "RuntimeHintValue";
|
|
286
|
+
const _RHVL = "RuntimeHintValuesList";
|
|
287
|
+
const _RNFE = "ResourceNotFoundException";
|
|
288
|
+
const _RT = "RecognizeText";
|
|
289
|
+
const _RTR = "RecognizeTextRequest";
|
|
290
|
+
const _RTRe = "RecognizeTextResponse";
|
|
291
|
+
const _RU = "RecognizeUtterance";
|
|
292
|
+
const _RUR = "RecognizeUtteranceRequest";
|
|
293
|
+
const _RURe = "RecognizeUtteranceResponse";
|
|
294
|
+
const _S = "Slot";
|
|
295
|
+
const _SC = "StartConversation";
|
|
296
|
+
const _SCR = "StartConversationRequest";
|
|
297
|
+
const _SCRES = "StartConversationRequestEventStream";
|
|
298
|
+
const _SCRESt = "StartConversationResponseEventStream";
|
|
299
|
+
const _SCRt = "StartConversationResponse";
|
|
300
|
+
const _SHIM = "SlotHintsIntentMap";
|
|
301
|
+
const _SHSM = "SlotHintsSlotMap";
|
|
302
|
+
const _SNES = "SensitiveNonEmptyString";
|
|
303
|
+
const _SR = "SentimentResponse";
|
|
304
|
+
const _SS = "SentimentScore";
|
|
305
|
+
const _SSe = "SessionState";
|
|
306
|
+
const _Sl = "Slots";
|
|
307
|
+
const _T = "Text";
|
|
308
|
+
const _TE = "ThrottlingException";
|
|
309
|
+
const _TEr = "TranscriptEvent";
|
|
310
|
+
const _TIE = "TextInputEvent";
|
|
311
|
+
const _TRE = "TextResponseEvent";
|
|
312
|
+
const _V = "Value";
|
|
313
|
+
const _VE = "ValidationException";
|
|
314
|
+
const _Va = "Values";
|
|
315
|
+
const _aC = "audioChunk";
|
|
316
|
+
const _aCc = "activeContexts";
|
|
317
|
+
const _aS = "audioStream";
|
|
318
|
+
const _b = "buttons";
|
|
319
|
+
const _bAI = "botAliasId";
|
|
320
|
+
const _bI = "botId";
|
|
321
|
+
const _bN = "botName";
|
|
322
|
+
const _c = "client";
|
|
323
|
+
const _cA = "contextAttributes";
|
|
324
|
+
const _cBEI = "causedByEventId";
|
|
325
|
+
const _cM = "conversationMode";
|
|
326
|
+
const _cS = "confirmationState";
|
|
327
|
+
const _cT = "contentType";
|
|
328
|
+
const _cTM = "clientTimestampMillis";
|
|
329
|
+
const _co = "content";
|
|
330
|
+
const _dA = "dialogAction";
|
|
331
|
+
const _dP = "disablePlayback";
|
|
332
|
+
const _e = "error";
|
|
333
|
+
const _eI = "eventId";
|
|
334
|
+
const _eR = "eventReason";
|
|
335
|
+
const _h = "http";
|
|
336
|
+
const _hE = "httpError";
|
|
337
|
+
const _hH = "httpHeader";
|
|
338
|
+
const _i = "interpretations";
|
|
339
|
+
const _iC = "inputCharacter";
|
|
340
|
+
const _iM = "inputMode";
|
|
341
|
+
const _iRC = "imageResponseCard";
|
|
342
|
+
const _iS = "interpretationSource";
|
|
343
|
+
const _iSn = "inputStream";
|
|
344
|
+
const _iT = "inputTranscript";
|
|
345
|
+
const _iU = "imageUrl";
|
|
346
|
+
const _iV = "interpretedValue";
|
|
347
|
+
const _in = "intent";
|
|
348
|
+
const _lI = "localeId";
|
|
349
|
+
const _m = "message";
|
|
350
|
+
const _me = "messages";
|
|
351
|
+
const _mi = "mixed";
|
|
352
|
+
const _n = "name";
|
|
353
|
+
const _nC = "nluConfidence";
|
|
354
|
+
const _ne = "negative";
|
|
355
|
+
const _neu = "neutral";
|
|
356
|
+
const _oRI = "originatingRequestId";
|
|
357
|
+
const _oV = "originalValue";
|
|
358
|
+
const _p = "phrase";
|
|
359
|
+
const _po = "positive";
|
|
360
|
+
const _rA = "requestAttributes";
|
|
361
|
+
const _rBM = "recognizedBotMember";
|
|
362
|
+
const _rCT = "responseContentType";
|
|
363
|
+
const _rCTe = "requestContentType";
|
|
364
|
+
const _rES = "requestEventStream";
|
|
365
|
+
const _rESe = "responseEventStream";
|
|
366
|
+
const _rH = "runtimeHints";
|
|
367
|
+
const _rHV = "runtimeHintValues";
|
|
368
|
+
const _rV = "resolvedValues";
|
|
369
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lexruntimev2";
|
|
370
|
+
const _sA = "sessionAttributes";
|
|
371
|
+
const _sES = "slotElicitationStyle";
|
|
372
|
+
const _sH = "slotHints";
|
|
373
|
+
const _sI = "sessionId";
|
|
374
|
+
const _sR = "sentimentResponse";
|
|
375
|
+
const _sS = "sessionState";
|
|
376
|
+
const _sSH = "subSlotHints";
|
|
377
|
+
const _sSTE = "subSlotToElicit";
|
|
378
|
+
const _sSe = "sentimentScore";
|
|
379
|
+
const _sSu = "subSlots";
|
|
380
|
+
const _sTE = "slotToElicit";
|
|
381
|
+
const _sc = "score";
|
|
382
|
+
const _se = "server";
|
|
383
|
+
const _sen = "sentiment";
|
|
384
|
+
const _sh = "shape";
|
|
385
|
+
const _sl = "slots";
|
|
386
|
+
const _st = "streaming";
|
|
387
|
+
const _sta = "state";
|
|
388
|
+
const _su = "subtitle";
|
|
389
|
+
const _t = "text";
|
|
390
|
+
const _tTL = "timeToLive";
|
|
391
|
+
const _tTLIS = "timeToLiveInSeconds";
|
|
392
|
+
const _tTLu = "turnsToLive";
|
|
393
|
+
const _ti = "title";
|
|
394
|
+
const _tr = "transcript";
|
|
395
|
+
const _ty = "type";
|
|
396
|
+
const _v = "value";
|
|
397
|
+
const _va = "values";
|
|
398
|
+
const _wM = "welcomeMessages";
|
|
399
|
+
const _xalcm = "x-amz-lex-conversation-mode";
|
|
400
|
+
const _xali = "x-amz-lex-interpretations";
|
|
401
|
+
const _xalim = "x-amz-lex-input-mode";
|
|
402
|
+
const _xalit = "x-amz-lex-input-transcript";
|
|
403
|
+
const _xalm = "x-amz-lex-messages";
|
|
404
|
+
const _xalra = "x-amz-lex-request-attributes";
|
|
405
|
+
const _xalrbm = "x-amz-lex-recognized-bot-member";
|
|
406
|
+
const _xalsi = "x-amz-lex-session-id";
|
|
407
|
+
const _xalss = "x-amz-lex-session-state";
|
|
408
|
+
const n0 = "com.amazonaws.lexruntimev2";
|
|
409
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
410
|
+
var LexRuntimeV2ServiceException$ = [-3, _s, "LexRuntimeV2ServiceException", 0, [], []];
|
|
411
|
+
_s_registry.registerError(LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException);
|
|
412
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
413
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
414
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
415
|
+
[_m],
|
|
416
|
+
[0], 1
|
|
417
|
+
];
|
|
418
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
419
|
+
var BadGatewayException$ = [-3, n0, _BGE,
|
|
420
|
+
{ [_e]: _se, [_hE]: 502 },
|
|
421
|
+
[_m],
|
|
422
|
+
[0], 1
|
|
423
|
+
];
|
|
424
|
+
n0_registry.registerError(BadGatewayException$, BadGatewayException);
|
|
425
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
426
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
427
|
+
[_m],
|
|
428
|
+
[0], 1
|
|
429
|
+
];
|
|
430
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
431
|
+
var DependencyFailedException$ = [-3, n0, _DFE,
|
|
432
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
433
|
+
[_m],
|
|
434
|
+
[0], 1
|
|
435
|
+
];
|
|
436
|
+
n0_registry.registerError(DependencyFailedException$, DependencyFailedException);
|
|
437
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
438
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
439
|
+
[_m],
|
|
440
|
+
[0], 1
|
|
441
|
+
];
|
|
442
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
443
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
444
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
445
|
+
[_m],
|
|
446
|
+
[0], 1
|
|
447
|
+
];
|
|
448
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
449
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
450
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
451
|
+
[_m],
|
|
452
|
+
[0], 1
|
|
453
|
+
];
|
|
454
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
455
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
456
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
457
|
+
[_m],
|
|
458
|
+
[0], 1
|
|
459
|
+
];
|
|
460
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
461
|
+
const errorTypeRegistries = [
|
|
462
|
+
_s_registry,
|
|
463
|
+
n0_registry,
|
|
464
|
+
];
|
|
465
|
+
var BlobStream = [0, n0, _BS, { [_st]: 1 }, 42];
|
|
466
|
+
var DTMFRegex = [0, n0, _DTMFR, 8, 0];
|
|
467
|
+
var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
|
|
468
|
+
var Text = [0, n0, _T, 8, 0];
|
|
469
|
+
var ActiveContext$ = [3, n0, _AC,
|
|
470
|
+
0,
|
|
471
|
+
[_n, _tTL, _cA],
|
|
472
|
+
[0, () => ActiveContextTimeToLive$, [() => ActiveContextParametersMap, 0]], 3
|
|
473
|
+
];
|
|
474
|
+
var ActiveContextTimeToLive$ = [3, n0, _ACTTL,
|
|
475
|
+
0,
|
|
476
|
+
[_tTLIS, _tTLu],
|
|
477
|
+
[1, 1], 2
|
|
478
|
+
];
|
|
479
|
+
var AudioInputEvent$ = [3, n0, _AIE,
|
|
480
|
+
0,
|
|
481
|
+
[_cT, _aC, _eI, _cTM],
|
|
482
|
+
[0, 21, 0, 1], 1
|
|
483
|
+
];
|
|
484
|
+
var AudioResponseEvent$ = [3, n0, _ARE,
|
|
485
|
+
0,
|
|
486
|
+
[_aC, _cT, _eI],
|
|
487
|
+
[21, 0, 0]
|
|
488
|
+
];
|
|
489
|
+
var Button$ = [3, n0, _B,
|
|
490
|
+
0,
|
|
491
|
+
[_t, _v],
|
|
492
|
+
[0, 0], 2
|
|
493
|
+
];
|
|
494
|
+
var ConfidenceScore$ = [3, n0, _CS,
|
|
495
|
+
0,
|
|
496
|
+
[_sc],
|
|
497
|
+
[1]
|
|
498
|
+
];
|
|
499
|
+
var ConfigurationEvent$ = [3, n0, _CEo,
|
|
500
|
+
0,
|
|
501
|
+
[_rCT, _rA, _sS, _wM, _dP, _eI, _cTM],
|
|
502
|
+
[0, 128 | 0, [() => SessionState$, 0], [() => Messages, 0], 2, 0, 1], 1
|
|
503
|
+
];
|
|
504
|
+
var DeleteSessionRequest$ = [3, n0, _DSR,
|
|
505
|
+
0,
|
|
506
|
+
[_bI, _bAI, _lI, _sI],
|
|
507
|
+
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
508
|
+
];
|
|
509
|
+
var DeleteSessionResponse$ = [3, n0, _DSRe,
|
|
510
|
+
0,
|
|
511
|
+
[_bI, _bAI, _lI, _sI],
|
|
512
|
+
[0, 0, 0, 0]
|
|
513
|
+
];
|
|
514
|
+
var DialogAction$ = [3, n0, _DA,
|
|
515
|
+
0,
|
|
516
|
+
[_ty, _sTE, _sES, _sSTE],
|
|
517
|
+
[0, 0, 0, () => ElicitSubSlot$], 1
|
|
518
|
+
];
|
|
519
|
+
var DisconnectionEvent$ = [3, n0, _DE,
|
|
520
|
+
0,
|
|
521
|
+
[_eI, _cTM],
|
|
522
|
+
[0, 1]
|
|
523
|
+
];
|
|
524
|
+
var DTMFInputEvent$ = [3, n0, _DTMFIE,
|
|
525
|
+
0,
|
|
526
|
+
[_iC, _eI, _cTM],
|
|
527
|
+
[[() => DTMFRegex, 0], 0, 1], 1
|
|
528
|
+
];
|
|
529
|
+
var ElicitSubSlot$ = [3, n0, _ESS,
|
|
530
|
+
0,
|
|
531
|
+
[_n, _sSTE],
|
|
532
|
+
[0, () => ElicitSubSlot$], 1
|
|
533
|
+
];
|
|
534
|
+
var GetSessionRequest$ = [3, n0, _GSR,
|
|
535
|
+
0,
|
|
536
|
+
[_bI, _bAI, _lI, _sI],
|
|
537
|
+
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
538
|
+
];
|
|
539
|
+
var GetSessionResponse$ = [3, n0, _GSRe,
|
|
540
|
+
0,
|
|
541
|
+
[_sI, _me, _i, _sS],
|
|
542
|
+
[0, [() => Messages, 0], () => Interpretations, [() => SessionState$, 0]]
|
|
543
|
+
];
|
|
544
|
+
var HeartbeatEvent$ = [3, n0, _HE,
|
|
545
|
+
0,
|
|
546
|
+
[_eI],
|
|
547
|
+
[0]
|
|
548
|
+
];
|
|
549
|
+
var ImageResponseCard$ = [3, n0, _IRC,
|
|
550
|
+
0,
|
|
551
|
+
[_ti, _su, _iU, _b],
|
|
552
|
+
[0, 0, 0, () => ButtonsList], 1
|
|
553
|
+
];
|
|
554
|
+
var Intent$ = [3, n0, _I,
|
|
555
|
+
0,
|
|
556
|
+
[_n, _sl, _sta, _cS],
|
|
557
|
+
[0, () => Slots, 0, 0], 1
|
|
558
|
+
];
|
|
559
|
+
var IntentResultEvent$ = [3, n0, _IRE,
|
|
560
|
+
0,
|
|
561
|
+
[_iM, _i, _sS, _rA, _sI, _eI, _rBM],
|
|
562
|
+
[0, () => Interpretations, [() => SessionState$, 0], 128 | 0, 0, 0, () => RecognizedBotMember$]
|
|
563
|
+
];
|
|
564
|
+
var Interpretation$ = [3, n0, _In,
|
|
565
|
+
0,
|
|
566
|
+
[_nC, _sR, _in, _iS],
|
|
567
|
+
[() => ConfidenceScore$, () => SentimentResponse$, () => Intent$, 0]
|
|
568
|
+
];
|
|
569
|
+
var Message$ = [3, n0, _M,
|
|
570
|
+
0,
|
|
571
|
+
[_cT, _co, _iRC],
|
|
572
|
+
[0, [() => Text, 0], () => ImageResponseCard$], 1
|
|
573
|
+
];
|
|
574
|
+
var PlaybackCompletionEvent$ = [3, n0, _PCE,
|
|
575
|
+
0,
|
|
576
|
+
[_eI, _cTM],
|
|
577
|
+
[0, 1]
|
|
578
|
+
];
|
|
579
|
+
var PlaybackInterruptionEvent$ = [3, n0, _PIE,
|
|
580
|
+
0,
|
|
581
|
+
[_eR, _cBEI, _eI],
|
|
582
|
+
[0, 0, 0]
|
|
583
|
+
];
|
|
584
|
+
var PutSessionRequest$ = [3, n0, _PSR,
|
|
585
|
+
0,
|
|
586
|
+
[_bI, _bAI, _lI, _sI, _sS, _me, _rA, _rCT],
|
|
587
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [() => SessionState$, 0], [() => Messages, 0], 128 | 0, [0, { [_hH]: _RCT }]], 5
|
|
588
|
+
];
|
|
589
|
+
var PutSessionResponse$ = [3, n0, _PSRu,
|
|
590
|
+
0,
|
|
591
|
+
[_cT, _me, _sS, _rA, _sI, _aS],
|
|
592
|
+
[[0, { [_hH]: _CT }], [0, { [_hH]: _xalm }], [0, { [_hH]: _xalss }], [0, { [_hH]: _xalra }], [0, { [_hH]: _xalsi }], [() => BlobStream, 16]]
|
|
593
|
+
];
|
|
594
|
+
var RecognizedBotMember$ = [3, n0, _RBM,
|
|
595
|
+
0,
|
|
596
|
+
[_bI, _bN],
|
|
597
|
+
[0, 0], 1
|
|
598
|
+
];
|
|
599
|
+
var RecognizeTextRequest$ = [3, n0, _RTR,
|
|
600
|
+
0,
|
|
601
|
+
[_bI, _bAI, _lI, _sI, _t, _sS, _rA],
|
|
602
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [() => Text, 0], [() => SessionState$, 0], 128 | 0], 5
|
|
603
|
+
];
|
|
604
|
+
var RecognizeTextResponse$ = [3, n0, _RTRe,
|
|
605
|
+
0,
|
|
606
|
+
[_me, _sS, _i, _rA, _sI, _rBM],
|
|
607
|
+
[[() => Messages, 0], [() => SessionState$, 0], () => Interpretations, 128 | 0, 0, () => RecognizedBotMember$]
|
|
608
|
+
];
|
|
609
|
+
var RecognizeUtteranceRequest$ = [3, n0, _RUR,
|
|
610
|
+
0,
|
|
611
|
+
[_bI, _bAI, _lI, _sI, _rCTe, _sS, _rA, _rCT, _iSn],
|
|
612
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [0, { [_hH]: _CT }], [() => SensitiveNonEmptyString, { [_hH]: _xalss }], [() => SensitiveNonEmptyString, { [_hH]: _xalra }], [0, { [_hH]: _RCT_ }], [() => BlobStream, 16]], 5
|
|
613
|
+
];
|
|
614
|
+
var RecognizeUtteranceResponse$ = [3, n0, _RURe,
|
|
615
|
+
0,
|
|
616
|
+
[_iM, _cT, _me, _i, _sS, _rA, _sI, _iT, _aS, _rBM],
|
|
617
|
+
[[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 }]]
|
|
618
|
+
];
|
|
619
|
+
var RuntimeHintDetails$ = [3, n0, _RHD,
|
|
620
|
+
0,
|
|
621
|
+
[_rHV, _sSH],
|
|
622
|
+
[() => RuntimeHintValuesList, () => SlotHintsSlotMap]
|
|
623
|
+
];
|
|
624
|
+
var RuntimeHints$ = [3, n0, _RH,
|
|
625
|
+
0,
|
|
626
|
+
[_sH],
|
|
627
|
+
[() => SlotHintsIntentMap]
|
|
628
|
+
];
|
|
629
|
+
var RuntimeHintValue$ = [3, n0, _RHV,
|
|
630
|
+
0,
|
|
631
|
+
[_p],
|
|
632
|
+
[0], 1
|
|
633
|
+
];
|
|
634
|
+
var SentimentResponse$ = [3, n0, _SR,
|
|
635
|
+
0,
|
|
636
|
+
[_sen, _sSe],
|
|
637
|
+
[0, () => SentimentScore$]
|
|
638
|
+
];
|
|
639
|
+
var SentimentScore$ = [3, n0, _SS,
|
|
640
|
+
0,
|
|
641
|
+
[_po, _ne, _neu, _mi],
|
|
642
|
+
[1, 1, 1, 1]
|
|
643
|
+
];
|
|
644
|
+
var SessionState$ = [3, n0, _SSe,
|
|
645
|
+
0,
|
|
646
|
+
[_dA, _in, _aCc, _sA, _oRI, _rH],
|
|
647
|
+
[() => DialogAction$, () => Intent$, [() => ActiveContextsList, 0], 128 | 0, 0, () => RuntimeHints$]
|
|
648
|
+
];
|
|
649
|
+
var Slot$ = [3, n0, _S,
|
|
650
|
+
0,
|
|
651
|
+
[_v, _sh, _va, _sSu],
|
|
652
|
+
[() => Value$, 0, () => Values, () => Slots]
|
|
653
|
+
];
|
|
654
|
+
var StartConversationRequest$ = [3, n0, _SCR,
|
|
655
|
+
0,
|
|
656
|
+
[_bI, _bAI, _lI, _sI, _rES, _cM],
|
|
657
|
+
[[0, 1], [0, 1], [0, 1], [0, 1], [() => StartConversationRequestEventStream$, 16], [0, { [_hH]: _xalcm }]], 5
|
|
658
|
+
];
|
|
659
|
+
var StartConversationResponse$ = [3, n0, _SCRt,
|
|
660
|
+
0,
|
|
661
|
+
[_rESe],
|
|
662
|
+
[[() => StartConversationResponseEventStream$, 16]]
|
|
663
|
+
];
|
|
664
|
+
var TextInputEvent$ = [3, n0, _TIE,
|
|
665
|
+
0,
|
|
666
|
+
[_t, _eI, _cTM],
|
|
667
|
+
[[() => Text, 0], 0, 1], 1
|
|
668
|
+
];
|
|
669
|
+
var TextResponseEvent$ = [3, n0, _TRE,
|
|
670
|
+
0,
|
|
671
|
+
[_me, _eI],
|
|
672
|
+
[[() => Messages, 0], 0]
|
|
673
|
+
];
|
|
674
|
+
var TranscriptEvent$ = [3, n0, _TEr,
|
|
675
|
+
0,
|
|
676
|
+
[_tr, _eI],
|
|
677
|
+
[0, 0]
|
|
678
|
+
];
|
|
679
|
+
var Value$ = [3, n0, _V,
|
|
680
|
+
0,
|
|
681
|
+
[_iV, _oV, _rV],
|
|
682
|
+
[0, 0, 64 | 0], 1
|
|
683
|
+
];
|
|
684
|
+
var ActiveContextsList = [1, n0, _ACL,
|
|
685
|
+
0, [() => ActiveContext$,
|
|
686
|
+
0]
|
|
687
|
+
];
|
|
688
|
+
var ButtonsList = [1, n0, _BL,
|
|
689
|
+
0, () => Button$
|
|
690
|
+
];
|
|
691
|
+
var Interpretations = [1, n0, _Int,
|
|
692
|
+
0, () => Interpretation$
|
|
693
|
+
];
|
|
694
|
+
var Messages = [1, n0, _Me,
|
|
695
|
+
0, [() => Message$,
|
|
696
|
+
0]
|
|
697
|
+
];
|
|
698
|
+
var RuntimeHintValuesList = [1, n0, _RHVL,
|
|
699
|
+
0, () => RuntimeHintValue$
|
|
700
|
+
];
|
|
701
|
+
var Values = [1, n0, _Va,
|
|
702
|
+
0, () => Slot$
|
|
703
|
+
];
|
|
704
|
+
var ActiveContextParametersMap = [2, n0, _ACPM,
|
|
705
|
+
0, [0,
|
|
706
|
+
0],
|
|
707
|
+
[() => Text,
|
|
708
|
+
0]
|
|
709
|
+
];
|
|
710
|
+
var SlotHintsIntentMap = [2, n0, _SHIM,
|
|
711
|
+
0, 0, () => SlotHintsSlotMap
|
|
712
|
+
];
|
|
713
|
+
var SlotHintsSlotMap = [2, n0, _SHSM,
|
|
714
|
+
0, 0, () => RuntimeHintDetails$
|
|
715
|
+
];
|
|
716
|
+
var Slots = [2, n0, _Sl,
|
|
717
|
+
0, 0, () => Slot$
|
|
718
|
+
];
|
|
719
|
+
var StartConversationRequestEventStream$ = [4, n0, _SCRES,
|
|
720
|
+
{ [_st]: 1 },
|
|
721
|
+
[_CEo, _AIE, _DTMFIE, _TIE, _PCE, _DE],
|
|
722
|
+
[[() => ConfigurationEvent$, 0], () => AudioInputEvent$, [() => DTMFInputEvent$, 0], [() => TextInputEvent$, 0], () => PlaybackCompletionEvent$, () => DisconnectionEvent$]
|
|
723
|
+
];
|
|
724
|
+
var StartConversationResponseEventStream$ = [4, n0, _SCRESt,
|
|
725
|
+
{ [_st]: 1 },
|
|
726
|
+
[_PIE, _TEr, _IRE, _TRE, _ARE, _HE, _ADE, _RNFE, _VE, _TE, _ISE, _CE, _DFE, _BGE],
|
|
727
|
+
[() => PlaybackInterruptionEvent$, () => TranscriptEvent$, [() => IntentResultEvent$, 0], [() => TextResponseEvent$, 0], () => AudioResponseEvent$, () => HeartbeatEvent$, [() => AccessDeniedException$, 0], [() => ResourceNotFoundException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => InternalServerException$, 0], [() => ConflictException$, 0], [() => DependencyFailedException$, 0], [() => BadGatewayException$, 0]]
|
|
728
|
+
];
|
|
729
|
+
var DeleteSession$ = [9, n0, _DS,
|
|
730
|
+
{ [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => DeleteSessionRequest$, () => DeleteSessionResponse$
|
|
731
|
+
];
|
|
732
|
+
var GetSession$ = [9, n0, _GS,
|
|
733
|
+
{ [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => GetSessionRequest$, () => GetSessionResponse$
|
|
734
|
+
];
|
|
735
|
+
var PutSession$ = [9, n0, _PS,
|
|
736
|
+
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] }, () => PutSessionRequest$, () => PutSessionResponse$
|
|
737
|
+
];
|
|
738
|
+
var RecognizeText$ = [9, n0, _RT,
|
|
739
|
+
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] }, () => RecognizeTextRequest$, () => RecognizeTextResponse$
|
|
740
|
+
];
|
|
741
|
+
var RecognizeUtterance$ = [9, n0, _RU,
|
|
742
|
+
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] }, () => RecognizeUtteranceRequest$, () => RecognizeUtteranceResponse$
|
|
743
|
+
];
|
|
744
|
+
var StartConversation$ = [9, n0, _SC,
|
|
745
|
+
{ [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation", 200] }, () => StartConversationRequest$, () => StartConversationResponse$
|
|
746
|
+
];
|
|
747
|
+
|
|
748
|
+
const getRuntimeConfig$1 = (config) => {
|
|
749
|
+
return {
|
|
750
|
+
apiVersion: "2020-08-07",
|
|
751
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
752
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
753
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
754
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
755
|
+
extensions: config?.extensions ?? [],
|
|
756
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultLexRuntimeV2HttpAuthSchemeProvider,
|
|
757
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
758
|
+
{
|
|
759
|
+
schemeId: "aws.auth#sigv4",
|
|
760
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
761
|
+
signer: new AwsSdkSigV4Signer(),
|
|
762
|
+
},
|
|
763
|
+
],
|
|
764
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
765
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
766
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
767
|
+
defaultNamespace: "com.amazonaws.lexruntimev2",
|
|
768
|
+
errorTypeRegistries,
|
|
769
|
+
version: "2020-08-07",
|
|
770
|
+
serviceTarget: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
771
|
+
},
|
|
772
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
773
|
+
serviceId: config?.serviceId ?? "Lex Runtime V2",
|
|
774
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
775
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
776
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
const getRuntimeConfig = (config) => {
|
|
781
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
782
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
783
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
784
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
785
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
786
|
+
const loaderConfig = {
|
|
787
|
+
profile: config?.profile,
|
|
788
|
+
logger: clientSharedValues.logger,
|
|
789
|
+
};
|
|
790
|
+
return {
|
|
791
|
+
...clientSharedValues,
|
|
792
|
+
...config,
|
|
793
|
+
runtime: "node",
|
|
794
|
+
defaultsMode,
|
|
795
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
796
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
797
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
798
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
799
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
800
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
801
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
802
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
803
|
+
requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
|
|
804
|
+
...await defaultConfigProvider(),
|
|
805
|
+
disableConcurrentStreams: true
|
|
806
|
+
}))),
|
|
807
|
+
retryMode: config?.retryMode ??
|
|
808
|
+
loadConfig({
|
|
809
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
810
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
811
|
+
}, config),
|
|
812
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
813
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
814
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
815
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
816
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
|
|
36
820
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
821
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
822
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -269,22 +1053,92 @@ const PlaybackInterruptionReason = {
|
|
|
269
1053
|
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
270
1054
|
};
|
|
271
1055
|
|
|
1056
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1057
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1058
|
+
exports.ActiveContext$ = ActiveContext$;
|
|
1059
|
+
exports.ActiveContextTimeToLive$ = ActiveContextTimeToLive$;
|
|
1060
|
+
exports.AudioInputEvent$ = AudioInputEvent$;
|
|
1061
|
+
exports.AudioResponseEvent$ = AudioResponseEvent$;
|
|
1062
|
+
exports.BadGatewayException = BadGatewayException;
|
|
1063
|
+
exports.BadGatewayException$ = BadGatewayException$;
|
|
1064
|
+
exports.Button$ = Button$;
|
|
1065
|
+
exports.ConfidenceScore$ = ConfidenceScore$;
|
|
1066
|
+
exports.ConfigurationEvent$ = ConfigurationEvent$;
|
|
272
1067
|
exports.ConfirmationState = ConfirmationState;
|
|
1068
|
+
exports.ConflictException = ConflictException;
|
|
1069
|
+
exports.ConflictException$ = ConflictException$;
|
|
273
1070
|
exports.ConversationMode = ConversationMode;
|
|
1071
|
+
exports.DTMFInputEvent$ = DTMFInputEvent$;
|
|
1072
|
+
exports.DeleteSession$ = DeleteSession$;
|
|
274
1073
|
exports.DeleteSessionCommand = DeleteSessionCommand;
|
|
1074
|
+
exports.DeleteSessionRequest$ = DeleteSessionRequest$;
|
|
1075
|
+
exports.DeleteSessionResponse$ = DeleteSessionResponse$;
|
|
1076
|
+
exports.DependencyFailedException = DependencyFailedException;
|
|
1077
|
+
exports.DependencyFailedException$ = DependencyFailedException$;
|
|
1078
|
+
exports.DialogAction$ = DialogAction$;
|
|
275
1079
|
exports.DialogActionType = DialogActionType;
|
|
1080
|
+
exports.DisconnectionEvent$ = DisconnectionEvent$;
|
|
1081
|
+
exports.ElicitSubSlot$ = ElicitSubSlot$;
|
|
1082
|
+
exports.GetSession$ = GetSession$;
|
|
276
1083
|
exports.GetSessionCommand = GetSessionCommand;
|
|
1084
|
+
exports.GetSessionRequest$ = GetSessionRequest$;
|
|
1085
|
+
exports.GetSessionResponse$ = GetSessionResponse$;
|
|
1086
|
+
exports.HeartbeatEvent$ = HeartbeatEvent$;
|
|
1087
|
+
exports.ImageResponseCard$ = ImageResponseCard$;
|
|
277
1088
|
exports.InputMode = InputMode;
|
|
1089
|
+
exports.Intent$ = Intent$;
|
|
1090
|
+
exports.IntentResultEvent$ = IntentResultEvent$;
|
|
278
1091
|
exports.IntentState = IntentState;
|
|
1092
|
+
exports.InternalServerException = InternalServerException;
|
|
1093
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
1094
|
+
exports.Interpretation$ = Interpretation$;
|
|
279
1095
|
exports.InterpretationSource = InterpretationSource;
|
|
280
1096
|
exports.LexRuntimeV2 = LexRuntimeV2;
|
|
281
1097
|
exports.LexRuntimeV2Client = LexRuntimeV2Client;
|
|
1098
|
+
exports.LexRuntimeV2ServiceException = LexRuntimeV2ServiceException;
|
|
1099
|
+
exports.LexRuntimeV2ServiceException$ = LexRuntimeV2ServiceException$;
|
|
1100
|
+
exports.Message$ = Message$;
|
|
282
1101
|
exports.MessageContentType = MessageContentType;
|
|
1102
|
+
exports.PlaybackCompletionEvent$ = PlaybackCompletionEvent$;
|
|
1103
|
+
exports.PlaybackInterruptionEvent$ = PlaybackInterruptionEvent$;
|
|
283
1104
|
exports.PlaybackInterruptionReason = PlaybackInterruptionReason;
|
|
1105
|
+
exports.PutSession$ = PutSession$;
|
|
284
1106
|
exports.PutSessionCommand = PutSessionCommand;
|
|
1107
|
+
exports.PutSessionRequest$ = PutSessionRequest$;
|
|
1108
|
+
exports.PutSessionResponse$ = PutSessionResponse$;
|
|
1109
|
+
exports.RecognizeText$ = RecognizeText$;
|
|
285
1110
|
exports.RecognizeTextCommand = RecognizeTextCommand;
|
|
1111
|
+
exports.RecognizeTextRequest$ = RecognizeTextRequest$;
|
|
1112
|
+
exports.RecognizeTextResponse$ = RecognizeTextResponse$;
|
|
1113
|
+
exports.RecognizeUtterance$ = RecognizeUtterance$;
|
|
286
1114
|
exports.RecognizeUtteranceCommand = RecognizeUtteranceCommand;
|
|
1115
|
+
exports.RecognizeUtteranceRequest$ = RecognizeUtteranceRequest$;
|
|
1116
|
+
exports.RecognizeUtteranceResponse$ = RecognizeUtteranceResponse$;
|
|
1117
|
+
exports.RecognizedBotMember$ = RecognizedBotMember$;
|
|
1118
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1119
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1120
|
+
exports.RuntimeHintDetails$ = RuntimeHintDetails$;
|
|
1121
|
+
exports.RuntimeHintValue$ = RuntimeHintValue$;
|
|
1122
|
+
exports.RuntimeHints$ = RuntimeHints$;
|
|
1123
|
+
exports.SentimentResponse$ = SentimentResponse$;
|
|
1124
|
+
exports.SentimentScore$ = SentimentScore$;
|
|
287
1125
|
exports.SentimentType = SentimentType;
|
|
1126
|
+
exports.SessionState$ = SessionState$;
|
|
288
1127
|
exports.Shape = Shape;
|
|
1128
|
+
exports.Slot$ = Slot$;
|
|
1129
|
+
exports.StartConversation$ = StartConversation$;
|
|
289
1130
|
exports.StartConversationCommand = StartConversationCommand;
|
|
1131
|
+
exports.StartConversationRequest$ = StartConversationRequest$;
|
|
1132
|
+
exports.StartConversationRequestEventStream$ = StartConversationRequestEventStream$;
|
|
1133
|
+
exports.StartConversationResponse$ = StartConversationResponse$;
|
|
1134
|
+
exports.StartConversationResponseEventStream$ = StartConversationResponseEventStream$;
|
|
290
1135
|
exports.StyleType = StyleType;
|
|
1136
|
+
exports.TextInputEvent$ = TextInputEvent$;
|
|
1137
|
+
exports.TextResponseEvent$ = TextResponseEvent$;
|
|
1138
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1139
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
1140
|
+
exports.TranscriptEvent$ = TranscriptEvent$;
|
|
1141
|
+
exports.ValidationException = ValidationException;
|
|
1142
|
+
exports.ValidationException$ = ValidationException$;
|
|
1143
|
+
exports.Value$ = Value$;
|
|
1144
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|