@aws-sdk/client-sagemaker-runtime 3.34.0 → 3.37.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 (106) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SageMakerRuntime.js +1 -5
  3. package/{dist/cjs → dist-cjs}/SageMakerRuntimeClient.js +8 -17
  4. package/dist-cjs/commands/InvokeEndpointAsyncCommand.js +36 -0
  5. package/dist-cjs/commands/InvokeEndpointCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  7. package/{dist/cjs → dist-cjs}/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -25
  10. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  15. package/{dist/es → dist-es}/SageMakerRuntime.js +1 -2
  16. package/{dist/es → dist-es}/SageMakerRuntimeClient.js +1 -2
  17. package/{dist/es → dist-es}/commands/InvokeEndpointAsyncCommand.js +2 -3
  18. package/{dist/es → dist-es}/commands/InvokeEndpointCommand.js +2 -3
  19. package/{dist/es → dist-es}/endpoints.js +1 -2
  20. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  21. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  22. package/{dist/es → dist-es}/models/models_0.js +0 -1
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  28. package/{dist/types → dist-types}/SageMakerRuntime.d.ts +2 -2
  29. package/{dist/types → dist-types}/SageMakerRuntimeClient.d.ts +3 -3
  30. package/{dist/types → dist-types}/commands/InvokeEndpointAsyncCommand.d.ts +3 -3
  31. package/{dist/types → dist-types}/commands/InvokeEndpointCommand.d.ts +3 -3
  32. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  33. package/{index.ts → dist-types/index.d.ts} +0 -0
  34. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  35. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  36. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  37. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  38. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  39. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  40. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  41. package/dist-types/ts3.4/SageMakerRuntime.d.ts +15 -0
  42. package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +69 -0
  43. package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +17 -0
  45. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  46. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +115 -0
  49. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  50. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  51. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  52. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  53. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  54. package/package.json +45 -42
  55. package/SageMakerRuntime.ts +0 -116
  56. package/SageMakerRuntimeClient.ts +0 -240
  57. package/commands/InvokeEndpointAsyncCommand.ts +0 -110
  58. package/commands/InvokeEndpointCommand.ts +0 -113
  59. package/dist/cjs/SageMakerRuntime.js.map +0 -1
  60. package/dist/cjs/SageMakerRuntimeClient.js.map +0 -1
  61. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js +0 -77
  62. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  63. package/dist/cjs/commands/InvokeEndpointCommand.js +0 -80
  64. package/dist/cjs/commands/InvokeEndpointCommand.js.map +0 -1
  65. package/dist/cjs/endpoints.js.map +0 -1
  66. package/dist/cjs/index.js.map +0 -1
  67. package/dist/cjs/models/index.js.map +0 -1
  68. package/dist/cjs/models/models_0.js.map +0 -1
  69. package/dist/cjs/package.json +0 -91
  70. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  71. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  72. package/dist/cjs/runtimeConfig.js.map +0 -1
  73. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  74. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  75. package/dist/es/SageMakerRuntime.js.map +0 -1
  76. package/dist/es/SageMakerRuntimeClient.js.map +0 -1
  77. package/dist/es/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  78. package/dist/es/commands/InvokeEndpointCommand.js.map +0 -1
  79. package/dist/es/endpoints.js.map +0 -1
  80. package/dist/es/index.js +0 -6
  81. package/dist/es/index.js.map +0 -1
  82. package/dist/es/models/index.js +0 -2
  83. package/dist/es/models/index.js.map +0 -1
  84. package/dist/es/models/models_0.js.map +0 -1
  85. package/dist/es/package.json +0 -91
  86. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  87. package/dist/es/runtimeConfig.browser.js.map +0 -1
  88. package/dist/es/runtimeConfig.js.map +0 -1
  89. package/dist/es/runtimeConfig.native.js.map +0 -1
  90. package/dist/es/runtimeConfig.shared.js.map +0 -1
  91. package/dist/types/ts3.4/SageMakerRuntime.d.ts +0 -56
  92. package/dist/types/ts3.4/SageMakerRuntimeClient.d.ts +0 -134
  93. package/dist/types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +0 -51
  94. package/dist/types/ts3.4/commands/InvokeEndpointCommand.d.ts +0 -54
  95. package/dist/types/ts3.4/models/models_0.d.ts +0 -253
  96. package/endpoints.ts +0 -82
  97. package/jest.config.js +0 -4
  98. package/models/models_0.ts +0 -311
  99. package/protocols/Aws_restJson1.ts +0 -418
  100. package/runtimeConfig.browser.ts +0 -40
  101. package/runtimeConfig.native.ts +0 -16
  102. package/runtimeConfig.shared.ts +0 -16
  103. package/runtimeConfig.ts +0 -45
  104. package/tsconfig.es.json +0 -10
  105. package/tsconfig.json +0 -31
  106. package/tsconfig.types.json +0 -8
