@aws-sdk/client-sagemaker-runtime 3.933.0 → 3.935.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-es/index.js +1 -1
- package/dist-es/models/errors.js +121 -0
- package/dist-es/models/models_0.js +1 -121
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/errors.d.ts +154 -0
- package/dist-types/models/models_0.d.ts +1 -154
- package/dist-types/ts3.4/index.d.ts +2 -1
- package/dist-types/ts3.4/models/errors.d.ts +60 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -60
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
2
|
+
export class InternalDependencyException extends __BaseException {
|
|
3
|
+
name = "InternalDependencyException";
|
|
4
|
+
$fault = "server";
|
|
5
|
+
Message;
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "InternalDependencyException",
|
|
9
|
+
$fault: "server",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, InternalDependencyException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class InternalFailure extends __BaseException {
|
|
17
|
+
name = "InternalFailure";
|
|
18
|
+
$fault = "server";
|
|
19
|
+
Message;
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InternalFailure",
|
|
23
|
+
$fault: "server",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class ModelError extends __BaseException {
|
|
31
|
+
name = "ModelError";
|
|
32
|
+
$fault = "client";
|
|
33
|
+
Message;
|
|
34
|
+
OriginalStatusCode;
|
|
35
|
+
OriginalMessage;
|
|
36
|
+
LogStreamArn;
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "ModelError",
|
|
40
|
+
$fault: "client",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, ModelError.prototype);
|
|
44
|
+
this.Message = opts.Message;
|
|
45
|
+
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
46
|
+
this.OriginalMessage = opts.OriginalMessage;
|
|
47
|
+
this.LogStreamArn = opts.LogStreamArn;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ModelNotReadyException extends __BaseException {
|
|
51
|
+
name = "ModelNotReadyException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ModelNotReadyException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export class ServiceUnavailable extends __BaseException {
|
|
65
|
+
name = "ServiceUnavailable";
|
|
66
|
+
$fault = "server";
|
|
67
|
+
Message;
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ServiceUnavailable",
|
|
71
|
+
$fault: "server",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
75
|
+
this.Message = opts.Message;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class ValidationError extends __BaseException {
|
|
79
|
+
name = "ValidationError";
|
|
80
|
+
$fault = "client";
|
|
81
|
+
Message;
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super({
|
|
84
|
+
name: "ValidationError",
|
|
85
|
+
$fault: "client",
|
|
86
|
+
...opts,
|
|
87
|
+
});
|
|
88
|
+
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
89
|
+
this.Message = opts.Message;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class InternalStreamFailure extends __BaseException {
|
|
93
|
+
name = "InternalStreamFailure";
|
|
94
|
+
$fault = "server";
|
|
95
|
+
Message;
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "InternalStreamFailure",
|
|
99
|
+
$fault: "server",
|
|
100
|
+
...opts,
|
|
101
|
+
});
|
|
102
|
+
Object.setPrototypeOf(this, InternalStreamFailure.prototype);
|
|
103
|
+
this.Message = opts.Message;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class ModelStreamError extends __BaseException {
|
|
107
|
+
name = "ModelStreamError";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
Message;
|
|
110
|
+
ErrorCode;
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "ModelStreamError",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
Object.setPrototypeOf(this, ModelStreamError.prototype);
|
|
118
|
+
this.Message = opts.Message;
|
|
119
|
+
this.ErrorCode = opts.ErrorCode;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -1,121 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class InternalDependencyException extends __BaseException {
|
|
3
|
-
name = "InternalDependencyException";
|
|
4
|
-
$fault = "server";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "InternalDependencyException",
|
|
9
|
-
$fault: "server",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, InternalDependencyException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export class InternalFailure extends __BaseException {
|
|
17
|
-
name = "InternalFailure";
|
|
18
|
-
$fault = "server";
|
|
19
|
-
Message;
|
|
20
|
-
constructor(opts) {
|
|
21
|
-
super({
|
|
22
|
-
name: "InternalFailure",
|
|
23
|
-
$fault: "server",
|
|
24
|
-
...opts,
|
|
25
|
-
});
|
|
26
|
-
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
27
|
-
this.Message = opts.Message;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class ModelError extends __BaseException {
|
|
31
|
-
name = "ModelError";
|
|
32
|
-
$fault = "client";
|
|
33
|
-
Message;
|
|
34
|
-
OriginalStatusCode;
|
|
35
|
-
OriginalMessage;
|
|
36
|
-
LogStreamArn;
|
|
37
|
-
constructor(opts) {
|
|
38
|
-
super({
|
|
39
|
-
name: "ModelError",
|
|
40
|
-
$fault: "client",
|
|
41
|
-
...opts,
|
|
42
|
-
});
|
|
43
|
-
Object.setPrototypeOf(this, ModelError.prototype);
|
|
44
|
-
this.Message = opts.Message;
|
|
45
|
-
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
46
|
-
this.OriginalMessage = opts.OriginalMessage;
|
|
47
|
-
this.LogStreamArn = opts.LogStreamArn;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export class ModelNotReadyException extends __BaseException {
|
|
51
|
-
name = "ModelNotReadyException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
Message;
|
|
54
|
-
constructor(opts) {
|
|
55
|
-
super({
|
|
56
|
-
name: "ModelNotReadyException",
|
|
57
|
-
$fault: "client",
|
|
58
|
-
...opts,
|
|
59
|
-
});
|
|
60
|
-
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
61
|
-
this.Message = opts.Message;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export class ServiceUnavailable extends __BaseException {
|
|
65
|
-
name = "ServiceUnavailable";
|
|
66
|
-
$fault = "server";
|
|
67
|
-
Message;
|
|
68
|
-
constructor(opts) {
|
|
69
|
-
super({
|
|
70
|
-
name: "ServiceUnavailable",
|
|
71
|
-
$fault: "server",
|
|
72
|
-
...opts,
|
|
73
|
-
});
|
|
74
|
-
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
75
|
-
this.Message = opts.Message;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export class ValidationError extends __BaseException {
|
|
79
|
-
name = "ValidationError";
|
|
80
|
-
$fault = "client";
|
|
81
|
-
Message;
|
|
82
|
-
constructor(opts) {
|
|
83
|
-
super({
|
|
84
|
-
name: "ValidationError",
|
|
85
|
-
$fault: "client",
|
|
86
|
-
...opts,
|
|
87
|
-
});
|
|
88
|
-
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
89
|
-
this.Message = opts.Message;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
export class InternalStreamFailure extends __BaseException {
|
|
93
|
-
name = "InternalStreamFailure";
|
|
94
|
-
$fault = "server";
|
|
95
|
-
Message;
|
|
96
|
-
constructor(opts) {
|
|
97
|
-
super({
|
|
98
|
-
name: "InternalStreamFailure",
|
|
99
|
-
$fault: "server",
|
|
100
|
-
...opts,
|
|
101
|
-
});
|
|
102
|
-
Object.setPrototypeOf(this, InternalStreamFailure.prototype);
|
|
103
|
-
this.Message = opts.Message;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
export class ModelStreamError extends __BaseException {
|
|
107
|
-
name = "ModelStreamError";
|
|
108
|
-
$fault = "client";
|
|
109
|
-
Message;
|
|
110
|
-
ErrorCode;
|
|
111
|
-
constructor(opts) {
|
|
112
|
-
super({
|
|
113
|
-
name: "ModelStreamError",
|
|
114
|
-
$fault: "client",
|
|
115
|
-
...opts,
|
|
116
|
-
});
|
|
117
|
-
Object.setPrototypeOf(this, ModelStreamError.prototype);
|
|
118
|
-
this.Message = opts.Message;
|
|
119
|
-
this.ErrorCode = opts.ErrorCode;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
1
|
+
export {};
|
|
@@ -77,7 +77,7 @@ const _st = "streaming";
|
|
|
77
77
|
const _xAIPV = "x-Amzn-Invoked-Production-Variant";
|
|
78
78
|
const n0 = "com.amazonaws.sagemakerruntime";
|
|
79
79
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
80
|
-
import { InternalDependencyException as __InternalDependencyException, InternalFailure as __InternalFailure, InternalStreamFailure as __InternalStreamFailure, ModelError as __ModelError, ModelNotReadyException as __ModelNotReadyException, ModelStreamError as __ModelStreamError, ServiceUnavailable as __ServiceUnavailable, ValidationError as __ValidationError, } from "../models/
|
|
80
|
+
import { InternalDependencyException as __InternalDependencyException, InternalFailure as __InternalFailure, InternalStreamFailure as __InternalStreamFailure, ModelError as __ModelError, ModelNotReadyException as __ModelNotReadyException, ModelStreamError as __ModelStreamError, ServiceUnavailable as __ServiceUnavailable, ValidationError as __ValidationError, } from "../models/errors";
|
|
81
81
|
import { SageMakerRuntimeServiceException as __SageMakerRuntimeServiceException } from "../models/SageMakerRuntimeServiceException";
|
|
82
82
|
export var BodyBlob = [0, n0, _BB, 8, 21];
|
|
83
83
|
export var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
-
export * from "./models";
|
|
12
|
+
export * from "./models/errors";
|
|
13
|
+
export type * from "./models/models_0";
|
|
13
14
|
export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Your request caused an exception with an internal dependency. Contact customer
|
|
5
|
+
* support. </p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class InternalDependencyException extends __BaseException {
|
|
9
|
+
readonly name: "InternalDependencyException";
|
|
10
|
+
readonly $fault: "server";
|
|
11
|
+
Message?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* <p> An internal failure occurred. </p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class InternalFailure extends __BaseException {
|
|
22
|
+
readonly name: "InternalFailure";
|
|
23
|
+
readonly $fault: "server";
|
|
24
|
+
Message?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
|
|
32
|
+
* </p>
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export declare class ModelError extends __BaseException {
|
|
36
|
+
readonly name: "ModelError";
|
|
37
|
+
readonly $fault: "client";
|
|
38
|
+
Message?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* <p> Original status code. </p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
OriginalStatusCode?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* <p> Original message. </p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
OriginalMessage?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* <p> The Amazon Resource Name (ARN) of the log stream. </p>
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
LogStreamArn?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a
|
|
61
|
+
* multi-model endpoint is still downloading or loading the target model. Wait and try your
|
|
62
|
+
* request again.</p>
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare class ModelNotReadyException extends __BaseException {
|
|
66
|
+
readonly name: "ModelNotReadyException";
|
|
67
|
+
readonly $fault: "client";
|
|
68
|
+
Message?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* <p> The service is unavailable. Try your call again. </p>
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class ServiceUnavailable extends __BaseException {
|
|
79
|
+
readonly name: "ServiceUnavailable";
|
|
80
|
+
readonly $fault: "server";
|
|
81
|
+
Message?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* <p> Inspect your request and try again. </p>
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class ValidationError extends __BaseException {
|
|
92
|
+
readonly name: "ValidationError";
|
|
93
|
+
readonly $fault: "client";
|
|
94
|
+
Message?: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* <p>The stream processing failed because of an unknown error, exception or failure. Try your request again.</p>
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class InternalStreamFailure extends __BaseException {
|
|
105
|
+
readonly name: "InternalStreamFailure";
|
|
106
|
+
readonly $fault: "server";
|
|
107
|
+
Message?: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
constructor(opts: __ExceptionOptionType<InternalStreamFailure, __BaseException>);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* <p> An error occurred while streaming the response body. This error can have the
|
|
115
|
+
* following error codes:</p>
|
|
116
|
+
* <dl>
|
|
117
|
+
* <dt>ModelInvocationTimeExceeded</dt>
|
|
118
|
+
* <dd>
|
|
119
|
+
* <p>The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker AI.</p>
|
|
120
|
+
* </dd>
|
|
121
|
+
* <dt>StreamBroken</dt>
|
|
122
|
+
* <dd>
|
|
123
|
+
* <p>The Transmission Control Protocol (TCP) connection between the client and
|
|
124
|
+
* the model was reset or closed.</p>
|
|
125
|
+
* </dd>
|
|
126
|
+
* </dl>
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export declare class ModelStreamError extends __BaseException {
|
|
130
|
+
readonly name: "ModelStreamError";
|
|
131
|
+
readonly $fault: "client";
|
|
132
|
+
Message?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* <p>This error can have the following error codes:</p>
|
|
135
|
+
* <dl>
|
|
136
|
+
* <dt>ModelInvocationTimeExceeded</dt>
|
|
137
|
+
* <dd>
|
|
138
|
+
* <p>The model failed to finish sending the response within the timeout period
|
|
139
|
+
* allowed by Amazon SageMaker AI.</p>
|
|
140
|
+
* </dd>
|
|
141
|
+
* <dt>StreamBroken</dt>
|
|
142
|
+
* <dd>
|
|
143
|
+
* <p>The Transmission Control Protocol (TCP) connection between the client and
|
|
144
|
+
* the model was reset or closed.</p>
|
|
145
|
+
* </dd>
|
|
146
|
+
* </dl>
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
ErrorCode?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
|
|
154
|
+
}
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
|
-
/**
|
|
4
|
-
* <p>Your request caused an exception with an internal dependency. Contact customer
|
|
5
|
-
* support. </p>
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class InternalDependencyException extends __BaseException {
|
|
9
|
-
readonly name: "InternalDependencyException";
|
|
10
|
-
readonly $fault: "server";
|
|
11
|
-
Message?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* <p> An internal failure occurred. </p>
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export declare class InternalFailure extends __BaseException {
|
|
22
|
-
readonly name: "InternalFailure";
|
|
23
|
-
readonly $fault: "server";
|
|
24
|
-
Message?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
29
|
-
}
|
|
1
|
+
import { InternalStreamFailure, ModelStreamError } from "./errors";
|
|
30
2
|
/**
|
|
31
3
|
* @public
|
|
32
4
|
*/
|
|
@@ -193,76 +165,6 @@ export interface InvokeEndpointOutput {
|
|
|
193
165
|
*/
|
|
194
166
|
ClosedSessionId?: string | undefined;
|
|
195
167
|
}
|
|
196
|
-
/**
|
|
197
|
-
* <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
|
|
198
|
-
* </p>
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
201
|
-
export declare class ModelError extends __BaseException {
|
|
202
|
-
readonly name: "ModelError";
|
|
203
|
-
readonly $fault: "client";
|
|
204
|
-
Message?: string | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* <p> Original status code. </p>
|
|
207
|
-
* @public
|
|
208
|
-
*/
|
|
209
|
-
OriginalStatusCode?: number | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* <p> Original message. </p>
|
|
212
|
-
* @public
|
|
213
|
-
*/
|
|
214
|
-
OriginalMessage?: string | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* <p> The Amazon Resource Name (ARN) of the log stream. </p>
|
|
217
|
-
* @public
|
|
218
|
-
*/
|
|
219
|
-
LogStreamArn?: string | undefined;
|
|
220
|
-
/**
|
|
221
|
-
* @internal
|
|
222
|
-
*/
|
|
223
|
-
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a
|
|
227
|
-
* multi-model endpoint is still downloading or loading the target model. Wait and try your
|
|
228
|
-
* request again.</p>
|
|
229
|
-
* @public
|
|
230
|
-
*/
|
|
231
|
-
export declare class ModelNotReadyException extends __BaseException {
|
|
232
|
-
readonly name: "ModelNotReadyException";
|
|
233
|
-
readonly $fault: "client";
|
|
234
|
-
Message?: string | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
238
|
-
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* <p> The service is unavailable. Try your call again. </p>
|
|
242
|
-
* @public
|
|
243
|
-
*/
|
|
244
|
-
export declare class ServiceUnavailable extends __BaseException {
|
|
245
|
-
readonly name: "ServiceUnavailable";
|
|
246
|
-
readonly $fault: "server";
|
|
247
|
-
Message?: string | undefined;
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
251
|
-
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* <p> Inspect your request and try again. </p>
|
|
255
|
-
* @public
|
|
256
|
-
*/
|
|
257
|
-
export declare class ValidationError extends __BaseException {
|
|
258
|
-
readonly name: "ValidationError";
|
|
259
|
-
readonly $fault: "client";
|
|
260
|
-
Message?: string | undefined;
|
|
261
|
-
/**
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
265
|
-
}
|
|
266
168
|
/**
|
|
267
169
|
* @public
|
|
268
170
|
*/
|
|
@@ -348,19 +250,6 @@ export interface InvokeEndpointAsyncOutput {
|
|
|
348
250
|
*/
|
|
349
251
|
FailureLocation?: string | undefined;
|
|
350
252
|
}
|
|
351
|
-
/**
|
|
352
|
-
* <p>The stream processing failed because of an unknown error, exception or failure. Try your request again.</p>
|
|
353
|
-
* @public
|
|
354
|
-
*/
|
|
355
|
-
export declare class InternalStreamFailure extends __BaseException {
|
|
356
|
-
readonly name: "InternalStreamFailure";
|
|
357
|
-
readonly $fault: "server";
|
|
358
|
-
Message?: string | undefined;
|
|
359
|
-
/**
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
constructor(opts: __ExceptionOptionType<InternalStreamFailure, __BaseException>);
|
|
363
|
-
}
|
|
364
253
|
/**
|
|
365
254
|
* @public
|
|
366
255
|
*/
|
|
@@ -449,48 +338,6 @@ export interface InvokeEndpointWithResponseStreamInput {
|
|
|
449
338
|
*/
|
|
450
339
|
SessionId?: string | undefined;
|
|
451
340
|
}
|
|
452
|
-
/**
|
|
453
|
-
* <p> An error occurred while streaming the response body. This error can have the
|
|
454
|
-
* following error codes:</p>
|
|
455
|
-
* <dl>
|
|
456
|
-
* <dt>ModelInvocationTimeExceeded</dt>
|
|
457
|
-
* <dd>
|
|
458
|
-
* <p>The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker AI.</p>
|
|
459
|
-
* </dd>
|
|
460
|
-
* <dt>StreamBroken</dt>
|
|
461
|
-
* <dd>
|
|
462
|
-
* <p>The Transmission Control Protocol (TCP) connection between the client and
|
|
463
|
-
* the model was reset or closed.</p>
|
|
464
|
-
* </dd>
|
|
465
|
-
* </dl>
|
|
466
|
-
* @public
|
|
467
|
-
*/
|
|
468
|
-
export declare class ModelStreamError extends __BaseException {
|
|
469
|
-
readonly name: "ModelStreamError";
|
|
470
|
-
readonly $fault: "client";
|
|
471
|
-
Message?: string | undefined;
|
|
472
|
-
/**
|
|
473
|
-
* <p>This error can have the following error codes:</p>
|
|
474
|
-
* <dl>
|
|
475
|
-
* <dt>ModelInvocationTimeExceeded</dt>
|
|
476
|
-
* <dd>
|
|
477
|
-
* <p>The model failed to finish sending the response within the timeout period
|
|
478
|
-
* allowed by Amazon SageMaker AI.</p>
|
|
479
|
-
* </dd>
|
|
480
|
-
* <dt>StreamBroken</dt>
|
|
481
|
-
* <dd>
|
|
482
|
-
* <p>The Transmission Control Protocol (TCP) connection between the client and
|
|
483
|
-
* the model was reset or closed.</p>
|
|
484
|
-
* </dd>
|
|
485
|
-
* </dl>
|
|
486
|
-
* @public
|
|
487
|
-
*/
|
|
488
|
-
ErrorCode?: string | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* @internal
|
|
491
|
-
*/
|
|
492
|
-
constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
|
|
493
|
-
}
|
|
494
341
|
/**
|
|
495
342
|
* <p>A wrapper for pieces of the payload that's returned in response to a streaming
|
|
496
343
|
* inference request. A streaming inference response consists of one or more payload parts.
|
|
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
4
4
|
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
5
|
export { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
|
-
export * from "./models";
|
|
7
|
+
export * from "./models/errors";
|
|
8
|
+
export * from "./models/models_0";
|
|
8
9
|
export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
|
+
export declare class InternalDependencyException extends __BaseException {
|
|
4
|
+
readonly name: "InternalDependencyException";
|
|
5
|
+
readonly $fault: "server";
|
|
6
|
+
Message?: string | undefined;
|
|
7
|
+
constructor(
|
|
8
|
+
opts: __ExceptionOptionType<InternalDependencyException, __BaseException>
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
export declare class InternalFailure extends __BaseException {
|
|
12
|
+
readonly name: "InternalFailure";
|
|
13
|
+
readonly $fault: "server";
|
|
14
|
+
Message?: string | undefined;
|
|
15
|
+
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
export declare class ModelError extends __BaseException {
|
|
18
|
+
readonly name: "ModelError";
|
|
19
|
+
readonly $fault: "client";
|
|
20
|
+
Message?: string | undefined;
|
|
21
|
+
OriginalStatusCode?: number | undefined;
|
|
22
|
+
OriginalMessage?: string | undefined;
|
|
23
|
+
LogStreamArn?: string | undefined;
|
|
24
|
+
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
25
|
+
}
|
|
26
|
+
export declare class ModelNotReadyException extends __BaseException {
|
|
27
|
+
readonly name: "ModelNotReadyException";
|
|
28
|
+
readonly $fault: "client";
|
|
29
|
+
Message?: string | undefined;
|
|
30
|
+
constructor(
|
|
31
|
+
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export declare class ServiceUnavailable extends __BaseException {
|
|
35
|
+
readonly name: "ServiceUnavailable";
|
|
36
|
+
readonly $fault: "server";
|
|
37
|
+
Message?: string | undefined;
|
|
38
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
39
|
+
}
|
|
40
|
+
export declare class ValidationError extends __BaseException {
|
|
41
|
+
readonly name: "ValidationError";
|
|
42
|
+
readonly $fault: "client";
|
|
43
|
+
Message?: string | undefined;
|
|
44
|
+
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
45
|
+
}
|
|
46
|
+
export declare class InternalStreamFailure extends __BaseException {
|
|
47
|
+
readonly name: "InternalStreamFailure";
|
|
48
|
+
readonly $fault: "server";
|
|
49
|
+
Message?: string | undefined;
|
|
50
|
+
constructor(
|
|
51
|
+
opts: __ExceptionOptionType<InternalStreamFailure, __BaseException>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export declare class ModelStreamError extends __BaseException {
|
|
55
|
+
readonly name: "ModelStreamError";
|
|
56
|
+
readonly $fault: "client";
|
|
57
|
+
Message?: string | undefined;
|
|
58
|
+
ErrorCode?: string | undefined;
|
|
59
|
+
constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
|
|
60
|
+
}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
|
-
export declare class InternalDependencyException extends __BaseException {
|
|
4
|
-
readonly name: "InternalDependencyException";
|
|
5
|
-
readonly $fault: "server";
|
|
6
|
-
Message?: string | undefined;
|
|
7
|
-
constructor(
|
|
8
|
-
opts: __ExceptionOptionType<InternalDependencyException, __BaseException>
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
export declare class InternalFailure extends __BaseException {
|
|
12
|
-
readonly name: "InternalFailure";
|
|
13
|
-
readonly $fault: "server";
|
|
14
|
-
Message?: string | undefined;
|
|
15
|
-
constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
|
|
16
|
-
}
|
|
1
|
+
import { InternalStreamFailure, ModelStreamError } from "./errors";
|
|
17
2
|
export interface InvokeEndpointInput {
|
|
18
3
|
EndpointName: string | undefined;
|
|
19
4
|
Body: Uint8Array | undefined;
|
|
@@ -36,35 +21,6 @@ export interface InvokeEndpointOutput {
|
|
|
36
21
|
NewSessionId?: string | undefined;
|
|
37
22
|
ClosedSessionId?: string | undefined;
|
|
38
23
|
}
|
|
39
|
-
export declare class ModelError extends __BaseException {
|
|
40
|
-
readonly name: "ModelError";
|
|
41
|
-
readonly $fault: "client";
|
|
42
|
-
Message?: string | undefined;
|
|
43
|
-
OriginalStatusCode?: number | undefined;
|
|
44
|
-
OriginalMessage?: string | undefined;
|
|
45
|
-
LogStreamArn?: string | undefined;
|
|
46
|
-
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
47
|
-
}
|
|
48
|
-
export declare class ModelNotReadyException extends __BaseException {
|
|
49
|
-
readonly name: "ModelNotReadyException";
|
|
50
|
-
readonly $fault: "client";
|
|
51
|
-
Message?: string | undefined;
|
|
52
|
-
constructor(
|
|
53
|
-
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
export declare class ServiceUnavailable extends __BaseException {
|
|
57
|
-
readonly name: "ServiceUnavailable";
|
|
58
|
-
readonly $fault: "server";
|
|
59
|
-
Message?: string | undefined;
|
|
60
|
-
constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
|
|
61
|
-
}
|
|
62
|
-
export declare class ValidationError extends __BaseException {
|
|
63
|
-
readonly name: "ValidationError";
|
|
64
|
-
readonly $fault: "client";
|
|
65
|
-
Message?: string | undefined;
|
|
66
|
-
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
67
|
-
}
|
|
68
24
|
export interface InvokeEndpointAsyncInput {
|
|
69
25
|
EndpointName: string | undefined;
|
|
70
26
|
ContentType?: string | undefined;
|
|
@@ -80,14 +36,6 @@ export interface InvokeEndpointAsyncOutput {
|
|
|
80
36
|
OutputLocation?: string | undefined;
|
|
81
37
|
FailureLocation?: string | undefined;
|
|
82
38
|
}
|
|
83
|
-
export declare class InternalStreamFailure extends __BaseException {
|
|
84
|
-
readonly name: "InternalStreamFailure";
|
|
85
|
-
readonly $fault: "server";
|
|
86
|
-
Message?: string | undefined;
|
|
87
|
-
constructor(
|
|
88
|
-
opts: __ExceptionOptionType<InternalStreamFailure, __BaseException>
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
39
|
export interface InvokeEndpointWithResponseStreamInput {
|
|
92
40
|
EndpointName: string | undefined;
|
|
93
41
|
Body: Uint8Array | undefined;
|
|
@@ -100,13 +48,6 @@ export interface InvokeEndpointWithResponseStreamInput {
|
|
|
100
48
|
InferenceComponentName?: string | undefined;
|
|
101
49
|
SessionId?: string | undefined;
|
|
102
50
|
}
|
|
103
|
-
export declare class ModelStreamError extends __BaseException {
|
|
104
|
-
readonly name: "ModelStreamError";
|
|
105
|
-
readonly $fault: "client";
|
|
106
|
-
Message?: string | undefined;
|
|
107
|
-
ErrorCode?: string | undefined;
|
|
108
|
-
constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
|
|
109
|
-
}
|
|
110
51
|
export interface PayloadPart {
|
|
111
52
|
Bytes?: Uint8Array | undefined;
|
|
112
53
|
}
|
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.935.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-runtime",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.935.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
30
|
"@aws-sdk/types": "3.930.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
35
|
+
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.2.5",
|
|
37
37
|
"@smithy/eventstream-serde-config-resolver": "^4.3.5",
|
|
38
38
|
"@smithy/eventstream-serde-node": "^4.2.5",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"@smithy/hash-node": "^4.2.5",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
45
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.5",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.5",
|
|
48
48
|
"@smithy/node-http-handler": "^4.4.5",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.5",
|
|
50
|
-
"@smithy/smithy-client": "^4.9.
|
|
50
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
51
51
|
"@smithy/types": "^4.9.0",
|
|
52
52
|
"@smithy/url-parser": "^4.2.5",
|
|
53
53
|
"@smithy/util-base64": "^4.3.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
58
58
|
"@smithy/util-endpoints": "^3.2.5",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.5",
|
|
60
60
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|