@aws-sdk/client-sagemakerjobruntime 3.1137.0 → 3.1138.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
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1136.0";
70
+ var version = "3.1137.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -263,10 +263,10 @@ const _se = "server";
263
263
  const _sen = "sensitive";
264
264
  const _st = "streaming";
265
265
  const n0 = "com.amazonaws.sagemakerjobruntime";
266
- const _s_registry = TypeRegistry.for(_s);
266
+ const _s_registry = new TypeRegistry(_s);
267
267
  var SagemakerJobRuntimeServiceException$ = [-3, _s, "SagemakerJobRuntimeServiceException", 0, [], []];
268
268
  _s_registry.registerError(SagemakerJobRuntimeServiceException$, SagemakerJobRuntimeServiceException);
269
- const n0_registry = TypeRegistry.for(n0);
269
+ const n0_registry = new TypeRegistry(n0);
270
270
  var AccessDeniedException$ = [-3, n0, _ADE,
271
271
  { [_e]: _c, [_hE]: 403 },
272
272
  [_M],
@@ -44,10 +44,10 @@ const n0 = "com.amazonaws.sagemakerjobruntime";
44
44
  import { TypeRegistry } from "@smithy/core/schema";
45
45
  import { AccessDeniedException, ConflictException, InternalServiceError, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
46
46
  import { SagemakerJobRuntimeServiceException } from "../models/SagemakerJobRuntimeServiceException";
47
- const _s_registry = TypeRegistry.for(_s);
47
+ const _s_registry = new TypeRegistry(_s);
48
48
  export var SagemakerJobRuntimeServiceException$ = [-3, _s, "SagemakerJobRuntimeServiceException", 0, [], []];
49
49
  _s_registry.registerError(SagemakerJobRuntimeServiceException$, SagemakerJobRuntimeServiceException);
50
- const n0_registry = TypeRegistry.for(n0);
50
+ const n0_registry = new TypeRegistry(n0);
51
51
  export var AccessDeniedException$ = [-3, n0, _ADE,
52
52
  { [_e]: _c, [_hE]: 403 },
53
53
  [_M],
@@ -1,34 +1,40 @@
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 CompleteRolloutCommandInput, type CompleteRolloutCommandOutput } from "./commands/CompleteRolloutCommand";
3
3
  import { type SampleCommandInput, type SampleCommandOutput } from "./commands/SampleCommand";
4
4
  import { type SampleWithResponseStreamCommandInput, type SampleWithResponseStreamCommandOutput } from "./commands/SampleWithResponseStreamCommand";
5
5
  import { type UpdateRewardCommandInput, type UpdateRewardCommandOutput } from "./commands/UpdateRewardCommand";
6
6
  import { SagemakerJobRuntimeClient } from "./SagemakerJobRuntimeClient";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface SagemakerJobRuntimeRequestOptions extends __HttpHandlerOptions {
11
+ metricsRecorder?: __MetricsRecorder<unknown>;
12
+ }
7
13
  export interface SagemakerJobRuntime {
8
14
  /**
9
15
  * @see {@link CompleteRolloutCommand}
10
16
  */
11
- completeRollout(args: CompleteRolloutCommandInput, options?: __HttpHandlerOptions): Promise<CompleteRolloutCommandOutput>;
17
+ completeRollout(args: CompleteRolloutCommandInput, options?: SagemakerJobRuntimeRequestOptions): Promise<CompleteRolloutCommandOutput>;
12
18
  completeRollout(args: CompleteRolloutCommandInput, cb: (err: any, data?: CompleteRolloutCommandOutput) => void): void;
13
- completeRollout(args: CompleteRolloutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteRolloutCommandOutput) => void): void;
19
+ completeRollout(args: CompleteRolloutCommandInput, options: SagemakerJobRuntimeRequestOptions, cb: (err: any, data?: CompleteRolloutCommandOutput) => void): void;
14
20
  /**
15
21
  * @see {@link SampleCommand}
16
22
  */
17
- sample(args: SampleCommandInput, options?: __HttpHandlerOptions): Promise<SampleCommandOutput>;
23
+ sample(args: SampleCommandInput, options?: SagemakerJobRuntimeRequestOptions): Promise<SampleCommandOutput>;
18
24
  sample(args: SampleCommandInput, cb: (err: any, data?: SampleCommandOutput) => void): void;
19
- sample(args: SampleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SampleCommandOutput) => void): void;
25
+ sample(args: SampleCommandInput, options: SagemakerJobRuntimeRequestOptions, cb: (err: any, data?: SampleCommandOutput) => void): void;
20
26
  /**
21
27
  * @see {@link SampleWithResponseStreamCommand}
22
28
  */
23
- sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<SampleWithResponseStreamCommandOutput>;
29
+ sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options?: SagemakerJobRuntimeRequestOptions): Promise<SampleWithResponseStreamCommandOutput>;
24
30
  sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void): void;
