@aws-sdk/client-sagemaker-runtime-http2 3.938.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.
Files changed (71) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +219 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +537 -0
  7. package/dist-cjs/runtimeConfig.browser.js +43 -0
  8. package/dist-cjs/runtimeConfig.js +60 -0
  9. package/dist-cjs/runtimeConfig.native.js +18 -0
  10. package/dist-cjs/runtimeConfig.shared.js +36 -0
  11. package/dist-es/SageMakerRuntimeHTTP2.js +9 -0
  12. package/dist-es/SageMakerRuntimeHTTP2Client.js +54 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/InvokeEndpointWithBidirectionalStreamCommand.js +22 -0
  16. package/dist-es/commands/index.js +1 -0
  17. package/dist-es/endpoint/EndpointParameters.js +13 -0
  18. package/dist-es/endpoint/endpointResolver.js +14 -0
  19. package/dist-es/endpoint/ruleset.js +4 -0
  20. package/dist-es/extensionConfiguration.js +1 -0
  21. package/dist-es/index.js +5 -0
  22. package/dist-es/models/SageMakerRuntimeHTTP2ServiceException.js +8 -0
  23. package/dist-es/models/errors.js +101 -0
  24. package/dist-es/models/models_0.js +1 -0
  25. package/dist-es/runtimeConfig.browser.js +38 -0
  26. package/dist-es/runtimeConfig.js +55 -0
  27. package/dist-es/runtimeConfig.native.js +14 -0
  28. package/dist-es/runtimeConfig.shared.js +32 -0
  29. package/dist-es/runtimeExtensions.js +9 -0
  30. package/dist-es/schemas/schemas_0.js +273 -0
  31. package/dist-types/SageMakerRuntimeHTTP2.d.ts +17 -0
  32. package/dist-types/SageMakerRuntimeHTTP2Client.d.ts +209 -0
  33. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  34. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  35. package/dist-types/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +118 -0
  36. package/dist-types/commands/index.d.ts +1 -0
  37. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  38. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  39. package/dist-types/endpoint/ruleset.d.ts +2 -0
  40. package/dist-types/extensionConfiguration.d.ts +9 -0
  41. package/dist-types/index.d.ts +14 -0
  42. package/dist-types/models/SageMakerRuntimeHTTP2ServiceException.d.ts +14 -0
  43. package/dist-types/models/errors.d.ts +144 -0
  44. package/dist-types/models/models_0.d.ts +190 -0
  45. package/dist-types/runtimeConfig.browser.d.ts +53 -0
  46. package/dist-types/runtimeConfig.d.ts +53 -0
  47. package/dist-types/runtimeConfig.native.d.ts +52 -0
  48. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  49. package/dist-types/runtimeExtensions.d.ts +17 -0
  50. package/dist-types/schemas/schemas_0.d.ts +16 -0
  51. package/dist-types/ts3.4/SageMakerRuntimeHTTP2.d.ts +30 -0
  52. package/dist-types/ts3.4/SageMakerRuntimeHTTP2Client.d.ts +148 -0
  53. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  54. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  55. package/dist-types/ts3.4/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +47 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  58. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  59. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  60. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  61. package/dist-types/ts3.4/index.d.ts +9 -0
  62. package/dist-types/ts3.4/models/SageMakerRuntimeHTTP2ServiceException.d.ts +9 -0
  63. package/dist-types/ts3.4/models/errors.d.ts +54 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  69. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  70. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  71. package/package.json +104 -0
