@aws-sdk/client-lex-runtime-v2 3.534.0 → 3.540.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/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +0 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-types/LexRuntimeV2.d.ts +1 -1
- package/dist-types/LexRuntimeV2Client.d.ts +1 -1
- package/dist-types/commands/DeleteSessionCommand.d.ts +2 -1
- package/dist-types/commands/GetSessionCommand.d.ts +2 -1
- package/dist-types/commands/PutSessionCommand.d.ts +2 -1
- package/dist-types/commands/RecognizeTextCommand.d.ts +2 -1
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +2 -1
- package/dist-types/commands/StartConversationCommand.d.ts +2 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +223 -223
- package/dist-types/runtimeConfig.shared.d.ts +3 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/package.json +46 -46
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1560,9 +1560,6 @@ var _LexRuntimeV2 = class _LexRuntimeV2 extends LexRuntimeV2Client {
|
|
|
1560
1560
|
__name(_LexRuntimeV2, "LexRuntimeV2");
|
|
1561
1561
|
var LexRuntimeV2 = _LexRuntimeV2;
|
|
1562
1562
|
(0, import_smithy_client.createAggregatedClient)(commands, LexRuntimeV2);
|
|
1563
|
-
|
|
1564
|
-
// src/index.ts
|
|
1565
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1566
1563
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1567
1564
|
|
|
1568
1565
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -45,8 +45,8 @@ export interface LexRuntimeV2 {
|
|
|
45
45
|
startConversation(args: StartConversationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConversationCommandOutput) => void): void;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* @public
|
|
49
48
|
* <p>This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.</p>
|
|
49
|
+
* @public
|
|
50
50
|
*/
|
|
51
51
|
export declare class LexRuntimeV2 extends LexRuntimeV2Client implements LexRuntimeV2 {
|
|
52
52
|
}
|
|
@@ -173,8 +173,8 @@ export type LexRuntimeV2ClientResolvedConfigType = __SmithyResolvedConfiguration
|
|
|
173
173
|
export interface LexRuntimeV2ClientResolvedConfig extends LexRuntimeV2ClientResolvedConfigType {
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
* @public
|
|
177
176
|
* <p>This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.</p>
|
|
177
|
+
* @public
|
|
178
178
|
*/
|
|
179
179
|
export declare class LexRuntimeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeV2ClientResolvedConfig> {
|
|
180
180
|
/**
|
|
@@ -22,10 +22,10 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const DeleteSessionCommand_base: {
|
|
24
24
|
new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Removes session information for a specified bot, alias, and user ID. </p>
|
|
30
30
|
* <p>You can use this operation to restart a conversation with a bot.
|
|
31
31
|
* When you remove a session, the entire history of the session is removed
|
|
@@ -90,6 +90,7 @@ declare const DeleteSessionCommand_base: {
|
|
|
90
90
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
92
92
|
*
|
|
93
|
+
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
|
|
95
96
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetSessionCommand_base: {
|
|
24
24
|
new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns session information for a specified bot, alias, and
|
|
30
30
|
* user.</p>
|
|
31
31
|
* <p>For example, you can use this operation to retrieve session
|
|
@@ -208,6 +208,7 @@ declare const GetSessionCommand_base: {
|
|
|
208
208
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
209
209
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
210
210
|
*
|
|
211
|
+
* @public
|
|
211
212
|
*/
|
|
212
213
|
export declare class GetSessionCommand extends GetSessionCommand_base {
|
|
213
214
|
}
|
|
@@ -23,10 +23,10 @@ export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audio
|
|
|
23
23
|
}
|
|
24
24
|
declare const PutSessionCommand_base: {
|
|
25
25
|
new (input: PutSessionCommandInput): import("@smithy/smithy-client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PutSessionCommandInput): import("@smithy/smithy-client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
|
-
* @public
|
|
30
30
|
* <p>Creates a new session or modifies an existing session with an Amazon Lex V2
|
|
31
31
|
* bot. Use this operation to enable your application to set the state of
|
|
32
32
|
* the bot.</p>
|
|
@@ -198,6 +198,7 @@ declare const PutSessionCommand_base: {
|
|
|
198
198
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
199
199
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
200
200
|
*
|
|
201
|
+
* @public
|
|
201
202
|
*/
|
|
202
203
|
export declare class PutSessionCommand extends PutSessionCommand_base {
|
|
203
204
|
}
|
|
@@ -22,10 +22,10 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const RecognizeTextCommand_base: {
|
|
24
24
|
new (input: RecognizeTextCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: RecognizeTextCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Sends user input to Amazon Lex V2. Client applications use this API to send
|
|
30
30
|
* requests to Amazon Lex V2 at runtime. Amazon Lex V2 then interprets the user input
|
|
31
31
|
* using the machine learning model that it build for the bot.</p>
|
|
@@ -339,6 +339,7 @@ declare const RecognizeTextCommand_base: {
|
|
|
339
339
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
340
340
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
341
341
|
*
|
|
342
|
+
* @public
|
|
342
343
|
*/
|
|
343
344
|
export declare class RecognizeTextCommand extends RecognizeTextCommand_base {
|
|
344
345
|
}
|
|
@@ -24,10 +24,10 @@ export interface RecognizeUtteranceCommandOutput extends Omit<RecognizeUtterance
|
|
|
24
24
|
}
|
|
25
25
|
declare const RecognizeUtteranceCommand_base: {
|
|
26
26
|
new (input: RecognizeUtteranceCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
new (__0_0: RecognizeUtteranceCommandInput): import("@smithy/smithy-client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
28
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
|
-
* @public
|
|
31
31
|
* <p>Sends user input to Amazon Lex V2. You can send text or speech. Clients use
|
|
32
32
|
* this API to send text and audio requests to Amazon Lex V2 at runtime. Amazon Lex V2
|
|
33
33
|
* interprets the user input using the machine learning model built for
|
|
@@ -158,6 +158,7 @@ declare const RecognizeUtteranceCommand_base: {
|
|
|
158
158
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
159
159
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
160
160
|
*
|
|
161
|
+
* @public
|
|
161
162
|
*/
|
|
162
163
|
export declare class RecognizeUtteranceCommand extends RecognizeUtteranceCommand_base {
|
|
163
164
|
}
|
|
@@ -22,10 +22,10 @@ export interface StartConversationCommandOutput extends StartConversationRespons
|
|
|
22
22
|
}
|
|
23
23
|
declare const StartConversationCommand_base: {
|
|
24
24
|
new (input: StartConversationCommandInput): import("@smithy/smithy-client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: StartConversationCommandInput): import("@smithy/smithy-client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Starts an HTTP/2 bidirectional event stream that enables you to send
|
|
30
30
|
* audio, text, or DTMF input in real time. After your application starts
|
|
31
31
|
* a conversation, users send input to Amazon Lex V2 as a stream of events. Amazon Lex V2
|
|
@@ -455,6 +455,7 @@ declare const StartConversationCommand_base: {
|
|
|
455
455
|
* @throws {@link LexRuntimeV2ServiceException}
|
|
456
456
|
* <p>Base exception class for all service exceptions from LexRuntimeV2 service.</p>
|
|
457
457
|
*
|
|
458
|
+
* @public
|
|
458
459
|
*/
|
|
459
460
|
export declare class StartConversationCommand extends StartConversationCommand_base {
|
|
460
461
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export { LexRuntimeV2ExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./models";
|
|
13
|
-
import "@aws-sdk/util-endpoints";
|
|
14
13
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|