@aws-sdk/client-lex-runtime-v2 3.377.0 → 3.379.1
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-types/commands/PutSessionCommand.d.ts +3 -2
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +5 -10
- package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +4 -5
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +8 -3
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +15 -14
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -4
- package/package.json +41 -41
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack,
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadOutputTypes } from "@smithy/types";
|
|
4
4
|
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
5
5
|
import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
@@ -19,7 +19,8 @@ export interface PutSessionCommandInput extends PutSessionRequest {
|
|
|
19
19
|
*
|
|
20
20
|
* The output of {@link PutSessionCommand}.
|
|
21
21
|
*/
|
|
22
|
-
export interface PutSessionCommandOutput extends
|
|
22
|
+
export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audioStream">, __MetadataBearer {
|
|
23
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack,
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadInputTypes, StreamingBlobPayloadOutputTypes } from "@smithy/types";
|
|
5
4
|
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
6
5
|
import { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
|
|
7
6
|
/**
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
10
9
|
export { __MetadataBearer, $Command };
|
|
11
|
-
export type RecognizeUtteranceCommandInputType = Omit<RecognizeUtteranceRequest, "inputStream"> & {
|
|
12
|
-
/**
|
|
13
|
-
* For *`RecognizeUtteranceRequest["inputStream"]`*, see {@link RecognizeUtteranceRequest.inputStream}.
|
|
14
|
-
*/
|
|
15
|
-
inputStream?: RecognizeUtteranceRequest["inputStream"] | string | Uint8Array | Buffer;
|
|
16
|
-
};
|
|
17
10
|
/**
|
|
18
11
|
* @public
|
|
19
12
|
*
|
|
20
13
|
* The input for {@link RecognizeUtteranceCommand}.
|
|
21
14
|
*/
|
|
22
|
-
export interface RecognizeUtteranceCommandInput extends
|
|
15
|
+
export interface RecognizeUtteranceCommandInput extends Omit<RecognizeUtteranceRequest, "inputStream"> {
|
|
16
|
+
inputStream?: StreamingBlobPayloadInputTypes;
|
|
23
17
|
}
|
|
24
18
|
/**
|
|
25
19
|
* @public
|
|
26
20
|
*
|
|
27
21
|
* The output of {@link RecognizeUtteranceCommand}.
|
|
28
22
|
*/
|
|
29
|
-
export interface RecognizeUtteranceCommandOutput extends
|
|
23
|
+
export interface RecognizeUtteranceCommandOutput extends Omit<RecognizeUtteranceResponse, "audioStream">, __MetadataBearer {
|
|
24
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
30
25
|
}
|
|
31
26
|
/**
|
|
32
27
|
* @public
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface ClientInputEndpointParameters {
|
|
3
6
|
region?: string | Provider<string>;
|
|
4
7
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export * from "./LexRuntimeV2Client";
|
|
7
7
|
export * from "./LexRuntimeV2";
|
|
8
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
8
9
|
export * from "./commands";
|
|
9
10
|
export * from "./models";
|
|
10
11
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { StreamingBlobTypes } from "@smithy/types";
|
|
4
3
|
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
5
4
|
/**
|
|
6
5
|
* @public
|
|
@@ -568,7 +567,7 @@ export interface PutSessionResponse {
|
|
|
568
567
|
* <p>If the requested content type was audio, the audio version of the
|
|
569
568
|
* message to convey to the user.</p>
|
|
570
569
|
*/
|
|
571
|
-
audioStream?:
|
|
570
|
+
audioStream?: StreamingBlobTypes;
|
|
572
571
|
}
|
|
573
572
|
/**
|
|
574
573
|
* @public
|
|
@@ -711,7 +710,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
711
710
|
* <p>User input in PCM or Opus audio format or text format as described
|
|
712
711
|
* in the <code>requestContentType</code> parameter.</p>
|
|
713
712
|
*/
|
|
714
|
-
inputStream?:
|
|
713
|
+
inputStream?: StreamingBlobTypes;
|
|
715
714
|
}
|
|
716
715
|
/**
|
|
717
716
|
* @public
|
|
@@ -798,7 +797,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
798
797
|
* to convey to the user. Then Amazon Lex V2 sends that message in the
|
|
799
798
|
* response.</p>
|
|
800
799
|
*/
|
|
801
|
-
audioStream?:
|
|
800
|
+
audioStream?: StreamingBlobTypes;
|
|
802
801
|
/**
|
|
803
802
|
* <p>The bot member that recognized the utterance.</p>
|
|
804
803
|
*/
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
6
|
MetadataBearer as __MetadataBearer,
|
|
7
7
|
MiddlewareStack,
|
|
8
|
-
|
|
8
|
+
StreamingBlobPayloadOutputTypes,
|
|
9
9
|
} from "@smithy/types";
|
|
10
10
|
import {
|
|
11
11
|
LexRuntimeV2ClientResolvedConfig,
|
|
@@ -16,8 +16,13 @@ import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
|
|
|
16
16
|
export { __MetadataBearer, $Command };
|
|
17
17
|
export interface PutSessionCommandInput extends PutSessionRequest {}
|
|
18
18
|
export interface PutSessionCommandOutput
|
|
19
|
-
extends
|
|
20
|
-
|
|
19
|
+
extends Pick<
|
|
20
|
+
PutSessionResponse,
|
|
21
|
+
Exclude<keyof PutSessionResponse, "audioStream">
|
|
22
|
+
>,
|
|
23
|
+
__MetadataBearer {
|
|
24
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
25
|
+
}
|
|
21
26
|
export declare class PutSessionCommand extends $Command<
|
|
22
27
|
PutSessionCommandInput,
|
|
23
28
|
PutSessionCommandOutput,
|
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
6
|
MetadataBearer as __MetadataBearer,
|
|
7
7
|
MiddlewareStack,
|
|
8
|
-
|
|
8
|
+
StreamingBlobPayloadInputTypes,
|
|
9
|
+
StreamingBlobPayloadOutputTypes,
|
|
9
10
|
} from "@smithy/types";
|
|
10
11
|
import {
|
|
11
12
|
LexRuntimeV2ClientResolvedConfig,
|
|
@@ -17,21 +18,21 @@ import {
|
|
|
17
18
|
RecognizeUtteranceResponse,
|
|
18
19
|
} from "../models/models_0";
|
|
19
20
|
export { __MetadataBearer, $Command };
|
|
20
|
-
export type RecognizeUtteranceCommandInputType = Pick<
|
|
21
|
-
RecognizeUtteranceRequest,
|
|
22
|
-
Exclude<keyof RecognizeUtteranceRequest, "inputStream">
|
|
23
|
-
> & {
|
|
24
|
-
inputStream?:
|
|
25
|
-
| RecognizeUtteranceRequest["inputStream"]
|
|
26
|
-
| string
|
|
27
|
-
| Uint8Array
|
|
28
|
-
| Buffer;
|
|
29
|
-
};
|
|
30
21
|
export interface RecognizeUtteranceCommandInput
|
|
31
|
-
extends
|
|
22
|
+
extends Pick<
|
|
23
|
+
RecognizeUtteranceRequest,
|
|
24
|
+
Exclude<keyof RecognizeUtteranceRequest, "inputStream">
|
|
25
|
+
> {
|
|
26
|
+
inputStream?: StreamingBlobPayloadInputTypes;
|
|
27
|
+
}
|
|
32
28
|
export interface RecognizeUtteranceCommandOutput
|
|
33
|
-
extends
|
|
34
|
-
|
|
29
|
+
extends Pick<
|
|
30
|
+
RecognizeUtteranceResponse,
|
|
31
|
+
Exclude<keyof RecognizeUtteranceResponse, "audioStream">
|
|
32
|
+
>,
|
|
33
|
+
__MetadataBearer {
|
|
34
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
35
|
+
}
|
|
35
36
|
export declare class RecognizeUtteranceCommand extends $Command<
|
|
36
37
|
RecognizeUtteranceCommandInput,
|
|
37
38
|
RecognizeUtteranceCommandOutput,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./LexRuntimeV2Client";
|
|
2
2
|
export * from "./LexRuntimeV2";
|
|
3
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
3
4
|
export * from "./commands";
|
|
4
5
|
export * from "./models";
|
|
5
6
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import {
|
|
2
|
+
import { StreamingBlobTypes } from "@smithy/types";
|
|
3
3
|
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
4
4
|
export declare class AccessDeniedException extends __BaseException {
|
|
5
5
|
readonly name: "AccessDeniedException";
|
|
@@ -188,7 +188,7 @@ export interface PutSessionResponse {
|
|
|
188
188
|
sessionState?: string;
|
|
189
189
|
requestAttributes?: string;
|
|
190
190
|
sessionId?: string;
|
|
191
|
-
audioStream?:
|
|
191
|
+
audioStream?: StreamingBlobTypes;
|
|
192
192
|
}
|
|
193
193
|
export interface RecognizedBotMember {
|
|
194
194
|
botId: string | undefined;
|
|
@@ -203,7 +203,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
203
203
|
requestAttributes?: string;
|
|
204
204
|
requestContentType: string | undefined;
|
|
205
205
|
responseContentType?: string;
|
|
206
|
-
inputStream?:
|
|
206
|
+
inputStream?: StreamingBlobTypes;
|
|
207
207
|
}
|
|
208
208
|
export interface RecognizeUtteranceResponse {
|
|
209
209
|
inputMode?: string;
|
|
@@ -214,7 +214,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
214
214
|
requestAttributes?: string;
|
|
215
215
|
sessionId?: string;
|
|
216
216
|
inputTranscript?: string;
|
|
217
|
-
audioStream?:
|
|
217
|
+
audioStream?: StreamingBlobTypes;
|
|
218
218
|
recognizedBotMember?: string;
|
|
219
219
|
}
|
|
220
220
|
export declare const ConversationMode: {
|
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.379.1",
|
|
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",
|
|
@@ -21,49 +21,49 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-signing": "3.
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^
|
|
38
|
-
"@smithy/eventstream-serde-browser": "^
|
|
39
|
-
"@smithy/eventstream-serde-config-resolver": "^
|
|
40
|
-
"@smithy/eventstream-serde-node": "^
|
|
41
|
-
"@smithy/fetch-http-handler": "^
|
|
42
|
-
"@smithy/hash-node": "^
|
|
43
|
-
"@smithy/invalid-dependency": "^
|
|
44
|
-
"@smithy/middleware-content-length": "^
|
|
45
|
-
"@smithy/middleware-endpoint": "^
|
|
46
|
-
"@smithy/middleware-retry": "^
|
|
47
|
-
"@smithy/middleware-serde": "^
|
|
48
|
-
"@smithy/middleware-stack": "^
|
|
49
|
-
"@smithy/node-config-provider": "^
|
|
50
|
-
"@smithy/node-http-handler": "^
|
|
51
|
-
"@smithy/protocol-http": "^
|
|
52
|
-
"@smithy/smithy-client": "^
|
|
53
|
-
"@smithy/types": "^
|
|
54
|
-
"@smithy/url-parser": "^
|
|
55
|
-
"@smithy/util-base64": "^
|
|
56
|
-
"@smithy/util-body-length-browser": "^
|
|
57
|
-
"@smithy/util-body-length-node": "^
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^
|
|
60
|
-
"@smithy/util-retry": "^
|
|
61
|
-
"@smithy/util-stream": "^
|
|
62
|
-
"@smithy/util-utf8": "^
|
|
24
|
+
"@aws-sdk/client-sts": "3.379.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.379.1",
|
|
26
|
+
"@aws-sdk/eventstream-handler-node": "3.378.0",
|
|
27
|
+
"@aws-sdk/middleware-eventstream": "3.379.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.378.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
31
|
+
"@aws-sdk/middleware-signing": "3.379.1",
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.379.1",
|
|
33
|
+
"@aws-sdk/types": "3.378.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.378.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
37
|
+
"@smithy/config-resolver": "^2.0.1",
|
|
38
|
+
"@smithy/eventstream-serde-browser": "^2.0.1",
|
|
39
|
+
"@smithy/eventstream-serde-config-resolver": "^2.0.1",
|
|
40
|
+
"@smithy/eventstream-serde-node": "^2.0.1",
|
|
41
|
+
"@smithy/fetch-http-handler": "^2.0.1",
|
|
42
|
+
"@smithy/hash-node": "^2.0.1",
|
|
43
|
+
"@smithy/invalid-dependency": "^2.0.1",
|
|
44
|
+
"@smithy/middleware-content-length": "^2.0.1",
|
|
45
|
+
"@smithy/middleware-endpoint": "^2.0.1",
|
|
46
|
+
"@smithy/middleware-retry": "^2.0.1",
|
|
47
|
+
"@smithy/middleware-serde": "^2.0.1",
|
|
48
|
+
"@smithy/middleware-stack": "^2.0.0",
|
|
49
|
+
"@smithy/node-config-provider": "^2.0.1",
|
|
50
|
+
"@smithy/node-http-handler": "^2.0.1",
|
|
51
|
+
"@smithy/protocol-http": "^2.0.1",
|
|
52
|
+
"@smithy/smithy-client": "^2.0.1",
|
|
53
|
+
"@smithy/types": "^2.0.2",
|
|
54
|
+
"@smithy/url-parser": "^2.0.1",
|
|
55
|
+
"@smithy/util-base64": "^2.0.0",
|
|
56
|
+
"@smithy/util-body-length-browser": "^2.0.0",
|
|
57
|
+
"@smithy/util-body-length-node": "^2.0.0",
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^2.0.1",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^2.0.1",
|
|
60
|
+
"@smithy/util-retry": "^2.0.0",
|
|
61
|
+
"@smithy/util-stream": "^2.0.1",
|
|
62
|
+
"@smithy/util-utf8": "^2.0.0",
|
|
63
63
|
"tslib": "^2.5.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@smithy/service-client-documentation-generator": "^
|
|
66
|
+
"@smithy/service-client-documentation-generator": "^2.0.0",
|
|
67
67
|
"@tsconfig/node14": "1.0.3",
|
|
68
68
|
"@types/node": "^14.14.31",
|
|
69
69
|
"concurrently": "7.0.0",
|