@aws-sdk/client-sagemaker-runtime-http2 3.1075.0 → 3.1077.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
@@ -1,23 +1,61 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
4
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
5
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
6
5
  exports.$Command = Command;
7
6
  exports.__Client = Client;
8
- const { resolveRegionConfig } = require("@smithy/core/config");
9
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
10
- const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
11
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
12
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
13
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
14
- const { resolveHttpAuthSchemeConfig, defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
15
- const { getRuntimeConfig } = require("./runtimeConfig");
16
- const { InvokeEndpointWithBidirectionalStream$ } = require("./schemas/schemas_0");
17
- __exportStar(require("./schemas/schemas_0"), exports);
18
- __exportStar(require("./models/errors"), exports);
19
- const { SageMakerRuntimeHTTP2ServiceException } = require("./models/SageMakerRuntimeHTTP2ServiceException");
20
- exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
7
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
10
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
11
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
12
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
13
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
14
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
+ const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
16
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
17
+ const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
18
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
19
+ const { Sha256 } = require("@smithy/core/checksum");
20
+
21
+ const defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = async (config, context, input) => {
22
+ return {
23
+ operation: getSmithyContext(context).operation,
24
+ region: await normalizeProvider(config.region)() || (() => {
25
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
26
+ })(),
27
+ };
28
+ };
29
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
30
+ return {
31
+ schemeId: "aws.auth#sigv4",
32
+ signingProperties: {
33
+ name: "sagemaker",
34
+ region: authParameters.region,
35
+ },
36
+ propertiesExtractor: (config, context) => ({
37
+ signingProperties: {
38
+ config,
39
+ context,
40
+ },
41
+ }),
42
+ };
43
+ }
44
+ const defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = (authParameters) => {
45
+ const options = [];
46
+ switch (authParameters.operation) {
47
+ default: {
48
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
49
+ }
50
+ }
51
+ return options;
52
+ };
53
+ const resolveHttpAuthSchemeConfig = (config) => {
54
+ const config_0 = resolveAwsSdkSigV4Config(config);
55
+ return Object.assign(config_0, {
56
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
57
+ });
58
+ };
21
59
 
