@aws-sdk/client-sagemakerjobruntime 3.1059.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 (86) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +210 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/bdd.js +32 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  6. package/dist-cjs/index.js +201 -0
  7. package/dist-cjs/models/SagemakerJobRuntimeServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +111 -0
  9. package/dist-cjs/runtimeConfig.browser.js +36 -0
  10. package/dist-cjs/runtimeConfig.js +49 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +155 -0
  14. package/dist-es/SagemakerJobRuntime.js +15 -0
  15. package/dist-es/SagemakerJobRuntimeClient.js +47 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/CompleteRolloutCommand.js +16 -0
  19. package/dist-es/commands/SampleCommand.js +16 -0
  20. package/dist-es/commands/SampleWithResponseStreamCommand.js +16 -0
  21. package/dist-es/commands/UpdateRewardCommand.js +16 -0
  22. package/dist-es/commands/index.js +4 -0
  23. package/dist-es/endpoint/EndpointParameters.js +11 -0
  24. package/dist-es/endpoint/bdd.js +29 -0
  25. package/dist-es/endpoint/endpointResolver.js +14 -0
  26. package/dist-es/extensionConfiguration.js +1 -0
  27. package/dist-es/index.js +8 -0
  28. package/dist-es/models/SagemakerJobRuntimeServiceException.js +8 -0
  29. package/dist-es/models/enums.js +4 -0
  30. package/dist-es/models/errors.js +101 -0
  31. package/dist-es/models/models_0.js +1 -0
  32. package/dist-es/runtimeConfig.browser.js +31 -0
  33. package/dist-es/runtimeConfig.js +44 -0
  34. package/dist-es/runtimeConfig.native.js +11 -0
  35. package/dist-es/runtimeConfig.shared.js +39 -0
  36. package/dist-es/runtimeExtensions.js +9 -0
  37. package/dist-es/schemas/schemas_0.js +152 -0
  38. package/dist-types/SagemakerJobRuntime.d.ts +39 -0
  39. package/dist-types/SagemakerJobRuntimeClient.d.ts +196 -0
  40. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  41. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  42. package/dist-types/commands/CompleteRolloutCommand.d.ts +115 -0
  43. package/dist-types/commands/SampleCommand.d.ts +127 -0
  44. package/dist-types/commands/SampleWithResponseStreamCommand.d.ts +131 -0
  45. package/dist-types/commands/UpdateRewardCommand.d.ts +121 -0
  46. package/dist-types/commands/index.d.ts +4 -0
  47. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  48. package/dist-types/endpoint/bdd.d.ts +2 -0
  49. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  50. package/dist-types/extensionConfiguration.d.ts +9 -0
  51. package/dist-types/index.d.ts +17 -0
  52. package/dist-types/models/SagemakerJobRuntimeServiceException.d.ts +14 -0
  53. package/dist-types/models/enums.d.ts +18 -0
  54. package/dist-types/models/errors.d.ts +95 -0
  55. package/dist-types/models/models_0.d.ts +141 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  57. package/dist-types/runtimeConfig.d.ts +56 -0
  58. package/dist-types/runtimeConfig.native.d.ts +55 -0
  59. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  60. package/dist-types/runtimeExtensions.d.ts +17 -0
  61. package/dist-types/schemas/schemas_0.d.ts +28 -0
  62. package/dist-types/ts3.4/SagemakerJobRuntime.d.ts +75 -0
  63. package/dist-types/ts3.4/SagemakerJobRuntimeClient.d.ts +139 -0
  64. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  65. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  66. package/dist-types/ts3.4/commands/CompleteRolloutCommand.d.ts +52 -0
  67. package/dist-types/ts3.4/commands/SampleCommand.d.ts +61 -0
  68. package/dist-types/ts3.4/commands/SampleWithResponseStreamCommand.d.ts +68 -0
  69. package/dist-types/ts3.4/commands/UpdateRewardCommand.d.ts +49 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  71. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  72. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  73. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  74. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  75. package/dist-types/ts3.4/index.d.ts +11 -0
  76. package/dist-types/ts3.4/models/SagemakerJobRuntimeServiceException.d.ts +9 -0
  77. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  78. package/dist-types/ts3.4/models/errors.d.ts +58 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +34 -0
  80. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
  81. package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
  82. package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
  83. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +33 -0
  84. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  85. package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
  86. package/package.json +71 -0
