@aws-sdk/client-lex-runtime-v2 3.1076.0 → 3.1077.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +4 -3
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +9 -11
package/dist-cjs/index.js
CHANGED
|
@@ -13,9 +13,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
|
13
13
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
14
14
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
15
15
|
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
16
|
-
const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64,
|
|
16
|
+
const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
17
17
|
const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
|
|
18
18
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
19
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
19
20
|
|
|
20
21
|
const defaultLexRuntimeV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
21
22
|
return {
|
|
@@ -70,7 +71,7 @@ const commonParams = {
|
|
|
70
71
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
71
72
|
};
|
|
72
73
|
|
|
73
|
-
var version = "3.
|
|
74
|
+
var version = "3.1076.0";
|
|
74
75
|
var packageInfo = {
|
|
75
76
|
version: version};
|
|
76
77
|
|
|
@@ -771,6 +772,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
771
772
|
},
|
|
772
773
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
773
774
|
serviceId: config?.serviceId ?? "Lex Runtime V2",
|
|
775
|
+
sha256: config?.sha256 ?? Sha256,
|
|
774
776
|
urlParser: config?.urlParser ?? parseUrl,
|
|
775
777
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
776
778
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -809,7 +811,6 @@ const getRuntimeConfig = (config) => {
|
|
|
809
811
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
810
812
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
811
813
|
}, config),
|
|
812
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
813
814
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
814
815
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
815
816
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -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)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -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
|
|
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,
|
|
@@ -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;
|
|
@@ -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.
|
|
4
|
+
"version": "3.1077.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-
|
|
27
|
-
"@aws-
|
|
28
|
-
"@aws-sdk/
|
|
29
|
-
"@aws-sdk/
|
|
30
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.23",
|
|
31
|
-
"@aws-sdk/middleware-eventstream": "^3.972.19",
|
|
26
|
+
"@aws-sdk/core": "^3.974.25",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
28
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.24",
|
|
29
|
+
"@aws-sdk/middleware-eventstream": "^3.972.20",
|
|
32
30
|
"@aws-sdk/types": "^3.973.14",
|
|
33
|
-
"@smithy/core": "^3.
|
|
34
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
35
|
-
"@smithy/node-http-handler": "^4.9.
|
|
31
|
+
"@smithy/core": "^3.28.0",
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
33
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
36
34
|
"@smithy/types": "^4.15.0",
|
|
37
35
|
"tslib": "^2.6.2"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
|
-
"@smithy/snapshot-testing": "^2.2.
|
|
38
|
+
"@smithy/snapshot-testing": "^2.2.4",
|
|
41
39
|
"@tsconfig/node20": "20.1.8",
|
|
42
40
|
"@types/node": "^20.14.8",
|
|
43
41
|
"concurrently": "7.0.0",
|