@aws-sdk/client-lex-runtime-v2 3.1136.0 → 3.1138.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/dist-cjs/index.js +3 -3
- package/dist-es/schemas/schemas_0.js +2 -2
- package/dist-types/LexRuntimeV2.d.ts +19 -13
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +19 -13
- package/package.json +10 -10
package/dist-cjs/index.js
CHANGED
|
@@ -72,7 +72,7 @@ const commonParams = {
|
|
|
72
72
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
var version = "3.
|
|
75
|
+
var version = "3.1137.0";
|
|
76
76
|
var packageInfo = {
|
|
77
77
|
version: version};
|
|
78
78
|
|
|
@@ -408,10 +408,10 @@ const _xalrbm = "x-amz-lex-recognized-bot-member";
|
|
|
408
408
|
const _xalsi = "x-amz-lex-session-id";
|
|
409
409
|
const _xalss = "x-amz-lex-session-state";
|
|
410
410
|
const n0 = "com.amazonaws.lexruntimev2";
|
|
411
|
-
const _s_registry = TypeRegistry
|
|
411
|
+
const _s_registry = new TypeRegistry(_s);
|
|
412
412
|
var LexRuntimeV2ServiceException$ = [-3, _s, "LexRuntimeV2ServiceException", 0, [], []];
|
|
413
413
|
_s_registry.registerError(LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException);
|
|
414
|
-
const n0_registry = TypeRegistry
|
|
414
|
+
const n0_registry = new TypeRegistry(n0);
|
|
415
415
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
416
416
|
{ [_e]: _c, [_hE]: 403 },
|
|
417
417
|
[_m],
|
|
@@ -171,10 +171,10 @@ const n0 = "com.amazonaws.lexruntimev2";
|
|
|
171
171
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
172
172
|
import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
173
173
|
import { LexRuntimeV2ServiceException } from "../models/LexRuntimeV2ServiceException";
|
|
174
|
-
const _s_registry = TypeRegistry
|
|
174
|
+
const _s_registry = new TypeRegistry(_s);
|
|
175
175
|
export var LexRuntimeV2ServiceException$ = [-3, _s, "LexRuntimeV2ServiceException", 0, [], []];
|
|
176
176
|
_s_registry.registerError(LexRuntimeV2ServiceException$, LexRuntimeV2ServiceException);
|
|
177
|
-
const n0_registry = TypeRegistry
|
|
177
|
+
const n0_registry = new TypeRegistry(n0);
|
|
178
178
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
179
179
|
{ [_e]: _c, [_hE]: 403 },
|
|
180
180
|
[_m],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type DeleteSessionCommandInput, type DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
|
|
3
3
|
import { type GetSessionCommandInput, type GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
4
4
|
import { type PutSessionCommandInput, type PutSessionCommandOutput } from "./commands/PutSessionCommand";
|
|
@@ -6,43 +6,49 @@ import { type RecognizeTextCommandInput, type RecognizeTextCommandOutput } from
|
|
|
6
6
|
import { type RecognizeUtteranceCommandInput, type RecognizeUtteranceCommandOutput } from "./commands/RecognizeUtteranceCommand";
|
|
7
7
|
import { type StartConversationCommandInput, type StartConversationCommandOutput } from "./commands/StartConversationCommand";
|
|
8
8
|
import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface LexRuntimeV2RequestOptions extends __HttpHandlerOptions {
|
|
13
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
14
|
+
}
|
|
9
15
|
export interface LexRuntimeV2 {
|
|
10
16
|
/**
|
|
11
17
|
* @see {@link DeleteSessionCommand}
|
|
12
18
|
*/
|
|
13
|
-
deleteSession(args: DeleteSessionCommandInput, options?:
|
|
19
|
+
deleteSession(args: DeleteSessionCommandInput, options?: LexRuntimeV2RequestOptions): Promise<DeleteSessionCommandOutput>;
|
|
14
20
|
deleteSession(args: DeleteSessionCommandInput, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
|
|
15
|
-
deleteSession(args: DeleteSessionCommandInput, options:
|
|
21
|
+
deleteSession(args: DeleteSessionCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
|
|
16
22
|
/**
|
|
17
23
|
* @see {@link GetSessionCommand}
|
|
18
24
|
*/
|
|
19
|
-
getSession(args: GetSessionCommandInput, options?:
|
|
25
|
+
getSession(args: GetSessionCommandInput, options?: LexRuntimeV2RequestOptions): Promise<GetSessionCommandOutput>;
|
|
20
26
|
getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
|
|
21
|
-
getSession(args: GetSessionCommandInput, options:
|
|
27
|
+
getSession(args: GetSessionCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
|
|
22
28
|
/**
|
|
23
29
|
* @see {@link PutSessionCommand}
|
|
24
30
|
*/
|
|
25
|
-
putSession(args: PutSessionCommandInput, options?:
|
|
31
|
+
putSession(args: PutSessionCommandInput, options?: LexRuntimeV2RequestOptions): Promise<PutSessionCommandOutput>;
|
|
26
32
|
putSession(args: PutSessionCommandInput, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
|
|
27
|
-
putSession(args: PutSessionCommandInput, options:
|
|
33
|
+
putSession(args: PutSessionCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
|
|
28
34
|
/**
|
|
29
35
|
* @see {@link RecognizeTextCommand}
|
|
30
36
|
*/
|
|
31
|
-
recognizeText(args: RecognizeTextCommandInput, options?:
|
|
37
|
+
recognizeText(args: RecognizeTextCommandInput, options?: LexRuntimeV2RequestOptions): Promise<RecognizeTextCommandOutput>;
|
|
32
38
|
recognizeText(args: RecognizeTextCommandInput, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
|
|
33
|
-
recognizeText(args: RecognizeTextCommandInput, options:
|
|
39
|
+
recognizeText(args: RecognizeTextCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: RecognizeTextCommandOutput) => void): void;
|
|
34
40
|
/**
|
|
35
41
|
* @see {@link RecognizeUtteranceCommand}
|
|
36
42
|
*/
|
|
37
|
-
recognizeUtterance(args: RecognizeUtteranceCommandInput, options?:
|
|
43
|
+
recognizeUtterance(args: RecognizeUtteranceCommandInput, options?: LexRuntimeV2RequestOptions): Promise<RecognizeUtteranceCommandOutput>;
|
|
38
44
|
recognizeUtterance(args: RecognizeUtteranceCommandInput, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
|
|
39
|
-
recognizeUtterance(args: RecognizeUtteranceCommandInput, options:
|
|
45
|
+
recognizeUtterance(args: RecognizeUtteranceCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void): void;
|
|
40
46
|
/**
|
|
41
47
|
* @see {@link StartConversationCommand}
|
|
42
48
|
*/
|
|
43
|
-
startConversation(args: StartConversationCommandInput, options?:
|
|
49
|
+
startConversation(args: StartConversationCommandInput, options?: LexRuntimeV2RequestOptions): Promise<StartConversationCommandOutput>;
|
|
44
50
|
startConversation(args: StartConversationCommandInput, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
|
|
45
|
-
startConversation(args: StartConversationCommandInput, options:
|
|
51
|
+
startConversation(args: StartConversationCommandInput, options: LexRuntimeV2RequestOptions, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
|
|
46
52
|
}
|
|
47
53
|
/**
|
|
48
54
|
* <p>This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.</p>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import {
|
|
3
6
|
DeleteSessionCommandInput,
|
|
4
7
|
DeleteSessionCommandOutput,
|
|
@@ -18,10 +21,13 @@ import {
|
|
|
18
21
|
StartConversationCommandOutput,
|
|
19
22
|
} from "./commands/StartConversationCommand";
|
|
20
23
|
import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
|
|
24
|
+
export interface LexRuntimeV2RequestOptions extends __HttpHandlerOptions {
|
|
25
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
26
|
+
}
|
|
21
27
|
export interface LexRuntimeV2 {
|
|
22
28
|
deleteSession(
|
|
23
29
|
args: DeleteSessionCommandInput,
|
|
24
|
-
options?:
|
|
30
|
+
options?: LexRuntimeV2RequestOptions,
|
|
25
31
|
): Promise<DeleteSessionCommandOutput>;
|
|
26
32
|
deleteSession(
|
|
27
33
|
args: DeleteSessionCommandInput,
|
|
@@ -29,12 +35,12 @@ export interface LexRuntimeV2 {
|
|
|
29
35
|
): void;
|
|
30
36
|
deleteSession(
|
|
31
37
|
args: DeleteSessionCommandInput,
|
|
32
|
-
options:
|
|
38
|
+
options: LexRuntimeV2RequestOptions,
|
|
33
39
|
cb: (err: any, data?: DeleteSessionCommandOutput) => void,
|
|
34
40
|
): void;
|
|
35
41
|
getSession(
|
|
36
42
|
args: GetSessionCommandInput,
|
|
37
|
-
options?:
|
|
43
|
+
options?: LexRuntimeV2RequestOptions,
|
|
38
44
|
): Promise<GetSessionCommandOutput>;
|
|
39
45
|
getSession(
|
|
40
46
|
args: GetSessionCommandInput,
|
|
@@ -42,12 +48,12 @@ export interface LexRuntimeV2 {
|
|
|
42
48
|
): void;
|
|
43
49
|
getSession(
|
|
44
50
|
args: GetSessionCommandInput,
|
|
45
|
-
options:
|
|
51
|
+
options: LexRuntimeV2RequestOptions,
|
|
46
52
|
cb: (err: any, data?: GetSessionCommandOutput) => void,
|
|
47
53
|
): void;
|
|
48
54
|
putSession(
|
|
49
55
|
args: PutSessionCommandInput,
|
|
50
|
-
options?:
|
|
56
|
+
options?: LexRuntimeV2RequestOptions,
|
|
51
57
|
): Promise<PutSessionCommandOutput>;
|
|
52
58
|
putSession(
|
|
53
59
|
args: PutSessionCommandInput,
|
|
@@ -55,12 +61,12 @@ export interface LexRuntimeV2 {
|
|
|
55
61
|
): void;
|
|
56
62
|
putSession(
|
|
57
63
|
args: PutSessionCommandInput,
|
|
58
|
-
options:
|
|
64
|
+
options: LexRuntimeV2RequestOptions,
|
|
59
65
|
cb: (err: any, data?: PutSessionCommandOutput) => void,
|
|
60
66
|
): void;
|
|
61
67
|
recognizeText(
|
|
62
68
|
args: RecognizeTextCommandInput,
|
|
63
|
-
options?:
|
|
69
|
+
options?: LexRuntimeV2RequestOptions,
|
|
64
70
|
): Promise<RecognizeTextCommandOutput>;
|
|
65
71
|
recognizeText(
|
|
66
72
|
args: RecognizeTextCommandInput,
|
|
@@ -68,12 +74,12 @@ export interface LexRuntimeV2 {
|
|
|
68
74
|
): void;
|
|
69
75
|
recognizeText(
|
|
70
76
|
args: RecognizeTextCommandInput,
|
|
71
|
-
options:
|
|
77
|
+
options: LexRuntimeV2RequestOptions,
|
|
72
78
|
cb: (err: any, data?: RecognizeTextCommandOutput) => void,
|
|
73
79
|
): void;
|
|
74
80
|
recognizeUtterance(
|
|
75
81
|
args: RecognizeUtteranceCommandInput,
|
|
76
|
-
options?:
|
|
82
|
+
options?: LexRuntimeV2RequestOptions,
|
|
77
83
|
): Promise<RecognizeUtteranceCommandOutput>;
|
|
78
84
|
recognizeUtterance(
|
|
79
85
|
args: RecognizeUtteranceCommandInput,
|
|
@@ -81,12 +87,12 @@ export interface LexRuntimeV2 {
|
|
|
81
87
|
): void;
|
|
82
88
|
recognizeUtterance(
|
|
83
89
|
args: RecognizeUtteranceCommandInput,
|
|
84
|
-
options:
|
|
90
|
+
options: LexRuntimeV2RequestOptions,
|
|
85
91
|
cb: (err: any, data?: RecognizeUtteranceCommandOutput) => void,
|
|
86
92
|
): void;
|
|
87
93
|
startConversation(
|
|
88
94
|
args: StartConversationCommandInput,
|
|
89
|
-
options?:
|
|
95
|
+
options?: LexRuntimeV2RequestOptions,
|
|
90
96
|
): Promise<StartConversationCommandOutput>;
|
|
91
97
|
startConversation(
|
|
92
98
|
args: StartConversationCommandInput,
|
|
@@ -94,7 +100,7 @@ export interface LexRuntimeV2 {
|
|
|
94
100
|
): void;
|
|
95
101
|
startConversation(
|
|
96
102
|
args: StartConversationCommandInput,
|
|
97
|
-
options:
|
|
103
|
+
options: LexRuntimeV2RequestOptions,
|
|
98
104
|
cb: (err: any, data?: StartConversationCommandOutput) => void,
|
|
99
105
|
): void;
|
|
100
106
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1138.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lex-runtime-v2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/core": "^3.978.
|
|
54
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
56
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
57
|
-
"@aws-sdk/types": "^3.974.
|
|
58
|
-
"@smithy/core": "^3.
|
|
59
|
-
"@smithy/fetch-http-handler": "^5.
|
|
60
|
-
"@smithy/node-http-handler": "^4.
|
|
61
|
-
"@smithy/types": "^4.
|
|
53
|
+
"@aws-sdk/core": "^3.978.1",
|
|
54
|
+
"@aws-sdk/credential-provider-node": "^3.972.84",
|
|
55
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.35",
|
|
56
|
+
"@aws-sdk/middleware-eventstream": "^3.972.30",
|
|
57
|
+
"@aws-sdk/types": "^3.974.6",
|
|
58
|
+
"@smithy/core": "^3.35.0",
|
|
59
|
+
"@smithy/fetch-http-handler": "^5.8.0",
|
|
60
|
+
"@smithy/node-http-handler": "^4.12.1",
|
|
61
|
+
"@smithy/types": "^4.19.0",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|