@@ -0,0 +1,141 @@
1
+ import type { StreamingBlobTypes } from "@smithy/types";
2
+ import type { CompletionStatus } from "./enums";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface CompleteRolloutRequest {
7
+ /**
8
+ * The job ARN.
9
+ * @public
10
+ */
11
+ JobArn: string | undefined;
12
+ /**
13
+ * The trajectory ID to mark as complete.
14
+ * @public
15
+ */
16
+ TrajectoryId: string | undefined;
17
+ /**
18
+ * The target status for the trajectory. Defaults to READY if not specified.
19
+ * Set to FAILED if the rollout encountered an error and the trajectory should
20
+ * not be used for processing.
21
+ * @public
22
+ */
23
+ Status?: CompletionStatus | undefined;
24
+ /**
25
+ * A unique, case-sensitive identifier that you provide to ensure the
26
+ * idempotency of the request.
27
+ * @public
28
+ */
29
+ ClientToken?: string | undefined;
30
+ }
31
+ /**
32
+ * @public
33
+ */
34
+ export interface CompleteRolloutResponse {
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface SampleRequest {
40
+ /**
41
+ * The job ARN that identifies which model session
42
+ * to route the inference request to.
43
+ * @public
44
+ */
45
+ JobArn: string | undefined;
46
+ /**
47
+ * The trajectory ID for grouping turns into a single rollout. Each turn
48
+ * (prompt and response) is captured for later use.
49
+ * @public
50
+ */
51
+ TrajectoryId: string | undefined;
52
+ /**
53
+ * The raw inference request body in OpenAI-compatible JSON format.
54
+ * @public
55
+ */
56
+ Body: Uint8Array | undefined;
57
+ }
58
+ /**
59
+ * @public
60
+ */
61
+ export interface SampleResponse {
62
+ /**
63
+ * MIME type of the inference result.
64
+ * @public
65
+ */
66
+ ContentType?: string | undefined;
67
+ /**
68
+ * The raw inference response body from the model.
69
+ * @public
70
+ */
71
+ Body: Uint8Array | undefined;
72
+ }
73
+ /**
74
+ * @public
75
+ */
76
+ export interface SampleWithResponseStreamRequest {
77
+ /**
78
+ * The job ARN that identifies which model session
79
+ * to route the inference request to.
80
+ * @public
81
+ */
82
+ JobArn: string | undefined;
83
+ /**
84
+ * The trajectory ID for grouping turns into a single rollout. Each turn
85
+ * is captured for later use.
86
+ * @public
87
+ */
88
+ TrajectoryId: string | undefined;
89
+ /**
90
+ * The raw inference request body in OpenAI-compatible JSON format.
91
+ * @public
92
+ */
93
+ Body: Uint8Array | undefined;
94
+ }
95
+ /**
96
+ * @public
97
+ */
98
+ export interface SampleWithResponseStreamResponse {
99
+ /**
100
+ * MIME type of the streaming inference result.
101
+ * @public
102
+ */
103
+ ContentType?: string | undefined;
104
+ /**
105
+ * The streaming response body, delivered as a series of PayloadPart events.
106
+ * @public
107
+ */
108
+ Body: StreamingBlobTypes | undefined;
109
+ }
110
+ /**
111
+ * @public
112
+ */
113
+ export interface UpdateRewardRequest {
114
+ /**
115
+ * The job ARN.
116
+ * @public
117
+ */
118
+ JobArn: string | undefined;
119
+ /**
120
+ * The trajectory ID to update with reward values.
121
+ * @public
122
+ */
123
+ TrajectoryId: string | undefined;
124
+ /**
125
+ * The list of reward values to assign to this trajectory. Provide one reward
126
+ * value per turn in the trajectory.
127
+ * @public
128
+ */
129
+ Rewards: number[] | undefined;
130
+ /**
131
+ * A unique, case-sensitive identifier that you provide to ensure the
132
+ * idempotency of the request.
133
+ * @public
134
+ */
135
+ ClientToken?: string | undefined;
136
+ }
137
+ /**
138
+ * @public
139
+ */
140
+ export interface UpdateRewardResponse {
141
+ }
@@ -0,0 +1,56 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import type { SagemakerJobRuntimeClientConfig } from "./SagemakerJobRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SagemakerJobRuntimeClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<any>;
14
+ requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
+ sha256: import("@smithy/types").HashConstructor;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
+ cacheMiddleware?: boolean | undefined;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ defaultNamespace?: string;
24
+ [setting: string]: unknown;
25
+ };
26
+ apiVersion: string;
27
+ urlParser: import("@smithy/types").UrlParser;
28
+ base64Decoder: import("@smithy/types").Decoder;
29
+ base64Encoder: (_input: Uint8Array | string) => string;
30
+ utf8Decoder: import("@smithy/types").Decoder;
31
+ utf8Encoder: (input: Uint8Array | string) => string;
32
+ disableHostPrefix: boolean;
33
+ serviceId: string;
34
+ profile?: string;
35
+ logger: import("@smithy/types").Logger;
36
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
37
+ sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
38
+ customUserAgent?: string | import("@smithy/types").UserAgent;
39
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
40
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
41
+ 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;
42
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
43
+ logger?: import("@smithy/types").Logger;
44
+ }) => import("@smithy/types").EndpointV2;
45
+ tls?: boolean;
46
+ serviceConfiguredEndpoint?: never;
47
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
48
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
49
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerJobRuntimeHttpAuthSchemeProvider;
50
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
51
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
52
+ signingEscapePath?: boolean;
53
+ systemClockOffset?: number;
54
+ signingRegion?: string;
55
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
56
+ };
@@ -0,0 +1,56 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import type { SagemakerJobRuntimeClientConfig } from "./SagemakerJobRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SagemakerJobRuntimeClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
+ maxAttempts: number | import("@smithy/types").Provider<number>;
14
+ region: string | import("@smithy/types").Provider<string>;
15
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
+ retryMode: string | import("@smithy/types").Provider<string>;
17
+ sha256: import("@smithy/types").HashConstructor;
18
+ streamCollector: import("@smithy/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
+ cacheMiddleware?: boolean | undefined;
23
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ defaultNamespace?: string;
26
+ [setting: string]: unknown;
27
+ };
28
+ apiVersion: string;
29
+ urlParser: import("@smithy/types").UrlParser;
30
+ base64Decoder: import("@smithy/types").Decoder;
31
+ base64Encoder: (_input: Uint8Array | string) => string;
32
+ utf8Decoder: import("@smithy/types").Decoder;
33
+ utf8Encoder: (input: Uint8Array | string) => string;
34
+ disableHostPrefix: boolean;
35
+ serviceId: string;
36
+ profile?: string;
37
+ logger: import("@smithy/types").Logger;
38
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
+ sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
40
+ customUserAgent?: string | import("@smithy/types").UserAgent;
41
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
42
+ 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;
43
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
44
+ logger?: import("@smithy/types").Logger;
45
+ }) => import("@smithy/types").EndpointV2;
46
+ tls?: boolean;
47
+ serviceConfiguredEndpoint?: never;
48
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
49
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerJobRuntimeHttpAuthSchemeProvider;
50
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
51
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
52
+ signingEscapePath?: boolean;
53
+ systemClockOffset?: number;
54
+ signingRegion?: string;
55
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
56
+ };
@@ -0,0 +1,55 @@
1
+ import type { SagemakerJobRuntimeClientConfig } from "./SagemakerJobRuntimeClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SagemakerJobRuntimeClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@smithy/types").HashConstructor;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
+ cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
16
+ urlParser: import("@smithy/types").UrlParser;
17
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
+ streamCollector: import("@smithy/types").StreamCollector;
19
+ base64Decoder: import("@smithy/types").Decoder;
20
+ base64Encoder: (_input: Uint8Array | string) => string;
21
+ utf8Decoder: import("@smithy/types").Decoder;
22
+ utf8Encoder: (input: Uint8Array | string) => string;
23
+ disableHostPrefix: boolean;
24
+ serviceId: string;
25
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
26
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
+ region: string | import("@smithy/types").Provider<any>;
28
+ profile?: string;
29
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
30
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
31
+ maxAttempts: number | import("@smithy/types").Provider<number>;
32
+ retryMode: string | import("@smithy/types").Provider<string>;
33
+ logger: import("@smithy/types").Logger;
34
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ defaultsMode: import("@smithy/core/client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
36
+ sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
37
+ customUserAgent?: string | import("@smithy/types").UserAgent;
38
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
39
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
+ 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;
41
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
42
+ logger?: import("@smithy/types").Logger;
43
+ }) => import("@smithy/types").EndpointV2;
44
+ tls?: boolean;
45
+ serviceConfiguredEndpoint?: never;
46
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
47
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
48
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerJobRuntimeHttpAuthSchemeProvider;
49
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
50
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
51
+ signingEscapePath?: boolean;
52
+ systemClockOffset?: number;
53
+ signingRegion?: string;
54
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
55
+ };
@@ -0,0 +1,28 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import type { SagemakerJobRuntimeClientConfig } from "./SagemakerJobRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SagemakerJobRuntimeClientConfig) => {
7
+ apiVersion: string;
8
+ base64Decoder: import("@smithy/types").Decoder;
9
+ base64Encoder: (_input: Uint8Array | string) => string;
10
+ disableHostPrefix: boolean;
11
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
12
+ logger?: import("@smithy/types").Logger;
13
+ }) => import("@smithy/types").EndpointV2;
14
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
15
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerJobRuntimeHttpAuthSchemeProvider;
16
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
+ logger: import("@smithy/types").Logger;
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
19
+ protocolSettings: {
20
+ [setting: string]: unknown;
21
+ defaultNamespace?: string;
22
+ };
23
+ sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
24
+ serviceId: string;
25
+ urlParser: import("@smithy/types").UrlParser;
26
+ utf8Decoder: import("@smithy/types").Decoder;
27
+ utf8Encoder: (input: Uint8Array | string) => string;
28
+ };
@@ -0,0 +1,17 @@
1
+ import type { SagemakerJobRuntimeExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: SagemakerJobRuntimeExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,28 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SagemakerJobRuntimeServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServiceError$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
17
+ export declare var CompleteRolloutRequest$: StaticStructureSchema;
18
+ export declare var CompleteRolloutResponse$: StaticStructureSchema;
19
+ export declare var SampleRequest$: StaticStructureSchema;
20
+ export declare var SampleResponse$: StaticStructureSchema;
21
+ export declare var SampleWithResponseStreamRequest$: StaticStructureSchema;
22
+ export declare var SampleWithResponseStreamResponse$: StaticStructureSchema;
23
+ export declare var UpdateRewardRequest$: StaticStructureSchema;
24
+ export declare var UpdateRewardResponse$: StaticStructureSchema;
25
+ export declare var CompleteRollout$: StaticOperationSchema;
26
+ export declare var Sample$: StaticOperationSchema;
27
+ export declare var SampleWithResponseStream$: StaticOperationSchema;
28
+ export declare var UpdateReward$: StaticOperationSchema;
@@ -0,0 +1,75 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ CompleteRolloutCommandInput,
4
+ CompleteRolloutCommandOutput,
5
+ } from "./commands/CompleteRolloutCommand";
6
+ import {
7
+ SampleCommandInput,
8
+ SampleCommandOutput,
9
+ } from "./commands/SampleCommand";
10
+ import {
11
+ SampleWithResponseStreamCommandInput,
12
+ SampleWithResponseStreamCommandOutput,
13
+ } from "./commands/SampleWithResponseStreamCommand";
14
+ import {
15
+ UpdateRewardCommandInput,
16
+ UpdateRewardCommandOutput,
17
+ } from "./commands/UpdateRewardCommand";
18
+ import { SagemakerJobRuntimeClient } from "./SagemakerJobRuntimeClient";
19
+ export interface SagemakerJobRuntime {
20
+ completeRollout(
21
+ args: CompleteRolloutCommandInput,
22
+ options?: __HttpHandlerOptions
23
+ ): Promise<CompleteRolloutCommandOutput>;
24
+ completeRollout(
25
+ args: CompleteRolloutCommandInput,
26
+ cb: (err: any, data?: CompleteRolloutCommandOutput) => void
27
+ ): void;
28
+ completeRollout(
29
+ args: CompleteRolloutCommandInput,
30
+ options: __HttpHandlerOptions,
31
+ cb: (err: any, data?: CompleteRolloutCommandOutput) => void
32
+ ): void;
33
+ sample(
34
+ args: SampleCommandInput,
35
+ options?: __HttpHandlerOptions
36
+ ): Promise<SampleCommandOutput>;
37
+ sample(
38
+ args: SampleCommandInput,
39
+ cb: (err: any, data?: SampleCommandOutput) => void
40
+ ): void;
41
+ sample(
42
+ args: SampleCommandInput,
43
+ options: __HttpHandlerOptions,
44
+ cb: (err: any, data?: SampleCommandOutput) => void
45
+ ): void;
46
+ sampleWithResponseStream(
47
+ args: SampleWithResponseStreamCommandInput,
48
+ options?: __HttpHandlerOptions
49
+ ): Promise<SampleWithResponseStreamCommandOutput>;
50
+ sampleWithResponseStream(
51
+ args: SampleWithResponseStreamCommandInput,
52
+ cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void
53
+ ): void;
54
+ sampleWithResponseStream(
55
+ args: SampleWithResponseStreamCommandInput,
56
+ options: __HttpHandlerOptions,
57
+ cb: (err: any, data?: SampleWithResponseStreamCommandOutput) => void
58
+ ): void;
59
+ updateReward(
60
+ args: UpdateRewardCommandInput,
61
+ options?: __HttpHandlerOptions
62
+ ): Promise<UpdateRewardCommandOutput>;
63
+ updateReward(
64
+ args: UpdateRewardCommandInput,
65
+ cb: (err: any, data?: UpdateRewardCommandOutput) => void
66
+ ): void;
67
+ updateReward(
68
+ args: UpdateRewardCommandInput,
69
+ options: __HttpHandlerOptions,
70
+ cb: (err: any, data?: UpdateRewardCommandOutput) => void
71
+ ): void;
72
+ }
73
+ export declare class SagemakerJobRuntime
74
+ extends SagemakerJobRuntimeClient
75
+ implements SagemakerJobRuntime {}
@@ -0,0 +1,139 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ UserAgentInputConfig,
5
+ UserAgentResolvedConfig,
6
+ } from "@aws-sdk/core/client";
7
+ import {
8
+ DefaultsMode as __DefaultsMode,
9
+ SmithyConfiguration as __SmithyConfiguration,
10
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
11
+ Client as __Client,
12
+ } from "@smithy/core/client";
13
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
14
+ import {
15
+ EndpointInputConfig,
16
+ EndpointResolvedConfig,
17
+ } from "@smithy/core/endpoints";
18
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
19
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
20
+ import {
21
+ AwsCredentialIdentityProvider,
22
+ BodyLengthCalculator as __BodyLengthCalculator,
23
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
24
+ ChecksumConstructor as __ChecksumConstructor,
25
+ Decoder as __Decoder,
26
+ Encoder as __Encoder,
27
+ HashConstructor as __HashConstructor,
28
+ HttpHandlerOptions as __HttpHandlerOptions,
29
+ Logger as __Logger,
30
+ Provider as __Provider,
31
+ SdkStreamMixinInjector as __SdkStreamMixinInjector,
32
+ StreamCollector as __StreamCollector,
33
+ UrlParser as __UrlParser,
34
+ UserAgent as __UserAgent,
35
+ } from "@smithy/types";
36
+ import {
37
+ HttpAuthSchemeInputConfig,
38
+ HttpAuthSchemeResolvedConfig,
39
+ } from "./auth/httpAuthSchemeProvider";
40
+ import {
41
+ CompleteRolloutCommandInput,
42
+ CompleteRolloutCommandOutput,
43
+ } from "./commands/CompleteRolloutCommand";
44
+ import {
45
+ SampleCommandInput,
46
+ SampleCommandOutput,
47
+ } from "./commands/SampleCommand";
48
+ import {
49
+ SampleWithResponseStreamCommandInput,
50
+ SampleWithResponseStreamCommandOutput,
51
+ } from "./commands/SampleWithResponseStreamCommand";
52
+ import {
53
+ UpdateRewardCommandInput,
54
+ UpdateRewardCommandOutput,
55
+ } from "./commands/UpdateRewardCommand";
56
+ import {
57
+ ClientInputEndpointParameters,
58
+ ClientResolvedEndpointParameters,
59
+ EndpointParameters,
60
+ } from "./endpoint/EndpointParameters";
61
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
62
+ export { __Client };
63
+ export type ServiceInputTypes =
64
+ | CompleteRolloutCommandInput
65
+ | SampleCommandInput
66
+ | SampleWithResponseStreamCommandInput
67
+ | UpdateRewardCommandInput;
68
+ export type ServiceOutputTypes =
69
+ | CompleteRolloutCommandOutput
70
+ | SampleCommandOutput
71
+ | SampleWithResponseStreamCommandOutput
72
+ | UpdateRewardCommandOutput;
73
+ export interface ClientDefaults
74
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
75
+ requestHandler?: __HttpHandlerUserInput;
76
+ sha256?: __ChecksumConstructor | __HashConstructor;
77
+ urlParser?: __UrlParser;
78
+ bodyLengthChecker?: __BodyLengthCalculator;
79
+ streamCollector?: __StreamCollector;
80
+ base64Decoder?: __Decoder;
81
+ base64Encoder?: __Encoder;
82
+ utf8Decoder?: __Decoder;
83
+ utf8Encoder?: __Encoder;
84
+ runtime?: string;
85
+ disableHostPrefix?: boolean;
86
+ serviceId?: string;
87
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
88
+ useFipsEndpoint?: boolean | __Provider<boolean>;
89
+ region?: string | __Provider<string>;
90
+ profile?: string;
91
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
92
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
93
+ maxAttempts?: number | __Provider<number>;
94
+ retryMode?: string | __Provider<string>;
95
+ logger?: __Logger;
96
+ extensions?: RuntimeExtension[];
97
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
98
+ sdkStreamMixin?: __SdkStreamMixinInjector;
99
+ }
100
+ export type SagemakerJobRuntimeClientConfigType = Partial<
101
+ __SmithyConfiguration<__HttpHandlerOptions>
102
+ > &
103
+ ClientDefaults &
104
+ UserAgentInputConfig &
105
+ RetryInputConfig &
106
+ RegionInputConfig &
107
+ HostHeaderInputConfig &
108
+ EndpointInputConfig<EndpointParameters> &
109
+ HttpAuthSchemeInputConfig &
110
+ ClientInputEndpointParameters;
111
+ export interface SagemakerJobRuntimeClientConfig
112
+ extends SagemakerJobRuntimeClientConfigType {}
113
+ export type SagemakerJobRuntimeClientResolvedConfigType =
114
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
115
+ Required<ClientDefaults> &
116
+ RuntimeExtensionsConfig &
117
+ UserAgentResolvedConfig &
118
+ RetryResolvedConfig &
119
+ RegionResolvedConfig &
120
+ HostHeaderResolvedConfig &
121
+ EndpointResolvedConfig<EndpointParameters> &
122
+ HttpAuthSchemeResolvedConfig &
123
+ ClientResolvedEndpointParameters;
124
+ export interface SagemakerJobRuntimeClientResolvedConfig
125
+ extends SagemakerJobRuntimeClientResolvedConfigType {}
126
+ export declare class SagemakerJobRuntimeClient extends __Client<
127
+ __HttpHandlerOptions,
128
+ ServiceInputTypes,
129
+ ServiceOutputTypes,
130
+ SagemakerJobRuntimeClientResolvedConfig
131
+ > {
132
+ readonly config: SagemakerJobRuntimeClientResolvedConfig;
133
+ constructor(
134
+ ...[
135
+ configuration,
136
+ ]: __CheckOptionalClientConfig<SagemakerJobRuntimeClientConfig>
137
+ );
138
+ destroy(): void;
139
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { SagemakerJobRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): SagemakerJobRuntimeHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: SagemakerJobRuntimeHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;