@aws-sdk/client-translate 3.716.0 → 3.723.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
@@ -179,7 +179,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
179
179
  }, "resolveRuntimeExtensions");
180
180
 
181
181
  // src/TranslateClient.ts
182
- var _TranslateClient = class _TranslateClient extends import_smithy_client.Client {
182
+ var TranslateClient = class extends import_smithy_client.Client {
183
+ static {
184
+ __name(this, "TranslateClient");
185
+ }
186
+ /**
187
+ * The resolved configuration of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
188
+ */
189
+ config;
183
190
  constructor(...[configuration]) {
184
191
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
185
192
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -189,7 +196,7 @@ var _TranslateClient = class _TranslateClient extends import_smithy_client.Clien
189
196
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
190
197
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
191
198
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
192
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
199
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
193
200
  super(_config_8);
194
201
  this.config = _config_8;
195
202
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -217,8 +224,6 @@ var _TranslateClient = class _TranslateClient extends import_smithy_client.Clien
217
224
  super.destroy();
218
225
  }
219
226
  };
220
- __name(_TranslateClient, "TranslateClient");
221
- var TranslateClient = _TranslateClient;
222
227
 
223
228
  // src/Translate.ts
224
229
 
@@ -239,7 +244,10 @@ var import_uuid = require("uuid");
239
244
 
240
245
  // src/models/TranslateServiceException.ts
241
246
 
242
- var _TranslateServiceException = class _TranslateServiceException extends import_smithy_client.ServiceException {
247
+ var TranslateServiceException = class _TranslateServiceException extends import_smithy_client.ServiceException {
248
+ static {
249
+ __name(this, "TranslateServiceException");
250
+ }
243
251
  /**
244
252
  * @internal
245
253
  */
@@ -248,11 +256,15 @@ var _TranslateServiceException = class _TranslateServiceException extends import
248
256
  Object.setPrototypeOf(this, _TranslateServiceException.prototype);
249
257
  }
250
258
  };
251
- __name(_TranslateServiceException, "TranslateServiceException");
252
- var TranslateServiceException = _TranslateServiceException;
253
259
 
254
260
  // src/models/models_0.ts
255
- var _ConcurrentModificationException = class _ConcurrentModificationException extends TranslateServiceException {
261
+ var ConcurrentModificationException = class _ConcurrentModificationException extends TranslateServiceException {
262
+ static {
263
+ __name(this, "ConcurrentModificationException");
264
+ }
265
+ name = "ConcurrentModificationException";
266
+ $fault = "client";
267
+ Message;
256
268
  /**
257
269
  * @internal
258
270
  */
@@ -262,15 +274,17 @@ var _ConcurrentModificationException = class _ConcurrentModificationException ex
262
274
  $fault: "client",
263
275
  ...opts
264
276
  });
265
- this.name = "ConcurrentModificationException";
266
- this.$fault = "client";
267
277
  Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
268
278
  this.Message = opts.Message;
269
279
  }
270
280
  };
271
- __name(_ConcurrentModificationException, "ConcurrentModificationException");
272
- var ConcurrentModificationException = _ConcurrentModificationException;
273
- var _ConflictException = class _ConflictException extends TranslateServiceException {
281
+ var ConflictException = class _ConflictException extends TranslateServiceException {
282
+ static {
283
+ __name(this, "ConflictException");
284
+ }
285
+ name = "ConflictException";
286
+ $fault = "client";
287
+ Message;
274
288
  /**
275
289
  * @internal
276
290
  */
@@ -280,14 +294,10 @@ var _ConflictException = class _ConflictException extends TranslateServiceExcept
280
294
  $fault: "client",
281
295
  ...opts
282
296
  });
283
- this.name = "ConflictException";
284
- this.$fault = "client";
285
297
  Object.setPrototypeOf(this, _ConflictException.prototype);
286
298
  this.Message = opts.Message;
287
299
  }
288
300
  };
289
- __name(_ConflictException, "ConflictException");
290
- var ConflictException = _ConflictException;
291
301
  var EncryptionKeyType = {
292
302
  KMS: "KMS"
293
303
  };
@@ -303,7 +313,13 @@ var ParallelDataStatus = {
303
313
  FAILED: "FAILED",
304
314
  UPDATING: "UPDATING"
305
315
  };
306
- var _InternalServerException = class _InternalServerException extends TranslateServiceException {
316
+ var InternalServerException = class _InternalServerException extends TranslateServiceException {
317
+ static {
318
+ __name(this, "InternalServerException");
319
+ }
320
+ name = "InternalServerException";
321
+ $fault = "server";
322
+ Message;
307
323
  /**
308
324
  * @internal
309
325
  */
@@ -313,15 +329,17 @@ var _InternalServerException = class _InternalServerException extends TranslateS
313
329
  $fault: "server",
314
330
  ...opts
315
331
  });
316
- this.name = "InternalServerException";
317
- this.$fault = "server";
318
332
  Object.setPrototypeOf(this, _InternalServerException.prototype);
319
333
  this.Message = opts.Message;
320
334
  }
321
335
  };
322
- __name(_InternalServerException, "InternalServerException");
323
- var InternalServerException = _InternalServerException;
324
- var _InvalidParameterValueException = class _InvalidParameterValueException extends TranslateServiceException {
336
+ var InvalidParameterValueException = class _InvalidParameterValueException extends TranslateServiceException {
337
+ static {
338
+ __name(this, "InvalidParameterValueException");
339
+ }
340
+ name = "InvalidParameterValueException";
341
+ $fault = "client";
342
+ Message;
325
343
  /**
326
344
  * @internal
327
345
  */
@@ -331,15 +349,17 @@ var _InvalidParameterValueException = class _InvalidParameterValueException exte
331
349
  $fault: "client",
332
350
  ...opts
333
351
  });
