@aws-sdk/client-sagemaker-runtime-http2 3.1076.0 → 3.1078.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 CHANGED
@@ -1,8 +1,9 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
3
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
- exports.$Command = Command;
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
5
+ const { Command: $Command } = require("@smithy/core/client");
6
+ exports.$Command = $Command;
6
7
  exports.__Client = Client;
7
8
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
9
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -13,9 +14,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
13
14
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
14
15
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
16
  const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
16
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
17
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
17
18
  const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
18
19
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
20
+ const { Sha256 } = require("@smithy/core/checksum");
19
21
 
20
22
  const defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = async (config, context, input) => {
21
23
  return {
@@ -70,7 +72,7 @@ const commonParams = {
70
72
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
73
  };
72
74
 
73
- var version = "3.1075.0";
75
+ var version = "3.1077.0";
74
76
  var packageInfo = {
75
77
  version: version};
76
78
 
@@ -410,6 +412,7 @@ const getRuntimeConfig$1 = (config) => {
410
412
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
411
413
  },
412
414
  serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
415
+ sha256: config?.sha256 ?? Sha256,
413
416
  urlParser: config?.urlParser ?? parseUrl,
414
417
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
415
418
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -448,7 +451,6 @@ const getRuntimeConfig = (config) => {
448
451
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
449
452
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
450
453
  }, config),
451
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
452
454
  streamCollector: config?.streamCollector ?? streamCollector,
453
455
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
454
456
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -538,24 +540,13 @@ class SageMakerRuntimeHTTP2Client extends Client {
538
540
  }
539
541
  }
540
542
 
