@aws-sdk/client-sagemaker-runtime-http2 3.943.0 → 3.946.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 +21 -138
- package/dist-cjs/runtimeConfig.browser.js +5 -3
- package/dist-cjs/runtimeConfig.js +8 -5
- package/dist-cjs/runtimeConfig.native.js +3 -1
- package/dist-es/SageMakerRuntimeHTTP2Client.js +2 -2
- package/dist-es/runtimeConfig.browser.js +5 -3
- package/dist-es/runtimeConfig.js +7 -4
- package/dist-es/runtimeConfig.native.js +3 -1
- package/dist-es/schemas/schemas_0.js +21 -138
- package/dist-types/SageMakerRuntimeHTTP2.d.ts +1 -1
- package/dist-types/SageMakerRuntimeHTTP2Client.d.ts +12 -12
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/SageMakerRuntimeHTTP2ServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -1
- package/dist-types/ts3.4/SageMakerRuntimeHTTP2Client.d.ts +3 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/SageMakerRuntimeHTTP2ServiceException.d.ts +1 -1
- package/package.json +13 -12
package/dist-cjs/index.js
CHANGED
|
@@ -268,40 +268,11 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
|
|
|
268
268
|
const _st = "streaming";
|
|
269
269
|
const n0 = "com.amazonaws.sagemakerruntimehttp2";
|
|
270
270
|
var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
271
|
-
var InputValidationError = [
|
|
272
|
-
-3,
|
|
273
|
-
n0,
|
|
274
|
-
_IVE,
|
|
275
|
-
{
|
|
276
|
-
[_e]: _c,
|
|
277
|
-
[_hE]: 400,
|
|
278
|
-
},
|
|
279
|
-
[_M, _EC],
|
|
280
|
-
[0, 0],
|
|
281
|
-
];
|
|
271
|
+
var InputValidationError = [-3, n0, _IVE, { [_e]: _c, [_hE]: 400 }, [_M, _EC], [0, 0]];
|
|
282
272
|
schema.TypeRegistry.for(n0).registerError(InputValidationError, InputValidationError$1);
|
|
283
|
-
var InternalServerError = [
|
|
284
|
-
-3,
|
|
285
|
-
n0,
|
|
286
|
-
_ISE,
|
|
287
|
-
{
|
|
288
|
-
[_e]: _s,
|
|
289
|
-
[_hE]: 500,
|
|
290
|
-
},
|
|
291
|
-
[_M, _EC],
|
|
292
|
-
[0, 0],
|
|
293
|
-
];
|
|
273
|
+
var InternalServerError = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _EC], [0, 0]];
|
|
294
274
|
schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
|
|
295
|
-
var InternalStreamFailure = [
|
|
296
|
-
-3,
|
|
297
|
-
n0,
|
|
298
|
-
_ISF,
|
|
299
|
-
{
|
|
300
|
-
[_e]: _s,
|
|
301
|
-
},
|
|
302
|
-
[_M],
|
|
303
|
-
[0],
|
|
304
|
-
];
|
|
275
|
+
var InternalStreamFailure = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
|
|
305
276
|
schema.TypeRegistry.for(n0).registerError(InternalStreamFailure, InternalStreamFailure$1);
|
|
306
277
|
var InvokeEndpointWithBidirectionalStreamInput = [
|
|
307
278
|
3,
|
|
@@ -312,24 +283,9 @@ var InvokeEndpointWithBidirectionalStreamInput = [
|
|
|
312
283
|
[
|
|
313
284
|
[0, 1],
|
|
314
285
|
[() => RequestStreamEvent, 16],
|
|
315
|
-
[
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
[_hH]: _XASTV,
|
|
319
|
-
},
|
|
320
|
-
],
|
|
321
|
-
[
|
|
322
|
-
0,
|
|
323
|
-
{
|
|
324
|
-
[_hH]: _XASMIP,
|
|
325
|
-
},
|
|
326
|
-
],
|
|
327
|
-
[
|
|
328
|
-
0,
|
|
329
|
-
{
|
|
330
|
-
[_hH]: _XASMQS,
|
|
331
|
-
},
|
|
332
|
-
],
|
|
286
|
+
[0, { [_hH]: _XASTV }],
|
|
287
|
+
[0, { [_hH]: _XASMIP }],
|
|
288
|
+
[0, { [_hH]: _XASMQS }],
|
|
333
289
|
],
|
|
334
290
|
];
|
|
335
291
|
var InvokeEndpointWithBidirectionalStreamOutput = [
|
|
@@ -340,36 +296,19 @@ var InvokeEndpointWithBidirectionalStreamOutput = [
|
|
|
340
296
|
[_B, _IPV],
|
|
341
297
|
[
|
|
342
298
|
[() => ResponseStreamEvent, 16],
|
|
343
|
-
[
|
|
344
|
-
0,
|
|
345
|
-
{
|
|
346
|
-
[_hH]: _XAIPV,
|
|
347
|
-
},
|
|
348
|
-
],
|
|
299
|
+
[0, { [_hH]: _XAIPV }],
|
|
349
300
|
],
|
|
350
301
|
];
|
|
351
302
|
var ModelError = [
|
|
352
303
|
-3,
|
|
353
304
|
n0,
|
|
354
305
|
_ME,
|
|
355
|
-
{
|
|
356
|
-
[_e]: _c,
|
|
357
|
-
[_hE]: 424,
|
|
358
|
-
},
|
|
306
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
359
307
|
[_M, _OSC, _OM, _LSA, _EC],
|
|
360
308
|
[0, 1, 0, 0, 0],
|
|
361
309
|
];
|
|
362
310
|
schema.TypeRegistry.for(n0).registerError(ModelError, ModelError$1);
|
|
363
|
-
var ModelStreamError = [
|
|
364
|
-
-3,
|
|
365
|
-
n0,
|
|
366
|
-
_MSE,
|
|
367
|
-
{
|
|
368
|
-
[_e]: _c,
|
|
369
|
-
},
|
|
370
|
-
[_M, _EC],
|
|
371
|
-
[0, 0],
|
|
372
|
-
];
|
|
311
|
+
var ModelStreamError = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
|
|
373
312
|
schema.TypeRegistry.for(n0).registerError(ModelStreamError, ModelStreamError$1);
|
|
374
313
|
var RequestPayloadPart = [
|
|
375
314
|
3,
|
|
@@ -378,30 +317,10 @@ var RequestPayloadPart = [
|
|
|
378
317
|
0,
|
|
379
318
|
[_By, _DT, _CS, _P],
|
|
380
319
|
[
|
|
381
|
-
[
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
0,
|
|
389
|
-
{
|
|
390
|
-
[_eH]: 1,
|
|
391
|
-
},
|
|
392
|
-
],
|
|
393
|
-
[
|
|
394
|
-
0,
|
|
395
|
-
{
|
|
396
|
-
[_eH]: 1,
|
|
397
|
-
},
|
|
398
|
-
],
|
|
399
|
-
[
|
|
400
|
-
0,
|
|
401
|
-
{
|
|
402
|
-
[_eH]: 1,
|
|
403
|
-
},
|
|
404
|
-
],
|
|
320
|
+
[() => SensitiveBlob, { [_eP]: 1 }],
|
|
321
|
+
[0, { [_eH]: 1 }],
|
|
322
|
+
[0, { [_eH]: 1 }],
|
|
323
|
+
[0, { [_eH]: 1 }],
|
|
405
324
|
],
|
|
406
325
|
];
|
|
407
326
|
var ResponsePayloadPart = [
|
|
@@ -411,43 +330,13 @@ var ResponsePayloadPart = [
|
|
|
411
330
|
0,
|
|
412
331
|
[_By, _DT, _CS, _P],
|
|
413
332
|
[
|
|
414
|
-
[
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
],
|
|
420
|
-
[
|
|
421
|
-
0,
|
|
422
|
-
{
|
|
423
|
-
[_eH]: 1,
|
|
424
|
-
},
|
|
425
|
-
],
|
|
426
|
-
[
|
|
427
|
-
0,
|
|
428
|
-
{
|
|
429
|
-
[_eH]: 1,
|
|
430
|
-
},
|
|
431
|
-
],
|
|
432
|
-
[
|
|
433
|
-
0,
|
|
434
|
-
{
|
|
435
|
-
[_eH]: 1,
|
|
436
|
-
},
|
|
437
|
-
],
|
|
333
|
+
[() => SensitiveBlob, { [_eP]: 1 }],
|
|
334
|
+
[0, { [_eH]: 1 }],
|
|
335
|
+
[0, { [_eH]: 1 }],
|
|
336
|
+
[0, { [_eH]: 1 }],
|
|
438
337
|
],
|
|
439
338
|
];
|
|
440
|
-
var ServiceUnavailableError = [
|
|
441
|
-
-3,
|
|
442
|
-
n0,
|
|
443
|
-
_SUE,
|
|
444
|
-
{
|
|
445
|
-
[_e]: _s,
|
|
446
|
-
[_hE]: 503,
|
|
447
|
-
},
|
|
448
|
-
[_M, _EC],
|
|
449
|
-
[0, 0],
|
|
450
|
-
];
|
|
339
|
+
var ServiceUnavailableError = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_M, _EC], [0, 0]];
|
|
451
340
|
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableError, ServiceUnavailableError$1);
|
|
452
341
|
var SageMakerRuntimeHTTP2ServiceException = [
|
|
453
342
|
-3,
|
|
@@ -462,9 +351,7 @@ var RequestStreamEvent = [
|
|
|
462
351
|
3,
|
|
463
352
|
n0,
|
|
464
353
|
_RSE,
|
|
465
|
-
{
|
|
466
|
-
[_st]: 1,
|
|
467
|
-
},
|
|
354
|
+
{ [_st]: 1 },
|
|
468
355
|
[_PP],
|
|
469
356
|
[[() => RequestPayloadPart, 0]],
|
|
470
357
|
];
|
|
@@ -472,9 +359,7 @@ var ResponseStreamEvent = [
|
|
|
472
359
|
3,
|
|
473
360
|
n0,
|
|
474
361
|
_RSEe,
|
|
475
|
-
{
|
|
476
|
-
[_st]: 1,
|
|
477
|
-
},
|
|
362
|
+
{ [_st]: 1 },
|
|
478
363
|
[_PP, _MSE, _ISF],
|
|
479
364
|
[
|
|
480
365
|
[() => ResponsePayloadPart, 0],
|
|
@@ -486,9 +371,7 @@ var InvokeEndpointWithBidirectionalStream = [
|
|
|
486
371
|
9,
|
|
487
372
|
n0,
|
|
488
373
|
_IEWBS,
|
|
489
|
-
{
|
|
490
|
-
[_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200],
|
|
491
|
-
},
|
|
374
|
+
{ [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] },
|
|
492
375
|
() => InvokeEndpointWithBidirectionalStreamInput,
|
|
493
376
|
() => InvokeEndpointWithBidirectionalStreamOutput,
|
|
494
377
|
];
|
|
@@ -9,11 +9,11 @@ const config_resolver_1 = require("@smithy/config-resolver");
|
|
|
9
9
|
const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
|
|
10
10
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
11
11
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
12
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
13
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
14
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
13
15
|
const util_retry_1 = require("@smithy/util-retry");
|
|
14
16
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
17
17
|
const getRuntimeConfig = (config) => {
|
|
18
18
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
19
19
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -28,7 +28,9 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
29
|
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
30
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
31
|
-
(() => ({
|
|
31
|
+
(() => ({
|
|
32
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser."),
|
|
33
|
+
})),
|
|
32
34
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
33
35
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
36
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
@@ -13,14 +13,13 @@ const hash_node_1 = require("@smithy/hash-node");
|
|
|
13
13
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
14
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
15
15
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
16
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
17
|
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
17
19
|
const util_retry_1 = require("@smithy/util-retry");
|
|
18
20
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
20
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
21
|
-
const smithy_client_2 = require("@smithy/smithy-client");
|
|
22
21
|
const getRuntimeConfig = (config) => {
|
|
23
|
-
(0,
|
|
22
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -44,7 +43,11 @@ const getRuntimeConfig = (config) => {
|
|
|
44
43
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
45
44
|
region: config?.region ??
|
|
46
45
|
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
47
|
-
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ??
|
|
46
|
+
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ??
|
|
47
|
+
(async () => ({
|
|
48
|
+
...(await defaultConfigProvider()),
|
|
49
|
+
disableConcurrentStreams: true,
|
|
50
|
+
}))),
|
|
48
51
|
retryMode: config?.retryMode ??
|
|
49
52
|
(0, node_config_provider_1.loadConfig)({
|
|
50
53
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
@@ -11,7 +11,9 @@ const getRuntimeConfig = (config) => {
|
|
|
11
11
|
...config,
|
|
12
12
|
runtime: "react-native",
|
|
13
13
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
14
|
-
(() => ({
|
|
14
|
+
(() => ({
|
|
15
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
|
|
16
|
+
})),
|
|
15
17
|
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
16
18
|
};
|
|
17
19
|
};
|
|
@@ -8,8 +8,8 @@ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
|
8
8
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
9
|
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
10
10
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
11
|
-
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
12
|
-
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
11
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
12
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
13
13
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
14
14
|
import { defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
15
15
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
@@ -5,11 +5,11 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smit
|
|
|
5
5
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
6
6
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
7
|
import { invalidFunction, invalidProvider } from "@smithy/invalid-dependency";
|
|
8
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
8
9
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
10
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
9
11
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
10
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
12
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
13
13
|
export const getRuntimeConfig = (config) => {
|
|
14
14
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
15
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
@@ -24,7 +24,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
25
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
26
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
27
|
-
(() => ({
|
|
27
|
+
(() => ({
|
|
28
|
+
handle: invalidFunction("event stream request is not supported in browser."),
|
|
29
|
+
})),
|
|
28
30
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
29
31
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
32
|
region: config?.region ?? invalidProvider("Region is missing"),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -9,12 +9,11 @@ import { Hash } from "@smithy/hash-node";
|
|
|
9
9
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
10
10
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
11
11
|
import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
12
13
|
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
13
15
|
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
14
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
16
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
17
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
18
17
|
export const getRuntimeConfig = (config) => {
|
|
19
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
20
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
@@ -40,7 +39,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
40
39
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
41
40
|
region: config?.region ??
|
|
42
41
|
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
43
|
-
requestHandler: RequestHandler.create(config?.requestHandler ??
|
|
42
|
+
requestHandler: RequestHandler.create(config?.requestHandler ??
|
|
43
|
+
(async () => ({
|
|
44
|
+
...(await defaultConfigProvider()),
|
|
45
|
+
disableConcurrentStreams: true,
|
|
46
|
+
}))),
|
|
44
47
|
retryMode: config?.retryMode ??
|
|
45
48
|
loadNodeConfig({
|
|
46
49
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
@@ -8,7 +8,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
8
8
|
...config,
|
|
9
9
|
runtime: "react-native",
|
|
10
10
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
11
|
-
(() => ({
|
|
11
|
+
(() => ({
|
|
12
|
+
handle: invalidFunction("event stream request is not supported in ReactNative."),
|
|
13
|
+
})),
|
|
12
14
|
sha256: config?.sha256 ?? Sha256,
|
|
13
15
|
};
|
|
14
16
|
};
|
|
@@ -47,40 +47,11 @@ import { TypeRegistry } from "@smithy/core/schema";
|
|
|
47
47
|
import { InputValidationError as __InputValidationError, InternalServerError as __InternalServerError, InternalStreamFailure as __InternalStreamFailure, ModelError as __ModelError, ModelStreamError as __ModelStreamError, ServiceUnavailableError as __ServiceUnavailableError, } from "../models/errors";
|
|
48
48
|
import { SageMakerRuntimeHTTP2ServiceException as __SageMakerRuntimeHTTP2ServiceException } from "../models/SageMakerRuntimeHTTP2ServiceException";
|
|
49
49
|
export var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
50
|
-
export var InputValidationError = [
|
|
51
|
-
-3,
|
|
52
|
-
n0,
|
|
53
|
-
_IVE,
|
|
54
|
-
{
|
|
55
|
-
[_e]: _c,
|
|
56
|
-
[_hE]: 400,
|
|
57
|
-
},
|
|
58
|
-
[_M, _EC],
|
|
59
|
-
[0, 0],
|
|
60
|
-
];
|
|
50
|
+
export var InputValidationError = [-3, n0, _IVE, { [_e]: _c, [_hE]: 400 }, [_M, _EC], [0, 0]];
|
|
61
51
|
TypeRegistry.for(n0).registerError(InputValidationError, __InputValidationError);
|
|
62
|
-
export var InternalServerError = [
|
|
63
|
-
-3,
|
|
64
|
-
n0,
|
|
65
|
-
_ISE,
|
|
66
|
-
{
|
|
67
|
-
[_e]: _s,
|
|
68
|
-
[_hE]: 500,
|
|
69
|
-
},
|
|
70
|
-
[_M, _EC],
|
|
71
|
-
[0, 0],
|
|
72
|
-
];
|
|
52
|
+
export var InternalServerError = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M, _EC], [0, 0]];
|
|
73
53
|
TypeRegistry.for(n0).registerError(InternalServerError, __InternalServerError);
|
|
74
|
-
export var InternalStreamFailure = [
|
|
75
|
-
-3,
|
|
76
|
-
n0,
|
|
77
|
-
_ISF,
|
|
78
|
-
{
|
|
79
|
-
[_e]: _s,
|
|
80
|
-
},
|
|
81
|
-
[_M],
|
|
82
|
-
[0],
|
|
83
|
-
];
|
|
54
|
+
export var InternalStreamFailure = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
|
|
84
55
|
TypeRegistry.for(n0).registerError(InternalStreamFailure, __InternalStreamFailure);
|
|
85
56
|
export var InvokeEndpointWithBidirectionalStreamInput = [
|
|
86
57
|
3,
|
|
@@ -91,24 +62,9 @@ export var InvokeEndpointWithBidirectionalStreamInput = [
|
|
|
91
62
|
[
|
|
92
63
|
[0, 1],
|
|
93
64
|
[() => RequestStreamEvent, 16],
|
|
94
|
-
[
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
[_hH]: _XASTV,
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
[
|
|
101
|
-
0,
|
|
102
|
-
{
|
|
103
|
-
[_hH]: _XASMIP,
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
[
|
|
107
|
-
0,
|
|
108
|
-
{
|
|
109
|
-
[_hH]: _XASMQS,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
65
|
+
[0, { [_hH]: _XASTV }],
|
|
66
|
+
[0, { [_hH]: _XASMIP }],
|
|
67
|
+
[0, { [_hH]: _XASMQS }],
|
|
112
68
|
],
|
|
113
69
|
];
|
|
114
70
|
export var InvokeEndpointWithBidirectionalStreamOutput = [
|
|
@@ -119,36 +75,19 @@ export var InvokeEndpointWithBidirectionalStreamOutput = [
|
|
|
119
75
|
[_B, _IPV],
|
|
120
76
|
[
|
|
121
77
|
[() => ResponseStreamEvent, 16],
|
|
122
|
-
[
|
|
123
|
-
0,
|
|
124
|
-
{
|
|
125
|
-
[_hH]: _XAIPV,
|
|
126
|
-
},
|
|
127
|
-
],
|
|
78
|
+
[0, { [_hH]: _XAIPV }],
|
|
128
79
|
],
|
|
129
80
|
];
|
|
130
81
|
export var ModelError = [
|
|
131
82
|
-3,
|
|
132
83
|
n0,
|
|
133
84
|
_ME,
|
|
134
|
-
{
|
|
135
|
-
[_e]: _c,
|
|
136
|
-
[_hE]: 424,
|
|
137
|
-
},
|
|
85
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
138
86
|
[_M, _OSC, _OM, _LSA, _EC],
|
|
139
87
|
[0, 1, 0, 0, 0],
|
|
140
88
|
];
|
|
141
89
|
TypeRegistry.for(n0).registerError(ModelError, __ModelError);
|
|
142
|
-
export var ModelStreamError = [
|
|
143
|
-
-3,
|
|
144
|
-
n0,
|
|
145
|
-
_MSE,
|
|
146
|
-
{
|
|
147
|
-
[_e]: _c,
|
|
148
|
-
},
|
|
149
|
-
[_M, _EC],
|
|
150
|
-
[0, 0],
|
|
151
|
-
];
|
|
90
|
+
export var ModelStreamError = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
|
|
152
91
|
TypeRegistry.for(n0).registerError(ModelStreamError, __ModelStreamError);
|
|
153
92
|
export var RequestPayloadPart = [
|
|
154
93
|
3,
|
|
@@ -157,30 +96,10 @@ export var RequestPayloadPart = [
|
|
|
157
96
|
0,
|
|
158
97
|
[_By, _DT, _CS, _P],
|
|
159
98
|
[
|
|
160
|
-
[
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
[
|
|
167
|
-
0,
|
|
168
|
-
{
|
|
169
|
-
[_eH]: 1,
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
[
|
|
173
|
-
0,
|
|
174
|
-
{
|
|
175
|
-
[_eH]: 1,
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
[
|
|
179
|
-
0,
|
|
180
|
-
{
|
|
181
|
-
[_eH]: 1,
|
|
182
|
-
},
|
|
183
|
-
],
|
|
99
|
+
[() => SensitiveBlob, { [_eP]: 1 }],
|
|
100
|
+
[0, { [_eH]: 1 }],
|
|
101
|
+
[0, { [_eH]: 1 }],
|
|
102
|
+
[0, { [_eH]: 1 }],
|
|
184
103
|
],
|
|
185
104
|
];
|
|
186
105
|
export var ResponsePayloadPart = [
|
|
@@ -190,43 +109,13 @@ export var ResponsePayloadPart = [
|
|
|
190
109
|
0,
|
|
191
110
|
[_By, _DT, _CS, _P],
|
|
192
111
|
[
|
|
193
|
-
[
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
],
|
|
199
|
-
[
|
|
200
|
-
0,
|
|
201
|
-
{
|
|
202
|
-
[_eH]: 1,
|
|
203
|
-
},
|
|
204
|
-
],
|
|
205
|
-
[
|
|
206
|
-
0,
|
|
207
|
-
{
|
|
208
|
-
[_eH]: 1,
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
[
|
|
212
|
-
0,
|
|
213
|
-
{
|
|
214
|
-
[_eH]: 1,
|
|
215
|
-
},
|
|
216
|
-
],
|
|
112
|
+
[() => SensitiveBlob, { [_eP]: 1 }],
|
|
113
|
+
[0, { [_eH]: 1 }],
|
|
114
|
+
[0, { [_eH]: 1 }],
|
|
115
|
+
[0, { [_eH]: 1 }],
|
|
217
116
|
],
|
|
218
117
|
];
|
|
219
|
-
export var ServiceUnavailableError = [
|
|
220
|
-
-3,
|
|
221
|
-
n0,
|
|
222
|
-
_SUE,
|
|
223
|
-
{
|
|
224
|
-
[_e]: _s,
|
|
225
|
-
[_hE]: 503,
|
|
226
|
-
},
|
|
227
|
-
[_M, _EC],
|
|
228
|
-
[0, 0],
|
|
229
|
-
];
|
|
118
|
+
export var ServiceUnavailableError = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_M, _EC], [0, 0]];
|
|
230
119
|
TypeRegistry.for(n0).registerError(ServiceUnavailableError, __ServiceUnavailableError);
|
|
231
120
|
export var SageMakerRuntimeHTTP2ServiceException = [
|
|
232
121
|
-3,
|
|
@@ -241,9 +130,7 @@ export var RequestStreamEvent = [
|
|
|
241
130
|
3,
|
|
242
131
|
n0,
|
|
243
132
|
_RSE,
|
|
244
|
-
{
|
|
245
|
-
[_st]: 1,
|
|
246
|
-
},
|
|
133
|
+
{ [_st]: 1 },
|
|
247
134
|
[_PP],
|
|
248
135
|
[[() => RequestPayloadPart, 0]],
|
|
249
136
|
];
|
|
@@ -251,9 +138,7 @@ export var ResponseStreamEvent = [
|
|
|
251
138
|
3,
|
|
252
139
|
n0,
|
|
253
140
|
_RSEe,
|
|
254
|
-
{
|
|
255
|
-
[_st]: 1,
|
|
256
|
-
},
|
|
141
|
+
{ [_st]: 1 },
|
|
257
142
|
[_PP, _MSE, _ISF],
|
|
258
143
|
[
|
|
259
144
|
[() => ResponsePayloadPart, 0],
|
|
@@ -265,9 +150,7 @@ export var InvokeEndpointWithBidirectionalStream = [
|
|
|
265
150
|
9,
|
|
266
151
|
n0,
|
|
267
152
|
_IEWBS,
|
|
268
|
-
{
|
|
269
|
-
[_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200],
|
|
270
|
-
},
|
|
153
|
+
{ [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] },
|
|
271
154
|
() => InvokeEndpointWithBidirectionalStreamInput,
|
|
272
155
|
() => InvokeEndpointWithBidirectionalStreamOutput,
|
|
273
156
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
|
|
3
3
|
import { SageMakerRuntimeHTTP2Client } from "./SageMakerRuntimeHTTP2Client";
|
|
4
4
|
export interface SageMakerRuntimeHTTP2 {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
2
|
-
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
-
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
1
|
+
import { type EventStreamInputConfig, type EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
2
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
4
|
import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
|
|
5
|
-
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
-
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
7
|
-
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
8
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
9
|
-
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
5
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { type EventStreamSerdeInputConfig, type EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
7
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
8
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
9
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
10
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
11
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
12
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
|
|
14
14
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
15
|
-
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
15
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
16
16
|
export { __Client };
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, AwsCredentialIdentityProvider
|
|
2
|
-
import { SageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
1
|
+
import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import type { SageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
-
import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { InvokeEndpointWithBidirectionalStreamInput, InvokeEndpointWithBidirectionalStreamOutput } from "../models/models_0";
|
|
4
|
-
import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { InvokeEndpointWithBidirectionalStreamInput, InvokeEndpointWithBidirectionalStreamOutput } from "../models/models_0";
|
|
4
|
+
import type { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -8,10 +8,19 @@ export interface ClientInputEndpointParameters {
|
|
|
8
8
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
9
9
|
region?: string | undefined | Provider<string | undefined>;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
11
14
|
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
15
|
defaultSigningName: string;
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
14
20
|
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
15
24
|
export declare const commonParams: {
|
|
16
25
|
readonly UseFIPS: {
|
|
17
26
|
readonly type: "builtInParams";
|
|
@@ -30,6 +39,9 @@ export declare const commonParams: {
|
|
|
30
39
|
readonly name: "useDualstackEndpoint";
|
|
31
40
|
};
|
|
32
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
33
45
|
export interface EndpointParameters extends __EndpointParameters {
|
|
34
46
|
UseDualStack?: boolean | undefined;
|
|
35
47
|
UseFIPS?: boolean | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
-
import { EndpointParameters } from "./EndpointParameters";
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
4
7
|
logger?: Logger;
|
|
5
8
|
}) => EndpointV2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
-
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
-
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
|
|
2
2
|
export type { __ServiceExceptionOptions };
|
|
3
3
|
export { __ServiceException };
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { SageMakerRuntimeHTTP2ServiceException as __BaseException } from "./SageMakerRuntimeHTTP2ServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
-
import { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
|
|
2
|
+
import type { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeHttp2Handler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
-
import { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
|
|
2
|
+
import type { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
1
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
2
|
export declare var SensitiveBlob: StaticSimpleSchema;
|
|
3
3
|
export declare var InputValidationError: StaticErrorSchema;
|
|
4
4
|
export declare var InternalServerError: StaticErrorSchema;
|
|
@@ -29,13 +29,12 @@ import {
|
|
|
29
29
|
} from "@smithy/middleware-retry";
|
|
30
30
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
31
31
|
import {
|
|
32
|
-
Client as __Client,
|
|
33
32
|
DefaultsMode as __DefaultsMode,
|
|
34
33
|
SmithyConfiguration as __SmithyConfiguration,
|
|
35
34
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
+
Client as __Client,
|
|
36
36
|
} from "@smithy/smithy-client";
|
|
37
37
|
import {
|
|
38
|
-
AwsCredentialIdentityProvider,
|
|
39
38
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
40
39
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
41
40
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -49,9 +48,10 @@ import {
|
|
|
49
48
|
HttpResponse,
|
|
50
49
|
Logger as __Logger,
|
|
51
50
|
Provider as __Provider,
|
|
52
|
-
Provider,
|
|
53
51
|
StreamCollector as __StreamCollector,
|
|
54
52
|
UrlParser as __UrlParser,
|
|
53
|
+
AwsCredentialIdentityProvider,
|
|
54
|
+
Provider,
|
|
55
55
|
UserAgent as __UserAgent,
|
|
56
56
|
} from "@smithy/types";
|
|
57
57
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
HttpAuthScheme,
|
|
2
3
|
AwsCredentialIdentity,
|
|
3
4
|
AwsCredentialIdentityProvider,
|
|
4
|
-
HttpAuthScheme,
|
|
5
5
|
} from "@smithy/types";
|
|
6
6
|
import { SageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
7
|
export interface HttpAuthExtensionConfiguration {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime-http2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Http2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.946.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-http2",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo sagemaker-runtime-http2"
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo sagemaker-runtime-http2",
|
|
15
|
+
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,21 +21,21 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.946.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.946.0",
|
|
25
26
|
"@aws-sdk/eventstream-handler-node": "3.936.0",
|
|
26
27
|
"@aws-sdk/middleware-eventstream": "3.936.0",
|
|
27
28
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
28
29
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
29
30
|
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.946.0",
|
|
31
32
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
32
33
|
"@aws-sdk/types": "3.936.0",
|
|
33
34
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
34
35
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.946.0",
|
|
36
37
|
"@smithy/config-resolver": "^4.4.3",
|
|
37
|
-
"@smithy/core": "^3.18.
|
|
38
|
+
"@smithy/core": "^3.18.7",
|
|
38
39
|
"@smithy/eventstream-serde-browser": "^4.2.5",
|
|
39
40
|
"@smithy/eventstream-serde-config-resolver": "^4.3.5",
|
|
40
41
|
"@smithy/eventstream-serde-node": "^4.2.5",
|
|
@@ -42,21 +43,21 @@
|
|
|
42
43
|
"@smithy/hash-node": "^4.2.5",
|
|
43
44
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
44
45
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
46
|
-
"@smithy/middleware-retry": "^4.4.
|
|
46
|
+
"@smithy/middleware-endpoint": "^4.3.14",
|
|
47
|
+
"@smithy/middleware-retry": "^4.4.14",
|
|
47
48
|
"@smithy/middleware-serde": "^4.2.6",
|
|
48
49
|
"@smithy/middleware-stack": "^4.2.5",
|
|
49
50
|
"@smithy/node-config-provider": "^4.3.5",
|
|
50
51
|
"@smithy/node-http-handler": "^4.4.5",
|
|
51
52
|
"@smithy/protocol-http": "^5.3.5",
|
|
52
|
-
"@smithy/smithy-client": "^4.9.
|
|
53
|
+
"@smithy/smithy-client": "^4.9.10",
|
|
53
54
|
"@smithy/types": "^4.9.0",
|
|
54
55
|
"@smithy/url-parser": "^4.2.5",
|
|
55
56
|
"@smithy/util-base64": "^4.3.0",
|
|
56
57
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
57
58
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
59
|
+
"@smithy/util-defaults-mode-browser": "^4.3.13",
|
|
60
|
+
"@smithy/util-defaults-mode-node": "^4.2.16",
|
|
60
61
|
"@smithy/util-endpoints": "^3.2.5",
|
|
61
62
|
"@smithy/util-middleware": "^4.2.5",
|
|
62
63
|
"@smithy/util-retry": "^4.2.5",
|