334
- this.name = "InvalidParameterValueException";
335
- this.$fault = "client";
336
352
  Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
337
353
  this.Message = opts.Message;
338
354
  }
339
355
  };
340
- __name(_InvalidParameterValueException, "InvalidParameterValueException");
341
- var InvalidParameterValueException = _InvalidParameterValueException;
342
- var _InvalidRequestException = class _InvalidRequestException extends TranslateServiceException {
356
+ var InvalidRequestException = class _InvalidRequestException extends TranslateServiceException {
357
+ static {
358
+ __name(this, "InvalidRequestException");
359
+ }
360
+ name = "InvalidRequestException";
361
+ $fault = "client";
362
+ Message;
343
363
  /**
344
364
  * @internal
345
365
  */
@@ -349,15 +369,17 @@ var _InvalidRequestException = class _InvalidRequestException extends TranslateS
349
369
  $fault: "client",
350
370
  ...opts
351
371
  });
352
- this.name = "InvalidRequestException";
353
- this.$fault = "client";
354
372
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
355
373
  this.Message = opts.Message;
356
374
  }
357
375
  };
358
- __name(_InvalidRequestException, "InvalidRequestException");
359
- var InvalidRequestException = _InvalidRequestException;
360
- var _LimitExceededException = class _LimitExceededException extends TranslateServiceException {
376
+ var LimitExceededException = class _LimitExceededException extends TranslateServiceException {
377
+ static {
378
+ __name(this, "LimitExceededException");
379
+ }
380
+ name = "LimitExceededException";
381
+ $fault = "client";
382
+ Message;
361
383
  /**
362
384
  * @internal
363
385
  */
@@ -367,15 +389,17 @@ var _LimitExceededException = class _LimitExceededException extends TranslateSer
367
389
  $fault: "client",
368
390
  ...opts
369
391
  });
370
- this.name = "LimitExceededException";
371
- this.$fault = "client";
372
392
  Object.setPrototypeOf(this, _LimitExceededException.prototype);
373
393
  this.Message = opts.Message;
374
394
  }
375
395
  };
376
- __name(_LimitExceededException, "LimitExceededException");
377
- var LimitExceededException = _LimitExceededException;
378
- var _TooManyRequestsException = class _TooManyRequestsException extends TranslateServiceException {
396
+ var TooManyRequestsException = class _TooManyRequestsException extends TranslateServiceException {
397
+ static {
398
+ __name(this, "TooManyRequestsException");
399
+ }
400
+ name = "TooManyRequestsException";
401
+ $fault = "client";
402
+ Message;
379
403
  /**
380
404
  * @internal
381
405
  */
@@ -385,15 +409,17 @@ var _TooManyRequestsException = class _TooManyRequestsException extends Translat
385
409
  $fault: "client",
386
410
  ...opts
387
411
  });
388
- this.name = "TooManyRequestsException";
389
- this.$fault = "client";
390
412
  Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
391
413
  this.Message = opts.Message;
392
414
  }
393
415
  };
394
- __name(_TooManyRequestsException, "TooManyRequestsException");
395
- var TooManyRequestsException = _TooManyRequestsException;
396
- var _TooManyTagsException = class _TooManyTagsException extends TranslateServiceException {
416
+ var TooManyTagsException = class _TooManyTagsException extends TranslateServiceException {
417
+ static {
418
+ __name(this, "TooManyTagsException");
419
+ }
420
+ name = "TooManyTagsException";
421
+ $fault = "client";
422
+ ResourceArn;
397
423
  /**
398
424
  * @internal
399
425
  */
@@ -403,15 +429,17 @@ var _TooManyTagsException = class _TooManyTagsException extends TranslateService
403
429
  $fault: "client",
404
430
  ...opts
405
431
  });
406
- this.name = "TooManyTagsException";
407
- this.$fault = "client";
408
432
  Object.setPrototypeOf(this, _TooManyTagsException.prototype);
409
433
  this.ResourceArn = opts.ResourceArn;
410
434
  }
411
435
  };
412
- __name(_TooManyTagsException, "TooManyTagsException");
413
- var TooManyTagsException = _TooManyTagsException;
414
- var _ResourceNotFoundException = class _ResourceNotFoundException extends TranslateServiceException {
436
+ var ResourceNotFoundException = class _ResourceNotFoundException extends TranslateServiceException {
437
+ static {
438
+ __name(this, "ResourceNotFoundException");
439
+ }
440
+ name = "ResourceNotFoundException";
441
+ $fault = "client";
442
+ Message;
415
443
  /**
416
444
  * @internal
417
445
  */
@@ -421,14 +449,10 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Transl
421
449
  $fault: "client",
422
450
  ...opts
423
451
  });
424
- this.name = "ResourceNotFoundException";
425
- this.$fault = "client";
426
452
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
427
453
  this.Message = opts.Message;
428
454
  }
429
455
  };
