@aws-sdk/client-sagemaker-a2i-runtime 3.523.0 → 3.529.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 +6 -46
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/SageMakerA2IRuntime.js +0 -1
- package/dist-cjs/SageMakerA2IRuntimeClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/DeleteHumanLoopCommand.js +0 -1
- package/dist-cjs/commands/DescribeHumanLoopCommand.js +0 -1
- package/dist-cjs/commands/ListHumanLoopsCommand.js +0 -1
- package/dist-cjs/commands/StartHumanLoopCommand.js +0 -1
- package/dist-cjs/commands/StopHumanLoopCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/SageMakerA2IRuntimeServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListHumanLoopsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -196,6 +196,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
196
196
|
var import_types = require("@smithy/types");
|
|
197
197
|
|
|
198
198
|
// src/protocols/Aws_restJson1.ts
|
|
199
|
+
var import_core2 = require("@aws-sdk/core");
|
|
199
200
|
|
|
200
201
|
|
|
201
202
|
|
|
@@ -429,7 +430,7 @@ var de_DescribeHumanLoopCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
429
430
|
const contents = (0, import_smithy_client.map)({
|
|
430
431
|
$metadata: deserializeMetadata(output)
|
|
431
432
|
});
|
|
432
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
433
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
433
434
|
const doc = (0, import_smithy_client.take)(data, {
|
|
434
435
|
CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
435
436
|
FailureCode: import_smithy_client.expectString,
|
|
@@ -450,7 +451,7 @@ var de_ListHumanLoopsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
450
451
|
const contents = (0, import_smithy_client.map)({
|
|
451
452
|
$metadata: deserializeMetadata(output)
|
|
452
453
|
});
|
|
453
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
454
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
454
455
|
const doc = (0, import_smithy_client.take)(data, {
|
|
455
456
|
HumanLoopSummaries: (_) => de_HumanLoopSummaries(_, context),
|
|
456
457
|
NextToken: import_smithy_client.expectString
|
|
@@ -465,7 +466,7 @@ var de_StartHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
465
466
|
const contents = (0, import_smithy_client.map)({
|
|
466
467
|
$metadata: deserializeMetadata(output)
|
|
467
468
|
});
|
|
468
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
469
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
469
470
|
const doc = (0, import_smithy_client.take)(data, {
|
|
470
471
|
HumanLoopArn: import_smithy_client.expectString
|
|
471
472
|
});
|
|
@@ -485,9 +486,9 @@ var de_StopHumanLoopCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
485
486
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
486
487
|
const parsedOutput = {
|
|
487
488
|
...output,
|
|
488
|
-
body: await
|
|
489
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
489
490
|
};
|
|
490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
491
492
|
switch (errorCode) {
|
|
492
493
|
case "InternalServerException":
|
|
493
494
|
case "com.amazonaws.sagemakera2iruntime#InternalServerException":
|
|
@@ -616,53 +617,12 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
616
617
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
617
618
|
cfId: output.headers["x-amz-cf-id"]
|
|
618
619
|
}), "deserializeMetadata");
|
|
619
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
620
620
|
var _CTA = "CreationTimeAfter";
|
|
621
621
|
var _CTB = "CreationTimeBefore";
|
|
622
622
|
var _FDA = "FlowDefinitionArn";
|
|
623
623
|
var _MR = "MaxResults";
|
|
624
624
|
var _NT = "NextToken";
|
|
625
625
|
var _SO = "SortOrder";
|
|
626
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
627
|
-
if (encoded.length) {
|
|
628
|
-
return JSON.parse(encoded);
|
|
629
|
-
}
|
|
630
|
-
return {};
|
|
631
|
-
}), "parseBody");
|
|
632
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
633
|
-
const value = await parseBody(errorBody, context);
|
|
634
|
-
value.message = value.message ?? value.Message;
|
|
635
|
-
return value;
|
|
636
|
-
}, "parseErrorBody");
|
|
637
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
638
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
639
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
640
|
-
let cleanValue = rawValue;
|
|
641
|
-
if (typeof cleanValue === "number") {
|
|
642
|
-
cleanValue = cleanValue.toString();
|
|
643
|
-
}
|
|
644
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
645
|
-
cleanValue = cleanValue.split(",")[0];
|
|
646
|
-
}
|
|
647
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
648
|
-
cleanValue = cleanValue.split(":")[0];
|
|
649
|
-
}
|
|
650
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
651
|
-
cleanValue = cleanValue.split("#")[1];
|
|
652
|
-
}
|
|
653
|
-
return cleanValue;
|
|
654
|
-
}, "sanitizeErrorCode");
|
|
655
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
656
|
-
if (headerKey !== void 0) {
|
|
657
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
658
|
-
}
|
|
659
|
-
if (data.code !== void 0) {
|
|
660
|
-
return sanitizeErrorCode(data.code);
|
|
661
|
-
}
|
|
662
|
-
if (data["__type"] !== void 0) {
|
|
663
|
-
return sanitizeErrorCode(data["__type"]);
|
|
664
|
-
}
|
|
665
|
-
}, "loadRestJsonErrorCode");
|
|
666
626
|
|
|
667
627
|
// src/commands/DeleteHumanLoopCommand.ts
|
|
668
628
|
var _DeleteHumanLoopCommand = class _DeleteHumanLoopCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -289,43 +290,3 @@ const _FDA = "FlowDefinitionArn";
|
|
|
289
290
|
const _MR = "MaxResults";
|
|
290
291
|
const _NT = "NextToken";
|
|
291
292
|
const _SO = "SortOrder";
|
|
292
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
293
|
-
if (encoded.length) {
|
|
294
|
-
return JSON.parse(encoded);
|
|
295
|
-
}
|
|
296
|
-
return {};
|
|
297
|
-
});
|
|
298
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
299
|
-
const value = await parseBody(errorBody, context);
|
|
300
|
-
value.message = value.message ?? value.Message;
|
|
301
|
-
return value;
|
|
302
|
-
};
|
|
303
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
304
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
305
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
306
|
-
let cleanValue = rawValue;
|
|
307
|
-
if (typeof cleanValue === "number") {
|
|
308
|
-
cleanValue = cleanValue.toString();
|
|
309
|
-
}
|
|
310
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
311
|
-
cleanValue = cleanValue.split(",")[0];
|
|
312
|
-
}
|
|
313
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
314
|
-
cleanValue = cleanValue.split(":")[0];
|
|
315
|
-
}
|
|
316
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
317
|
-
cleanValue = cleanValue.split("#")[1];
|
|
318
|
-
}
|
|
319
|
-
return cleanValue;
|
|
320
|
-
};
|
|
321
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
322
|
-
if (headerKey !== undefined) {
|
|
323
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
324
|
-
}
|
|
325
|
-
if (data.code !== undefined) {
|
|
326
|
-
return sanitizeErrorCode(data.code);
|
|
327
|
-
}
|
|
328
|
-
if (data["__type"] !== undefined) {
|
|
329
|
-
return sanitizeErrorCode(data["__type"]);
|
|
330
|
-
}
|
|
331
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-a2i-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-sagemaker-a2i-runtime",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|