@aws-sdk/client-lex-runtime-v2 3.1076.0 → 3.1078.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.
Files changed (38) hide show
  1. package/dist-cjs/index.js +20 -73
  2. package/dist-es/commandBuilder.js +10 -0
  3. package/dist-es/commands/DeleteSessionCommand.js +2 -14
  4. package/dist-es/commands/GetSessionCommand.js +2 -14
  5. package/dist-es/commands/PutSessionCommand.js +2 -14
  6. package/dist-es/commands/RecognizeTextCommand.js +2 -14
  7. package/dist-es/commands/RecognizeUtteranceCommand.js +2 -14
  8. package/dist-es/commands/StartConversationCommand.js +2 -23
  9. package/dist-es/index.js +1 -0
  10. package/dist-es/runtimeConfig.browser.js +0 -2
  11. package/dist-es/runtimeConfig.js +1 -2
  12. package/dist-es/runtimeConfig.native.js +0 -2
  13. package/dist-es/runtimeConfig.shared.js +2 -0
  14. package/dist-types/commandBuilder.d.ts +22 -0
  15. package/dist-types/commands/DeleteSessionCommand.d.ts +3 -8
  16. package/dist-types/commands/GetSessionCommand.d.ts +3 -8
  17. package/dist-types/commands/PutSessionCommand.d.ts +3 -8
  18. package/dist-types/commands/RecognizeTextCommand.d.ts +3 -8
  19. package/dist-types/commands/RecognizeUtteranceCommand.d.ts +3 -8
  20. package/dist-types/commands/StartConversationCommand.d.ts +3 -8
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  23. package/dist-types/runtimeConfig.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
  27. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +7 -16
  28. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +7 -16
  29. package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +7 -16
  30. package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +7 -16
  31. package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +7 -16
  32. package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +7 -16
  33. package/dist-types/ts3.4/index.d.ts +1 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  38. package/package.json +11 -13
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
3
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
- exports.$Command = Command;
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
5
+ const { Command: $Command } = require("@smithy/core/client");
6
+ exports.$Command = $Command;
6
7
  exports.__Client = Client;
7
8
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
9
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -13,9 +14,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
13
14
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
14
15
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
16
  const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
16
- const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
17
+ const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
17
18
  const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
18
19
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
20
+ const { Sha256 } = require("@smithy/core/checksum");
19
21
 
20
22
  const defaultLexRuntimeV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
21
23
  return {
@@ -70,7 +72,7 @@ const commonParams = {
70
72
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
73
  };
72
74
 
73
- var version = "3.1075.0";
75
+ var version = "3.1077.0";
74
76
  var packageInfo = {
75
77
  version: version};
76
78
 
@@ -771,6 +773,7 @@ const getRuntimeConfig$1 = (config) => {
771
773
  },
772
774
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
773
775
  serviceId: config?.serviceId ?? "Lex Runtime V2",
776
+ sha256: config?.sha256 ?? Sha256,
774
777
  urlParser: config?.urlParser ?? parseUrl,
775
778
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
776
779
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -809,7 +812,6 @@ const getRuntimeConfig = (config) => {
809
812
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
810
813
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
811
814
  }, config),
812
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
813
815
  streamCollector: config?.streamCollector ?? streamCollector,
814
816
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
815
817
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -899,84 +901,29 @@ class LexRuntimeV2Client extends Client {
899
901
  }
900
902
  }
901
903
 
