@aws-sdk/client-sagemaker-runtime 3.928.0 → 3.930.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.
@@ -6,7 +6,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
6
6
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
7
7
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
8
8
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
9
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
10
10
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
11
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
12
12
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
@@ -145,6 +145,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
145
145
  * Optional extensions
146
146
  */
147
147
  extensions?: RuntimeExtension[];
148
+ /**
149
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
150
+ * may be overridden. A default will always be set by the client.
151
+ * Available options depend on the service's supported protocols and will not be validated by
152
+ * the client.
153
+ * @alpha
154
+ *
155
+ */
156
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
148
157
  /**
149
158
  * The function that provides necessary utilities for generating and parsing event stream
150
159
  */
@@ -567,13 +567,16 @@ export declare namespace ResponseStream {
567
567
  InternalStreamFailure?: never;
568
568
  $unknown: [string, any];
569
569
  }
570
+ /**
571
+ * @deprecated unused in schema-serde mode.
572
+ *
573
+ */
570
574
  interface Visitor<T> {
571
575
  PayloadPart: (value: PayloadPart) => T;
572
576
  ModelStreamError: (value: ModelStreamError) => T;
573
577
  InternalStreamFailure: (value: InternalStreamFailure) => T;
574
578
  _: (name: string, value: any) => T;
575
579
  }
576
- const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
577
580
  }
578
581
  /**
579
582
  * @public
@@ -616,31 +619,3 @@ export interface InvokeEndpointWithResponseStreamOutput {
616
619
  */
617
620
  CustomAttributes?: string | undefined;
618
621
  }
619
- /**
620
- * @internal
621
- */
622
- export declare const InvokeEndpointInputFilterSensitiveLog: (obj: InvokeEndpointInput) => any;
623
- /**
624
- * @internal
625
- */
626
- export declare const InvokeEndpointOutputFilterSensitiveLog: (obj: InvokeEndpointOutput) => any;
627
- /**
628
- * @internal
629
- */
630
- export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
631
- /**
632
- * @internal
633
- */
634
- export declare const InvokeEndpointWithResponseStreamInputFilterSensitiveLog: (obj: InvokeEndpointWithResponseStreamInput) => any;
635
- /**
636
- * @internal
637
- */
638
- export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
639
- /**
640
- * @internal
641
- */
642
- export declare const ResponseStreamFilterSensitiveLog: (obj: ResponseStream) => any;
643
- /**
644
- * @internal
645
- */
646
- export declare const InvokeEndpointWithResponseStreamOutputFilterSensitiveLog: (obj: InvokeEndpointWithResponseStreamOutput) => any;
@@ -30,6 +30,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
30
30
  profile?: string;
31
31
  logger: import("@smithy/types").Logger;
32
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
34
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
35
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
32
32
  profile?: string;
33
33
  logger: import("@smithy/types").Logger;
34
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
38
  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;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
31
32
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,24 @@
1
+ import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var BodyBlob: StaticSimpleSchema;
3
+ export declare var CustomAttributesHeader: StaticSimpleSchema;
4
+ export declare var PartBlob: StaticSimpleSchema;
5
+ export declare var InternalDependencyException: StaticErrorSchema;
6
+ export declare var InternalFailure: StaticErrorSchema;
7
+ export declare var InternalStreamFailure: StaticErrorSchema;
8
+ export declare var InvokeEndpointAsyncInput: StaticStructureSchema;
9
+ export declare var InvokeEndpointAsyncOutput: StaticStructureSchema;
10
+ export declare var InvokeEndpointInput: StaticStructureSchema;
11
+ export declare var InvokeEndpointOutput: StaticStructureSchema;
12
+ export declare var InvokeEndpointWithResponseStreamInput: StaticStructureSchema;
13
+ export declare var InvokeEndpointWithResponseStreamOutput: StaticStructureSchema;
14
+ export declare var ModelError: StaticErrorSchema;
15
+ export declare var ModelNotReadyException: StaticErrorSchema;
16
+ export declare var ModelStreamError: StaticErrorSchema;
17
+ export declare var PayloadPart: StaticStructureSchema;
18
+ export declare var ServiceUnavailable: StaticErrorSchema;
19
+ export declare var ValidationError: StaticErrorSchema;
20
+ export declare var SageMakerRuntimeServiceException: StaticErrorSchema;
21
+ export declare var ResponseStream: StaticStructureSchema;
22
+ export declare var InvokeEndpoint: StaticOperationSchema;
23
+ export declare var InvokeEndpointAsync: StaticOperationSchema;
24
+ export declare var InvokeEndpointWithResponseStream: StaticOperationSchema;
@@ -34,11 +34,14 @@ import {
34
34
  BodyLengthCalculator as __BodyLengthCalculator,
35
35
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
36
  ChecksumConstructor as __ChecksumConstructor,
37
+ ClientProtocol,
37
38
  Decoder as __Decoder,
38
39
  Encoder as __Encoder,
39
40
  EventStreamSerdeProvider as __EventStreamSerdeProvider,
40
41
  HashConstructor as __HashConstructor,
41
42
  HttpHandlerOptions as __HttpHandlerOptions,
43
+ HttpRequest,
44
+ HttpResponse,
42
45
  Logger as __Logger,
43
46
  Provider as __Provider,
44
47
  Provider,
@@ -101,6 +104,7 @@ export interface ClientDefaults
101
104
  retryMode?: string | __Provider<string>;
102
105
  logger?: __Logger;
103
106
  extensions?: RuntimeExtension[];
107
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
104
108
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
105
109
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
106
110
  }
