@aws-sdk/client-lex-runtime-v2 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/LexRuntimeV2ServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +107 -2
- package/dist-cjs/protocols/Aws_restJson1.js +126 -357
- package/dist-es/index.js +1 -0
- package/dist-es/models/LexRuntimeV2ServiceException.js +12 -0
- package/dist-es/models/models_0.js +98 -1
- package/dist-es/protocols/Aws_restJson1.js +199 -391
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/LexRuntimeV2ServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +35 -0
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +85 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/LexRuntimeV2ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +363 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +40 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +39 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +38 -38
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Readable } from "stream";
|
|
4
|
+
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
5
|
+
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
|
|
10
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ActiveContextTimeToLive {
|
|
14
|
+
|
|
15
|
+
timeToLiveInSeconds: number | undefined;
|
|
16
|
+
|
|
17
|
+
turnsToLive: number | undefined;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ActiveContextTimeToLive {
|
|
20
|
+
|
|
21
|
+
const filterSensitiveLog: (obj: ActiveContextTimeToLive) => any;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ActiveContext {
|
|
25
|
+
|
|
26
|
+
name: string | undefined;
|
|
27
|
+
|
|
28
|
+
timeToLive: ActiveContextTimeToLive | undefined;
|
|
29
|
+
|
|
30
|
+
contextAttributes: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace ActiveContext {
|
|
35
|
+
|
|
36
|
+
const filterSensitiveLog: (obj: ActiveContext) => any;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface AudioInputEvent {
|
|
40
|
+
|
|
41
|
+
audioChunk?: Uint8Array;
|
|
42
|
+
|
|
43
|
+
contentType: string | undefined;
|
|
44
|
+
|
|
45
|
+
eventId?: string;
|
|
46
|
+
|
|
47
|
+
clientTimestampMillis?: number;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace AudioInputEvent {
|
|
50
|
+
|
|
51
|
+
const filterSensitiveLog: (obj: AudioInputEvent) => any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AudioResponseEvent {
|
|
55
|
+
|
|
56
|
+
audioChunk?: Uint8Array;
|
|
57
|
+
|
|
58
|
+
contentType?: string;
|
|
59
|
+
|
|
60
|
+
eventId?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace AudioResponseEvent {
|
|
63
|
+
|
|
64
|
+
const filterSensitiveLog: (obj: AudioResponseEvent) => any;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare class ConflictException extends __BaseException {
|
|
68
|
+
readonly name: "ConflictException";
|
|
69
|
+
readonly $fault: "client";
|
|
70
|
+
|
|
71
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
72
|
+
}
|
|
73
|
+
export interface DeleteSessionRequest {
|
|
74
|
+
|
|
75
|
+
botId: string | undefined;
|
|
76
|
+
|
|
77
|
+
botAliasId: string | undefined;
|
|
78
|
+
|
|
79
|
+
localeId: string | undefined;
|
|
80
|
+
|
|
81
|
+
sessionId: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
export declare namespace DeleteSessionRequest {
|
|
84
|
+
|
|
85
|
+
const filterSensitiveLog: (obj: DeleteSessionRequest) => any;
|
|
86
|
+
}
|
|
87
|
+
export interface DeleteSessionResponse {
|
|
88
|
+
|
|
89
|
+
botId?: string;
|
|
90
|
+
|
|
91
|
+
botAliasId?: string;
|
|
92
|
+
|
|
93
|
+
localeId?: string;
|
|
94
|
+
|
|
95
|
+
sessionId?: string;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace DeleteSessionResponse {
|
|
98
|
+
|
|
99
|
+
const filterSensitiveLog: (obj: DeleteSessionResponse) => any;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare class InternalServerException extends __BaseException {
|
|
103
|
+
readonly name: "InternalServerException";
|
|
104
|
+
readonly $fault: "server";
|
|
105
|
+
|
|
106
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
110
|
+
readonly name: "ResourceNotFoundException";
|
|
111
|
+
readonly $fault: "client";
|
|
112
|
+
|
|
113
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare class ThrottlingException extends __BaseException {
|
|
117
|
+
readonly name: "ThrottlingException";
|
|
118
|
+
readonly $fault: "client";
|
|
119
|
+
|
|
120
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare class ValidationException extends __BaseException {
|
|
124
|
+
readonly name: "ValidationException";
|
|
125
|
+
readonly $fault: "client";
|
|
126
|
+
|
|
127
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
128
|
+
}
|
|
129
|
+
export interface GetSessionRequest {
|
|
130
|
+
|
|
131
|
+
botId: string | undefined;
|
|
132
|
+
|
|
133
|
+
botAliasId: string | undefined;
|
|
134
|
+
|
|
135
|
+
localeId: string | undefined;
|
|
136
|
+
|
|
137
|
+
sessionId: string | undefined;
|
|
138
|
+
}
|
|
139
|
+
export declare namespace GetSessionRequest {
|
|
140
|
+
|
|
141
|
+
const filterSensitiveLog: (obj: GetSessionRequest) => any;
|
|
142
|
+
}
|
|
143
|
+
export declare enum ConfirmationState {
|
|
144
|
+
CONFIRMED = "Confirmed",
|
|
145
|
+
DENIED = "Denied",
|
|
146
|
+
NONE = "None"
|
|
147
|
+
}
|
|
148
|
+
export declare enum Shape {
|
|
149
|
+
LIST = "List",
|
|
150
|
+
SCALAR = "Scalar"
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface Value {
|
|
154
|
+
|
|
155
|
+
originalValue?: string;
|
|
156
|
+
|
|
157
|
+
interpretedValue: string | undefined;
|
|
158
|
+
|
|
159
|
+
resolvedValues?: string[];
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Value {
|
|
162
|
+
|
|
163
|
+
const filterSensitiveLog: (obj: Value) => any;
|
|
164
|
+
}
|
|
165
|
+
export declare enum IntentState {
|
|
166
|
+
FAILED = "Failed",
|
|
167
|
+
FULFILLED = "Fulfilled",
|
|
168
|
+
FULFILLMENT_IN_PROGRESS = "FulfillmentInProgress",
|
|
169
|
+
IN_PROGRESS = "InProgress",
|
|
170
|
+
READY_FOR_FULFILLMENT = "ReadyForFulfillment",
|
|
171
|
+
WAITING = "Waiting"
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface ConfidenceScore {
|
|
175
|
+
|
|
176
|
+
score?: number;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace ConfidenceScore {
|
|
179
|
+
|
|
180
|
+
const filterSensitiveLog: (obj: ConfidenceScore) => any;
|
|
181
|
+
}
|
|
182
|
+
export declare enum SentimentType {
|
|
183
|
+
MIXED = "MIXED",
|
|
184
|
+
NEGATIVE = "NEGATIVE",
|
|
185
|
+
NEUTRAL = "NEUTRAL",
|
|
186
|
+
POSITIVE = "POSITIVE"
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface SentimentScore {
|
|
190
|
+
|
|
191
|
+
positive?: number;
|
|
192
|
+
|
|
193
|
+
negative?: number;
|
|
194
|
+
|
|
195
|
+
neutral?: number;
|
|
196
|
+
|
|
197
|
+
mixed?: number;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace SentimentScore {
|
|
200
|
+
|
|
201
|
+
const filterSensitiveLog: (obj: SentimentScore) => any;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface SentimentResponse {
|
|
205
|
+
|
|
206
|
+
sentiment?: SentimentType | string;
|
|
207
|
+
|
|
208
|
+
sentimentScore?: SentimentScore;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace SentimentResponse {
|
|
211
|
+
|
|
212
|
+
const filterSensitiveLog: (obj: SentimentResponse) => any;
|
|
213
|
+
}
|
|
214
|
+
export declare enum MessageContentType {
|
|
215
|
+
CUSTOM_PAYLOAD = "CustomPayload",
|
|
216
|
+
IMAGE_RESPONSE_CARD = "ImageResponseCard",
|
|
217
|
+
PLAIN_TEXT = "PlainText",
|
|
218
|
+
SSML = "SSML"
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface Button {
|
|
222
|
+
|
|
223
|
+
text: string | undefined;
|
|
224
|
+
|
|
225
|
+
value: string | undefined;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace Button {
|
|
228
|
+
|
|
229
|
+
const filterSensitiveLog: (obj: Button) => any;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface ImageResponseCard {
|
|
233
|
+
|
|
234
|
+
title: string | undefined;
|
|
235
|
+
|
|
236
|
+
subtitle?: string;
|
|
237
|
+
|
|
238
|
+
imageUrl?: string;
|
|
239
|
+
|
|
240
|
+
buttons?: Button[];
|
|
241
|
+
}
|
|
242
|
+
export declare namespace ImageResponseCard {
|
|
243
|
+
|
|
244
|
+
const filterSensitiveLog: (obj: ImageResponseCard) => any;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface Message {
|
|
248
|
+
|
|
249
|
+
content?: string;
|
|
250
|
+
|
|
251
|
+
contentType: MessageContentType | string | undefined;
|
|
252
|
+
|
|
253
|
+
imageResponseCard?: ImageResponseCard;
|
|
254
|
+
}
|
|
255
|
+
export declare namespace Message {
|
|
256
|
+
|
|
257
|
+
const filterSensitiveLog: (obj: Message) => any;
|
|
258
|
+
}
|
|
259
|
+
export declare enum StyleType {
|
|
260
|
+
DEFAULT = "Default",
|
|
261
|
+
SPELL_BY_LETTER = "SpellByLetter",
|
|
262
|
+
SPELL_BY_WORD = "SpellByWord"
|
|
263
|
+
}
|
|
264
|
+
export declare enum DialogActionType {
|
|
265
|
+
CLOSE = "Close",
|
|
266
|
+
CONFIRM_INTENT = "ConfirmIntent",
|
|
267
|
+
DELEGATE = "Delegate",
|
|
268
|
+
ELICIT_INTENT = "ElicitIntent",
|
|
269
|
+
ELICIT_SLOT = "ElicitSlot",
|
|
270
|
+
NONE = "None"
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface DialogAction {
|
|
274
|
+
|
|
275
|
+
type: DialogActionType | string | undefined;
|
|
276
|
+
|
|
277
|
+
slotToElicit?: string;
|
|
278
|
+
|
|
279
|
+
slotElicitationStyle?: StyleType | string;
|
|
280
|
+
}
|
|
281
|
+
export declare namespace DialogAction {
|
|
282
|
+
|
|
283
|
+
const filterSensitiveLog: (obj: DialogAction) => any;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface RuntimeHintValue {
|
|
287
|
+
|
|
288
|
+
phrase: string | undefined;
|
|
289
|
+
}
|
|
290
|
+
export declare namespace RuntimeHintValue {
|
|
291
|
+
|
|
292
|
+
const filterSensitiveLog: (obj: RuntimeHintValue) => any;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface RuntimeHintDetails {
|
|
296
|
+
|
|
297
|
+
runtimeHintValues: RuntimeHintValue[] | undefined;
|
|
298
|
+
}
|
|
299
|
+
export declare namespace RuntimeHintDetails {
|
|
300
|
+
|
|
301
|
+
const filterSensitiveLog: (obj: RuntimeHintDetails) => any;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export interface RuntimeHints {
|
|
305
|
+
|
|
306
|
+
slotHints?: {
|
|
307
|
+
[key: string]: {
|
|
308
|
+
[key: string]: RuntimeHintDetails;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
export declare namespace RuntimeHints {
|
|
313
|
+
|
|
314
|
+
const filterSensitiveLog: (obj: RuntimeHints) => any;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export declare class BadGatewayException extends __BaseException {
|
|
318
|
+
readonly name: "BadGatewayException";
|
|
319
|
+
readonly $fault: "server";
|
|
320
|
+
|
|
321
|
+
constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export declare class DependencyFailedException extends __BaseException {
|
|
325
|
+
readonly name: "DependencyFailedException";
|
|
326
|
+
readonly $fault: "client";
|
|
327
|
+
|
|
328
|
+
constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
|
|
329
|
+
}
|
|
330
|
+
export interface PutSessionResponse {
|
|
331
|
+
|
|
332
|
+
contentType?: string;
|
|
333
|
+
|
|
334
|
+
messages?: string;
|
|
335
|
+
|
|
336
|
+
sessionState?: string;
|
|
337
|
+
|
|
338
|
+
requestAttributes?: string;
|
|
339
|
+
|
|
340
|
+
sessionId?: string;
|
|
341
|
+
|
|
342
|
+
audioStream?: Readable | ReadableStream | Blob;
|
|
343
|
+
}
|
|
344
|
+
export declare namespace PutSessionResponse {
|
|
345
|
+
|
|
346
|
+
const filterSensitiveLog: (obj: PutSessionResponse) => any;
|
|
347
|
+
}
|
|
348
|
+
export interface RecognizeUtteranceRequest {
|
|
349
|
+
|
|
350
|
+
botId: string | undefined;
|
|
351
|
+
|
|
352
|
+
botAliasId: string | undefined;
|
|
353
|
+
|
|
354
|
+
localeId: string | undefined;
|
|
355
|
+
|
|
356
|
+
sessionId: string | undefined;
|
|
357
|
+
|
|
358
|
+
sessionState?: string;
|
|
359
|
+
|
|
360
|
+
requestAttributes?: string;
|
|
361
|
+
|
|
362
|
+
requestContentType: string | undefined;
|
|
363
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "../commands/DeleteSessionCommand";
|
|
4
|
+
import { GetSessionCommandInput, GetSessionCommandOutput } from "../commands/GetSessionCommand";
|
|
5
|
+
import { PutSessionCommandInput, PutSessionCommandOutput } from "../commands/PutSessionCommand";
|
|
6
|
+
import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "../commands/RecognizeTextCommand";
|
|
7
|
+
import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "../commands/RecognizeUtteranceCommand";
|
|
8
|
+
import { StartConversationCommandInput, StartConversationCommandOutput } from "../commands/StartConversationCommand";
|
|
9
|
+
export declare const serializeAws_restJson1DeleteSessionCommand: (input: DeleteSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
+
export declare const serializeAws_restJson1GetSessionCommand: (input: GetSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
+
export declare const serializeAws_restJson1PutSessionCommand: (input: PutSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
|
+
export declare const serializeAws_restJson1RecognizeTextCommand: (input: RecognizeTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
export declare const serializeAws_restJson1RecognizeUtteranceCommand: (input: RecognizeUtteranceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
+
export declare const serializeAws_restJson1StartConversationCommand: (input: StartConversationCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
export declare const deserializeAws_restJson1DeleteSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteSessionCommandOutput>;
|
|
16
|
+
export declare const deserializeAws_restJson1GetSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSessionCommandOutput>;
|
|
17
|
+
export declare const deserializeAws_restJson1PutSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutSessionCommandOutput>;
|
|
18
|
+
export declare const deserializeAws_restJson1RecognizeTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RecognizeTextCommandOutput>;
|
|
19
|
+
export declare const deserializeAws_restJson1RecognizeUtteranceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RecognizeUtteranceCommandOutput>;
|
|
20
|
+
export declare const deserializeAws_restJson1StartConversationCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartConversationCommandOutput>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
5
|
+
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
|
|
13
|
+
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
14
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
15
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
17
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
18
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
19
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
23
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
24
|
+
apiVersion: string;
|
|
25
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@aws-sdk/types").Logger;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
30
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
31
|
+
tls?: boolean | undefined;
|
|
32
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
33
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
34
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
35
|
+
signingEscapePath?: boolean | undefined;
|
|
36
|
+
systemClockOffset?: number | undefined;
|
|
37
|
+
signingRegion?: string | undefined;
|
|
38
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
39
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NodeHttp2Handler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
5
|
+
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
+
eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
|
|
13
|
+
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
14
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
15
|
+
region: string | import("@aws-sdk/types").Provider<string>;
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttp2Handler;
|
|
17
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
18
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
19
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
23
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
24
|
+
apiVersion: string;
|
|
25
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@aws-sdk/types").Logger;
|
|
28
|
+
serviceId: string;
|
|
29
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
30
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
31
|
+
tls?: boolean | undefined;
|
|
32
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
33
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
34
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
35
|
+
signingEscapePath?: boolean | undefined;
|
|
36
|
+
systemClockOffset?: number | undefined;
|
|
37
|
+
signingRegion?: string | undefined;
|
|
38
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
39
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
40
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
2
|
+
|
|
3
|
+
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
4
|
+
runtime: string;
|
|
5
|
+
eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
|
|
6
|
+
sha256: import("@aws-sdk/types").HashConstructor;
|
|
7
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
10
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
+
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
12
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
13
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
14
|
+
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
15
|
+
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
16
|
+
disableHostPrefix: boolean;
|
|
17
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
18
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
19
|
+
logger: import("@aws-sdk/types").Logger;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
serviceId: string;
|
|
23
|
+
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
24
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
25
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
26
|
+
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
27
|
+
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
29
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
|
+
tls?: boolean | undefined;
|
|
31
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
32
|
+
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
33
|
+
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
34
|
+
signingEscapePath?: boolean | undefined;
|
|
35
|
+
systemClockOffset?: number | undefined;
|
|
36
|
+
signingRegion?: string | undefined;
|
|
37
|
+
signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
|
|
38
|
+
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
|
|
39
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
+
import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
3
|
+
|
|
4
|
+
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
5
|
+
apiVersion: string;
|
|
6
|
+
disableHostPrefix: boolean;
|
|
7
|
+
logger: __Logger;
|
|
8
|
+
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
9
|
+
serviceId: string;
|
|
10
|
+
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.53.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "rimraf ./dist-*"
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -18,45 +18,45 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
25
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
26
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
27
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
28
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
29
|
-
"@aws-sdk/hash-node": "3.
|
|
30
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
31
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
32
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
33
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
34
|
-
"@aws-sdk/middleware-logger": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
47
|
-
"@aws-sdk/util-base64-node": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
55
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.53.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.53.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.53.0",
|
|
24
|
+
"@aws-sdk/eventstream-handler-node": "3.53.0",
|
|
25
|
+
"@aws-sdk/eventstream-serde-browser": "3.53.0",
|
|
26
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.53.0",
|
|
27
|
+
"@aws-sdk/eventstream-serde-node": "3.53.0",
|
|
28
|
+
"@aws-sdk/fetch-http-handler": "3.53.0",
|
|
29
|
+
"@aws-sdk/hash-node": "3.53.0",
|
|
30
|
+
"@aws-sdk/invalid-dependency": "3.53.0",
|
|
31
|
+
"@aws-sdk/middleware-content-length": "3.53.0",
|
|
32
|
+
"@aws-sdk/middleware-eventstream": "3.53.0",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.53.0",
|
|
34
|
+
"@aws-sdk/middleware-logger": "3.53.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.53.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.53.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.53.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.53.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.53.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.53.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.53.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.53.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.53.0",
|
|
44
|
+
"@aws-sdk/types": "3.53.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.53.0",
|
|
46
|
+
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
47
|
+
"@aws-sdk/util-base64-node": "3.52.0",
|
|
48
|
+
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
49
|
+
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.53.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.53.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.53.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.53.0",
|
|
54
|
+
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
55
|
+
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
56
56
|
"tslib": "^2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.52.0",
|
|
60
60
|
"@tsconfig/recommended": "1.0.1",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"concurrently": "7.0.0",
|