@aws-sdk/client-sagemaker-runtime 3.1137.0 → 3.1139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1136.0";
73
+ var version = "3.1138.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -351,10 +351,10 @@ const _se = "server";
351
351
  const _st = "streaming";
352
352
  const _xAIPV = "x-Amzn-Invoked-Production-Variant";
353
353
  const n0 = "com.amazonaws.sagemakerruntime";
354
- const _s_registry = TypeRegistry.for(_s);
354
+ const _s_registry = new TypeRegistry(_s);
355
355
  var SageMakerRuntimeServiceException$ = [-3, _s, "SageMakerRuntimeServiceException", 0, [], []];
356
356
  _s_registry.registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
357
- const n0_registry = TypeRegistry.for(n0);
357
+ const n0_registry = new TypeRegistry(n0);
358
358
  var InternalDependencyException$ = [-3, n0, _IDE,
359
359
  { [_e]: _se, [_hE]: 530 },
360
360
  [_M],
@@ -86,10 +86,10 @@ const n0 = "com.amazonaws.sagemakerruntime";
86
86
  import { TypeRegistry } from "@smithy/core/schema";
87
87
  import { InternalDependencyException, InternalFailure, InternalStreamFailure, ModelError, ModelNotReadyException, ModelStreamError, ServiceUnavailable, ValidationError, } from "../models/errors";
88
88
  import { SageMakerRuntimeServiceException } from "../models/SageMakerRuntimeServiceException";
89
- const _s_registry = TypeRegistry.for(_s);
89
+ const _s_registry = new TypeRegistry(_s);
90
90
  export var SageMakerRuntimeServiceException$ = [-3, _s, "SageMakerRuntimeServiceException", 0, [], []];
91
91
  _s_registry.registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
92
- const n0_registry = TypeRegistry.for(n0);
92
+ const n0_registry = new TypeRegistry(n0);
93
93
  export var InternalDependencyException$ = [-3, n0, _IDE,
94
94
  { [_e]: _se, [_hE]: 530 },
95
95
  [_M],
@@ -1,27 +1,33 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type InvokeEndpointAsyncCommandInput, type InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
3
3
  import { type InvokeEndpointCommandInput, type InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
4
4
  import { type InvokeEndpointWithResponseStreamCommandInput, type InvokeEndpointWithResponseStreamCommandOutput } from "./commands/InvokeEndpointWithResponseStreamCommand";
5
5
  import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export interface SageMakerRuntimeRequestOptions extends __HttpHandlerOptions {
10
+ metricsRecorder?: __MetricsRecorder<unknown>;
11
+ }
6
12
  export interface SageMakerRuntime {
7
13
  /**
8
14
  * @see {@link InvokeEndpointCommand}
9
15
  */
10
- invokeEndpoint(args: InvokeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointCommandOutput>;
16
+ invokeEndpoint(args: InvokeEndpointCommandInput, options?: SageMakerRuntimeRequestOptions): Promise<InvokeEndpointCommandOutput>;
11
17
  invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
12
- invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
18
+ invokeEndpoint(args: InvokeEndpointCommandInput, options: SageMakerRuntimeRequestOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
13
19
  /**
14
20
  * @see {@link InvokeEndpointAsyncCommand}
15
21
  */
16
- invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
22
+ invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: SageMakerRuntimeRequestOptions): Promise<InvokeEndpointAsyncCommandOutput>;
17
23
  invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
18
- invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
24
+ invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options: SageMakerRuntimeRequestOptions, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link InvokeEndpointWithResponseStreamCommand}
21
27
  */
22
- invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointWithResponseStreamCommandOutput>;
28
+ invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, options?: SageMakerRuntimeRequestOptions): Promise<InvokeEndpointWithResponseStreamCommandOutput>;
23
29
  invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, cb: (err: any, data?: InvokeEndpointWithResponseStreamCommandOutput) => void): void;
24
- invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointWithResponseStreamCommandOutput) => void): void;
30
+ invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, options: SageMakerRuntimeRequestOptions, cb: (err: any, data?: InvokeEndpointWithResponseStreamCommandOutput) => void): void;
25
31
  }
26
32
  /**
27
33
  * <p> The Amazon SageMaker AI runtime API. </p>
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import {
3
6
  InvokeEndpointAsyncCommandInput,
4
7
  InvokeEndpointAsyncCommandOutput,
@@ -12,10 +15,13 @@ import {
12
15
  InvokeEndpointWithResponseStreamCommandOutput,
13
16
  } from "./commands/InvokeEndpointWithResponseStreamCommand";
14
17
  import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
18
+ export interface SageMakerRuntimeRequestOptions extends __HttpHandlerOptions {
19
+ metricsRecorder?: __MetricsRecorder<unknown>;
20
+ }
15
21
  export interface SageMakerRuntime {
16
22
  invokeEndpoint(
17
23
  args: InvokeEndpointCommandInput,
18
- options?: __HttpHandlerOptions,
24
+ options?: SageMakerRuntimeRequestOptions,
19
25
  ): Promise<InvokeEndpointCommandOutput>;
20
26
  invokeEndpoint(
21
27
  args: InvokeEndpointCommandInput,
@@ -23,12 +29,12 @@ export interface SageMakerRuntime {
23
29
  ): void;
24
30
  invokeEndpoint(
25
31
  args: InvokeEndpointCommandInput,
26
- options: __HttpHandlerOptions,
32
+ options: SageMakerRuntimeRequestOptions,
27
33
  cb: (err: any, data?: InvokeEndpointCommandOutput) => void,
28
34
  ): void;
29
35
  invokeEndpointAsync(
30
36
  args: InvokeEndpointAsyncCommandInput,
31
- options?: __HttpHandlerOptions,
37
+ options?: SageMakerRuntimeRequestOptions,
32
38
  ): Promise<InvokeEndpointAsyncCommandOutput>;
33
39
  invokeEndpointAsync(
34
40
  args: InvokeEndpointAsyncCommandInput,
@@ -36,12 +42,12 @@ export interface SageMakerRuntime {
36
42
  ): void;
37
43
  invokeEndpointAsync(
38
44
  args: InvokeEndpointAsyncCommandInput,
39
- options: __HttpHandlerOptions,
45
+ options: SageMakerRuntimeRequestOptions,
40
46
  cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void,
41
47
  ): void;
42
48
  invokeEndpointWithResponseStream(
43
49
  args: InvokeEndpointWithResponseStreamCommandInput,
44
- options?: __HttpHandlerOptions,
50
+ options?: SageMakerRuntimeRequestOptions,
45
51
  ): Promise<InvokeEndpointWithResponseStreamCommandOutput>;
46
52
  invokeEndpointWithResponseStream(
47
53
  args: InvokeEndpointWithResponseStreamCommandInput,
@@ -49,7 +55,7 @@ export interface SageMakerRuntime {
49
55
  ): void;
50
56
  invokeEndpointWithResponseStream(
51
57
  args: InvokeEndpointWithResponseStreamCommandInput,
52
- options: __HttpHandlerOptions,
58
+ options: SageMakerRuntimeRequestOptions,
53
59
  cb: (err: any, data?: InvokeEndpointWithResponseStreamCommandOutput) => void,
54
60
  ): void;
55
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-runtime",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {