@aws-sdk/client-lex-runtime-service 3.533.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.
@@ -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("@smithy/util-endpoints");
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, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
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
@@ -1123,9 +1123,6 @@ var _LexRuntimeService = class _LexRuntimeService extends LexRuntimeServiceClien
1123
1123
  __name(_LexRuntimeService, "LexRuntimeService");
1124
1124
  var LexRuntimeService = _LexRuntimeService;
1125
1125
  (0, import_smithy_client.createAggregatedClient)(commands, LexRuntimeService);
1126
-
1127
- // src/index.ts
1128
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
1129
1126
  // Annotate the CommonJS export names for ESM import in node:
1130
1127
 
1131
1128
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
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
@@ -2,5 +2,4 @@ export * from "./LexRuntimeServiceClient";
2
2
  export * from "./LexRuntimeService";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
@@ -38,7 +38,6 @@ export interface LexRuntimeService {
38
38
  putSession(args: PutSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSessionCommandOutput) => void): void;
39
39
  }
40
40
  /**
41
- * @public
42
41
  * <p>Amazon Lex provides both build and runtime endpoints. Each endpoint
43
42
  * provides a set of operations (API). Your conversational bot uses the
44
43
  * runtime API to understand user utterances (user input text or voice). For
@@ -51,6 +50,7 @@ export interface LexRuntimeService {
51
50
  * you created the bot). You use the build-time API to create and manage your
52
51
  * Amazon Lex bot. For a list of build-time operations, see the build-time
53
52
  * API, . </p>
53
+ * @public
54
54
  */
55
55
  export declare class LexRuntimeService extends LexRuntimeServiceClient implements LexRuntimeService {
56
56
  }
@@ -161,7 +161,6 @@ export type LexRuntimeServiceClientResolvedConfigType = __SmithyResolvedConfigur
161
161
  export interface LexRuntimeServiceClientResolvedConfig extends LexRuntimeServiceClientResolvedConfigType {
162
162
  }
163
163
  /**
164
- * @public
165
164
  * <p>Amazon Lex provides both build and runtime endpoints. Each endpoint
166
165
  * provides a set of operations (API). Your conversational bot uses the
167
166
  * runtime API to understand user utterances (user input text or voice). For
@@ -174,6 +173,7 @@ export interface LexRuntimeServiceClientResolvedConfig extends LexRuntimeService
174
173
  * you created the bot). You use the build-time API to create and manage your
175
174
  * Amazon Lex bot. For a list of build-time operations, see the build-time
176
175
  * API, . </p>
176
+ * @public
177
177
  */
178
178
  export declare class LexRuntimeServiceClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeServiceClientResolvedConfig> {
179
179
  /**
@@ -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, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig, 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.
30
30
  * </p>
31
31
  * @example
@@ -78,6 +78,7 @@ declare const DeleteSessionCommand_base: {
78
78
  * @throws {@link LexRuntimeServiceServiceException}
79
79
  * <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
80
80
  *
81
+ * @public
81
82
  */
82
83
  export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
83
84
  }
@@ -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, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeServiceClientResolvedConfig, 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 user
30
30
  * ID.</p>
31
31
  * @example
@@ -109,6 +109,7 @@ declare const GetSessionCommand_base: {
109
109
  * @throws {@link LexRuntimeServiceServiceException}
110
110
  * <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
111
111
  *
112
+ * @public
112
113
  */
113
114
  export declare class GetSessionCommand extends GetSessionCommand_base {
114
115
  }
@@ -24,10 +24,10 @@ export interface PostContentCommandOutput extends Omit<PostContentResponse, "aud
24
24
  }
25
25
  declare const PostContentCommand_base: {
26
26
  new (input: PostContentCommandInput): import("@smithy/smithy-client").CommandImpl<PostContentCommandInput, PostContentCommandOutput, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ new (__0_0: PostContentCommandInput): import("@smithy/smithy-client").CommandImpl<PostContentCommandInput, PostContentCommandOutput, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
28
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
29
  };
29
30
  /**
30
- * @public
31
31
  * <p> Sends user input (text or speech) to Amazon Lex. Clients use this API to
32
32
  * send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the
33
33
  * user input using the machine learning model that it built for the bot. </p>
@@ -211,6 +211,7 @@ declare const PostContentCommand_base: {
211
211
  * @throws {@link LexRuntimeServiceServiceException}
212
212
  * <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
213
213
  *
214
+ * @public
214
215
  */
215
216
  export declare class PostContentCommand extends PostContentCommand_base {
216
217
  }
@@ -22,10 +22,10 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
22
22
  }
23
23
  declare const PostTextCommand_base: {
24
24
  new (input: PostTextCommandInput): import("@smithy/smithy-client").CommandImpl<PostTextCommandInput, PostTextCommandOutput, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: PostTextCommandInput): import("@smithy/smithy-client").CommandImpl<PostTextCommandInput, PostTextCommandOutput, LexRuntimeServiceClientResolvedConfig, 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. Client applications can use this API to
30
30
  * send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input
31
31
  * using the machine learning model it built for the bot. </p>
@@ -254,6 +254,7 @@ declare const PostTextCommand_base: {
254
254
  * @throws {@link LexRuntimeServiceServiceException}
255
255
  * <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
256
256
  *
257
+ * @public
257
258
  */
258
259
  export declare class PostTextCommand extends PostTextCommand_base {
259
260
  }
@@ -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, LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutSessionCommandInput): import("@smithy/smithy-client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeServiceClientResolvedConfig, 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
31
31
  * bot. Use this operation to enable your application to set the state of the
32
32
  * bot.</p>
@@ -154,6 +154,7 @@ declare const PutSessionCommand_base: {
154
154
  * @throws {@link LexRuntimeServiceServiceException}
155
155
  * <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
156
156
  *
157
+ * @public
157
158
  */
158
159
  export declare class PutSessionCommand extends PutSessionCommand_base {
159
160
  }
@@ -21,5 +21,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
21
21
  export { LexRuntimeServiceExtensionConfiguration } from "./extensionConfiguration";
22
22
  export * from "./commands";
23
23
  export * from "./models";
24
- import "@aws-sdk/util-endpoints";
25
24
  export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";