@aws-sdk/client-lex-runtime-v2 3.193.0 → 3.196.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 +19 -0
- package/dist-cjs/LexRuntimeV2Client.js +13 -10
- package/dist-cjs/commands/DeleteSessionCommand.js +10 -0
- package/dist-cjs/commands/GetSessionCommand.js +10 -0
- package/dist-cjs/commands/PutSessionCommand.js +10 -0
- package/dist-cjs/commands/RecognizeTextCommand.js +10 -0
- package/dist-cjs/commands/RecognizeUtteranceCommand.js +10 -0
- package/dist-cjs/commands/StartConversationCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +318 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/LexRuntimeV2Client.js +14 -11
- package/dist-es/commands/DeleteSessionCommand.js +10 -0
- package/dist-es/commands/GetSessionCommand.js +10 -0
- package/dist-es/commands/PutSessionCommand.js +10 -0
- package/dist-es/commands/RecognizeTextCommand.js +10 -0
- package/dist-es/commands/RecognizeUtteranceCommand.js +10 -0
- package/dist-es/commands/StartConversationCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +315 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/LexRuntimeV2Client.d.ts +6 -9
- package/dist-types/commands/DeleteSessionCommand.d.ts +2 -0
- package/dist-types/commands/GetSessionCommand.d.ts +2 -0
- package/dist-types/commands/PutSessionCommand.d.ts +2 -0
- package/dist-types/commands/RecognizeTextCommand.d.ts +2 -0
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +2 -0
- package/dist-types/commands/StartConversationCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +15 -8
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +5 -3
- package/dist-cjs/endpoints.js +0 -132
- package/dist-es/endpoints.js +0 -128
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -29,8 +29,10 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
29
29
|
disableHostPrefix: boolean;
|
|
30
30
|
logger: import("@aws-sdk/types").Logger;
|
|
31
31
|
serviceId: string;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
|
|
33
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
34
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
35
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
34
36
|
tls?: boolean | undefined;
|
|
35
37
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
36
38
|
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
@@ -24,12 +24,14 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
24
24
|
serviceId: string;
|
|
25
25
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
26
26
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
27
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
28
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
29
28
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
30
29
|
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
31
30
|
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
32
|
-
endpoint?: string | import("@aws-sdk/types").Endpoint
|
|
31
|
+
endpoint?: string | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Endpoint & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").EndpointV2 & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@aws-sdk/types").Provider<string>) | undefined;
|
|
32
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
33
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
34
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
33
35
|
tls?: boolean | undefined;
|
|
34
36
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
35
37
|
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
|
|
@@ -6,8 +6,10 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
disableHostPrefix: boolean;
|
|
9
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
10
|
+
logger?: __Logger | undefined;
|
|
11
|
+
}) => import("@aws-sdk/types").EndpointV2;
|
|
9
12
|
logger: __Logger;
|
|
10
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
11
13
|
serviceId: string;
|
|
12
14
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
13
15
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
2
|
RegionInputConfig,
|
|
5
3
|
RegionResolvedConfig,
|
|
6
4
|
} from "@aws-sdk/config-resolver";
|
|
@@ -8,6 +6,10 @@ import {
|
|
|
8
6
|
EventStreamSerdeInputConfig,
|
|
9
7
|
EventStreamSerdeResolvedConfig,
|
|
10
8
|
} from "@aws-sdk/eventstream-serde-config-resolver";
|
|
9
|
+
import {
|
|
10
|
+
EndpointInputConfig,
|
|
11
|
+
EndpointResolvedConfig,
|
|
12
|
+
} from "@aws-sdk/middleware-endpoint";
|
|
11
13
|
import {
|
|
12
14
|
EventStreamInputConfig,
|
|
13
15
|
EventStreamResolvedConfig,
|
|
@@ -47,7 +49,6 @@ import {
|
|
|
47
49
|
Logger as __Logger,
|
|
48
50
|
Provider as __Provider,
|
|
49
51
|
Provider,
|
|
50
|
-
RegionInfoProvider,
|
|
51
52
|
SdkStreamMixinInjector as __SdkStreamMixinInjector,
|
|
52
53
|
StreamCollector as __StreamCollector,
|
|
53
54
|
UrlParser as __UrlParser,
|
|
@@ -77,6 +78,11 @@ import {
|
|
|
77
78
|
StartConversationCommandInput,
|
|
78
79
|
StartConversationCommandOutput,
|
|
79
80
|
} from "./commands/StartConversationCommand";
|
|
81
|
+
import {
|
|
82
|
+
ClientInputEndpointParameters,
|
|
83
|
+
ClientResolvedEndpointParameters,
|
|
84
|
+
EndpointParameters,
|
|
85
|
+
} from "./endpoint/EndpointParameters";
|
|
80
86
|
export declare type ServiceInputTypes =
|
|
81
87
|
| DeleteSessionCommandInput
|
|
82
88
|
| GetSessionCommandInput
|
|
@@ -112,7 +118,6 @@ export interface ClientDefaults
|
|
|
112
118
|
serviceId?: string;
|
|
113
119
|
region?: string | __Provider<string>;
|
|
114
120
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
115
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
116
121
|
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
117
122
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
118
123
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
@@ -124,26 +129,28 @@ declare type LexRuntimeV2ClientConfigType = Partial<
|
|
|
124
129
|
> &
|
|
125
130
|
ClientDefaults &
|
|
126
131
|
RegionInputConfig &
|
|
127
|
-
|
|
132
|
+
EndpointInputConfig<EndpointParameters> &
|
|
128
133
|
RetryInputConfig &
|
|
129
134
|
HostHeaderInputConfig &
|
|
130
135
|
AwsAuthInputConfig &
|
|
131
136
|
EventStreamInputConfig &
|
|
132
137
|
UserAgentInputConfig &
|
|
133
|
-
EventStreamSerdeInputConfig
|
|
138
|
+
EventStreamSerdeInputConfig &
|
|
139
|
+
ClientInputEndpointParameters;
|
|
134
140
|
export interface LexRuntimeV2ClientConfig
|
|
135
141
|
extends LexRuntimeV2ClientConfigType {}
|
|
136
142
|
declare type LexRuntimeV2ClientResolvedConfigType =
|
|
137
143
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
138
144
|
Required<ClientDefaults> &
|
|
139
145
|
RegionResolvedConfig &
|
|
140
|
-
|
|
146
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
141
147
|
RetryResolvedConfig &
|
|
142
148
|
HostHeaderResolvedConfig &
|
|
143
149
|
AwsAuthResolvedConfig &
|
|
144
150
|
EventStreamResolvedConfig &
|
|
145
151
|
UserAgentResolvedConfig &
|
|
146
|
-
EventStreamSerdeResolvedConfig
|
|
152
|
+
EventStreamSerdeResolvedConfig &
|
|
153
|
+
ClientResolvedEndpointParameters;
|
|
147
154
|
export interface LexRuntimeV2ClientResolvedConfig
|
|
148
155
|
extends LexRuntimeV2ClientResolvedConfigType {}
|
|
149
156
|
export declare class LexRuntimeV2Client extends __Client<
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -24,6 +25,7 @@ export declare class DeleteSessionCommand extends $Command<
|
|
|
24
25
|
LexRuntimeV2ClientResolvedConfig
|
|
25
26
|
> {
|
|
26
27
|
readonly input: DeleteSessionCommandInput;
|
|
28
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
29
|
constructor(input: DeleteSessionCommandInput);
|
|
28
30
|
resolveMiddleware(
|
|
29
31
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -21,6 +22,7 @@ export declare class GetSessionCommand extends $Command<
|
|
|
21
22
|
LexRuntimeV2ClientResolvedConfig
|
|
22
23
|
> {
|
|
23
24
|
readonly input: GetSessionCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
24
26
|
constructor(input: GetSessionCommandInput);
|
|
25
27
|
resolveMiddleware(
|
|
26
28
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -22,6 +23,7 @@ export declare class PutSessionCommand extends $Command<
|
|
|
22
23
|
LexRuntimeV2ClientResolvedConfig
|
|
23
24
|
> {
|
|
24
25
|
readonly input: PutSessionCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
25
27
|
constructor(input: PutSessionCommandInput);
|
|
26
28
|
resolveMiddleware(
|
|
27
29
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -24,6 +25,7 @@ export declare class RecognizeTextCommand extends $Command<
|
|
|
24
25
|
LexRuntimeV2ClientResolvedConfig
|
|
25
26
|
> {
|
|
26
27
|
readonly input: RecognizeTextCommandInput;
|
|
28
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
29
|
constructor(input: RecognizeTextCommandInput);
|
|
28
30
|
resolveMiddleware(
|
|
29
31
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -36,6 +37,7 @@ export declare class RecognizeUtteranceCommand extends $Command<
|
|
|
36
37
|
LexRuntimeV2ClientResolvedConfig
|
|
37
38
|
> {
|
|
38
39
|
readonly input: RecognizeUtteranceCommandInput;
|
|
40
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
39
41
|
constructor(input: RecognizeUtteranceCommandInput);
|
|
40
42
|
resolveMiddleware(
|
|
41
43
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
3
|
import {
|
|
3
4
|
Handler,
|
|
@@ -25,6 +26,7 @@ export declare class StartConversationCommand extends $Command<
|
|
|
25
26
|
LexRuntimeV2ClientResolvedConfig
|
|
26
27
|
> {
|
|
27
28
|
readonly input: StartConversationCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
28
30
|
constructor(input: StartConversationCommandInput);
|
|
29
31
|
resolveMiddleware(
|
|
30
32
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EndpointParameters as __EndpointParameters,
|
|
3
|
+
Provider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | Provider<string>;
|
|
7
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
+
endpoint?: string | Provider<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare type ClientResolvedEndpointParameters =
|
|
12
|
+
ClientInputEndpointParameters & {
|
|
13
|
+
defaultSigningName: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
16
|
+
options: T & ClientInputEndpointParameters
|
|
17
|
+
) => T &
|
|
18
|
+
ClientInputEndpointParameters & {
|
|
19
|
+
defaultSigningName: string;
|
|
20
|
+
};
|
|
21
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
22
|
+
Region?: string;
|
|
23
|
+
UseDualStack?: boolean;
|
|
24
|
+
UseFIPS?: boolean;
|
|
25
|
+
Endpoint?: string;
|
|
26
|
+
}
|
|
@@ -39,12 +39,22 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
40
|
logger: import("@aws-sdk/types").Logger;
|
|
41
41
|
serviceId: string;
|
|
42
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
43
42
|
endpoint?:
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
| ((
|
|
44
|
+
| string
|
|
45
|
+
| import("@aws-sdk/types").Endpoint
|
|
46
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
47
|
+
| import("@aws-sdk/types").EndpointV2
|
|
48
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
|
|
49
|
+
) &
|
|
50
|
+
(string | import("@aws-sdk/types").Provider<string>))
|
|
47
51
|
| undefined;
|
|
52
|
+
endpointProvider: (
|
|
53
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
54
|
+
context?: {
|
|
55
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
56
|
+
}
|
|
57
|
+
) => import("@aws-sdk/types").EndpointV2;
|
|
48
58
|
tls?: boolean | undefined;
|
|
49
59
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
50
60
|
credentials?:
|
|
@@ -39,12 +39,22 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
40
|
logger: import("@aws-sdk/types").Logger;
|
|
41
41
|
serviceId: string;
|
|
42
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
43
42
|
endpoint?:
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
| ((
|
|
44
|
+
| string
|
|
45
|
+
| import("@aws-sdk/types").Endpoint
|
|
46
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
47
|
+
| import("@aws-sdk/types").EndpointV2
|
|
48
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
|
|
49
|
+
) &
|
|
50
|
+
(string | import("@aws-sdk/types").Provider<string>))
|
|
47
51
|
| undefined;
|
|
52
|
+
endpointProvider: (
|
|
53
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
54
|
+
context?: {
|
|
55
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
56
|
+
}
|
|
57
|
+
) => import("@aws-sdk/types").EndpointV2;
|
|
48
58
|
tls?: boolean | undefined;
|
|
49
59
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
50
60
|
credentials?:
|
|
@@ -30,7 +30,6 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
30
30
|
credentialDefaultProvider: (
|
|
31
31
|
input: any
|
|
32
32
|
) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
33
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
34
33
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
35
34
|
import("@aws-sdk/types").UserAgent
|
|
36
35
|
>;
|
|
@@ -43,9 +42,21 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
43
42
|
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
44
43
|
endpoint?:
|
|
45
44
|
| string
|
|
46
|
-
| import("@aws-sdk/types").Endpoint
|
|
47
|
-
|
|
45
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
|
|
46
|
+
import("@aws-sdk/types").Provider<string>)
|
|
47
|
+
| (import("@aws-sdk/types").Endpoint &
|
|
48
|
+
import("@aws-sdk/types").Provider<string>)
|
|
49
|
+
| (import("@aws-sdk/types").EndpointV2 &
|
|
50
|
+
import("@aws-sdk/types").Provider<string>)
|
|
51
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
|
|
52
|
+
import("@aws-sdk/types").Provider<string>)
|
|
48
53
|
| undefined;
|
|
54
|
+
endpointProvider: (
|
|
55
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
56
|
+
context?: {
|
|
57
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
58
|
+
}
|
|
59
|
+
) => import("@aws-sdk/types").EndpointV2;
|
|
49
60
|
tls?: boolean | undefined;
|
|
50
61
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
51
62
|
credentials?:
|
|
@@ -3,8 +3,13 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
|
|
|
3
3
|
export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
4
4
|
apiVersion: string;
|
|
5
5
|
disableHostPrefix: boolean;
|
|
6
|
+
endpointProvider: (
|
|
7
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
8
|
+
context?: {
|
|
9
|
+
logger?: __Logger | undefined;
|
|
10
|
+
}
|
|
11
|
+
) => import("@aws-sdk/types").EndpointV2;
|
|
6
12
|
logger: __Logger;
|
|
7
|
-
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
8
13
|
serviceId: string;
|
|
9
14
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
10
15
|
};
|
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.196.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.196.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.193.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.196.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.193.0",
|
|
26
26
|
"@aws-sdk/eventstream-serde-browser": "3.193.0",
|
|
27
27
|
"@aws-sdk/eventstream-serde-config-resolver": "3.193.0",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@aws-sdk/hash-node": "3.193.0",
|
|
31
31
|
"@aws-sdk/invalid-dependency": "3.193.0",
|
|
32
32
|
"@aws-sdk/middleware-content-length": "3.193.0",
|
|
33
|
+
"@aws-sdk/middleware-endpoint": "3.193.0",
|
|
33
34
|
"@aws-sdk/middleware-eventstream": "3.193.0",
|
|
34
35
|
"@aws-sdk/middleware-host-header": "3.193.0",
|
|
35
36
|
"@aws-sdk/middleware-logger": "3.193.0",
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
52
53
|
"@aws-sdk/util-defaults-mode-browser": "3.193.0",
|
|
53
54
|
"@aws-sdk/util-defaults-mode-node": "3.193.0",
|
|
55
|
+
"@aws-sdk/util-endpoints": "3.196.0",
|
|
54
56
|
"@aws-sdk/util-stream-browser": "3.193.0",
|
|
55
57
|
"@aws-sdk/util-stream-node": "3.193.0",
|
|
56
58
|
"@aws-sdk/util-user-agent-browser": "3.193.0",
|
package/dist-cjs/endpoints.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultRegionInfoProvider = void 0;
|
|
4
|
-
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
-
const regionHash = {};
|
|
6
|
-
const partitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ap-southeast-3",
|
|
18
|
-
"ca-central-1",
|
|
19
|
-
"eu-central-1",
|
|
20
|
-
"eu-north-1",
|
|
21
|
-
"eu-south-1",
|
|
22
|
-
"eu-west-1",
|
|
23
|
-
"eu-west-2",
|
|
24
|
-
"eu-west-3",
|
|
25
|
-
"me-central-1",
|
|
26
|
-
"me-south-1",
|
|
27
|
-
"sa-east-1",
|
|
28
|
-
"us-east-1",
|
|
29
|
-
"us-east-2",
|
|
30
|
-
"us-west-1",
|
|
31
|
-
"us-west-2",
|
|
32
|
-
],
|
|
33
|
-
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
34
|
-
variants: [
|
|
35
|
-
{
|
|
36
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
37
|
-
tags: [],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
41
|
-
tags: ["fips"],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
45
|
-
tags: ["dualstack", "fips"],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
49
|
-
tags: ["dualstack"],
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
"aws-cn": {
|
|
54
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
55
|
-
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
56
|
-
variants: [
|
|
57
|
-
{
|
|
58
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
|
|
59
|
-
tags: [],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com.cn",
|
|
63
|
-
tags: ["fips"],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
hostname: "runtime-v2-lex-fips.{region}.api.amazonwebservices.com.cn",
|
|
67
|
-
tags: ["dualstack", "fips"],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
hostname: "runtime-v2-lex.{region}.api.amazonwebservices.com.cn",
|
|
71
|
-
tags: ["dualstack"],
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
"aws-iso": {
|
|
76
|
-
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
77
|
-
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
78
|
-
variants: [
|
|
79
|
-
{
|
|
80
|
-
hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
|
|
81
|
-
tags: [],
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
|
|
85
|
-
tags: ["fips"],
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
"aws-iso-b": {
|
|
90
|
-
regions: ["us-isob-east-1"],
|
|
91
|
-
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
92
|
-
variants: [
|
|
93
|
-
{
|
|
94
|
-
hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
|
|
95
|
-
tags: [],
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
|
|
99
|
-
tags: ["fips"],
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
"aws-us-gov": {
|
|
104
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
105
|
-
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
106
|
-
variants: [
|
|
107
|
-
{
|
|
108
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
109
|
-
tags: [],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
113
|
-
tags: ["fips"],
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
117
|
-
tags: ["dualstack", "fips"],
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
121
|
-
tags: ["dualstack"],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
127
|
-
...options,
|
|
128
|
-
signingService: "lex",
|
|
129
|
-
regionHash,
|
|
130
|
-
partitionHash,
|
|
131
|
-
});
|
|
132
|
-
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
package/dist-es/endpoints.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
const regionHash = {};
|
|
3
|
-
const partitionHash = {
|
|
4
|
-
aws: {
|
|
5
|
-
regions: [
|
|
6
|
-
"af-south-1",
|
|
7
|
-
"ap-east-1",
|
|
8
|
-
"ap-northeast-1",
|
|
9
|
-
"ap-northeast-2",
|
|
10
|
-
"ap-northeast-3",
|
|
11
|
-
"ap-south-1",
|
|
12
|
-
"ap-southeast-1",
|
|
13
|
-
"ap-southeast-2",
|
|
14
|
-
"ap-southeast-3",
|
|
15
|
-
"ca-central-1",
|
|
16
|
-
"eu-central-1",
|
|
17
|
-
"eu-north-1",
|
|
18
|
-
"eu-south-1",
|
|
19
|
-
"eu-west-1",
|
|
20
|
-
"eu-west-2",
|
|
21
|
-
"eu-west-3",
|
|
22
|
-
"me-central-1",
|
|
23
|
-
"me-south-1",
|
|
24
|
-
"sa-east-1",
|
|
25
|
-
"us-east-1",
|
|
26
|
-
"us-east-2",
|
|
27
|
-
"us-west-1",
|
|
28
|
-
"us-west-2",
|
|
29
|
-
],
|
|
30
|
-
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
31
|
-
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
38
|
-
tags: ["fips"],
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
42
|
-
tags: ["dualstack", "fips"],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
46
|
-
tags: ["dualstack"],
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
"aws-cn": {
|
|
51
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
52
|
-
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
53
|
-
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com.cn",
|
|
60
|
-
tags: ["fips"],
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
hostname: "runtime-v2-lex-fips.{region}.api.amazonwebservices.com.cn",
|
|
64
|
-
tags: ["dualstack", "fips"],
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
hostname: "runtime-v2-lex.{region}.api.amazonwebservices.com.cn",
|
|
68
|
-
tags: ["dualstack"],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
"aws-iso": {
|
|
73
|
-
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
74
|
-
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
75
|
-
variants: [
|
|
76
|
-
{
|
|
77
|
-
hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
|
|
78
|
-
tags: [],
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
hostname: "runtime-v2-lex-fips.{region}.c2s.ic.gov",
|
|
82
|
-
tags: ["fips"],
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
"aws-iso-b": {
|
|
87
|
-
regions: ["us-isob-east-1"],
|
|
88
|
-
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
89
|
-
variants: [
|
|
90
|
-
{
|
|
91
|
-
hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
|
|
92
|
-
tags: [],
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
hostname: "runtime-v2-lex-fips.{region}.sc2s.sgov.gov",
|
|
96
|
-
tags: ["fips"],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
"aws-us-gov": {
|
|
101
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
102
|
-
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
103
|
-
variants: [
|
|
104
|
-
{
|
|
105
|
-
hostname: "runtime-v2-lex.{region}.amazonaws.com",
|
|
106
|
-
tags: [],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
hostname: "runtime-v2-lex-fips.{region}.amazonaws.com",
|
|
110
|
-
tags: ["fips"],
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
hostname: "runtime-v2-lex-fips.{region}.api.aws",
|
|
114
|
-
tags: ["dualstack", "fips"],
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
hostname: "runtime-v2-lex.{region}.api.aws",
|
|
118
|
-
tags: ["dualstack"],
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
124
|
-
...options,
|
|
125
|
-
signingService: "lex",
|
|
126
|
-
regionHash,
|
|
127
|
-
partitionHash,
|
|
128
|
-
});
|