@aws-sdk/client-lex-runtime-v2 3.687.0 → 3.692.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.
@@ -18,15 +18,15 @@ export interface ActiveContext {
18
18
  contextAttributes: Record<string, string> | undefined;
19
19
  }
20
20
  export interface AudioInputEvent {
21
- audioChunk?: Uint8Array;
21
+ audioChunk?: Uint8Array | undefined;
22
22
  contentType: string | undefined;
23
- eventId?: string;
24
- clientTimestampMillis?: number;
23
+ eventId?: string | undefined;
24
+ clientTimestampMillis?: number | undefined;
25
25
  }
26
26
  export interface AudioResponseEvent {
27
- audioChunk?: Uint8Array;
28
- contentType?: string;
29
- eventId?: string;
27
+ audioChunk?: Uint8Array | undefined;
28
+ contentType?: string | undefined;
29
+ eventId?: string | undefined;
30
30
  }
31
31
  export declare class ConflictException extends __BaseException {
32
32
  readonly name: "ConflictException";
@@ -40,10 +40,10 @@ export interface DeleteSessionRequest {
40
40
  sessionId: string | undefined;
41
41
  }
42
42
  export interface DeleteSessionResponse {
43
- botId?: string;
44
- botAliasId?: string;
45
- localeId?: string;
46
- sessionId?: string;
43
+ botId?: string | undefined;
44
+ botAliasId?: string | undefined;
45
+ localeId?: string | undefined;
46
+ sessionId?: string | undefined;
47
47
  }
48
48
  export declare class InternalServerException extends __BaseException {
49
49
  readonly name: "InternalServerException";
@@ -93,9 +93,9 @@ export declare const Shape: {
93
93
  };
94
94
  export type Shape = (typeof Shape)[keyof typeof Shape];
95
95
  export interface Value {
96
- originalValue?: string;
96
+ originalValue?: string | undefined;
97
97
  interpretedValue: string | undefined;
98
- resolvedValues?: string[];
98
+ resolvedValues?: string[] | undefined;
99
99
  }
100
100
  export declare const IntentState: {
101
101
  readonly FAILED: "Failed";
@@ -113,7 +113,7 @@ export declare const InterpretationSource: {
113
113
  export type InterpretationSource =
114
114
  (typeof InterpretationSource)[keyof typeof InterpretationSource];
115
115
  export interface ConfidenceScore {
116
- score?: number;
116
+ score?: number | undefined;
117
117
  }
118
118
  export declare const SentimentType: {
119
119
  readonly MIXED: "MIXED";
@@ -123,14 +123,14 @@ export declare const SentimentType: {
123
123
  };
124
124
  export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
125
125
  export interface SentimentScore {
126
- positive?: number;
127
- negative?: number;
128
- neutral?: number;
129
- mixed?: number;
126
+ positive?: number | undefined;
127
+ negative?: number | undefined;
128
+ neutral?: number | undefined;
129
+ mixed?: number | undefined;
130
130
  }
131
131
  export interface SentimentResponse {
132
- sentiment?: SentimentType;
133
- sentimentScore?: SentimentScore;
132
+ sentiment?: SentimentType | undefined;
133
+ sentimentScore?: SentimentScore | undefined;
134
134
  }
135
135
  export declare const MessageContentType: {
136
136
  readonly CUSTOM_PAYLOAD: "CustomPayload";
@@ -146,14 +146,14 @@ export interface Button {
146
146
  }
147
147
  export interface ImageResponseCard {
148
148
  title: string | undefined;
149
- subtitle?: string;
150
- imageUrl?: string;
151
- buttons?: Button[];
149
+ subtitle?: string | undefined;
150
+ imageUrl?: string | undefined;
151
+ buttons?: Button[] | undefined;
152
152
  }
153
153
  export interface Message {
154
- content?: string;
154
+ content?: string | undefined;
155
155
  contentType: MessageContentType | undefined;
156
- imageResponseCard?: ImageResponseCard;
156
+ imageResponseCard?: ImageResponseCard | undefined;
157
157
  }
158
158
  export declare const StyleType: {
159
159
  readonly DEFAULT: "Default";
@@ -189,39 +189,39 @@ export declare class DependencyFailedException extends __BaseException {
189
189
  );
190
190
  }
191
191
  export interface PutSessionResponse {
192
- contentType?: string;
193
- messages?: string;
194
- sessionState?: string;
195
- requestAttributes?: string;
196
- sessionId?: string;
197
- audioStream?: StreamingBlobTypes;
192
+ contentType?: string | undefined;
193
+ messages?: string | undefined;
194
+ sessionState?: string | undefined;
195
+ requestAttributes?: string | undefined;
196
+ sessionId?: string | undefined;
197
+ audioStream?: StreamingBlobTypes | undefined;
198
198
  }
199
199
  export interface RecognizedBotMember {
200
200
  botId: string | undefined;
201
- botName?: string;
201
+ botName?: string | undefined;
202
202
  }
203
203
  export interface RecognizeUtteranceRequest {
204
204
  botId: string | undefined;
205
205
  botAliasId: string | undefined;
206
206
  localeId: string | undefined;
207
207
  sessionId: string | undefined;
208
- sessionState?: string;
209
- requestAttributes?: string;
208
+ sessionState?: string | undefined;
209
+ requestAttributes?: string | undefined;
210
210
  requestContentType: string | undefined;
211
- responseContentType?: string;
212
- inputStream?: StreamingBlobTypes;
211
+ responseContentType?: string | undefined;
212
+ inputStream?: StreamingBlobTypes | undefined;
213
213
  }
214
214
  export interface RecognizeUtteranceResponse {
215
- inputMode?: string;
216
- contentType?: string;
217
- messages?: string;
218
- interpretations?: string;
219
- sessionState?: string;
220
- requestAttributes?: string;
221
- sessionId?: string;
222
- inputTranscript?: string;
223
- audioStream?: StreamingBlobTypes;
224
- recognizedBotMember?: string;
215
+ inputMode?: string | undefined;
216
+ contentType?: string | undefined;
217
+ messages?: string | undefined;
218
+ interpretations?: string | undefined;
219
+ sessionState?: string | undefined;
220
+ requestAttributes?: string | undefined;
221
+ sessionId?: string | undefined;
222
+ inputTranscript?: string | undefined;
223
+ audioStream?: StreamingBlobTypes | undefined;
224
+ recognizedBotMember?: string | undefined;
225
225
  }
226
226
  export declare const ConversationMode: {
227
227
  readonly AUDIO: "AUDIO";
@@ -230,25 +230,25 @@ export declare const ConversationMode: {
230
230
  export type ConversationMode =
231
231
  (typeof ConversationMode)[keyof typeof ConversationMode];
232
232
  export interface DisconnectionEvent {
233
- eventId?: string;
234
- clientTimestampMillis?: number;
233
+ eventId?: string | undefined;
234
+ clientTimestampMillis?: number | undefined;
235
235
  }
236
236
  export interface DTMFInputEvent {
237
237
  inputCharacter: string | undefined;
238
- eventId?: string;
239
- clientTimestampMillis?: number;
238
+ eventId?: string | undefined;
239
+ clientTimestampMillis?: number | undefined;
240
240
  }
241
241
  export interface PlaybackCompletionEvent {
242
- eventId?: string;
243
- clientTimestampMillis?: number;
242
+ eventId?: string | undefined;
243
+ clientTimestampMillis?: number | undefined;
244
244
  }
245
245
  export interface TextInputEvent {
246
246
  text: string | undefined;
247
- eventId?: string;
248
- clientTimestampMillis?: number;
247
+ eventId?: string | undefined;
248
+ clientTimestampMillis?: number | undefined;
249
249
  }
250
250
  export interface HeartbeatEvent {
251
- eventId?: string;
251
+ eventId?: string | undefined;
252
252
  }
253
253
  export declare const InputMode: {
254
254
  readonly DTMF: "DTMF";
@@ -264,79 +264,79 @@ export declare const PlaybackInterruptionReason: {
264
264
  export type PlaybackInterruptionReason =
265
265
  (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
266
266
  export interface PlaybackInterruptionEvent {
267
- eventReason?: PlaybackInterruptionReason;
268
- causedByEventId?: string;
269
- eventId?: string;
267
+ eventReason?: PlaybackInterruptionReason | undefined;
268
+ causedByEventId?: string | undefined;
269
+ eventId?: string | undefined;
270
270
  }
271
271
  export interface TextResponseEvent {
272
- messages?: Message[];
273
- eventId?: string;
272
+ messages?: Message[] | undefined;
273
+ eventId?: string | undefined;
274
274
  }
275
275
  export interface TranscriptEvent {
276
- transcript?: string;
277
- eventId?: string;
276
+ transcript?: string | undefined;
277
+ eventId?: string | undefined;
278
278
  }
279
279
  export interface ElicitSubSlot {
280
280
  name: string | undefined;
281
- subSlotToElicit?: ElicitSubSlot;
281
+ subSlotToElicit?: ElicitSubSlot | undefined;
282
282
  }
283
283
  export interface DialogAction {
284
284
  type: DialogActionType | undefined;
285
- slotToElicit?: string;
286
- slotElicitationStyle?: StyleType;
287
- subSlotToElicit?: ElicitSubSlot;
285
+ slotToElicit?: string | undefined;
286
+ slotElicitationStyle?: StyleType | undefined;
287
+ subSlotToElicit?: ElicitSubSlot | undefined;
288
288
  }
289
289
  export interface RuntimeHintDetails {
290
- runtimeHintValues?: RuntimeHintValue[];
291
- subSlotHints?: Record<string, RuntimeHintDetails>;
290
+ runtimeHintValues?: RuntimeHintValue[] | undefined;
291
+ subSlotHints?: Record<string, RuntimeHintDetails> | undefined;
292
292
  }
293
293
  export interface RuntimeHints {
294
- slotHints?: Record<string, Record<string, RuntimeHintDetails>>;
294
+ slotHints?: Record<string, Record<string, RuntimeHintDetails>> | undefined;
295
295
  }
296
296
  export interface Slot {
297
- value?: Value;
298
- shape?: Shape;
299
- values?: Slot[];
300
- subSlots?: Record<string, Slot>;
297
+ value?: Value | undefined;
298
+ shape?: Shape | undefined;
299
+ values?: Slot[] | undefined;
300
+ subSlots?: Record<string, Slot> | undefined;
301
301
  }
302
302
  export interface Intent {
303
303
  name: string | undefined;
304
- slots?: Record<string, Slot>;
305
- state?: IntentState;
306
- confirmationState?: ConfirmationState;
304
+ slots?: Record<string, Slot> | undefined;
305
+ state?: IntentState | undefined;
306
+ confirmationState?: ConfirmationState | undefined;
307
307
  }
308
308
  export interface Interpretation {
309
- nluConfidence?: ConfidenceScore;
310
- sentimentResponse?: SentimentResponse;
311
- intent?: Intent;
312
- interpretationSource?: InterpretationSource;
309
+ nluConfidence?: ConfidenceScore | undefined;
310
+ sentimentResponse?: SentimentResponse | undefined;
311
+ intent?: Intent | undefined;
312
+ interpretationSource?: InterpretationSource | undefined;
313
313
  }
314
314
  export interface SessionState {
315
- dialogAction?: DialogAction;
316
- intent?: Intent;
317
- activeContexts?: ActiveContext[];
318
- sessionAttributes?: Record<string, string>;
319
- originatingRequestId?: string;
320
- runtimeHints?: RuntimeHints;
315
+ dialogAction?: DialogAction | undefined;
316
+ intent?: Intent | undefined;
317
+ activeContexts?: ActiveContext[] | undefined;
318
+ sessionAttributes?: Record<string, string> | undefined;
319
+ originatingRequestId?: string | undefined;
320
+ runtimeHints?: RuntimeHints | undefined;
321
321
  }
322
322
  export interface ConfigurationEvent {
323
- requestAttributes?: Record<string, string>;
323
+ requestAttributes?: Record<string, string> | undefined;
324
324
  responseContentType: string | undefined;
325
- sessionState?: SessionState;
326
- welcomeMessages?: Message[];
327
- disablePlayback?: boolean;
328
- eventId?: string;
329
- clientTimestampMillis?: number;
325
+ sessionState?: SessionState | undefined;
326
+ welcomeMessages?: Message[] | undefined;
327
+ disablePlayback?: boolean | undefined;
328
+ eventId?: string | undefined;
329
+ clientTimestampMillis?: number | undefined;
330
330
  }
331
331
  export interface PutSessionRequest {
332
332
  botId: string | undefined;
333
333
  botAliasId: string | undefined;
334
334
  localeId: string | undefined;
335
335
  sessionId: string | undefined;
336
- messages?: Message[];
336
+ messages?: Message[] | undefined;
337
337
  sessionState: SessionState | undefined;
338
- requestAttributes?: Record<string, string>;
339
- responseContentType?: string;
338
+ requestAttributes?: Record<string, string> | undefined;
339
+ responseContentType?: string | undefined;
340
340
  }
341
341
  export interface RecognizeTextRequest {
342
342
  botId: string | undefined;
@@ -344,8 +344,8 @@ export interface RecognizeTextRequest {
344
344
  localeId: string | undefined;
345
345
  sessionId: string | undefined;
346
346
  text: string | undefined;
347
- sessionState?: SessionState;
348
- requestAttributes?: Record<string, string>;
347
+ sessionState?: SessionState | undefined;
348
+ requestAttributes?: Record<string, string> | undefined;
349
349
  }
350
350
  export type StartConversationRequestEventStream =
351
351
  | StartConversationRequestEventStream.AudioInputEventMember
@@ -438,33 +438,33 @@ export interface StartConversationRequest {
438
438
  botAliasId: string | undefined;
439
439
  localeId: string | undefined;
440
440
  sessionId: string | undefined;
441
- conversationMode?: ConversationMode;
441
+ conversationMode?: ConversationMode | undefined;
442
442
  requestEventStream:
443
443
  | AsyncIterable<StartConversationRequestEventStream>
444
444
  | undefined;
445
445
  }
446
446
  export interface GetSessionResponse {
447
- sessionId?: string;
448
- messages?: Message[];
449
- interpretations?: Interpretation[];
450
- sessionState?: SessionState;
447
+ sessionId?: string | undefined;
448
+ messages?: Message[] | undefined;
449
+ interpretations?: Interpretation[] | undefined;
450
+ sessionState?: SessionState | undefined;
451
451
  }
452
452
  export interface IntentResultEvent {
453
- inputMode?: InputMode;
454
- interpretations?: Interpretation[];
455
- sessionState?: SessionState;
456
- requestAttributes?: Record<string, string>;
457
- sessionId?: string;
458
- eventId?: string;
459
- recognizedBotMember?: RecognizedBotMember;
453
+ inputMode?: InputMode | undefined;
454
+ interpretations?: Interpretation[] | undefined;
455
+ sessionState?: SessionState | undefined;
456
+ requestAttributes?: Record<string, string> | undefined;
457
+ sessionId?: string | undefined;
458
+ eventId?: string | undefined;
459
+ recognizedBotMember?: RecognizedBotMember | undefined;
460
460
  }
461
461
  export interface RecognizeTextResponse {
462
- messages?: Message[];
463
- sessionState?: SessionState;
464
- interpretations?: Interpretation[];
465
- requestAttributes?: Record<string, string>;
466
- sessionId?: string;
467
- recognizedBotMember?: RecognizedBotMember;
462
+ messages?: Message[] | undefined;
463
+ sessionState?: SessionState | undefined;
464
+ interpretations?: Interpretation[] | undefined;
465
+ requestAttributes?: Record<string, string> | undefined;
466
+ sessionId?: string | undefined;
467
+ recognizedBotMember?: RecognizedBotMember | undefined;
468
468
  }
469
469
  export type StartConversationResponseEventStream =
470
470
  | StartConversationResponseEventStream.AccessDeniedExceptionMember
@@ -761,7 +761,9 @@ export declare namespace StartConversationResponseEventStream {
761
761
  ) => T;
762
762
  }
763
763
  export interface StartConversationResponse {
764
- responseEventStream?: AsyncIterable<StartConversationResponseEventStream>;
764
+ responseEventStream?:
765
+ | AsyncIterable<StartConversationResponseEventStream>
766
+ | undefined;
765
767
  }
766
768
  export declare const ActiveContextFilterSensitiveLog: (
767
769
  obj: ActiveContext
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.687.0",
4
+ "version": "3.692.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-runtime-v2",
@@ -20,49 +20,49 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.687.0",
24
- "@aws-sdk/client-sts": "3.687.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.687.0",
27
- "@aws-sdk/eventstream-handler-node": "3.686.0",
28
- "@aws-sdk/middleware-eventstream": "3.686.0",
29
- "@aws-sdk/middleware-host-header": "3.686.0",
30
- "@aws-sdk/middleware-logger": "3.686.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.686.0",
32
- "@aws-sdk/middleware-user-agent": "3.687.0",
33
- "@aws-sdk/region-config-resolver": "3.686.0",
34
- "@aws-sdk/types": "3.686.0",
35
- "@aws-sdk/util-endpoints": "3.686.0",
36
- "@aws-sdk/util-user-agent-browser": "3.686.0",
37
- "@aws-sdk/util-user-agent-node": "3.687.0",
38
- "@smithy/config-resolver": "^3.0.10",
39
- "@smithy/core": "^2.5.1",
40
- "@smithy/eventstream-serde-browser": "^3.0.11",
41
- "@smithy/eventstream-serde-config-resolver": "^3.0.8",
42
- "@smithy/eventstream-serde-node": "^3.0.10",
43
- "@smithy/fetch-http-handler": "^4.0.0",
44
- "@smithy/hash-node": "^3.0.8",
45
- "@smithy/invalid-dependency": "^3.0.8",
46
- "@smithy/middleware-content-length": "^3.0.10",
47
- "@smithy/middleware-endpoint": "^3.2.1",
48
- "@smithy/middleware-retry": "^3.0.25",
49
- "@smithy/middleware-serde": "^3.0.8",
50
- "@smithy/middleware-stack": "^3.0.8",
51
- "@smithy/node-config-provider": "^3.1.9",
52
- "@smithy/node-http-handler": "^3.2.5",
53
- "@smithy/protocol-http": "^4.1.5",
54
- "@smithy/smithy-client": "^3.4.2",
55
- "@smithy/types": "^3.6.0",
56
- "@smithy/url-parser": "^3.0.8",
23
+ "@aws-sdk/client-sso-oidc": "3.692.0",
24
+ "@aws-sdk/client-sts": "3.692.0",
25
+ "@aws-sdk/core": "3.692.0",
26
+ "@aws-sdk/credential-provider-node": "3.692.0",
27
+ "@aws-sdk/eventstream-handler-node": "3.692.0",
28
+ "@aws-sdk/middleware-eventstream": "3.692.0",
29
+ "@aws-sdk/middleware-host-header": "3.692.0",
30
+ "@aws-sdk/middleware-logger": "3.692.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.692.0",
32
+ "@aws-sdk/middleware-user-agent": "3.692.0",
33
+ "@aws-sdk/region-config-resolver": "3.692.0",
34
+ "@aws-sdk/types": "3.692.0",
35
+ "@aws-sdk/util-endpoints": "3.692.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.692.0",
37
+ "@aws-sdk/util-user-agent-node": "3.692.0",
38
+ "@smithy/config-resolver": "^3.0.11",
39
+ "@smithy/core": "^2.5.2",
40
+ "@smithy/eventstream-serde-browser": "^3.0.12",
41
+ "@smithy/eventstream-serde-config-resolver": "^3.0.9",
42
+ "@smithy/eventstream-serde-node": "^3.0.11",
43
+ "@smithy/fetch-http-handler": "^4.1.0",
44
+ "@smithy/hash-node": "^3.0.9",
45
+ "@smithy/invalid-dependency": "^3.0.9",
46
+ "@smithy/middleware-content-length": "^3.0.11",
47
+ "@smithy/middleware-endpoint": "^3.2.2",
48
+ "@smithy/middleware-retry": "^3.0.26",
49
+ "@smithy/middleware-serde": "^3.0.9",
50
+ "@smithy/middleware-stack": "^3.0.9",
51
+ "@smithy/node-config-provider": "^3.1.10",
52
+ "@smithy/node-http-handler": "^3.3.0",
53
+ "@smithy/protocol-http": "^4.1.6",
54
+ "@smithy/smithy-client": "^3.4.3",
55
+ "@smithy/types": "^3.7.0",
56
+ "@smithy/url-parser": "^3.0.9",
57
57
  "@smithy/util-base64": "^3.0.0",
58
58
  "@smithy/util-body-length-browser": "^3.0.0",
59
59
  "@smithy/util-body-length-node": "^3.0.0",
60
- "@smithy/util-defaults-mode-browser": "^3.0.25",
61
- "@smithy/util-defaults-mode-node": "^3.0.25",
62
- "@smithy/util-endpoints": "^2.1.4",
63
- "@smithy/util-middleware": "^3.0.8",
64
- "@smithy/util-retry": "^3.0.8",
65
- "@smithy/util-stream": "^3.2.1",
60
+ "@smithy/util-defaults-mode-browser": "^3.0.26",
61
+ "@smithy/util-defaults-mode-node": "^3.0.26",
62
+ "@smithy/util-endpoints": "^2.1.5",
63
+ "@smithy/util-middleware": "^3.0.9",
64
+ "@smithy/util-retry": "^3.0.9",
65
+ "@smithy/util-stream": "^3.3.0",
66
66
  "@smithy/util-utf8": "^3.0.0",
67
67
  "tslib": "^2.6.2"
68
68
  },