@aws-sdk/client-lex-runtime-v2 3.414.0 → 3.421.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/README.md CHANGED
@@ -23,16 +23,16 @@ using your favorite package manager:
23
23
 
24
24
  The AWS SDK is modulized by clients and commands.
25
25
  To send a request, you only need to import the `LexRuntimeV2Client` and
26
- the commands you need, for example `DeleteSessionCommand`:
26
+ the commands you need, for example `GetSessionCommand`:
27
27
 
28
28
  ```js
29
29
  // ES5 example
30
- const { LexRuntimeV2Client, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-v2");
30
+ const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2");
31
31
  ```
32
32
 
33
33
  ```ts
34
34
  // ES6+ example
35
- import { LexRuntimeV2Client, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-v2";
35
+ import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2";
36
36
  ```
37
37
 
38
38
  ### Usage
@@ -51,7 +51,7 @@ const client = new LexRuntimeV2Client({ region: "REGION" });
51
51
  const params = {
52
52
  /** input parameters */
53
53
  };
54
- const command = new DeleteSessionCommand(params);
54
+ const command = new GetSessionCommand(params);
55
55
  ```
56
56
 
57
57
  #### Async/await
@@ -130,7 +130,7 @@ const client = new AWS.LexRuntimeV2({ region: "REGION" });
130
130
 
131
131
  // async/await.
132
132
  try {
133
- const data = await client.deleteSession(params);
133
+ const data = await client.getSession(params);
134
134
  // process data.
135
135
  } catch (error) {
136
136
  // error handling.
@@ -138,7 +138,7 @@ try {
138
138
 
139
139
  // Promises.
140
140
  client
141
- .deleteSession(params)
141
+ .getSession(params)
142
142
  .then((data) => {
143
143
  // process data.
144
144
  })
@@ -147,7 +147,7 @@ client
147
147
  });
148
148
 
149
149
  // callbacks.
150
- client.deleteSession(params, (err, data) => {
150
+ client.getSession(params, (err, data) => {
151
151
  // process err and data.
152
152
  });
153
153
  ```
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
10
  class DeleteSessionCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class DeleteSessionCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
38
+ operation: "DeleteSession",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class GetSessionCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class GetSessionCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: (_) => _,
35
36
  outputFilterSensitiveLog: models_0_1.GetSessionResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
39
+ operation: "GetSession",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class PutSessionCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class PutSessionCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.PutSessionRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: models_0_1.PutSessionResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
39
+ operation: "PutSession",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class RecognizeTextCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class RecognizeTextCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.RecognizeTextRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: models_0_1.RecognizeTextResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
39
+ operation: "RecognizeText",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class RecognizeUtteranceCommand extends smithy_client_1.Command {
@@ -33,6 +34,10 @@ class RecognizeUtteranceCommand extends smithy_client_1.Command {
33
34
  commandName,
34
35
  inputFilterSensitiveLog: models_0_1.RecognizeUtteranceRequestFilterSensitiveLog,
35
36
  outputFilterSensitiveLog: models_0_1.RecognizeUtteranceResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
39
+ operation: "RecognizeUtterance",
40
+ },
36
41
  };
37
42
  const { requestHandler } = configuration;
38
43
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -6,6 +6,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
+ const types_1 = require("@smithy/types");
9
10
  const models_0_1 = require("../models/models_0");
10
11
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
12
  class StartConversationCommand extends smithy_client_1.Command {
@@ -35,6 +36,10 @@ class StartConversationCommand extends smithy_client_1.Command {
35
36
  commandName,
36
37
  inputFilterSensitiveLog: models_0_1.StartConversationRequestFilterSensitiveLog,
37
38
  outputFilterSensitiveLog: models_0_1.StartConversationResponseFilterSensitiveLog,
39
+ [types_1.SMITHY_CONTEXT_KEY]: {
40
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
41
+ operation: "StartConversation",
42
+ },
38
43
  };
39
44
  const { requestHandler } = configuration;
40
45
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_DeleteSessionCommand, se_DeleteSessionCommand } from "../protocols/Aws_restJson1";
5
6
  export { $Command };
