@aws-sdk/client-lex-runtime-v2 3.47.1 → 3.50.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 +35 -0
- package/dist-cjs/models/models_0.js +20 -1
- package/dist-cjs/protocols/Aws_restJson1.js +107 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +98 -2
- package/dist-types/models/models_0.d.ts +75 -1
- package/package.json +44 -38
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +0 -35
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +0 -85
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -24
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -6
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -4
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -323
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -40
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -40
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -39
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
3
|
-
import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
4
|
-
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
5
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
6
|
-
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
7
|
-
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
8
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
11
|
-
import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
12
|
-
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
13
|
-
import { PutSessionCommandInput, PutSessionCommandOutput } from "./commands/PutSessionCommand";
|
|
14
|
-
import { RecognizeTextCommandInput, RecognizeTextCommandOutput } from "./commands/RecognizeTextCommand";
|
|
15
|
-
import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
|
|
16
|
-
import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
|
|
17
|
-
export declare type ServiceInputTypes = DeleteSessionCommandInput | GetSessionCommandInput | PutSessionCommandInput | RecognizeTextCommandInput | RecognizeUtteranceCommandInput | StartConversationCommandInput;
|
|
18
|
-
export declare type ServiceOutputTypes = DeleteSessionCommandOutput | GetSessionCommandOutput | PutSessionCommandOutput | RecognizeTextCommandOutput | RecognizeUtteranceCommandOutput | StartConversationCommandOutput;
|
|
19
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
20
|
-
|
|
21
|
-
requestHandler?: __HttpHandler;
|
|
22
|
-
|
|
23
|
-
sha256?: __HashConstructor;
|
|
24
|
-
|
|
25
|
-
urlParser?: __UrlParser;
|
|
26
|
-
|
|
27
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
28
|
-
|
|
29
|
-
streamCollector?: __StreamCollector;
|
|
30
|
-
|
|
31
|
-
base64Decoder?: __Decoder;
|
|
32
|
-
|
|
33
|
-
base64Encoder?: __Encoder;
|
|
34
|
-
|
|
35
|
-
utf8Decoder?: __Decoder;
|
|
36
|
-
|
|
37
|
-
utf8Encoder?: __Encoder;
|
|
38
|
-
|
|
39
|
-
runtime?: string;
|
|
40
|
-
|
|
41
|
-
disableHostPrefix?: boolean;
|
|
42
|
-
|
|
43
|
-
maxAttempts?: number | __Provider<number>;
|
|
44
|
-
|
|
45
|
-
retryMode?: string | __Provider<string>;
|
|
46
|
-
|
|
47
|
-
logger?: __Logger;
|
|
48
|
-
|
|
49
|
-
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
50
|
-
|
|
51
|
-
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
52
|
-
|
|
53
|
-
serviceId?: string;
|
|
54
|
-
|
|
55
|
-
region?: string | __Provider<string>;
|
|
56
|
-
|
|
57
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
58
|
-
|
|
59
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
60
|
-
|
|
61
|
-
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
62
|
-
|
|
63
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
64
|
-
|
|
65
|
-
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
66
|
-
|
|
67
|
-
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
68
|
-
}
|
|
69
|
-
declare type LexRuntimeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
70
|
-
|
|
71
|
-
export interface LexRuntimeV2ClientConfig extends LexRuntimeV2ClientConfigType {
|
|
72
|
-
}
|
|
73
|
-
declare type LexRuntimeV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & EventStreamResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig;
|
|
74
|
-
|
|
75
|
-
export interface LexRuntimeV2ClientResolvedConfig extends LexRuntimeV2ClientResolvedConfigType {
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export declare class LexRuntimeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeV2ClientResolvedConfig> {
|
|
79
|
-
|
|
80
|
-
readonly config: LexRuntimeV2ClientResolvedConfig;
|
|
81
|
-
constructor(configuration: LexRuntimeV2ClientConfig);
|
|
82
|
-
|
|
83
|
-
destroy(): void;
|
|
84
|
-
}
|
|
85
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
4
|
-
import { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
|
|
5
|
-
export interface DeleteSessionCommandInput extends DeleteSessionRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
11
|
-
readonly input: DeleteSessionCommandInput;
|
|
12
|
-
constructor(input: DeleteSessionCommandInput);
|
|
13
|
-
|
|
14
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
|
|
15
|
-
private serialize;
|
|
16
|
-
private deserialize;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
4
|
-
import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
|
|
5
|
-
export interface GetSessionCommandInput extends GetSessionRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
11
|
-
readonly input: GetSessionCommandInput;
|
|
12
|
-
constructor(input: GetSessionCommandInput);
|
|
13
|
-
|
|
14
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
|
|
15
|
-
private serialize;
|
|
16
|
-
private deserialize;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
4
|
-
import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
|
|
5
|
-
export interface PutSessionCommandInput extends PutSessionRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface PutSessionCommandOutput extends PutSessionResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
11
|
-
readonly input: PutSessionCommandInput;
|
|
12
|
-
constructor(input: PutSessionCommandInput);
|
|
13
|
-
|
|
14
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
|
|
15
|
-
private serialize;
|
|
16
|
-
private deserialize;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
4
|
-
import { RecognizeTextRequest, RecognizeTextResponse } from "../models/models_0";
|
|
5
|
-
export interface RecognizeTextCommandInput extends RecognizeTextRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare class RecognizeTextCommand extends $Command<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
11
|
-
readonly input: RecognizeTextCommandInput;
|
|
12
|
-
constructor(input: RecognizeTextCommandInput);
|
|
13
|
-
|
|
14
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeTextCommandInput, RecognizeTextCommandOutput>;
|
|
15
|
-
private serialize;
|
|
16
|
-
private deserialize;
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
5
|
-
import { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
|
|
6
|
-
declare type RecognizeUtteranceCommandInputType = Pick<RecognizeUtteranceRequest, Exclude<keyof RecognizeUtteranceRequest, "inputStream">> & {
|
|
7
|
-
|
|
8
|
-
inputStream?: RecognizeUtteranceRequest["inputStream"] | string | Uint8Array | Buffer;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export interface RecognizeUtteranceCommandInput extends RecognizeUtteranceCommandInputType {
|
|
12
|
-
}
|
|
13
|
-
export interface RecognizeUtteranceCommandOutput extends RecognizeUtteranceResponse, __MetadataBearer {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare class RecognizeUtteranceCommand extends $Command<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
17
|
-
readonly input: RecognizeUtteranceCommandInput;
|
|
18
|
-
constructor(input: RecognizeUtteranceCommandInput);
|
|
19
|
-
|
|
20
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput>;
|
|
21
|
-
private serialize;
|
|
22
|
-
private deserialize;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
|
|
4
|
-
import { StartConversationRequest, StartConversationResponse } from "../models/models_0";
|
|
5
|
-
export interface StartConversationCommandInput extends StartConversationRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface StartConversationCommandOutput extends StartConversationResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare class StartConversationCommand extends $Command<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig> {
|
|
11
|
-
readonly input: StartConversationCommandInput;
|
|
12
|
-
constructor(input: StartConversationCommandInput);
|
|
13
|
-
|
|
14
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartConversationCommandInput, StartConversationCommandOutput>;
|
|
15
|
-
private serialize;
|
|
16
|
-
private deserialize;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
import { Readable } from "stream";
|
|
4
|
-
|
|
5
|
-
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
|
|
6
|
-
name: "AccessDeniedException";
|
|
7
|
-
$fault: "client";
|
|
8
|
-
message: string | undefined;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ActiveContextTimeToLive {
|
|
12
|
-
|
|
13
|
-
timeToLiveInSeconds: number | undefined;
|
|
14
|
-
|
|
15
|
-
turnsToLive: number | undefined;
|
|
16
|
-
}
|
|
17
|
-
export declare namespace ActiveContextTimeToLive {
|
|
18
|
-
|
|
19
|
-
const filterSensitiveLog: (obj: ActiveContextTimeToLive) => any;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ActiveContext {
|
|
23
|
-
|
|
24
|
-
name: string | undefined;
|
|
25
|
-
|
|
26
|
-
timeToLive: ActiveContextTimeToLive | undefined;
|
|
27
|
-
|
|
28
|
-
contextAttributes: {
|
|
29
|
-
[key: string]: string;
|
|
30
|
-
} | undefined;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace ActiveContext {
|
|
33
|
-
|
|
34
|
-
const filterSensitiveLog: (obj: ActiveContext) => any;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface AudioInputEvent {
|
|
38
|
-
|
|
39
|
-
audioChunk?: Uint8Array;
|
|
40
|
-
|
|
41
|
-
contentType: string | undefined;
|
|
42
|
-
|
|
43
|
-
eventId?: string;
|
|
44
|
-
|
|
45
|
-
clientTimestampMillis?: number;
|
|
46
|
-
}
|
|
47
|
-
export declare namespace AudioInputEvent {
|
|
48
|
-
|
|
49
|
-
const filterSensitiveLog: (obj: AudioInputEvent) => any;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface AudioResponseEvent {
|
|
53
|
-
|
|
54
|
-
audioChunk?: Uint8Array;
|
|
55
|
-
|
|
56
|
-
contentType?: string;
|
|
57
|
-
|
|
58
|
-
eventId?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare namespace AudioResponseEvent {
|
|
61
|
-
|
|
62
|
-
const filterSensitiveLog: (obj: AudioResponseEvent) => any;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
66
|
-
name: "ConflictException";
|
|
67
|
-
$fault: "client";
|
|
68
|
-
message: string | undefined;
|
|
69
|
-
}
|
|
70
|
-
export interface DeleteSessionRequest {
|
|
71
|
-
|
|
72
|
-
botId: string | undefined;
|
|
73
|
-
|
|
74
|
-
botAliasId: string | undefined;
|
|
75
|
-
|
|
76
|
-
localeId: string | undefined;
|
|
77
|
-
|
|
78
|
-
sessionId: string | undefined;
|
|
79
|
-
}
|
|
80
|
-
export declare namespace DeleteSessionRequest {
|
|
81
|
-
|
|
82
|
-
const filterSensitiveLog: (obj: DeleteSessionRequest) => any;
|
|
83
|
-
}
|
|
84
|
-
export interface DeleteSessionResponse {
|
|
85
|
-
|
|
86
|
-
botId?: string;
|
|
87
|
-
|
|
88
|
-
botAliasId?: string;
|
|
89
|
-
|
|
90
|
-
localeId?: string;
|
|
91
|
-
|
|
92
|
-
sessionId?: string;
|
|
93
|
-
}
|
|
94
|
-
export declare namespace DeleteSessionResponse {
|
|
95
|
-
|
|
96
|
-
const filterSensitiveLog: (obj: DeleteSessionResponse) => any;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
100
|
-
name: "InternalServerException";
|
|
101
|
-
$fault: "server";
|
|
102
|
-
message: string | undefined;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
106
|
-
name: "ResourceNotFoundException";
|
|
107
|
-
$fault: "client";
|
|
108
|
-
message: string | undefined;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface ThrottlingException extends __SmithyException, $MetadataBearer {
|
|
112
|
-
name: "ThrottlingException";
|
|
113
|
-
$fault: "client";
|
|
114
|
-
message: string | undefined;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface ValidationException extends __SmithyException, $MetadataBearer {
|
|
118
|
-
name: "ValidationException";
|
|
119
|
-
$fault: "client";
|
|
120
|
-
message: string | undefined;
|
|
121
|
-
}
|
|
122
|
-
export interface GetSessionRequest {
|
|
123
|
-
|
|
124
|
-
botId: string | undefined;
|
|
125
|
-
|
|
126
|
-
botAliasId: string | undefined;
|
|
127
|
-
|
|
128
|
-
localeId: string | undefined;
|
|
129
|
-
|
|
130
|
-
sessionId: string | undefined;
|
|
131
|
-
}
|
|
132
|
-
export declare namespace GetSessionRequest {
|
|
133
|
-
|
|
134
|
-
const filterSensitiveLog: (obj: GetSessionRequest) => any;
|
|
135
|
-
}
|
|
136
|
-
export declare enum ConfirmationState {
|
|
137
|
-
CONFIRMED = "Confirmed",
|
|
138
|
-
DENIED = "Denied",
|
|
139
|
-
NONE = "None"
|
|
140
|
-
}
|
|
141
|
-
export declare enum Shape {
|
|
142
|
-
LIST = "List",
|
|
143
|
-
SCALAR = "Scalar"
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface Value {
|
|
147
|
-
|
|
148
|
-
originalValue?: string;
|
|
149
|
-
|
|
150
|
-
interpretedValue: string | undefined;
|
|
151
|
-
|
|
152
|
-
resolvedValues?: string[];
|
|
153
|
-
}
|
|
154
|
-
export declare namespace Value {
|
|
155
|
-
|
|
156
|
-
const filterSensitiveLog: (obj: Value) => any;
|
|
157
|
-
}
|
|
158
|
-
export declare enum IntentState {
|
|
159
|
-
FAILED = "Failed",
|
|
160
|
-
FULFILLED = "Fulfilled",
|
|
161
|
-
FULFILLMENT_IN_PROGRESS = "FulfillmentInProgress",
|
|
162
|
-
IN_PROGRESS = "InProgress",
|
|
163
|
-
READY_FOR_FULFILLMENT = "ReadyForFulfillment",
|
|
164
|
-
WAITING = "Waiting"
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface ConfidenceScore {
|
|
168
|
-
|
|
169
|
-
score?: number;
|
|
170
|
-
}
|
|
171
|
-
export declare namespace ConfidenceScore {
|
|
172
|
-
|
|
173
|
-
const filterSensitiveLog: (obj: ConfidenceScore) => any;
|
|
174
|
-
}
|
|
175
|
-
export declare enum SentimentType {
|
|
176
|
-
MIXED = "MIXED",
|
|
177
|
-
NEGATIVE = "NEGATIVE",
|
|
178
|
-
NEUTRAL = "NEUTRAL",
|
|
179
|
-
POSITIVE = "POSITIVE"
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface SentimentScore {
|
|
183
|
-
|
|
184
|
-
positive?: number;
|
|
185
|
-
|
|
186
|
-
negative?: number;
|
|
187
|
-
|
|
188
|
-
neutral?: number;
|
|
189
|
-
|
|
190
|
-
mixed?: number;
|
|
191
|
-
}
|
|
192
|
-
export declare namespace SentimentScore {
|
|
193
|
-
|
|
194
|
-
const filterSensitiveLog: (obj: SentimentScore) => any;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface SentimentResponse {
|
|
198
|
-
|
|
199
|
-
sentiment?: SentimentType | string;
|
|
200
|
-
|
|
201
|
-
sentimentScore?: SentimentScore;
|
|
202
|
-
}
|
|
203
|
-
export declare namespace SentimentResponse {
|
|
204
|
-
|
|
205
|
-
const filterSensitiveLog: (obj: SentimentResponse) => any;
|
|
206
|
-
}
|
|
207
|
-
export declare enum MessageContentType {
|
|
208
|
-
CUSTOM_PAYLOAD = "CustomPayload",
|
|
209
|
-
IMAGE_RESPONSE_CARD = "ImageResponseCard",
|
|
210
|
-
PLAIN_TEXT = "PlainText",
|
|
211
|
-
SSML = "SSML"
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export interface Button {
|
|
215
|
-
|
|
216
|
-
text: string | undefined;
|
|
217
|
-
|
|
218
|
-
value: string | undefined;
|
|
219
|
-
}
|
|
220
|
-
export declare namespace Button {
|
|
221
|
-
|
|
222
|
-
const filterSensitiveLog: (obj: Button) => any;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface ImageResponseCard {
|
|
226
|
-
|
|
227
|
-
title: string | undefined;
|
|
228
|
-
|
|
229
|
-
subtitle?: string;
|
|
230
|
-
|
|
231
|
-
imageUrl?: string;
|
|
232
|
-
|
|
233
|
-
buttons?: Button[];
|
|
234
|
-
}
|
|
235
|
-
export declare namespace ImageResponseCard {
|
|
236
|
-
|
|
237
|
-
const filterSensitiveLog: (obj: ImageResponseCard) => any;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface Message {
|
|
241
|
-
|
|
242
|
-
content?: string;
|
|
243
|
-
|
|
244
|
-
contentType: MessageContentType | string | undefined;
|
|
245
|
-
|
|
246
|
-
imageResponseCard?: ImageResponseCard;
|
|
247
|
-
}
|
|
248
|
-
export declare namespace Message {
|
|
249
|
-
|
|
250
|
-
const filterSensitiveLog: (obj: Message) => any;
|
|
251
|
-
}
|
|
252
|
-
export declare enum StyleType {
|
|
253
|
-
DEFAULT = "Default",
|
|
254
|
-
SPELL_BY_LETTER = "SpellByLetter",
|
|
255
|
-
SPELL_BY_WORD = "SpellByWord"
|
|
256
|
-
}
|
|
257
|
-
export declare enum DialogActionType {
|
|
258
|
-
CLOSE = "Close",
|
|
259
|
-
CONFIRM_INTENT = "ConfirmIntent",
|
|
260
|
-
DELEGATE = "Delegate",
|
|
261
|
-
ELICIT_INTENT = "ElicitIntent",
|
|
262
|
-
ELICIT_SLOT = "ElicitSlot",
|
|
263
|
-
NONE = "None"
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface DialogAction {
|
|
267
|
-
|
|
268
|
-
type: DialogActionType | string | undefined;
|
|
269
|
-
|
|
270
|
-
slotToElicit?: string;
|
|
271
|
-
|
|
272
|
-
slotElicitationStyle?: StyleType | string;
|
|
273
|
-
}
|
|
274
|
-
export declare namespace DialogAction {
|
|
275
|
-
|
|
276
|
-
const filterSensitiveLog: (obj: DialogAction) => any;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface BadGatewayException extends __SmithyException, $MetadataBearer {
|
|
280
|
-
name: "BadGatewayException";
|
|
281
|
-
$fault: "server";
|
|
282
|
-
message: string | undefined;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
|
|
286
|
-
name: "DependencyFailedException";
|
|
287
|
-
$fault: "client";
|
|
288
|
-
message: string | undefined;
|
|
289
|
-
}
|
|
290
|
-
export interface PutSessionResponse {
|
|
291
|
-
|
|
292
|
-
contentType?: string;
|
|
293
|
-
|
|
294
|
-
messages?: string;
|
|
295
|
-
|
|
296
|
-
sessionState?: string;
|
|
297
|
-
|
|
298
|
-
requestAttributes?: string;
|
|
299
|
-
|
|
300
|
-
sessionId?: string;
|
|
301
|
-
|
|
302
|
-
audioStream?: Readable | ReadableStream | Blob;
|
|
303
|
-
}
|
|
304
|
-
export declare namespace PutSessionResponse {
|
|
305
|
-
|
|
306
|
-
const filterSensitiveLog: (obj: PutSessionResponse) => any;
|
|
307
|
-
}
|
|
308
|
-
export interface RecognizeUtteranceRequest {
|
|
309
|
-
|
|
310
|
-
botId: string | undefined;
|
|
311
|
-
|
|
312
|
-
botAliasId: string | undefined;
|
|
313
|
-
|
|
314
|
-
localeId: string | undefined;
|
|
315
|
-
|
|
316
|
-
sessionId: string | undefined;
|
|
317
|
-
|
|
318
|
-
sessionState?: string;
|
|
319
|
-
|
|
320
|
-
requestAttributes?: string;
|
|
321
|
-
|
|
322
|
-
requestContentType: string | undefined;
|
|
323
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
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>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
};
|