@aws-sdk/client-lex-runtime-service 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/PostContentCommand.d.ts +5 -10
- package/dist-types/commands/PutSessionCommand.d.ts +3 -2
- 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/PostContentCommand.d.ts +16 -10
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +8 -3
- 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 +36 -36
|
@@ -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 { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
|
|
6
5
|
import { PostContentRequest, PostContentResponse } from "../models/models_0";
|
|
7
6
|
/**
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
10
9
|
export { __MetadataBearer, $Command };
|
|
11
|
-
export type PostContentCommandInputType = Omit<PostContentRequest, "inputStream"> & {
|
|
12
|
-
/**
|
|
13
|
-
* For *`PostContentRequest["inputStream"]`*, see {@link PostContentRequest.inputStream}.
|
|
14
|
-
*/
|
|
15
|
-
inputStream: PostContentRequest["inputStream"] | string | Uint8Array | Buffer;
|
|
16
|
-
};
|
|
17
10
|
/**
|
|
18
11
|
* @public
|
|
19
12
|
*
|
|
20
13
|
* The input for {@link PostContentCommand}.
|
|
21
14
|
*/
|
|
22
|
-
export interface PostContentCommandInput extends
|
|
15
|
+
export interface PostContentCommandInput extends Omit<PostContentRequest, "inputStream"> {
|
|
16
|
+
inputStream: StreamingBlobPayloadInputTypes;
|
|
23
17
|
}
|
|
24
18
|
/**
|
|
25
19
|
* @public
|
|
26
20
|
*
|
|
27
21
|
* The output of {@link PostContentCommand}.
|
|
28
22
|
*/
|
|
29
|
-
export interface PostContentCommandOutput extends
|
|
23
|
+
export interface PostContentCommandOutput extends Omit<PostContentResponse, "audioStream">, __MetadataBearer {
|
|
24
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
30
25
|
}
|
|
31
26
|
/**
|
|
32
27
|
* @public
|
|
@@ -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 { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
|
|
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,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
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export * from "./LexRuntimeServiceClient";
|
|
18
18
|
export * from "./LexRuntimeService";
|
|
19
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
19
20
|
export * from "./commands";
|
|
20
21
|
export * from "./models";
|
|
21
22
|
export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { StreamingBlobTypes } from "@smithy/types";
|
|
4
3
|
import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
|
|
5
4
|
/**
|
|
6
5
|
* @public
|
|
@@ -712,7 +711,7 @@ export interface PostContentRequest {
|
|
|
712
711
|
* better performance if you stream audio data rather than buffering the data
|
|
713
712
|
* locally.</p>
|
|
714
713
|
*/
|
|
715
|
-
inputStream:
|
|
714
|
+
inputStream: StreamingBlobTypes | undefined;
|
|
716
715
|
/**
|
|
717
716
|
* <p>A list of contexts active for the request. A context can be activated
|
|
718
717
|
* when a previous intent is fulfilled, or by including the context in the
|
|
@@ -969,7 +968,7 @@ export interface PostContentResponse {
|
|
|
969
968
|
* intent, and sent a message to convey to the user. Then Amazon Lex sends that
|
|
970
969
|
* message in the response. </p>
|
|
971
970
|
*/
|
|
972
|
-
audioStream?:
|
|
971
|
+
audioStream?: StreamingBlobTypes;
|
|
973
972
|
/**
|
|
974
973
|
* <p>The version of the bot that responded to the conversation. You can use
|
|
975
974
|
* this information to help determine if one version of a bot is performing
|
|
@@ -1649,7 +1648,7 @@ export interface PutSessionResponse {
|
|
|
1649
1648
|
/**
|
|
1650
1649
|
* <p>The audio version of the message to convey to the user.</p>
|
|
1651
1650
|
*/
|
|
1652
|
-
audioStream?:
|
|
1651
|
+
audioStream?: StreamingBlobTypes;
|
|
1653
1652
|
/**
|
|
1654
1653
|
* <p>A unique identifier for the session.</p>
|
|
1655
1654
|
*/
|
|
@@ -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
|
LexRuntimeServiceClientResolvedConfig,
|
|
@@ -14,16 +15,21 @@ import {
|
|
|
14
15
|
} from "../LexRuntimeServiceClient";
|
|
15
16
|
import { PostContentRequest, PostContentResponse } from "../models/models_0";
|
|
16
17
|
export { __MetadataBearer, $Command };
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
export interface PostContentCommandInput
|
|
19
|
+
extends Pick<
|
|
20
|
+
PostContentRequest,
|
|
21
|
+
Exclude<keyof PostContentRequest, "inputStream">
|
|
22
|
+
> {
|
|
23
|
+
inputStream: StreamingBlobPayloadInputTypes;
|
|
24
|
+
}
|
|
24
25
|
export interface PostContentCommandOutput
|
|
25
|
-
extends
|
|
26
|
-
|
|
26
|
+
extends Pick<
|
|
27
|
+
PostContentResponse,
|
|
28
|
+
Exclude<keyof PostContentResponse, "audioStream">
|
|
29
|
+
>,
|
|
30
|
+
__MetadataBearer {
|
|
31
|
+
audioStream?: StreamingBlobPayloadOutputTypes;
|
|
32
|
+
}
|
|
27
33
|
export declare class PostContentCommand extends $Command<
|
|
28
34
|
PostContentCommandInput,
|
|
29
35
|
PostContentCommandOutput,
|
|
@@ -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
|
LexRuntimeServiceClientResolvedConfig,
|
|
@@ -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,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./LexRuntimeServiceClient";
|
|
2
2
|
export * from "./LexRuntimeService";
|
|
3
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
3
4
|
export * from "./commands";
|
|
4
5
|
export * from "./models";
|
|
5
6
|
export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ExceptionOptionType as __ExceptionOptionType,
|
|
3
3
|
LazyJsonString as __LazyJsonString,
|
|
4
4
|
} from "@smithy/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { StreamingBlobTypes } from "@smithy/types";
|
|
6
6
|
import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
|
|
7
7
|
export interface ActiveContextTimeToLive {
|
|
8
8
|
timeToLiveInSeconds?: number;
|
|
@@ -157,7 +157,7 @@ export interface PostContentRequest {
|
|
|
157
157
|
requestAttributes?: __LazyJsonString | string;
|
|
158
158
|
contentType: string | undefined;
|
|
159
159
|
accept?: string;
|
|
160
|
-
inputStream:
|
|
160
|
+
inputStream: StreamingBlobTypes | undefined;
|
|
161
161
|
activeContexts?: __LazyJsonString | string;
|
|
162
162
|
}
|
|
163
163
|
export declare const DialogState: {
|
|
@@ -184,7 +184,7 @@ export interface PostContentResponse {
|
|
|
184
184
|
slotToElicit?: string;
|
|
185
185
|
inputTranscript?: string;
|
|
186
186
|
encodedInputTranscript?: string;
|
|
187
|
-
audioStream?:
|
|
187
|
+
audioStream?: StreamingBlobTypes;
|
|
188
188
|
botVersion?: string;
|
|
189
189
|
sessionId?: string;
|
|
190
190
|
activeContexts?: __LazyJsonString | string;
|
|
@@ -280,7 +280,7 @@ export interface PutSessionResponse {
|
|
|
280
280
|
messageFormat?: MessageFormatType | string;
|
|
281
281
|
dialogState?: DialogState | string;
|
|
282
282
|
slotToElicit?: string;
|
|
283
|
-
audioStream?:
|
|
283
|
+
audioStream?: StreamingBlobTypes;
|
|
284
284
|
sessionId?: string;
|
|
285
285
|
activeContexts?: __LazyJsonString | string;
|
|
286
286
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime Service 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",
|
|
@@ -23,44 +23,44 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "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/fetch-http-handler": "^
|
|
39
|
-
"@smithy/hash-node": "^
|
|
40
|
-
"@smithy/invalid-dependency": "^
|
|
41
|
-
"@smithy/middleware-content-length": "^
|
|
42
|
-
"@smithy/middleware-endpoint": "^
|
|
43
|
-
"@smithy/middleware-retry": "^
|
|
44
|
-
"@smithy/middleware-serde": "^
|
|
45
|
-
"@smithy/middleware-stack": "^
|
|
46
|
-
"@smithy/node-config-provider": "^
|
|
47
|
-
"@smithy/node-http-handler": "^
|
|
48
|
-
"@smithy/protocol-http": "^
|
|
49
|
-
"@smithy/smithy-client": "^
|
|
50
|
-
"@smithy/types": "^
|
|
51
|
-
"@smithy/url-parser": "^
|
|
52
|
-
"@smithy/util-base64": "^
|
|
53
|
-
"@smithy/util-body-length-browser": "^
|
|
54
|
-
"@smithy/util-body-length-node": "^
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^
|
|
57
|
-
"@smithy/util-retry": "^
|
|
58
|
-
"@smithy/util-stream": "^
|
|
59
|
-
"@smithy/util-utf8": "^
|
|
26
|
+
"@aws-sdk/client-sts": "3.379.1",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "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/fetch-http-handler": "^2.0.1",
|
|
39
|
+
"@smithy/hash-node": "^2.0.1",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.0.1",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.0.1",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.0.1",
|
|
43
|
+
"@smithy/middleware-retry": "^2.0.1",
|
|
44
|
+
"@smithy/middleware-serde": "^2.0.1",
|
|
45
|
+
"@smithy/middleware-stack": "^2.0.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.0.1",
|
|
47
|
+
"@smithy/node-http-handler": "^2.0.1",
|
|
48
|
+
"@smithy/protocol-http": "^2.0.1",
|
|
49
|
+
"@smithy/smithy-client": "^2.0.1",
|
|
50
|
+
"@smithy/types": "^2.0.2",
|
|
51
|
+
"@smithy/url-parser": "^2.0.1",
|
|
52
|
+
"@smithy/util-base64": "^2.0.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.0.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.0.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.0.1",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.0.1",
|
|
57
|
+
"@smithy/util-retry": "^2.0.0",
|
|
58
|
+
"@smithy/util-stream": "^2.0.1",
|
|
59
|
+
"@smithy/util-utf8": "^2.0.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.0.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/chai": "^4.2.11",
|
|
66
66
|
"@types/mocha": "^8.0.4",
|