@aws-sdk/client-bedrock 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 +7 -9
package/dist-cjs/index.js
CHANGED
|
@@ -11,9 +11,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
|
11
11
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
12
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
13
|
const { fromEnvSigningName, nodeProvider } = require("@aws-sdk/token-providers");
|
|
14
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
18
|
|
|
18
19
|
const defaultBedrockHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
20
|
return {
|
|
@@ -84,7 +85,7 @@ const commonParams = {
|
|
|
84
85
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
85
86
|
};
|
|
86
87
|
|
|
87
|
-
var version = "3.
|
|
88
|
+
var version = "3.1076.0";
|
|
88
89
|
var packageInfo = {
|
|
89
90
|
version: version};
|
|
90
91
|
|
|
@@ -4827,6 +4828,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
4827
4828
|
serviceTarget: "AmazonBedrockControlPlaneService",
|
|
4828
4829
|
},
|
|
4829
4830
|
serviceId: config?.serviceId ?? "Bedrock",
|
|
4831
|
+
sha256: config?.sha256 ?? Sha256,
|
|
4830
4832
|
urlParser: config?.urlParser ?? parseUrl,
|
|
4831
4833
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
4832
4834
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -4880,7 +4882,6 @@ const getRuntimeConfig = (config) => {
|
|
|
4880
4882
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
4881
4883
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
4882
4884
|
}, config),
|
|
4883
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
4884
4885
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
4885
4886
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
4886
4887
|
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 { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -7,7 +7,7 @@ import { HttpBearerAuthSigner } from "@smithy/core";
|
|
|
7
7
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
8
8
|
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";
|
|
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 { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
13
|
export const getRuntimeConfig = (config) => {
|
|
@@ -57,7 +57,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
57
57
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
58
58
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
59
59
|
}, config),
|
|
60
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
61
60
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
62
61
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
63
62
|
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 { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -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: "AmazonBedrockControlPlaneService",
|
|
38
39
|
},
|
|
39
40
|
serviceId: config?.serviceId ?? "Bedrock",
|
|
41
|
+
sha256: config?.sha256 ?? Sha256,
|
|
40
42
|
urlParser: config?.urlParser ?? parseUrl,
|
|
41
43
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
44
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -13,7 +13,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
17
16
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
17
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
18
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
24
23
|
[setting: string]: unknown;
|
|
25
24
|
};
|
|
26
25
|
apiVersion: string;
|
|
26
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
27
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
29
29
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -26,7 +26,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
26
26
|
region: string | import("@smithy/types").Provider<string>;
|
|
27
27
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
28
28
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
29
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
30
29
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
31
30
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
31
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -38,6 +37,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
38
37
|
[setting: string]: unknown;
|
|
39
38
|
};
|
|
40
39
|
apiVersion: string;
|
|
40
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
41
41
|
urlParser: import("@smithy/types").UrlParser;
|
|
42
42
|
base64Decoder: import("@smithy/types").Decoder;
|
|
43
43
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -4,7 +4,6 @@ import type { BedrockClientConfig } from "./BedrockClient";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
8
7
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
8
|
cacheMiddleware?: boolean;
|
|
10
9
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
13
12
|
[setting: string]: unknown;
|
|
14
13
|
};
|
|
15
14
|
apiVersion: string;
|
|
15
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
18
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
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: BedrockClientConfig) => {
|
|
|
20
20
|
| import("@smithy/core/protocols").HttpHandler<any>
|
|
21
21
|
| RequestHandler;
|
|
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: BedrockClientConfig) => {
|
|
|
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;
|
|
@@ -48,7 +48,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
48
48
|
| RequestHandler
|
|
49
49
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
50
50
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
51
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
52
51
|
streamCollector: (
|
|
53
52
|
stream:
|
|
54
53
|
| import("stream").Readable
|
|
@@ -69,6 +68,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
69
68
|
[setting: string]: unknown;
|
|
70
69
|
};
|
|
71
70
|
apiVersion: string;
|
|
71
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
72
72
|
urlParser: import("@smithy/types").UrlParser;
|
|
73
73
|
base64Decoder: import("@smithy/types").Decoder;
|
|
74
74
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BedrockClientConfig } from "./BedrockClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
3
3
|
runtime: string;
|
|
4
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
5
4
|
requestHandler:
|
|
6
5
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
6
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
18
17
|
[setting: string]: unknown;
|
|
19
18
|
};
|
|
20
19
|
apiVersion: string;
|
|
20
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
23
|
streamCollector: (
|
|
@@ -50,6 +50,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
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",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock 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",
|
|
@@ -19,15 +19,13 @@
|
|
|
19
19
|
"module": "./dist-es/index.js",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-
|
|
23
|
-
"@aws-
|
|
24
|
-
"@aws-sdk/
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
-
"@aws-sdk/token-providers": "3.1076.0",
|
|
22
|
+
"@aws-sdk/core": "^3.974.25",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
24
|
+
"@aws-sdk/token-providers": "3.1077.0",
|
|
27
25
|
"@aws-sdk/types": "^3.973.14",
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
30
|
-
"@smithy/node-http-handler": "^4.9.
|
|
26
|
+
"@smithy/core": "^3.28.0",
|
|
27
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
28
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
31
29
|
"@smithy/types": "^4.15.0",
|
|
32
30
|
"tslib": "^2.6.2"
|
|
33
31
|
},
|