@aws-sdk/client-translate 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,21 +1,58 @@
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, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, 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, defaultTranslateHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateParallelData$, DeleteParallelData$, DeleteTerminology$, DescribeTextTranslationJob$, GetParallelData$, GetTerminology$, ImportTerminology$, ListLanguages$, ListParallelData$, ListTagsForResource$, ListTerminologies$, ListTextTranslationJobs$, StartTextTranslationJob$, StopTextTranslationJob$, TagResource$, TranslateDocument$, TranslateText$, UntagResource$, UpdateParallelData$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { TranslateServiceException } = require("./models/TranslateServiceException");
18
- exports.TranslateServiceException = TranslateServiceException;
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, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultTranslateHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "translate",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultTranslateHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,1000 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://translate-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://translate.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class TranslateServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, TranslateServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class ConcurrentModificationException extends TranslateServiceException {
141
+ name = "ConcurrentModificationException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "ConcurrentModificationException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class ConflictException extends TranslateServiceException {
155
+ name = "ConflictException";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "ConflictException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ConflictException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class InternalServerException extends TranslateServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InternalServerException",
175
+ $fault: "server",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InternalServerException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class InvalidParameterValueException extends TranslateServiceException {
183
+ name = "InvalidParameterValueException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "InvalidParameterValueException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class InvalidRequestException extends TranslateServiceException {
197
+ name = "InvalidRequestException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "InvalidRequestException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class LimitExceededException extends TranslateServiceException {
211
+ name = "LimitExceededException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "LimitExceededException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+ class TooManyRequestsException extends TranslateServiceException {
225
+ name = "TooManyRequestsException";
226
+ $fault = "client";
227
+ Message;
228
+ constructor(opts) {
229
+ super({
230
+ name: "TooManyRequestsException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
235
+ this.Message = opts.Message;
236
+ }
237
+ }
238
+ class TooManyTagsException extends TranslateServiceException {
239
+ name = "TooManyTagsException";
240
+ $fault = "client";
241
+ ResourceArn;
242
+ constructor(opts) {
243
+ super({
244
+ name: "TooManyTagsException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
249
+ this.ResourceArn = opts.ResourceArn;
250
+ }
251
+ }
252
+ class ResourceNotFoundException extends TranslateServiceException {
253
+ name = "ResourceNotFoundException";
254
+ $fault = "client";
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "ResourceNotFoundException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
263
+ this.Message = opts.Message;
264
+ }
265
+ }
266
+ class UnsupportedDisplayLanguageCodeException extends TranslateServiceException {
267
+ name = "UnsupportedDisplayLanguageCodeException";
268
+ $fault = "client";
269
+ Message;
270
+ DisplayLanguageCode;
271
+ constructor(opts) {
272
+ super({
273
+ name: "UnsupportedDisplayLanguageCodeException",
274
+ $fault: "client",
275
+ ...opts,
276
+ });
277
+ Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
278
+ this.Message = opts.Message;
279
+ this.DisplayLanguageCode = opts.DisplayLanguageCode;
280
+ }
281
+ }
282
+ class InvalidFilterException extends TranslateServiceException {
283
+ name = "InvalidFilterException";
284
+ $fault = "client";
285
+ Message;
286
+ constructor(opts) {
287
+ super({
288
+ name: "InvalidFilterException",
289
+ $fault: "client",
290
+ ...opts,
291
+ });
292
+ Object.setPrototypeOf(this, InvalidFilterException.prototype);
293
+ this.Message = opts.Message;
294
+ }
295
+ }
296
+ class UnsupportedLanguagePairException extends TranslateServiceException {
297
+ name = "UnsupportedLanguagePairException";
298
+ $fault = "client";
299
+ Message;
300
+ SourceLanguageCode;
301
+ TargetLanguageCode;
302
+ constructor(opts) {
303
+ super({
304
+ name: "UnsupportedLanguagePairException",
305
+ $fault: "client",
306
+ ...opts,
307
+ });
308
+ Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
309
+ this.Message = opts.Message;
310
+ this.SourceLanguageCode = opts.SourceLanguageCode;
311
+ this.TargetLanguageCode = opts.TargetLanguageCode;
312
+ }
313
+ }
314
+ class ServiceUnavailableException extends TranslateServiceException {
315
+ name = "ServiceUnavailableException";
316
+ $fault = "server";
317
+ Message;
318
+ constructor(opts) {
319
+ super({
320
+ name: "ServiceUnavailableException",
321
+ $fault: "server",
322
+ ...opts,
323
+ });
324
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
325
+ this.Message = opts.Message;
326
+ }
327
+ }
328
+ class DetectedLanguageLowConfidenceException extends TranslateServiceException {
329
+ name = "DetectedLanguageLowConfidenceException";
330
+ $fault = "client";
331
+ Message;
332
+ DetectedLanguageCode;
333
+ constructor(opts) {
334
+ super({
335
+ name: "DetectedLanguageLowConfidenceException",
336
+ $fault: "client",
337
+ ...opts,
338
+ });
339
+ Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
340
+ this.Message = opts.Message;
341
+ this.DetectedLanguageCode = opts.DetectedLanguageCode;
342
+ }
343
+ }
344
+ class TextSizeLimitExceededException extends TranslateServiceException {
345
+ name = "TextSizeLimitExceededException";
346
+ $fault = "client";
347
+ Message;
348
+ constructor(opts) {
349
+ super({
350
+ name: "TextSizeLimitExceededException",
351
+ $fault: "client",
352
+ ...opts,
353
+ });
354
+ Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
355
+ this.Message = opts.Message;
356
+ }
357
+ }
358
+
359
+ const _A = "Arn";
360
+ const _ADL = "AuxiliaryDataLocation";
361
+ const _AS = "AppliedSettings";
362
+ const _AT = "AppliedTerminology";
363
+ const _ATL = "AppliedTerminologyList";
364
+ const _ATp = "AppliedTerminologies";
365
+ const _B = "Brevity";
366
+ const _C = "Content";
367
+ const _CA = "CreatedAt";
368
+ const _CE = "ConflictException";
369
+ const _CME = "ConcurrentModificationException";
370
+ const _CPD = "CreateParallelData";
371
+ const _CPDR = "CreateParallelDataRequest";
372
+ const _CPDRr = "CreateParallelDataResponse";
373
+ const _CT = "ClientToken";
374
+ const _CTo = "ContentType";
375
+ const _D = "Description";
376
+ const _DARA = "DataAccessRoleArn";
377
+ const _DC = "DocumentContent";
378
+ const _DL = "DataLocation";
379
+ const _DLC = "DetectedLanguageCode";
380
+ const _DLCi = "DisplayLanguageCode";
381
+ const _DLLCE = "DetectedLanguageLowConfidenceException";
382
+ const _DPD = "DeleteParallelData";
383
+ const _DPDR = "DeleteParallelDataRequest";
384
+ const _DPDRe = "DeleteParallelDataResponse";
385
+ const _DT = "DeleteTerminology";
386
+ const _DTR = "DeleteTerminologyRequest";
387
+ const _DTTJ = "DescribeTextTranslationJob";
388
+ const _DTTJR = "DescribeTextTranslationJobRequest";
389
+ const _DTTJRe = "DescribeTextTranslationJobResponse";
390
+ const _DWEC = "DocumentsWithErrorsCount";
391
+ const _Di = "Directionality";
392
+ const _Do = "Document";
393
+ const _EK = "EncryptionKey";
394
+ const _ET = "EndTime";
395
+ const _F = "Filter";
396
+ const _FRC = "FailedRecordCount";
397
+ const _Fi = "File";
398
+ const _Fo = "Format";
399
+ const _For = "Formality";
400
+ const _GPD = "GetParallelData";
401
+ const _GPDR = "GetParallelDataRequest";
402
+ const _GPDRe = "GetParallelDataResponse";
403
+ const _GT = "GetTerminology";
404
+ const _GTR = "GetTerminologyRequest";
405
+ const _GTRe = "GetTerminologyResponse";
406
+ const _I = "Id";
407
+ const _IDC = "InputDataConfig";
408
+ const _IDCn = "InputDocumentsCount";
409
+ const _IDS = "ImportedDataSize";
410
+ const _IFE = "InvalidFilterException";
411
+ const _IPVE = "InvalidParameterValueException";
412
+ const _IRC = "ImportedRecordCount";
413
+ const _IRE = "InvalidRequestException";
414
+ const _ISE = "InternalServerException";
415
+ const _IT = "ImportTerminology";
416
+ const _ITR = "ImportTerminologyRequest";
417
+ const _ITRm = "ImportTerminologyResponse";
418
+ const _JD = "JobDetails";
419
+ const _JI = "JobId";
420
+ const _JN = "JobName";
421
+ const _JS = "JobStatus";
422
+ const _K = "Key";
423
+ const _L = "Language";
424
+ const _LC = "LanguageCode";
425
+ const _LEE = "LimitExceededException";
426
+ const _LL = "LanguagesList";
427
+ const _LLR = "ListLanguagesRequest";
428
+ const _LLRi = "ListLanguagesResponse";
429
+ const _LLi = "ListLanguages";
430
+ const _LN = "LanguageName";
431
+ const _LPD = "ListParallelData";
432
+ const _LPDR = "ListParallelDataRequest";
433
+ const _LPDRi = "ListParallelDataResponse";
434
+ const _LT = "ListTerminologies";
435
+ const _LTFR = "ListTagsForResource";
436
+ const _LTFRR = "ListTagsForResourceRequest";
437
+ const _LTFRRi = "ListTagsForResourceResponse";
438
+ const _LTR = "ListTerminologiesRequest";
439
+ const _LTRi = "ListTerminologiesResponse";
440
+ const _LTTJ = "ListTextTranslationJobs";
441
+ const _LTTJR = "ListTextTranslationJobsRequest";
442
+ const _LTTJRi = "ListTextTranslationJobsResponse";
443
+ const _LUA = "LastUpdatedAt";
444
+ const _LUAA = "LatestUpdateAttemptAt";
445
+ const _LUAADL = "LatestUpdateAttemptAuxiliaryDataLocation";
446
+ const _LUAS = "LatestUpdateAttemptStatus";
447
+ const _La = "Languages";
448
+ const _Lo = "Location";
449
+ const _M = "Message";
450
+ const _MR = "MaxResults";
451
+ const _MS = "MergeStrategy";
452
+ const _N = "Name";
453
+ const _NT = "NextToken";
454
+ const _ODC = "OutputDataConfig";
455
+ const _P = "Profanity";
456
+ const _PDC = "ParallelDataConfig";
457
+ const _PDDL = "ParallelDataDataLocation";
458
+ const _PDN = "ParallelDataNames";
459
+ const _PDP = "ParallelDataProperties";
460
+ const _PDPL = "ParallelDataPropertiesList";
461
+ const _RA = "ResourceArn";
462
+ const _RNFE = "ResourceNotFoundException";
463
+ const _RT = "RepositoryType";
464
+ const _S = "Status";
465
+ const _SAT = "SubmittedAfterTime";
466
+ const _SB = "SizeBytes";
467
+ const _SBT = "SubmittedBeforeTime";
468
+ const _SLC = "SourceLanguageCode";
469
+ const _SRC = "SkippedRecordCount";
470
+ const _ST = "SourceText";
471
+ const _STC = "SkippedTermCount";
472
+ const _STTJ = "StartTextTranslationJob";
473
+ const _STTJR = "StartTextTranslationJobRequest";
474
+ const _STTJRt = "StartTextTranslationJobResponse";
475
+ const _STTJRto = "StopTextTranslationJobRequest";
476
+ const _STTJRtop = "StopTextTranslationJobResponse";
477
+ const _STTJt = "StopTextTranslationJob";
478
+ const _STu = "SubmittedTime";
479
+ const _SU = "S3Uri";
480
+ const _SUE = "ServiceUnavailableException";
481
+ const _Se = "Settings";
482
+ const _T = "Terms";
483
+ const _TC = "TermCount";
484
+ const _TD = "TerminologyData";
485
+ const _TDC = "TranslatedDocumentContent";
486
+ const _TDCr = "TranslatedDocumentsCount";
487
+ const _TDF = "TerminologyDataFormat";
488
+ const _TDL = "TerminologyDataLocation";
489
+ const _TDR = "TranslateDocumentRequest";
490
+ const _TDRr = "TranslateDocumentResponse";
491
+ const _TDr = "TranslatedDocument";
492
+ const _TDra = "TranslateDocument";
493
+ const _TF = "TerminologyFile";
494
+ const _TK = "TagKeys";
495
+ const _TL = "TagList";
496
+ const _TLC = "TargetLanguageCode";
497
+ const _TLCa = "TargetLanguageCodes";
498
+ const _TLe = "TermList";
499
+ const _TMRE = "TooManyRequestsException";
500
+ const _TMTE = "TooManyTagsException";
501
+ const _TN = "TerminologyNames";
502
+ const _TP = "TerminologyProperties";
503
+ const _TPL = "TerminologyPropertiesList";
504
+ const _TR = "TagResource";
505
+ const _TRR = "TagResourceRequest";
506
+ const _TRRa = "TagResourceResponse";
507
+ const _TS = "TranslationSettings";
508
+ const _TSLEE = "TextSizeLimitExceededException";
509
+ const _TT = "TargetText";
510
+ const _TTJF = "TextTranslationJobFilter";
511
+ const _TTJP = "TextTranslationJobProperties";
512
+ const _TTJPL = "TextTranslationJobPropertiesList";
513
+ const _TTR = "TranslateTextRequest";
514
+ const _TTRr = "TranslateTextResponse";
515
+ const _TTr = "TranslatedText";
516
+ const _TTra = "TranslateText";
517
+ const _Ta = "Tags";
518
+ const _Tag = "Tag";
519
+ const _Te = "Term";
520
+ const _Tex = "Text";
521
+ const _Ty = "Type";
522
+ const _UDLCE = "UnsupportedDisplayLanguageCodeException";
523
+ const _ULPE = "UnsupportedLanguagePairException";
524
+ const _UPD = "UpdateParallelData";
525
+ const _UPDR = "UpdateParallelDataRequest";
526
+ const _UPDRp = "UpdateParallelDataResponse";
527
+ const _UR = "UntagResource";
528
+ const _URR = "UntagResourceRequest";
529
+ const _URRn = "UntagResourceResponse";
530
+ const _V = "Value";
531
+ const _c = "client";
532
+ const _e = "error";
533
+ const _hE = "httpError";
534
+ const _m = "message";
535
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.translate";
536
+ const _se = "server";
537
+ const n0 = "com.amazonaws.translate";
538
+ const _s_registry = TypeRegistry.for(_s);
539
+ var TranslateServiceException$ = [-3, _s, "TranslateServiceException", 0, [], []];
540
+ _s_registry.registerError(TranslateServiceException$, TranslateServiceException);
541
+ const n0_registry = TypeRegistry.for(n0);
542
+ var ConcurrentModificationException$ = [-3, n0, _CME,
543
+ { [_e]: _c, [_hE]: 409 },
544
+ [_M],
545
+ [0]
546
+ ];
547
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
548
+ var ConflictException$ = [-3, n0, _CE,
549
+ { [_e]: _c, [_hE]: 409 },
550
+ [_M],
551
+ [0]
552
+ ];
553
+ n0_registry.registerError(ConflictException$, ConflictException);
554
+ var DetectedLanguageLowConfidenceException$ = [-3, n0, _DLLCE,
555
+ { [_e]: _c, [_hE]: 400 },
556
+ [_M, _DLC],
557
+ [0, 0]
558
+ ];
559
+ n0_registry.registerError(DetectedLanguageLowConfidenceException$, DetectedLanguageLowConfidenceException);
560
+ var InternalServerException$ = [-3, n0, _ISE,
561
+ { [_e]: _se, [_hE]: 500 },
562
+ [_M],
563
+ [0]
564
+ ];
565
+ n0_registry.registerError(InternalServerException$, InternalServerException);
566
+ var InvalidFilterException$ = [-3, n0, _IFE,
567
+ { [_e]: _c, [_hE]: 400 },
568
+ [_M],
569
+ [0]
570
+ ];
571
+ n0_registry.registerError(InvalidFilterException$, InvalidFilterException);
572
+ var InvalidParameterValueException$ = [-3, n0, _IPVE,
573
+ { [_e]: _c, [_hE]: 400 },
574
+ [_M],
575
+ [0]
576
+ ];
577
+ n0_registry.registerError(InvalidParameterValueException$, InvalidParameterValueException);
578
+ var InvalidRequestException$ = [-3, n0, _IRE,
579
+ { [_e]: _c, [_hE]: 400 },
580
+ [_M],
581
+ [0]
582
+ ];
583
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
584
+ var LimitExceededException$ = [-3, n0, _LEE,
585
+ { [_e]: _c, [_hE]: 400 },
586
+ [_M],
587
+ [0]
588
+ ];
589
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
590
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
591
+ { [_e]: _c, [_hE]: 404 },
592
+ [_M],
593
+ [0]
594
+ ];
595
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
596
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
597
+ { [_e]: _se, [_hE]: 503 },
598
+ [_M],
599
+ [0]
600
+ ];
601
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
602
+ var TextSizeLimitExceededException$ = [-3, n0, _TSLEE,
603
+ { [_e]: _c, [_hE]: 400 },
604
+ [_M],
605
+ [0]
606
+ ];
607
+ n0_registry.registerError(TextSizeLimitExceededException$, TextSizeLimitExceededException);
608
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
609
+ { [_e]: _c, [_hE]: 429 },
610
+ [_M],
611
+ [0]
612
+ ];
613
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
614
+ var TooManyTagsException$ = [-3, n0, _TMTE,
615
+ { [_e]: _c, [_hE]: 400 },
616
+ [_m, _RA],
617
+ [0, 0]
618
+ ];
619
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
620
+ var UnsupportedDisplayLanguageCodeException$ = [-3, n0, _UDLCE,
621
+ { [_e]: _c, [_hE]: 400 },
622
+ [_M, _DLCi],
623
+ [0, 0]
624
+ ];
625
+ n0_registry.registerError(UnsupportedDisplayLanguageCodeException$, UnsupportedDisplayLanguageCodeException);
626
+ var UnsupportedLanguagePairException$ = [-3, n0, _ULPE,
627
+ { [_e]: _c, [_hE]: 400 },
628
+ [_M, _SLC, _TLC],
629
+ [0, 0, 0]
630
+ ];
631
+ n0_registry.registerError(UnsupportedLanguagePairException$, UnsupportedLanguagePairException);
632
+ const errorTypeRegistries = [
633
+ _s_registry,
634
+ n0_registry,
635
+ ];
636
+ var DocumentContent = [0, n0, _DC, 8, 21];
637
+ var TerminologyFile = [0, n0, _TF, 8, 21];
638
+ var TranslatedDocumentContent = [0, n0, _TDC, 8, 21];
639
+ var AppliedTerminology$ = [3, n0, _AT,
640
+ 0,
641
+ [_N, _T],
642
+ [0, () => TermList]
643
+ ];
644
+ var CreateParallelDataRequest$ = [3, n0, _CPDR,
645
+ 0,
646
+ [_N, _PDC, _D, _EK, _CT, _Ta],
647
+ [0, () => ParallelDataConfig$, 0, () => EncryptionKey$, [0, 4], () => TagList], 2
648
+ ];
649
+ var CreateParallelDataResponse$ = [3, n0, _CPDRr,
650
+ 0,
651
+ [_N, _S],
652
+ [0, 0]
653
+ ];
654
+ var DeleteParallelDataRequest$ = [3, n0, _DPDR,
655
+ 0,
656
+ [_N],
657
+ [0], 1
658
+ ];
659
+ var DeleteParallelDataResponse$ = [3, n0, _DPDRe,
660
+ 0,
661
+ [_N, _S],
662
+ [0, 0]
663
+ ];
664
+ var DeleteTerminologyRequest$ = [3, n0, _DTR,
665
+ 0,
666
+ [_N],
667
+ [0], 1
668
+ ];
669
+ var DescribeTextTranslationJobRequest$ = [3, n0, _DTTJR,
670
+ 0,
671
+ [_JI],
672
+ [0], 1
673
+ ];
674
+ var DescribeTextTranslationJobResponse$ = [3, n0, _DTTJRe,
675
+ 0,
676
+ [_TTJP],
677
+ [() => TextTranslationJobProperties$]
678
+ ];
679
+ var Document$ = [3, n0, _Do,
680
+ 0,
681
+ [_C, _CTo],
682
+ [[() => DocumentContent, 0], 0], 2
683
+ ];
684
+ var EncryptionKey$ = [3, n0, _EK,
685
+ 0,
686
+ [_Ty, _I],
687
+ [0, 0], 2
688
+ ];
689
+ var GetParallelDataRequest$ = [3, n0, _GPDR,
690
+ 0,
691
+ [_N],
692
+ [0], 1
693
+ ];
694
+ var GetParallelDataResponse$ = [3, n0, _GPDRe,
695
+ 0,
696
+ [_PDP, _DL, _ADL, _LUAADL],
697
+ [() => ParallelDataProperties$, () => ParallelDataDataLocation$, () => ParallelDataDataLocation$, () => ParallelDataDataLocation$]
698
+ ];
699
+ var GetTerminologyRequest$ = [3, n0, _GTR,
700
+ 0,
701
+ [_N, _TDF],
702
+ [0, 0], 1
703
+ ];
704
+ var GetTerminologyResponse$ = [3, n0, _GTRe,
705
+ 0,
706
+ [_TP, _TDL, _ADL],
707
+ [() => TerminologyProperties$, () => TerminologyDataLocation$, () => TerminologyDataLocation$]
708
+ ];
709
+ var ImportTerminologyRequest$ = [3, n0, _ITR,
710
+ 0,
711
+ [_N, _MS, _TD, _D, _EK, _Ta],
712
+ [0, 0, [() => TerminologyData$, 0], 0, () => EncryptionKey$, () => TagList], 3
713
+ ];
714
+ var ImportTerminologyResponse$ = [3, n0, _ITRm,
715
+ 0,
716
+ [_TP, _ADL],
717
+ [() => TerminologyProperties$, () => TerminologyDataLocation$]
718
+ ];
719
+ var InputDataConfig$ = [3, n0, _IDC,
720
+ 0,
721
+ [_SU, _CTo],
722
+ [0, 0], 2
723
+ ];
724
+ var JobDetails$ = [3, n0, _JD,
725
+ 0,
726
+ [_TDCr, _DWEC, _IDCn],
727
+ [1, 1, 1]
728
+ ];
729
+ var Language$ = [3, n0, _L,
730
+ 0,
731
+ [_LN, _LC],
732
+ [0, 0], 2
733
+ ];
734
+ var ListLanguagesRequest$ = [3, n0, _LLR,
735
+ 0,
736
+ [_DLCi, _NT, _MR],
737
+ [0, 0, 1]
738
+ ];
739
+ var ListLanguagesResponse$ = [3, n0, _LLRi,
740
+ 0,
741
+ [_La, _DLCi, _NT],
742
+ [() => LanguagesList, 0, 0]
743
+ ];
744
+ var ListParallelDataRequest$ = [3, n0, _LPDR,
745
+ 0,
746
+ [_NT, _MR],
747
+ [0, 1]
748
+ ];
749
+ var ListParallelDataResponse$ = [3, n0, _LPDRi,
750
+ 0,
751
+ [_PDPL, _NT],
752
+ [() => ParallelDataPropertiesList, 0]
753
+ ];
754
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
755
+ 0,
756
+ [_RA],
757
+ [0], 1
758
+ ];
759
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
760
+ 0,
761
+ [_Ta],
762
+ [() => TagList]
763
+ ];
764
+ var ListTerminologiesRequest$ = [3, n0, _LTR,
765
+ 0,
766
+ [_NT, _MR],
767
+ [0, 1]
768
+ ];
769
+ var ListTerminologiesResponse$ = [3, n0, _LTRi,
770
+ 0,
771
+ [_TPL, _NT],
772
+ [() => TerminologyPropertiesList, 0]
773
+ ];
774
+ var ListTextTranslationJobsRequest$ = [3, n0, _LTTJR,
775
+ 0,
776
+ [_F, _NT, _MR],
777
+ [() => TextTranslationJobFilter$, 0, 1]
778
+ ];
779
+ var ListTextTranslationJobsResponse$ = [3, n0, _LTTJRi,
780
+ 0,
781
+ [_TTJPL, _NT],
782
+ [() => TextTranslationJobPropertiesList, 0]
783
+ ];
784
+ var OutputDataConfig$ = [3, n0, _ODC,
785
+ 0,
786
+ [_SU, _EK],
787
+ [0, () => EncryptionKey$], 1
788
+ ];
789
+ var ParallelDataConfig$ = [3, n0, _PDC,
790
+ 0,
791
+ [_SU, _Fo],
792
+ [0, 0]
793
+ ];
794
+ var ParallelDataDataLocation$ = [3, n0, _PDDL,
795
+ 0,
796
+ [_RT, _Lo],
797
+ [0, 0], 2
798
+ ];
799
+ var ParallelDataProperties$ = [3, n0, _PDP,
800
+ 0,
801
+ [_N, _A, _D, _S, _SLC, _TLCa, _PDC, _M, _IDS, _IRC, _FRC, _SRC, _EK, _CA, _LUA, _LUAS, _LUAA],
802
+ [0, 0, 0, 0, 0, 64 | 0, () => ParallelDataConfig$, 0, 1, 1, 1, 1, () => EncryptionKey$, 4, 4, 0, 4]
803
+ ];
804
+ var StartTextTranslationJobRequest$ = [3, n0, _STTJR,
805
+ 0,
806
+ [_IDC, _ODC, _DARA, _SLC, _TLCa, _JN, _TN, _PDN, _CT, _Se],
807
+ [() => InputDataConfig$, () => OutputDataConfig$, 0, 0, 64 | 0, 0, 64 | 0, 64 | 0, [0, 4], () => TranslationSettings$], 5
808
+ ];
809
+ var StartTextTranslationJobResponse$ = [3, n0, _STTJRt,
810
+ 0,
811
+ [_JI, _JS],
812
+ [0, 0]
813
+ ];
814
+ var StopTextTranslationJobRequest$ = [3, n0, _STTJRto,
815
+ 0,
816
+ [_JI],
817
+ [0], 1
818
+ ];
819
+ var StopTextTranslationJobResponse$ = [3, n0, _STTJRtop,
820
+ 0,
821
+ [_JI, _JS],
822
+ [0, 0]
823
+ ];
824
+ var Tag$ = [3, n0, _Tag,
825
+ 0,
826
+ [_K, _V],
827
+ [0, 0], 2
828
+ ];
829
+ var TagResourceRequest$ = [3, n0, _TRR,
830
+ 0,
831
+ [_RA, _Ta],
832
+ [0, () => TagList], 2
833
+ ];
834
+ var TagResourceResponse$ = [3, n0, _TRRa,
835
+ 0,
836
+ [],
837
+ []
838
+ ];
839
+ var Term$ = [3, n0, _Te,
840
+ 0,
841
+ [_ST, _TT],
842
+ [0, 0]
843
+ ];
844
+ var TerminologyData$ = [3, n0, _TD,
845
+ 0,
846
+ [_Fi, _Fo, _Di],
847
+ [[() => TerminologyFile, 0], 0, 0], 2
848
+ ];
849
+ var TerminologyDataLocation$ = [3, n0, _TDL,
850
+ 0,
851
+ [_RT, _Lo],
852
+ [0, 0], 2
853
+ ];
854
+ var TerminologyProperties$ = [3, n0, _TP,
855
+ 0,
856
+ [_N, _D, _A, _SLC, _TLCa, _EK, _SB, _TC, _CA, _LUA, _Di, _M, _STC, _Fo],
857
+ [0, 0, 0, 0, 64 | 0, () => EncryptionKey$, 1, 1, 4, 4, 0, 0, 1, 0]
858
+ ];
859
+ var TextTranslationJobFilter$ = [3, n0, _TTJF,
860
+ 0,
861
+ [_JN, _JS, _SBT, _SAT],
862
+ [0, 0, 4, 4]
863
+ ];
864
+ var TextTranslationJobProperties$ = [3, n0, _TTJP,
865
+ 0,
866
+ [_JI, _JN, _JS, _JD, _SLC, _TLCa, _TN, _PDN, _M, _STu, _ET, _IDC, _ODC, _DARA, _Se],
867
+ [0, 0, 0, () => JobDetails$, 0, 64 | 0, 64 | 0, 64 | 0, 0, 4, 4, () => InputDataConfig$, () => OutputDataConfig$, 0, () => TranslationSettings$]
868
+ ];
869
+ var TranslatedDocument$ = [3, n0, _TDr,
870
+ 0,
871
+ [_C],
872
+ [[() => TranslatedDocumentContent, 0]], 1
873
+ ];
874
+ var TranslateDocumentRequest$ = [3, n0, _TDR,
875
+ 0,
876
+ [_Do, _SLC, _TLC, _TN, _Se],
877
+ [[() => Document$, 0], 0, 0, 64 | 0, () => TranslationSettings$], 3
878
+ ];
879
+ var TranslateDocumentResponse$ = [3, n0, _TDRr,
880
+ 0,
881
+ [_TDr, _SLC, _TLC, _ATp, _AS],
882
+ [[() => TranslatedDocument$, 0], 0, 0, () => AppliedTerminologyList, () => TranslationSettings$], 3
883
+ ];
884
+ var TranslateTextRequest$ = [3, n0, _TTR,
885
+ 0,
886
+ [_Tex, _SLC, _TLC, _TN, _Se],
887
+ [0, 0, 0, 64 | 0, () => TranslationSettings$], 3
888
+ ];
889
+ var TranslateTextResponse$ = [3, n0, _TTRr,
890
+ 0,
891
+ [_TTr, _SLC, _TLC, _ATp, _AS],
892
+ [0, 0, 0, () => AppliedTerminologyList, () => TranslationSettings$], 3
893
+ ];
894
+ var TranslationSettings$ = [3, n0, _TS,
895
+ 0,
896
+ [_For, _P, _B],
897
+ [0, 0, 0]
898
+ ];
899
+ var UntagResourceRequest$ = [3, n0, _URR,
900
+ 0,
901
+ [_RA, _TK],
902
+ [0, 64 | 0], 2
903
+ ];
904
+ var UntagResourceResponse$ = [3, n0, _URRn,
905
+ 0,
906
+ [],
907
+ []
908
+ ];
909
+ var UpdateParallelDataRequest$ = [3, n0, _UPDR,
910
+ 0,
911
+ [_N, _PDC, _D, _CT],
912
+ [0, () => ParallelDataConfig$, 0, [0, 4]], 2
913
+ ];
914
+ var UpdateParallelDataResponse$ = [3, n0, _UPDRp,
915
+ 0,
916
+ [_N, _S, _LUAS, _LUAA],
917
+ [0, 0, 0, 4]
918
+ ];
919
+ var __Unit = "unit";
920
+ var AppliedTerminologyList = [1, n0, _ATL,
921
+ 0, () => AppliedTerminology$
922
+ ];
923
+ var LanguagesList = [1, n0, _LL,
924
+ 0, () => Language$
925
+ ];
926
+ var ParallelDataPropertiesList = [1, n0, _PDPL,
927
+ 0, () => ParallelDataProperties$
928
+ ];
929
+ var TagList = [1, n0, _TL,
930
+ 0, () => Tag$
931
+ ];
932
+ var TerminologyPropertiesList = [1, n0, _TPL,
933
+ 0, () => TerminologyProperties$
934
+ ];
935
+ var TermList = [1, n0, _TLe,
936
+ 0, () => Term$
937
+ ];
938
+ var TextTranslationJobPropertiesList = [1, n0, _TTJPL,
939
+ 0, () => TextTranslationJobProperties$
940
+ ];
941
+ var CreateParallelData$ = [9, n0, _CPD,
942
+ 0, () => CreateParallelDataRequest$, () => CreateParallelDataResponse$
943
+ ];
944
+ var DeleteParallelData$ = [9, n0, _DPD,
945
+ 0, () => DeleteParallelDataRequest$, () => DeleteParallelDataResponse$
946
+ ];
947
+ var DeleteTerminology$ = [9, n0, _DT,
948
+ 0, () => DeleteTerminologyRequest$, () => __Unit
949
+ ];
950
+ var DescribeTextTranslationJob$ = [9, n0, _DTTJ,
951
+ 0, () => DescribeTextTranslationJobRequest$, () => DescribeTextTranslationJobResponse$
952
+ ];
953
+ var GetParallelData$ = [9, n0, _GPD,
954
+ 0, () => GetParallelDataRequest$, () => GetParallelDataResponse$
955
+ ];
956
+ var GetTerminology$ = [9, n0, _GT,
957
+ 0, () => GetTerminologyRequest$, () => GetTerminologyResponse$
958
+ ];
959
+ var ImportTerminology$ = [9, n0, _IT,
960
+ 0, () => ImportTerminologyRequest$, () => ImportTerminologyResponse$
961
+ ];
962
+ var ListLanguages$ = [9, n0, _LLi,
963
+ 0, () => ListLanguagesRequest$, () => ListLanguagesResponse$
964
+ ];
965
+ var ListParallelData$ = [9, n0, _LPD,
966
+ 0, () => ListParallelDataRequest$, () => ListParallelDataResponse$
967
+ ];
968
+ var ListTagsForResource$ = [9, n0, _LTFR,
969
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
970
+ ];
971
+ var ListTerminologies$ = [9, n0, _LT,
972
+ 0, () => ListTerminologiesRequest$, () => ListTerminologiesResponse$
973
+ ];
974
+ var ListTextTranslationJobs$ = [9, n0, _LTTJ,
975
+ 0, () => ListTextTranslationJobsRequest$, () => ListTextTranslationJobsResponse$
976
+ ];
977
+ var StartTextTranslationJob$ = [9, n0, _STTJ,
978
+ 0, () => StartTextTranslationJobRequest$, () => StartTextTranslationJobResponse$
979
+ ];
980
+ var StopTextTranslationJob$ = [9, n0, _STTJt,
981
+ 0, () => StopTextTranslationJobRequest$, () => StopTextTranslationJobResponse$
982
+ ];
983
+ var TagResource$ = [9, n0, _TR,
984
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
985
+ ];
986
+ var TranslateDocument$ = [9, n0, _TDra,
987
+ 0, () => TranslateDocumentRequest$, () => TranslateDocumentResponse$
988
+ ];
989
+ var TranslateText$ = [9, n0, _TTra,
990
+ 0, () => TranslateTextRequest$, () => TranslateTextResponse$
991
+ ];
992
+ var UntagResource$ = [9, n0, _UR,
993
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
994
+ ];
995
+ var UpdateParallelData$ = [9, n0, _UPD,
996
+ 0, () => UpdateParallelDataRequest$, () => UpdateParallelDataResponse$
997
+ ];
998
+
999
+ const getRuntimeConfig$1 = (config) => {
1000
+ return {
1001
+ apiVersion: "2017-07-01",
1002
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1003
+ base64Encoder: config?.base64Encoder ?? toBase64,
1004
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1005
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1006
+ extensions: config?.extensions ?? [],
1007
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultTranslateHttpAuthSchemeProvider,
1008
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1009
+ {
1010
+ schemeId: "aws.auth#sigv4",
1011
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1012
+ signer: new AwsSdkSigV4Signer(),
1013
+ },
1014
+ ],
1015
+ logger: config?.logger ?? new NoOpLogger(),
1016
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
1017
+ protocolSettings: config?.protocolSettings ?? {
1018
+ defaultNamespace: "com.amazonaws.translate",
1019
+ errorTypeRegistries,
1020
+ version: "2017-07-01",
1021
+ serviceTarget: "AWSShineFrontendService_20170701",
1022
+ },
1023
+ serviceId: config?.serviceId ?? "Translate",
1024
+ sha256: config?.sha256 ?? Sha256,
1025
+ urlParser: config?.urlParser ?? parseUrl,
1026
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1027
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1028
+ };
1029
+ };
1030
+
1031
+ const getRuntimeConfig = (config) => {
1032
+ emitWarningIfUnsupportedVersion(process.version);
1033
+ const defaultsMode = resolveDefaultsModeConfig(config);
1034
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1035
+ const clientSharedValues = getRuntimeConfig$1(config);
1036
+ emitWarningIfUnsupportedVersion$1(process.version);
1037
+ const loaderConfig = {
1038
+ profile: config?.profile,
1039
+ logger: clientSharedValues.logger,
1040
+ };
1041
+ return {
1042
+ ...clientSharedValues,
1043
+ ...config,
1044
+ runtime: "node",
1045
+ defaultsMode,
1046
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1047
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1048
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1049
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1050
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1051
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1052
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1053
+ retryMode: config?.retryMode ??
1054
+ loadConfig({
1055
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1056
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1057
+ }, config),
1058
+ streamCollector: config?.streamCollector ?? streamCollector,
1059
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1060
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1061
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1062
+ };
1063
+ };
1064
+
34
1065
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1066
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1067
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -437,38 +1468,146 @@ const DisplayLanguageCode = {
437
1468
  ZH_TW: "zh-TW",
438
1469
  };
439
1470
 
1471
+ exports.AppliedTerminology$ = AppliedTerminology$;
440
1472
  exports.Brevity = Brevity;
1473
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1474
+ exports.ConcurrentModificationException$ = ConcurrentModificationException$;
1475
+ exports.ConflictException = ConflictException;
1476
+ exports.ConflictException$ = ConflictException$;
1477
+ exports.CreateParallelData$ = CreateParallelData$;
441
1478
  exports.CreateParallelDataCommand = CreateParallelDataCommand;
1479
+ exports.CreateParallelDataRequest$ = CreateParallelDataRequest$;
1480
+ exports.CreateParallelDataResponse$ = CreateParallelDataResponse$;
1481
+ exports.DeleteParallelData$ = DeleteParallelData$;
442
1482
  exports.DeleteParallelDataCommand = DeleteParallelDataCommand;
1483
+ exports.DeleteParallelDataRequest$ = DeleteParallelDataRequest$;
1484
+ exports.DeleteParallelDataResponse$ = DeleteParallelDataResponse$;
1485
+ exports.DeleteTerminology$ = DeleteTerminology$;
443
1486
  exports.DeleteTerminologyCommand = DeleteTerminologyCommand;
1487
+ exports.DeleteTerminologyRequest$ = DeleteTerminologyRequest$;
1488
+ exports.DescribeTextTranslationJob$ = DescribeTextTranslationJob$;
444
1489
  exports.DescribeTextTranslationJobCommand = DescribeTextTranslationJobCommand;
1490
+ exports.DescribeTextTranslationJobRequest$ = DescribeTextTranslationJobRequest$;
1491
+ exports.DescribeTextTranslationJobResponse$ = DescribeTextTranslationJobResponse$;
1492
+ exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException;
1493
+ exports.DetectedLanguageLowConfidenceException$ = DetectedLanguageLowConfidenceException$;
445
1494
  exports.Directionality = Directionality;
446
1495
  exports.DisplayLanguageCode = DisplayLanguageCode;
1496
+ exports.Document$ = Document$;
1497
+ exports.EncryptionKey$ = EncryptionKey$;
447
1498
  exports.EncryptionKeyType = EncryptionKeyType;
448
1499
  exports.Formality = Formality;
1500
+ exports.GetParallelData$ = GetParallelData$;
449
1501
  exports.GetParallelDataCommand = GetParallelDataCommand;
1502
+ exports.GetParallelDataRequest$ = GetParallelDataRequest$;
1503
+ exports.GetParallelDataResponse$ = GetParallelDataResponse$;
1504
+ exports.GetTerminology$ = GetTerminology$;
450
1505
  exports.GetTerminologyCommand = GetTerminologyCommand;
1506
+ exports.GetTerminologyRequest$ = GetTerminologyRequest$;
1507
+ exports.GetTerminologyResponse$ = GetTerminologyResponse$;
1508
+ exports.ImportTerminology$ = ImportTerminology$;
451
1509
  exports.ImportTerminologyCommand = ImportTerminologyCommand;
1510
+ exports.ImportTerminologyRequest$ = ImportTerminologyRequest$;
1511
+ exports.ImportTerminologyResponse$ = ImportTerminologyResponse$;
1512
+ exports.InputDataConfig$ = InputDataConfig$;
1513
+ exports.InternalServerException = InternalServerException;
1514
+ exports.InternalServerException$ = InternalServerException$;
1515
+ exports.InvalidFilterException = InvalidFilterException;
1516
+ exports.InvalidFilterException$ = InvalidFilterException$;
1517
+ exports.InvalidParameterValueException = InvalidParameterValueException;
1518
+ exports.InvalidParameterValueException$ = InvalidParameterValueException$;
1519
+ exports.InvalidRequestException = InvalidRequestException;
1520
+ exports.InvalidRequestException$ = InvalidRequestException$;
1521
+ exports.JobDetails$ = JobDetails$;
452
1522
  exports.JobStatus = JobStatus;
1523
+ exports.Language$ = Language$;
1524
+ exports.LimitExceededException = LimitExceededException;
1525
+ exports.LimitExceededException$ = LimitExceededException$;
1526
+ exports.ListLanguages$ = ListLanguages$;
453
1527
  exports.ListLanguagesCommand = ListLanguagesCommand;
1528
+ exports.ListLanguagesRequest$ = ListLanguagesRequest$;
1529
+ exports.ListLanguagesResponse$ = ListLanguagesResponse$;
1530
+ exports.ListParallelData$ = ListParallelData$;
454
1531
  exports.ListParallelDataCommand = ListParallelDataCommand;
1532
+ exports.ListParallelDataRequest$ = ListParallelDataRequest$;
1533
+ exports.ListParallelDataResponse$ = ListParallelDataResponse$;
1534
+ exports.ListTagsForResource$ = ListTagsForResource$;
455
1535
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1536
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1537
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1538
+ exports.ListTerminologies$ = ListTerminologies$;
456
1539
  exports.ListTerminologiesCommand = ListTerminologiesCommand;
1540
+ exports.ListTerminologiesRequest$ = ListTerminologiesRequest$;
1541
+ exports.ListTerminologiesResponse$ = ListTerminologiesResponse$;
1542
+ exports.ListTextTranslationJobs$ = ListTextTranslationJobs$;
457
1543
  exports.ListTextTranslationJobsCommand = ListTextTranslationJobsCommand;
1544
+ exports.ListTextTranslationJobsRequest$ = ListTextTranslationJobsRequest$;
1545
+ exports.ListTextTranslationJobsResponse$ = ListTextTranslationJobsResponse$;
458
1546
  exports.MergeStrategy = MergeStrategy;
1547
+ exports.OutputDataConfig$ = OutputDataConfig$;
1548
+ exports.ParallelDataConfig$ = ParallelDataConfig$;
1549
+ exports.ParallelDataDataLocation$ = ParallelDataDataLocation$;
459
1550
  exports.ParallelDataFormat = ParallelDataFormat;
1551
+ exports.ParallelDataProperties$ = ParallelDataProperties$;
460
1552
  exports.ParallelDataStatus = ParallelDataStatus;
461
1553
  exports.Profanity = Profanity;
1554
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1555
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1556
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1557
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
1558
+ exports.StartTextTranslationJob$ = StartTextTranslationJob$;
462
1559
  exports.StartTextTranslationJobCommand = StartTextTranslationJobCommand;
1560
+ exports.StartTextTranslationJobRequest$ = StartTextTranslationJobRequest$;
1561
+ exports.StartTextTranslationJobResponse$ = StartTextTranslationJobResponse$;
1562
+ exports.StopTextTranslationJob$ = StopTextTranslationJob$;
463
1563
  exports.StopTextTranslationJobCommand = StopTextTranslationJobCommand;
1564
+ exports.StopTextTranslationJobRequest$ = StopTextTranslationJobRequest$;
1565
+ exports.StopTextTranslationJobResponse$ = StopTextTranslationJobResponse$;
1566
+ exports.Tag$ = Tag$;
1567
+ exports.TagResource$ = TagResource$;
464
1568
  exports.TagResourceCommand = TagResourceCommand;
1569
+ exports.TagResourceRequest$ = TagResourceRequest$;
1570
+ exports.TagResourceResponse$ = TagResourceResponse$;
1571
+ exports.Term$ = Term$;
1572
+ exports.TerminologyData$ = TerminologyData$;
465
1573
  exports.TerminologyDataFormat = TerminologyDataFormat;
1574
+ exports.TerminologyDataLocation$ = TerminologyDataLocation$;
1575
+ exports.TerminologyProperties$ = TerminologyProperties$;
1576
+ exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
1577
+ exports.TextSizeLimitExceededException$ = TextSizeLimitExceededException$;
1578
+ exports.TextTranslationJobFilter$ = TextTranslationJobFilter$;
1579
+ exports.TextTranslationJobProperties$ = TextTranslationJobProperties$;
1580
+ exports.TooManyRequestsException = TooManyRequestsException;
1581
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1582
+ exports.TooManyTagsException = TooManyTagsException;
1583
+ exports.TooManyTagsException$ = TooManyTagsException$;
466
1584
  exports.Translate = Translate;
467
1585
  exports.TranslateClient = TranslateClient;
1586
+ exports.TranslateDocument$ = TranslateDocument$;
468
1587
  exports.TranslateDocumentCommand = TranslateDocumentCommand;
1588
+ exports.TranslateDocumentRequest$ = TranslateDocumentRequest$;
1589
+ exports.TranslateDocumentResponse$ = TranslateDocumentResponse$;
1590
+ exports.TranslateServiceException = TranslateServiceException;
1591
+ exports.TranslateServiceException$ = TranslateServiceException$;
1592
+ exports.TranslateText$ = TranslateText$;
469
1593
  exports.TranslateTextCommand = TranslateTextCommand;
1594
+ exports.TranslateTextRequest$ = TranslateTextRequest$;
1595
+ exports.TranslateTextResponse$ = TranslateTextResponse$;
1596
+ exports.TranslatedDocument$ = TranslatedDocument$;
1597
+ exports.TranslationSettings$ = TranslationSettings$;
1598
+ exports.UnsupportedDisplayLanguageCodeException = UnsupportedDisplayLanguageCodeException;
1599
+ exports.UnsupportedDisplayLanguageCodeException$ = UnsupportedDisplayLanguageCodeException$;
1600
+ exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException;
1601
+ exports.UnsupportedLanguagePairException$ = UnsupportedLanguagePairException$;
1602
+ exports.UntagResource$ = UntagResource$;
470
1603
  exports.UntagResourceCommand = UntagResourceCommand;
1604
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1605
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1606
+ exports.UpdateParallelData$ = UpdateParallelData$;
471
1607
  exports.UpdateParallelDataCommand = UpdateParallelDataCommand;
1608
+ exports.UpdateParallelDataRequest$ = UpdateParallelDataRequest$;
1609
+ exports.UpdateParallelDataResponse$ = UpdateParallelDataResponse$;
1610
+ exports.errorTypeRegistries = errorTypeRegistries;
472
1611
  exports.paginateListLanguages = paginateListLanguages;
473
1612
  exports.paginateListParallelData = paginateListParallelData;
474
1613
  exports.paginateListTerminologies = paginateListTerminologies;