902
- class DeleteSessionCommand extends Command
903
- .classBuilder()
904
- .ep(commonParams)
905
- .m(function (Command, cs, config, o) {
906
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
907
- })
908
- .s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {})
909
- .n("LexRuntimeV2Client", "DeleteSessionCommand")
910
- .sc(DeleteSession$)
911
- .build() {
904
+ const command = makeBuilder(commonParams, "AWSDeepSenseRunTimeServiceApi2_0", "LexRuntimeV2Client", getEndpointPlugin);
905
+ const _ep0 = {};
906
+ const _mw0 = (Command, cs, config, o) => [];
907
+ const _mw1 = (Command, cs, config, o) => [
908
+ getEventStreamPlugin(config),
909
+ ];
910
+
911
+ class DeleteSessionCommand extends command(_ep0, _mw0, "DeleteSession", DeleteSession$) {
912
912
  }
913
913
 
914
- class GetSessionCommand extends Command
915
- .classBuilder()
916
- .ep(commonParams)
917
- .m(function (Command, cs, config, o) {
918
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
919
- })
920
- .s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {})
921
- .n("LexRuntimeV2Client", "GetSessionCommand")
922
- .sc(GetSession$)
923
- .build() {
914
+ class GetSessionCommand extends command(_ep0, _mw0, "GetSession", GetSession$) {
924
915
  }
925
916
 
926
- class PutSessionCommand extends Command
927
- .classBuilder()
928
- .ep(commonParams)
929
- .m(function (Command, cs, config, o) {
930
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
931
- })
932
- .s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {})
933
- .n("LexRuntimeV2Client", "PutSessionCommand")
934
- .sc(PutSession$)
935
- .build() {
917
+ class PutSessionCommand extends command(_ep0, _mw0, "PutSession", PutSession$) {
936
918
  }
937
919
 
938
- class RecognizeTextCommand extends Command
939
- .classBuilder()
940
- .ep(commonParams)
941
- .m(function (Command, cs, config, o) {
942
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
943
- })
944
- .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {})
945
- .n("LexRuntimeV2Client", "RecognizeTextCommand")
946
- .sc(RecognizeText$)
947
- .build() {
920
+ class RecognizeTextCommand extends command(_ep0, _mw0, "RecognizeText", RecognizeText$) {
948
921
  }
949
922
 
950
- class RecognizeUtteranceCommand extends Command
951
- .classBuilder()
952
- .ep(commonParams)
953
- .m(function (Command, cs, config, o) {
954
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
955
- })
956
- .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {})
957
- .n("LexRuntimeV2Client", "RecognizeUtteranceCommand")
958
- .sc(RecognizeUtterance$)
959
- .build() {
923
+ class RecognizeUtteranceCommand extends command(_ep0, _mw0, "RecognizeUtterance", RecognizeUtterance$) {
960
924
  }
961
925
 
962
- class StartConversationCommand extends Command
963
- .classBuilder()
964
- .ep(commonParams)
965
- .m(function (Command, cs, config, o) {
966
- return [
967
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
968
- getEventStreamPlugin(config),
969
- ];
970
- })
971
- .s("AWSDeepSenseRunTimeServiceApi2_0", "StartConversation", {
972
- eventStream: {
973
- input: true,
974
- output: true,
975
- },
976
- })
977
- .n("LexRuntimeV2Client", "StartConversationCommand")
978
- .sc(StartConversation$)
979
- .build() {
926
+ class StartConversationCommand extends command(_ep0, _mw1, "StartConversation", StartConversation$) {
980
927
  }
981
928
 
982
929
  const commands = {
@@ -0,0 +1,10 @@
1
+ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
+ import { makeBuilder } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "./endpoint/EndpointParameters";
5
+ export const command = makeBuilder(commonParams, "AWSDeepSenseRunTimeServiceApi2_0", "LexRuntimeV2Client", getEndpointPlugin);
6
+ export const _ep0 = {};
7
+ export const _mw0 = (Command, cs, config, o) => [];
8
+ export const _mw1 = (Command, cs, config, o) => [
9
+ getEventStreamPlugin(config),
10
+ ];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteSession$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSessionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {})
13
- .n("LexRuntimeV2Client", "DeleteSessionCommand")
14
- .sc(DeleteSession$)
15
- .build() {
3
+ export class DeleteSessionCommand extends command(_ep0, _mw0, "DeleteSession", DeleteSession$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetSession$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSessionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {})
13
- .n("LexRuntimeV2Client", "GetSessionCommand")
14
- .sc(GetSession$)
15
- .build() {
3
+ export class GetSessionCommand extends command(_ep0, _mw0, "GetSession", GetSession$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutSession$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutSessionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {})
13
- .n("LexRuntimeV2Client", "PutSessionCommand")
14
- .sc(PutSession$)
15
- .build() {
3
+ export class PutSessionCommand extends command(_ep0, _mw0, "PutSession", PutSession$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RecognizeText$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RecognizeTextCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {})
13
- .n("LexRuntimeV2Client", "RecognizeTextCommand")
14
- .sc(RecognizeText$)
15
- .build() {
3
+ export class RecognizeTextCommand extends command(_ep0, _mw0, "RecognizeText", RecognizeText$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RecognizeUtterance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RecognizeUtteranceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {})
13
- .n("LexRuntimeV2Client", "RecognizeUtteranceCommand")
14
- .sc(RecognizeUtterance$)
15
- .build() {
3
+ export class RecognizeUtteranceCommand extends command(_ep0, _mw0, "RecognizeUtterance", RecognizeUtterance$) {
16
4
  }
@@ -1,25 +1,4 @@
1
- import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw1, command } from "../commandBuilder";
5
2
  import { StartConversation$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class StartConversationCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEventStreamPlugin(config),
14
- ];
15
- })
16
- .s("AWSDeepSenseRunTimeServiceApi2_0", "StartConversation", {
17
- eventStream: {
18
- input: true,
19
- output: true,
20
- },
21
- })
22
- .n("LexRuntimeV2Client", "StartConversationCommand")
23
- .sc(StartConversation$)
24
- .build() {
3
+ export class StartConversationCommand extends command(_ep0, _mw1, "StartConversation", StartConversation$) {
25
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./LexRuntimeV2Client";
2
2
  export * from "./LexRuntimeV2";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidFunction, invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -28,7 +27,6 @@ export const getRuntimeConfig = (config) => {
28
27
  region: config?.region ?? invalidProvider("Region is missing"),
29
28
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
- sha256: config?.sha256 ?? Sha256,
32
30
  streamCollector: config?.streamCollector ?? streamCollector,
33
31
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
34
32
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -7,7 +7,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
7
7
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
8
  import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
9
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
10
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
+ import { calculateBodyLength } from "@smithy/core/serde";
11
11
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
13
  export const getRuntimeConfig = (config) => {
@@ -42,7 +42,6 @@ export const getRuntimeConfig = (config) => {
42
42
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
43
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
44
44
  }, config),
45
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
45
  streamCollector: config?.streamCollector ?? streamCollector,
47
46
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
47
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { invalidFunction } from "@smithy/core/client";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
3
  export const getRuntimeConfig = (config) => {
@@ -10,6 +9,5 @@ export const getRuntimeConfig = (config) => {
10
9
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
11
10
  handle: invalidFunction("event stream request is not supported in ReactNative."),
12
11
  })),
13
- sha256: config?.sha256 ?? Sha256,
14
12
  };
15
13
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, sdkStreamMixin, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  },
33
34
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
34
35
  serviceId: config?.serviceId ?? "Lex Runtime V2",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,22 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./LexRuntimeV2Client";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
19
+ /**
20
+ * @internal
21
+ */
22
+ export declare const _mw1: (Command: any, cs: any, config: any, o: any) => import("@smithy/types").Pluggable<any, any>[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteSessionCommandInput extends DeleteSessionRequest {
22
19
  export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteSessionCommand_base: {
25
- new (input: DeleteSessionCommandInput): import("@smithy/core/client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteSessionCommandInput): import("@smithy/core/client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteSessionCommandInput): import("@smithy/core/client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteSessionCommandInput): import("@smithy/core/client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Removes session information for a specified bot, alias, and user ID. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { GetSessionRequest, GetSessionResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetSessionCommandInput extends GetSessionRequest {
22
19
  export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetSessionCommand_base: {
25
- new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetSessionCommandInput): import("@smithy/core/client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns session information for a specified bot, alias, and
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { PutSessionRequest, PutSessionResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -23,11 +20,9 @@ export interface PutSessionCommandOutput extends Omit<PutSessionResponse, "audio
23
20
  audioStream?: StreamingBlobPayloadOutputTypes;
24
21
  }
25
22
  declare const PutSessionCommand_base: {
26
- new (input: PutSessionCommandInput): import("@smithy/core/client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- new (input: PutSessionCommandInput): import("@smithy/core/client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
- getEndpointParameterInstructions(): {
29
- [x: string]: unknown;
30
- };
23
+ new (input: PutSessionCommandInput): import("@smithy/core/client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ new (input: PutSessionCommandInput): import("@smithy/core/client").CommandImpl<PutSessionCommandInput, PutSessionCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
31
26
  };
32
27
  /**
33
28
  * <p>Creates a new session or modifies an existing session with an Amazon Lex V2
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { RecognizeTextRequest, RecognizeTextResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface RecognizeTextCommandInput extends RecognizeTextRequest {
22
19
  export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __MetadataBearer {
23
20
  }
24
21
  declare const RecognizeTextCommand_base: {
25
- new (input: RecognizeTextCommandInput): import("@smithy/core/client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: RecognizeTextCommandInput): import("@smithy/core/client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: RecognizeTextCommandInput): import("@smithy/core/client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: RecognizeTextCommandInput): import("@smithy/core/client").CommandImpl<RecognizeTextCommandInput, RecognizeTextCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Sends user input to Amazon Lex V2. Client applications use this API to send
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes, StreamingBlobPayloadOutputTypes } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { RecognizeUtteranceRequest, RecognizeUtteranceResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -24,11 +21,9 @@ export interface RecognizeUtteranceCommandOutput extends Omit<RecognizeUtterance
24
21
  audioStream?: StreamingBlobPayloadOutputTypes;
25
22
  }
26
23
  declare const RecognizeUtteranceCommand_base: {
27
- new (input: RecognizeUtteranceCommandInput): import("@smithy/core/client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
- new (input: RecognizeUtteranceCommandInput): import("@smithy/core/client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
29
- getEndpointParameterInstructions(): {
30
- [x: string]: unknown;
31
- };
24
+ new (input: RecognizeUtteranceCommandInput): import("@smithy/core/client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
25
+ new (input: RecognizeUtteranceCommandInput): import("@smithy/core/client").CommandImpl<RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
27
  };
33
28
  /**
34
29
  * <p>Sends user input to Amazon Lex V2. You can send text or speech. Clients use
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client";
4
2
  import type { StartConversationRequest, StartConversationResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface StartConversationCommandInput extends StartConversationRequest
22
19
  export interface StartConversationCommandOutput extends StartConversationResponse, __MetadataBearer {
23
20
  }
24
21
  declare const StartConversationCommand_base: {
25
- new (input: StartConversationCommandInput): import("@smithy/core/client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: StartConversationCommandInput): import("@smithy/core/client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: StartConversationCommandInput): import("@smithy/core/client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: StartConversationCommandInput): import("@smithy/core/client").CommandImpl<StartConversationCommandInput, StartConversationCommandOutput, import("..").LexRuntimeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Starts an HTTP/2 bidirectional event stream that enables you to send
@@ -9,6 +9,7 @@ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameter
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { LexRuntimeV2ExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
12
13
  export * from "./schemas/schemas_0";
13
14
  export * from "./models/enums";
14
15
  export * from "./models/errors";
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
15
15
  region: string | import("@smithy/types").Provider<any>;
16
16
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,7 +16,6 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
16
16
  region: string | import("@smithy/types").Provider<string>;
17
17
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
19
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
28
27
  [setting: string]: unknown;
29
28
  };
30
29
  apiVersion: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -5,7 +5,6 @@ import type { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
5
5
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
6
6
  runtime: string;
7
7
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
8
- sha256: import("@smithy/types").HashConstructor;
9
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
9
  cacheMiddleware?: boolean;
11
10
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
@@ -14,6 +13,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
14
13
  [setting: string]: unknown;
15
14
  };
16
15
  apiVersion: string;
16
+ sha256: import("@smithy/types").HashConstructor;
17
17
  urlParser: import("@smithy/types").UrlParser;
18
18
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
19
19
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
22
22
  };
23
23
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
24
24
  serviceId: string;
25
+ sha256: import("@smithy/types").HashConstructor;
25
26
  urlParser: import("@smithy/types").UrlParser;
26
27
  utf8Decoder: import("@smithy/types").Decoder;
27
28
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -0,0 +1,52 @@
1
+ import { EndpointParameterInstructions } from "@smithy/types";
2
+ import {
3
+ LexRuntimeV2ClientResolvedConfig,
4
+ ServiceInputTypes,
5
+ ServiceOutputTypes,
6
+ } from "./LexRuntimeV2Client";
7
+ export declare const command: <
8
+ I extends ServiceInputTypes,
9
+ O extends ServiceOutputTypes
10
+ >(
11
+ added: EndpointParameterInstructions,
12
+ plugins: (
13
+ CommandCtor: any,
14
+ clientStack: any,
15
+ config: any,
16
+ options: any
17
+ ) => import("@smithy/types").Pluggable<any, any>[],
18
+ op: string,
19
+ $: import("@smithy/types").StaticOperationSchema,
20
+ smithyContext?: Record<string, unknown>
21
+ ) => {
22
+ new (input: I): import("@smithy/core/client").CommandImpl<
23
+ I,
24
+ O,
25
+ LexRuntimeV2ClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: import("@smithy/types").OptionalParameter<I>
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ I,
33
+ O,
34
+ LexRuntimeV2ClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
39
+ };
40
+ export declare const _ep0: EndpointParameterInstructions;
41
+ export declare const _mw0: (
42
+ Command: any,
43
+ cs: any,
44
+ config: any,
45
+ o: any
46
+ ) => never[];
47
+ export declare const _mw1: (
48
+ Command: any,
49
+ cs: any,
50
+ config: any,
51
+ o: any
52
+ ) => import("@smithy/types").Pluggable<any, any>[];
@@ -1,16 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- LexRuntimeV2ClientResolvedConfig,
5
- ServiceInputTypes,
6
- ServiceOutputTypes,
7
- } from "../LexRuntimeV2Client";
8
2
  import {
9
3
  DeleteSessionRequest,
10
4
  DeleteSessionResponse,
11
5
  } from "../models/models_0";
12
6
  export { __MetadataBearer };
13
- export { $Command };
14
7
  export interface DeleteSessionCommandInput extends DeleteSessionRequest {}
15
8
  export interface DeleteSessionCommandOutput
16
9
  extends DeleteSessionResponse,
@@ -21,22 +14,20 @@ declare const DeleteSessionCommand_base: {
21
14
  ): import("@smithy/core/client").CommandImpl<
22
15
  DeleteSessionCommandInput,
23
16
  DeleteSessionCommandOutput,
24
- LexRuntimeV2ClientResolvedConfig,
25
- ServiceInputTypes,
26
- ServiceOutputTypes
17
+ import("..").LexRuntimeV2ClientResolvedConfig,
18
+ import("..").ServiceInputTypes,
19
+ import("..").ServiceOutputTypes
27
20
  >;
28
21
  new (
29
22
  input: DeleteSessionCommandInput
30
23
  ): import("@smithy/core/client").CommandImpl<
31
24
  DeleteSessionCommandInput,
32
25
  DeleteSessionCommandOutput,
33
- LexRuntimeV2ClientResolvedConfig,
34
- ServiceInputTypes,
35
- ServiceOutputTypes
26
+ import("..").LexRuntimeV2ClientResolvedConfig,
27
+ import("..").ServiceInputTypes,
28
+ import("..").ServiceOutputTypes
36
29
  >;
37
- getEndpointParameterInstructions(): {
38
- [x: string]: unknown;
39
- };
30
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
40
31
  };
41
32
  export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
42
33
  protected static __types: {
@@ -1,13 +1,6 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- LexRuntimeV2ClientResolvedConfig,
5
- ServiceInputTypes,
6
- ServiceOutputTypes,
7
- } from "../LexRuntimeV2Client";
8
2
  import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
9
3
  export { __MetadataBearer };
10
- export { $Command };
11
4
  export interface GetSessionCommandInput extends GetSessionRequest {}
12
5
  export interface GetSessionCommandOutput
13
6
  extends GetSessionResponse,
@@ -18,22 +11,20 @@ declare const GetSessionCommand_base: {
18
11
  ): import("@smithy/core/client").CommandImpl<
19
12
  GetSessionCommandInput,
20
13
  GetSessionCommandOutput,
21
- LexRuntimeV2ClientResolvedConfig,
22
- ServiceInputTypes,
23
- ServiceOutputTypes
14
+ import("..").LexRuntimeV2ClientResolvedConfig,
15
+ import("..").ServiceInputTypes,
16
+ import("..").ServiceOutputTypes
24
17
  >;
25
18
  new (
26
19
  input: GetSessionCommandInput
27
20
  ): import("@smithy/core/client").CommandImpl<
28
21
  GetSessionCommandInput,
29
22
  GetSessionCommandOutput,
30
- LexRuntimeV2ClientResolvedConfig,
31
- ServiceInputTypes,
32
- ServiceOutputTypes
23
+ import("..").LexRuntimeV2ClientResolvedConfig,
24
+ import("..").ServiceInputTypes,
25
+ import("..").ServiceOutputTypes
33
26
  >;
34
- getEndpointParameterInstructions(): {
35
- [x: string]: unknown;
36
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
37
28
  };
38
29
  export declare class GetSessionCommand extends GetSessionCommand_base {
39
30
  protected static __types: {
@@ -1,16 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import {
3
2
  MetadataBearer as __MetadataBearer,
4
3
  StreamingBlobPayloadOutputTypes,
5
4
  } from "@smithy/types";
6
- import {
7
- LexRuntimeV2ClientResolvedConfig,
8
- ServiceInputTypes,
9
- ServiceOutputTypes,
10
- } from "../LexRuntimeV2Client";
11
5
  import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
12
6
  export { __MetadataBearer };
13
- export { $Command };
14
7
  export interface PutSessionCommandInput extends PutSessionRequest {}
15
8
  export interface PutSessionCommandOutput
16
9
  extends Pick<
@@ -26,22 +19,20 @@ declare const PutSessionCommand_base: {
26
19
  ): import("@smithy/core/client").CommandImpl<
27
20
  PutSessionCommandInput,
28
21
  PutSessionCommandOutput,
29
- LexRuntimeV2ClientResolvedConfig,
30
- ServiceInputTypes,
31
- ServiceOutputTypes
22
+ import("..").LexRuntimeV2ClientResolvedConfig,
23
+ import("..").ServiceInputTypes,
24
+ import("..").ServiceOutputTypes
32
25
  >;
33
26
  new (
34
27
  input: PutSessionCommandInput
35
28
  ): import("@smithy/core/client").CommandImpl<
36
29
  PutSessionCommandInput,
37
30
  PutSessionCommandOutput,
38
- LexRuntimeV2ClientResolvedConfig,
39
- ServiceInputTypes,
40
- ServiceOutputTypes
31
+ import("..").LexRuntimeV2ClientResolvedConfig,
32
+ import("..").ServiceInputTypes,
33
+ import("..").ServiceOutputTypes
41
34
  >;
42
- getEndpointParameterInstructions(): {
43
- [x: string]: unknown;
44
- };
35
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
45
36
  };
46
37
  export declare class PutSessionCommand extends PutSessionCommand_base {
47
38
  protected static __types: {
@@ -1,16 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- LexRuntimeV2ClientResolvedConfig,
5
- ServiceInputTypes,
6
- ServiceOutputTypes,
7
- } from "../LexRuntimeV2Client";
8
2
  import {
9
3
  RecognizeTextRequest,
10
4
  RecognizeTextResponse,
11
5
  } from "../models/models_0";
12
6
  export { __MetadataBearer };
13
- export { $Command };
14
7
  export interface RecognizeTextCommandInput extends RecognizeTextRequest {}
15
8
  export interface RecognizeTextCommandOutput
16
9
  extends RecognizeTextResponse,
@@ -21,22 +14,20 @@ declare const RecognizeTextCommand_base: {
21
14
  ): import("@smithy/core/client").CommandImpl<
22
15
  RecognizeTextCommandInput,
23
16
  RecognizeTextCommandOutput,
24
- LexRuntimeV2ClientResolvedConfig,
25
- ServiceInputTypes,
26
- ServiceOutputTypes
17
+ import("..").LexRuntimeV2ClientResolvedConfig,
18
+ import("..").ServiceInputTypes,
19
+ import("..").ServiceOutputTypes
27
20
  >;
28
21
  new (
29
22
  input: RecognizeTextCommandInput
30
23
  ): import("@smithy/core/client").CommandImpl<
31
24
  RecognizeTextCommandInput,
32
25
  RecognizeTextCommandOutput,
33
- LexRuntimeV2ClientResolvedConfig,
34
- ServiceInputTypes,
35
- ServiceOutputTypes
26
+ import("..").LexRuntimeV2ClientResolvedConfig,
27
+ import("..").ServiceInputTypes,
28
+ import("..").ServiceOutputTypes
36
29
  >;
37
- getEndpointParameterInstructions(): {
38
- [x: string]: unknown;
39
- };
30
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
40
31
  };
41
32
  export declare class RecognizeTextCommand extends RecognizeTextCommand_base {
42
33
  protected static __types: {
@@ -1,20 +1,13 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import {
3
2
  MetadataBearer as __MetadataBearer,
4
3
  StreamingBlobPayloadInputTypes,
5
4
  StreamingBlobPayloadOutputTypes,
6
5
  } from "@smithy/types";
7
- import {
8
- LexRuntimeV2ClientResolvedConfig,
9
- ServiceInputTypes,
10
- ServiceOutputTypes,
11
- } from "../LexRuntimeV2Client";
12
6
  import {
13
7
  RecognizeUtteranceRequest,
14
8
  RecognizeUtteranceResponse,
15
9
  } from "../models/models_0";
16
10
  export { __MetadataBearer };
17
- export { $Command };
18
11
  export interface RecognizeUtteranceCommandInput
19
12
  extends Pick<
20
13
  RecognizeUtteranceRequest,
@@ -36,22 +29,20 @@ declare const RecognizeUtteranceCommand_base: {
36
29
  ): import("@smithy/core/client").CommandImpl<
37
30
  RecognizeUtteranceCommandInput,
38
31
  RecognizeUtteranceCommandOutput,
39
- LexRuntimeV2ClientResolvedConfig,
40
- ServiceInputTypes,
41
- ServiceOutputTypes
32
+ import("..").LexRuntimeV2ClientResolvedConfig,
33
+ import("..").ServiceInputTypes,
34
+ import("..").ServiceOutputTypes
42
35
  >;
43
36
  new (
44
37
  input: RecognizeUtteranceCommandInput
45
38
  ): import("@smithy/core/client").CommandImpl<
46
39
  RecognizeUtteranceCommandInput,
47
40
  RecognizeUtteranceCommandOutput,
48
- LexRuntimeV2ClientResolvedConfig,
49
- ServiceInputTypes,
50
- ServiceOutputTypes
41
+ import("..").LexRuntimeV2ClientResolvedConfig,
42
+ import("..").ServiceInputTypes,
43
+ import("..").ServiceOutputTypes
51
44
  >;
52
- getEndpointParameterInstructions(): {
53
- [x: string]: unknown;
54
- };
45
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
55
46
  };
56
47
  export declare class RecognizeUtteranceCommand extends RecognizeUtteranceCommand_base {
57
48
  protected static __types: {
@@ -1,16 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- LexRuntimeV2ClientResolvedConfig,
5
- ServiceInputTypes,
6
- ServiceOutputTypes,
7
- } from "../LexRuntimeV2Client";
8
2
  import {
9
3
  StartConversationRequest,
10
4
  StartConversationResponse,
11
5
  } from "../models/models_0";
12
6
  export { __MetadataBearer };
13
- export { $Command };
14
7
  export interface StartConversationCommandInput
15
8
  extends StartConversationRequest {}
16
9
  export interface StartConversationCommandOutput
@@ -22,22 +15,20 @@ declare const StartConversationCommand_base: {
22
15
  ): import("@smithy/core/client").CommandImpl<
23
16
  StartConversationCommandInput,
24
17
  StartConversationCommandOutput,
25
- LexRuntimeV2ClientResolvedConfig,
26
- ServiceInputTypes,
27
- ServiceOutputTypes
18
+ import("..").LexRuntimeV2ClientResolvedConfig,
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
28
21
  >;
29
22
  new (
30
23
  input: StartConversationCommandInput
31
24
  ): import("@smithy/core/client").CommandImpl<
32
25
  StartConversationCommandInput,
33
26
  StartConversationCommandOutput,
34
- LexRuntimeV2ClientResolvedConfig,
35
- ServiceInputTypes,
36
- ServiceOutputTypes
27
+ import("..").LexRuntimeV2ClientResolvedConfig,
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
37
30
  >;
38
- getEndpointParameterInstructions(): {
39
- [x: string]: unknown;
40
- };
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
41
32
  };
42
33
  export declare class StartConversationCommand extends StartConversationCommand_base {
43
34
  protected static __types: {
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { LexRuntimeV2ExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export { Command as $Command } from "@smithy/core/client";
7
8
  export * from "./schemas/schemas_0";
8
9
  export * from "./models/enums";
9
10
  export * from "./models/errors";
@@ -22,7 +22,6 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
22
22
  | import("@smithy/core/protocols").HttpHandler<any>
23
23
  | RequestHandler;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
- sha256: import("@smithy/types").HashConstructor;
26
25
  streamCollector: (
27
26
  stream:
28
27
  | import("stream").Readable
@@ -44,6 +43,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
44
43
  [setting: string]: unknown;
45
44
  };
46
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
47
47
  urlParser: import("@smithy/types").UrlParser;
48
48
  base64Decoder: import("@smithy/types").Decoder;
49
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -23,7 +23,6 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
23
23
  | RequestHandler
24
24
  | import("@smithy/core/protocols").HttpHandler<any>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
- sha256: import("@smithy/types").HashConstructor;
27
26
  streamCollector: (
28
27
  stream:
29
28
  | import("stream").Readable
@@ -44,6 +43,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
44
43
  [setting: string]: unknown;
45
44
  };
46
45
  apiVersion: string;
46
+ sha256: import("@smithy/types").HashConstructor;
47
47
  urlParser: import("@smithy/types").UrlParser;
48
48
  base64Decoder: import("@smithy/types").Decoder;
49
49
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -2,7 +2,6 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
2
2
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
3
3
  runtime: string;
4
4
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
5
- sha256: import("@smithy/types").HashConstructor;
6
5
  requestHandler:
7
6
  | import("@smithy/types").NodeHttpHandlerOptions
8
7
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -19,6 +18,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
19
18
  [setting: string]: unknown;
20
19
  };
21
20
  apiVersion: string;
21
+ sha256: import("@smithy/types").HashConstructor;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
24
24
  streamCollector: (
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
25
25
  };
26
26
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
27
27
  serviceId: string;
28
+ sha256: import("@smithy/types").HashConstructor;
28
29
  urlParser: import("@smithy/types").UrlParser;
29
30
  utf8Decoder: import("@smithy/types").Decoder;
30
31
  utf8Encoder: (input: Uint8Array | string) => string;
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.1076.0",
4
+ "version": "3.1078.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -23,21 +23,19 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@aws-crypto/sha256-browser": "5.2.0",
27
- "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.24",
29
- "@aws-sdk/credential-provider-node": "^3.972.59",
30
- "@aws-sdk/eventstream-handler-node": "^3.972.23",
31
- "@aws-sdk/middleware-eventstream": "^3.972.19",
32
- "@aws-sdk/types": "^3.973.14",
33
- "@smithy/core": "^3.27.0",
34
- "@smithy/fetch-http-handler": "^5.6.0",
35
- "@smithy/node-http-handler": "^4.9.0",
36
- "@smithy/types": "^4.15.0",
26
+ "@aws-sdk/core": "^3.974.26",
27
+ "@aws-sdk/credential-provider-node": "^3.972.61",
28
+ "@aws-sdk/eventstream-handler-node": "^3.972.25",
29
+ "@aws-sdk/middleware-eventstream": "^3.972.21",
30
+ "@aws-sdk/types": "^3.973.15",
31
+ "@smithy/core": "^3.29.0",
32
+ "@smithy/fetch-http-handler": "^5.6.2",
33
+ "@smithy/node-http-handler": "^4.9.2",
34
+ "@smithy/types": "^4.15.1",
37
35
  "tslib": "^2.6.2"
38
36
  },
39
37
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.2.3",
38
+ "@smithy/snapshot-testing": "^2.2.5",
41
39
  "@tsconfig/node20": "20.1.8",
42
40
  "@types/node": "^20.14.8",
43
41
  "concurrently": "7.0.0",