@aws-sdk/client-elementalinference 3.1074.0 → 3.1076.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,21 +1,57 @@
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 { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultElementalInferenceHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateFeed$, CreateDictionary$, CreateFeed$, DeleteDictionary$, DeleteFeed$, DisassociateFeed$, ExportDictionaryEntries$, GetDictionary$, GetFeed$, ListDictionaries$, ListFeeds$, ListTagsForResource$, TagResource$, UntagResource$, UpdateDictionary$, UpdateFeed$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ElementalInferenceServiceException } = require("./models/ElementalInferenceServiceException");
18
- exports.ElementalInferenceServiceException = ElementalInferenceServiceException;
6
+ 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");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultElementalInferenceHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "elemental-inference",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultElementalInferenceHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,658 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://elemental-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://elemental-inference-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://elemental-inference.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://elemental-inference.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class ElementalInferenceServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, ElementalInferenceServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends ElementalInferenceServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "AccessDeniedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
149
+ }
150
+ }
151
+ class ConflictException extends ElementalInferenceServiceException {
152
+ name = "ConflictException";
153
+ $fault = "client";
154
+ $retryable = {};
155
+ constructor(opts) {
156
+ super({
157
+ name: "ConflictException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, ConflictException.prototype);
162
+ }
163
+ }
164
+ class InternalServerErrorException extends ElementalInferenceServiceException {
165
+ name = "InternalServerErrorException";
166
+ $fault = "server";
167
+ $retryable = {};
168
+ constructor(opts) {
169
+ super({
170
+ name: "InternalServerErrorException",
171
+ $fault: "server",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
175
+ }
176
+ }
177
+ class ResourceNotFoundException extends ElementalInferenceServiceException {
178
+ name = "ResourceNotFoundException";
179
+ $fault = "client";
180
+ constructor(opts) {
181
+ super({
182
+ name: "ResourceNotFoundException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
187
+ }
188
+ }
189
+ class ServiceQuotaExceededException extends ElementalInferenceServiceException {
190
+ name = "ServiceQuotaExceededException";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "ServiceQuotaExceededException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
199
+ }
200
+ }
201
+ class TooManyRequestException extends ElementalInferenceServiceException {
202
+ name = "TooManyRequestException";
203
+ $fault = "client";
204
+ $retryable = {};
205
+ constructor(opts) {
206
+ super({
207
+ name: "TooManyRequestException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, TooManyRequestException.prototype);
212
+ }
213
+ }
214
+ class ValidationException extends ElementalInferenceServiceException {
215
+ name = "ValidationException";
216
+ $fault = "client";
217
+ constructor(opts) {
218
+ super({
219
+ name: "ValidationException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, ValidationException.prototype);
224
+ }
225
+ }
226
+
227
+ const _ADE = "AccessDeniedException";
228
+ const _AF = "AssociateFeed";
229
+ const _AFR = "AssociateFeedRequest";
230
+ const _AFRs = "AssociateFeedResponse";
231
+ const _AR = "AspectRatio";
232
+ const _CC = "ClippingConfig";
233
+ const _CCr = "CroppingConfig";
234
+ const _CD = "CreateDictionary";
235
+ const _CDR = "CreateDictionaryRequest";
236
+ const _CDRr = "CreateDictionaryResponse";
237
+ const _CE = "ConflictException";
238
+ const _CF = "CreateFeed";
239
+ const _CFR = "CreateFeedRequest";
240
+ const _CFRr = "CreateFeedResponse";
241
+ const _CO = "CreateOutput";
242
+ const _COL = "CreateOutputList";
243
+ const _DD = "DeleteDictionary";
244
+ const _DDR = "DeleteDictionaryRequest";
245
+ const _DDRe = "DeleteDictionaryResponse";
246
+ const _DF = "DeleteFeed";
247
+ const _DFR = "DeleteFeedRequest";
248
+ const _DFRe = "DeleteFeedResponse";
249
+ const _DFRi = "DisassociateFeedRequest";
250
+ const _DFRis = "DisassociateFeedResponse";
251
+ const _DFi = "DisassociateFeed";
252
+ const _DS = "DictionarySummary";
253
+ const _DSL = "DictionarySummaryList";
254
+ const _EDE = "ExportDictionaryEntries";
255
+ const _EDER = "ExportDictionaryEntriesRequest";
256
+ const _EDERx = "ExportDictionaryEntriesResponse";
257
+ const _FA = "FeedAssociation";
258
+ const _FS = "FeedSummary";
259
+ const _FSL = "FeedSummaryList";
260
+ const _GD = "GetDictionary";
261
+ const _GDR = "GetDictionaryRequest";
262
+ const _GDRe = "GetDictionaryResponse";
263
+ const _GF = "GetFeed";
264
+ const _GFR = "GetFeedRequest";
265
+ const _GFRe = "GetFeedResponse";
266
+ const _GO = "GetOutput";
267
+ const _GOL = "GetOutputList";
268
+ const _ISEE = "InternalServerErrorException";
269
+ const _LD = "ListDictionaries";
270
+ const _LDR = "ListDictionariesRequest";
271
+ const _LDRi = "ListDictionariesResponse";
272
+ const _LF = "ListFeeds";
273
+ const _LFR = "ListFeedsRequest";
274
+ const _LFRi = "ListFeedsResponse";
275
+ const _LTFR = "ListTagsForResource";
276
+ const _LTFRR = "ListTagsForResourceRequest";
277
+ const _LTFRRi = "ListTagsForResourceResponse";
278
+ const _OC = "OutputConfig";
279
+ const _RNFE = "ResourceNotFoundException";
280
+ const _SC = "SubtitlingConfig";
281
+ const _SQEE = "ServiceQuotaExceededException";
282
+ const _TMRE = "TooManyRequestException";
283
+ const _TR = "TagResource";
284
+ const _TRR = "TagResourceRequest";
285
+ const _UD = "UpdateDictionary";
286
+ const _UDR = "UpdateDictionaryRequest";
287
+ const _UDRp = "UpdateDictionaryResponse";
288
+ const _UF = "UpdateFeed";
289
+ const _UFR = "UpdateFeedRequest";
290
+ const _UFRp = "UpdateFeedResponse";
291
+ const _UO = "UpdateOutput";
292
+ const _UOL = "UpdateOutputList";
293
+ const _UR = "UntagResource";
294
+ const _URR = "UntagResourceRequest";
295
+ const _VE = "ValidationException";
296
+ const _a = "arn";
297
+ const _aR = "aspectRatio";
298
+ const _aRN = "associatedResourceName";
299
+ const _as = "association";
300
+ const _c = "client";
301
+ const _cM = "callbackMetadata";
302
+ const _cl = "clipping";
303
+ const _cr = "cropping";
304
+ const _d = "description";
305
+ const _dE = "dataEndpoints";
306
+ const _dR = "dryRun";
307
+ const _di = "dictionaries";
308
+ const _dic = "dictionary";
309
+ const _e = "error";
310
+ const _en = "entries";
311
+ const _f = "feeds";
312
+ const _fA = "fromAssociation";
313
+ const _h = "height";
314
+ const _hE = "httpError";
315
+ const _hQ = "httpQuery";
316
+ const _ht = "http";
317
+ const _i = "id";
318
+ const _l = "language";
319
+ const _m = "message";
320
+ const _mR = "maxResults";
321
+ const _n = "name";
322
+ const _nT = "nextToken";
323
+ const _o = "outputs";
324
+ const _oC = "outputConfig";
325
+ const _pF = "profanityFilter";
326
+ const _r = "references";
327
+ const _rA = "resourceArn";
328
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.elementalinference";
329
+ const _se = "server";
330
+ const _st = "status";
331
+ const _su = "subtitling";
332
+ const _t = "tags";
333
+ const _tK = "tagKeys";
334
+ const _w = "width";
335
+ const n0 = "com.amazonaws.elementalinference";
336
+ const _s_registry = TypeRegistry.for(_s);
337
+ var ElementalInferenceServiceException$ = [-3, _s, "ElementalInferenceServiceException", 0, [], []];
338
+ _s_registry.registerError(ElementalInferenceServiceException$, ElementalInferenceServiceException);
339
+ const n0_registry = TypeRegistry.for(n0);
340
+ var AccessDeniedException$ = [-3, n0, _ADE,
341
+ { [_e]: _c, [_hE]: 403 },
342
+ [_m],
343
+ [0], 1
344
+ ];
345
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
346
+ var ConflictException$ = [-3, n0, _CE,
347
+ { [_e]: _c, [_hE]: 409 },
348
+ [_m],
349
+ [0], 1
350
+ ];
351
+ n0_registry.registerError(ConflictException$, ConflictException);
352
+ var InternalServerErrorException$ = [-3, n0, _ISEE,
353
+ { [_e]: _se, [_hE]: 500 },
354
+ [_m],
355
+ [0], 1
356
+ ];
357
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
358
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
359
+ { [_e]: _c, [_hE]: 404 },
360
+ [_m],
361
+ [0], 1
362
+ ];
363
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
364
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
365
+ { [_e]: _c, [_hE]: 402 },
366
+ [_m],
367
+ [0], 1
368
+ ];
369
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
370
+ var TooManyRequestException$ = [-3, n0, _TMRE,
371
+ { [_e]: _c, [_hE]: 429 },
372
+ [_m],
373
+ [0], 1
374
+ ];
375
+ n0_registry.registerError(TooManyRequestException$, TooManyRequestException);
376
+ var ValidationException$ = [-3, n0, _VE,
377
+ { [_e]: _c, [_hE]: 400 },
378
+ [_m],
379
+ [0], 1
380
+ ];
381
+ n0_registry.registerError(ValidationException$, ValidationException);
382
+ const errorTypeRegistries = [
383
+ _s_registry,
384
+ n0_registry,
385
+ ];
386
+ var AspectRatio$ = [3, n0, _AR,
387
+ 0,
388
+ [_w, _h],
389
+ [1, 1], 2
390
+ ];
391
+ var AssociateFeedRequest$ = [3, n0, _AFR,
392
+ 0,
393
+ [_i, _o, _aRN, _dR],
394
+ [[0, 1], () => CreateOutputList, [0, 4], 2], 2
395
+ ];
396
+ var AssociateFeedResponse$ = [3, n0, _AFRs,
397
+ 0,
398
+ [_a, _i],
399
+ [0, 0], 2
400
+ ];
401
+ var ClippingConfig$ = [3, n0, _CC,
402
+ 0,
403
+ [_cM],
404
+ [0]
405
+ ];
406
+ var CreateDictionaryRequest$ = [3, n0, _CDR,
407
+ 0,
408
+ [_n, _l, _en, _t],
409
+ [0, 0, 0, 128 | 0], 2
410
+ ];
411
+ var CreateDictionaryResponse$ = [3, n0, _CDRr,
412
+ 0,
413
+ [_n, _a, _i, _l, _st, _r, _t],
414
+ [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5
415
+ ];
416
+ var CreateFeedRequest$ = [3, n0, _CFR,
417
+ 0,
418
+ [_n, _o, _t],
419
+ [0, () => CreateOutputList, 128 | 0], 2
420
+ ];
421
+ var CreateFeedResponse$ = [3, n0, _CFRr,
422
+ 0,
423
+ [_a, _n, _i, _dE, _o, _st, _as, _t],
424
+ [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6
425
+ ];
426
+ var CreateOutput$ = [3, n0, _CO,
427
+ 0,
428
+ [_n, _oC, _st, _d],
429
+ [0, () => OutputConfig$, 0, 0], 3
430
+ ];
431
+ var CroppingConfig$ = [3, n0, _CCr,
432
+ 0,
433
+ [],
434
+ []
435
+ ];
436
+ var DeleteDictionaryRequest$ = [3, n0, _DDR,
437
+ 0,
438
+ [_i],
439
+ [[0, 1]], 1
440
+ ];
441
+ var DeleteDictionaryResponse$ = [3, n0, _DDRe,
442
+ 0,
443
+ [_a, _i, _st],
444
+ [0, 0, 0], 3
445
+ ];
446
+ var DeleteFeedRequest$ = [3, n0, _DFR,
447
+ 0,
448
+ [_i],
449
+ [[0, 1]], 1
450
+ ];
451
+ var DeleteFeedResponse$ = [3, n0, _DFRe,
452
+ 0,
453
+ [_a, _i, _st],
454
+ [0, 0, 0], 3
455
+ ];
456
+ var DictionarySummary$ = [3, n0, _DS,
457
+ 0,
458
+ [_a, _i, _n, _l, _st],
459
+ [0, 0, 0, 0, 0], 5
460
+ ];
461
+ var DisassociateFeedRequest$ = [3, n0, _DFRi,
462
+ 0,
463
+ [_i, _aRN, _dR],
464
+ [[0, 1], [0, 4], 2], 1
465
+ ];
466
+ var DisassociateFeedResponse$ = [3, n0, _DFRis,
467
+ 0,
468
+ [_a, _i],
469
+ [0, 0], 2
470
+ ];
471
+ var ExportDictionaryEntriesRequest$ = [3, n0, _EDER,
472
+ 0,
473
+ [_i],
474
+ [[0, 1]], 1
475
+ ];
476
+ var ExportDictionaryEntriesResponse$ = [3, n0, _EDERx,
477
+ 0,
478
+ [_en],
479
+ [0]
480
+ ];
481
+ var FeedAssociation$ = [3, n0, _FA,
482
+ 0,
483
+ [_aRN],
484
+ [0], 1
485
+ ];
486
+ var FeedSummary$ = [3, n0, _FS,
487
+ 0,
488
+ [_a, _i, _n, _st, _as],
489
+ [0, 0, 0, 0, () => FeedAssociation$], 4
490
+ ];
491
+ var GetDictionaryRequest$ = [3, n0, _GDR,
492
+ 0,
493
+ [_i],
494
+ [[0, 1]], 1
495
+ ];
496
+ var GetDictionaryResponse$ = [3, n0, _GDRe,
497
+ 0,
498
+ [_n, _a, _i, _l, _st, _r, _t],
499
+ [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5
500
+ ];
501
+ var GetFeedRequest$ = [3, n0, _GFR,
502
+ 0,
503
+ [_i],
504
+ [[0, 1]], 1
505
+ ];
506
+ var GetFeedResponse$ = [3, n0, _GFRe,
507
+ 0,
508
+ [_a, _n, _i, _dE, _o, _st, _as, _t],
509
+ [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6
510
+ ];
511
+ var GetOutput$ = [3, n0, _GO,
512
+ 0,
513
+ [_n, _oC, _st, _d, _fA],
514
+ [0, () => OutputConfig$, 0, 0, 2], 3
515
+ ];
516
+ var ListDictionariesRequest$ = [3, n0, _LDR,
517
+ 0,
518
+ [_mR, _nT],
519
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
520
+ ];
521
+ var ListDictionariesResponse$ = [3, n0, _LDRi,
522
+ 0,
523
+ [_di, _nT],
524
+ [() => DictionarySummaryList, 0], 1
525
+ ];
526
+ var ListFeedsRequest$ = [3, n0, _LFR,
527
+ 0,
528
+ [_mR, _nT],
529
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
530
+ ];
531
+ var ListFeedsResponse$ = [3, n0, _LFRi,
532
+ 0,
533
+ [_f, _nT],
534
+ [() => FeedSummaryList, 0], 1
535
+ ];
536
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
537
+ 0,
538
+ [_rA],
539
+ [[0, 1]], 1
540
+ ];
541
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
542
+ 0,
543
+ [_t],
544
+ [128 | 0]
545
+ ];
546
+ var SubtitlingConfig$ = [3, n0, _SC,
547
+ 0,
548
+ [_l, _aR, _dic, _pF],
549
+ [0, () => AspectRatio$, 0, 0], 1
550
+ ];
551
+ var TagResourceRequest$ = [3, n0, _TRR,
552
+ 0,
553
+ [_rA, _t],
554
+ [[0, 1], 128 | 0], 2
555
+ ];
556
+ var UntagResourceRequest$ = [3, n0, _URR,
557
+ 0,
558
+ [_rA, _tK],
559
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
560
+ ];
561
+ var UpdateDictionaryRequest$ = [3, n0, _UDR,
562
+ 0,
563
+ [_i, _n, _l, _en],
564
+ [[0, 1], 0, 0, 0], 1
565
+ ];
566
+ var UpdateDictionaryResponse$ = [3, n0, _UDRp,
567
+ 0,
568
+ [_n, _a, _i, _l, _st, _r, _t],
569
+ [0, 0, 0, 0, 0, 64 | 0, 128 | 0], 5
570
+ ];
571
+ var UpdateFeedRequest$ = [3, n0, _UFR,
572
+ 0,
573
+ [_n, _i, _o],
574
+ [0, [0, 1], () => UpdateOutputList], 3
575
+ ];
576
+ var UpdateFeedResponse$ = [3, n0, _UFRp,
577
+ 0,
578
+ [_a, _n, _i, _dE, _o, _st, _as, _t],
579
+ [0, 0, 0, 64 | 0, () => GetOutputList, 0, () => FeedAssociation$, 128 | 0], 6
580
+ ];
581
+ var UpdateOutput$ = [3, n0, _UO,
582
+ 0,
583
+ [_n, _oC, _st, _d, _fA],
584
+ [0, () => OutputConfig$, 0, 0, 2], 3
585
+ ];
586
+ var __Unit = "unit";
587
+ var CreateOutputList = [1, n0, _COL,
588
+ 0, () => CreateOutput$
589
+ ];
590
+ var DictionarySummaryList = [1, n0, _DSL,
591
+ 0, () => DictionarySummary$
592
+ ];
593
+ var FeedSummaryList = [1, n0, _FSL,
594
+ 0, () => FeedSummary$
595
+ ];
596
+ var GetOutputList = [1, n0, _GOL,
597
+ 0, () => GetOutput$
598
+ ];
599
+ var UpdateOutputList = [1, n0, _UOL,
600
+ 0, () => UpdateOutput$
601
+ ];
602
+ var OutputConfig$ = [4, n0, _OC,
603
+ 0,
604
+ [_cr, _cl, _su],
605
+ [() => CroppingConfig$, () => ClippingConfig$, () => SubtitlingConfig$]
606
+ ];
607
+ var AssociateFeed$ = [9, n0, _AF,
608
+ { [_ht]: ["POST", "/v1/feed/{id}/associate", 200] }, () => AssociateFeedRequest$, () => AssociateFeedResponse$
609
+ ];
610
+ var CreateDictionary$ = [9, n0, _CD,
611
+ { [_ht]: ["POST", "/v1/dictionary", 202] }, () => CreateDictionaryRequest$, () => CreateDictionaryResponse$
612
+ ];
613
+ var CreateFeed$ = [9, n0, _CF,
614
+ { [_ht]: ["POST", "/v1/feed", 202] }, () => CreateFeedRequest$, () => CreateFeedResponse$
615
+ ];
616
+ var DeleteDictionary$ = [9, n0, _DD,
617
+ { [_ht]: ["DELETE", "/v1/dictionary/{id}", 202] }, () => DeleteDictionaryRequest$, () => DeleteDictionaryResponse$
618
+ ];
619
+ var DeleteFeed$ = [9, n0, _DF,
620
+ { [_ht]: ["DELETE", "/v1/feed/{id}", 202] }, () => DeleteFeedRequest$, () => DeleteFeedResponse$
621
+ ];
622
+ var DisassociateFeed$ = [9, n0, _DFi,
623
+ { [_ht]: ["POST", "/v1/feed/{id}/disassociate", 200] }, () => DisassociateFeedRequest$, () => DisassociateFeedResponse$
624
+ ];
625
+ var ExportDictionaryEntries$ = [9, n0, _EDE,
626
+ { [_ht]: ["GET", "/v1/dictionary/{id}/entries/export", 200] }, () => ExportDictionaryEntriesRequest$, () => ExportDictionaryEntriesResponse$
627
+ ];
628
+ var GetDictionary$ = [9, n0, _GD,
629
+ { [_ht]: ["GET", "/v1/dictionary/{id}", 200] }, () => GetDictionaryRequest$, () => GetDictionaryResponse$
630
+ ];
631
+ var GetFeed$ = [9, n0, _GF,
632
+ { [_ht]: ["GET", "/v1/feed/{id}", 200] }, () => GetFeedRequest$, () => GetFeedResponse$
633
+ ];
634
+ var ListDictionaries$ = [9, n0, _LD,
635
+ { [_ht]: ["GET", "/v1/dictionaries", 200] }, () => ListDictionariesRequest$, () => ListDictionariesResponse$
636
+ ];
637
+ var ListFeeds$ = [9, n0, _LF,
638
+ { [_ht]: ["GET", "/v1/feeds", 200] }, () => ListFeedsRequest$, () => ListFeedsResponse$
639
+ ];
640
+ var ListTagsForResource$ = [9, n0, _LTFR,
641
+ { [_ht]: ["GET", "/v1/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
642
+ ];
643
+ var TagResource$ = [9, n0, _TR,
644
+ { [_ht]: ["POST", "/v1/tags/{resourceArn}", 204] }, () => TagResourceRequest$, () => __Unit
645
+ ];
646
+ var UntagResource$ = [9, n0, _UR,
647
+ { [_ht]: ["DELETE", "/v1/tags/{resourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit
648
+ ];
649
+ var UpdateDictionary$ = [9, n0, _UD,
650
+ { [_ht]: ["PATCH", "/v1/dictionary/{id}", 200] }, () => UpdateDictionaryRequest$, () => UpdateDictionaryResponse$
651
+ ];
652
+ var UpdateFeed$ = [9, n0, _UF,
653
+ { [_ht]: ["PUT", "/v1/feed/{id}", 200] }, () => UpdateFeedRequest$, () => UpdateFeedResponse$
654
+ ];
655
+
656
+ const getRuntimeConfig$1 = (config) => {
657
+ return {
658
+ apiVersion: "2018-11-14",
659
+ base64Decoder: config?.base64Decoder ?? fromBase64,
660
+ base64Encoder: config?.base64Encoder ?? toBase64,
661
+ disableHostPrefix: config?.disableHostPrefix ?? false,
662
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
663
+ extensions: config?.extensions ?? [],
664
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultElementalInferenceHttpAuthSchemeProvider,
665
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
666
+ {
667
+ schemeId: "aws.auth#sigv4",
668
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
669
+ signer: new AwsSdkSigV4Signer(),
670
+ },
671
+ ],
672
+ logger: config?.logger ?? new NoOpLogger(),
673
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
674
+ protocolSettings: config?.protocolSettings ?? {
675
+ defaultNamespace: "com.amazonaws.elementalinference",
676
+ errorTypeRegistries,
677
+ version: "2018-11-14",
678
+ serviceTarget: "ElementalInference",
679
+ },
680
+ serviceId: config?.serviceId ?? "ElementalInference",
681
+ urlParser: config?.urlParser ?? parseUrl,
682
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
683
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
684
+ };
685
+ };
686
+
687
+ const getRuntimeConfig = (config) => {
688
+ emitWarningIfUnsupportedVersion(process.version);
689
+ const defaultsMode = resolveDefaultsModeConfig(config);
690
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
691
+ const clientSharedValues = getRuntimeConfig$1(config);
692
+ emitWarningIfUnsupportedVersion$1(process.version);
693
+ const loaderConfig = {
694
+ profile: config?.profile,
695
+ logger: clientSharedValues.logger,
696
+ };
697
+ return {
698
+ ...clientSharedValues,
699
+ ...config,
700
+ runtime: "node",
701
+ defaultsMode,
702
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
703
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
704
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
705
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
706
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
707
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
708
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
709
+ retryMode: config?.retryMode ??
710
+ loadConfig({
711
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
712
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
713
+ }, config),
714
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
715
+ streamCollector: config?.streamCollector ?? streamCollector,
716
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
717
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
718
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
719
+ };
720
+ };
721
+
34
722
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
723
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
724
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -429,30 +1117,104 @@ const FeedStatus = {
429
1117
  UPDATING: "UPDATING",
430
1118
  };
431
1119
 
1120
+ exports.AccessDeniedException = AccessDeniedException;
1121
+ exports.AccessDeniedException$ = AccessDeniedException$;
1122
+ exports.AspectRatio$ = AspectRatio$;
1123
+ exports.AssociateFeed$ = AssociateFeed$;
432
1124
  exports.AssociateFeedCommand = AssociateFeedCommand;
1125
+ exports.AssociateFeedRequest$ = AssociateFeedRequest$;
1126
+ exports.AssociateFeedResponse$ = AssociateFeedResponse$;
1127
+ exports.ClippingConfig$ = ClippingConfig$;
1128
+ exports.ConflictException = ConflictException;
1129
+ exports.ConflictException$ = ConflictException$;
1130
+ exports.CreateDictionary$ = CreateDictionary$;
433
1131
  exports.CreateDictionaryCommand = CreateDictionaryCommand;
1132
+ exports.CreateDictionaryRequest$ = CreateDictionaryRequest$;
1133
+ exports.CreateDictionaryResponse$ = CreateDictionaryResponse$;
1134
+ exports.CreateFeed$ = CreateFeed$;
434
1135
  exports.CreateFeedCommand = CreateFeedCommand;
1136
+ exports.CreateFeedRequest$ = CreateFeedRequest$;
1137
+ exports.CreateFeedResponse$ = CreateFeedResponse$;
1138
+ exports.CreateOutput$ = CreateOutput$;
1139
+ exports.CroppingConfig$ = CroppingConfig$;
1140
+ exports.DeleteDictionary$ = DeleteDictionary$;
435
1141
  exports.DeleteDictionaryCommand = DeleteDictionaryCommand;
1142
+ exports.DeleteDictionaryRequest$ = DeleteDictionaryRequest$;
1143
+ exports.DeleteDictionaryResponse$ = DeleteDictionaryResponse$;
1144
+ exports.DeleteFeed$ = DeleteFeed$;
436
1145
  exports.DeleteFeedCommand = DeleteFeedCommand;
1146
+ exports.DeleteFeedRequest$ = DeleteFeedRequest$;
1147
+ exports.DeleteFeedResponse$ = DeleteFeedResponse$;
437
1148
  exports.DictionaryLanguage = DictionaryLanguage;
438
1149
  exports.DictionaryStatus = DictionaryStatus;
1150
+ exports.DictionarySummary$ = DictionarySummary$;
1151
+ exports.DisassociateFeed$ = DisassociateFeed$;
439
1152
  exports.DisassociateFeedCommand = DisassociateFeedCommand;
1153
+ exports.DisassociateFeedRequest$ = DisassociateFeedRequest$;
1154
+ exports.DisassociateFeedResponse$ = DisassociateFeedResponse$;
440
1155
  exports.ElementalInference = ElementalInference;
441
1156
  exports.ElementalInferenceClient = ElementalInferenceClient;
1157
+ exports.ElementalInferenceServiceException = ElementalInferenceServiceException;
1158
+ exports.ElementalInferenceServiceException$ = ElementalInferenceServiceException$;
1159
+ exports.ExportDictionaryEntries$ = ExportDictionaryEntries$;
442
1160
  exports.ExportDictionaryEntriesCommand = ExportDictionaryEntriesCommand;
1161
+ exports.ExportDictionaryEntriesRequest$ = ExportDictionaryEntriesRequest$;
1162
+ exports.ExportDictionaryEntriesResponse$ = ExportDictionaryEntriesResponse$;
1163
+ exports.FeedAssociation$ = FeedAssociation$;
443
1164
  exports.FeedStatus = FeedStatus;
1165
+ exports.FeedSummary$ = FeedSummary$;
1166
+ exports.GetDictionary$ = GetDictionary$;
444
1167
  exports.GetDictionaryCommand = GetDictionaryCommand;
1168
+ exports.GetDictionaryRequest$ = GetDictionaryRequest$;
1169
+ exports.GetDictionaryResponse$ = GetDictionaryResponse$;
1170
+ exports.GetFeed$ = GetFeed$;
445
1171
  exports.GetFeedCommand = GetFeedCommand;
1172
+ exports.GetFeedRequest$ = GetFeedRequest$;
1173
+ exports.GetFeedResponse$ = GetFeedResponse$;
1174
+ exports.GetOutput$ = GetOutput$;
1175
+ exports.InternalServerErrorException = InternalServerErrorException;
1176
+ exports.InternalServerErrorException$ = InternalServerErrorException$;
1177
+ exports.ListDictionaries$ = ListDictionaries$;
446
1178
  exports.ListDictionariesCommand = ListDictionariesCommand;
1179
+ exports.ListDictionariesRequest$ = ListDictionariesRequest$;
1180
+ exports.ListDictionariesResponse$ = ListDictionariesResponse$;
1181
+ exports.ListFeeds$ = ListFeeds$;
447
1182
  exports.ListFeedsCommand = ListFeedsCommand;
1183
+ exports.ListFeedsRequest$ = ListFeedsRequest$;
1184
+ exports.ListFeedsResponse$ = ListFeedsResponse$;
1185
+ exports.ListTagsForResource$ = ListTagsForResource$;
448
1186
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1187
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1188
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1189
+ exports.OutputConfig$ = OutputConfig$;
449
1190
  exports.OutputStatus = OutputStatus;
450
1191
  exports.ProfanityFilterMode = ProfanityFilterMode;
1192
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1193
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1194
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1195
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1196
+ exports.SubtitlingConfig$ = SubtitlingConfig$;
1197
+ exports.TagResource$ = TagResource$;
451
1198
  exports.TagResourceCommand = TagResourceCommand;
1199
+ exports.TagResourceRequest$ = TagResourceRequest$;
1200
+ exports.TooManyRequestException = TooManyRequestException;
1201
+ exports.TooManyRequestException$ = TooManyRequestException$;
452
1202
  exports.TranscriptionLanguage = TranscriptionLanguage;
1203
+ exports.UntagResource$ = UntagResource$;
453
1204
  exports.UntagResourceCommand = UntagResourceCommand;
1205
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1206
+ exports.UpdateDictionary$ = UpdateDictionary$;
454
1207
  exports.UpdateDictionaryCommand = UpdateDictionaryCommand;
1208
+ exports.UpdateDictionaryRequest$ = UpdateDictionaryRequest$;
1209
+ exports.UpdateDictionaryResponse$ = UpdateDictionaryResponse$;
1210
+ exports.UpdateFeed$ = UpdateFeed$;
455
1211
  exports.UpdateFeedCommand = UpdateFeedCommand;
1212
+ exports.UpdateFeedRequest$ = UpdateFeedRequest$;
1213
+ exports.UpdateFeedResponse$ = UpdateFeedResponse$;
1214
+ exports.UpdateOutput$ = UpdateOutput$;
1215
+ exports.ValidationException = ValidationException;
1216
+ exports.ValidationException$ = ValidationException$;
1217
+ exports.errorTypeRegistries = errorTypeRegistries;
456
1218
  exports.paginateListDictionaries = paginateListDictionaries;
457
1219
  exports.paginateListFeeds = paginateListFeeds;
458
1220
  exports.waitForFeedDeleted = waitForFeedDeleted;