@aws-sdk/client-lex-runtime-v2 3.645.0 → 3.650.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.
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1491,9 +1491,7 @@ var _xalsi = "x-amz-lex-session-id";
1491
1491
  var _xalss = "x-amz-lex-session-state";
1492
1492
 
1493
1493
  // src/commands/DeleteSessionCommand.ts
1494
- var _DeleteSessionCommand = class _DeleteSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1495
- ...commonParams
1496
- }).m(function(Command, cs, config, o) {
1494
+ var _DeleteSessionCommand = class _DeleteSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1497
1495
  return [
1498
1496
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1499
1497
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1507,9 +1505,7 @@ var DeleteSessionCommand = _DeleteSessionCommand;
1507
1505
 
1508
1506
 
1509
1507
 
1510
- var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1511
- ...commonParams
1512
- }).m(function(Command, cs, config, o) {
1508
+ var _GetSessionCommand = class _GetSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1513
1509
  return [
1514
1510
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1515
1511
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1523,9 +1519,7 @@ var GetSessionCommand = _GetSessionCommand;
1523
1519
 
1524
1520
 
1525
1521
 
1526
- var _PutSessionCommand = class _PutSessionCommand extends import_smithy_client.Command.classBuilder().ep({
1527
- ...commonParams
1528
- }).m(function(Command, cs, config, o) {
1522
+ var _PutSessionCommand = class _PutSessionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1529
1523
  return [
1530
1524
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1531
1525
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1539,9 +1533,7 @@ var PutSessionCommand = _PutSessionCommand;
1539
1533
 
1540
1534
 
1541
1535
 
1542
- var _RecognizeTextCommand = class _RecognizeTextCommand extends import_smithy_client.Command.classBuilder().ep({
1543
- ...commonParams
1544
- }).m(function(Command, cs, config, o) {
1536
+ var _RecognizeTextCommand = class _RecognizeTextCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1545
1537
  return [
1546
1538
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1547
1539
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1555,9 +1547,7 @@ var RecognizeTextCommand = _RecognizeTextCommand;
1555
1547
 
1556
1548
 
1557
1549
 
1558
- var _RecognizeUtteranceCommand = class _RecognizeUtteranceCommand extends import_smithy_client.Command.classBuilder().ep({
1559
- ...commonParams
1560
- }).m(function(Command, cs, config, o) {
1550
+ var _RecognizeUtteranceCommand = class _RecognizeUtteranceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1561
1551
  return [
1562
1552
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1563
1553
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1572,9 +1562,7 @@ var RecognizeUtteranceCommand = _RecognizeUtteranceCommand;
1572
1562
 
1573
1563
 
1574
1564
 
1575
- var _StartConversationCommand = class _StartConversationCommand extends import_smithy_client.Command.classBuilder().ep({
1576
- ...commonParams
1577
- }).m(function(Command, cs, config, o) {
1565
+ var _StartConversationCommand = class _StartConversationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1578
1566
  return [
1579
1567
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1580
1568
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
@@ -6,9 +6,7 @@ import { de_DeleteSessionCommand, se_DeleteSessionCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class DeleteSessionCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetSessionCommand, se_GetSessionCommand } from "../protocols/Aws_res
7
7
  export { $Command };
8
8
  export class GetSessionCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_PutSessionCommand, se_PutSessionCommand } from "../protocols/Aws_res
7
7
  export { $Command };
8
8
  export class PutSessionCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_RecognizeTextCommand, se_RecognizeTextCommand } from "../protocols/A
7
7
  export { $Command };
8
8
  export class RecognizeTextCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_RecognizeUtteranceCommand, se_RecognizeUtteranceCommand } from "../p
7
7
  export { $Command };
8
8
  export class RecognizeUtteranceCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -8,9 +8,7 @@ import { de_StartConversationCommand, se_StartConversationCommand } from "../pro
8
8
  export { $Command };
9
9
  export class StartConversationCommand extends $Command
10
10
  .classBuilder()
11
- .ep({
12
- ...commonParams,
13
- })
11
+ .ep(commonParams)
14
12
  .m(function (Command, cs, config, o) {
15
13
  return [
16
14
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  apiVersion: string;
23
+ cacheMiddleware?: boolean | undefined;
23
24
  urlParser: import("@smithy/types").UrlParser;
24
25
  base64Decoder: import("@smithy/types").Decoder;
25
26
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -37,6 +38,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
37
38
  logger?: import("@smithy/types").Logger | undefined;
38
39
  }) => import("@smithy/types").EndpointV2;
39
40
  tls?: boolean | undefined;
41
+ serviceConfiguredEndpoint?: undefined;
40
42
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
43
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
42
44
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  apiVersion: string;
23
+ cacheMiddleware?: boolean | undefined;
23
24
  urlParser: import("@smithy/types").UrlParser;
24
25
  base64Decoder: import("@smithy/types").Decoder;
25
26
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -37,6 +38,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
37
38
  logger?: import("@smithy/types").Logger | undefined;
38
39
  }) => import("@smithy/types").EndpointV2;
39
40
  tls?: boolean | undefined;
41
+ serviceConfiguredEndpoint?: undefined;
40
42
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
43
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
42
44
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -8,6 +8,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
8
8
  sha256: import("@smithy/types").HashConstructor;
9
9
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
10
  apiVersion: string;
11
+ cacheMiddleware?: boolean | undefined;
11
12
  urlParser: import("@smithy/types").UrlParser;
12
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
14
  streamCollector: import("@smithy/types").StreamCollector;
@@ -36,6 +37,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
36
37
  logger?: import("@smithy/types").Logger | undefined;
37
38
  }) => import("@smithy/types").EndpointV2;
38
39
  tls?: boolean | undefined;
40
+ serviceConfiguredEndpoint?: undefined;
39
41
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
40
42
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
41
43
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
25
25
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
26
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
27
  apiVersion: string;
28
+ cacheMiddleware?: boolean | undefined;
28
29
  urlParser: import("@smithy/types").UrlParser;
29
30
  base64Decoder: import("@smithy/types").Decoder;
30
31
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -64,6 +65,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
64
65
  }
65
66
  ) => import("@smithy/types").EndpointV2;
66
67
  tls?: boolean | undefined;
68
+ serviceConfiguredEndpoint?: undefined;
67
69
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
68
70
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
69
71
  credentials?:
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
29
29
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
30
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  apiVersion: string;
32
+ cacheMiddleware?: boolean | undefined;
32
33
  urlParser: import("@smithy/types").UrlParser;
33
34
  base64Decoder: import("@smithy/types").Decoder;
34
35
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -68,6 +69,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
68
69
  }
69
70
  ) => import("@smithy/types").EndpointV2;
70
71
  tls?: boolean | undefined;
72
+ serviceConfiguredEndpoint?: undefined;
71
73
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
72
74
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
73
75
  credentials?:
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
10
10
  | import("@smithy/protocol-http").HttpHandler<any>
11
11
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
12
  apiVersion: string;
13
+ cacheMiddleware?: boolean | undefined;
13
14
  urlParser: import("@smithy/types").UrlParser;
14
15
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
16
  streamCollector: import("@smithy/types").StreamCollector;
@@ -58,6 +59,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
58
59
  }
59
60
  ) => import("@smithy/types").EndpointV2;
60
61
  tls?: boolean | undefined;
62
+ serviceConfiguredEndpoint?: undefined;
61
63
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
62
64
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").LexRuntimeV2HttpAuthSchemeProvider;
63
65
  credentials?:
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.645.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-runtime-v2",
@@ -20,49 +20,49 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.645.0",
24
- "@aws-sdk/client-sts": "3.645.0",
25
- "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.645.0",
27
- "@aws-sdk/eventstream-handler-node": "3.620.0",
28
- "@aws-sdk/middleware-eventstream": "3.620.0",
29
- "@aws-sdk/middleware-host-header": "3.620.0",
30
- "@aws-sdk/middleware-logger": "3.609.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
32
- "@aws-sdk/middleware-user-agent": "3.645.0",
33
- "@aws-sdk/region-config-resolver": "3.614.0",
34
- "@aws-sdk/types": "3.609.0",
35
- "@aws-sdk/util-endpoints": "3.645.0",
36
- "@aws-sdk/util-user-agent-browser": "3.609.0",
37
- "@aws-sdk/util-user-agent-node": "3.614.0",
38
- "@smithy/config-resolver": "^3.0.5",
39
- "@smithy/core": "^2.4.0",
40
- "@smithy/eventstream-serde-browser": "^3.0.6",
41
- "@smithy/eventstream-serde-config-resolver": "^3.0.3",
42
- "@smithy/eventstream-serde-node": "^3.0.5",
43
- "@smithy/fetch-http-handler": "^3.2.4",
44
- "@smithy/hash-node": "^3.0.3",
45
- "@smithy/invalid-dependency": "^3.0.3",
46
- "@smithy/middleware-content-length": "^3.0.5",
47
- "@smithy/middleware-endpoint": "^3.1.0",
48
- "@smithy/middleware-retry": "^3.0.15",
49
- "@smithy/middleware-serde": "^3.0.3",
50
- "@smithy/middleware-stack": "^3.0.3",
51
- "@smithy/node-config-provider": "^3.1.4",
52
- "@smithy/node-http-handler": "^3.1.4",
53
- "@smithy/protocol-http": "^4.1.0",
54
- "@smithy/smithy-client": "^3.2.0",
55
- "@smithy/types": "^3.3.0",
56
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
+ "@aws-sdk/core": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
+ "@aws-sdk/eventstream-handler-node": "3.649.0",
28
+ "@aws-sdk/middleware-eventstream": "3.649.0",
29
+ "@aws-sdk/middleware-host-header": "3.649.0",
30
+ "@aws-sdk/middleware-logger": "3.649.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
32
+ "@aws-sdk/middleware-user-agent": "3.649.0",
33
+ "@aws-sdk/region-config-resolver": "3.649.0",
34
+ "@aws-sdk/types": "3.649.0",
35
+ "@aws-sdk/util-endpoints": "3.649.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
37
+ "@aws-sdk/util-user-agent-node": "3.649.0",
38
+ "@smithy/config-resolver": "^3.0.6",
39
+ "@smithy/core": "^2.4.1",
40
+ "@smithy/eventstream-serde-browser": "^3.0.7",
41
+ "@smithy/eventstream-serde-config-resolver": "^3.0.4",
42
+ "@smithy/eventstream-serde-node": "^3.0.6",
43
+ "@smithy/fetch-http-handler": "^3.2.5",
44
+ "@smithy/hash-node": "^3.0.4",
45
+ "@smithy/invalid-dependency": "^3.0.4",
46
+ "@smithy/middleware-content-length": "^3.0.6",
47
+ "@smithy/middleware-endpoint": "^3.1.1",
48
+ "@smithy/middleware-retry": "^3.0.16",
49
+ "@smithy/middleware-serde": "^3.0.4",
50
+ "@smithy/middleware-stack": "^3.0.4",
51
+ "@smithy/node-config-provider": "^3.1.5",
52
+ "@smithy/node-http-handler": "^3.2.0",
53
+ "@smithy/protocol-http": "^4.1.1",
54
+ "@smithy/smithy-client": "^3.3.0",
55
+ "@smithy/types": "^3.4.0",
56
+ "@smithy/url-parser": "^3.0.4",
57
57
  "@smithy/util-base64": "^3.0.0",
58
58
  "@smithy/util-body-length-browser": "^3.0.0",
59
59
  "@smithy/util-body-length-node": "^3.0.0",
60
- "@smithy/util-defaults-mode-browser": "^3.0.15",
61
- "@smithy/util-defaults-mode-node": "^3.0.15",
62
- "@smithy/util-endpoints": "^2.0.5",
63
- "@smithy/util-middleware": "^3.0.3",
64
- "@smithy/util-retry": "^3.0.3",
65
- "@smithy/util-stream": "^3.1.3",
60
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
61
+ "@smithy/util-defaults-mode-node": "^3.0.16",
62
+ "@smithy/util-endpoints": "^2.1.0",
63
+ "@smithy/util-middleware": "^3.0.4",
64
+ "@smithy/util-retry": "^3.0.4",
65
+ "@smithy/util-stream": "^3.1.4",
66
66
  "@smithy/util-utf8": "^3.0.0",
67
67
  "tslib": "^2.6.2"
68
68
  },