@aws-sdk/client-sagemaker-runtime 3.716.0 → 3.723.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 +117 -59
- package/dist-es/SageMakerRuntimeClient.js +1 -0
- package/dist-es/models/models_0.js +28 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/package.json +47 -47
package/dist-cjs/index.js
CHANGED
|
@@ -144,7 +144,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
|
|
|
144
144
|
}, "resolveRuntimeExtensions");
|
|
145
145
|
|
|
146
146
|
// src/SageMakerRuntimeClient.ts
|
|
147
|
-
var
|
|
147
|
+
var SageMakerRuntimeClient = class extends import_smithy_client.Client {
|
|
148
|
+
static {
|
|
149
|
+
__name(this, "SageMakerRuntimeClient");
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The resolved configuration of SageMakerRuntimeClient class. This is resolved and normalized from the {@link SageMakerRuntimeClientConfig | constructor configuration interface}.
|
|
153
|
+
*/
|
|
154
|
+
config;
|
|
148
155
|
constructor(...[configuration]) {
|
|
149
156
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
150
157
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -155,7 +162,7 @@ var _SageMakerRuntimeClient = class _SageMakerRuntimeClient extends import_smith
|
|
|
155
162
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
156
163
|
const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
|
|
157
164
|
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
|
|
158
|
-
const _config_9 = resolveRuntimeExtensions(_config_8,
|
|
165
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
159
166
|
super(_config_9);
|
|
160
167
|
this.config = _config_9;
|
|
161
168
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
@@ -183,8 +190,6 @@ var _SageMakerRuntimeClient = class _SageMakerRuntimeClient extends import_smith
|
|
|
183
190
|
super.destroy();
|
|
184
191
|
}
|
|
185
192
|
};
|
|
186
|
-
__name(_SageMakerRuntimeClient, "SageMakerRuntimeClient");
|
|
187
|
-
var SageMakerRuntimeClient = _SageMakerRuntimeClient;
|
|
188
193
|
|
|
189
194
|
// src/SageMakerRuntime.ts
|
|
190
195
|
|
|
@@ -199,7 +204,10 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
199
204
|
|
|
200
205
|
// src/models/SageMakerRuntimeServiceException.ts
|
|
201
206
|
|
|
202
|
-
var
|
|
207
|
+
var SageMakerRuntimeServiceException = class _SageMakerRuntimeServiceException extends import_smithy_client.ServiceException {
|
|
208
|
+
static {
|
|
209
|
+
__name(this, "SageMakerRuntimeServiceException");
|
|
210
|
+
}
|
|
203
211
|
/**
|
|
204
212
|
* @internal
|
|
205
213
|
*/
|
|
@@ -208,11 +216,15 @@ var _SageMakerRuntimeServiceException = class _SageMakerRuntimeServiceException
|
|
|
208
216
|
Object.setPrototypeOf(this, _SageMakerRuntimeServiceException.prototype);
|
|
209
217
|
}
|
|
210
218
|
};
|
|
211
|
-
__name(_SageMakerRuntimeServiceException, "SageMakerRuntimeServiceException");
|
|
212
|
-
var SageMakerRuntimeServiceException = _SageMakerRuntimeServiceException;
|
|
213
219
|
|
|
214
220
|
// src/models/models_0.ts
|
|
215
|
-
var
|
|
221
|
+
var InternalDependencyException = class _InternalDependencyException extends SageMakerRuntimeServiceException {
|
|
222
|
+
static {
|
|
223
|
+
__name(this, "InternalDependencyException");
|
|
224
|
+
}
|
|
225
|
+
name = "InternalDependencyException";
|
|
226
|
+
$fault = "server";
|
|
227
|
+
Message;
|
|
216
228
|
/**
|
|
217
229
|
* @internal
|
|
218
230
|
*/
|
|
@@ -222,15 +234,17 @@ var _InternalDependencyException = class _InternalDependencyException extends Sa
|
|
|
222
234
|
$fault: "server",
|
|
223
235
|
...opts
|
|
224
236
|
});
|
|
225
|
-
this.name = "InternalDependencyException";
|
|
226
|
-
this.$fault = "server";
|
|
227
237
|
Object.setPrototypeOf(this, _InternalDependencyException.prototype);
|
|
228
238
|
this.Message = opts.Message;
|
|
229
239
|
}
|
|
230
240
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
241
|
+
var InternalFailure = class _InternalFailure extends SageMakerRuntimeServiceException {
|
|
242
|
+
static {
|
|
243
|
+
__name(this, "InternalFailure");
|
|
244
|
+
}
|
|
245
|
+
name = "InternalFailure";
|
|
246
|
+
$fault = "server";
|
|
247
|
+
Message;
|
|
234
248
|
/**
|
|
235
249
|
* @internal
|
|
236
250
|
*/
|
|
@@ -240,15 +254,32 @@ var _InternalFailure = class _InternalFailure extends SageMakerRuntimeServiceExc
|
|
|
240
254
|
$fault: "server",
|
|
241
255
|
...opts
|
|
242
256
|
});
|
|
243
|
-
this.name = "InternalFailure";
|
|
244
|
-
this.$fault = "server";
|
|
245
257
|
Object.setPrototypeOf(this, _InternalFailure.prototype);
|
|
246
258
|
this.Message = opts.Message;
|
|
247
259
|
}
|
|
248
260
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
261
|
+
var ModelError = class _ModelError extends SageMakerRuntimeServiceException {
|
|
262
|
+
static {
|
|
263
|
+
__name(this, "ModelError");
|
|
264
|
+
}
|
|
265
|
+
name = "ModelError";
|
|
266
|
+
$fault = "client";
|
|
267
|
+
Message;
|
|
268
|
+
/**
|
|
269
|
+
* <p> Original status code. </p>
|
|
270
|
+
* @public
|
|
271
|
+
*/
|
|
272
|
+
OriginalStatusCode;
|
|
273
|
+
/**
|
|
274
|
+
* <p> Original message. </p>
|
|
275
|
+
* @public
|
|
276
|
+
*/
|
|
277
|
+
OriginalMessage;
|
|
278
|
+
/**
|
|
279
|
+
* <p> The Amazon Resource Name (ARN) of the log stream. </p>
|
|
280
|
+
* @public
|
|
281
|
+
*/
|
|
282
|
+
LogStreamArn;
|
|
252
283
|
/**
|
|
253
284
|
* @internal
|
|
254
285
|
*/
|
|
@@ -258,8 +289,6 @@ var _ModelError = class _ModelError extends SageMakerRuntimeServiceException {
|
|
|
258
289
|
$fault: "client",
|
|
259
290
|
...opts
|
|
260
291
|
});
|
|
261
|
-
this.name = "ModelError";
|
|
262
|
-
this.$fault = "client";
|
|
263
292
|
Object.setPrototypeOf(this, _ModelError.prototype);
|
|
264
293
|
this.Message = opts.Message;
|
|
265
294
|
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
@@ -267,9 +296,13 @@ var _ModelError = class _ModelError extends SageMakerRuntimeServiceException {
|
|
|
267
296
|
this.LogStreamArn = opts.LogStreamArn;
|
|
268
297
|
}
|
|
269
298
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
299
|
+
var ModelNotReadyException = class _ModelNotReadyException extends SageMakerRuntimeServiceException {
|
|
300
|
+
static {
|
|
301
|
+
__name(this, "ModelNotReadyException");
|
|
302
|
+
}
|
|
303
|
+
name = "ModelNotReadyException";
|
|
304
|
+
$fault = "client";
|
|
305
|
+
Message;
|
|
273
306
|
/**
|
|
274
307
|
* @internal
|
|
275
308
|
*/
|
|
@@ -279,15 +312,17 @@ var _ModelNotReadyException = class _ModelNotReadyException extends SageMakerRun
|
|
|
279
312
|
$fault: "client",
|
|
280
313
|
...opts
|
|
281
314
|
});
|
|
282
|
-
this.name = "ModelNotReadyException";
|
|
283
|
-
this.$fault = "client";
|
|
284
315
|
Object.setPrototypeOf(this, _ModelNotReadyException.prototype);
|
|
285
316
|
this.Message = opts.Message;
|
|
286
317
|
}
|
|
287
318
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
319
|
+
var ServiceUnavailable = class _ServiceUnavailable extends SageMakerRuntimeServiceException {
|
|
320
|
+
static {
|
|
321
|
+
__name(this, "ServiceUnavailable");
|
|
322
|
+
}
|
|
323
|
+
name = "ServiceUnavailable";
|
|
324
|
+
$fault = "server";
|
|
325
|
+
Message;
|
|
291
326
|
/**
|
|
292
327
|
* @internal
|
|
293
328
|
*/
|
|
@@ -297,15 +332,17 @@ var _ServiceUnavailable = class _ServiceUnavailable extends SageMakerRuntimeServ
|
|
|
297
332
|
$fault: "server",
|
|
298
333
|
...opts
|
|
299
334
|
});
|
|
300
|
-
this.name = "ServiceUnavailable";
|
|
301
|
-
this.$fault = "server";
|
|
302
335
|
Object.setPrototypeOf(this, _ServiceUnavailable.prototype);
|
|
303
336
|
this.Message = opts.Message;
|
|
304
337
|
}
|
|
305
338
|
};
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
339
|
+
var ValidationError = class _ValidationError extends SageMakerRuntimeServiceException {
|
|
340
|
+
static {
|
|
341
|
+
__name(this, "ValidationError");
|
|
342
|
+
}
|
|
343
|
+
name = "ValidationError";
|
|
344
|
+
$fault = "client";
|
|
345
|
+
Message;
|
|
309
346
|
/**
|
|
310
347
|
* @internal
|
|
311
348
|
*/
|
|
@@ -315,15 +352,17 @@ var _ValidationError = class _ValidationError extends SageMakerRuntimeServiceExc
|
|
|
315
352
|
$fault: "client",
|
|
316
353
|
...opts
|
|
317
354
|
});
|
|
318
|
-
this.name = "ValidationError";
|
|
319
|
-
this.$fault = "client";
|
|
320
355
|
Object.setPrototypeOf(this, _ValidationError.prototype);
|
|
321
356
|
this.Message = opts.Message;
|
|
322
357
|
}
|
|
323
358
|
};
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
359
|
+
var InternalStreamFailure = class _InternalStreamFailure extends SageMakerRuntimeServiceException {
|
|
360
|
+
static {
|
|
361
|
+
__name(this, "InternalStreamFailure");
|
|
362
|
+
}
|
|
363
|
+
name = "InternalStreamFailure";
|
|
364
|
+
$fault = "server";
|
|
365
|
+
Message;
|
|
327
366
|
/**
|
|
328
367
|
* @internal
|
|
329
368
|
*/
|
|
@@ -333,15 +372,34 @@ var _InternalStreamFailure = class _InternalStreamFailure extends SageMakerRunti
|
|
|
333
372
|
$fault: "server",
|
|
334
373
|
...opts
|
|
335
374
|
});
|
|
336
|
-
this.name = "InternalStreamFailure";
|
|
337
|
-
this.$fault = "server";
|
|
338
375
|
Object.setPrototypeOf(this, _InternalStreamFailure.prototype);
|
|
339
376
|
this.Message = opts.Message;
|
|
340
377
|
}
|
|
341
378
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
379
|
+
var ModelStreamError = class _ModelStreamError extends SageMakerRuntimeServiceException {
|
|
380
|
+
static {
|
|
381
|
+
__name(this, "ModelStreamError");
|
|
382
|
+
}
|
|
383
|
+
name = "ModelStreamError";
|
|
384
|
+
$fault = "client";
|
|
385
|
+
Message;
|
|
386
|
+
/**
|
|
387
|
+
* <p>This error can have the following error codes:</p>
|
|
388
|
+
* <dl>
|
|
389
|
+
* <dt>ModelInvocationTimeExceeded</dt>
|
|
390
|
+
* <dd>
|
|
391
|
+
* <p>The model failed to finish sending the response within the timeout period
|
|
392
|
+
* allowed by Amazon SageMaker.</p>
|
|
393
|
+
* </dd>
|
|
394
|
+
* <dt>StreamBroken</dt>
|
|
395
|
+
* <dd>
|
|
396
|
+
* <p>The Transmission Control Protocol (TCP) connection between the client and
|
|
397
|
+
* the model was reset or closed.</p>
|
|
398
|
+
* </dd>
|
|
399
|
+
* </dl>
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
402
|
+
ErrorCode;
|
|
345
403
|
/**
|
|
346
404
|
* @internal
|
|
347
405
|
*/
|
|
@@ -351,15 +409,11 @@ var _ModelStreamError = class _ModelStreamError extends SageMakerRuntimeServiceE
|
|
|
351
409
|
$fault: "client",
|
|
352
410
|
...opts
|
|
353
411
|
});
|
|
354
|
-
this.name = "ModelStreamError";
|
|
355
|
-
this.$fault = "client";
|
|
356
412
|
Object.setPrototypeOf(this, _ModelStreamError.prototype);
|
|
357
413
|
this.Message = opts.Message;
|
|
358
414
|
this.ErrorCode = opts.ErrorCode;
|
|
359
415
|
}
|
|
360
416
|
};
|
|
361
|
-
__name(_ModelStreamError, "ModelStreamError");
|
|
362
|
-
var ModelStreamError = _ModelStreamError;
|
|
363
417
|
var ResponseStream;
|
|
364
418
|
((ResponseStream3) => {
|
|
365
419
|
ResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -756,35 +810,37 @@ var _xastm = "x-amzn-sagemaker-target-model";
|
|
|
756
810
|
var _xastv = "x-amzn-sagemaker-target-variant";
|
|
757
811
|
|
|
758
812
|
// src/commands/InvokeEndpointAsyncCommand.ts
|
|
759
|
-
var
|
|
813
|
+
var InvokeEndpointAsyncCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
760
814
|
return [
|
|
761
815
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
762
816
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
763
817
|
];
|
|
764
818
|
}).s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {}).n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand").f(InvokeEndpointAsyncInputFilterSensitiveLog, void 0).ser(se_InvokeEndpointAsyncCommand).de(de_InvokeEndpointAsyncCommand).build() {
|
|
819
|
+
static {
|
|
820
|
+
__name(this, "InvokeEndpointAsyncCommand");
|
|
821
|
+
}
|
|
765
822
|
};
|
|
766
|
-
__name(_InvokeEndpointAsyncCommand, "InvokeEndpointAsyncCommand");
|
|
767
|
-
var InvokeEndpointAsyncCommand = _InvokeEndpointAsyncCommand;
|
|
768
823
|
|
|
769
824
|
// src/commands/InvokeEndpointCommand.ts
|
|
770
825
|
|
|
771
826
|
|
|
772
827
|
|
|
773
|
-
var
|
|
828
|
+
var InvokeEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
774
829
|
return [
|
|
775
830
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
776
831
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
777
832
|
];
|
|
778
833
|
}).s("AmazonSageMakerRuntime", "InvokeEndpoint", {}).n("SageMakerRuntimeClient", "InvokeEndpointCommand").f(InvokeEndpointInputFilterSensitiveLog, InvokeEndpointOutputFilterSensitiveLog).ser(se_InvokeEndpointCommand).de(de_InvokeEndpointCommand).build() {
|
|
834
|
+
static {
|
|
835
|
+
__name(this, "InvokeEndpointCommand");
|
|
836
|
+
}
|
|
779
837
|
};
|
|
780
|
-
__name(_InvokeEndpointCommand, "InvokeEndpointCommand");
|
|
781
|
-
var InvokeEndpointCommand = _InvokeEndpointCommand;
|
|
782
838
|
|
|
783
839
|
// src/commands/InvokeEndpointWithResponseStreamCommand.ts
|
|
784
840
|
|
|
785
841
|
|
|
786
842
|
|
|
787
|
-
var
|
|
843
|
+
var InvokeEndpointWithResponseStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
788
844
|
return [
|
|
789
845
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
790
846
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -797,9 +853,10 @@ var _InvokeEndpointWithResponseStreamCommand = class _InvokeEndpointWithResponse
|
|
|
797
853
|
output: true
|
|
798
854
|
}
|
|
799
855
|
}).n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand").f(InvokeEndpointWithResponseStreamInputFilterSensitiveLog, InvokeEndpointWithResponseStreamOutputFilterSensitiveLog).ser(se_InvokeEndpointWithResponseStreamCommand).de(de_InvokeEndpointWithResponseStreamCommand).build() {
|
|
856
|
+
static {
|
|
857
|
+
__name(this, "InvokeEndpointWithResponseStreamCommand");
|
|
858
|
+
}
|
|
800
859
|
};
|
|
801
|
-
__name(_InvokeEndpointWithResponseStreamCommand, "InvokeEndpointWithResponseStreamCommand");
|
|
802
|
-
var InvokeEndpointWithResponseStreamCommand = _InvokeEndpointWithResponseStreamCommand;
|
|
803
860
|
|
|
804
861
|
// src/SageMakerRuntime.ts
|
|
805
862
|
var commands = {
|
|
@@ -807,10 +864,11 @@ var commands = {
|
|
|
807
864
|
InvokeEndpointAsyncCommand,
|
|
808
865
|
InvokeEndpointWithResponseStreamCommand
|
|
809
866
|
};
|
|
810
|
-
var
|
|
867
|
+
var SageMakerRuntime = class extends SageMakerRuntimeClient {
|
|
868
|
+
static {
|
|
869
|
+
__name(this, "SageMakerRuntime");
|
|
870
|
+
}
|
|
811
871
|
};
|
|
812
|
-
__name(_SageMakerRuntime, "SageMakerRuntime");
|
|
813
|
-
var SageMakerRuntime = _SageMakerRuntime;
|
|
814
872
|
(0, import_smithy_client.createAggregatedClient)(commands, SageMakerRuntime);
|
|
815
873
|
// Annotate the CommonJS export names for ESM import in node:
|
|
816
874
|
|
|
@@ -15,6 +15,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
15
15
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
16
16
|
export { __Client };
|
|
17
17
|
export class SageMakerRuntimeClient extends __Client {
|
|
18
|
+
config;
|
|
18
19
|
constructor(...[configuration]) {
|
|
19
20
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
21
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -1,40 +1,46 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
3
|
export class InternalDependencyException extends __BaseException {
|
|
4
|
+
name = "InternalDependencyException";
|
|
5
|
+
$fault = "server";
|
|
6
|
+
Message;
|
|
4
7
|
constructor(opts) {
|
|
5
8
|
super({
|
|
6
9
|
name: "InternalDependencyException",
|
|
7
10
|
$fault: "server",
|
|
8
11
|
...opts,
|
|
9
12
|
});
|
|
10
|
-
this.name = "InternalDependencyException";
|
|
11
|
-
this.$fault = "server";
|
|
12
13
|
Object.setPrototypeOf(this, InternalDependencyException.prototype);
|
|
13
14
|
this.Message = opts.Message;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
export class InternalFailure extends __BaseException {
|
|
18
|
+
name = "InternalFailure";
|
|
19
|
+
$fault = "server";
|
|
20
|
+
Message;
|
|
17
21
|
constructor(opts) {
|
|
18
22
|
super({
|
|
19
23
|
name: "InternalFailure",
|
|
20
24
|
$fault: "server",
|
|
21
25
|
...opts,
|
|
22
26
|
});
|
|
23
|
-
this.name = "InternalFailure";
|
|
24
|
-
this.$fault = "server";
|
|
25
27
|
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
26
28
|
this.Message = opts.Message;
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
export class ModelError extends __BaseException {
|
|
32
|
+
name = "ModelError";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
Message;
|
|
35
|
+
OriginalStatusCode;
|
|
36
|
+
OriginalMessage;
|
|
37
|
+
LogStreamArn;
|
|
30
38
|
constructor(opts) {
|
|
31
39
|
super({
|
|
32
40
|
name: "ModelError",
|
|
33
41
|
$fault: "client",
|
|
34
42
|
...opts,
|
|
35
43
|
});
|
|
36
|
-
this.name = "ModelError";
|
|
37
|
-
this.$fault = "client";
|
|
38
44
|
Object.setPrototypeOf(this, ModelError.prototype);
|
|
39
45
|
this.Message = opts.Message;
|
|
40
46
|
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
@@ -43,66 +49,72 @@ export class ModelError extends __BaseException {
|
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
51
|
export class ModelNotReadyException extends __BaseException {
|
|
52
|
+
name = "ModelNotReadyException";
|
|
53
|
+
$fault = "client";
|
|
54
|
+
Message;
|
|
46
55
|
constructor(opts) {
|
|
47
56
|
super({
|
|
48
57
|
name: "ModelNotReadyException",
|
|
49
58
|
$fault: "client",
|
|
50
59
|
...opts,
|
|
51
60
|
});
|
|
52
|
-
this.name = "ModelNotReadyException";
|
|
53
|
-
this.$fault = "client";
|
|
54
61
|
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
55
62
|
this.Message = opts.Message;
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
export class ServiceUnavailable extends __BaseException {
|
|
66
|
+
name = "ServiceUnavailable";
|
|
67
|
+
$fault = "server";
|
|
68
|
+
Message;
|
|
59
69
|
constructor(opts) {
|
|
60
70
|
super({
|
|
61
71
|
name: "ServiceUnavailable",
|
|
62
72
|
$fault: "server",
|
|
63
73
|
...opts,
|
|
64
74
|
});
|
|
65
|
-
this.name = "ServiceUnavailable";
|
|
66
|
-
this.$fault = "server";
|
|
67
75
|
Object.setPrototypeOf(this, ServiceUnavailable.prototype);
|
|
68
76
|
this.Message = opts.Message;
|
|
69
77
|
}
|
|
70
78
|
}
|
|
71
79
|
export class ValidationError extends __BaseException {
|
|
80
|
+
name = "ValidationError";
|
|
81
|
+
$fault = "client";
|
|
82
|
+
Message;
|
|
72
83
|
constructor(opts) {
|
|
73
84
|
super({
|
|
74
85
|
name: "ValidationError",
|
|
75
86
|
$fault: "client",
|
|
76
87
|
...opts,
|
|
77
88
|
});
|
|
78
|
-
this.name = "ValidationError";
|
|
79
|
-
this.$fault = "client";
|
|
80
89
|
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
81
90
|
this.Message = opts.Message;
|
|
82
91
|
}
|
|
83
92
|
}
|
|
84
93
|
export class InternalStreamFailure extends __BaseException {
|
|
94
|
+
name = "InternalStreamFailure";
|
|
95
|
+
$fault = "server";
|
|
96
|
+
Message;
|
|
85
97
|
constructor(opts) {
|
|
86
98
|
super({
|
|
87
99
|
name: "InternalStreamFailure",
|
|
88
100
|
$fault: "server",
|
|
89
101
|
...opts,
|
|
90
102
|
});
|
|
91
|
-
this.name = "InternalStreamFailure";
|
|
92
|
-
this.$fault = "server";
|
|
93
103
|
Object.setPrototypeOf(this, InternalStreamFailure.prototype);
|
|
94
104
|
this.Message = opts.Message;
|
|
95
105
|
}
|
|
96
106
|
}
|
|
97
107
|
export class ModelStreamError extends __BaseException {
|
|
108
|
+
name = "ModelStreamError";
|
|
109
|
+
$fault = "client";
|
|
110
|
+
Message;
|
|
111
|
+
ErrorCode;
|
|
98
112
|
constructor(opts) {
|
|
99
113
|
super({
|
|
100
114
|
name: "ModelStreamError",
|
|
101
115
|
$fault: "client",
|
|
102
116
|
...opts,
|
|
103
117
|
});
|
|
104
|
-
this.name = "ModelStreamError";
|
|
105
|
-
this.$fault = "client";
|
|
106
118
|
Object.setPrototypeOf(this, ModelStreamError.prototype);
|
|
107
119
|
this.Message = opts.Message;
|
|
108
120
|
this.ErrorCode = opts.ErrorCode;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
profile?: string | undefined;
|
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
25
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
26
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
32
32
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
33
33
|
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
34
34
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
35
|
-
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
35
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
36
36
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
37
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
|
|
|
8
8
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
9
|
>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider:
|
|
12
|
-
input: any
|
|
13
|
-
|
|
11
|
+
credentialDefaultProvider:
|
|
12
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
13
|
+
| ((
|
|
14
|
+
_: unknown
|
|
15
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
14
16
|
defaultUserAgentProvider: (
|
|
15
17
|
config?:
|
|
16
18
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
|
|
|
8
8
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
9
|
>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
credentialDefaultProvider:
|
|
12
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
13
|
+
| ((
|
|
14
|
+
init?:
|
|
15
|
+
| import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
16
|
+
| undefined
|
|
17
|
+
) => import("@smithy/types").MemoizedProvider<
|
|
18
|
+
import("@smithy/types").AwsCredentialIdentity
|
|
19
|
+
>);
|
|
18
20
|
defaultUserAgentProvider: (
|
|
19
21
|
config?:
|
|
20
22
|
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
|
|
|
30
30
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
31
31
|
| undefined
|
|
32
32
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
33
|
-
credentialDefaultProvider:
|
|
34
|
-
input: any
|
|
35
|
-
|
|
33
|
+
credentialDefaultProvider:
|
|
34
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
35
|
+
| ((
|
|
36
|
+
_: unknown
|
|
37
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
36
38
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
37
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
40
|
logger: import("@smithy/types").Logger;
|
|
@@ -53,11 +55,21 @@ export declare const getRuntimeConfig: (
|
|
|
53
55
|
| import("@smithy/types").RetryStrategyV2
|
|
54
56
|
| undefined;
|
|
55
57
|
endpoint?:
|
|
56
|
-
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
| ((
|
|
59
|
+
| string
|
|
60
|
+
| import("@smithy/types").Endpoint
|
|
61
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
62
|
+
| import("@smithy/types").EndpointV2
|
|
63
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
64
|
+
) &
|
|
65
|
+
(
|
|
66
|
+
| string
|
|
67
|
+
| import("@smithy/types").Provider<string>
|
|
68
|
+
| import("@smithy/types").Endpoint
|
|
69
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
70
|
+
| import("@smithy/types").EndpointV2
|
|
71
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
72
|
+
))
|
|
61
73
|
| undefined;
|
|
62
74
|
endpointProvider: (
|
|
63
75
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
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.723.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,60 +20,60 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^
|
|
37
|
-
"@smithy/core": "^
|
|
38
|
-
"@smithy/eventstream-serde-browser": "^
|
|
39
|
-
"@smithy/eventstream-serde-config-resolver": "^
|
|
40
|
-
"@smithy/eventstream-serde-node": "^
|
|
41
|
-
"@smithy/fetch-http-handler": "^
|
|
42
|
-
"@smithy/hash-node": "^
|
|
43
|
-
"@smithy/invalid-dependency": "^
|
|
44
|
-
"@smithy/middleware-content-length": "^
|
|
45
|
-
"@smithy/middleware-endpoint": "^
|
|
46
|
-
"@smithy/middleware-retry": "^
|
|
47
|
-
"@smithy/middleware-serde": "^
|
|
48
|
-
"@smithy/middleware-stack": "^
|
|
49
|
-
"@smithy/node-config-provider": "^
|
|
50
|
-
"@smithy/node-http-handler": "^
|
|
51
|
-
"@smithy/protocol-http": "^
|
|
52
|
-
"@smithy/smithy-client": "^
|
|
53
|
-
"@smithy/types": "^
|
|
54
|
-
"@smithy/url-parser": "^
|
|
55
|
-
"@smithy/util-base64": "^
|
|
56
|
-
"@smithy/util-body-length-browser": "^
|
|
57
|
-
"@smithy/util-body-length-node": "^
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^
|
|
60
|
-
"@smithy/util-endpoints": "^
|
|
61
|
-
"@smithy/util-middleware": "^
|
|
62
|
-
"@smithy/util-retry": "^
|
|
63
|
-
"@smithy/util-stream": "^
|
|
64
|
-
"@smithy/util-utf8": "^
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.723.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.723.0",
|
|
25
|
+
"@aws-sdk/core": "3.723.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.723.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.723.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.723.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
32
|
+
"@aws-sdk/types": "3.723.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.723.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.723.0",
|
|
36
|
+
"@smithy/config-resolver": "^4.0.0",
|
|
37
|
+
"@smithy/core": "^3.0.0",
|
|
38
|
+
"@smithy/eventstream-serde-browser": "^4.0.0",
|
|
39
|
+
"@smithy/eventstream-serde-config-resolver": "^4.0.0",
|
|
40
|
+
"@smithy/eventstream-serde-node": "^4.0.0",
|
|
41
|
+
"@smithy/fetch-http-handler": "^5.0.0",
|
|
42
|
+
"@smithy/hash-node": "^4.0.0",
|
|
43
|
+
"@smithy/invalid-dependency": "^4.0.0",
|
|
44
|
+
"@smithy/middleware-content-length": "^4.0.0",
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
46
|
+
"@smithy/middleware-retry": "^4.0.0",
|
|
47
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
48
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
49
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
50
|
+
"@smithy/node-http-handler": "^4.0.0",
|
|
51
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
52
|
+
"@smithy/smithy-client": "^4.0.0",
|
|
53
|
+
"@smithy/types": "^4.0.0",
|
|
54
|
+
"@smithy/url-parser": "^4.0.0",
|
|
55
|
+
"@smithy/util-base64": "^4.0.0",
|
|
56
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
57
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.0.0",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.0.0",
|
|
60
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
61
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
62
|
+
"@smithy/util-retry": "^4.0.0",
|
|
63
|
+
"@smithy/util-stream": "^4.0.0",
|
|
64
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
65
65
|
"tslib": "^2.6.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@tsconfig/
|
|
69
|
-
"@types/node": "^
|
|
68
|
+
"@tsconfig/node18": "18.2.4",
|
|
69
|
+
"@types/node": "^18.19.69",
|
|
70
70
|
"concurrently": "7.0.0",
|
|
71
71
|
"downlevel-dts": "0.10.1",
|
|
72
72
|
"rimraf": "3.0.2",
|
|
73
|
-
"typescript": "~
|
|
73
|
+
"typescript": "~5.2.2"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=
|
|
76
|
+
"node": ">=18.0.0"
|
|
77
77
|
},
|
|
78
78
|
"typesVersions": {
|
|
79
79
|
"<4.0": {
|