22
60
  const resolveClientEndpointParameters = (options) => {
23
61
  return Object.assign(options, {
@@ -33,6 +71,392 @@ const commonParams = {
33
71
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
34
72
  };
35
73
 
74
+ var version = "3.1076.0";
75
+ var packageInfo = {
76
+ version: version};
77
+
78
+ const m = "ref";
79
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
80
+ const _data = {
81
+ conditions: [
82
+ [c, [h]],
83
+ [c, l],
84
+ ["aws.partition", l, d],
85
+ [e, [i, "aws"]],
86
+ [e, [i, "aws-cn"]],
87
+ [e, [i, "aws-us-gov"]],
88
+ [e, [i, "aws-iso"]],
89
+ [e, [i, "aws-iso-b"]],
90
+ [e, [i, "aws-eusc"]],
91
+ [e, [i, "aws-iso-f"]],
92
+ [f, [{ [m]: "UseFIPS" }, b]],
93
+ [f, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
94
+ [f, [{ [m]: "UseDualStack" }, b]],
95
+ [f, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
96
+ ],
97
+ results: [
98
+ [a],
99
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
100
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
101
+ [h, k],
102
+ ["https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443", k],
103
+ ["https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443", k],
104
+ ["https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443", k],
105
+ ["https://runtime-fips.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443", k],
106
+ ["https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
107
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
108
+ ["https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", k],
109
+ [a, "FIPS is enabled but this partition does not support FIPS"],
110
+ ["https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
111
+ [a, "DualStack is enabled but this partition does not support DualStack"],
112
+ ["https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", k],
113
+ [a, "Invalid Configuration: Missing Region"]
114
+ ]
115
+ };
116
+ const root = 2;
117
+ const r = 100_000_000;
118
+ const nodes = new Int32Array([
119
+ -1, 1, -1,
120
+ 0, 22, 3,
121
+ 1, 4, r + 15,
122
+ 2, 5, r + 15,
123
+ 3, 19, 6,
124
+ 4, 19, 7,
125
+ 5, 19, 8,
126
+ 6, 19, 9,
127
+ 7, 19, 10,
128
+ 8, 19, 11,
129
+ 9, 19, 12,
130
+ 10, 15, 13,
131
+ 12, 14, r + 14,
132
+ 13, r + 12, r + 13,
133
+ 11, 17, 16,
134
+ 12, r + 9, r + 11,
135
+ 12, 18, r + 10,
136
+ 13, r + 8, r + 9,
137
+ 10, 21, 20,
138
+ 12, r + 5, r + 4,
139
+ 12, r + 7, r + 6,
140
+ 10, r + 1, 23,
141
+ 12, r + 2, r + 3,
142
+ ]);
143
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
144
+
145
+ const cache = new EndpointCache({
146
+ size: 50,
147
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
148
+ });
149
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
150
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
151
+ endpointParams: endpointParams,
152
+ logger: context.logger,
153
+ }));
154
+ };
155
+ customEndpointFunctions.aws = awsEndpointFunctions;
156
+
157
+ class SageMakerRuntimeHTTP2ServiceException extends ServiceException {
158
+ constructor(options) {
159
+ super(options);
160
+ Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
161
+ }
162
+ }
163
+
164
+ class InputValidationError extends SageMakerRuntimeHTTP2ServiceException {
165
+ name = "InputValidationError";
166
+ $fault = "client";
167
+ Message;
168
+ ErrorCode;
169
+ constructor(opts) {
170
+ super({
171
+ name: "InputValidationError",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, InputValidationError.prototype);
176
+ this.Message = opts.Message;
177
+ this.ErrorCode = opts.ErrorCode;
178
+ }
179
+ }
180
+ class InternalServerError extends SageMakerRuntimeHTTP2ServiceException {
181
+ name = "InternalServerError";
182
+ $fault = "server";
183
+ Message;
184
+ ErrorCode;
185
+ constructor(opts) {
186
+ super({
187
+ name: "InternalServerError",
188
+ $fault: "server",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, InternalServerError.prototype);
192
+ this.Message = opts.Message;
193
+ this.ErrorCode = opts.ErrorCode;
194
+ }
195
+ }
196
+ class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException {
197
+ name = "InternalStreamFailure";
198
+ $fault = "server";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "InternalStreamFailure",
203
+ $fault: "server",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, InternalStreamFailure.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException {
211
+ name = "ModelStreamError";
212
+ $fault = "client";
213
+ Message;
214
+ ErrorCode;
215
+ constructor(opts) {
216
+ super({
217
+ name: "ModelStreamError",
218
+ $fault: "client",
219
+ ...opts,
220
+ });
221
+ Object.setPrototypeOf(this, ModelStreamError.prototype);
222
+ this.Message = opts.Message;
223
+ this.ErrorCode = opts.ErrorCode;
224
+ }
225
+ }
226
+ class ModelError extends SageMakerRuntimeHTTP2ServiceException {
227
+ name = "ModelError";
228
+ $fault = "client";
229
+ Message;
230
+ OriginalStatusCode;
231
+ OriginalMessage;
232
+ LogStreamArn;
233
+ ErrorCode;
234
+ constructor(opts) {
235
+ super({
236
+ name: "ModelError",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, ModelError.prototype);
241
+ this.Message = opts.Message;
242
+ this.OriginalStatusCode = opts.OriginalStatusCode;
243
+ this.OriginalMessage = opts.OriginalMessage;
244
+ this.LogStreamArn = opts.LogStreamArn;
245
+ this.ErrorCode = opts.ErrorCode;
246
+ }
247
+ }
248
+ class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException {
249
+ name = "ServiceUnavailableError";
250
+ $fault = "server";
251
+ Message;
252
+ ErrorCode;
253
+ constructor(opts) {
254
+ super({
255
+ name: "ServiceUnavailableError",
256
+ $fault: "server",
257
+ ...opts,
258
+ });
259
+ Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
260
+ this.Message = opts.Message;
261
+ this.ErrorCode = opts.ErrorCode;
262
+ }
263
+ }
264
+
265
+ const _B = "Body";
266
+ const _By = "Bytes";
267
+ const _CS = "CompletionState";
268
+ const _DT = "DataType";
269
+ const _EC = "ErrorCode";
270
+ const _EN = "EndpointName";
271
+ const _IEWBS = "InvokeEndpointWithBidirectionalStream";
272
+ const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
273
+ const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
274
+ const _IPV = "InvokedProductionVariant";
275
+ const _ISE = "InternalServerError";
276
+ const _ISF = "InternalStreamFailure";
277
+ const _IVE = "InputValidationError";
278
+ const _LSA = "LogStreamArn";
279
+ const _M = "Message";
280
+ const _ME = "ModelError";
281
+ const _MIP = "ModelInvocationPath";
282
+ const _MQS = "ModelQueryString";
283
+ const _MSE = "ModelStreamError";
284
+ const _OM = "OriginalMessage";
285
+ const _OSC = "OriginalStatusCode";
286
+ const _P = "P";
287
+ const _PP = "PayloadPart";
288
+ const _RPP = "RequestPayloadPart";
289
+ const _RPPe = "ResponsePayloadPart";
290
+ const _RSE = "RequestStreamEvent";
291
+ const _RSEe = "ResponseStreamEvent";
292
+ const _SB = "SensitiveBlob";
293
+ const _SUE = "ServiceUnavailableError";
294
+ const _TV = "TargetVariant";
295
+ const _XAIPV = "X-Amzn-Invoked-Production-Variant";
296
+ const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
297
+ const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
298
+ const _XASTV = "X-Amzn-SageMaker-Target-Variant";
299
+ const _c = "client";
300
+ const _e = "error";
301
+ const _eH = "eventHeader";
302
+ const _eP = "eventPayload";
303
+ const _h = "http";
304
+ const _hE = "httpError";
305
+ const _hH = "httpHeader";
306
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
307
+ const _se = "server";
308
+ const _st = "streaming";
309
+ const n0 = "com.amazonaws.sagemakerruntimehttp2";
310
+ const _s_registry = TypeRegistry.for(_s);
311
+ var SageMakerRuntimeHTTP2ServiceException$ = [-3, _s, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
312
+ _s_registry.registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
313
+ const n0_registry = TypeRegistry.for(n0);
314
+ var InputValidationError$ = [-3, n0, _IVE,
315
+ { [_e]: _c, [_hE]: 400 },
316
+ [_M, _EC],
317
+ [0, 0]
318
+ ];
319
+ n0_registry.registerError(InputValidationError$, InputValidationError);
320
+ var InternalServerError$ = [-3, n0, _ISE,
321
+ { [_e]: _se, [_hE]: 500 },
322
+ [_M, _EC],
323
+ [0, 0]
324
+ ];
325
+ n0_registry.registerError(InternalServerError$, InternalServerError);
326
+ var InternalStreamFailure$ = [-3, n0, _ISF,
327
+ { [_e]: _se },
328
+ [_M],
329
+ [0]
330
+ ];
331
+ n0_registry.registerError(InternalStreamFailure$, InternalStreamFailure);
332
+ var ModelError$ = [-3, n0, _ME,
333
+ { [_e]: _c, [_hE]: 424 },
334
+ [_M, _OSC, _OM, _LSA, _EC],
335
+ [0, 1, 0, 0, 0]
336
+ ];
337
+ n0_registry.registerError(ModelError$, ModelError);
338
+ var ModelStreamError$ = [-3, n0, _MSE,
339
+ { [_e]: _c },
340
+ [_M, _EC],
341
+ [0, 0]
342
+ ];
343
+ n0_registry.registerError(ModelStreamError$, ModelStreamError);
344
+ var ServiceUnavailableError$ = [-3, n0, _SUE,
345
+ { [_e]: _se, [_hE]: 503 },
346
+ [_M, _EC],
347
+ [0, 0]
348
+ ];
349
+ n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
350
+ const errorTypeRegistries = [
351
+ _s_registry,
352
+ n0_registry,
353
+ ];
354
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
355
+ var InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
356
+ 0,
357
+ [_EN, _B, _TV, _MIP, _MQS],
358
+ [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
359
+ ];
360
+ var InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
361
+ 0,
362
+ [_B, _IPV],
363
+ [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
364
+ ];
365
+ var RequestPayloadPart$ = [3, n0, _RPP,
366
+ 0,
367
+ [_By, _DT, _CS, _P],
368
+ [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
369
+ ];
370
+ var ResponsePayloadPart$ = [3, n0, _RPPe,
371
+ 0,
372
+ [_By, _DT, _CS, _P],
373
+ [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
374
+ ];
375
+ var RequestStreamEvent$ = [4, n0, _RSE,
376
+ { [_st]: 1 },
377
+ [_PP],
378
+ [[() => RequestPayloadPart$, 0]]
379
+ ];
380
+ var ResponseStreamEvent$ = [4, n0, _RSEe,
381
+ { [_st]: 1 },
382
+ [_PP, _MSE, _ISF],
383
+ [[() => ResponsePayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
384
+ ];
385
+ var InvokeEndpointWithBidirectionalStream$ = [9, n0, _IEWBS,
386
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => InvokeEndpointWithBidirectionalStreamInput$, () => InvokeEndpointWithBidirectionalStreamOutput$
387
+ ];
388
+
389
+ const getRuntimeConfig$1 = (config) => {
390
+ return {
391
+ apiVersion: "2025-10-01",
392
+ base64Decoder: config?.base64Decoder ?? fromBase64,
393
+ base64Encoder: config?.base64Encoder ?? toBase64,
394
+ disableHostPrefix: config?.disableHostPrefix ?? false,
395
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
396
+ extensions: config?.extensions ?? [],
397
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider,
398
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
399
+ {
400
+ schemeId: "aws.auth#sigv4",
401
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
402
+ signer: new AwsSdkSigV4Signer(),
403
+ },
404
+ ],
405
+ logger: config?.logger ?? new NoOpLogger(),
406
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
407
+ protocolSettings: config?.protocolSettings ?? {
408
+ defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
409
+ errorTypeRegistries,
410
+ version: "2025-10-01",
411
+ serviceTarget: "AmazonSageMakerRuntimeHttp2",
412
+ },
413
+ serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
414
+ sha256: config?.sha256 ?? Sha256,
415
+ urlParser: config?.urlParser ?? parseUrl,
416
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
417
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
418
+ };
419
+ };
420
+
421
+ const getRuntimeConfig = (config) => {
422
+ emitWarningIfUnsupportedVersion(process.version);
423
+ const defaultsMode = resolveDefaultsModeConfig(config);
424
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
425
+ const clientSharedValues = getRuntimeConfig$1(config);
426
+ emitWarningIfUnsupportedVersion$1(process.version);
427
+ const loaderConfig = {
428
+ profile: config?.profile,
429
+ logger: clientSharedValues.logger,
430
+ };
431
+ return {
432
+ ...clientSharedValues,
433
+ ...config,
434
+ runtime: "node",
435
+ defaultsMode,
436
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
437
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
438
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
439
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
440
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
441
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
442
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
443
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
444
+ requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
445
+ ...await defaultConfigProvider(),
446
+ disableConcurrentStreams: true
447
+ }))),
448
+ retryMode: config?.retryMode ??
449
+ loadConfig({
450
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
451
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
452
+ }, config),
453
+ streamCollector: config?.streamCollector ?? streamCollector,
454
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
455
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
456
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
457
+ };
458
+ };
459
+
36
460
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
461
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
462
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -142,6 +566,28 @@ class SageMakerRuntimeHTTP2 extends SageMakerRuntimeHTTP2Client {
142
566
  }
143
567
  createAggregatedClient(commands, SageMakerRuntimeHTTP2);
144
568
 
569
+ exports.InputValidationError = InputValidationError;
570
+ exports.InputValidationError$ = InputValidationError$;
571
+ exports.InternalServerError = InternalServerError;
572
+ exports.InternalServerError$ = InternalServerError$;
573
+ exports.InternalStreamFailure = InternalStreamFailure;
574
+ exports.InternalStreamFailure$ = InternalStreamFailure$;
575
+ exports.InvokeEndpointWithBidirectionalStream$ = InvokeEndpointWithBidirectionalStream$;
145
576
  exports.InvokeEndpointWithBidirectionalStreamCommand = InvokeEndpointWithBidirectionalStreamCommand;
577
+ exports.InvokeEndpointWithBidirectionalStreamInput$ = InvokeEndpointWithBidirectionalStreamInput$;
578
+ exports.InvokeEndpointWithBidirectionalStreamOutput$ = InvokeEndpointWithBidirectionalStreamOutput$;
579
+ exports.ModelError = ModelError;
580
+ exports.ModelError$ = ModelError$;
581
+ exports.ModelStreamError = ModelStreamError;
582
+ exports.ModelStreamError$ = ModelStreamError$;
583
+ exports.RequestPayloadPart$ = RequestPayloadPart$;
584
+ exports.RequestStreamEvent$ = RequestStreamEvent$;
585
+ exports.ResponsePayloadPart$ = ResponsePayloadPart$;
586
+ exports.ResponseStreamEvent$ = ResponseStreamEvent$;
146
587
  exports.SageMakerRuntimeHTTP2 = SageMakerRuntimeHTTP2;
147
588
  exports.SageMakerRuntimeHTTP2Client = SageMakerRuntimeHTTP2Client;
589
+ exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
590
+ exports.SageMakerRuntimeHTTP2ServiceException$ = SageMakerRuntimeHTTP2ServiceException$;
591
+ exports.ServiceUnavailableError = ServiceUnavailableError;
592
+ exports.ServiceUnavailableError$ = ServiceUnavailableError$;
593
+ exports.errorTypeRegistries = errorTypeRegistries;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidFunction, invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -28,7 +27,6 @@ export const getRuntimeConfig = (config) => {
28
27
  region: config?.region ?? invalidProvider("Region is missing"),
29
28
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
- sha256: config?.sha256 ?? Sha256,
32
30
  streamCollector: config?.streamCollector ?? streamCollector,
33
31
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
34
32
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -7,7 +7,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
7
7
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
8
  import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
9
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
10
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
+ import { calculateBodyLength } from "@smithy/core/serde";
11
11
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
13
  export const getRuntimeConfig = (config) => {
@@ -42,7 +42,6 @@ export const getRuntimeConfig = (config) => {
42
42
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
43
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
44
44
  }, config),
45
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
45
  streamCollector: config?.streamCollector ?? streamCollector,
47
46
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
47
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { invalidFunction } from "@smithy/core/client";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
3
  export const getRuntimeConfig = (config) => {
@@ -10,6 +9,5 @@ export const getRuntimeConfig = (config) => {
10
9
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
11
10
  handle: invalidFunction("event stream request is not supported in ReactNative."),
12
11
  })),
13
- sha256: config?.sha256 ?? Sha256,
14
12
  };
15
13
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -15,8 +15,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
15
15
  region: string | import("@smithy/types").Provider<any>;
16
16
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
22
21
  cacheMiddleware?: boolean | undefined;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,8 +16,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
16
16
  region: string | import("@smithy/types").Provider<string>;
17
17
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
- streamCollector: import("@smithy/types").StreamCollector;
19
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
22
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
28
27
  [setting: string]: unknown;
29
28
  };
30
29
  apiVersion: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -5,7 +5,6 @@ import type { SageMakerRuntimeHTTP2ClientConfig } from "./SageMakerRuntimeHTTP2C
5
5
  export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfig) => {
6
6
  runtime: string;
7
7
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
8
- sha256: import("@smithy/types").HashConstructor;
9
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;
10
9
  cacheMiddleware?: boolean;
11
10
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
@@ -14,9 +13,10 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
14
13
  [setting: string]: unknown;
15
14
  };
16
15
  apiVersion: string;
16
+ sha256: import("@smithy/types").HashConstructor;
17
17
  urlParser: import("@smithy/types").UrlParser;
18
18
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
19
- streamCollector: import("@smithy/types").StreamCollector;
19
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
20
  base64Decoder: import("@smithy/types").Decoder;
21
21
  base64Encoder: (_input: Uint8Array | string) => string;
22
22
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeHTTP2ClientConfi
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -24,8 +24,13 @@ export declare const getRuntimeConfig: (
24
24
  | import("@smithy/core/protocols").HttpHandler<any>
25
25
  | RequestHandler;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
27
- sha256: import("@smithy/types").HashConstructor;
28
- streamCollector: import("@smithy/types").StreamCollector;
27
+ streamCollector: (
28
+ stream:
29
+ | import("stream").Readable
30
+ | import("stream/web").ReadableStream
31
+ | ReadableStream
32
+ | Blob
33
+ ) => Promise<Uint8Array>;
29
34
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
30
35
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
31
36
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -40,6 +45,7 @@ export declare const getRuntimeConfig: (
40
45
  [setting: string]: unknown;
41
46
  };
42
47
  apiVersion: string;
48
+ sha256: import("@smithy/types").HashConstructor;
43
49
  urlParser: import("@smithy/types").UrlParser;
44
50
  base64Decoder: import("@smithy/types").Decoder;
45
51
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -25,8 +25,13 @@ export declare const getRuntimeConfig: (
25
25
  | RequestHandler
26
26
  | import("@smithy/core/protocols").HttpHandler<any>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
- sha256: import("@smithy/types").HashConstructor;
29
- streamCollector: import("@smithy/types").StreamCollector;
28
+ streamCollector: (
29
+ stream:
30
+ | import("stream").Readable
31
+ | import("stream/web").ReadableStream
32
+ | ReadableStream
33
+ | Blob
34
+ ) => Promise<Uint8Array>;
30
35
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
36
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
32
37
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -40,6 +45,7 @@ export declare const getRuntimeConfig: (
40
45
  [setting: string]: unknown;
41
46
  };
42
47
  apiVersion: string;
48
+ sha256: import("@smithy/types").HashConstructor;
43
49
  urlParser: import("@smithy/types").UrlParser;
44
50
  base64Decoder: import("@smithy/types").Decoder;
45
51
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ export declare const getRuntimeConfig: (
4
4
  ) => {
5
5
  runtime: string;
6
6
  eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler:
9
8
  | import("@smithy/types").NodeHttpHandlerOptions
10
9
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -21,9 +20,16 @@ export declare const getRuntimeConfig: (
21
20
  [setting: string]: unknown;
22
21
  };
23
22
  apiVersion: string;
23
+ sha256: import("@smithy/types").HashConstructor;
24
24
  urlParser: import("@smithy/types").UrlParser;
25
25
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
26
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
27
33
  base64Decoder: import("@smithy/types").Decoder;
28
34
  base64Encoder: (_input: Uint8Array | string) => string;
29
35
  utf8Decoder: import("@smithy/types").Decoder;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (
26
26
  defaultNamespace?: string;
27
27
  };
28
28
  serviceId: string;
29
+ sha256: import("@smithy/types").HashConstructor;
29
30
  urlParser: import("@smithy/types").UrlParser;
30
31
  utf8Decoder: import("@smithy/types").Decoder;
31
32
  utf8Encoder: (input: Uint8Array | string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime-http2",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Http2 Client for Node.js, Browser and React Native",
4
- "version": "3.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -23,21 +23,19 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@aws-crypto/sha256-browser": "5.2.0",
27
- "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.23",
29
- "@aws-sdk/credential-provider-node": "^3.972.58",
30
- "@aws-sdk/eventstream-handler-node": "^3.972.22",
31
- "@aws-sdk/middleware-eventstream": "^3.972.18",
32
- "@aws-sdk/types": "^3.973.13",
33
- "@smithy/core": "^3.24.6",
34
- "@smithy/fetch-http-handler": "^5.4.6",
35
- "@smithy/node-http-handler": "^4.7.6",
36
- "@smithy/types": "^4.14.3",
26
+ "@aws-sdk/core": "^3.974.25",
27
+ "@aws-sdk/credential-provider-node": "^3.972.60",
28
+ "@aws-sdk/eventstream-handler-node": "^3.972.24",
29
+ "@aws-sdk/middleware-eventstream": "^3.972.20",
30
+ "@aws-sdk/types": "^3.973.14",
31
+ "@smithy/core": "^3.28.0",
32
+ "@smithy/fetch-http-handler": "^5.6.1",
33
+ "@smithy/node-http-handler": "^4.9.1",
34
+ "@smithy/types": "^4.15.0",
37
35
  "tslib": "^2.6.2"
38
36
  },
39
37
  "devDependencies": {
40
- "@smithy/snapshot-testing": "^2.1.7",
38
+ "@smithy/snapshot-testing": "^2.2.4",
41
39
  "@tsconfig/node20": "20.1.8",
42
40
  "@types/node": "^20.14.8",
43
41
  "concurrently": "7.0.0",
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "sagemaker",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,67 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const m = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [h]],
7
- [c, l],
8
- ["aws.partition", l, d],
9
- [e, [i, "aws"]],
10
- [e, [i, "aws-cn"]],
11
- [e, [i, "aws-us-gov"]],
12
- [e, [i, "aws-iso"]],
13
- [e, [i, "aws-iso-b"]],
14
- [e, [i, "aws-eusc"]],
15
- [e, [i, "aws-iso-f"]],
16
- [f, [{ [m]: "UseFIPS" }, b]],
17
- [f, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
18
- [f, [{ [m]: "UseDualStack" }, b]],
19
- [f, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
20
- ],
21
- results: [
22
- [a],
23
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
24
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
25
- [h, k],
26
- ["https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443", k],
27
- ["https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443", k],
28
- ["https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443", k],
29
- ["https://runtime-fips.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443", k],
30
- ["https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
31
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
32
- ["https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", k],
33
- [a, "FIPS is enabled but this partition does not support FIPS"],
34
- ["https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
35
- [a, "DualStack is enabled but this partition does not support DualStack"],
36
- ["https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", k],
37
- [a, "Invalid Configuration: Missing Region"]
38
- ]
39
- };
40
- const root = 2;
41
- const r = 100_000_000;
42
- const nodes = new Int32Array([
43
- -1, 1, -1,
44
- 0, 22, 3,
45
- 1, 4, r + 15,
46
- 2, 5, r + 15,
47
- 3, 19, 6,
48
- 4, 19, 7,
49
- 5, 19, 8,
50
- 6, 19, 9,
51
- 7, 19, 10,
52
- 8, 19, 11,
53
- 9, 19, 12,
54
- 10, 15, 13,
55
- 12, 14, r + 14,
56
- 13, r + 12, r + 13,
57
- 11, 17, 16,
58
- 12, r + 9, r + 11,
59
- 12, 18, r + 10,
60
- 13, r + 8, r + 9,
61
- 10, 21, 20,
62
- 12, r + 5, r + 4,
63
- 12, r + 7, r + 6,
64
- 10, r + 1, 23,
65
- 12, r + 2, r + 3,
66
- ]);
67
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.SageMakerRuntimeHTTP2ServiceException = class SageMakerRuntimeHTTP2ServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
7
- }
8
- };
@@ -1,101 +0,0 @@
1
- const { SageMakerRuntimeHTTP2ServiceException: __BaseException } = require("./SageMakerRuntimeHTTP2ServiceException");
2
- exports.InputValidationError = class InputValidationError extends __BaseException {
3
- name = "InputValidationError";
4
- $fault = "client";
5
- Message;
6
- ErrorCode;
7
- constructor(opts) {
8
- super({
9
- name: "InputValidationError",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, InputValidationError.prototype);
14
- this.Message = opts.Message;
15
- this.ErrorCode = opts.ErrorCode;
16
- }
17
- };
18
- exports.InternalServerError = class InternalServerError extends __BaseException {
19
- name = "InternalServerError";
20
- $fault = "server";
21
- Message;
22
- ErrorCode;
23
- constructor(opts) {
24
- super({
25
- name: "InternalServerError",
26
- $fault: "server",
27
- ...opts,
28
- });
29
- Object.setPrototypeOf(this, InternalServerError.prototype);
30
- this.Message = opts.Message;
31
- this.ErrorCode = opts.ErrorCode;
32
- }
33
- };
34
- exports.InternalStreamFailure = class InternalStreamFailure extends __BaseException {
35
- name = "InternalStreamFailure";
36
- $fault = "server";
37
- Message;
38
- constructor(opts) {
39
- super({
40
- name: "InternalStreamFailure",
41
- $fault: "server",
42
- ...opts,
43
- });
44
- Object.setPrototypeOf(this, InternalStreamFailure.prototype);
45
- this.Message = opts.Message;
46
- }
47
- };
48
- exports.ModelStreamError = class ModelStreamError extends __BaseException {
49
- name = "ModelStreamError";
50
- $fault = "client";
51
- Message;
52
- ErrorCode;
53
- constructor(opts) {
54
- super({
55
- name: "ModelStreamError",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, ModelStreamError.prototype);
60
- this.Message = opts.Message;
61
- this.ErrorCode = opts.ErrorCode;
62
- }
63
- };
64
- exports.ModelError = class ModelError extends __BaseException {
65
- name = "ModelError";
66
- $fault = "client";
67
- Message;
68
- OriginalStatusCode;
69
- OriginalMessage;
70
- LogStreamArn;
71
- ErrorCode;
72
- constructor(opts) {
73
- super({
74
- name: "ModelError",
75
- $fault: "client",
76
- ...opts,
77
- });
78
- Object.setPrototypeOf(this, ModelError.prototype);
79
- this.Message = opts.Message;
80
- this.OriginalStatusCode = opts.OriginalStatusCode;
81
- this.OriginalMessage = opts.OriginalMessage;
82
- this.LogStreamArn = opts.LogStreamArn;
83
- this.ErrorCode = opts.ErrorCode;
84
- }
85
- };
86
- exports.ServiceUnavailableError = class ServiceUnavailableError extends __BaseException {
87
- name = "ServiceUnavailableError";
88
- $fault = "server";
89
- Message;
90
- ErrorCode;
91
- constructor(opts) {
92
- super({
93
- name: "ServiceUnavailableError",
94
- $fault: "server",
95
- ...opts,
96
- });
97
- Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
98
- this.Message = opts.Message;
99
- this.ErrorCode = opts.ErrorCode;
100
- }
101
- };
@@ -1,37 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidFunction, invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
7
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
8
- const { calculateBodyLength } = require("@smithy/core/serde");
9
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- const defaultsMode = resolveDefaultsModeConfig(config);
13
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
14
- const clientSharedValues = getSharedRuntimeConfig(config);
15
- return {
16
- ...clientSharedValues,
17
- ...config,
18
- runtime: "browser",
19
- defaultsMode,
20
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
21
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
22
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
24
- handle: invalidFunction("event stream request is not supported in browser."),
25
- })),
26
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
27
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
28
- region: config?.region ?? invalidProvider("Region is missing"),
29
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
- sha256: config?.sha256 ?? Sha256,
32
- streamCollector: config?.streamCollector ?? streamCollector,
33
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
34
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
35
- };
36
- };
37
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,52 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
6
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
7
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
8
- const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
9
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
10
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
11
- const { NodeHttp2Handler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
12
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
13
- const getRuntimeConfig = (config) => {
14
- emitWarningIfUnsupportedVersion(process.version);
15
- const defaultsMode = resolveDefaultsModeConfig(config);
16
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
- const clientSharedValues = getSharedRuntimeConfig(config);
18
- awsCheckVersion(process.version);
19
- const loaderConfig = {
20
- profile: config?.profile,
21
- logger: clientSharedValues.logger,
22
- };
23
- return {
24
- ...clientSharedValues,
25
- ...config,
26
- runtime: "node",
27
- defaultsMode,
28
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
29
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
33
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
34
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({
37
- ...await defaultConfigProvider(),
38
- disableConcurrentStreams: true
39
- }))),
40
- retryMode: config?.retryMode ??
41
- loadNodeConfig({
42
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
44
- }, config),
45
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
- streamCollector: config?.streamCollector ?? streamCollector,
47
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
50
- };
51
- };
52
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,16 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { invalidFunction } = require("@smithy/core/client");
3
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
4
- const getRuntimeConfig = (config) => {
5
- const browserDefaults = getBrowserRuntimeConfig(config);
6
- return {
7
- ...browserDefaults,
8
- ...config,
9
- runtime: "react-native",
10
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
11
- handle: invalidFunction("event stream request is not supported in ReactNative."),
12
- })),
13
- sha256: config?.sha256 ?? Sha256,
14
- };
15
- };
16
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,38 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2025-10-01",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
29
- errorTypeRegistries,
30
- version: "2025-10-01",
31
- serviceTarget: "AmazonSageMakerRuntimeHttp2",
32
- },
33
- serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };
@@ -1,139 +0,0 @@
1
- const _B = "Body";
2
- const _By = "Bytes";
3
- const _CS = "CompletionState";
4
- const _DT = "DataType";
5
- const _EC = "ErrorCode";
6
- const _EN = "EndpointName";
7
- const _IEWBS = "InvokeEndpointWithBidirectionalStream";
8
- const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
9
- const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
10
- const _IPV = "InvokedProductionVariant";
11
- const _ISE = "InternalServerError";
12
- const _ISF = "InternalStreamFailure";
13
- const _IVE = "InputValidationError";
14
- const _LSA = "LogStreamArn";
15
- const _M = "Message";
16
- const _ME = "ModelError";
17
- const _MIP = "ModelInvocationPath";
18
- const _MQS = "ModelQueryString";
19
- const _MSE = "ModelStreamError";
20
- const _OM = "OriginalMessage";
21
- const _OSC = "OriginalStatusCode";
22
- const _P = "P";
23
- const _PP = "PayloadPart";
24
- const _RPP = "RequestPayloadPart";
25
- const _RPPe = "ResponsePayloadPart";
26
- const _RSE = "RequestStreamEvent";
27
- const _RSEe = "ResponseStreamEvent";
28
- const _SB = "SensitiveBlob";
29
- const _SUE = "ServiceUnavailableError";
30
- const _TV = "TargetVariant";
31
- const _XAIPV = "X-Amzn-Invoked-Production-Variant";
32
- const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
33
- const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
34
- const _XASTV = "X-Amzn-SageMaker-Target-Variant";
35
- const _c = "client";
36
- const _e = "error";
37
- const _eH = "eventHeader";
38
- const _eP = "eventPayload";
39
- const _h = "http";
40
- const _hE = "httpError";
41
- const _hH = "httpHeader";
42
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
43
- const _se = "server";
44
- const _st = "streaming";
45
- const n0 = "com.amazonaws.sagemakerruntimehttp2";
46
- const { TypeRegistry } = require("@smithy/core/schema");
47
- const { InputValidationError, InternalServerError, InternalStreamFailure, ModelError, ModelStreamError, ServiceUnavailableError } = require("../models/errors");
48
- const { SageMakerRuntimeHTTP2ServiceException } = require("../models/SageMakerRuntimeHTTP2ServiceException");
49
- const _s_registry = TypeRegistry.for(_s);
50
- const SageMakerRuntimeHTTP2ServiceException$ = [-3, _s, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
51
- exports.SageMakerRuntimeHTTP2ServiceException$ = SageMakerRuntimeHTTP2ServiceException$;
52
- _s_registry.registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
53
- const n0_registry = TypeRegistry.for(n0);
54
- const InputValidationError$ = [-3, n0, _IVE,
55
- { [_e]: _c, [_hE]: 400 },
56
- [_M, _EC],
57
- [0, 0]
58
- ];
59
- exports.InputValidationError$ = InputValidationError$;
60
- n0_registry.registerError(InputValidationError$, InputValidationError);
61
- const InternalServerError$ = [-3, n0, _ISE,
62
- { [_e]: _se, [_hE]: 500 },
63
- [_M, _EC],
64
- [0, 0]
65
- ];
66
- exports.InternalServerError$ = InternalServerError$;
67
- n0_registry.registerError(InternalServerError$, InternalServerError);
68
- const InternalStreamFailure$ = [-3, n0, _ISF,
69
- { [_e]: _se },
70
- [_M],
71
- [0]
72
- ];
73
- exports.InternalStreamFailure$ = InternalStreamFailure$;
74
- n0_registry.registerError(InternalStreamFailure$, InternalStreamFailure);
75
- const ModelError$ = [-3, n0, _ME,
76
- { [_e]: _c, [_hE]: 424 },
77
- [_M, _OSC, _OM, _LSA, _EC],
78
- [0, 1, 0, 0, 0]
79
- ];
80
- exports.ModelError$ = ModelError$;
81
- n0_registry.registerError(ModelError$, ModelError);
82
- const ModelStreamError$ = [-3, n0, _MSE,
83
- { [_e]: _c },
84
- [_M, _EC],
85
- [0, 0]
86
- ];
87
- exports.ModelStreamError$ = ModelStreamError$;
88
- n0_registry.registerError(ModelStreamError$, ModelStreamError);
89
- const ServiceUnavailableError$ = [-3, n0, _SUE,
90
- { [_e]: _se, [_hE]: 503 },
91
- [_M, _EC],
92
- [0, 0]
93
- ];
94
- exports.ServiceUnavailableError$ = ServiceUnavailableError$;
95
- n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
96
- exports.errorTypeRegistries = [
97
- _s_registry,
98
- n0_registry,
99
- ];
100
- var SensitiveBlob = [0, n0, _SB, 8, 21];
101
- const InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
102
- 0,
103
- [_EN, _B, _TV, _MIP, _MQS],
104
- [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
105
- ];
106
- exports.InvokeEndpointWithBidirectionalStreamInput$ = InvokeEndpointWithBidirectionalStreamInput$;
107
- const InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
108
- 0,
109
- [_B, _IPV],
110
- [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
111
- ];
112
- exports.InvokeEndpointWithBidirectionalStreamOutput$ = InvokeEndpointWithBidirectionalStreamOutput$;
113
- const RequestPayloadPart$ = [3, n0, _RPP,
114
- 0,
115
- [_By, _DT, _CS, _P],
116
- [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
117
- ];
118
- exports.RequestPayloadPart$ = RequestPayloadPart$;
119
- const ResponsePayloadPart$ = [3, n0, _RPPe,
120
- 0,
121
- [_By, _DT, _CS, _P],
122
- [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
123
- ];
124
- exports.ResponsePayloadPart$ = ResponsePayloadPart$;
125
- const RequestStreamEvent$ = [4, n0, _RSE,
126
- { [_st]: 1 },
127
- [_PP],
128
- [[() => RequestPayloadPart$, 0]]
129
- ];
130
- exports.RequestStreamEvent$ = RequestStreamEvent$;
131
- const ResponseStreamEvent$ = [4, n0, _RSEe,
132
- { [_st]: 1 },
133
- [_PP, _MSE, _ISF],
134
- [[() => ResponsePayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
135
- ];
136
- exports.ResponseStreamEvent$ = ResponseStreamEvent$;
137
- exports.InvokeEndpointWithBidirectionalStream$ = [9, n0, _IEWBS,
138
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => InvokeEndpointWithBidirectionalStreamInput$, () => InvokeEndpointWithBidirectionalStreamOutput$
139
- ];