430
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
431
- var ResourceNotFoundException = _ResourceNotFoundException;
432
456
  var JobStatus = {
433
457
  COMPLETED: "COMPLETED",
434
458
  COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
@@ -472,7 +496,18 @@ var DisplayLanguageCode = {
472
496
  ZH: "zh",
473
497
  ZH_TW: "zh-TW"
474
498
  };
475
- var _UnsupportedDisplayLanguageCodeException = class _UnsupportedDisplayLanguageCodeException extends TranslateServiceException {
499
+ var UnsupportedDisplayLanguageCodeException = class _UnsupportedDisplayLanguageCodeException extends TranslateServiceException {
500
+ static {
501
+ __name(this, "UnsupportedDisplayLanguageCodeException");
502
+ }
503
+ name = "UnsupportedDisplayLanguageCodeException";
504
+ $fault = "client";
505
+ Message;
506
+ /**
507
+ * <p>Language code passed in with the request.</p>
508
+ * @public
509
+ */
510
+ DisplayLanguageCode;
476
511
  /**
477
512
  * @internal
478
513
  */
@@ -482,16 +517,18 @@ var _UnsupportedDisplayLanguageCodeException = class _UnsupportedDisplayLanguage
482
517
  $fault: "client",
483
518
  ...opts
484
519
  });
485
- this.name = "UnsupportedDisplayLanguageCodeException";
486
- this.$fault = "client";
487
520
  Object.setPrototypeOf(this, _UnsupportedDisplayLanguageCodeException.prototype);
488
521
  this.Message = opts.Message;
489
522
  this.DisplayLanguageCode = opts.DisplayLanguageCode;
490
523
  }
491
524
  };
492
- __name(_UnsupportedDisplayLanguageCodeException, "UnsupportedDisplayLanguageCodeException");
493
- var UnsupportedDisplayLanguageCodeException = _UnsupportedDisplayLanguageCodeException;
494
- var _InvalidFilterException = class _InvalidFilterException extends TranslateServiceException {
525
+ var InvalidFilterException = class _InvalidFilterException extends TranslateServiceException {
526
+ static {
527
+ __name(this, "InvalidFilterException");
528
+ }
529
+ name = "InvalidFilterException";
530
+ $fault = "client";
531
+ Message;
495
532
  /**
496
533
  * @internal
497
534
  */
@@ -501,15 +538,27 @@ var _InvalidFilterException = class _InvalidFilterException extends TranslateSer
501
538
  $fault: "client",
502
539
  ...opts
503
540
  });
504
- this.name = "InvalidFilterException";
505
- this.$fault = "client";
506
541
  Object.setPrototypeOf(this, _InvalidFilterException.prototype);
507
542
  this.Message = opts.Message;
508
543
  }
509
544
  };
510
- __name(_InvalidFilterException, "InvalidFilterException");
511
- var InvalidFilterException = _InvalidFilterException;
512
- var _UnsupportedLanguagePairException = class _UnsupportedLanguagePairException extends TranslateServiceException {
545
+ var UnsupportedLanguagePairException = class _UnsupportedLanguagePairException extends TranslateServiceException {
546
+ static {
547
+ __name(this, "UnsupportedLanguagePairException");
548
+ }
549
+ name = "UnsupportedLanguagePairException";
550
+ $fault = "client";
551
+ Message;
552
+ /**
553
+ * <p>The language code for the language of the input text. </p>
554
+ * @public
555
+ */
556
+ SourceLanguageCode;
557
+ /**
558
+ * <p>The language code for the language of the translated text. </p>
559
+ * @public
560
+ */
561
+ TargetLanguageCode;
513
562
  /**
514
563
  * @internal
515
564
  */
@@ -519,17 +568,19 @@ var _UnsupportedLanguagePairException = class _UnsupportedLanguagePairException
519
568
  $fault: "client",
520
569
  ...opts
521
570
  });
522
- this.name = "UnsupportedLanguagePairException";
523
- this.$fault = "client";
524
571
  Object.setPrototypeOf(this, _UnsupportedLanguagePairException.prototype);
525
572
  this.Message = opts.Message;
526
573
  this.SourceLanguageCode = opts.SourceLanguageCode;
527
574
  this.TargetLanguageCode = opts.TargetLanguageCode;
528
575
  }
529
576
  };
530
- __name(_UnsupportedLanguagePairException, "UnsupportedLanguagePairException");
531
- var UnsupportedLanguagePairException = _UnsupportedLanguagePairException;
532
- var _ServiceUnavailableException = class _ServiceUnavailableException extends TranslateServiceException {
577
+ var ServiceUnavailableException = class _ServiceUnavailableException extends TranslateServiceException {
578
+ static {
579
+ __name(this, "ServiceUnavailableException");
580
+ }
581
+ name = "ServiceUnavailableException";
582
+ $fault = "server";
583
+ Message;
533
584
  /**
534
585
  * @internal
535
586
  */
@@ -539,15 +590,22 @@ var _ServiceUnavailableException = class _ServiceUnavailableException extends Tr
539
590
  $fault: "server",
540
591
  ...opts
541
592
  });
542
- this.name = "ServiceUnavailableException";
543
- this.$fault = "server";
544
593
  Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
545
594
  this.Message = opts.Message;
546
595
  }
547
596
  };
548
- __name(_ServiceUnavailableException, "ServiceUnavailableException");
549
- var ServiceUnavailableException = _ServiceUnavailableException;
550
- var _DetectedLanguageLowConfidenceException = class _DetectedLanguageLowConfidenceException extends TranslateServiceException {
597
+ var DetectedLanguageLowConfidenceException = class _DetectedLanguageLowConfidenceException extends TranslateServiceException {
598
+ static {
599
+ __name(this, "DetectedLanguageLowConfidenceException");
600
+ }
601
+ name = "DetectedLanguageLowConfidenceException";
602
+ $fault = "client";
603
+ Message;
604
+ /**
605
+ * <p>The language code of the auto-detected language from Amazon Comprehend.</p>
606
+ * @public
607
+ */
608
+ DetectedLanguageCode;
551
609
  /**
552
610
  * @internal
553
611
  */
@@ -557,16 +615,18 @@ var _DetectedLanguageLowConfidenceException = class _DetectedLanguageLowConfiden
557
615
  $fault: "client",
558
616
  ...opts
559
617
  });
