@aws-sdk/client-bedrock-runtime 3.529.1 → 3.533.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.
@@ -50,7 +50,7 @@ declare const InvokeModelCommand_base: {
50
50
  * // const { BedrockRuntimeClient, InvokeModelCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
51
51
  * const client = new BedrockRuntimeClient(config);
52
52
  * const input = { // InvokeModelRequest
53
- * body: "BLOB_VALUE", // required
53
+ * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
54
54
  * contentType: "STRING_VALUE",
55
55
  * accept: "STRING_VALUE",
56
56
  * modelId: "STRING_VALUE", // required
@@ -58,7 +58,7 @@ declare const InvokeModelCommand_base: {
58
58
  * const command = new InvokeModelCommand(input);
59
59
  * const response = await client.send(command);
60
60
  * // { // InvokeModelResponse
61
- * // body: "BLOB_VALUE", // required
61
+ * // body: new Uint8Array(), // required
62
62
  * // contentType: "STRING_VALUE", // required
63
63
  * // };
64
64
  *
@@ -43,7 +43,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
43
43
  * // const { BedrockRuntimeClient, InvokeModelWithResponseStreamCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
44
44
  * const client = new BedrockRuntimeClient(config);
45
45
  * const input = { // InvokeModelWithResponseStreamRequest
46
- * body: "BLOB_VALUE", // required
46
+ * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
47
47
  * contentType: "STRING_VALUE",
48
48
  * accept: "STRING_VALUE",
49
49
  * modelId: "STRING_VALUE", // required
@@ -53,7 +53,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
53
53
  * // { // InvokeModelWithResponseStreamResponse
54
54
  * // body: { // ResponseStream Union: only one key present
55
55
  * // chunk: { // PayloadPart
56
- * // bytes: "BLOB_VALUE",
56
+ * // bytes: new Uint8Array(),
57
57
  * // },
58
58
  * // internalServerException: { // InternalServerException
59
59
  * // message: "STRING_VALUE",
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
29
  logger: import("@smithy/types").Logger;
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
29
  logger: import("@smithy/types").Logger;
@@ -11,9 +11,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
11
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
12
  streamCollector: import("@smithy/types").StreamCollector;
13
13
  base64Decoder: import("@smithy/types").Decoder;
14
- base64Encoder: import("@smithy/types").Encoder;
14
+ base64Encoder: (_input: string | Uint8Array) => string;
15
15
  utf8Decoder: import("@smithy/types").Decoder;
16
- utf8Encoder: import("@smithy/types").Encoder;
16
+ utf8Encoder: (input: string | Uint8Array) => string;
17
17
  disableHostPrefix: boolean;
18
18
  serviceId: string;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -5,7 +5,7 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
5
5
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: import("@smithy/types").Encoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
9
  disableHostPrefix: boolean;
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@smithy/types").Logger | undefined;
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: import("@smithy/types").Encoder;
20
+ utf8Encoder: (input: string | Uint8Array) => string;
21
21
  };
@@ -26,9 +26,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
26
26
  apiVersion: string;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
- base64Encoder: import("@smithy/types").Encoder;
29
+ base64Encoder: (_input: string | Uint8Array) => string;
30
30
  utf8Decoder: import("@smithy/types").Decoder;
31
- utf8Encoder: import("@smithy/types").Encoder;
31
+ utf8Encoder: (input: string | Uint8Array) => string;
32
32
  disableHostPrefix: boolean;
33
33
  serviceId: string;
34
34
  logger: import("@smithy/types").Logger;
@@ -30,9 +30,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
30
30
  apiVersion: string;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
- base64Encoder: import("@smithy/types").Encoder;
33
+ base64Encoder: (_input: string | Uint8Array) => string;
34
34
  utf8Decoder: import("@smithy/types").Decoder;
35
- utf8Encoder: import("@smithy/types").Encoder;
35
+ utf8Encoder: (input: string | Uint8Array) => string;
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
@@ -13,9 +13,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
14
  streamCollector: import("@smithy/types").StreamCollector;
15
15
  base64Decoder: import("@smithy/types").Decoder;
16
- base64Encoder: import("@smithy/types").Encoder;
16
+ base64Encoder: (_input: string | Uint8Array) => string;
17
17
  utf8Decoder: import("@smithy/types").Decoder;
18
- utf8Encoder: import("@smithy/types").Encoder;
18
+ utf8Encoder: (input: string | Uint8Array) => string;
19
19
  disableHostPrefix: boolean;
20
20
  serviceId: string;
21
21
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -2,7 +2,7 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
2
2
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
3
3
  apiVersion: string;
4
4
  base64Decoder: import("@smithy/types").Decoder;
5
- base64Encoder: import("@smithy/types").Encoder;
5
+ base64Encoder: (_input: string | Uint8Array) => string;
6
6
  disableHostPrefix: boolean;
7
7
  endpointProvider: (
8
8
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: import("@smithy/types").Encoder;
20
+ utf8Encoder: (input: string | Uint8Array) => string;
21
21
  };
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.529.1",
4
+ "version": "3.533.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.529.1",
24
- "@aws-sdk/core": "3.529.1",
25
- "@aws-sdk/credential-provider-node": "3.529.1",
26
- "@aws-sdk/middleware-host-header": "3.523.0",
27
- "@aws-sdk/middleware-logger": "3.523.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.525.0",
30
- "@aws-sdk/region-config-resolver": "3.525.0",
31
- "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.525.0",
33
- "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.525.0",
35
- "@smithy/config-resolver": "^2.1.4",
36
- "@smithy/core": "^1.3.5",
37
- "@smithy/eventstream-serde-browser": "^2.1.3",
38
- "@smithy/eventstream-serde-config-resolver": "^2.1.3",
39
- "@smithy/eventstream-serde-node": "^2.1.3",
40
- "@smithy/fetch-http-handler": "^2.4.3",
41
- "@smithy/hash-node": "^2.1.3",
42
- "@smithy/invalid-dependency": "^2.1.3",
43
- "@smithy/middleware-content-length": "^2.1.3",
44
- "@smithy/middleware-endpoint": "^2.4.4",
45
- "@smithy/middleware-retry": "^2.1.4",
46
- "@smithy/middleware-serde": "^2.1.3",
47
- "@smithy/middleware-stack": "^2.1.3",
48
- "@smithy/node-config-provider": "^2.2.4",
49
- "@smithy/node-http-handler": "^2.4.1",
50
- "@smithy/protocol-http": "^3.2.1",
51
- "@smithy/smithy-client": "^2.4.2",
52
- "@smithy/types": "^2.10.1",
53
- "@smithy/url-parser": "^2.1.3",
54
- "@smithy/util-base64": "^2.1.1",
23
+ "@aws-sdk/client-sts": "3.533.0",
24
+ "@aws-sdk/core": "3.533.0",
25
+ "@aws-sdk/credential-provider-node": "3.533.0",
26
+ "@aws-sdk/middleware-host-header": "3.533.0",
27
+ "@aws-sdk/middleware-logger": "3.533.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
+ "@aws-sdk/middleware-user-agent": "3.533.0",
30
+ "@aws-sdk/region-config-resolver": "3.533.0",
31
+ "@aws-sdk/types": "3.533.0",
32
+ "@aws-sdk/util-endpoints": "3.533.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.533.0",
34
+ "@aws-sdk/util-user-agent-node": "3.533.0",
35
+ "@smithy/config-resolver": "^2.1.5",
36
+ "@smithy/core": "^1.3.8",
37
+ "@smithy/eventstream-serde-browser": "^2.1.4",
38
+ "@smithy/eventstream-serde-config-resolver": "^2.1.4",
39
+ "@smithy/eventstream-serde-node": "^2.1.4",
40
+ "@smithy/fetch-http-handler": "^2.4.5",
41
+ "@smithy/hash-node": "^2.1.4",
42
+ "@smithy/invalid-dependency": "^2.1.4",
43
+ "@smithy/middleware-content-length": "^2.1.4",
44
+ "@smithy/middleware-endpoint": "^2.4.6",
45
+ "@smithy/middleware-retry": "^2.1.7",
46
+ "@smithy/middleware-serde": "^2.2.1",
47
+ "@smithy/middleware-stack": "^2.1.4",
48
+ "@smithy/node-config-provider": "^2.2.5",
49
+ "@smithy/node-http-handler": "^2.4.3",
50
+ "@smithy/protocol-http": "^3.2.2",
51
+ "@smithy/smithy-client": "^2.4.5",
52
+ "@smithy/types": "^2.11.0",
53
+ "@smithy/url-parser": "^2.1.4",
54
+ "@smithy/util-base64": "^2.2.1",
55
55
  "@smithy/util-body-length-browser": "^2.1.1",
56
- "@smithy/util-body-length-node": "^2.2.1",
57
- "@smithy/util-defaults-mode-browser": "^2.1.4",
58
- "@smithy/util-defaults-mode-node": "^2.2.3",
59
- "@smithy/util-endpoints": "^1.1.4",
60
- "@smithy/util-middleware": "^2.1.3",
61
- "@smithy/util-retry": "^2.1.3",
62
- "@smithy/util-stream": "^2.1.3",
63
- "@smithy/util-utf8": "^2.1.1",
56
+ "@smithy/util-body-length-node": "^2.2.2",
57
+ "@smithy/util-defaults-mode-browser": "^2.1.7",
58
+ "@smithy/util-defaults-mode-node": "^2.2.7",
59
+ "@smithy/util-endpoints": "^1.1.5",
60
+ "@smithy/util-middleware": "^2.1.4",
61
+ "@smithy/util-retry": "^2.1.4",
62
+ "@smithy/util-stream": "^2.1.5",
63
+ "@smithy/util-utf8": "^2.2.0",
64
64
  "tslib": "^2.5.0"
65
65
  },
66
66
  "devDependencies": {