6
7
  export class DeleteSessionCommand extends $Command {
@@ -29,6 +30,10 @@ export class DeleteSessionCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
35
+ operation: "DeleteSession",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { GetSessionResponseFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_GetSessionCommand, se_GetSessionCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class GetSessionCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: (_) => _,
32
33
  outputFilterSensitiveLog: GetSessionResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
36
+ operation: "GetSession",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_PutSessionCommand, se_PutSessionCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class PutSessionCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: PutSessionRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: PutSessionResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
36
+ operation: "PutSession",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { RecognizeTextRequestFilterSensitiveLog, RecognizeTextResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_RecognizeTextCommand, se_RecognizeTextCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class RecognizeTextCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: RecognizeTextRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: RecognizeTextResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
36
+ operation: "RecognizeText",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { RecognizeUtteranceRequestFilterSensitiveLog, RecognizeUtteranceResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_RecognizeUtteranceCommand, se_RecognizeUtteranceCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
@@ -30,6 +31,10 @@ export class RecognizeUtteranceCommand extends $Command {
30
31
  commandName,
31
32
  inputFilterSensitiveLog: RecognizeUtteranceRequestFilterSensitiveLog,
32
33
  outputFilterSensitiveLog: RecognizeUtteranceResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
36
+ operation: "RecognizeUtterance",
37
+ },
33
38
  };
34
39
  const { requestHandler } = configuration;
35
40
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -2,6 +2,7 @@ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
6
  import { StartConversationRequestFilterSensitiveLog, StartConversationResponseFilterSensitiveLog, } from "../models/models_0";
6
7
  import { de_StartConversationCommand, se_StartConversationCommand } from "../protocols/Aws_restJson1";
7
8
  export { $Command };
@@ -32,6 +33,10 @@ export class StartConversationCommand extends $Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: StartConversationRequestFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: StartConversationResponseFilterSensitiveLog,
36
+ [SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSDeepSenseRunTimeServiceApi2_0",
38
+ operation: "StartConversation",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
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.414.0",
4
+ "version": "3.421.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",
@@ -21,45 +21,45 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.414.0",
25
- "@aws-sdk/credential-provider-node": "3.414.0",
26
- "@aws-sdk/eventstream-handler-node": "3.413.0",
27
- "@aws-sdk/middleware-eventstream": "3.413.0",
28
- "@aws-sdk/middleware-host-header": "3.413.0",
29
- "@aws-sdk/middleware-logger": "3.413.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.413.0",
31
- "@aws-sdk/middleware-signing": "3.413.0",
32
- "@aws-sdk/middleware-user-agent": "3.413.0",
33
- "@aws-sdk/region-config-resolver": "3.413.0",
34
- "@aws-sdk/types": "3.413.0",
35
- "@aws-sdk/util-endpoints": "3.413.0",
36
- "@aws-sdk/util-user-agent-browser": "3.413.0",
37
- "@aws-sdk/util-user-agent-node": "3.413.0",
38
- "@smithy/config-resolver": "^2.0.8",
39
- "@smithy/eventstream-serde-browser": "^2.0.7",
40
- "@smithy/eventstream-serde-config-resolver": "^2.0.7",
41
- "@smithy/eventstream-serde-node": "^2.0.7",
42
- "@smithy/fetch-http-handler": "^2.1.3",
43
- "@smithy/hash-node": "^2.0.7",
44
- "@smithy/invalid-dependency": "^2.0.7",
45
- "@smithy/middleware-content-length": "^2.0.9",
46
- "@smithy/middleware-endpoint": "^2.0.7",
47
- "@smithy/middleware-retry": "^2.0.10",
48
- "@smithy/middleware-serde": "^2.0.7",
49
- "@smithy/middleware-stack": "^2.0.0",
50
- "@smithy/node-config-provider": "^2.0.10",
51
- "@smithy/node-http-handler": "^2.1.3",
52
- "@smithy/protocol-http": "^3.0.3",
53
- "@smithy/smithy-client": "^2.1.4",
54
- "@smithy/types": "^2.3.1",
55
- "@smithy/url-parser": "^2.0.7",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
+ "@aws-sdk/eventstream-handler-node": "3.418.0",
27
+ "@aws-sdk/middleware-eventstream": "3.418.0",
28
+ "@aws-sdk/middleware-host-header": "3.418.0",
29
+ "@aws-sdk/middleware-logger": "3.418.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.418.0",
31
+ "@aws-sdk/middleware-signing": "3.418.0",
32
+ "@aws-sdk/middleware-user-agent": "3.418.0",
33
+ "@aws-sdk/region-config-resolver": "3.418.0",
34
+ "@aws-sdk/types": "3.418.0",
35
+ "@aws-sdk/util-endpoints": "3.418.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.418.0",
37
+ "@aws-sdk/util-user-agent-node": "3.418.0",
38
+ "@smithy/config-resolver": "^2.0.10",
39
+ "@smithy/eventstream-serde-browser": "^2.0.9",
40
+ "@smithy/eventstream-serde-config-resolver": "^2.0.9",
41
+ "@smithy/eventstream-serde-node": "^2.0.9",
42
+ "@smithy/fetch-http-handler": "^2.1.5",
43
+ "@smithy/hash-node": "^2.0.9",
44
+ "@smithy/invalid-dependency": "^2.0.9",
45
+ "@smithy/middleware-content-length": "^2.0.11",
46
+ "@smithy/middleware-endpoint": "^2.0.9",
47
+ "@smithy/middleware-retry": "^2.0.12",
48
+ "@smithy/middleware-serde": "^2.0.9",
49
+ "@smithy/middleware-stack": "^2.0.2",
50
+ "@smithy/node-config-provider": "^2.0.12",
51
+ "@smithy/node-http-handler": "^2.1.5",
52
+ "@smithy/protocol-http": "^3.0.5",
53
+ "@smithy/smithy-client": "^2.1.6",
54
+ "@smithy/types": "^2.3.3",
55
+ "@smithy/url-parser": "^2.0.9",
56
56
  "@smithy/util-base64": "^2.0.0",
57
57
  "@smithy/util-body-length-browser": "^2.0.0",
58
58
  "@smithy/util-body-length-node": "^2.1.0",
59
- "@smithy/util-defaults-mode-browser": "^2.0.8",
60
- "@smithy/util-defaults-mode-node": "^2.0.10",
61
- "@smithy/util-retry": "^2.0.0",
62
- "@smithy/util-stream": "^2.0.10",
59
+ "@smithy/util-defaults-mode-browser": "^2.0.10",
60
+ "@smithy/util-defaults-mode-node": "^2.0.12",
61
+ "@smithy/util-retry": "^2.0.2",
62
+ "@smithy/util-stream": "^2.0.12",
63
63
  "@smithy/util-utf8": "^2.0.0",
64
64
  "tslib": "^2.5.0"
65
65
  },