560
- this.name = "DetectedLanguageLowConfidenceException";
561
- this.$fault = "client";
562
618
  Object.setPrototypeOf(this, _DetectedLanguageLowConfidenceException.prototype);
563
619
  this.Message = opts.Message;
564
620
  this.DetectedLanguageCode = opts.DetectedLanguageCode;
565
621
  }
566
622
  };
567
- __name(_DetectedLanguageLowConfidenceException, "DetectedLanguageLowConfidenceException");
568
- var DetectedLanguageLowConfidenceException = _DetectedLanguageLowConfidenceException;
569
- var _TextSizeLimitExceededException = class _TextSizeLimitExceededException extends TranslateServiceException {
623
+ var TextSizeLimitExceededException = class _TextSizeLimitExceededException extends TranslateServiceException {
624
+ static {
625
+ __name(this, "TextSizeLimitExceededException");
626
+ }
627
+ name = "TextSizeLimitExceededException";
628
+ $fault = "client";
629
+ Message;
570
630
  /**
571
631
  * @internal
572
632
  */
@@ -576,14 +636,10 @@ var _TextSizeLimitExceededException = class _TextSizeLimitExceededException exte
576
636
  $fault: "client",
577
637
  ...opts
578
638
  });
579
- this.name = "TextSizeLimitExceededException";
580
- this.$fault = "client";
581
639
  Object.setPrototypeOf(this, _TextSizeLimitExceededException.prototype);
582
640
  this.Message = opts.Message;
583
641
  }
584
642
  };
585
- __name(_TextSizeLimitExceededException, "TextSizeLimitExceededException");
586
- var TextSizeLimitExceededException = _TextSizeLimitExceededException;
587
643
  var TerminologyDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
588
644
  ...obj,
589
645
  ...obj.File && { File: import_smithy_client.SENSITIVE_STRING }
@@ -1419,267 +1475,286 @@ function sharedHeaders(operation) {
1419
1475
  __name(sharedHeaders, "sharedHeaders");
1420
1476
 
1421
1477
  // src/commands/CreateParallelDataCommand.ts
1422
- var _CreateParallelDataCommand = class _CreateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1478
+ var CreateParallelDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1423
1479
  return [
1424
1480
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1425
1481
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1426
1482
  ];
1427
1483
  }).s("AWSShineFrontendService_20170701", "CreateParallelData", {}).n("TranslateClient", "CreateParallelDataCommand").f(void 0, void 0).ser(se_CreateParallelDataCommand).de(de_CreateParallelDataCommand).build() {
1484
+ static {
1485
+ __name(this, "CreateParallelDataCommand");
1486
+ }
1428
1487
  };
1429
- __name(_CreateParallelDataCommand, "CreateParallelDataCommand");
1430
- var CreateParallelDataCommand = _CreateParallelDataCommand;
1431
1488
 
1432
1489
  // src/commands/DeleteParallelDataCommand.ts
1433
1490
 
1434
1491
 
1435
1492
 
1436
- var _DeleteParallelDataCommand = class _DeleteParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1493
+ var DeleteParallelDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1437
1494
  return [
1438
1495
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1439
1496
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1440
1497
  ];
1441
1498
  }).s("AWSShineFrontendService_20170701", "DeleteParallelData", {}).n("TranslateClient", "DeleteParallelDataCommand").f(void 0, void 0).ser(se_DeleteParallelDataCommand).de(de_DeleteParallelDataCommand).build() {
1499
+ static {
1500
+ __name(this, "DeleteParallelDataCommand");
1501
+ }
1442
1502
  };
1443
- __name(_DeleteParallelDataCommand, "DeleteParallelDataCommand");
1444
- var DeleteParallelDataCommand = _DeleteParallelDataCommand;
1445
1503
 
1446
1504
  // src/commands/DeleteTerminologyCommand.ts
1447
1505
 
1448
1506
 
1449
1507
 
1450
- var _DeleteTerminologyCommand = class _DeleteTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1508
+ var DeleteTerminologyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1451
1509
  return [
1452
1510
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1453
1511
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1454
1512
  ];
1455
1513
  }).s("AWSShineFrontendService_20170701", "DeleteTerminology", {}).n("TranslateClient", "DeleteTerminologyCommand").f(void 0, void 0).ser(se_DeleteTerminologyCommand).de(de_DeleteTerminologyCommand).build() {
1514
+ static {
1515
+ __name(this, "DeleteTerminologyCommand");
1516
+ }
1456
1517
  };
1457
- __name(_DeleteTerminologyCommand, "DeleteTerminologyCommand");
1458
- var DeleteTerminologyCommand = _DeleteTerminologyCommand;
1459
1518
 
1460
1519
  // src/commands/DescribeTextTranslationJobCommand.ts
1461
1520
 
1462
1521
 
1463
1522
 
1464
- var _DescribeTextTranslationJobCommand = class _DescribeTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1523
+ var DescribeTextTranslationJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1465
1524
  return [
1466
1525
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1467
1526
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1468
1527
  ];
1469
1528
  }).s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {}).n("TranslateClient", "DescribeTextTranslationJobCommand").f(void 0, void 0).ser(se_DescribeTextTranslationJobCommand).de(de_DescribeTextTranslationJobCommand).build() {
1529
+ static {
1530
+ __name(this, "DescribeTextTranslationJobCommand");
1531
+ }
1470
1532
  };