@@ -1,7 +1,7 @@
1
- import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "../commands/InvokeEndpointAsyncCommand";
2
- import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../commands/InvokeEndpointCommand";
3
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "../commands/InvokeEndpointAsyncCommand";
4
+ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../commands/InvokeEndpointCommand";
5
5
  export declare const serializeAws_restJson1InvokeEndpointCommand: (input: InvokeEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
6
  export declare const serializeAws_restJson1InvokeEndpointAsyncCommand: (input: InvokeEndpointAsyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const deserializeAws_restJson1InvokeEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeEndpointCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
8
8
  base64Decoder: import("@aws-sdk/types").Decoder;
9
9
  base64Encoder: import("@aws-sdk/types").Encoder;
10
10
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
11
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
14
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -32,8 +32,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
32
32
  signingEscapePath?: boolean | undefined;
33
33
  systemClockOffset?: number | undefined;
34
34
  signingRegion?: string | undefined;
35
- signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined; /**
36
- * @internal
37
- */
35
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
38
36
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
39
37
  };
@@ -0,0 +1,15 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
3
+ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
4
+ import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
5
+
6
+ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
7
+
8
+ invokeEndpoint(args: InvokeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointCommandOutput>;
9
+ invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
10
+ invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
11
+
12
+ invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
13
+ invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
14
+ invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
15
+ }
@@ -0,0 +1,69 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
10
+ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
11
+ export declare type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
12
+ export declare type ServiceOutputTypes = InvokeEndpointAsyncCommandOutput | InvokeEndpointCommandOutput;
13
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
14
+
15
+ requestHandler?: __HttpHandler;
16
+
17
+ sha256?: __HashConstructor;
18
+
19
+ urlParser?: __UrlParser;
20
+
21
+ bodyLengthChecker?: (body: any) => number | undefined;
22
+
23
+ streamCollector?: __StreamCollector;
24
+
25
+ base64Decoder?: __Decoder;
26
+
27
+ base64Encoder?: __Encoder;
28
+
29
+ utf8Decoder?: __Decoder;
30
+
31
+ utf8Encoder?: __Encoder;
32
+
33
+ runtime?: string;
34
+
35
+ disableHostPrefix?: boolean;
36
+
37
+ maxAttempts?: number | __Provider<number>;
38
+
39
+ retryMode?: string | __Provider<string>;
40
+
41
+ logger?: __Logger;
42
+
43
+ serviceId?: string;
44
+
45
+ region?: string | __Provider<string>;
46
+
47
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
48
+
49
+ regionInfoProvider?: RegionInfoProvider;
50
+
51
+ defaultUserAgentProvider?: Provider<__UserAgent>;
52
+ }
53
+ declare type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
54
+
55
+ export interface SageMakerRuntimeClientConfig extends SageMakerRuntimeClientConfigType {
56
+ }
57
+ declare type SageMakerRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
58
+
59
+ export interface SageMakerRuntimeClientResolvedConfig extends SageMakerRuntimeClientResolvedConfigType {
60
+ }
61
+
62
+ export declare class SageMakerRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeClientResolvedConfig> {
63
+
64
+ readonly config: SageMakerRuntimeClientResolvedConfig;
65
+ constructor(configuration: SageMakerRuntimeClientConfig);
66
+
67
+ destroy(): void;
68
+ }
69
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
4
+ import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
5
+ export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInput {
6
+ }
7
+ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class InvokeEndpointAsyncCommand extends $Command<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig> {
11
+ readonly input: InvokeEndpointAsyncCommandInput;
12
+ constructor(input: InvokeEndpointAsyncCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
4
+ import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
5
+ export interface InvokeEndpointCommandInput extends InvokeEndpointInput {
6
+ }
7
+ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
11
+ readonly input: InvokeEndpointCommandInput;
12
+ constructor(input: InvokeEndpointCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
File without changes
File without changes
@@ -0,0 +1,115 @@
1
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+
3
+ export interface InternalFailure extends __SmithyException, $MetadataBearer {
4
+ name: "InternalFailure";
5
+ $fault: "server";
6
+ Message?: string;
7
+ }
8
+ export declare namespace InternalFailure {
9
+
10
+ const filterSensitiveLog: (obj: InternalFailure) => any;
11
+ }
12
+ export interface InvokeEndpointInput {
13
+
14
+ EndpointName: string | undefined;
15
+
16
+ Body: Uint8Array | undefined;
17
+
18
+ ContentType?: string;
19
+
20
+ Accept?: string;
21
+
22
+ CustomAttributes?: string;
23
+
24
+ TargetModel?: string;
25
+
26
+ TargetVariant?: string;
27
+
28
+ TargetContainerHostname?: string;
29
+
30
+ InferenceId?: string;
31
+ }
32
+ export declare namespace InvokeEndpointInput {
33
+
34
+ const filterSensitiveLog: (obj: InvokeEndpointInput) => any;
35
+ }
36
+ export interface InvokeEndpointOutput {
37
+
38
+ Body: Uint8Array | undefined;
39
+
40
+ ContentType?: string;
41
+
42
+ InvokedProductionVariant?: string;
43
+
44
+ CustomAttributes?: string;
45
+ }
46
+ export declare namespace InvokeEndpointOutput {
47
+
48
+ const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
49
+ }
50
+
51
+ export interface ModelError extends __SmithyException, $MetadataBearer {
52
+ name: "ModelError";
53
+ $fault: "client";
54
+ Message?: string;
55
+
56
+ OriginalStatusCode?: number;
57
+
58
+ OriginalMessage?: string;
59
+
60
+ LogStreamArn?: string;
61
+ }
62
+ export declare namespace ModelError {
63
+
64
+ const filterSensitiveLog: (obj: ModelError) => any;
65
+ }
66
+
67
+ export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
68
+ name: "ServiceUnavailable";
69
+ $fault: "server";
70
+ Message?: string;
71
+ }
72
+ export declare namespace ServiceUnavailable {
73
+
74
+ const filterSensitiveLog: (obj: ServiceUnavailable) => any;
75
+ }
76
+
77
+ export interface ValidationError extends __SmithyException, $MetadataBearer {
78
+ name: "ValidationError";
79
+ $fault: "client";
80
+ Message?: string;
81
+ }
82
+ export declare namespace ValidationError {
83
+
84
+ const filterSensitiveLog: (obj: ValidationError) => any;
85
+ }
86
+ export interface InvokeEndpointAsyncInput {
87
+
88
+ EndpointName: string | undefined;
89
+
90
+ ContentType?: string;
91
+
92
+ Accept?: string;
93
+
94
+ CustomAttributes?: string;
95
+
96
+ InferenceId?: string;
97
+
98
+ InputLocation: string | undefined;
99
+
100
+ RequestTTLSeconds?: number;
101
+ }
102
+ export declare namespace InvokeEndpointAsyncInput {
103
+
104
+ const filterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
105
+ }
106
+ export interface InvokeEndpointAsyncOutput {
107
+
108
+ InferenceId?: string;
109
+
110
+ OutputLocation?: string;
111
+ }
112
+ export declare namespace InvokeEndpointAsyncOutput {
113
+
114
+ const filterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
115
+ }
@@ -1,7 +1,7 @@
1
- import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "../commands/InvokeEndpointAsyncCommand";
2
- import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../commands/InvokeEndpointCommand";
3
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "../commands/InvokeEndpointAsyncCommand";
4
+ import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "../commands/InvokeEndpointCommand";
5
5
  export declare const serializeAws_restJson1InvokeEndpointCommand: (input: InvokeEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
6
  export declare const serializeAws_restJson1InvokeEndpointAsyncCommand: (input: InvokeEndpointAsyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
7
  export declare const deserializeAws_restJson1InvokeEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeEndpointCommandOutput>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -32,8 +30,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
32
30
  signingEscapePath?: boolean | undefined;
33
31
  systemClockOffset?: number | undefined;
34
32
  signingRegion?: string | undefined;
35
- signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined; /**
36
- * @internal
37
- */
33
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
38
34
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
39
35
  };
@@ -1,7 +1,5 @@
1
1
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,54 +11,48 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "exit 0"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.34.0",
55
+ "@aws-sdk/client-documentation-generator": "3.37.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-runtime",
86
89
  "repository": {
87
90
  "type": "git",
@@ -1,116 +0,0 @@
1
- import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
2
- import {
3
- InvokeEndpointAsyncCommand,
4
- InvokeEndpointAsyncCommandInput,
5
- InvokeEndpointAsyncCommandOutput,
6
- } from "./commands/InvokeEndpointAsyncCommand";
7
- import {
8
- InvokeEndpointCommand,
9
- InvokeEndpointCommandInput,
10
- InvokeEndpointCommandOutput,
11
- } from "./commands/InvokeEndpointCommand";
12
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
13
-
14
- /**
15
- * <p> The Amazon SageMaker runtime API. </p>
16
- */
17
- export class SageMakerRuntime extends SageMakerRuntimeClient {
18
- /**
19
- * <p>After you deploy a model into production using Amazon SageMaker hosting services, your
20
- * client applications use this API to get inferences from the model hosted at the
21
- * specified endpoint. </p>
22
- * <p>For an overview of Amazon SageMaker, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html">How It Works</a>. </p>
23
- * <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
24
- * additional headers. You should not rely on the behavior of headers outside those
25
- * enumerated in the request syntax. </p>
26
- * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
27
- * 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
28
- * Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
29
- * Reference</i>.</p>
30
- * <p>A customer's model containers must respond to requests within 60 seconds. The model
31
- * itself can have a maximum processing time of 60 seconds before responding to
32
- * invocations. If your model is going to take 50-60 seconds of processing time, the SDK
33
- * socket timeout should be set to be 70 seconds.</p>
34
- * <note>
35
- * <p>Endpoints are scoped to an individual account, and are not public. The URL does
36
- * not contain the account ID, but Amazon SageMaker determines the account ID from the
37
- * authentication token that is supplied by the caller.</p>
38
- * </note>
39
- */
40
- public invokeEndpoint(
41
- args: InvokeEndpointCommandInput,
42
- options?: __HttpHandlerOptions
43
- ): Promise<InvokeEndpointCommandOutput>;
44
- public invokeEndpoint(
45
- args: InvokeEndpointCommandInput,
46
- cb: (err: any, data?: InvokeEndpointCommandOutput) => void
47
- ): void;
48
- public invokeEndpoint(
49
- args: InvokeEndpointCommandInput,
50
- options: __HttpHandlerOptions,
51
- cb: (err: any, data?: InvokeEndpointCommandOutput) => void
52
- ): void;
53
- public invokeEndpoint(
54
- args: InvokeEndpointCommandInput,
55
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InvokeEndpointCommandOutput) => void),
56
- cb?: (err: any, data?: InvokeEndpointCommandOutput) => void
57
- ): Promise<InvokeEndpointCommandOutput> | void {
58
- const command = new InvokeEndpointCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- } else if (typeof cb === "function") {
62
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
- this.send(command, optionsOrCb || {}, cb);
64
- } else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
-
69
- /**
70
- * <p>After you deploy a model into production using Amazon SageMaker hosting services,
71
- * your client applications use this API to get inferences from the model hosted at
72
- * the specified endpoint in an asynchronous manner.</p>
73
- *
74
- * <p>Inference requests sent to this API are enqueued for asynchronous processing.
75
- * The processing of the inference request may or may not complete before the
76
- * you receive a response from this API. The response from this API will
77
- * not contain the result of the inference request but contain information
78
- * about where you can locate it.</p>
79
- *
80
- * <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
81
- * Amazon SageMaker might add additional headers. You should not rely on the behavior
82
- * of headers outside those enumerated in the request syntax.</p>
83
- *
84
- * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
85
- * Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
86
- * Reference</i>.</p>
87
- */
88
- public invokeEndpointAsync(
89
- args: InvokeEndpointAsyncCommandInput,
90
- options?: __HttpHandlerOptions
91
- ): Promise<InvokeEndpointAsyncCommandOutput>;
92
- public invokeEndpointAsync(
93
- args: InvokeEndpointAsyncCommandInput,
94
- cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void
95
- ): void;
96
- public invokeEndpointAsync(
97
- args: InvokeEndpointAsyncCommandInput,
98
- options: __HttpHandlerOptions,
99
- cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void
100
- ): void;
101
- public invokeEndpointAsync(
102
- args: InvokeEndpointAsyncCommandInput,
103
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InvokeEndpointAsyncCommandOutput) => void),
104
- cb?: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void
105
- ): Promise<InvokeEndpointAsyncCommandOutput> | void {
106
- const command = new InvokeEndpointAsyncCommand(args);
107
- if (typeof optionsOrCb === "function") {
108
- this.send(command, optionsOrCb);
109
- } else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- } else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- }