@@ -0,0 +1,52 @@
1
+ import { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfig) => {
6
+ runtime: string;
7
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
8
+ sha256: import("@smithy/types").HashConstructor;
9
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
10
+ apiVersion: string;
11
+ cacheMiddleware?: boolean;
12
+ urlParser: import("@smithy/types").UrlParser;
13
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
+ streamCollector: import("@smithy/types").StreamCollector;
15
+ base64Decoder: import("@smithy/types").Decoder;
16
+ base64Encoder: (_input: Uint8Array | string) => string;
17
+ utf8Decoder: import("@smithy/types").Decoder;
18
+ utf8Encoder: (input: Uint8Array | string) => string;
19
+ disableHostPrefix: boolean;
20
+ serviceId: string;
21
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
22
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
23
+ region: string | import("@smithy/types").Provider<any>;
24
+ profile?: string;
25
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
26
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
27
+ maxAttempts: number | import("@smithy/types").Provider<number>;
28
+ retryMode: string | import("@smithy/types").Provider<string>;
29
+ logger: import("@smithy/types").Logger;
30
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
31
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
33
+ defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
34
+ customUserAgent?: string | import("@smithy/types").UserAgent;
35
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
+ 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;
38
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
39
+ logger?: import("@smithy/types").Logger;
40
+ }) => import("@smithy/types").EndpointV2;
41
+ tls?: boolean;
42
+ serviceConfiguredEndpoint?: never;
43
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
45
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
46
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
47
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
48
+ signingEscapePath?: boolean;
49
+ systemClockOffset?: number;
50
+ signingRegion?: string;
51
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
52
+ };
@@ -0,0 +1,22 @@
1
+ import { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2Client";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfig) => {
6
+ apiVersion: string;
7
+ base64Decoder: import("@smithy/types").Decoder;
8
+ base64Encoder: (_input: Uint8Array | string) => string;
9
+ disableHostPrefix: boolean;
10
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
+ logger?: import("@smithy/types").Logger;
12
+ }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
+ logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
+ serviceId: string;
19
+ urlParser: import("@smithy/types").UrlParser;
20
+ utf8Decoder: import("@smithy/types").Decoder;
21
+ utf8Encoder: (input: Uint8Array | string) => string;
22
+ };
@@ -0,0 +1,17 @@
1
+ import { SageMakerRuntimeHTTP2ExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: SageMakerRuntimeHTTP2ExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,16 @@
1
+ import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var SensitiveBlob: StaticSimpleSchema;
3
+ export declare var InputValidationError: StaticErrorSchema;
4
+ export declare var InternalServerError: StaticErrorSchema;
5
+ export declare var InternalStreamFailure: StaticErrorSchema;
6
+ export declare var InvokeEndpointWithBidirectionalStreamInput: StaticStructureSchema;
7
+ export declare var InvokeEndpointWithBidirectionalStreamOutput: StaticStructureSchema;
8
+ export declare var ModelError: StaticErrorSchema;
9
+ export declare var ModelStreamError: StaticErrorSchema;
10
+ export declare var RequestPayloadPart: StaticStructureSchema;
11
+ export declare var ResponsePayloadPart: StaticStructureSchema;
12
+ export declare var ServiceUnavailableError: StaticErrorSchema;
13
+ export declare var SageMakerRuntimeHTTP2ServiceException: StaticErrorSchema;
14
+ export declare var RequestStreamEvent: StaticStructureSchema;
15
+ export declare var ResponseStreamEvent: StaticStructureSchema;
16
+ export declare var InvokeEndpointWithBidirectionalStream: StaticOperationSchema;
@@ -0,0 +1,30 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ InvokeEndpointWithBidirectionalStreamCommandInput,
4
+ InvokeEndpointWithBidirectionalStreamCommandOutput,
5
+ } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
6
+ import { SageMakerRuntimeHTTP2Client } from "./SageMakerRuntimeHTTP2Client";
7
+ export interface SageMakerRuntimeHTTP2 {
8
+ invokeEndpointWithBidirectionalStream(
9
+ args: InvokeEndpointWithBidirectionalStreamCommandInput,
10
+ options?: __HttpHandlerOptions
11
+ ): Promise<InvokeEndpointWithBidirectionalStreamCommandOutput>;
12
+ invokeEndpointWithBidirectionalStream(
13
+ args: InvokeEndpointWithBidirectionalStreamCommandInput,
14
+ cb: (
15
+ err: any,
16
+ data?: InvokeEndpointWithBidirectionalStreamCommandOutput
17
+ ) => void
18
+ ): void;
19
+ invokeEndpointWithBidirectionalStream(
20
+ args: InvokeEndpointWithBidirectionalStreamCommandInput,
21
+ options: __HttpHandlerOptions,
22
+ cb: (
23
+ err: any,
24
+ data?: InvokeEndpointWithBidirectionalStreamCommandOutput
25
+ ) => void
26
+ ): void;
27
+ }
28
+ export declare class SageMakerRuntimeHTTP2
29
+ extends SageMakerRuntimeHTTP2Client
30
+ implements SageMakerRuntimeHTTP2 {}
@@ -0,0 +1,148 @@
1
+ import {
2
+ EventStreamInputConfig,
3
+ EventStreamResolvedConfig,
4
+ } from "@aws-sdk/middleware-eventstream";
5
+ import {
6
+ HostHeaderInputConfig,
7
+ HostHeaderResolvedConfig,
8
+ } from "@aws-sdk/middleware-host-header";
9
+ import {
10
+ UserAgentInputConfig,
11
+ UserAgentResolvedConfig,
12
+ } from "@aws-sdk/middleware-user-agent";
13
+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
14
+ import {
15
+ RegionInputConfig,
16
+ RegionResolvedConfig,
17
+ } from "@smithy/config-resolver";
18
+ import {
19
+ EventStreamSerdeInputConfig,
20
+ EventStreamSerdeResolvedConfig,
21
+ } from "@smithy/eventstream-serde-config-resolver";
22
+ import {
23
+ EndpointInputConfig,
24
+ EndpointResolvedConfig,
25
+ } from "@smithy/middleware-endpoint";
26
+ import {
27
+ RetryInputConfig,
28
+ RetryResolvedConfig,
29
+ } from "@smithy/middleware-retry";
30
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
31
+ import {
32
+ Client as __Client,
33
+ DefaultsMode as __DefaultsMode,
34
+ SmithyConfiguration as __SmithyConfiguration,
35
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
36
+ } from "@smithy/smithy-client";
37
+ import {
38
+ AwsCredentialIdentityProvider,
39
+ BodyLengthCalculator as __BodyLengthCalculator,
40
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
41
+ ChecksumConstructor as __ChecksumConstructor,
42
+ ClientProtocol,
43
+ Decoder as __Decoder,
44
+ Encoder as __Encoder,
45
+ EventStreamSerdeProvider as __EventStreamSerdeProvider,
46
+ HashConstructor as __HashConstructor,
47
+ HttpHandlerOptions as __HttpHandlerOptions,
48
+ HttpRequest,
49
+ HttpResponse,
50
+ Logger as __Logger,
51
+ Provider as __Provider,
52
+ Provider,
53
+ StreamCollector as __StreamCollector,
54
+ UrlParser as __UrlParser,
55
+ UserAgent as __UserAgent,
56
+ } from "@smithy/types";
57
+ import {
58
+ HttpAuthSchemeInputConfig,
59
+ HttpAuthSchemeResolvedConfig,
60
+ } from "./auth/httpAuthSchemeProvider";
61
+ import {
62
+ InvokeEndpointWithBidirectionalStreamCommandInput,
63
+ InvokeEndpointWithBidirectionalStreamCommandOutput,
64
+ } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
65
+ import {
66
+ ClientInputEndpointParameters,
67
+ ClientResolvedEndpointParameters,
68
+ EndpointParameters,
69
+ } from "./endpoint/EndpointParameters";
70
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
71
+ export { __Client };
72
+ export type ServiceInputTypes =
73
+ InvokeEndpointWithBidirectionalStreamCommandInput;
74
+ export type ServiceOutputTypes =
75
+ InvokeEndpointWithBidirectionalStreamCommandOutput;
76
+ export interface ClientDefaults
77
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
78
+ requestHandler?: __HttpHandlerUserInput;
79
+ sha256?: __ChecksumConstructor | __HashConstructor;
80
+ urlParser?: __UrlParser;
81
+ bodyLengthChecker?: __BodyLengthCalculator;
82
+ streamCollector?: __StreamCollector;
83
+ base64Decoder?: __Decoder;
84
+ base64Encoder?: __Encoder;
85
+ utf8Decoder?: __Decoder;
86
+ utf8Encoder?: __Encoder;
87
+ runtime?: string;
88
+ disableHostPrefix?: boolean;
89
+ serviceId?: string;
90
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
91
+ useFipsEndpoint?: boolean | __Provider<boolean>;
92
+ region?: string | __Provider<string>;
93
+ profile?: string;
94
+ defaultUserAgentProvider?: Provider<__UserAgent>;
95
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
96
+ maxAttempts?: number | __Provider<number>;
97
+ retryMode?: string | __Provider<string>;
98
+ logger?: __Logger;
99
+ extensions?: RuntimeExtension[];
100
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
101
+ eventStreamSerdeProvider?: __EventStreamSerdeProvider;
102
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
103
+ eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
104
+ }
105
+ export type SageMakerRuntimeHTTP2ClientConfigType = Partial<
106
+ __SmithyConfiguration<__HttpHandlerOptions>
107
+ > &
108
+ ClientDefaults &
109
+ UserAgentInputConfig &
110
+ RetryInputConfig &
111
+ RegionInputConfig &
112
+ HostHeaderInputConfig &
113
+ EndpointInputConfig<EndpointParameters> &
114
+ EventStreamSerdeInputConfig &
115
+ HttpAuthSchemeInputConfig &
116
+ EventStreamInputConfig &
117
+ ClientInputEndpointParameters;
118
+ export interface SageMakerRuntimeHTTP2ClientConfig
119
+ extends SageMakerRuntimeHTTP2ClientConfigType {}
120
+ export type SageMakerRuntimeHTTP2ClientResolvedConfigType =
121
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
122
+ Required<ClientDefaults> &
123
+ RuntimeExtensionsConfig &
124
+ UserAgentResolvedConfig &
125
+ RetryResolvedConfig &
126
+ RegionResolvedConfig &
127
+ HostHeaderResolvedConfig &
128
+ EndpointResolvedConfig<EndpointParameters> &
129
+ EventStreamSerdeResolvedConfig &
130
+ HttpAuthSchemeResolvedConfig &
131
+ EventStreamResolvedConfig &
132
+ ClientResolvedEndpointParameters;
133
+ export interface SageMakerRuntimeHTTP2ClientResolvedConfig
134
+ extends SageMakerRuntimeHTTP2ClientResolvedConfigType {}
135
+ export declare class SageMakerRuntimeHTTP2Client extends __Client<
136
+ __HttpHandlerOptions,
137
+ ServiceInputTypes,
138
+ ServiceOutputTypes,
139
+ SageMakerRuntimeHTTP2ClientResolvedConfig
140
+ > {
141
+ readonly config: SageMakerRuntimeHTTP2ClientResolvedConfig;
142
+ constructor(
143
+ ...[
144
+ configuration,
145
+ ]: __CheckOptionalClientConfig<SageMakerRuntimeHTTP2ClientConfig>
146
+ );
147
+ destroy(): void;
148
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { SageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,47 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ Provider,
13
+ } from "@smithy/types";
14
+ import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
15
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeParameters
16
+ extends HttpAuthSchemeParameters {
17
+ region?: string;
18
+ }
19
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider
20
+ extends HttpAuthSchemeParametersProvider<
21
+ SageMakerRuntimeHTTP2ClientResolvedConfig,
22
+ HandlerExecutionContext,
23
+ SageMakerRuntimeHTTP2HttpAuthSchemeParameters,
24
+ object
25
+ > {}
26
+ export declare const defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider: (
27
+ config: SageMakerRuntimeHTTP2ClientResolvedConfig,
28
+ context: HandlerExecutionContext,
29
+ input: object
30
+ ) => Promise<SageMakerRuntimeHTTP2HttpAuthSchemeParameters>;
31
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeProvider
32
+ extends HttpAuthSchemeProvider<SageMakerRuntimeHTTP2HttpAuthSchemeParameters> {}
33
+ export declare const defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
34
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
35
+ authSchemePreference?: string[] | Provider<string[]>;
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ httpAuthSchemeProvider?: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
38
+ }
39
+ export interface HttpAuthSchemeResolvedConfig
40
+ extends AwsSdkSigV4AuthResolvedConfig {
41
+ readonly authSchemePreference: Provider<string[]>;
42
+ readonly httpAuthSchemes: HttpAuthScheme[];
43
+ readonly httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
44
+ }
45
+ export declare const resolveHttpAuthSchemeConfig: <T>(
46
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
47
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ InvokeEndpointWithBidirectionalStreamInput,
5
+ InvokeEndpointWithBidirectionalStreamOutput,
6
+ } from "../models/models_0";
7
+ import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
8
+ export { __MetadataBearer };
9
+ export { $Command };
10
+ export interface InvokeEndpointWithBidirectionalStreamCommandInput
11
+ extends InvokeEndpointWithBidirectionalStreamInput {}
12
+ export interface InvokeEndpointWithBidirectionalStreamCommandOutput
13
+ extends InvokeEndpointWithBidirectionalStreamOutput,
14
+ __MetadataBearer {}
15
+ declare const InvokeEndpointWithBidirectionalStreamCommand_base: {
16
+ new (
17
+ input: InvokeEndpointWithBidirectionalStreamCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ InvokeEndpointWithBidirectionalStreamCommandInput,
20
+ InvokeEndpointWithBidirectionalStreamCommandOutput,
21
+ SageMakerRuntimeHTTP2ClientResolvedConfig,
22
+ InvokeEndpointWithBidirectionalStreamCommandInput,
23
+ InvokeEndpointWithBidirectionalStreamCommandOutput
24
+ >;
25
+ new (
26
+ input: InvokeEndpointWithBidirectionalStreamCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ InvokeEndpointWithBidirectionalStreamCommandInput,
29
+ InvokeEndpointWithBidirectionalStreamCommandOutput,
30
+ SageMakerRuntimeHTTP2ClientResolvedConfig,
31
+ InvokeEndpointWithBidirectionalStreamCommandInput,
32
+ InvokeEndpointWithBidirectionalStreamCommandOutput
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class InvokeEndpointWithBidirectionalStreamCommand extends InvokeEndpointWithBidirectionalStreamCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: InvokeEndpointWithBidirectionalStreamInput;
40
+ output: InvokeEndpointWithBidirectionalStreamOutput;
41
+ };
42
+ sdk: {
43
+ input: InvokeEndpointWithBidirectionalStreamCommandInput;
44
+ output: InvokeEndpointWithBidirectionalStreamCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1 @@
1
+ export * from "./InvokeEndpointWithBidirectionalStreamCommand";
@@ -0,0 +1,51 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
10
+ endpoint?:
11
+ | string
12
+ | Provider<string>
13
+ | Endpoint
14
+ | Provider<Endpoint>
15
+ | EndpointV2
16
+ | Provider<EndpointV2>;
17
+ region?: string | undefined | Provider<string | undefined>;
18
+ }
19
+ export type ClientResolvedEndpointParameters = Pick<
20
+ ClientInputEndpointParameters,
21
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
22
+ > & {
23
+ defaultSigningName: string;
24
+ };
25
+ export declare const resolveClientEndpointParameters: <T>(
26
+ options: T & ClientInputEndpointParameters
27
+ ) => T & ClientResolvedEndpointParameters;
28
+ export declare const commonParams: {
29
+ readonly UseFIPS: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "useFipsEndpoint";
32
+ };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
37
+ readonly Region: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "region";
40
+ };
41
+ readonly UseDualStack: {
42
+ readonly type: "builtInParams";
43
+ readonly name: "useDualstackEndpoint";
44
+ };
45
+ };
46
+ export interface EndpointParameters extends __EndpointParameters {
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ Region?: string | undefined;
51
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
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";
5
+ export interface SageMakerRuntimeHTTP2ExtensionConfiguration
6
+ extends HttpHandlerExtensionConfiguration,
7
+ DefaultExtensionConfiguration,
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -0,0 +1,9 @@
1
+ export * from "./SageMakerRuntimeHTTP2Client";
2
+ export * from "./SageMakerRuntimeHTTP2";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { SageMakerRuntimeHTTP2ExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
9
+ export { SageMakerRuntimeHTTP2ServiceException } from "./models/SageMakerRuntimeHTTP2ServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class SageMakerRuntimeHTTP2ServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1,54 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SageMakerRuntimeHTTP2ServiceException as __BaseException } from "./SageMakerRuntimeHTTP2ServiceException";
3
+ export declare class InputValidationError extends __BaseException {
4
+ readonly name: "InputValidationError";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ ErrorCode?: string | undefined;
8
+ constructor(
9
+ opts: __ExceptionOptionType<InputValidationError, __BaseException>
10
+ );
11
+ }
12
+ export declare class InternalServerError extends __BaseException {
13
+ readonly name: "InternalServerError";
14
+ readonly $fault: "server";
15
+ Message?: string | undefined;
16
+ ErrorCode?: string | undefined;
17
+ constructor(
18
+ opts: __ExceptionOptionType<InternalServerError, __BaseException>
19
+ );
20
+ }
21
+ export declare class InternalStreamFailure extends __BaseException {
22
+ readonly name: "InternalStreamFailure";
23
+ readonly $fault: "server";
24
+ Message?: string | undefined;
25
+ constructor(
26
+ opts: __ExceptionOptionType<InternalStreamFailure, __BaseException>
27
+ );
28
+ }
29
+ export declare class ModelStreamError extends __BaseException {
30
+ readonly name: "ModelStreamError";
31
+ readonly $fault: "client";
32
+ Message?: string | undefined;
33
+ ErrorCode?: string | undefined;
34
+ constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
35
+ }
36
+ export declare class ModelError extends __BaseException {
37
+ readonly name: "ModelError";
38
+ readonly $fault: "client";
39
+ Message?: string | undefined;
40
+ OriginalStatusCode?: number | undefined;
41
+ OriginalMessage?: string | undefined;
42
+ LogStreamArn?: string | undefined;
43
+ ErrorCode?: string | undefined;
44
+ constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
45
+ }
46
+ export declare class ServiceUnavailableError extends __BaseException {
47
+ readonly name: "ServiceUnavailableError";
48
+ readonly $fault: "server";
49
+ Message?: string | undefined;
50
+ ErrorCode?: string | undefined;
51
+ constructor(
52
+ opts: __ExceptionOptionType<ServiceUnavailableError, __BaseException>
53
+ );
54
+ }
@@ -0,0 +1,78 @@
1
+ import { InternalStreamFailure, ModelStreamError } from "./errors";
2
+ export interface RequestPayloadPart {
3
+ Bytes?: Uint8Array | undefined;
4
+ DataType?: string | undefined;
5
+ CompletionState?: string | undefined;
6
+ P?: string | undefined;
7
+ }
8
+ export type RequestStreamEvent =
9
+ | RequestStreamEvent.PayloadPartMember
10
+ | RequestStreamEvent.$UnknownMember;
11
+ export declare namespace RequestStreamEvent {
12
+ interface PayloadPartMember {
13
+ PayloadPart: RequestPayloadPart;
14
+ $unknown?: never;
15
+ }
16
+ interface $UnknownMember {
17
+ PayloadPart?: never;
18
+ $unknown: [string, any];
19
+ }
20
+ interface Visitor<T> {
21
+ PayloadPart: (value: RequestPayloadPart) => T;
22
+ _: (name: string, value: any) => T;
23
+ }
24
+ }
25
+ export interface InvokeEndpointWithBidirectionalStreamInput {
26
+ EndpointName: string | undefined;
27
+ Body: AsyncIterable<RequestStreamEvent> | undefined;
28
+ TargetVariant?: string | undefined;
29
+ ModelInvocationPath?: string | undefined;
30
+ ModelQueryString?: string | undefined;
31
+ }
32
+ export interface ResponsePayloadPart {
33
+ Bytes?: Uint8Array | undefined;
34
+ DataType?: string | undefined;
35
+ CompletionState?: string | undefined;
36
+ P?: string | undefined;
37
+ }
38
+ export type ResponseStreamEvent =
39
+ | ResponseStreamEvent.InternalStreamFailureMember
40
+ | ResponseStreamEvent.ModelStreamErrorMember
41
+ | ResponseStreamEvent.PayloadPartMember
42
+ | ResponseStreamEvent.$UnknownMember;
43
+ export declare namespace ResponseStreamEvent {
44
+ interface PayloadPartMember {
45
+ PayloadPart: ResponsePayloadPart;
46
+ ModelStreamError?: never;
47
+ InternalStreamFailure?: never;
48
+ $unknown?: never;
49
+ }
50
+ interface ModelStreamErrorMember {
51
+ PayloadPart?: never;
52
+ ModelStreamError: ModelStreamError;
53
+ InternalStreamFailure?: never;
54
+ $unknown?: never;
55
+ }
56
+ interface InternalStreamFailureMember {
57
+ PayloadPart?: never;
58
+ ModelStreamError?: never;
59
+ InternalStreamFailure: InternalStreamFailure;
60
+ $unknown?: never;
61
+ }
62
+ interface $UnknownMember {
63
+ PayloadPart?: never;
64
+ ModelStreamError?: never;
65
+ InternalStreamFailure?: never;
66
+ $unknown: [string, any];
67
+ }
68
+ interface Visitor<T> {
69
+ PayloadPart: (value: ResponsePayloadPart) => T;
70
+ ModelStreamError: (value: ModelStreamError) => T;
71
+ InternalStreamFailure: (value: InternalStreamFailure) => T;
72
+ _: (name: string, value: any) => T;
73
+ }
74
+ }
75
+ export interface InvokeEndpointWithBidirectionalStreamOutput {
76
+ Body: AsyncIterable<ResponseStreamEvent> | undefined;
77
+ InvokedProductionVariant?: string | undefined;
78
+ }