1471
- __name(_DescribeTextTranslationJobCommand, "DescribeTextTranslationJobCommand");
1472
- var DescribeTextTranslationJobCommand = _DescribeTextTranslationJobCommand;
1473
1533
 
1474
1534
  // src/commands/GetParallelDataCommand.ts
1475
1535
 
1476
1536
 
1477
1537
 
1478
- var _GetParallelDataCommand = class _GetParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1538
+ var GetParallelDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1479
1539
  return [
1480
1540
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1481
1541
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1482
1542
  ];
1483
1543
  }).s("AWSShineFrontendService_20170701", "GetParallelData", {}).n("TranslateClient", "GetParallelDataCommand").f(void 0, void 0).ser(se_GetParallelDataCommand).de(de_GetParallelDataCommand).build() {
1544
+ static {
1545
+ __name(this, "GetParallelDataCommand");
1546
+ }
1484
1547
  };
1485
- __name(_GetParallelDataCommand, "GetParallelDataCommand");
1486
- var GetParallelDataCommand = _GetParallelDataCommand;
1487
1548
 
1488
1549
  // src/commands/GetTerminologyCommand.ts
1489
1550
 
1490
1551
 
1491
1552
 
1492
- var _GetTerminologyCommand = class _GetTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1553
+ var GetTerminologyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1493
1554
  return [
1494
1555
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1495
1556
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1496
1557
  ];
1497
1558
  }).s("AWSShineFrontendService_20170701", "GetTerminology", {}).n("TranslateClient", "GetTerminologyCommand").f(void 0, void 0).ser(se_GetTerminologyCommand).de(de_GetTerminologyCommand).build() {
1559
+ static {
1560
+ __name(this, "GetTerminologyCommand");
1561
+ }
1498
1562
  };
1499
- __name(_GetTerminologyCommand, "GetTerminologyCommand");
1500
- var GetTerminologyCommand = _GetTerminologyCommand;
1501
1563
 
1502
1564
  // src/commands/ImportTerminologyCommand.ts
1503
1565
 
1504
1566
 
1505
1567
 
1506
- var _ImportTerminologyCommand = class _ImportTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1568
+ var ImportTerminologyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1507
1569
  return [
1508
1570
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1509
1571
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1510
1572
  ];
1511
1573
  }).s("AWSShineFrontendService_20170701", "ImportTerminology", {}).n("TranslateClient", "ImportTerminologyCommand").f(ImportTerminologyRequestFilterSensitiveLog, void 0).ser(se_ImportTerminologyCommand).de(de_ImportTerminologyCommand).build() {
1574
+ static {
1575
+ __name(this, "ImportTerminologyCommand");
1576
+ }
1512
1577
  };
1513
- __name(_ImportTerminologyCommand, "ImportTerminologyCommand");
1514
- var ImportTerminologyCommand = _ImportTerminologyCommand;
1515
1578
 
1516
1579
  // src/commands/ListLanguagesCommand.ts
1517
1580
 
1518
1581
 
1519
1582
 
1520
- var _ListLanguagesCommand = class _ListLanguagesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1583
+ var ListLanguagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1521
1584
  return [
1522
1585
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1523
1586
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1524
1587
  ];
1525
1588
  }).s("AWSShineFrontendService_20170701", "ListLanguages", {}).n("TranslateClient", "ListLanguagesCommand").f(void 0, void 0).ser(se_ListLanguagesCommand).de(de_ListLanguagesCommand).build() {
1589
+ static {
1590
+ __name(this, "ListLanguagesCommand");
1591
+ }
1526
1592
  };
1527
- __name(_ListLanguagesCommand, "ListLanguagesCommand");
1528
- var ListLanguagesCommand = _ListLanguagesCommand;
1529
1593
 
1530
1594
  // src/commands/ListParallelDataCommand.ts
1531
1595
 
1532
1596
 
1533
1597
 
1534
- var _ListParallelDataCommand = class _ListParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1598
+ var ListParallelDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1535
1599
  return [
1536
1600
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1537
1601
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1538
1602
  ];
1539
1603
  }).s("AWSShineFrontendService_20170701", "ListParallelData", {}).n("TranslateClient", "ListParallelDataCommand").f(void 0, void 0).ser(se_ListParallelDataCommand).de(de_ListParallelDataCommand).build() {
1604
+ static {
1605
+ __name(this, "ListParallelDataCommand");
1606
+ }
1540
1607
  };
1541
- __name(_ListParallelDataCommand, "ListParallelDataCommand");
1542
- var ListParallelDataCommand = _ListParallelDataCommand;
1543
1608
 
1544
1609
  // src/commands/ListTagsForResourceCommand.ts
1545
1610
 
1546
1611
 
1547
1612
 
1548
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1613
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1549
1614
  return [
1550
1615
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1551
1616
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1552
1617
  ];
1553
1618
  }).s("AWSShineFrontendService_20170701", "ListTagsForResource", {}).n("TranslateClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1619
+ static {
1620
+ __name(this, "ListTagsForResourceCommand");
1621
+ }
1554
1622
  };
1555
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1556
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1557
1623
 
1558
1624
  // src/commands/ListTerminologiesCommand.ts
1559
1625
 
1560
1626
 
1561
1627
 
1562
- var _ListTerminologiesCommand = class _ListTerminologiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1628
+ var ListTerminologiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1563
1629
  return [
1564
1630
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1565
1631
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1566
1632
  ];
