@aws-sdk/client-bedrock-runtime 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 +11 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,9 +15,10 @@ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE
|
|
|
15
15
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
16
16
|
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
17
17
|
const { fromEnvSigningName, nodeProvider } = require("@aws-sdk/token-providers");
|
|
18
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
18
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
19
19
|
const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
|
|
20
20
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
21
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
21
22
|
|
|
22
23
|
const defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
23
24
|
return {
|
|
@@ -88,7 +89,7 @@ const commonParams = {
|
|
|
88
89
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
89
90
|
};
|
|
90
91
|
|
|
91
|
-
var version = "3.
|
|
92
|
+
var version = "3.1076.0";
|
|
92
93
|
var packageInfo = {
|
|
93
94
|
version: version};
|
|
94
95
|
|
|
@@ -2018,6 +2019,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
2018
2019
|
serviceTarget: "AmazonBedrockFrontendService",
|
|
2019
2020
|
},
|
|
2020
2021
|
serviceId: config?.serviceId ?? "Bedrock Runtime",
|
|
2022
|
+
sha256: config?.sha256 ?? Sha256,
|
|
2021
2023
|
urlParser: config?.urlParser ?? parseUrl,
|
|
2022
2024
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
2023
2025
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -2076,7 +2078,6 @@ const getRuntimeConfig = (config) => {
|
|
|
2076
2078
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
2077
2079
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
2078
2080
|
}, config),
|
|
2079
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
2080
2081
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
2081
2082
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
2082
2083
|
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 { eventStreamPayloadHandlerProvider, WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
5
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
@@ -28,7 +27,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
27
|
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
29
28
|
?? defaultConfigProvider, HttpRequestHandler.create(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
|
@@ -9,7 +9,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
|
|
|
9
9
|
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";
|
|
10
10
|
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
11
11
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
12
|
-
import { calculateBodyLength
|
|
12
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
13
13
|
import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
export const getRuntimeConfig = (config) => {
|
|
@@ -64,7 +64,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
64
64
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
65
65
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
66
66
|
}, config),
|
|
67
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
68
67
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
69
68
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
70
69
|
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,6 +1,7 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
3
|
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
4
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
4
5
|
import { NoOpLogger } from "@smithy/core/client";
|
|
5
6
|
import { parseUrl } from "@smithy/core/protocols";
|
|
6
7
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -37,6 +38,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
37
38
|
serviceTarget: "AmazonBedrockFrontendService",
|
|
38
39
|
},
|
|
39
40
|
serviceId: config?.serviceId ?? "Bedrock Runtime",
|
|
41
|
+
sha256: config?.sha256 ?? Sha256,
|
|
40
42
|
urlParser: config?.urlParser ?? parseUrl,
|
|
41
43
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
44
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
15
15
|
region: string | import("@smithy/types").Provider<any>;
|
|
16
16
|
requestHandler: WebSocketRequestHandler;
|
|
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: BedrockRuntimeClientConfig) => {
|
|
|
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;
|
|
@@ -28,7 +28,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
28
28
|
region: string | import("@smithy/types").Provider<string>;
|
|
29
29
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
30
30
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
31
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
32
31
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
33
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
34
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -40,6 +39,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
40
39
|
[setting: string]: unknown;
|
|
41
40
|
};
|
|
42
41
|
apiVersion: string;
|
|
42
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
43
43
|
urlParser: import("@smithy/types").UrlParser;
|
|
44
44
|
base64Decoder: import("@smithy/types").Decoder;
|
|
45
45
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -5,7 +5,6 @@ import type { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
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/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/core/transport").HttpRequest, import("@smithy/core/transport").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
10
9
|
updateHttpClientConfig(key: never, value: never): void;
|
|
11
10
|
httpHandlerConfigs(): {};
|
|
@@ -17,6 +16,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
17
16
|
[setting: string]: unknown;
|
|
18
17
|
};
|
|
19
18
|
apiVersion: string;
|
|
19
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
20
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
21
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
22
22
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
32
32
|
defaultNamespace?: string;
|
|
33
33
|
};
|
|
34
34
|
serviceId: string;
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
35
36
|
urlParser: import("@smithy/types").UrlParser;
|
|
36
37
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
38
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -20,7 +20,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
20
20
|
region: string | import("@smithy/types").Provider<any>;
|
|
21
21
|
requestHandler: WebSocketRequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
24
23
|
streamCollector: (
|
|
25
24
|
stream:
|
|
26
25
|
| import("stream").Readable
|
|
@@ -42,6 +41,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
42
41
|
[setting: string]: unknown;
|
|
43
42
|
};
|
|
44
43
|
apiVersion: string;
|
|
44
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
45
45
|
urlParser: import("@smithy/types").UrlParser;
|
|
46
46
|
base64Decoder: import("@smithy/types").Decoder;
|
|
47
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -50,7 +50,6 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
50
50
|
| RequestHandler
|
|
51
51
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
52
52
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
53
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
54
53
|
streamCollector: (
|
|
55
54
|
stream:
|
|
56
55
|
| import("stream").Readable
|
|
@@ -71,6 +70,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
71
70
|
[setting: string]: unknown;
|
|
72
71
|
};
|
|
73
72
|
apiVersion: string;
|
|
73
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
74
74
|
urlParser: import("@smithy/types").UrlParser;
|
|
75
75
|
base64Decoder: import("@smithy/types").Decoder;
|
|
76
76
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -2,7 +2,6 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
|
|
|
2
2
|
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
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
|
|
@@ -31,6 +30,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
31
30
|
[setting: string]: unknown;
|
|
32
31
|
};
|
|
33
32
|
apiVersion: string;
|
|
33
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
34
34
|
urlParser: import("@smithy/types").UrlParser;
|
|
35
35
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
36
36
|
streamCollector: (
|
|
@@ -50,6 +50,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
50
50
|
defaultNamespace?: string;
|
|
51
51
|
};
|
|
52
52
|
serviceId: string;
|
|
53
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
53
54
|
urlParser: import("@smithy/types").UrlParser;
|
|
54
55
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
55
56
|
utf8Encoder: (input: Uint8Array | string) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime 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",
|
|
@@ -27,23 +27,21 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-
|
|
31
|
-
"@aws-
|
|
32
|
-
"@aws-sdk/
|
|
33
|
-
"@aws-sdk/
|
|
34
|
-
"@aws-sdk/
|
|
35
|
-
"@aws-sdk/
|
|
36
|
-
"@aws-sdk/middleware-websocket": "^3.972.32",
|
|
37
|
-
"@aws-sdk/token-providers": "3.1076.0",
|
|
30
|
+
"@aws-sdk/core": "^3.974.25",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
32
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.24",
|
|
33
|
+
"@aws-sdk/middleware-eventstream": "^3.972.20",
|
|
34
|
+
"@aws-sdk/middleware-websocket": "^3.972.33",
|
|
35
|
+
"@aws-sdk/token-providers": "3.1077.0",
|
|
38
36
|
"@aws-sdk/types": "^3.973.14",
|
|
39
|
-
"@smithy/core": "^3.
|
|
40
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
41
|
-
"@smithy/node-http-handler": "^4.9.
|
|
37
|
+
"@smithy/core": "^3.28.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
39
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
42
40
|
"@smithy/types": "^4.15.0",
|
|
43
41
|
"tslib": "^2.6.2"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@smithy/snapshot-testing": "^2.2.
|
|
44
|
+
"@smithy/snapshot-testing": "^2.2.4",
|
|
47
45
|
"@tsconfig/node20": "20.1.8",
|
|
48
46
|
"@types/node": "^20.14.8",
|
|
49
47
|
"concurrently": "7.0.0",
|