@aws-sdk/client-bedrock-runtime 3.658.0 → 3.662.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 CHANGED
@@ -897,7 +897,7 @@ var se_ConverseStreamCommand = /* @__PURE__ */ __name(async (input, context) =>
897
897
  }, "se_ConverseStreamCommand");
898
898
  var se_InvokeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
899
899
  const b = (0, import_core.requestBuilder)(input, context);
900
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
900
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
901
901
  [_ct]: input[_cT] || "application/octet-stream",
902
902
  [_a]: input[_a],
903
903
  [_xabt]: input[_t],
@@ -915,7 +915,7 @@ var se_InvokeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
915
915
  }, "se_InvokeModelCommand");
916
916
  var se_InvokeModelWithResponseStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
917
917
  const b = (0, import_core.requestBuilder)(input, context);
918
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
918
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
919
919
  [_ct]: input[_cT] || "application/octet-stream",
920
920
  [_xaba]: input[_a],
921
921
  [_xabt]: input[_t],
@@ -1733,7 +1733,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1733
1733
  extendedRequestId: output.headers["x-amz-id-2"],
1734
1734
  cfId: output.headers["x-amz-cf-id"]
1735
1735
  }), "deserializeMetadata");
1736
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
1737
1736
  var _a = "accept";
1738
1737
  var _cT = "contentType";
1739
1738
  var _ct = "content-type";
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BedrockRuntimeServiceException as __BaseException } from "../models/BedrockRuntimeServiceException";
5
5
  import { AccessDeniedException, ContentBlock, DocumentSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, } from "../models/models_0";
6
6
  export const se_ApplyGuardrailCommand = async (input, context) => {
@@ -902,11 +902,6 @@ const deserializeMetadata = (output) => ({
902
902
  cfId: output.headers["x-amz-cf-id"],
903
903
  });
904
904
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
905
- const isSerializableHeaderValue = (value) => value !== undefined &&
906
- value !== null &&
907
- value !== "" &&
908
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
909
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
910
905
  const _a = "accept";
911
906
  const _cT = "contentType";
912
907
  const _ct = "content-type";
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.658.0",
4
+ "version": "3.662.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": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/eventstream-serde-browser": "^3.0.9",
39
- "@smithy/eventstream-serde-config-resolver": "^3.0.6",
40
- "@smithy/eventstream-serde-node": "^3.0.8",
41
- "@smithy/fetch-http-handler": "^3.2.7",
42
- "@smithy/hash-node": "^3.0.6",
43
- "@smithy/invalid-dependency": "^3.0.6",
44
- "@smithy/middleware-content-length": "^3.0.8",
45
- "@smithy/middleware-endpoint": "^3.1.3",
46
- "@smithy/middleware-retry": "^3.0.18",
47
- "@smithy/middleware-serde": "^3.0.6",
48
- "@smithy/middleware-stack": "^3.0.6",
49
- "@smithy/node-config-provider": "^3.1.7",
50
- "@smithy/node-http-handler": "^3.2.2",
51
- "@smithy/protocol-http": "^4.1.3",
52
- "@smithy/smithy-client": "^3.3.2",
53
- "@smithy/types": "^3.4.2",
54
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/eventstream-serde-browser": "^3.0.10",
39
+ "@smithy/eventstream-serde-config-resolver": "^3.0.7",
40
+ "@smithy/eventstream-serde-node": "^3.0.9",
41
+ "@smithy/fetch-http-handler": "^3.2.9",
42
+ "@smithy/hash-node": "^3.0.7",
43
+ "@smithy/invalid-dependency": "^3.0.7",
44
+ "@smithy/middleware-content-length": "^3.0.9",
45
+ "@smithy/middleware-endpoint": "^3.1.4",
46
+ "@smithy/middleware-retry": "^3.0.22",
47
+ "@smithy/middleware-serde": "^3.0.7",
48
+ "@smithy/middleware-stack": "^3.0.7",
49
+ "@smithy/node-config-provider": "^3.1.8",
50
+ "@smithy/node-http-handler": "^3.2.4",
51
+ "@smithy/protocol-http": "^4.1.4",
52
+ "@smithy/smithy-client": "^3.3.6",
53
+ "@smithy/types": "^3.5.0",
54
+ "@smithy/url-parser": "^3.0.7",
55
55
  "@smithy/util-base64": "^3.0.0",
56
56
  "@smithy/util-body-length-browser": "^3.0.0",
57
57
  "@smithy/util-body-length-node": "^3.0.0",
58
- "@smithy/util-defaults-mode-browser": "^3.0.18",
59
- "@smithy/util-defaults-mode-node": "^3.0.18",
60
- "@smithy/util-endpoints": "^2.1.2",
61
- "@smithy/util-middleware": "^3.0.6",
62
- "@smithy/util-retry": "^3.0.6",
63
- "@smithy/util-stream": "^3.1.6",
58
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
59
+ "@smithy/util-defaults-mode-node": "^3.0.22",
60
+ "@smithy/util-endpoints": "^2.1.3",
61
+ "@smithy/util-middleware": "^3.0.7",
62
+ "@smithy/util-retry": "^3.0.7",
63
+ "@smithy/util-stream": "^3.1.9",
64
64
  "@smithy/util-utf8": "^3.0.0",
65
65
  "tslib": "^2.6.2"
66
66
  },