1567
1633
  }).s("AWSShineFrontendService_20170701", "ListTerminologies", {}).n("TranslateClient", "ListTerminologiesCommand").f(void 0, void 0).ser(se_ListTerminologiesCommand).de(de_ListTerminologiesCommand).build() {
1634
+ static {
1635
+ __name(this, "ListTerminologiesCommand");
1636
+ }
1568
1637
  };
1569
- __name(_ListTerminologiesCommand, "ListTerminologiesCommand");
1570
- var ListTerminologiesCommand = _ListTerminologiesCommand;
1571
1638
 
1572
1639
  // src/commands/ListTextTranslationJobsCommand.ts
1573
1640
 
1574
1641
 
1575
1642
 
1576
- var _ListTextTranslationJobsCommand = class _ListTextTranslationJobsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1643
+ var ListTextTranslationJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1577
1644
  return [
1578
1645
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1579
1646
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1580
1647
  ];
1581
1648
  }).s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {}).n("TranslateClient", "ListTextTranslationJobsCommand").f(void 0, void 0).ser(se_ListTextTranslationJobsCommand).de(de_ListTextTranslationJobsCommand).build() {
1649
+ static {
1650
+ __name(this, "ListTextTranslationJobsCommand");
1651
+ }
1582
1652
  };
1583
- __name(_ListTextTranslationJobsCommand, "ListTextTranslationJobsCommand");
1584
- var ListTextTranslationJobsCommand = _ListTextTranslationJobsCommand;
1585
1653
 
1586
1654
  // src/commands/StartTextTranslationJobCommand.ts
1587
1655
 
1588
1656
 
1589
1657
 
1590
- var _StartTextTranslationJobCommand = class _StartTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1658
+ var StartTextTranslationJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1591
1659
  return [
1592
1660
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1593
1661
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1594
1662
  ];
1595
1663
  }).s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {}).n("TranslateClient", "StartTextTranslationJobCommand").f(void 0, void 0).ser(se_StartTextTranslationJobCommand).de(de_StartTextTranslationJobCommand).build() {
1664
+ static {
1665
+ __name(this, "StartTextTranslationJobCommand");
1666
+ }
1596
1667
  };
1597
- __name(_StartTextTranslationJobCommand, "StartTextTranslationJobCommand");
1598
- var StartTextTranslationJobCommand = _StartTextTranslationJobCommand;
1599
1668
 
1600
1669
  // src/commands/StopTextTranslationJobCommand.ts
1601
1670
 
1602
1671
 
1603
1672
 
1604
- var _StopTextTranslationJobCommand = class _StopTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1673
+ var StopTextTranslationJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1605
1674
  return [
1606
1675
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1607
1676
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1608
1677
  ];
1609
1678
  }).s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {}).n("TranslateClient", "StopTextTranslationJobCommand").f(void 0, void 0).ser(se_StopTextTranslationJobCommand).de(de_StopTextTranslationJobCommand).build() {
1679
+ static {
1680
+ __name(this, "StopTextTranslationJobCommand");
1681
+ }
1610
1682
  };
1611
- __name(_StopTextTranslationJobCommand, "StopTextTranslationJobCommand");
1612
- var StopTextTranslationJobCommand = _StopTextTranslationJobCommand;
1613
1683
 
1614
1684
  // src/commands/TagResourceCommand.ts
1615
1685
 
1616
1686
 
1617
1687
 
1618
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1688
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1619
1689
  return [
1620
1690
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1621
1691
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1622
1692
  ];
1623
1693
  }).s("AWSShineFrontendService_20170701", "TagResource", {}).n("TranslateClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1694
+ static {
1695
+ __name(this, "TagResourceCommand");
1696
+ }
1624
1697
  };
1625
- __name(_TagResourceCommand, "TagResourceCommand");
1626
- var TagResourceCommand = _TagResourceCommand;
1627
1698
 
1628
1699
  // src/commands/TranslateDocumentCommand.ts
1629
1700
 
1630
1701
 
1631
1702
 
1632
- var _TranslateDocumentCommand = class _TranslateDocumentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1703
+ var TranslateDocumentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1633
1704
  return [
1634
1705
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1635
1706
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1636
1707
  ];
1637
1708
  }).s("AWSShineFrontendService_20170701", "TranslateDocument", {}).n("TranslateClient", "TranslateDocumentCommand").f(TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog).ser(se_TranslateDocumentCommand).de(de_TranslateDocumentCommand).build() {
1709
+ static {
1710
+ __name(this, "TranslateDocumentCommand");
1711
+ }
1638
1712
  };
1639
- __name(_TranslateDocumentCommand, "TranslateDocumentCommand");
1640
- var TranslateDocumentCommand = _TranslateDocumentCommand;
1641
1713
 
1642
1714
  // src/commands/TranslateTextCommand.ts
1643
1715
 
1644
1716
 
1645
1717
 
1646
- var _TranslateTextCommand = class _TranslateTextCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1718
+ var TranslateTextCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1647
1719
  return [
1648
1720
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1649
1721
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1650
1722
  ];
1651
1723
  }).s("AWSShineFrontendService_20170701", "TranslateText", {}).n("TranslateClient", "TranslateTextCommand").f(void 0, void 0).ser(se_TranslateTextCommand).de(de_TranslateTextCommand).build() {
1724
+ static {
1725
+ __name(this, "TranslateTextCommand");
1726
+ }
1652
1727
  };
1653
- __name(_TranslateTextCommand, "TranslateTextCommand");
1654
- var TranslateTextCommand = _TranslateTextCommand;
1655
1728
 
1656
1729
  // src/commands/UntagResourceCommand.ts
1657
1730
 
1658
1731
 
1659
1732
 
1660
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1733
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1661
1734
  return [
1662
1735
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1663
1736
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1664
1737
  ];
1665
1738
  }).s("AWSShineFrontendService_20170701", "UntagResource", {}).n("TranslateClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1739
+ static {
1740
+ __name(this, "UntagResourceCommand");
1741
+ }
1666
1742
  };
1667
- __name(_UntagResourceCommand, "UntagResourceCommand");
1668
- var UntagResourceCommand = _UntagResourceCommand;
1669
1743
 
1670
1744
  // src/commands/UpdateParallelDataCommand.ts
1671
1745
 
1672
1746
 
1673
1747
 
1674
- var _UpdateParallelDataCommand = class _UpdateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1748
+ var UpdateParallelDataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1675
1749
  return [
1676
1750
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1677
1751
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1678
1752
  ];
1679
1753
  }).s("AWSShineFrontendService_20170701", "UpdateParallelData", {}).n("TranslateClient", "UpdateParallelDataCommand").f(void 0, void 0).ser(se_UpdateParallelDataCommand).de(de_UpdateParallelDataCommand).build() {
1754
+ static {
1755
+ __name(this, "UpdateParallelDataCommand");
1756
+ }
1680
1757
  };
1681
- __name(_UpdateParallelDataCommand, "UpdateParallelDataCommand");
1682
- var UpdateParallelDataCommand = _UpdateParallelDataCommand;
1683
1758
 
1684
1759
  // src/Translate.ts
1685
1760
  var commands = {
@@ -1703,10 +1778,11 @@ var commands = {
1703
1778
  UntagResourceCommand,
1704
1779
  UpdateParallelDataCommand
1705
1780
  };
1706
- var _Translate = class _Translate extends TranslateClient {
1781
+ var Translate = class extends TranslateClient {
1782
+ static {
1783
+ __name(this, "Translate");
1784
+ }
1707
1785
  };
1708
- __name(_Translate, "Translate");
1709
- var Translate = _Translate;
1710
1786
  (0, import_smithy_client.createAggregatedClient)(commands, Translate);
1711
1787
 
1712
1788
  // src/pagination/ListLanguagesPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class TranslateClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,27 +1,29 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
3
3
  export class ConcurrentModificationException extends __BaseException {
4
+ name = "ConcurrentModificationException";
5
+ $fault = "client";
6
+ Message;
4
7
  constructor(opts) {
5
8
  super({
6
9
  name: "ConcurrentModificationException",
7
10
  $fault: "client",
8
11
  ...opts,
9
12
  });
10
- this.name = "ConcurrentModificationException";
11
- this.$fault = "client";
12
13
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
13
14
  this.Message = opts.Message;
14
15
  }
15
16
  }
16
17
  export class ConflictException extends __BaseException {
18
+ name = "ConflictException";
19
+ $fault = "client";
20
+ Message;
17
21
  constructor(opts) {
18
22
  super({
19
23
  name: "ConflictException",
20
24
  $fault: "client",
21
25
  ...opts,
22
26
  });
23
- this.name = "ConflictException";
24
- this.$fault = "client";
25
27
  Object.setPrototypeOf(this, ConflictException.prototype);
26
28
  this.Message = opts.Message;
27
29
  }
@@ -42,92 +44,99 @@ export const ParallelDataStatus = {
42
44
  UPDATING: "UPDATING",
43
45
  };
44
46
  export class InternalServerException extends __BaseException {
47
+ name = "InternalServerException";
48
+ $fault = "server";
49
+ Message;
45
50
  constructor(opts) {
46
51
  super({
47
52
  name: "InternalServerException",
48
53
  $fault: "server",
49
54
  ...opts,
50
55
  });
51
- this.name = "InternalServerException";
52
- this.$fault = "server";
53
56
  Object.setPrototypeOf(this, InternalServerException.prototype);
54
57
  this.Message = opts.Message;
55
58
  }
56
59
  }
57
60
  export class InvalidParameterValueException extends __BaseException {
61
+ name = "InvalidParameterValueException";
62
+ $fault = "client";
63
+ Message;
58
64
  constructor(opts) {
59
65
  super({
60
66
  name: "InvalidParameterValueException",
61
67
  $fault: "client",
62
68
  ...opts,
63
69
  });
64
- this.name = "InvalidParameterValueException";
65
- this.$fault = "client";
66
70
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
67
71
  this.Message = opts.Message;
68
72
  }
69
73
  }
70
74
  export class InvalidRequestException extends __BaseException {
75
+ name = "InvalidRequestException";
76
+ $fault = "client";
77
+ Message;
71
78
  constructor(opts) {
72
79
  super({
73
80
  name: "InvalidRequestException",
74
81
  $fault: "client",
75
82
  ...opts,
76
83
  });
77
- this.name = "InvalidRequestException";
78
- this.$fault = "client";
79
84
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
80
85
  this.Message = opts.Message;
81
86
  }
82
87
  }
83
88
  export class LimitExceededException extends __BaseException {
89
+ name = "LimitExceededException";
90
+ $fault = "client";
91
+ Message;
84
92
  constructor(opts) {
85
93
  super({
86
94
  name: "LimitExceededException",
87
95
  $fault: "client",
88
96
  ...opts,
89
97
  });
90
- this.name = "LimitExceededException";
91
- this.$fault = "client";
92
98
  Object.setPrototypeOf(this, LimitExceededException.prototype);
93
99
  this.Message = opts.Message;
94
100
  }
95
101
  }
96
102
  export class TooManyRequestsException extends __BaseException {
103
+ name = "TooManyRequestsException";
104
+ $fault = "client";
105
+ Message;
97
106
  constructor(opts) {
98
107
  super({
99
108
  name: "TooManyRequestsException",
100
109
  $fault: "client",
101
110
  ...opts,
102
111
  });
103
- this.name = "TooManyRequestsException";
104
- this.$fault = "client";
105
112
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
106
113
  this.Message = opts.Message;
107
114
  }
108
115
  }
109
116
  export class TooManyTagsException extends __BaseException {
117
+ name = "TooManyTagsException";
118
+ $fault = "client";
119
+ ResourceArn;
110
120
  constructor(opts) {
111
121
  super({
112
122
  name: "TooManyTagsException",
113
123
  $fault: "client",
114
124
  ...opts,
115
125
  });
116
- this.name = "TooManyTagsException";
117
- this.$fault = "client";
118
126
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
119
127
  this.ResourceArn = opts.ResourceArn;
120
128
  }
121
129
  }
122
130
  export class ResourceNotFoundException extends __BaseException {
131
+ name = "ResourceNotFoundException";
132
+ $fault = "client";
133
+ Message;
123
134
  constructor(opts) {
124
135
  super({
125
136
  name: "ResourceNotFoundException",
126
137
  $fault: "client",
127
138
  ...opts,
128
139
  });
129
- this.name = "ResourceNotFoundException";
130
- this.$fault = "client";
131
140
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
132
141
  this.Message = opts.Message;
133
142
  }
@@ -176,41 +185,47 @@ export const DisplayLanguageCode = {
176
185
  ZH_TW: "zh-TW",
177
186
  };
178
187
  export class UnsupportedDisplayLanguageCodeException extends __BaseException {
188
+ name = "UnsupportedDisplayLanguageCodeException";
189
+ $fault = "client";
190
+ Message;
191
+ DisplayLanguageCode;
179
192
  constructor(opts) {
180
193
  super({
181
194
  name: "UnsupportedDisplayLanguageCodeException",
182
195
  $fault: "client",
183
196
  ...opts,
184
197
  });
185
- this.name = "UnsupportedDisplayLanguageCodeException";
186
- this.$fault = "client";
187
198
  Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
188
199
  this.Message = opts.Message;
189
200
  this.DisplayLanguageCode = opts.DisplayLanguageCode;
190
201
  }
191
202
  }
192
203
  export class InvalidFilterException extends __BaseException {
204
+ name = "InvalidFilterException";
205
+ $fault = "client";
206
+ Message;
193
207
  constructor(opts) {
194
208
  super({
195
209
  name: "InvalidFilterException",
196
210
  $fault: "client",
197
211
  ...opts,
198
212
  });
199
- this.name = "InvalidFilterException";
200
- this.$fault = "client";
201
213
  Object.setPrototypeOf(this, InvalidFilterException.prototype);
202
214
  this.Message = opts.Message;
203
215
  }
204
216
  }
205
217
  export class UnsupportedLanguagePairException extends __BaseException {
218
+ name = "UnsupportedLanguagePairException";
219
+ $fault = "client";
220
+ Message;
221
+ SourceLanguageCode;
222
+ TargetLanguageCode;
206
223
  constructor(opts) {
207
224
  super({
208
225
  name: "UnsupportedLanguagePairException",
209
226
  $fault: "client",
210
227
  ...opts,
211
228
  });
212
- this.name = "UnsupportedLanguagePairException";
213
- this.$fault = "client";
214
229
  Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
215
230
  this.Message = opts.Message;
216
231
  this.SourceLanguageCode = opts.SourceLanguageCode;
@@ -218,41 +233,45 @@ export class UnsupportedLanguagePairException extends __BaseException {
218
233
  }
219
234
  }
220
235
  export class ServiceUnavailableException extends __BaseException {
236
+ name = "ServiceUnavailableException";
237
+ $fault = "server";
238
+ Message;
221
239
  constructor(opts) {
222
240
  super({
223
241
  name: "ServiceUnavailableException",
224
242
  $fault: "server",
225
243
  ...opts,
226
244
  });
227
- this.name = "ServiceUnavailableException";
228
- this.$fault = "server";
229
245
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
230
246
  this.Message = opts.Message;
231
247
  }
232
248
  }
233
249
  export class DetectedLanguageLowConfidenceException extends __BaseException {
250
+ name = "DetectedLanguageLowConfidenceException";
251
+ $fault = "client";
252
+ Message;
253
+ DetectedLanguageCode;
234
254
  constructor(opts) {
235
255
  super({
236
256
  name: "DetectedLanguageLowConfidenceException",
237
257
  $fault: "client",
238
258
  ...opts,
239
259
  });
240
- this.name = "DetectedLanguageLowConfidenceException";
241
- this.$fault = "client";
242
260
  Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
243
261
  this.Message = opts.Message;
244
262
  this.DetectedLanguageCode = opts.DetectedLanguageCode;
245
263
  }
246
264
  }
247
265
  export class TextSizeLimitExceededException extends __BaseException {
266
+ name = "TextSizeLimitExceededException";
267
+ $fault = "client";
268
+ Message;
248
269
  constructor(opts) {
249
270
  super({
250
271
  name: "TextSizeLimitExceededException",
251
272
  $fault: "client",
252
273
  ...opts,
253
274
  });
254
- this.name = "TextSizeLimitExceededException";
255
- this.$fault = "client";
256
275
  Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
257
276
  this.Message = opts.Message;
258
277
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-translate",
@@ -20,58 +20,58 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {