@aws-sdk/client-bedrock 3.583.0 → 3.587.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 +8 -32
- package/dist-es/protocols/Aws_restJson1.js +9 -33
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -983,14 +983,8 @@ var se_ListCustomModelsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
983
983
|
const headers = {};
|
|
984
984
|
b.bp("/custom-models");
|
|
985
985
|
const query = (0, import_smithy_client.map)({
|
|
986
|
-
[_cTB]: [
|
|
987
|
-
|
|
988
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
989
|
-
],
|
|
990
|
-
[_cTA]: [
|
|
991
|
-
() => input.creationTimeAfter !== void 0,
|
|
992
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
993
|
-
],
|
|
986
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
987
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
994
988
|
[_nC]: [, input[_nC]],
|
|
995
989
|
[_bMAE]: [, input[_bMAE]],
|
|
996
990
|
[_fMAE]: [, input[_fMAE]],
|
|
@@ -1008,14 +1002,8 @@ var se_ListEvaluationJobsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1008
1002
|
const headers = {};
|
|
1009
1003
|
b.bp("/evaluation-jobs");
|
|
1010
1004
|
const query = (0, import_smithy_client.map)({
|
|
1011
|
-
[_cTA]: [
|
|
1012
|
-
|
|
1013
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
1014
|
-
],
|
|
1015
|
-
[_cTB]: [
|
|
1016
|
-
() => input.creationTimeBefore !== void 0,
|
|
1017
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
1018
|
-
],
|
|
1005
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1006
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1019
1007
|
[_sE]: [, input[_sE]],
|
|
1020
1008
|
[_nC]: [, input[_nC]],
|
|
1021
1009
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
@@ -1059,14 +1047,8 @@ var se_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1059
1047
|
const headers = {};
|
|
1060
1048
|
b.bp("/model-customization-jobs");
|
|
1061
1049
|
const query = (0, import_smithy_client.map)({
|
|
1062
|
-
[_cTA]: [
|
|
1063
|
-
|
|
1064
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
1065
|
-
],
|
|
1066
|
-
[_cTB]: [
|
|
1067
|
-
() => input.creationTimeBefore !== void 0,
|
|
1068
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
1069
|
-
],
|
|
1050
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1051
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1070
1052
|
[_sE]: [, input[_sE]],
|
|
1071
1053
|
[_nC]: [, input[_nC]],
|
|
1072
1054
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
@@ -1083,14 +1065,8 @@ var se_ListProvisionedModelThroughputsCommand = /* @__PURE__ */ __name(async (in
|
|
|
1083
1065
|
const headers = {};
|
|
1084
1066
|
b.bp("/provisioned-model-throughputs");
|
|
1085
1067
|
const query = (0, import_smithy_client.map)({
|
|
1086
|
-
[_cTA]: [
|
|
1087
|
-
|
|
1088
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString()
|
|
1089
|
-
],
|
|
1090
|
-
[_cTB]: [
|
|
1091
|
-
() => input.creationTimeBefore !== void 0,
|
|
1092
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString()
|
|
1093
|
-
],
|
|
1068
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1069
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1094
1070
|
[_sE]: [, input[_sE]],
|
|
1095
1071
|
[_mAE]: [, input[_mAE]],
|
|
1096
1072
|
[_nC]: [, input[_nC]],
|
|
@@ -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, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, 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, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
@@ -221,14 +221,8 @@ export const se_ListCustomModelsCommand = async (input, context) => {
|
|
|
221
221
|
const headers = {};
|
|
222
222
|
b.bp("/custom-models");
|
|
223
223
|
const query = map({
|
|
224
|
-
[_cTB]: [
|
|
225
|
-
|
|
226
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
|
|
227
|
-
],
|
|
228
|
-
[_cTA]: [
|
|
229
|
-
() => input.creationTimeAfter !== void 0,
|
|
230
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
|
|
231
|
-
],
|
|
224
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
|
|
225
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
|
|
232
226
|
[_nC]: [, input[_nC]],
|
|
233
227
|
[_bMAE]: [, input[_bMAE]],
|
|
234
228
|
[_fMAE]: [, input[_fMAE]],
|
|
@@ -246,14 +240,8 @@ export const se_ListEvaluationJobsCommand = async (input, context) => {
|
|
|
246
240
|
const headers = {};
|
|
247
241
|
b.bp("/evaluation-jobs");
|
|
248
242
|
const query = map({
|
|
249
|
-
[_cTA]: [
|
|
250
|
-
|
|
251
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
|
|
252
|
-
],
|
|
253
|
-
[_cTB]: [
|
|
254
|
-
() => input.creationTimeBefore !== void 0,
|
|
255
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
|
|
256
|
-
],
|
|
243
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
|
|
244
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
|
|
257
245
|
[_sE]: [, input[_sE]],
|
|
258
246
|
[_nC]: [, input[_nC]],
|
|
259
247
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
@@ -297,14 +285,8 @@ export const se_ListModelCustomizationJobsCommand = async (input, context) => {
|
|
|
297
285
|
const headers = {};
|
|
298
286
|
b.bp("/model-customization-jobs");
|
|
299
287
|
const query = map({
|
|
300
|
-
[_cTA]: [
|
|
301
|
-
|
|
302
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
|
|
303
|
-
],
|
|
304
|
-
[_cTB]: [
|
|
305
|
-
() => input.creationTimeBefore !== void 0,
|
|
306
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
|
|
307
|
-
],
|
|
288
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
|
|
289
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
|
|
308
290
|
[_sE]: [, input[_sE]],
|
|
309
291
|
[_nC]: [, input[_nC]],
|
|
310
292
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
@@ -321,14 +303,8 @@ export const se_ListProvisionedModelThroughputsCommand = async (input, context)
|
|
|
321
303
|
const headers = {};
|
|
322
304
|
b.bp("/provisioned-model-throughputs");
|
|
323
305
|
const query = map({
|
|
324
|
-
[_cTA]: [
|
|
325
|
-
|
|
326
|
-
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
|
|
327
|
-
],
|
|
328
|
-
[_cTB]: [
|
|
329
|
-
() => input.creationTimeBefore !== void 0,
|
|
330
|
-
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
|
|
331
|
-
],
|
|
306
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
|
|
307
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
|
|
332
308
|
[_sE]: [, input[_sE]],
|
|
333
309
|
[_mAE]: [, input[_mAE]],
|
|
334
310
|
[_nC]: [, input[_nC]],
|
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.587.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",
|
|
@@ -20,41 +20,41 @@
|
|
|
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-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.587.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.587.0",
|
|
25
|
+
"@aws-sdk/core": "3.587.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.587.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.577.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.587.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.587.0",
|
|
32
32
|
"@aws-sdk/types": "3.577.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.587.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.587.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.1",
|
|
37
|
+
"@smithy/core": "^2.1.1",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.0.1",
|
|
39
39
|
"@smithy/hash-node": "^3.0.0",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.0",
|
|
41
41
|
"@smithy/middleware-content-length": "^3.0.0",
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.0.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.0.1",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.3",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.0",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.0",
|
|
46
|
-
"@smithy/node-config-provider": "^3.
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.0",
|
|
47
47
|
"@smithy/node-http-handler": "^3.0.0",
|
|
48
48
|
"@smithy/protocol-http": "^4.0.0",
|
|
49
|
-
"@smithy/smithy-client": "^3.
|
|
49
|
+
"@smithy/smithy-client": "^3.1.1",
|
|
50
50
|
"@smithy/types": "^3.0.0",
|
|
51
51
|
"@smithy/url-parser": "^3.0.0",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.3",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.3",
|
|
57
|
+
"@smithy/util-endpoints": "^2.0.1",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.0",
|
|
59
59
|
"@smithy/util-retry": "^3.0.0",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|