@@ -146,7 +146,6 @@ export declare namespace ResponseStream {
146
146
  InternalStreamFailure: (value: InternalStreamFailure) => T;
147
147
  _: (name: string, value: any) => T;
148
148
  }
149
- const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
150
149
  }
151
150
  export interface InvokeEndpointWithResponseStreamOutput {
152
151
  Body: AsyncIterable<ResponseStream> | undefined;
@@ -154,22 +153,3 @@ export interface InvokeEndpointWithResponseStreamOutput {
154
153
  InvokedProductionVariant?: string | undefined;
155
154
  CustomAttributes?: string | undefined;
156
155
  }
157
- export declare const InvokeEndpointInputFilterSensitiveLog: (
158
- obj: InvokeEndpointInput
159
- ) => any;
160
- export declare const InvokeEndpointOutputFilterSensitiveLog: (
161
- obj: InvokeEndpointOutput
162
- ) => any;
163
- export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (
164
- obj: InvokeEndpointAsyncInput
165
- ) => any;
166
- export declare const InvokeEndpointWithResponseStreamInputFilterSensitiveLog: (
167
- obj: InvokeEndpointWithResponseStreamInput
168
- ) => any;
169
- export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
170
- export declare const ResponseStreamFilterSensitiveLog: (
171
- obj: ResponseStream
172
- ) => any;
173
- export declare const InvokeEndpointWithResponseStreamOutputFilterSensitiveLog: (
174
- obj: InvokeEndpointWithResponseStreamOutput
175
- ) => any;
@@ -41,6 +41,10 @@ export declare const getRuntimeConfig: (
41
41
  profile?: string;
42
42
  logger: import("@smithy/types").Logger;
43
43
  extensions: import("./runtimeExtensions").RuntimeExtension[];
44
+ protocol: import("@smithy/types").ClientProtocol<
45
+ import("@smithy/types").HttpRequest,
46
+ import("@smithy/types").HttpResponse
47
+ >;
44
48
  customUserAgent?: string | import("@smithy/types").UserAgent;
45
49
  userAgentAppId?:
46
50
  | string
@@ -41,6 +41,10 @@ export declare const getRuntimeConfig: (
41
41
  profile?: string;
42
42
  logger: import("@smithy/types").Logger;
43
43
  extensions: import("./runtimeExtensions").RuntimeExtension[];
44
+ protocol: import("@smithy/types").ClientProtocol<
45
+ import("@smithy/types").HttpRequest,
46
+ import("@smithy/types").HttpResponse
47
+ >;
44
48
  customUserAgent?: string | import("@smithy/types").UserAgent;
45
49
  retryStrategy?:
46
50
  | import("@smithy/types").RetryStrategy
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  retryMode: string | import("@smithy/types").Provider<string>;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
43
47
  defaultsMode:
44
48
  | import("@smithy/smithy-client").DefaultsMode
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
16
16
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
17
17
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
18
  logger: import("@smithy/types").Logger;
19
+ protocol: import("@smithy/types").ClientProtocol<
20
+ import("@smithy/types").HttpRequest,
21
+ import("@smithy/types").HttpResponse
22
+ >;
19
23
  serviceId: string;
20
24
  urlParser: import("@smithy/types").UrlParser;
21
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,29 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticOperationSchema,
4
+ StaticSimpleSchema,
5
+ StaticStructureSchema,
6
+ } from "@smithy/types";
7
+ export declare var BodyBlob: StaticSimpleSchema;
8
+ export declare var CustomAttributesHeader: StaticSimpleSchema;
9
+ export declare var PartBlob: StaticSimpleSchema;
10
+ export declare var InternalDependencyException: StaticErrorSchema;
11
+ export declare var InternalFailure: StaticErrorSchema;
12
+ export declare var InternalStreamFailure: StaticErrorSchema;
13
+ export declare var InvokeEndpointAsyncInput: StaticStructureSchema;
14
+ export declare var InvokeEndpointAsyncOutput: StaticStructureSchema;
15
+ export declare var InvokeEndpointInput: StaticStructureSchema;
16
+ export declare var InvokeEndpointOutput: StaticStructureSchema;
17
+ export declare var InvokeEndpointWithResponseStreamInput: StaticStructureSchema;
18
+ export declare var InvokeEndpointWithResponseStreamOutput: StaticStructureSchema;
19
+ export declare var ModelError: StaticErrorSchema;
20
+ export declare var ModelNotReadyException: StaticErrorSchema;
21
+ export declare var ModelStreamError: StaticErrorSchema;
22
+ export declare var PayloadPart: StaticStructureSchema;
23
+ export declare var ServiceUnavailable: StaticErrorSchema;
24
+ export declare var ValidationError: StaticErrorSchema;
25
+ export declare var SageMakerRuntimeServiceException: StaticErrorSchema;
26
+ export declare var ResponseStream: StaticStructureSchema;
27
+ export declare var InvokeEndpoint: StaticOperationSchema;
28
+ export declare var InvokeEndpointAsync: StaticOperationSchema;
29
+ export declare var InvokeEndpointWithResponseStream: StaticOperationSchema;
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.928.0",
4
+ "version": "3.930.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-runtime",
@@ -20,45 +20,45 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/eventstream-serde-browser": "^4.2.4",
37
- "@smithy/eventstream-serde-config-resolver": "^4.3.4",
38
- "@smithy/eventstream-serde-node": "^4.2.4",
39
- "@smithy/fetch-http-handler": "^5.3.5",
40
- "@smithy/hash-node": "^4.2.4",
41
- "@smithy/invalid-dependency": "^4.2.4",
42
- "@smithy/middleware-content-length": "^4.2.4",
43
- "@smithy/middleware-endpoint": "^4.3.6",
44
- "@smithy/middleware-retry": "^4.4.6",
45
- "@smithy/middleware-serde": "^4.2.4",
46
- "@smithy/middleware-stack": "^4.2.4",
47
- "@smithy/node-config-provider": "^4.3.4",
48
- "@smithy/node-http-handler": "^4.4.4",
49
- "@smithy/protocol-http": "^5.3.4",
50
- "@smithy/smithy-client": "^4.9.2",
51
- "@smithy/types": "^4.8.1",
52
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/eventstream-serde-browser": "^4.2.5",
37
+ "@smithy/eventstream-serde-config-resolver": "^4.3.5",
38
+ "@smithy/eventstream-serde-node": "^4.2.5",
39
+ "@smithy/fetch-http-handler": "^5.3.6",
40
+ "@smithy/hash-node": "^4.2.5",
41
+ "@smithy/invalid-dependency": "^4.2.5",
42
+ "@smithy/middleware-content-length": "^4.2.5",
43
+ "@smithy/middleware-endpoint": "^4.3.9",
44
+ "@smithy/middleware-retry": "^4.4.9",
45
+ "@smithy/middleware-serde": "^4.2.5",
46
+ "@smithy/middleware-stack": "^4.2.5",
47
+ "@smithy/node-config-provider": "^4.3.5",
48
+ "@smithy/node-http-handler": "^4.4.5",
49
+ "@smithy/protocol-http": "^5.3.5",
50
+ "@smithy/smithy-client": "^4.9.5",
51
+ "@smithy/types": "^4.9.0",
52
+ "@smithy/url-parser": "^4.2.5",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.5",
57
- "@smithy/util-defaults-mode-node": "^4.2.8",
58
- "@smithy/util-endpoints": "^3.2.4",
59
- "@smithy/util-middleware": "^4.2.4",
60
- "@smithy/util-retry": "^4.2.4",
61
- "@smithy/util-stream": "^4.5.5",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
57
+ "@smithy/util-defaults-mode-node": "^4.2.11",
58
+ "@smithy/util-endpoints": "^3.2.5",
59
+ "@smithy/util-middleware": "^4.2.5",
60
+ "@smithy/util-retry": "^4.2.5",
61
+ "@smithy/util-stream": "^4.5.6",
62
62
  "@smithy/util-utf8": "^4.2.0",
63
63
  "tslib": "^2.6.2"
64
64
  },