541
- class InvokeEndpointWithBidirectionalStreamCommand extends Command
542
- .classBuilder()
543
- .ep(commonParams)
544
- .m(function (Command, cs, config, o) {
545
- return [
546
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
547
- getEventStreamPlugin(config),
548
- ];
549
- })
550
- .s("AmazonSageMakerRuntimeHttp2", "InvokeEndpointWithBidirectionalStream", {
551
- eventStream: {
552
- input: true,
553
- output: true,
554
- },
555
- })
556
- .n("SageMakerRuntimeHTTP2Client", "InvokeEndpointWithBidirectionalStreamCommand")
557
- .sc(InvokeEndpointWithBidirectionalStream$)
558
- .build() {
543
+ const command = makeBuilder(commonParams, "AmazonSageMakerRuntimeHttp2", "SageMakerRuntimeHTTP2Client", getEndpointPlugin);
544
+ const _ep0 = {};
545
+ const _mw0 = (Command, cs, config, o) => [
546
+ getEventStreamPlugin(config),
547
+ ];
548
+
549
+ class InvokeEndpointWithBidirectionalStreamCommand extends command(_ep0, _mw0, "InvokeEndpointWithBidirectionalStream", InvokeEndpointWithBidirectionalStream$) {
559
550
  }
560
551
 
561
552
  const commands = {
@@ -0,0 +1,9 @@
1
+ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
+ import { makeBuilder } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "./endpoint/EndpointParameters";
5
+ export const command = makeBuilder(commonParams, "AmazonSageMakerRuntimeHttp2", "SageMakerRuntimeHTTP2Client", getEndpointPlugin);
6
+ export const _ep0 = {};
7
+ export const _mw0 = (Command, cs, config, o) => [
8
+ getEventStreamPlugin(config),
9
+ ];
@@ -1,25 +1,4 @@
1
- import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { InvokeEndpointWithBidirectionalStream$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class InvokeEndpointWithBidirectionalStreamCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEventStreamPlugin(config),
14
- ];
15
- })
16
- .s("AmazonSageMakerRuntimeHttp2", "InvokeEndpointWithBidirectionalStream", {
17
- eventStream: {
18
- input: true,
19
- output: true,
20
- },
21
- })
22
- .n("SageMakerRuntimeHTTP2Client", "InvokeEndpointWithBidirectionalStreamCommand")
23
- .sc(InvokeEndpointWithBidirectionalStream$)
24
- .build() {
3
+ export class InvokeEndpointWithBidirectionalStreamCommand extends command(_ep0, _mw0, "InvokeEndpointWithBidirectionalStream", InvokeEndpointWithBidirectionalStream$) {
25
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SageMakerRuntimeHTTP2Client";
2
2
  export * from "./SageMakerRuntimeHTTP2";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/errors";
6
7
  export * from "./models/models_0";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidFunction, invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -28,7 +27,6 @@ export const getRuntimeConfig = (config) => {
28
27
  region: config?.region ?? invalidProvider("Region is missing"),
29
28
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
- sha256: config?.sha256 ?? Sha256,
32
30
  streamCollector: config?.streamCollector ?? streamCollector,
33
31
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
34
32
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -7,7 +7,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
7
7
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
8
  import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
9
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
10
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
+ import { calculateBodyLength } from "@smithy/core/serde";
11
11
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
13
  export const getRuntimeConfig = (config) => {
@@ -42,7 +42,6 @@ export const getRuntimeConfig = (config) => {
42
42
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
43
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
44
44
  }, config),
45
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
45
  streamCollector: config?.streamCollector ?? streamCollector,
47
46
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
47
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { invalidFunction } from "@smithy/core/client";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
3
  export const getRuntimeConfig = (config) => {
@@ -10,6 +9,5 @@ export const getRuntimeConfig = (config) => {
10
9
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
11
10
  handle: invalidFunction("event stream request is not supported in ReactNative."),
12
11
  })),
13
- sha256: config?.sha256 ?? Sha256,
14
12
  };
15
13
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { SageMakerRuntimeHTTP2ClientResolvedConfig } from "./SageMakerRuntimeHTTP2Client";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput, O extends import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SageMakerRuntimeHTTP2ClientResolvedConfig, import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput, import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SageMakerRuntimeHTTP2ClientResolvedConfig, import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput, import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => import("@smithy/types").Pluggable<any, any>[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { InvokeEndpointWithBidirectionalStreamInput, InvokeEndpointWithBidirectionalStreamOutput } from "../models/models_0";
4
- import type { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface InvokeEndpointWithBidirectionalStreamCommandInput extends Invok
22
19
  export interface InvokeEndpointWithBidirectionalStreamCommandOutput extends InvokeEndpointWithBidirectionalStreamOutput, __MetadataBearer {
23
20
  }
24
21
  declare const InvokeEndpointWithBidirectionalStreamCommand_base: {
25
- new (input: InvokeEndpointWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput, SageMakerRuntimeHTTP2ClientResolvedConfig, InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput>;
26
- new (input: InvokeEndpointWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput, SageMakerRuntimeHTTP2ClientResolvedConfig, InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: InvokeEndpointWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput, import("..").SageMakerRuntimeHTTP2ClientResolvedConfig, InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput>;
23
+ new (input: InvokeEndpointWithBidirectionalStreamCommandInput): import("@smithy/core/client").CommandImpl<InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput, import("..").SageMakerRuntimeHTTP2ClientResolvedConfig, InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Invokes a model endpoint with bidirectional streaming capabilities. This operation establishes a persistent connection that allows you to send multiple requests and receive streaming responses from the model in real-time.</p> <p>Bidirectional streaming is useful for interactive applications such as chatbots, real-time translation, or any scenario where you need to maintain a conversation-like interaction with the model. The connection remains open, allowing you to send additional input and receive responses without establishing a new connection for each request.</p> <p>For an overview of Amazon SageMaker AI, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html">How It Works</a>.</p> <p>Amazon SageMaker AI strips all POST headers except those supported by the API. Amazon SageMaker AI might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. </p> <p>Calls to <code>InvokeEndpointWithBidirectionalStream</code> are authenticated by using Amazon Web Services Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API Reference</i>.</p> <p>The bidirectional stream maintains the connection until either the client closes it or the model indicates completion. Each request and response in the stream is sent as an event with optional headers for data type and completion state.</p> <note> <p>Endpoints are scoped to an individual account, and are not public. The URL does not contain the account ID, but Amazon SageMaker AI determines the account ID from the authentication token that is supplied by the caller.</p> </note>
@@ -9,6 +9,7 @@ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameter
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { SageMakerRuntimeHTTP2ExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
12
13
  export * from "./schemas/schemas_0";
13
14
  export * from "./models/errors";
14
15
  export * from "./models/models_0";
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
15
15
  region: string | import("@smithy/types").Provider<any>;
16
16
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,7 +16,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
16
16
  region: string | import("@smithy/types").Provider<string>;
17
17
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
19
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
28
27
  [setting: string]: unknown;
29
28
  };
30
29
  apiVersion: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -5,7 +5,6 @@ import type { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2C
5
5
  export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfig) => {
6
6
  runtime: string;
7
7
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
8
- sha256: import("@smithy/types").HashConstructor;
9
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
9
  cacheMiddleware?: boolean;
11
10
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
@@ -14,6 +13,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
14
13
  [setting: string]: unknown;
15
14
  };
16
15
  apiVersion: string;
16
+ sha256: import("@smithy/types").HashConstructor;
17
17
  urlParser: import("@smithy/types").UrlParser;
18
18
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
19
19
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/types";
2
+ import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "./SageMakerRuntimeHTTP2Client";
3
+ export declare const command: <
4
+ I extends import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput,
5
+ O extends import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput
6
+ >(
7
+ added: EndpointParameterInstructions,
8
+ plugins: (
9
+ CommandCtor: any,
10
+ clientStack: any,
11
+ config: any,
12
+ options: any
13
+ ) => import("@smithy/types").Pluggable<any, any>[],
14
+ op: string,
15
+ $: import("@smithy/types").StaticOperationSchema,
16
+ smithyContext?: Record<string, unknown>
17
+ ) => {
18
+ new (input: I): import("@smithy/core/client").CommandImpl<
19
+ I,
20
+ O,
21
+ SageMakerRuntimeHTTP2ClientResolvedConfig,
22
+ import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput,
23
+ import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput
24
+ >;
25
+ new (
26
+ ...[input]: import("@smithy/types").OptionalParameter<I>
27
+ ): import("@smithy/core/client").CommandImpl<
28
+ I,
29
+ O,
30
+ SageMakerRuntimeHTTP2ClientResolvedConfig,
31
+ import("./commands").InvokeEndpointWithBidirectionalStreamCommandInput,
32
+ import("./commands").InvokeEndpointWithBidirectionalStreamCommandOutput
33
+ >;
34
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
35
+ };
36
+ export declare const _ep0: EndpointParameterInstructions;
37
+ export declare const _mw0: (
38
+ Command: any,
39
+ cs: any,
40
+ config: any,
41
+ o: any
42
+ ) => import("@smithy/types").Pluggable<any, any>[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import {
4
3
  InvokeEndpointWithBidirectionalStreamInput,
5
4
  InvokeEndpointWithBidirectionalStreamOutput,
6
5
  } from "../models/models_0";
7
- import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
8
6
  export { __MetadataBearer };
9
- export { $Command };
10
7
  export interface InvokeEndpointWithBidirectionalStreamCommandInput
11
8
  extends InvokeEndpointWithBidirectionalStreamInput {}
12
9
  export interface InvokeEndpointWithBidirectionalStreamCommandOutput
@@ -18,7 +15,7 @@ declare const InvokeEndpointWithBidirectionalStreamCommand_base: {
18
15
  ): import("@smithy/core/client").CommandImpl<
19
16
  InvokeEndpointWithBidirectionalStreamCommandInput,
20
17
  InvokeEndpointWithBidirectionalStreamCommandOutput,
21
- SageMakerRuntimeHTTP2ClientResolvedConfig,
18
+ import("..").SageMakerRuntimeHTTP2ClientResolvedConfig,
22
19
  InvokeEndpointWithBidirectionalStreamCommandInput,
23
20
  InvokeEndpointWithBidirectionalStreamCommandOutput
24
21
  >;
@@ -27,13 +24,11 @@ declare const InvokeEndpointWithBidirectionalStreamCommand_base: {
27
24
  ): import("@smithy/core/client").CommandImpl<
28
25
  InvokeEndpointWithBidirectionalStreamCommandInput,
29
26
  InvokeEndpointWithBidirectionalStreamCommandOutput,
30
- SageMakerRuntimeHTTP2ClientResolvedConfig,
27
+ import("..").SageMakerRuntimeHTTP2ClientResolvedConfig,
31
28
  InvokeEndpointWithBidirectionalStreamCommandInput,
32
29
  InvokeEndpointWithBidirectionalStreamCommandOutput
33
30
  >;
34
- getEndpointParameterInstructions(): {
35
- [x: string]: unknown;
36
- };
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
37
32
  };
38
33
  export declare class InvokeEndpointWithBidirectionalStreamCommand extends InvokeEndpointWithBidirectionalStreamCommand_base {
39
34
  protected static __types: {
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SageMakerRuntimeHTTP2ExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export { Command as $Command } from "@smithy/core/client";
7
8
  export * from "./schemas/schemas_0";
8
9
  export * from "./models/errors";
9
10
  export * from "./models/models_0";
@@ -24,7 +24,6 @@ export declare const getRuntimeConfig: (
24
24
  | import("@smithy/core/protocols").HttpHandler<any>
25
25
  | RequestHandler;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
27
- sha256: import("@smithy/types").HashConstructor;
28
27
  streamCollector: (
29
28
  stream:
30
29
  | import("stream").Readable
@@ -46,6 +45,7 @@ export declare const getRuntimeConfig: (
46
45
  [setting: string]: unknown;
47
46
  };
48
47
  apiVersion: string;
48
+ sha256: import("@smithy/types").HashConstructor;
49
49
  urlParser: import("@smithy/types").UrlParser;
50
50
  base64Decoder: import("@smithy/types").Decoder;
51
51
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -25,7 +25,6 @@ export declare const getRuntimeConfig: (
25
25
  | RequestHandler
26
26
  | import("@smithy/core/protocols").HttpHandler<any>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
- sha256: import("@smithy/types").HashConstructor;
29
28
  streamCollector: (
30
29
  stream:
31
30
  | import("stream").Readable
@@ -46,6 +45,7 @@ export declare const getRuntimeConfig: (
46
45
  [setting: string]: unknown;
47
46
  };
48
47
  apiVersion: string;
48
+ sha256: import("@smithy/types").HashConstructor;
49
49
  urlParser: import("@smithy/types").UrlParser;
50
50
  base64Decoder: import("@smithy/types").Decoder;
51
51
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ export declare const getRuntimeConfig: (
4
4
  ) => {
5
5
  runtime: string;
6
6
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler:
9
8
  | import("@smithy/types").NodeHttpHandlerOptions
10
9
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -21,6 +20,7 @@ export declare const getRuntimeConfig: (
21
20
  [setting: string]: unknown;
22
21
  };
23
22
  apiVersion: string;
23
+ sha256: import("@smithy/types").HashConstructor;
24
24
  urlParser: import("@smithy/types").UrlParser;
25
25
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
26
26
  streamCollector: (
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (
26
26
  defaultNamespace?: string;
27
27
  };
28
28
  serviceId: string;
29
+ sha256: import("@smithy/types").HashConstructor;
29
30
  urlParser: import("@smithy/types").UrlParser;
30
31
  utf8Decoder: import("@smithy/types").Decoder;
31
32
  utf8Encoder: (input: Uint8Array | string) => string;
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.1076.0",
4
+ "version": "3.1078.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -23,21 +23,19 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@aws-crypto/sha256-browser": "5.2.0",
27
- "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.24",
29
- "@aws-sdk/credential-provider-node": "^3.972.59",
30
- "@aws-sdk/eventstream-handler-node": "^3.972.23",
31
- "@aws-sdk/middleware-eventstream": "^3.972.19",
32
- "@aws-sdk/types": "^3.973.14",
33
- "@smithy/core": "^3.27.0",
34
- "@smithy/fetch-http-handler": "^5.6.0",
35
- "@smithy/node-http-handler": "^4.9.0",
36
- "@smithy/types": "^4.15.0",
26
+ "@aws-sdk/core": "^3.974.26",
27
+ "@aws-sdk/credential-provider-node": "^3.972.61",
28
+ "@aws-sdk/eventstream-handler-node": "^3.972.25",
29
+ "@aws-sdk/middleware-eventstream": "^3.972.21",
30
+ "@aws-sdk/types": "^3.973.15",
31
+ "@smithy/core": "^3.29.0",
32
+ "@smithy/fetch-http-handler": "^5.6.2",
33
+ "@smithy/node-http-handler": "^4.9.2",
34
+ "@smithy/types": "^4.15.1",
37
35
  "tslib": "^2.6.2"
38
36
  },
39
37
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.2.3",
38
+ "@smithy/snapshot-testing": "^2.2.5",
41
39
  "@tsconfig/node20": "20.1.8",
42
40
  "@types/node": "^20.14.8",
43
41
  "concurrently": "7.0.0",