25
- sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void): void;
31
+ sampleWithResponseStream(args: SampleWithResponseStreamCommandInput, options: SagemakerJobRuntimeRequestOptions, cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void): void;
26
32
  /**
27
33
  * @see {@link UpdateRewardCommand}
28
34
  */
29
- updateReward(args: UpdateRewardCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRewardCommandOutput>;
35
+ updateReward(args: UpdateRewardCommandInput, options?: SagemakerJobRuntimeRequestOptions): Promise<UpdateRewardCommandOutput>;
30
36
  updateReward(args: UpdateRewardCommandInput, cb: (err: any, data?: UpdateRewardCommandOutput) => void): void;
31
- updateReward(args: UpdateRewardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRewardCommandOutput) => void): void;
37
+ updateReward(args: UpdateRewardCommandInput, options: SagemakerJobRuntimeRequestOptions, cb: (err: any, data?: UpdateRewardCommandOutput) => void): void;
32
38
  }
33
39
  /**
34
40
  * Agentic RFT Runtime Service - manages trajectory and transition data
@@ -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
  CompleteRolloutCommandInput,
4
7
  CompleteRolloutCommandOutput,
@@ -13,10 +16,13 @@ import {
13
16
  UpdateRewardCommandOutput,
14
17
  } from "./commands/UpdateRewardCommand";
15
18
  import { SagemakerJobRuntimeClient } from "./SagemakerJobRuntimeClient";
19
+ export interface SagemakerJobRuntimeRequestOptions extends __HttpHandlerOptions {
20
+ metricsRecorder?: __MetricsRecorder<unknown>;
21
+ }
16
22
  export interface SagemakerJobRuntime {
17
23
  completeRollout(
18
24
  args: CompleteRolloutCommandInput,
19
- options?: __HttpHandlerOptions,
25
+ options?: SagemakerJobRuntimeRequestOptions,
20
26
  ): Promise<CompleteRolloutCommandOutput>;
21
27
  completeRollout(
22
28
  args: CompleteRolloutCommandInput,
@@ -24,19 +30,22 @@ export interface SagemakerJobRuntime {
24
30
  ): void;
25
31
  completeRollout(
26
32
  args: CompleteRolloutCommandInput,
27
- options: __HttpHandlerOptions,
33
+ options: SagemakerJobRuntimeRequestOptions,
28
34
  cb: (err: any, data?: CompleteRolloutCommandOutput) => void,
29
35
  ): void;
30
- sample(args: SampleCommandInput, options?: __HttpHandlerOptions): Promise<SampleCommandOutput>;
36
+ sample(
37
+ args: SampleCommandInput,
38
+ options?: SagemakerJobRuntimeRequestOptions,
39
+ ): Promise<SampleCommandOutput>;
31
40
  sample(args: SampleCommandInput, cb: (err: any, data?: SampleCommandOutput) => void): void;
32
41
  sample(
33
42
  args: SampleCommandInput,
34
- options: __HttpHandlerOptions,
43
+ options: SagemakerJobRuntimeRequestOptions,
35
44
  cb: (err: any, data?: SampleCommandOutput) => void,
36
45
  ): void;
37
46
  sampleWithResponseStream(
38
47
  args: SampleWithResponseStreamCommandInput,
39
- options?: __HttpHandlerOptions,
48
+ options?: SagemakerJobRuntimeRequestOptions,
40
49
  ): Promise<SampleWithResponseStreamCommandOutput>;
41
50
  sampleWithResponseStream(
42
51
  args: SampleWithResponseStreamCommandInput,
@@ -44,12 +53,12 @@ export interface SagemakerJobRuntime {
44
53
  ): void;
45
54
  sampleWithResponseStream(
46
55
  args: SampleWithResponseStreamCommandInput,
47
- options: __HttpHandlerOptions,
56
+ options: SagemakerJobRuntimeRequestOptions,
48
57
  cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void,
49
58
  ): void;
50
59
  updateReward(
51
60
  args: UpdateRewardCommandInput,
52
- options?: __HttpHandlerOptions,
61
+ options?: SagemakerJobRuntimeRequestOptions,
53
62
  ): Promise<UpdateRewardCommandOutput>;
54
63
  updateReward(
55
64
  args: UpdateRewardCommandInput,
@@ -57,7 +66,7 @@ export interface SagemakerJobRuntime {
57
66
  ): void;
58
67
  updateReward(
59
68
  args: UpdateRewardCommandInput,
60
- options: __HttpHandlerOptions,
69
+ options: SagemakerJobRuntimeRequestOptions,
61
70
  cb: (err: any, data?: UpdateRewardCommandOutput) => void,
62
71
  ): void;
63
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemakerjobruntime",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Sagemakerjobruntime Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemakerjobruntime",
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": {