@aws-sdk/client-sagemaker-inference-router-runtime 0.0.0-stage → 3.1171.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 (70) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +194 -2
  3. package/dist-cjs/index.js +643 -0
  4. package/dist-es/SageMakerInferenceRouterRuntime.js +11 -0
  5. package/dist-es/SageMakerInferenceRouterRuntimeClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/InvokeInferenceRouterAsyncCommand.js +4 -0
  10. package/dist-es/commands/InvokeInferenceRouterCommand.js +4 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/endpoint/EndpointParameters.js +13 -0
  13. package/dist-es/endpoint/bdd.js +48 -0
  14. package/dist-es/endpoint/endpointResolver.js +14 -0
  15. package/dist-es/extensionConfiguration.js +1 -0
  16. package/dist-es/index.js +8 -0
  17. package/dist-es/models/SageMakerInferenceRouterRuntimeServiceException.js +9 -0
  18. package/dist-es/models/errors.js +149 -0
  19. package/dist-es/models/models_0.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +29 -0
  21. package/dist-es/runtimeConfig.js +44 -0
  22. package/dist-es/runtimeConfig.native.js +9 -0
  23. package/dist-es/runtimeConfig.shared.js +40 -0
  24. package/dist-es/runtimeExtensions.js +9 -0
  25. package/dist-es/schemas/schemas_0.js +157 -0
  26. package/dist-types/SageMakerInferenceRouterRuntime.d.ts +30 -0
  27. package/dist-types/SageMakerInferenceRouterRuntimeClient.d.ts +189 -0
  28. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  29. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  30. package/dist-types/commandBuilder.d.ts +18 -0
  31. package/dist-types/commands/InvokeInferenceRouterAsyncCommand.d.ts +101 -0
  32. package/dist-types/commands/InvokeInferenceRouterCommand.d.ts +142 -0
  33. package/dist-types/commands/index.d.ts +2 -0
  34. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  35. package/dist-types/endpoint/bdd.d.ts +2 -0
  36. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  37. package/dist-types/extensionConfiguration.d.ts +9 -0
  38. package/dist-types/index.d.ts +16 -0
  39. package/dist-types/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +15 -0
  40. package/dist-types/models/errors.d.ts +186 -0
  41. package/dist-types/models/models_0.d.ts +160 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  43. package/dist-types/runtimeConfig.d.ts +58 -0
  44. package/dist-types/runtimeConfig.native.d.ts +56 -0
  45. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  46. package/dist-types/runtimeExtensions.d.ts +17 -0
  47. package/dist-types/schemas/schemas_0.d.ts +24 -0
  48. package/dist-types/ts3.4/SageMakerInferenceRouterRuntime.d.ts +47 -0
  49. package/dist-types/ts3.4/SageMakerInferenceRouterRuntimeClient.d.ts +117 -0
  50. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
  51. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  52. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  53. package/dist-types/ts3.4/commands/InvokeInferenceRouterAsyncCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/InvokeInferenceRouterCommand.d.ts +52 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  57. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  58. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  59. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  60. package/dist-types/ts3.4/index.d.ts +11 -0
  61. package/dist-types/ts3.4/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +10 -0
  62. package/dist-types/ts3.4/models/errors.d.ts +75 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +36 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  68. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  69. package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
  70. package/package.json +67 -4
@@ -0,0 +1,10 @@
1
+ import {
2
+ ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
+ } from "@smithy/core/client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class SageMakerInferenceRouterRuntimeServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -0,0 +1,75 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { SageMakerInferenceRouterRuntimeServiceException as __BaseException } from "./SageMakerInferenceRouterRuntimeServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ static readonly shapeId: string;
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+ Message?: string | undefined;
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
+ }
10
+ export declare class InternalDependencyException extends __BaseException {
11
+ static readonly shapeId: string;
12
+ readonly name: "InternalDependencyException";
13
+ readonly $fault: "server";
14
+ Message?: string | undefined;
15
+ constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
16
+ }
17
+ export declare class InternalFailure extends __BaseException {
18
+ static readonly shapeId: string;
19
+ readonly name: "InternalFailure";
20
+ readonly $fault: "server";
21
+ Message?: string | undefined;
22
+ constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
23
+ }
24
+ export declare class ModelError extends __BaseException {
25
+ static readonly shapeId: string;
26
+ readonly name: "ModelError";
27
+ readonly $fault: "client";
28
+ Message?: string | undefined;
29
+ OriginalStatusCode?: number | undefined;
30
+ OriginalMessage?: string | undefined;
31
+ LogStreamArn?: string | undefined;
32
+ constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
33
+ }
34
+ export declare class ModelNotReadyException extends __BaseException {
35
+ static readonly shapeId: string;
36
+ readonly name: "ModelNotReadyException";
37
+ readonly $fault: "client";
38
+ $retryable: {
39
+ throttling: boolean;
40
+ };
41
+ Message?: string | undefined;
42
+ constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
43
+ }
44
+ export declare class RequestTimeoutException extends __BaseException {
45
+ static readonly shapeId: string;
46
+ readonly name: "RequestTimeoutException";
47
+ readonly $fault: "client";
48
+ $retryable: {};
49
+ Message?: string | undefined;
50
+ constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
51
+ }
52
+ export declare class ServiceUnavailableException extends __BaseException {
53
+ static readonly shapeId: string;
54
+ readonly name: "ServiceUnavailableException";
55
+ readonly $fault: "server";
56
+ Message?: string | undefined;
57
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
58
+ }
59
+ export declare class ThrottlingException extends __BaseException {
60
+ static readonly shapeId: string;
61
+ readonly name: "ThrottlingException";
62
+ readonly $fault: "client";
63
+ $retryable: {
64
+ throttling: boolean;
65
+ };
66
+ Message?: string | undefined;
67
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
68
+ }
69
+ export declare class ValidationException extends __BaseException {
70
+ static readonly shapeId: string;
71
+ readonly name: "ValidationException";
72
+ readonly $fault: "client";
73
+ Message?: string | undefined;
74
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
75
+ }
@@ -0,0 +1,36 @@
1
+ export interface InvokeInferenceRouterInput {
2
+ InferenceRouterName: string | undefined;
3
+ RoutingTargetName: string | undefined;
4
+ ContentType?: string | undefined;
5
+ Accept?: string | undefined;
6
+ InferenceId?: string | undefined;
7
+ PrefixAwareId?: string | undefined;
8
+ CustomAttributes?: string | undefined;
9
+ Body: Uint8Array | undefined;
10
+ }
11
+ export interface InvokeInferenceRouterOutput {
12
+ Body?: Uint8Array | undefined;
13
+ ContentType?: string | undefined;
14
+ InvokedRoutedResourceArn?: string | undefined;
15
+ RoutingReason?: string | undefined;
16
+ InvokedProductionVariant?: string | undefined;
17
+ CustomAttributes?: string | undefined;
18
+ }
19
+ export interface InvokeInferenceRouterAsyncInput {
20
+ InferenceRouterName: string | undefined;
21
+ RoutingTargetName: string | undefined;
22
+ ContentType?: string | undefined;
23
+ Accept?: string | undefined;
24
+ CustomAttributes?: string | undefined;
25
+ InferenceId?: string | undefined;
26
+ InputLocation: string | undefined;
27
+ S3OutputPathExtension?: string | undefined;
28
+ Filename?: string | undefined;
29
+ RequestTTLSeconds?: number | undefined;
30
+ InvocationTimeoutSeconds?: number | undefined;
31
+ }
32
+ export interface InvokeInferenceRouterAsyncOutput {
33
+ InferenceId?: string | undefined;
34
+ OutputLocation?: string | undefined;
35
+ FailureLocation?: string | undefined;
36
+ }
@@ -0,0 +1,93 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { SageMakerInferenceRouterRuntimeClientConfig } from "./SageMakerInferenceRouterRuntimeClient";
3
+ export declare const getRuntimeConfig: (config: SageMakerInferenceRouterRuntimeClientConfig) => {
4
+ cacheMiddleware?: boolean;
5
+ endpoint?:
6
+ | ((
7
+ | string
8
+ | import("@smithy/types").Endpoint
9
+ | import("@smithy/types").EndpointV2
10
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
11
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
12
+ ) &
13
+ (
14
+ | string
15
+ | import("@smithy/types").Endpoint
16
+ | import("@smithy/types").EndpointV2
17
+ | import("@smithy/types").Provider<string>
18
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
19
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
20
+ ))
21
+ | undefined;
22
+ tls?: boolean;
23
+ ignoreConfiguredEndpointUrls?: boolean;
24
+ serviceConfiguredEndpoint?: never;
25
+ customUserAgent?: string | import("@smithy/types").UserAgent;
26
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
27
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
28
+ credentials?:
29
+ | import("@smithy/types").AwsCredentialIdentity
30
+ | import("@smithy/types").AwsCredentialIdentityProvider;
31
+ signer?:
32
+ | import("@smithy/types").RequestSigner
33
+ | ((
34
+ authScheme?: import("@smithy/types").AuthScheme,
35
+ ) => Promise<import("@smithy/types").RequestSigner>);
36
+ signingEscapePath?: boolean;
37
+ systemClockOffset?: number;
38
+ signingRegion?: string;
39
+ signerConstructor?: new (
40
+ options: import("@smithy/signature-v4").SignatureV4Init &
41
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
42
+ ) => import("@smithy/types").RequestSigner;
43
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
44
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
+ apiVersion: string;
46
+ base64Decoder: import("@smithy/types").Decoder;
47
+ base64Encoder: (_input: Uint8Array | string) => string;
48
+ disableHostPrefix: boolean;
49
+ endpointProvider: (
50
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@smithy/types").Logger;
53
+ },
54
+ ) => import("@smithy/types").EndpointV2;
55
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
56
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
57
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
58
+ logger: import("@smithy/types").Logger;
59
+ protocol:
60
+ | import("@smithy/types").$ClientProtocol<any, any>
61
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
62
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
63
+ protocolSettings: {
64
+ [setting: string]: unknown;
65
+ defaultNamespace?: string;
66
+ };
67
+ serviceId: string;
68
+ sha256: import("@smithy/types").HashConstructor;
69
+ urlParser: import("@smithy/types").UrlParser;
70
+ utf8Decoder: import("@smithy/types").Decoder;
71
+ utf8Encoder: (input: Uint8Array | string) => string;
72
+ profile?: string;
73
+ runtime: string;
74
+ defaultsMode: import("@smithy/types").Provider<
75
+ import("@smithy/core/client").ResolvedDefaultsMode
76
+ >;
77
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
78
+ credentialDefaultProvider:
79
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
80
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
81
+ defaultUserAgentProvider: (
82
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
83
+ ) => Promise<import("@smithy/types").UserAgent>;
84
+ maxAttempts: number | import("@smithy/types").Provider<number>;
85
+ region: string | import("@smithy/types").Provider<any>;
86
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
87
+ retryMode: string | import("@smithy/types").Provider<string>;
88
+ streamCollector: (
89
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
90
+ ) => Promise<Uint8Array>;
91
+ useDualstackEndpoint: boolean | (() => Promise<boolean>);
92
+ useFipsEndpoint: boolean | (() => Promise<boolean>);
93
+ };
@@ -0,0 +1,96 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { SageMakerInferenceRouterRuntimeClientConfig } from "./SageMakerInferenceRouterRuntimeClient";
3
+ export declare const getRuntimeConfig: (config: SageMakerInferenceRouterRuntimeClientConfig) => {
4
+ cacheMiddleware?: boolean;
5
+ endpoint?:
6
+ | ((
7
+ | string
8
+ | import("@smithy/types").Endpoint
9
+ | import("@smithy/types").EndpointV2
10
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
11
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
12
+ ) &
13
+ (
14
+ | string
15
+ | import("@smithy/types").Endpoint
16
+ | import("@smithy/types").EndpointV2
17
+ | import("@smithy/types").Provider<string>
18
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
19
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
20
+ ))
21
+ | undefined;
22
+ tls?: boolean;
23
+ ignoreConfiguredEndpointUrls?: boolean;
24
+ serviceConfiguredEndpoint?: never;
25
+ customUserAgent?: string | import("@smithy/types").UserAgent;
26
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
27
+ credentials?:
28
+ | import("@smithy/types").AwsCredentialIdentity
29
+ | import("@smithy/types").AwsCredentialIdentityProvider;
30
+ signer?:
31
+ | import("@smithy/types").RequestSigner
32
+ | ((
33
+ authScheme?: import("@smithy/types").AuthScheme,
34
+ ) => Promise<import("@smithy/types").RequestSigner>);
35
+ signingEscapePath?: boolean;
36
+ systemClockOffset?: number;
37
+ signingRegion?: string;
38
+ signerConstructor?: new (
39
+ options: import("@smithy/signature-v4").SignatureV4Init &
40
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
41
+ ) => import("@smithy/types").RequestSigner;
42
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
43
+ apiVersion: string;
44
+ base64Decoder: import("@smithy/types").Decoder;
45
+ base64Encoder: (_input: Uint8Array | string) => string;
46
+ disableHostPrefix: boolean;
47
+ endpointProvider: (
48
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
49
+ context?: {
50
+ logger?: import("@smithy/types").Logger;
51
+ },
52
+ ) => import("@smithy/types").EndpointV2;
53
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
54
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
55
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
56
+ logger: import("@smithy/types").Logger;
57
+ protocol:
58
+ | import("@smithy/types").$ClientProtocol<any, any>
59
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
60
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
61
+ protocolSettings: {
62
+ [setting: string]: unknown;
63
+ defaultNamespace?: string;
64
+ };
65
+ serviceId: string;
66
+ sha256: import("@smithy/types").HashConstructor;
67
+ urlParser: import("@smithy/types").UrlParser;
68
+ utf8Decoder: import("@smithy/types").Decoder;
69
+ utf8Encoder: (input: Uint8Array | string) => string;
70
+ runtime: string;
71
+ defaultsMode: import("@smithy/types").Provider<
72
+ import("@smithy/core/client").ResolvedDefaultsMode
73
+ >;
74
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
75
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
76
+ credentialDefaultProvider:
77
+ | ((
78
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
79
+ ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
80
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
81
+ defaultSocketTimeout: number | undefined;
82
+ defaultUserAgentProvider: (
83
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
84
+ ) => Promise<import("@smithy/types").UserAgent>;
85
+ maxAttempts: number | import("@smithy/types").Provider<number>;
86
+ region: string | import("@smithy/types").Provider<string>;
87
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
88
+ retryMode: string | import("@smithy/types").Provider<string>;
89
+ streamCollector: (
90
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
91
+ ) => Promise<Uint8Array>;
92
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
93
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
94
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
95
+ profile?: string;
96
+ };
@@ -0,0 +1,97 @@
1
+ import { SageMakerInferenceRouterRuntimeClientConfig } from "./SageMakerInferenceRouterRuntimeClient";
2
+ export declare const getRuntimeConfig: (config: SageMakerInferenceRouterRuntimeClientConfig) => {
3
+ cacheMiddleware?: boolean;
4
+ endpoint?:
5
+ | ((
6
+ | string
7
+ | import("@smithy/types").Endpoint
8
+ | import("@smithy/types").EndpointV2
9
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
10
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
11
+ ) &
12
+ (
13
+ | string
14
+ | import("@smithy/types").Endpoint
15
+ | import("@smithy/types").EndpointV2
16
+ | import("@smithy/types").Provider<string>
17
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
18
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
19
+ ))
20
+ | undefined;
21
+ tls?: boolean;
22
+ ignoreConfiguredEndpointUrls?: boolean;
23
+ serviceConfiguredEndpoint?: never;
24
+ customUserAgent?: string | import("@smithy/types").UserAgent;
25
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
26
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
27
+ credentials?:
28
+ | import("@smithy/types").AwsCredentialIdentity
29
+ | import("@smithy/types").AwsCredentialIdentityProvider;
30
+ signer?:
31
+ | import("@smithy/types").RequestSigner
32
+ | ((
33
+ authScheme?: import("@smithy/types").AuthScheme,
34
+ ) => Promise<import("@smithy/types").RequestSigner>);
35
+ signingEscapePath?: boolean;
36
+ systemClockOffset?: number;
37
+ signingRegion?: string;
38
+ signerConstructor?: new (
39
+ options: import("@smithy/signature-v4").SignatureV4Init &
40
+ import("@smithy/signature-v4").SignatureV4CryptoInit,
41
+ ) => import("@smithy/types").RequestSigner;
42
+ disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
43
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
+ apiVersion: string;
45
+ base64Decoder: import("@smithy/types").Decoder;
46
+ base64Encoder: (_input: Uint8Array | string) => string;
47
+ disableHostPrefix: boolean;
48
+ endpointProvider: (
49
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
50
+ context?: {
51
+ logger?: import("@smithy/types").Logger;
52
+ },
53
+ ) => import("@smithy/types").EndpointV2;
54
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
55
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
56
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
57
+ logger: import("@smithy/types").Logger;
58
+ protocol:
59
+ | import("@smithy/types").$ClientProtocol<any, any>
60
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
61
+ | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
62
+ protocolSettings: {
63
+ [setting: string]: unknown;
64
+ defaultNamespace?: string;
65
+ };
66
+ serviceId: string;
67
+ sha256: import("@smithy/types").HashConstructor;
68
+ urlParser: import("@smithy/types").UrlParser;
69
+ utf8Decoder: import("@smithy/types").Decoder;
70
+ utf8Encoder: (input: Uint8Array | string) => string;
71
+ profile?: string;
72
+ defaultsMode:
73
+ | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>
74
+ | import("@smithy/core/client").DefaultsMode;
75
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
76
+ credentialDefaultProvider:
77
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
78
+ | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
79
+ defaultUserAgentProvider: (
80
+ config?: import("@aws-sdk/core/client").PreviouslyResolved,
81
+ ) => Promise<import("@smithy/types").UserAgent>;
82
+ maxAttempts: number | import("@smithy/types").Provider<number>;
83
+ region: string | import("@smithy/types").Provider<any>;
84
+ requestHandler:
85
+ | import("@smithy/fetch-http-handler").FetchHttpHandler
86
+ | import("@smithy/types").FetchHttpHandlerOptions
87
+ | import("@smithy/types").NodeHttpHandlerOptions
88
+ | Record<string, unknown>
89
+ | import("@smithy/core/protocols").HttpHandler<any>;
90
+ retryMode: string | import("@smithy/types").Provider<string>;
91
+ streamCollector: (
92
+ stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
93
+ ) => Promise<Uint8Array>;
94
+ useDualstackEndpoint: boolean | (() => Promise<boolean>);
95
+ useFipsEndpoint: boolean | (() => Promise<boolean>);
96
+ runtime: string;
97
+ };
@@ -0,0 +1,31 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import { SageMakerInferenceRouterRuntimeClientConfig } from "./SageMakerInferenceRouterRuntimeClient";
3
+ export declare const getRuntimeConfig: (config: SageMakerInferenceRouterRuntimeClientConfig) => {
4
+ apiVersion: string;
5
+ base64Decoder: import("@smithy/types").Decoder;
6
+ base64Encoder: (_input: Uint8Array | string) => string;
7
+ disableHostPrefix: boolean;
8
+ endpointProvider: (
9
+ params: import("./endpoint/EndpointParameters").EndpointParameters,
10
+ context?: {
11
+ logger?: import("@smithy/types").Logger;
12
+ },
13
+ ) => import("@smithy/types").EndpointV2;
14
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
15
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
16
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
+ logger: import("@smithy/types").Logger;
18
+ protocol:
19
+ | import("@smithy/types").$ClientProtocol<any, any>
20
+ | import("@smithy/types").$ClientProtocolCtor<any, any>
21
+ | typeof AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ [setting: string]: unknown;
24
+ defaultNamespace?: string;
25
+ };
26
+ serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
28
+ urlParser: import("@smithy/types").UrlParser;
29
+ utf8Decoder: import("@smithy/types").Decoder;
30
+ utf8Encoder: (input: Uint8Array | string) => string;
31
+ };
@@ -0,0 +1,11 @@
1
+ import { SageMakerInferenceRouterRuntimeExtensionConfiguration } from "./extensionConfiguration";
2
+ export interface RuntimeExtension {
3
+ configure(extensionConfiguration: SageMakerInferenceRouterRuntimeExtensionConfiguration): void;
4
+ }
5
+ export interface RuntimeExtensionsConfig {
6
+ extensions: RuntimeExtension[];
7
+ }
8
+ export declare const resolveRuntimeExtensions: (
9
+ runtimeConfig: any,
10
+ extensions: RuntimeExtension[],
11
+ ) => any;
@@ -0,0 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
2
+ import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SageMakerInferenceRouterRuntimeServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalDependencyException$: StaticErrorSchema;
6
+ export declare var InternalFailure$: StaticErrorSchema;
7
+ export declare var ModelError$: StaticErrorSchema;
8
+ export declare var ModelNotReadyException$: StaticErrorSchema;
9
+ export declare var RequestTimeoutException$: StaticErrorSchema;
10
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
11
+ export declare var ThrottlingException$: StaticErrorSchema;
12
+ export declare var ValidationException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
14
+ export declare var InvokeInferenceRouterAsyncInput$: StaticStructureSchema;
15
+ export declare var InvokeInferenceRouterAsyncOutput$: StaticStructureSchema;
16
+ export declare var InvokeInferenceRouterInput$: StaticStructureSchema;
17
+ export declare var InvokeInferenceRouterOutput$: StaticStructureSchema;
18
+ export declare var InvokeInferenceRouter$: StaticOperationSchema;
19
+ export declare var InvokeInferenceRouterAsync$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-inference-router-runtime",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "3.1171.0",
4
+ "description": "AWS SDK for JavaScript Sagemaker Inference Router Runtime Client for Node.js, Browser and React Native",
5
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-inference-router-runtime",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
14
+ "directory": "clients/client-sagemaker-inference-router-runtime"
15
+ },
16
+ "files": [
17
+ "dist-*/**"
18
+ ],
19
+ "sideEffects": false,
20
+ "main": "./dist-cjs/index.js",
21
+ "module": "./dist-es/index.js",
22
+ "browser": {
23
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
24
+ },
25
+ "types": "./dist-types/index.d.ts",
26
+ "typesVersions": {
27
+ "<4.5": {
28
+ "dist-types/*": [
29
+ "dist-types/ts3.4/*"
30
+ ]
31
+ }
32
+ },
33
+ "react-native": {
34
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
35
+ },
36
+ "scripts": {
37
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
38
+ "build:cjs": "node ../../scripts/compilation/inline",
39
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
40
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
41
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
42
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
43
+ "clean": "premove dist-cjs dist-es dist-types",
44
+ "extract:docs": "api-extractor run --local",
45
+ "generate:client": "node ../../scripts/generate-clients/single-service",
46
+ "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
+ },
48
+ "dependencies": {
49
+ "@aws-sdk/core": "^3.981.0",
50
+ "@aws-sdk/credential-provider-node": "^3.972.97",
51
+ "@aws-sdk/types": "^3.975.1",
52
+ "@smithy/core": "^3.40.0",
53
+ "@smithy/fetch-http-handler": "^5.8.1",
54
+ "@smithy/node-http-handler": "^4.14.2",
55
+ "@smithy/types": "^4.20.0",
56
+ "tslib": "^2.6.2"
57
+ },
58
+ "devDependencies": {
59
+ "@tsconfig/node20": "20.1.8",
60
+ "@types/node": "^20.14.8",
61
+ "concurrently": "7.0.0",
62
+ "downlevel-dts": "0.10.1",
63
+ "premove": "4.0.0",
64
+ "typescript": "~7.0.2"
65
+ },
66
+ "engines": {
67
+ "node": ">=20.0.0"
68
+ }
69
+ }