@aws-sdk/client-sagemaker-runtime 3.1067.0 → 3.1068.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/schemas/schemas_0.js +4 -2
- package/dist-es/schemas/schemas_0.js +4 -2
- package/dist-types/commands/InvokeEndpointAsyncCommand.d.ts +10 -3
- package/dist-types/models/models_0.d.ts +15 -1
- package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +11 -2
- package/dist-types/ts3.4/models/models_0.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvokeEndpointWithResponseStream$ = exports.InvokeEndpointAsync$ = exports.InvokeEndpoint$ = exports.ResponseStream$ = exports.PayloadPart$ = exports.InvokeEndpointWithResponseStreamOutput$ = exports.InvokeEndpointWithResponseStreamInput$ = exports.InvokeEndpointOutput$ = exports.InvokeEndpointInput$ = exports.InvokeEndpointAsyncOutput$ = exports.InvokeEndpointAsyncInput$ = exports.errorTypeRegistries = exports.ValidationError$ = exports.ServiceUnavailable$ = exports.ModelStreamError$ = exports.ModelNotReadyException$ = exports.ModelError$ = exports.InternalStreamFailure$ = exports.InternalFailure$ = exports.InternalDependencyException$ = exports.SageMakerRuntimeServiceException$ = void 0;
|
|
4
4
|
const _A = "Accept";
|
|
5
|
+
const _ABB = "AsyncBodyBlob";
|
|
5
6
|
const _B = "Body";
|
|
6
7
|
const _BB = "BodyBlob";
|
|
7
8
|
const _By = "Bytes";
|
|
@@ -142,13 +143,14 @@ exports.errorTypeRegistries = [
|
|
|
142
143
|
_s_registry,
|
|
143
144
|
n0_registry,
|
|
144
145
|
];
|
|
146
|
+
var AsyncBodyBlob = [0, n0, _ABB, 8, 21];
|
|
145
147
|
var BodyBlob = [0, n0, _BB, 8, 21];
|
|
146
148
|
var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
|
147
149
|
var PartBlob = [0, n0, _PB, 8, 21];
|
|
148
150
|
exports.InvokeEndpointAsyncInput$ = [3, n0, _IEAI,
|
|
149
151
|
0,
|
|
150
|
-
[_EN,
|
|
151
|
-
[[0, 1], [0, { [_hH]:
|
|
152
|
+
[_EN, _CT, _A, _CA, _II, _IL, _SOPE, _F, _RTTLS, _ITS, _B],
|
|
153
|
+
[[0, 1], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASI }], [0, { [_hH]: _XASS }], [0, { [_hH]: _XASF }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }], [() => AsyncBodyBlob, 16]], 1
|
|
152
154
|
];
|
|
153
155
|
exports.InvokeEndpointAsyncOutput$ = [3, n0, _IEAO,
|
|
154
156
|
0,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const _A = "Accept";
|
|
2
|
+
const _ABB = "AsyncBodyBlob";
|
|
2
3
|
const _B = "Body";
|
|
3
4
|
const _BB = "BodyBlob";
|
|
4
5
|
const _By = "Bytes";
|
|
@@ -139,13 +140,14 @@ export const errorTypeRegistries = [
|
|
|
139
140
|
_s_registry,
|
|
140
141
|
n0_registry,
|
|
141
142
|
];
|
|
143
|
+
var AsyncBodyBlob = [0, n0, _ABB, 8, 21];
|
|
142
144
|
var BodyBlob = [0, n0, _BB, 8, 21];
|
|
143
145
|
var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
|
144
146
|
var PartBlob = [0, n0, _PB, 8, 21];
|
|
145
147
|
export var InvokeEndpointAsyncInput$ = [3, n0, _IEAI,
|
|
146
148
|
0,
|
|
147
|
-
[_EN,
|
|
148
|
-
[[0, 1], [0, { [_hH]:
|
|
149
|
+
[_EN, _CT, _A, _CA, _II, _IL, _SOPE, _F, _RTTLS, _ITS, _B],
|
|
150
|
+
[[0, 1], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASI }], [0, { [_hH]: _XASS }], [0, { [_hH]: _XASF }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }], [() => AsyncBodyBlob, 16]], 1
|
|
149
151
|
];
|
|
150
152
|
export var InvokeEndpointAsyncOutput$ = [3, n0, _IEAO,
|
|
151
153
|
0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
|
|
4
4
|
import type { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
|
|
5
5
|
/**
|
|
@@ -7,12 +7,18 @@ import type { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOu
|
|
|
7
7
|
*/
|
|
8
8
|
export type { __MetadataBearer };
|
|
9
9
|
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type InvokeEndpointAsyncCommandInputType = Omit<InvokeEndpointAsyncInput, "Body"> & {
|
|
14
|
+
Body?: BlobPayloadInputTypes;
|
|
15
|
+
};
|
|
10
16
|
/**
|
|
11
17
|
* @public
|
|
12
18
|
*
|
|
13
19
|
* The input for {@link InvokeEndpointAsyncCommand}.
|
|
14
20
|
*/
|
|
15
|
-
export interface InvokeEndpointAsyncCommandInput extends
|
|
21
|
+
export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncCommandInputType {
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
24
|
* @public
|
|
@@ -55,11 +61,12 @@ declare const InvokeEndpointAsyncCommand_base: {
|
|
|
55
61
|
* Accept: "STRING_VALUE",
|
|
56
62
|
* CustomAttributes: "STRING_VALUE",
|
|
57
63
|
* InferenceId: "STRING_VALUE",
|
|
58
|
-
* InputLocation: "STRING_VALUE",
|
|
64
|
+
* InputLocation: "STRING_VALUE",
|
|
59
65
|
* S3OutputPathExtension: "STRING_VALUE",
|
|
60
66
|
* Filename: "STRING_VALUE",
|
|
61
67
|
* RequestTTLSeconds: Number("int"),
|
|
62
68
|
* InvocationTimeoutSeconds: Number("int"),
|
|
69
|
+
* Body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
63
70
|
* };
|
|
64
71
|
* const command = new InvokeEndpointAsyncCommand(input);
|
|
65
72
|
* const response = await client.send(command);
|
|
@@ -213,7 +213,7 @@ export interface InvokeEndpointAsyncInput {
|
|
|
213
213
|
* <p>The Amazon S3 URI where the inference request payload is stored.</p>
|
|
214
214
|
* @public
|
|
215
215
|
*/
|
|
216
|
-
InputLocation
|
|
216
|
+
InputLocation?: string | undefined;
|
|
217
217
|
/**
|
|
218
218
|
* <p>The path extension that is appended to the Amazon S3 output path where the inference
|
|
219
219
|
* response payload is stored.</p>
|
|
@@ -238,6 +238,20 @@ export interface InvokeEndpointAsyncInput {
|
|
|
238
238
|
* @public
|
|
239
239
|
*/
|
|
240
240
|
InvocationTimeoutSeconds?: number | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* <p>Provides inline input data for the inference request, in the format specified in the
|
|
243
|
+
* <code>ContentType</code> request header. Use this parameter to send the request
|
|
244
|
+
* payload directly in the API call instead of uploading it to Amazon S3 and
|
|
245
|
+
* referencing it with <code>InputLocation</code>. The inline payload can be up to 128,000
|
|
246
|
+
* bytes.</p>
|
|
247
|
+
* <p>
|
|
248
|
+
* <code>Body</code> and <code>InputLocation</code> are mutually exclusive. Provide
|
|
249
|
+
* exactly one of them.</p>
|
|
250
|
+
* <p>For information about the format of the request body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
|
|
251
|
+
* Formats-Inference</a>.</p>
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
Body?: Uint8Array | undefined;
|
|
241
255
|
}
|
|
242
256
|
/**
|
|
243
257
|
* @public
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
BlobPayloadInputTypes,
|
|
4
|
+
MetadataBearer as __MetadataBearer,
|
|
5
|
+
} from "@smithy/types";
|
|
3
6
|
import {
|
|
4
7
|
InvokeEndpointAsyncInput,
|
|
5
8
|
InvokeEndpointAsyncOutput,
|
|
@@ -11,8 +14,14 @@ import {
|
|
|
11
14
|
} from "../SageMakerRuntimeClient";
|
|
12
15
|
export { __MetadataBearer };
|
|
13
16
|
export { $Command };
|
|
17
|
+
export type InvokeEndpointAsyncCommandInputType = Pick<
|
|
18
|
+
InvokeEndpointAsyncInput,
|
|
19
|
+
Exclude<keyof InvokeEndpointAsyncInput, "Body">
|
|
20
|
+
> & {
|
|
21
|
+
Body?: BlobPayloadInputTypes;
|
|
22
|
+
};
|
|
14
23
|
export interface InvokeEndpointAsyncCommandInput
|
|
15
|
-
extends
|
|
24
|
+
extends InvokeEndpointAsyncCommandInputType {}
|
|
16
25
|
export interface InvokeEndpointAsyncCommandOutput
|
|
17
26
|
extends InvokeEndpointAsyncOutput,
|
|
18
27
|
__MetadataBearer {}
|
|
@@ -27,11 +27,12 @@ export interface InvokeEndpointAsyncInput {
|
|
|
27
27
|
Accept?: string | undefined;
|
|
28
28
|
CustomAttributes?: string | undefined;
|
|
29
29
|
InferenceId?: string | undefined;
|
|
30
|
-
InputLocation
|
|
30
|
+
InputLocation?: string | undefined;
|
|
31
31
|
S3OutputPathExtension?: string | undefined;
|
|
32
32
|
Filename?: string | undefined;
|
|
33
33
|
RequestTTLSeconds?: number | undefined;
|
|
34
34
|
InvocationTimeoutSeconds?: number | undefined;
|
|
35
|
+
Body?: Uint8Array | undefined;
|
|
35
36
|
}
|
|
36
37
|
export interface InvokeEndpointAsyncOutput {
|
|
37
38
|
InferenceId?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1068.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",
|