@aws-sdk/client-translate 3.926.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-cjs/index.js +822 -1023
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/TranslateClient.js +2 -0
  4. package/dist-es/commands/CreateParallelDataCommand.js +3 -9
  5. package/dist-es/commands/DeleteParallelDataCommand.js +3 -9
  6. package/dist-es/commands/DeleteTerminologyCommand.js +3 -9
  7. package/dist-es/commands/DescribeTextTranslationJobCommand.js +3 -9
  8. package/dist-es/commands/GetParallelDataCommand.js +3 -9
  9. package/dist-es/commands/GetTerminologyCommand.js +3 -9
  10. package/dist-es/commands/ImportTerminologyCommand.js +3 -10
  11. package/dist-es/commands/ListLanguagesCommand.js +3 -9
  12. package/dist-es/commands/ListParallelDataCommand.js +3 -9
  13. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  14. package/dist-es/commands/ListTerminologiesCommand.js +3 -9
  15. package/dist-es/commands/ListTextTranslationJobsCommand.js +3 -9
  16. package/dist-es/commands/StartTextTranslationJobCommand.js +3 -9
  17. package/dist-es/commands/StopTextTranslationJobCommand.js +3 -9
  18. package/dist-es/commands/TagResourceCommand.js +3 -9
  19. package/dist-es/commands/TranslateDocumentCommand.js +3 -10
  20. package/dist-es/commands/TranslateTextCommand.js +3 -9
  21. package/dist-es/commands/UntagResourceCommand.js +3 -9
  22. package/dist-es/commands/UpdateParallelDataCommand.js +3 -9
  23. package/dist-es/models/models_0.js +0 -25
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +741 -0
  26. package/dist-types/TranslateClient.d.ts +10 -1
  27. package/dist-types/models/models_0.d.ts +0 -24
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  32. package/dist-types/schemas/schemas_0.d.ts +107 -0
  33. package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +0 -16
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +113 -0
  40. package/package.json +5 -6
  41. package/dist-es/protocols/Aws_json1_1.js +0 -819
  42. package/dist-types/protocols/Aws_json1_1.d.ts +0 -173
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -233
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class TranslateClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class TranslateClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class TranslateServiceException extends smithyClient.ServiceException {
113
+ let TranslateServiceException$1 = class TranslateServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, TranslateServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class ConcurrentModificationException extends TranslateServiceException {
120
+ let ConcurrentModificationException$1 = class ConcurrentModificationException extends TranslateServiceException$1 {
122
121
  name = "ConcurrentModificationException";
123
122
  $fault = "client";
124
123
  Message;
@@ -131,8 +130,8 @@ class ConcurrentModificationException extends TranslateServiceException {
131
130
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
132
131
  this.Message = opts.Message;
133
132
  }
134
- }
135
- class ConflictException extends TranslateServiceException {
133
+ };
134
+ let ConflictException$1 = class ConflictException extends TranslateServiceException$1 {
136
135
  name = "ConflictException";
137
136
  $fault = "client";
138
137
  Message;
@@ -145,7 +144,7 @@ class ConflictException extends TranslateServiceException {
145
144
  Object.setPrototypeOf(this, ConflictException.prototype);
146
145
  this.Message = opts.Message;
147
146
  }
148
- }
147
+ };
149
148
  const EncryptionKeyType = {
150
149
  KMS: "KMS",
151
150
  };
@@ -161,7 +160,7 @@ const ParallelDataStatus = {
161
160
  FAILED: "FAILED",
162
161
  UPDATING: "UPDATING",
163
162
  };
164
- class InternalServerException extends TranslateServiceException {
163
+ let InternalServerException$1 = class InternalServerException extends TranslateServiceException$1 {
165
164
  name = "InternalServerException";
166
165
  $fault = "server";
167
166
  Message;
@@ -174,8 +173,8 @@ class InternalServerException extends TranslateServiceException {
174
173
  Object.setPrototypeOf(this, InternalServerException.prototype);
175
174
  this.Message = opts.Message;
176
175
  }
177
- }
178
- class InvalidParameterValueException extends TranslateServiceException {
176
+ };
177
+ let InvalidParameterValueException$1 = class InvalidParameterValueException extends TranslateServiceException$1 {
179
178
  name = "InvalidParameterValueException";
180
179
  $fault = "client";
181
180
  Message;
@@ -188,8 +187,8 @@ class InvalidParameterValueException extends TranslateServiceException {
188
187
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
189
188
  this.Message = opts.Message;
190
189
  }
191
- }
192
- class InvalidRequestException extends TranslateServiceException {
190
+ };
191
+ let InvalidRequestException$1 = class InvalidRequestException extends TranslateServiceException$1 {
193
192
  name = "InvalidRequestException";
194
193
  $fault = "client";
195
194
  Message;
@@ -202,8 +201,8 @@ class InvalidRequestException extends TranslateServiceException {
202
201
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
203
202
  this.Message = opts.Message;
204
203
  }
205
- }
206
- class LimitExceededException extends TranslateServiceException {
204
+ };
205
+ let LimitExceededException$1 = class LimitExceededException extends TranslateServiceException$1 {
207
206
  name = "LimitExceededException";
208
207
  $fault = "client";
209
208
  Message;
@@ -216,8 +215,8 @@ class LimitExceededException extends TranslateServiceException {
216
215
  Object.setPrototypeOf(this, LimitExceededException.prototype);
217
216
  this.Message = opts.Message;
218
217
  }
219
- }
220
- class TooManyRequestsException extends TranslateServiceException {
218
+ };
219
+ let TooManyRequestsException$1 = class TooManyRequestsException extends TranslateServiceException$1 {
221
220
  name = "TooManyRequestsException";
222
221
  $fault = "client";
223
222
  Message;
@@ -230,8 +229,8 @@ class TooManyRequestsException extends TranslateServiceException {
230
229
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
231
230
  this.Message = opts.Message;
232
231
  }
233
- }
234
- class TooManyTagsException extends TranslateServiceException {
232
+ };
233
+ let TooManyTagsException$1 = class TooManyTagsException extends TranslateServiceException$1 {
235
234
  name = "TooManyTagsException";
236
235
  $fault = "client";
237
236
  ResourceArn;
@@ -244,8 +243,8 @@ class TooManyTagsException extends TranslateServiceException {
244
243
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
245
244
  this.ResourceArn = opts.ResourceArn;
246
245
  }
247
- }
248
- class ResourceNotFoundException extends TranslateServiceException {
246
+ };
247
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends TranslateServiceException$1 {
249
248
  name = "ResourceNotFoundException";
250
249
  $fault = "client";
251
250
  Message;
@@ -258,7 +257,7 @@ class ResourceNotFoundException extends TranslateServiceException {
258
257
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
259
258
  this.Message = opts.Message;
260
259
  }
261
- }
260
+ };
262
261
  const JobStatus = {
263
262
  COMPLETED: "COMPLETED",
264
263
  COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
@@ -302,7 +301,7 @@ const DisplayLanguageCode = {
302
301
  ZH: "zh",
303
302
  ZH_TW: "zh-TW",
304
303
  };
305
- class UnsupportedDisplayLanguageCodeException extends TranslateServiceException {
304
+ let UnsupportedDisplayLanguageCodeException$1 = class UnsupportedDisplayLanguageCodeException extends TranslateServiceException$1 {
306
305
  name = "UnsupportedDisplayLanguageCodeException";
307
306
  $fault = "client";
308
307
  Message;
@@ -317,8 +316,8 @@ class UnsupportedDisplayLanguageCodeException extends TranslateServiceException
317
316
  this.Message = opts.Message;
318
317
  this.DisplayLanguageCode = opts.DisplayLanguageCode;
319
318
  }
320
- }
321
- class InvalidFilterException extends TranslateServiceException {
319
+ };
320
+ let InvalidFilterException$1 = class InvalidFilterException extends TranslateServiceException$1 {
322
321
  name = "InvalidFilterException";
323
322
  $fault = "client";
324
323
  Message;
@@ -331,8 +330,8 @@ class InvalidFilterException extends TranslateServiceException {
331
330
  Object.setPrototypeOf(this, InvalidFilterException.prototype);
332
331
  this.Message = opts.Message;
333
332
  }
334
- }
335
- class UnsupportedLanguagePairException extends TranslateServiceException {
333
+ };
334
+ let UnsupportedLanguagePairException$1 = class UnsupportedLanguagePairException extends TranslateServiceException$1 {
336
335
  name = "UnsupportedLanguagePairException";
337
336
  $fault = "client";
338
337
  Message;
@@ -349,8 +348,8 @@ class UnsupportedLanguagePairException extends TranslateServiceException {
349
348
  this.SourceLanguageCode = opts.SourceLanguageCode;
350
349
  this.TargetLanguageCode = opts.TargetLanguageCode;
351
350
  }
352
- }
353
- class ServiceUnavailableException extends TranslateServiceException {
351
+ };
352
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends TranslateServiceException$1 {
354
353
  name = "ServiceUnavailableException";
355
354
  $fault = "server";
356
355
  Message;
@@ -363,8 +362,8 @@ class ServiceUnavailableException extends TranslateServiceException {
363
362
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
364
363
  this.Message = opts.Message;
365
364
  }
366
- }
367
- class DetectedLanguageLowConfidenceException extends TranslateServiceException {
365
+ };
366
+ let DetectedLanguageLowConfidenceException$1 = class DetectedLanguageLowConfidenceException extends TranslateServiceException$1 {
368
367
  name = "DetectedLanguageLowConfidenceException";
369
368
  $fault = "client";
370
369
  Message;
@@ -379,8 +378,8 @@ class DetectedLanguageLowConfidenceException extends TranslateServiceException {
379
378
  this.Message = opts.Message;
380
379
  this.DetectedLanguageCode = opts.DetectedLanguageCode;
381
380
  }
382
- }
383
- class TextSizeLimitExceededException extends TranslateServiceException {
381
+ };
382
+ let TextSizeLimitExceededException$1 = class TextSizeLimitExceededException extends TranslateServiceException$1 {
384
383
  name = "TextSizeLimitExceededException";
385
384
  $fault = "client";
386
385
  Message;
@@ -393,856 +392,752 @@ class TextSizeLimitExceededException extends TranslateServiceException {
393
392
  Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
394
393
  this.Message = opts.Message;
395
394
  }
396
- }
397
- const TerminologyDataFilterSensitiveLog = (obj) => ({
398
- ...obj,
399
- ...(obj.File && { File: smithyClient.SENSITIVE_STRING }),
400
- });
401
- const ImportTerminologyRequestFilterSensitiveLog = (obj) => ({
402
- ...obj,
403
- ...(obj.TerminologyData && { TerminologyData: TerminologyDataFilterSensitiveLog(obj.TerminologyData) }),
404
- });
405
- const DocumentFilterSensitiveLog = (obj) => ({
406
- ...obj,
407
- ...(obj.Content && { Content: smithyClient.SENSITIVE_STRING }),
408
- });
409
- const TranslateDocumentRequestFilterSensitiveLog = (obj) => ({
410
- ...obj,
411
- ...(obj.Document && { Document: DocumentFilterSensitiveLog(obj.Document) }),
412
- });
413
- const TranslatedDocumentFilterSensitiveLog = (obj) => ({
414
- ...obj,
415
- ...(obj.Content && { Content: smithyClient.SENSITIVE_STRING }),
416
- });
417
- const TranslateDocumentResponseFilterSensitiveLog = (obj) => ({
418
- ...obj,
419
- ...(obj.TranslatedDocument && { TranslatedDocument: TranslatedDocumentFilterSensitiveLog(obj.TranslatedDocument) }),
420
- });
421
-
422
- const se_CreateParallelDataCommand = async (input, context) => {
423
- const headers = sharedHeaders("CreateParallelData");
424
- let body;
425
- body = JSON.stringify(se_CreateParallelDataRequest(input));
426
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
- };
428
- const se_DeleteParallelDataCommand = async (input, context) => {
429
- const headers = sharedHeaders("DeleteParallelData");
430
- let body;
431
- body = JSON.stringify(smithyClient._json(input));
432
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
433
- };
434
- const se_DeleteTerminologyCommand = async (input, context) => {
435
- const headers = sharedHeaders("DeleteTerminology");
436
- let body;
437
- body = JSON.stringify(smithyClient._json(input));
438
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
439
- };
440
- const se_DescribeTextTranslationJobCommand = async (input, context) => {
441
- const headers = sharedHeaders("DescribeTextTranslationJob");
442
- let body;
443
- body = JSON.stringify(smithyClient._json(input));
444
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
445
- };
446
- const se_GetParallelDataCommand = async (input, context) => {
447
- const headers = sharedHeaders("GetParallelData");
448
- let body;
449
- body = JSON.stringify(smithyClient._json(input));
450
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
451
- };
452
- const se_GetTerminologyCommand = async (input, context) => {
453
- const headers = sharedHeaders("GetTerminology");
454
- let body;
455
- body = JSON.stringify(smithyClient._json(input));
456
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
- };
458
- const se_ImportTerminologyCommand = async (input, context) => {
459
- const headers = sharedHeaders("ImportTerminology");
460
- let body;
461
- body = JSON.stringify(se_ImportTerminologyRequest(input, context));
462
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
- };
464
- const se_ListLanguagesCommand = async (input, context) => {
465
- const headers = sharedHeaders("ListLanguages");
466
- let body;
467
- body = JSON.stringify(smithyClient._json(input));
468
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
469
- };
470
- const se_ListParallelDataCommand = async (input, context) => {
471
- const headers = sharedHeaders("ListParallelData");
472
- let body;
473
- body = JSON.stringify(smithyClient._json(input));
474
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
475
- };
476
- const se_ListTagsForResourceCommand = async (input, context) => {
477
- const headers = sharedHeaders("ListTagsForResource");
478
- let body;
479
- body = JSON.stringify(smithyClient._json(input));
480
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
481
- };
482
- const se_ListTerminologiesCommand = async (input, context) => {
483
- const headers = sharedHeaders("ListTerminologies");
484
- let body;
485
- body = JSON.stringify(smithyClient._json(input));
486
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
487
- };
488
- const se_ListTextTranslationJobsCommand = async (input, context) => {
489
- const headers = sharedHeaders("ListTextTranslationJobs");
490
- let body;
491
- body = JSON.stringify(se_ListTextTranslationJobsRequest(input));
492
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
493
- };
494
- const se_StartTextTranslationJobCommand = async (input, context) => {
495
- const headers = sharedHeaders("StartTextTranslationJob");
496
- let body;
497
- body = JSON.stringify(se_StartTextTranslationJobRequest(input));
498
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
499
- };
500
- const se_StopTextTranslationJobCommand = async (input, context) => {
501
- const headers = sharedHeaders("StopTextTranslationJob");
502
- let body;
503
- body = JSON.stringify(smithyClient._json(input));
504
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
505
- };
506
- const se_TagResourceCommand = async (input, context) => {
507
- const headers = sharedHeaders("TagResource");
508
- let body;
509
- body = JSON.stringify(smithyClient._json(input));
510
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
511
- };
512
- const se_TranslateDocumentCommand = async (input, context) => {
513
- const headers = sharedHeaders("TranslateDocument");
514
- let body;
515
- body = JSON.stringify(se_TranslateDocumentRequest(input, context));
516
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
517
- };
518
- const se_TranslateTextCommand = async (input, context) => {
519
- const headers = sharedHeaders("TranslateText");
520
- let body;
521
- body = JSON.stringify(smithyClient._json(input));
522
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
523
- };
524
- const se_UntagResourceCommand = async (input, context) => {
525
- const headers = sharedHeaders("UntagResource");
526
- let body;
527
- body = JSON.stringify(smithyClient._json(input));
528
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
529
- };
530
- const se_UpdateParallelDataCommand = async (input, context) => {
531
- const headers = sharedHeaders("UpdateParallelData");
532
- let body;
533
- body = JSON.stringify(se_UpdateParallelDataRequest(input));
534
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
535
- };
536
- const de_CreateParallelDataCommand = async (output, context) => {
537
- if (output.statusCode >= 300) {
538
- return de_CommandError(output, context);
539
- }
540
- const data = await core$1.parseJsonBody(output.body, context);
541
- let contents = {};
542
- contents = smithyClient._json(data);
543
- const response = {
544
- $metadata: deserializeMetadata(output),
545
- ...contents,
546
- };
547
- return response;
548
- };
549
- const de_DeleteParallelDataCommand = async (output, context) => {
550
- if (output.statusCode >= 300) {
551
- return de_CommandError(output, context);
552
- }
553
- const data = await core$1.parseJsonBody(output.body, context);
554
- let contents = {};
555
- contents = smithyClient._json(data);
556
- const response = {
557
- $metadata: deserializeMetadata(output),
558
- ...contents,
559
- };
560
- return response;
561
- };
562
- const de_DeleteTerminologyCommand = async (output, context) => {
563
- if (output.statusCode >= 300) {
564
- return de_CommandError(output, context);
565
- }
566
- await smithyClient.collectBody(output.body, context);
567
- const response = {
568
- $metadata: deserializeMetadata(output),
569
- };
570
- return response;
571
- };
572
- const de_DescribeTextTranslationJobCommand = async (output, context) => {
573
- if (output.statusCode >= 300) {
574
- return de_CommandError(output, context);
575
- }
576
- const data = await core$1.parseJsonBody(output.body, context);
577
- let contents = {};
578
- contents = de_DescribeTextTranslationJobResponse(data);
579
- const response = {
580
- $metadata: deserializeMetadata(output),
581
- ...contents,
582
- };
583
- return response;
584
- };
585
- const de_GetParallelDataCommand = async (output, context) => {
586
- if (output.statusCode >= 300) {
587
- return de_CommandError(output, context);
588
- }
589
- const data = await core$1.parseJsonBody(output.body, context);
590
- let contents = {};
591
- contents = de_GetParallelDataResponse(data);
592
- const response = {
593
- $metadata: deserializeMetadata(output),
594
- ...contents,
595
- };
596
- return response;
597
- };
598
- const de_GetTerminologyCommand = async (output, context) => {
599
- if (output.statusCode >= 300) {
600
- return de_CommandError(output, context);
601
- }
602
- const data = await core$1.parseJsonBody(output.body, context);
603
- let contents = {};
604
- contents = de_GetTerminologyResponse(data);
605
- const response = {
606
- $metadata: deserializeMetadata(output),
607
- ...contents,
608
- };
609
- return response;
610
- };
611
- const de_ImportTerminologyCommand = async (output, context) => {
612
- if (output.statusCode >= 300) {
613
- return de_CommandError(output, context);
614
- }
615
- const data = await core$1.parseJsonBody(output.body, context);
616
- let contents = {};
617
- contents = de_ImportTerminologyResponse(data);
618
- const response = {
619
- $metadata: deserializeMetadata(output),
620
- ...contents,
621
- };
622
- return response;
623
- };
624
- const de_ListLanguagesCommand = async (output, context) => {
625
- if (output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const data = await core$1.parseJsonBody(output.body, context);
629
- let contents = {};
630
- contents = smithyClient._json(data);
631
- const response = {
632
- $metadata: deserializeMetadata(output),
633
- ...contents,
634
- };
635
- return response;
636
- };
637
- const de_ListParallelDataCommand = async (output, context) => {
638
- if (output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- const data = await core$1.parseJsonBody(output.body, context);
642
- let contents = {};
643
- contents = de_ListParallelDataResponse(data);
644
- const response = {
645
- $metadata: deserializeMetadata(output),
646
- ...contents,
647
- };
648
- return response;
649
- };
650
- const de_ListTagsForResourceCommand = async (output, context) => {
651
- if (output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const data = await core$1.parseJsonBody(output.body, context);
655
- let contents = {};
656
- contents = smithyClient._json(data);
657
- const response = {
658
- $metadata: deserializeMetadata(output),
659
- ...contents,
660
- };
661
- return response;
662
- };
663
- const de_ListTerminologiesCommand = async (output, context) => {
664
- if (output.statusCode >= 300) {
665
- return de_CommandError(output, context);
666
- }
667
- const data = await core$1.parseJsonBody(output.body, context);
668
- let contents = {};
669
- contents = de_ListTerminologiesResponse(data);
670
- const response = {
671
- $metadata: deserializeMetadata(output),
672
- ...contents,
673
- };
674
- return response;
675
- };
676
- const de_ListTextTranslationJobsCommand = async (output, context) => {
677
- if (output.statusCode >= 300) {
678
- return de_CommandError(output, context);
679
- }
680
- const data = await core$1.parseJsonBody(output.body, context);
681
- let contents = {};
682
- contents = de_ListTextTranslationJobsResponse(data);
683
- const response = {
684
- $metadata: deserializeMetadata(output),
685
- ...contents,
686
- };
687
- return response;
688
- };
689
- const de_StartTextTranslationJobCommand = async (output, context) => {
690
- if (output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const data = await core$1.parseJsonBody(output.body, context);
694
- let contents = {};
695
- contents = smithyClient._json(data);
696
- const response = {
697
- $metadata: deserializeMetadata(output),
698
- ...contents,
699
- };
700
- return response;
701
- };
702
- const de_StopTextTranslationJobCommand = async (output, context) => {
703
- if (output.statusCode >= 300) {
704
- return de_CommandError(output, context);
705
- }
706
- const data = await core$1.parseJsonBody(output.body, context);
707
- let contents = {};
708
- contents = smithyClient._json(data);
709
- const response = {
710
- $metadata: deserializeMetadata(output),
711
- ...contents,
712
- };
713
- return response;
714
- };
715
- const de_TagResourceCommand = async (output, context) => {
716
- if (output.statusCode >= 300) {
717
- return de_CommandError(output, context);
718
- }
719
- const data = await core$1.parseJsonBody(output.body, context);
720
- let contents = {};
721
- contents = smithyClient._json(data);
722
- const response = {
723
- $metadata: deserializeMetadata(output),
724
- ...contents,
725
- };
726
- return response;
727
- };
728
- const de_TranslateDocumentCommand = async (output, context) => {
729
- if (output.statusCode >= 300) {
730
- return de_CommandError(output, context);
731
- }
732
- const data = await core$1.parseJsonBody(output.body, context);
733
- let contents = {};
734
- contents = de_TranslateDocumentResponse(data, context);
735
- const response = {
736
- $metadata: deserializeMetadata(output),
737
- ...contents,
738
- };
739
- return response;
740
- };
741
- const de_TranslateTextCommand = async (output, context) => {
742
- if (output.statusCode >= 300) {
743
- return de_CommandError(output, context);
744
- }
745
- const data = await core$1.parseJsonBody(output.body, context);
746
- let contents = {};
747
- contents = smithyClient._json(data);
748
- const response = {
749
- $metadata: deserializeMetadata(output),
750
- ...contents,
751
- };
752
- return response;
753
- };
754
- const de_UntagResourceCommand = async (output, context) => {
755
- if (output.statusCode >= 300) {
756
- return de_CommandError(output, context);
757
- }
758
- const data = await core$1.parseJsonBody(output.body, context);
759
- let contents = {};
760
- contents = smithyClient._json(data);
761
- const response = {
762
- $metadata: deserializeMetadata(output),
763
- ...contents,
764
- };
765
- return response;
766
- };
767
- const de_UpdateParallelDataCommand = async (output, context) => {
768
- if (output.statusCode >= 300) {
769
- return de_CommandError(output, context);
770
- }
771
- const data = await core$1.parseJsonBody(output.body, context);
772
- let contents = {};
773
- contents = de_UpdateParallelDataResponse(data);
774
- const response = {
775
- $metadata: deserializeMetadata(output),
776
- ...contents,
777
- };
778
- return response;
779
- };
780
- const de_CommandError = async (output, context) => {
781
- const parsedOutput = {
782
- ...output,
783
- body: await core$1.parseJsonErrorBody(output.body, context),
784
- };
785
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
786
- switch (errorCode) {
787
- case "ConcurrentModificationException":
788
- case "com.amazonaws.translate#ConcurrentModificationException":
789
- throw await de_ConcurrentModificationExceptionRes(parsedOutput);
790
- case "ConflictException":
791
- case "com.amazonaws.translate#ConflictException":
792
- throw await de_ConflictExceptionRes(parsedOutput);
793
- case "InternalServerException":
794
- case "com.amazonaws.translate#InternalServerException":
795
- throw await de_InternalServerExceptionRes(parsedOutput);
796
- case "InvalidParameterValueException":
797
- case "com.amazonaws.translate#InvalidParameterValueException":
798
- throw await de_InvalidParameterValueExceptionRes(parsedOutput);
799
- case "InvalidRequestException":
800
- case "com.amazonaws.translate#InvalidRequestException":
801
- throw await de_InvalidRequestExceptionRes(parsedOutput);
802
- case "LimitExceededException":
803
- case "com.amazonaws.translate#LimitExceededException":
804
- throw await de_LimitExceededExceptionRes(parsedOutput);
805
- case "TooManyRequestsException":
806
- case "com.amazonaws.translate#TooManyRequestsException":
807
- throw await de_TooManyRequestsExceptionRes(parsedOutput);
808
- case "TooManyTagsException":
809
- case "com.amazonaws.translate#TooManyTagsException":
810
- throw await de_TooManyTagsExceptionRes(parsedOutput);
811
- case "ResourceNotFoundException":
812
- case "com.amazonaws.translate#ResourceNotFoundException":
813
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
814
- case "UnsupportedDisplayLanguageCodeException":
815
- case "com.amazonaws.translate#UnsupportedDisplayLanguageCodeException":
816
- throw await de_UnsupportedDisplayLanguageCodeExceptionRes(parsedOutput);
817
- case "InvalidFilterException":
818
- case "com.amazonaws.translate#InvalidFilterException":
819
- throw await de_InvalidFilterExceptionRes(parsedOutput);
820
- case "UnsupportedLanguagePairException":
821
- case "com.amazonaws.translate#UnsupportedLanguagePairException":
822
- throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput);
823
- case "ServiceUnavailableException":
824
- case "com.amazonaws.translate#ServiceUnavailableException":
825
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
826
- case "DetectedLanguageLowConfidenceException":
827
- case "com.amazonaws.translate#DetectedLanguageLowConfidenceException":
828
- throw await de_DetectedLanguageLowConfidenceExceptionRes(parsedOutput);
829
- case "TextSizeLimitExceededException":
830
- case "com.amazonaws.translate#TextSizeLimitExceededException":
831
- throw await de_TextSizeLimitExceededExceptionRes(parsedOutput);
832
- default:
833
- const parsedBody = parsedOutput.body;
834
- return throwDefaultError({
835
- output,
836
- parsedBody,
837
- errorCode,
838
- });
839
- }
840
- };
841
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
842
- const body = parsedOutput.body;
843
- const deserialized = smithyClient._json(body);
844
- const exception = new ConcurrentModificationException({
845
- $metadata: deserializeMetadata(parsedOutput),
846
- ...deserialized,
847
- });
848
- return smithyClient.decorateServiceException(exception, body);
849
- };
850
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
851
- const body = parsedOutput.body;
852
- const deserialized = smithyClient._json(body);
853
- const exception = new ConflictException({
854
- $metadata: deserializeMetadata(parsedOutput),
855
- ...deserialized,
856
- });
857
- return smithyClient.decorateServiceException(exception, body);
858
- };
859
- const de_DetectedLanguageLowConfidenceExceptionRes = async (parsedOutput, context) => {
860
- const body = parsedOutput.body;
861
- const deserialized = smithyClient._json(body);
862
- const exception = new DetectedLanguageLowConfidenceException({
863
- $metadata: deserializeMetadata(parsedOutput),
864
- ...deserialized,
865
- });
866
- return smithyClient.decorateServiceException(exception, body);
867
- };
868
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
869
- const body = parsedOutput.body;
870
- const deserialized = smithyClient._json(body);
871
- const exception = new InternalServerException({
872
- $metadata: deserializeMetadata(parsedOutput),
873
- ...deserialized,
874
- });
875
- return smithyClient.decorateServiceException(exception, body);
876
- };
877
- const de_InvalidFilterExceptionRes = async (parsedOutput, context) => {
878
- const body = parsedOutput.body;
879
- const deserialized = smithyClient._json(body);
880
- const exception = new InvalidFilterException({
881
- $metadata: deserializeMetadata(parsedOutput),
882
- ...deserialized,
883
- });
884
- return smithyClient.decorateServiceException(exception, body);
885
- };
886
- const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
887
- const body = parsedOutput.body;
888
- const deserialized = smithyClient._json(body);
889
- const exception = new InvalidParameterValueException({
890
- $metadata: deserializeMetadata(parsedOutput),
891
- ...deserialized,
892
- });
893
- return smithyClient.decorateServiceException(exception, body);
894
- };
895
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
896
- const body = parsedOutput.body;
897
- const deserialized = smithyClient._json(body);
898
- const exception = new InvalidRequestException({
899
- $metadata: deserializeMetadata(parsedOutput),
900
- ...deserialized,
901
- });
902
- return smithyClient.decorateServiceException(exception, body);
903
- };
904
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
905
- const body = parsedOutput.body;
906
- const deserialized = smithyClient._json(body);
907
- const exception = new LimitExceededException({
908
- $metadata: deserializeMetadata(parsedOutput),
909
- ...deserialized,
910
- });
911
- return smithyClient.decorateServiceException(exception, body);
912
- };
913
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
914
- const body = parsedOutput.body;
915
- const deserialized = smithyClient._json(body);
916
- const exception = new ResourceNotFoundException({
917
- $metadata: deserializeMetadata(parsedOutput),
918
- ...deserialized,
919
- });
920
- return smithyClient.decorateServiceException(exception, body);
921
- };
922
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
923
- const body = parsedOutput.body;
924
- const deserialized = smithyClient._json(body);
925
- const exception = new ServiceUnavailableException({
926
- $metadata: deserializeMetadata(parsedOutput),
927
- ...deserialized,
928
- });
929
- return smithyClient.decorateServiceException(exception, body);
930
- };
931
- const de_TextSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
932
- const body = parsedOutput.body;
933
- const deserialized = smithyClient._json(body);
934
- const exception = new TextSizeLimitExceededException({
935
- $metadata: deserializeMetadata(parsedOutput),
936
- ...deserialized,
937
- });
938
- return smithyClient.decorateServiceException(exception, body);
939
- };
940
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
941
- const body = parsedOutput.body;
942
- const deserialized = smithyClient._json(body);
943
- const exception = new TooManyRequestsException({
944
- $metadata: deserializeMetadata(parsedOutput),
945
- ...deserialized,
946
- });
947
- return smithyClient.decorateServiceException(exception, body);
948
- };
949
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
950
- const body = parsedOutput.body;
951
- const deserialized = smithyClient._json(body);
952
- const exception = new TooManyTagsException({
953
- $metadata: deserializeMetadata(parsedOutput),
954
- ...deserialized,
955
- });
956
- return smithyClient.decorateServiceException(exception, body);
957
- };
958
- const de_UnsupportedDisplayLanguageCodeExceptionRes = async (parsedOutput, context) => {
959
- const body = parsedOutput.body;
960
- const deserialized = smithyClient._json(body);
961
- const exception = new UnsupportedDisplayLanguageCodeException({
962
- $metadata: deserializeMetadata(parsedOutput),
963
- ...deserialized,
964
- });
965
- return smithyClient.decorateServiceException(exception, body);
966
- };
967
- const de_UnsupportedLanguagePairExceptionRes = async (parsedOutput, context) => {
968
- const body = parsedOutput.body;
969
- const deserialized = smithyClient._json(body);
970
- const exception = new UnsupportedLanguagePairException({
971
- $metadata: deserializeMetadata(parsedOutput),
972
- ...deserialized,
973
- });
974
- return smithyClient.decorateServiceException(exception, body);
975
- };
976
- const se_CreateParallelDataRequest = (input, context) => {
977
- return smithyClient.take(input, {
978
- ClientToken: [true, (_) => _ ?? uuid.v4()],
979
- Description: [],
980
- EncryptionKey: smithyClient._json,
981
- Name: [],
982
- ParallelDataConfig: smithyClient._json,
983
- Tags: smithyClient._json,
984
- });
985
- };
986
- const se_Document = (input, context) => {
987
- return smithyClient.take(input, {
988
- Content: context.base64Encoder,
989
- ContentType: [],
990
- });
991
- };
992
- const se_ImportTerminologyRequest = (input, context) => {
993
- return smithyClient.take(input, {
994
- Description: [],
995
- EncryptionKey: smithyClient._json,
996
- MergeStrategy: [],
997
- Name: [],
998
- Tags: smithyClient._json,
999
- TerminologyData: (_) => se_TerminologyData(_, context),
1000
- });
1001
- };
1002
- const se_ListTextTranslationJobsRequest = (input, context) => {
1003
- return smithyClient.take(input, {
1004
- Filter: (_) => se_TextTranslationJobFilter(_),
1005
- MaxResults: [],
1006
- NextToken: [],
1007
- });
1008
- };
1009
- const se_StartTextTranslationJobRequest = (input, context) => {
1010
- return smithyClient.take(input, {
1011
- ClientToken: [true, (_) => _ ?? uuid.v4()],
1012
- DataAccessRoleArn: [],
1013
- InputDataConfig: smithyClient._json,
1014
- JobName: [],
1015
- OutputDataConfig: smithyClient._json,
1016
- ParallelDataNames: smithyClient._json,
1017
- Settings: smithyClient._json,
1018
- SourceLanguageCode: [],
1019
- TargetLanguageCodes: smithyClient._json,
1020
- TerminologyNames: smithyClient._json,
1021
- });
1022
- };
1023
- const se_TerminologyData = (input, context) => {
1024
- return smithyClient.take(input, {
1025
- Directionality: [],
1026
- File: context.base64Encoder,
1027
- Format: [],
1028
- });
1029
- };
1030
- const se_TextTranslationJobFilter = (input, context) => {
1031
- return smithyClient.take(input, {
1032
- JobName: [],
1033
- JobStatus: [],
1034
- SubmittedAfterTime: (_) => _.getTime() / 1_000,
1035
- SubmittedBeforeTime: (_) => _.getTime() / 1_000,
1036
- });
1037
- };
1038
- const se_TranslateDocumentRequest = (input, context) => {
1039
- return smithyClient.take(input, {
1040
- Document: (_) => se_Document(_, context),
1041
- Settings: smithyClient._json,
1042
- SourceLanguageCode: [],
1043
- TargetLanguageCode: [],
1044
- TerminologyNames: smithyClient._json,
1045
- });
1046
- };
1047
- const se_UpdateParallelDataRequest = (input, context) => {
1048
- return smithyClient.take(input, {
1049
- ClientToken: [true, (_) => _ ?? uuid.v4()],
1050
- Description: [],
1051
- Name: [],
1052
- ParallelDataConfig: smithyClient._json,
1053
- });
1054
- };
1055
- const de_DescribeTextTranslationJobResponse = (output, context) => {
1056
- return smithyClient.take(output, {
1057
- TextTranslationJobProperties: (_) => de_TextTranslationJobProperties(_),
1058
- });
1059
- };
1060
- const de_GetParallelDataResponse = (output, context) => {
1061
- return smithyClient.take(output, {
1062
- AuxiliaryDataLocation: smithyClient._json,
1063
- DataLocation: smithyClient._json,
1064
- LatestUpdateAttemptAuxiliaryDataLocation: smithyClient._json,
1065
- ParallelDataProperties: (_) => de_ParallelDataProperties(_),
1066
- });
1067
- };
1068
- const de_GetTerminologyResponse = (output, context) => {
1069
- return smithyClient.take(output, {
1070
- AuxiliaryDataLocation: smithyClient._json,
1071
- TerminologyDataLocation: smithyClient._json,
1072
- TerminologyProperties: (_) => de_TerminologyProperties(_),
1073
- });
1074
- };
1075
- const de_ImportTerminologyResponse = (output, context) => {
1076
- return smithyClient.take(output, {
1077
- AuxiliaryDataLocation: smithyClient._json,
1078
- TerminologyProperties: (_) => de_TerminologyProperties(_),
1079
- });
1080
- };
1081
- const de_ListParallelDataResponse = (output, context) => {
1082
- return smithyClient.take(output, {
1083
- NextToken: smithyClient.expectString,
1084
- ParallelDataPropertiesList: (_) => de_ParallelDataPropertiesList(_),
1085
- });
1086
- };
1087
- const de_ListTerminologiesResponse = (output, context) => {
1088
- return smithyClient.take(output, {
1089
- NextToken: smithyClient.expectString,
1090
- TerminologyPropertiesList: (_) => de_TerminologyPropertiesList(_),
1091
- });
1092
- };
1093
- const de_ListTextTranslationJobsResponse = (output, context) => {
1094
- return smithyClient.take(output, {
1095
- NextToken: smithyClient.expectString,
1096
- TextTranslationJobPropertiesList: (_) => de_TextTranslationJobPropertiesList(_),
1097
- });
1098
- };
1099
- const de_ParallelDataProperties = (output, context) => {
1100
- return smithyClient.take(output, {
1101
- Arn: smithyClient.expectString,
1102
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1103
- Description: smithyClient.expectString,
1104
- EncryptionKey: smithyClient._json,
1105
- FailedRecordCount: smithyClient.expectLong,
1106
- ImportedDataSize: smithyClient.expectLong,
1107
- ImportedRecordCount: smithyClient.expectLong,
1108
- LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1109
- LatestUpdateAttemptAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1110
- LatestUpdateAttemptStatus: smithyClient.expectString,
1111
- Message: smithyClient.expectString,
1112
- Name: smithyClient.expectString,
1113
- ParallelDataConfig: smithyClient._json,
1114
- SkippedRecordCount: smithyClient.expectLong,
1115
- SourceLanguageCode: smithyClient.expectString,
1116
- Status: smithyClient.expectString,
1117
- TargetLanguageCodes: smithyClient._json,
1118
- });
1119
- };
1120
- const de_ParallelDataPropertiesList = (output, context) => {
1121
- const retVal = (output || [])
1122
- .filter((e) => e != null)
1123
- .map((entry) => {
1124
- return de_ParallelDataProperties(entry);
1125
- });
1126
- return retVal;
1127
- };
1128
- const de_TerminologyProperties = (output, context) => {
1129
- return smithyClient.take(output, {
1130
- Arn: smithyClient.expectString,
1131
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1132
- Description: smithyClient.expectString,
1133
- Directionality: smithyClient.expectString,
1134
- EncryptionKey: smithyClient._json,
1135
- Format: smithyClient.expectString,
1136
- LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1137
- Message: smithyClient.expectString,
1138
- Name: smithyClient.expectString,
1139
- SizeBytes: smithyClient.expectInt32,
1140
- SkippedTermCount: smithyClient.expectInt32,
1141
- SourceLanguageCode: smithyClient.expectString,
1142
- TargetLanguageCodes: smithyClient._json,
1143
- TermCount: smithyClient.expectInt32,
1144
- });
1145
- };
1146
- const de_TerminologyPropertiesList = (output, context) => {
1147
- const retVal = (output || [])
1148
- .filter((e) => e != null)
1149
- .map((entry) => {
1150
- return de_TerminologyProperties(entry);
1151
- });
1152
- return retVal;
1153
- };
1154
- const de_TextTranslationJobProperties = (output, context) => {
1155
- return smithyClient.take(output, {
1156
- DataAccessRoleArn: smithyClient.expectString,
1157
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1158
- InputDataConfig: smithyClient._json,
1159
- JobDetails: smithyClient._json,
1160
- JobId: smithyClient.expectString,
1161
- JobName: smithyClient.expectString,
1162
- JobStatus: smithyClient.expectString,
1163
- Message: smithyClient.expectString,
1164
- OutputDataConfig: smithyClient._json,
1165
- ParallelDataNames: smithyClient._json,
1166
- Settings: smithyClient._json,
1167
- SourceLanguageCode: smithyClient.expectString,
1168
- SubmittedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1169
- TargetLanguageCodes: smithyClient._json,
1170
- TerminologyNames: smithyClient._json,
1171
- });
1172
- };
1173
- const de_TextTranslationJobPropertiesList = (output, context) => {
1174
- const retVal = (output || [])
1175
- .filter((e) => e != null)
1176
- .map((entry) => {
1177
- return de_TextTranslationJobProperties(entry);
1178
- });
1179
- return retVal;
1180
- };
1181
- const de_TranslatedDocument = (output, context) => {
1182
- return smithyClient.take(output, {
1183
- Content: context.base64Decoder,
1184
- });
1185
- };
1186
- const de_TranslateDocumentResponse = (output, context) => {
1187
- return smithyClient.take(output, {
1188
- AppliedSettings: smithyClient._json,
1189
- AppliedTerminologies: smithyClient._json,
1190
- SourceLanguageCode: smithyClient.expectString,
1191
- TargetLanguageCode: smithyClient.expectString,
1192
- TranslatedDocument: (_) => de_TranslatedDocument(_, context),
1193
- });
1194
- };
1195
- const de_UpdateParallelDataResponse = (output, context) => {
1196
- return smithyClient.take(output, {
1197
- LatestUpdateAttemptAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1198
- LatestUpdateAttemptStatus: smithyClient.expectString,
1199
- Name: smithyClient.expectString,
1200
- Status: smithyClient.expectString,
1201
- });
1202
- };
1203
- const deserializeMetadata = (output) => ({
1204
- httpStatusCode: output.statusCode,
1205
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1206
- extendedRequestId: output.headers["x-amz-id-2"],
1207
- cfId: output.headers["x-amz-cf-id"],
1208
- });
1209
- const throwDefaultError = smithyClient.withBaseException(TranslateServiceException);
1210
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1211
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1212
- const contents = {
1213
- protocol,
1214
- hostname,
1215
- port,
1216
- method: "POST",
1217
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1218
- headers,
1219
- };
1220
- if (body !== undefined) {
1221
- contents.body = body;
1222
- }
1223
- return new protocolHttp.HttpRequest(contents);
1224
395
  };
1225
- function sharedHeaders(operation) {
1226
- return {
1227
- "content-type": "application/x-amz-json-1.1",
1228
- "x-amz-target": `AWSShineFrontendService_20170701.${operation}`,
1229
- };
1230
- }
396
+
397
+ const _A = "Arn";
398
+ const _ADL = "AuxiliaryDataLocation";
399
+ const _AS = "AppliedSettings";
400
+ const _AT = "AppliedTerminology";
401
+ const _ATL = "AppliedTerminologyList";
402
+ const _ATp = "AppliedTerminologies";
403
+ const _B = "Brevity";
404
+ const _C = "Content";
405
+ const _CA = "CreatedAt";
406
+ const _CE = "ConflictException";
407
+ const _CME = "ConcurrentModificationException";
408
+ const _CPD = "CreateParallelData";
409
+ const _CPDR = "CreateParallelDataRequest";
410
+ const _CPDRr = "CreateParallelDataResponse";
411
+ const _CT = "ClientToken";
412
+ const _CTo = "ContentType";
413
+ const _D = "Description";
414
+ const _DARA = "DataAccessRoleArn";
415
+ const _DC = "DocumentContent";
416
+ const _DL = "DataLocation";
417
+ const _DLC = "DetectedLanguageCode";
418
+ const _DLCi = "DisplayLanguageCode";
419
+ const _DLLCE = "DetectedLanguageLowConfidenceException";
420
+ const _DPD = "DeleteParallelData";
421
+ const _DPDR = "DeleteParallelDataRequest";
422
+ const _DPDRe = "DeleteParallelDataResponse";
423
+ const _DT = "DeleteTerminology";
424
+ const _DTR = "DeleteTerminologyRequest";
425
+ const _DTTJ = "DescribeTextTranslationJob";
426
+ const _DTTJR = "DescribeTextTranslationJobRequest";
427
+ const _DTTJRe = "DescribeTextTranslationJobResponse";
428
+ const _DWEC = "DocumentsWithErrorsCount";
429
+ const _Di = "Directionality";
430
+ const _Do = "Document";
431
+ const _EK = "EncryptionKey";
432
+ const _ET = "EndTime";
433
+ const _F = "Filter";
434
+ const _FRC = "FailedRecordCount";
435
+ const _Fi = "File";
436
+ const _Fo = "Format";
437
+ const _For = "Formality";
438
+ const _GPD = "GetParallelData";
439
+ const _GPDR = "GetParallelDataRequest";
440
+ const _GPDRe = "GetParallelDataResponse";
441
+ const _GT = "GetTerminology";
442
+ const _GTR = "GetTerminologyRequest";
443
+ const _GTRe = "GetTerminologyResponse";
444
+ const _I = "Id";
445
+ const _IDC = "InputDataConfig";
446
+ const _IDCn = "InputDocumentsCount";
447
+ const _IDS = "ImportedDataSize";
448
+ const _IFE = "InvalidFilterException";
449
+ const _IPVE = "InvalidParameterValueException";
450
+ const _IRC = "ImportedRecordCount";
451
+ const _IRE = "InvalidRequestException";
452
+ const _ISE = "InternalServerException";
453
+ const _IT = "ImportTerminology";
454
+ const _ITR = "ImportTerminologyRequest";
455
+ const _ITRm = "ImportTerminologyResponse";
456
+ const _JD = "JobDetails";
457
+ const _JI = "JobId";
458
+ const _JN = "JobName";
459
+ const _JS = "JobStatus";
460
+ const _K = "Key";
461
+ const _L = "Language";
462
+ const _LC = "LanguageCode";
463
+ const _LEE = "LimitExceededException";
464
+ const _LL = "LanguagesList";
465
+ const _LLR = "ListLanguagesRequest";
466
+ const _LLRi = "ListLanguagesResponse";
467
+ const _LLi = "ListLanguages";
468
+ const _LN = "LanguageName";
469
+ const _LPD = "ListParallelData";
470
+ const _LPDR = "ListParallelDataRequest";
471
+ const _LPDRi = "ListParallelDataResponse";
472
+ const _LT = "ListTerminologies";
473
+ const _LTFR = "ListTagsForResource";
474
+ const _LTFRR = "ListTagsForResourceRequest";
475
+ const _LTFRRi = "ListTagsForResourceResponse";
476
+ const _LTR = "ListTerminologiesRequest";
477
+ const _LTRi = "ListTerminologiesResponse";
478
+ const _LTTJ = "ListTextTranslationJobs";
479
+ const _LTTJR = "ListTextTranslationJobsRequest";
480
+ const _LTTJRi = "ListTextTranslationJobsResponse";
481
+ const _LUA = "LastUpdatedAt";
482
+ const _LUAA = "LatestUpdateAttemptAt";
483
+ const _LUAADL = "LatestUpdateAttemptAuxiliaryDataLocation";
484
+ const _LUAS = "LatestUpdateAttemptStatus";
485
+ const _La = "Languages";
486
+ const _Lo = "Location";
487
+ const _M = "Message";
488
+ const _MR = "MaxResults";
489
+ const _MS = "MergeStrategy";
490
+ const _N = "Name";
491
+ const _NT = "NextToken";
492
+ const _ODC = "OutputDataConfig";
493
+ const _P = "Profanity";
494
+ const _PDC = "ParallelDataConfig";
495
+ const _PDDL = "ParallelDataDataLocation";
496
+ const _PDN = "ParallelDataNames";
497
+ const _PDP = "ParallelDataProperties";
498
+ const _PDPL = "ParallelDataPropertiesList";
499
+ const _RA = "ResourceArn";
500
+ const _RNFE = "ResourceNotFoundException";
501
+ const _RT = "RepositoryType";
502
+ const _S = "Status";
503
+ const _SAT = "SubmittedAfterTime";
504
+ const _SB = "SizeBytes";
505
+ const _SBT = "SubmittedBeforeTime";
506
+ const _SLC = "SourceLanguageCode";
507
+ const _SRC = "SkippedRecordCount";
508
+ const _ST = "SourceText";
509
+ const _STC = "SkippedTermCount";
510
+ const _STTJ = "StartTextTranslationJob";
511
+ const _STTJR = "StartTextTranslationJobRequest";
512
+ const _STTJRt = "StartTextTranslationJobResponse";
513
+ const _STTJRto = "StopTextTranslationJobRequest";
514
+ const _STTJRtop = "StopTextTranslationJobResponse";
515
+ const _STTJt = "StopTextTranslationJob";
516
+ const _STu = "SubmittedTime";
517
+ const _SU = "S3Uri";
518
+ const _SUE = "ServiceUnavailableException";
519
+ const _Se = "Settings";
520
+ const _T = "Terms";
521
+ const _TC = "TermCount";
522
+ const _TD = "TerminologyData";
523
+ const _TDC = "TranslatedDocumentContent";
524
+ const _TDCr = "TranslatedDocumentsCount";
525
+ const _TDF = "TerminologyDataFormat";
526
+ const _TDL = "TerminologyDataLocation";
527
+ const _TDR = "TranslateDocumentRequest";
528
+ const _TDRr = "TranslateDocumentResponse";
529
+ const _TDr = "TranslatedDocument";
530
+ const _TDra = "TranslateDocument";
531
+ const _TF = "TerminologyFile";
532
+ const _TK = "TagKeys";
533
+ const _TL = "TagList";
534
+ const _TLC = "TargetLanguageCodes";
535
+ const _TLCa = "TargetLanguageCode";
536
+ const _TLe = "TermList";
537
+ const _TMRE = "TooManyRequestsException";
538
+ const _TMTE = "TooManyTagsException";
539
+ const _TN = "TerminologyNames";
540
+ const _TP = "TerminologyProperties";
541
+ const _TPL = "TerminologyPropertiesList";
542
+ const _TR = "TagResource";
543
+ const _TRR = "TagResourceRequest";
544
+ const _TRRa = "TagResourceResponse";
545
+ const _TS = "TranslationSettings";
546
+ const _TSLEE = "TextSizeLimitExceededException";
547
+ const _TT = "TargetText";
548
+ const _TTJF = "TextTranslationJobFilter";
549
+ const _TTJP = "TextTranslationJobProperties";
550
+ const _TTJPL = "TextTranslationJobPropertiesList";
551
+ const _TTR = "TranslateTextRequest";
552
+ const _TTRr = "TranslateTextResponse";
553
+ const _TTr = "TranslatedText";
554
+ const _TTra = "TranslateText";
555
+ const _Ta = "Tags";
556
+ const _Tag = "Tag";
557
+ const _Te = "Term";
558
+ const _Tex = "Text";
559
+ const _Ty = "Type";
560
+ const _UDLCE = "UnsupportedDisplayLanguageCodeException";
561
+ const _ULPE = "UnsupportedLanguagePairException";
562
+ const _UPD = "UpdateParallelData";
563
+ const _UPDR = "UpdateParallelDataRequest";
564
+ const _UPDRp = "UpdateParallelDataResponse";
565
+ const _UR = "UntagResource";
566
+ const _URR = "UntagResourceRequest";
567
+ const _URRn = "UntagResourceResponse";
568
+ const _V = "Value";
569
+ const _c = "client";
570
+ const _e = "error";
571
+ const _hE = "httpError";
572
+ const _m = "message";
573
+ const _s = "server";
574
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.translate";
575
+ const n0 = "com.amazonaws.translate";
576
+ var DocumentContent = [0, n0, _DC, 8, 21];
577
+ var TerminologyFile = [0, n0, _TF, 8, 21];
578
+ var TranslatedDocumentContent = [0, n0, _TDC, 8, 21];
579
+ var AppliedTerminology = [3, n0, _AT, 0, [_N, _T], [0, () => TermList]];
580
+ var ConcurrentModificationException = [
581
+ -3,
582
+ n0,
583
+ _CME,
584
+ {
585
+ [_e]: _c,
586
+ [_hE]: 409,
587
+ },
588
+ [_M],
589
+ [0],
590
+ ];
591
+ schema.TypeRegistry.for(n0).registerError(ConcurrentModificationException, ConcurrentModificationException$1);
592
+ var ConflictException = [
593
+ -3,
594
+ n0,
595
+ _CE,
596
+ {
597
+ [_e]: _c,
598
+ [_hE]: 409,
599
+ },
600
+ [_M],
601
+ [0],
602
+ ];
603
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
604
+ var CreateParallelDataRequest = [
605
+ 3,
606
+ n0,
607
+ _CPDR,
608
+ 0,
609
+ [_N, _D, _PDC, _EK, _CT, _Ta],
610
+ [0, 0, () => ParallelDataConfig, () => EncryptionKey, [0, 4], () => TagList],
611
+ ];
612
+ var CreateParallelDataResponse = [3, n0, _CPDRr, 0, [_N, _S], [0, 0]];
613
+ var DeleteParallelDataRequest = [3, n0, _DPDR, 0, [_N], [0]];
614
+ var DeleteParallelDataResponse = [3, n0, _DPDRe, 0, [_N, _S], [0, 0]];
615
+ var DeleteTerminologyRequest = [3, n0, _DTR, 0, [_N], [0]];
616
+ var DescribeTextTranslationJobRequest = [3, n0, _DTTJR, 0, [_JI], [0]];
617
+ var DescribeTextTranslationJobResponse = [
618
+ 3,
619
+ n0,
620
+ _DTTJRe,
621
+ 0,
622
+ [_TTJP],
623
+ [() => TextTranslationJobProperties],
624
+ ];
625
+ var DetectedLanguageLowConfidenceException = [
626
+ -3,
627
+ n0,
628
+ _DLLCE,
629
+ {
630
+ [_e]: _c,
631
+ [_hE]: 400,
632
+ },
633
+ [_M, _DLC],
634
+ [0, 0],
635
+ ];
636
+ schema.TypeRegistry.for(n0).registerError(DetectedLanguageLowConfidenceException, DetectedLanguageLowConfidenceException$1);
637
+ var Document = [3, n0, _Do, 0, [_C, _CTo], [[() => DocumentContent, 0], 0]];
638
+ var EncryptionKey = [3, n0, _EK, 0, [_Ty, _I], [0, 0]];
639
+ var GetParallelDataRequest = [3, n0, _GPDR, 0, [_N], [0]];
640
+ var GetParallelDataResponse = [
641
+ 3,
642
+ n0,
643
+ _GPDRe,
644
+ 0,
645
+ [_PDP, _DL, _ADL, _LUAADL],
646
+ [
647
+ () => ParallelDataProperties,
648
+ () => ParallelDataDataLocation,
649
+ () => ParallelDataDataLocation,
650
+ () => ParallelDataDataLocation,
651
+ ],
652
+ ];
653
+ var GetTerminologyRequest = [3, n0, _GTR, 0, [_N, _TDF], [0, 0]];
654
+ var GetTerminologyResponse = [
655
+ 3,
656
+ n0,
657
+ _GTRe,
658
+ 0,
659
+ [_TP, _TDL, _ADL],
660
+ [() => TerminologyProperties, () => TerminologyDataLocation, () => TerminologyDataLocation],
661
+ ];
662
+ var ImportTerminologyRequest = [
663
+ 3,
664
+ n0,
665
+ _ITR,
666
+ 0,
667
+ [_N, _MS, _D, _TD, _EK, _Ta],
668
+ [0, 0, 0, [() => TerminologyData, 0], () => EncryptionKey, () => TagList],
669
+ ];
670
+ var ImportTerminologyResponse = [
671
+ 3,
672
+ n0,
673
+ _ITRm,
674
+ 0,
675
+ [_TP, _ADL],
676
+ [() => TerminologyProperties, () => TerminologyDataLocation],
677
+ ];
678
+ var InputDataConfig = [3, n0, _IDC, 0, [_SU, _CTo], [0, 0]];
679
+ var InternalServerException = [
680
+ -3,
681
+ n0,
682
+ _ISE,
683
+ {
684
+ [_e]: _s,
685
+ [_hE]: 500,
686
+ },
687
+ [_M],
688
+ [0],
689
+ ];
690
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
691
+ var InvalidFilterException = [
692
+ -3,
693
+ n0,
694
+ _IFE,
695
+ {
696
+ [_e]: _c,
697
+ [_hE]: 400,
698
+ },
699
+ [_M],
700
+ [0],
701
+ ];
702
+ schema.TypeRegistry.for(n0).registerError(InvalidFilterException, InvalidFilterException$1);
703
+ var InvalidParameterValueException = [
704
+ -3,
705
+ n0,
706
+ _IPVE,
707
+ {
708
+ [_e]: _c,
709
+ [_hE]: 400,
710
+ },
711
+ [_M],
712
+ [0],
713
+ ];
714
+ schema.TypeRegistry.for(n0).registerError(InvalidParameterValueException, InvalidParameterValueException$1);
715
+ var InvalidRequestException = [
716
+ -3,
717
+ n0,
718
+ _IRE,
719
+ {
720
+ [_e]: _c,
721
+ [_hE]: 400,
722
+ },
723
+ [_M],
724
+ [0],
725
+ ];
726
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
727
+ var JobDetails = [3, n0, _JD, 0, [_TDCr, _DWEC, _IDCn], [1, 1, 1]];
728
+ var Language = [3, n0, _L, 0, [_LN, _LC], [0, 0]];
729
+ var LimitExceededException = [
730
+ -3,
731
+ n0,
732
+ _LEE,
733
+ {
734
+ [_e]: _c,
735
+ [_hE]: 400,
736
+ },
737
+ [_M],
738
+ [0],
739
+ ];
740
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
741
+ var ListLanguagesRequest = [3, n0, _LLR, 0, [_DLCi, _NT, _MR], [0, 0, 1]];
742
+ var ListLanguagesResponse = [
743
+ 3,
744
+ n0,
745
+ _LLRi,
746
+ 0,
747
+ [_La, _DLCi, _NT],
748
+ [() => LanguagesList, 0, 0],
749
+ ];
750
+ var ListParallelDataRequest = [3, n0, _LPDR, 0, [_NT, _MR], [0, 1]];
751
+ var ListParallelDataResponse = [
752
+ 3,
753
+ n0,
754
+ _LPDRi,
755
+ 0,
756
+ [_PDPL, _NT],
757
+ [() => ParallelDataPropertiesList, 0],
758
+ ];
759
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_RA], [0]];
760
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_Ta], [() => TagList]];
761
+ var ListTerminologiesRequest = [3, n0, _LTR, 0, [_NT, _MR], [0, 1]];
762
+ var ListTerminologiesResponse = [
763
+ 3,
764
+ n0,
765
+ _LTRi,
766
+ 0,
767
+ [_TPL, _NT],
768
+ [() => TerminologyPropertiesList, 0],
769
+ ];
770
+ var ListTextTranslationJobsRequest = [
771
+ 3,
772
+ n0,
773
+ _LTTJR,
774
+ 0,
775
+ [_F, _NT, _MR],
776
+ [() => TextTranslationJobFilter, 0, 1],
777
+ ];
778
+ var ListTextTranslationJobsResponse = [
779
+ 3,
780
+ n0,
781
+ _LTTJRi,
782
+ 0,
783
+ [_TTJPL, _NT],
784
+ [() => TextTranslationJobPropertiesList, 0],
785
+ ];
786
+ var OutputDataConfig = [3, n0, _ODC, 0, [_SU, _EK], [0, () => EncryptionKey]];
787
+ var ParallelDataConfig = [3, n0, _PDC, 0, [_SU, _Fo], [0, 0]];
788
+ var ParallelDataDataLocation = [3, n0, _PDDL, 0, [_RT, _Lo], [0, 0]];
789
+ var ParallelDataProperties = [
790
+ 3,
791
+ n0,
792
+ _PDP,
793
+ 0,
794
+ [_N, _A, _D, _S, _SLC, _TLC, _PDC, _M, _IDS, _IRC, _FRC, _SRC, _EK, _CA, _LUA, _LUAS, _LUAA],
795
+ [0, 0, 0, 0, 0, 64 | 0, () => ParallelDataConfig, 0, 1, 1, 1, 1, () => EncryptionKey, 4, 4, 0, 4],
796
+ ];
797
+ var ResourceNotFoundException = [
798
+ -3,
799
+ n0,
800
+ _RNFE,
801
+ {
802
+ [_e]: _c,
803
+ [_hE]: 404,
804
+ },
805
+ [_M],
806
+ [0],
807
+ ];
808
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
809
+ var ServiceUnavailableException = [
810
+ -3,
811
+ n0,
812
+ _SUE,
813
+ {
814
+ [_e]: _s,
815
+ [_hE]: 503,
816
+ },
817
+ [_M],
818
+ [0],
819
+ ];
820
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
821
+ var StartTextTranslationJobRequest = [
822
+ 3,
823
+ n0,
824
+ _STTJR,
825
+ 0,
826
+ [_JN, _IDC, _ODC, _DARA, _SLC, _TLC, _TN, _PDN, _CT, _Se],
827
+ [0, () => InputDataConfig, () => OutputDataConfig, 0, 0, 64 | 0, 64 | 0, 64 | 0, [0, 4], () => TranslationSettings],
828
+ ];
829
+ var StartTextTranslationJobResponse = [3, n0, _STTJRt, 0, [_JI, _JS], [0, 0]];
830
+ var StopTextTranslationJobRequest = [3, n0, _STTJRto, 0, [_JI], [0]];
831
+ var StopTextTranslationJobResponse = [3, n0, _STTJRtop, 0, [_JI, _JS], [0, 0]];
832
+ var Tag = [3, n0, _Tag, 0, [_K, _V], [0, 0]];
833
+ var TagResourceRequest = [3, n0, _TRR, 0, [_RA, _Ta], [0, () => TagList]];
834
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
835
+ var Term = [3, n0, _Te, 0, [_ST, _TT], [0, 0]];
836
+ var TerminologyData = [
837
+ 3,
838
+ n0,
839
+ _TD,
840
+ 0,
841
+ [_Fi, _Fo, _Di],
842
+ [[() => TerminologyFile, 0], 0, 0],
843
+ ];
844
+ var TerminologyDataLocation = [3, n0, _TDL, 0, [_RT, _Lo], [0, 0]];
845
+ var TerminologyProperties = [
846
+ 3,
847
+ n0,
848
+ _TP,
849
+ 0,
850
+ [_N, _D, _A, _SLC, _TLC, _EK, _SB, _TC, _CA, _LUA, _Di, _M, _STC, _Fo],
851
+ [0, 0, 0, 0, 64 | 0, () => EncryptionKey, 1, 1, 4, 4, 0, 0, 1, 0],
852
+ ];
853
+ var TextSizeLimitExceededException = [
854
+ -3,
855
+ n0,
856
+ _TSLEE,
857
+ {
858
+ [_e]: _c,
859
+ [_hE]: 400,
860
+ },
861
+ [_M],
862
+ [0],
863
+ ];
864
+ schema.TypeRegistry.for(n0).registerError(TextSizeLimitExceededException, TextSizeLimitExceededException$1);
865
+ var TextTranslationJobFilter = [3, n0, _TTJF, 0, [_JN, _JS, _SBT, _SAT], [0, 0, 4, 4]];
866
+ var TextTranslationJobProperties = [
867
+ 3,
868
+ n0,
869
+ _TTJP,
870
+ 0,
871
+ [_JI, _JN, _JS, _JD, _SLC, _TLC, _TN, _PDN, _M, _STu, _ET, _IDC, _ODC, _DARA, _Se],
872
+ [
873
+ 0,
874
+ 0,
875
+ 0,
876
+ () => JobDetails,
877
+ 0,
878
+ 64 | 0,
879
+ 64 | 0,
880
+ 64 | 0,
881
+ 0,
882
+ 4,
883
+ 4,
884
+ () => InputDataConfig,
885
+ () => OutputDataConfig,
886
+ 0,
887
+ () => TranslationSettings,
888
+ ],
889
+ ];
890
+ var TooManyRequestsException = [
891
+ -3,
892
+ n0,
893
+ _TMRE,
894
+ {
895
+ [_e]: _c,
896
+ [_hE]: 429,
897
+ },
898
+ [_M],
899
+ [0],
900
+ ];
901
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
902
+ var TooManyTagsException = [
903
+ -3,
904
+ n0,
905
+ _TMTE,
906
+ {
907
+ [_e]: _c,
908
+ [_hE]: 400,
909
+ },
910
+ [_m, _RA],
911
+ [0, 0],
912
+ ];
913
+ schema.TypeRegistry.for(n0).registerError(TooManyTagsException, TooManyTagsException$1);
914
+ var TranslatedDocument = [3, n0, _TDr, 0, [_C], [[() => TranslatedDocumentContent, 0]]];
915
+ var TranslateDocumentRequest = [
916
+ 3,
917
+ n0,
918
+ _TDR,
919
+ 0,
920
+ [_Do, _TN, _SLC, _TLCa, _Se],
921
+ [[() => Document, 0], 64 | 0, 0, 0, () => TranslationSettings],
922
+ ];
923
+ var TranslateDocumentResponse = [
924
+ 3,
925
+ n0,
926
+ _TDRr,
927
+ 0,
928
+ [_TDr, _SLC, _TLCa, _ATp, _AS],
929
+ [[() => TranslatedDocument, 0], 0, 0, () => AppliedTerminologyList, () => TranslationSettings],
930
+ ];
931
+ var TranslateTextRequest = [
932
+ 3,
933
+ n0,
934
+ _TTR,
935
+ 0,
936
+ [_Tex, _TN, _SLC, _TLCa, _Se],
937
+ [0, 64 | 0, 0, 0, () => TranslationSettings],
938
+ ];
939
+ var TranslateTextResponse = [
940
+ 3,
941
+ n0,
942
+ _TTRr,
943
+ 0,
944
+ [_TTr, _SLC, _TLCa, _ATp, _AS],
945
+ [0, 0, 0, () => AppliedTerminologyList, () => TranslationSettings],
946
+ ];
947
+ var TranslationSettings = [3, n0, _TS, 0, [_For, _P, _B], [0, 0, 0]];
948
+ var UnsupportedDisplayLanguageCodeException = [
949
+ -3,
950
+ n0,
951
+ _UDLCE,
952
+ {
953
+ [_e]: _c,
954
+ [_hE]: 400,
955
+ },
956
+ [_M, _DLCi],
957
+ [0, 0],
958
+ ];
959
+ schema.TypeRegistry.for(n0).registerError(UnsupportedDisplayLanguageCodeException, UnsupportedDisplayLanguageCodeException$1);
960
+ var UnsupportedLanguagePairException = [
961
+ -3,
962
+ n0,
963
+ _ULPE,
964
+ {
965
+ [_e]: _c,
966
+ [_hE]: 400,
967
+ },
968
+ [_M, _SLC, _TLCa],
969
+ [0, 0, 0],
970
+ ];
971
+ schema.TypeRegistry.for(n0).registerError(UnsupportedLanguagePairException, UnsupportedLanguagePairException$1);
972
+ var UntagResourceRequest = [3, n0, _URR, 0, [_RA, _TK], [0, 64 | 0]];
973
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
974
+ var UpdateParallelDataRequest = [
975
+ 3,
976
+ n0,
977
+ _UPDR,
978
+ 0,
979
+ [_N, _D, _PDC, _CT],
980
+ [0, 0, () => ParallelDataConfig, [0, 4]],
981
+ ];
982
+ var UpdateParallelDataResponse = [3, n0, _UPDRp, 0, [_N, _S, _LUAS, _LUAA], [0, 0, 0, 4]];
983
+ var __Unit = "unit";
984
+ var TranslateServiceException = [-3, _sm, "TranslateServiceException", 0, [], []];
985
+ schema.TypeRegistry.for(_sm).registerError(TranslateServiceException, TranslateServiceException$1);
986
+ var AppliedTerminologyList = [1, n0, _ATL, 0, () => AppliedTerminology];
987
+ var LanguagesList = [1, n0, _LL, 0, () => Language];
988
+ var ParallelDataPropertiesList = [1, n0, _PDPL, 0, () => ParallelDataProperties];
989
+ var TagList = [1, n0, _TL, 0, () => Tag];
990
+ var TerminologyPropertiesList = [1, n0, _TPL, 0, () => TerminologyProperties];
991
+ var TermList = [1, n0, _TLe, 0, () => Term];
992
+ var TextTranslationJobPropertiesList = [1, n0, _TTJPL, 0, () => TextTranslationJobProperties];
993
+ var CreateParallelData = [
994
+ 9,
995
+ n0,
996
+ _CPD,
997
+ 0,
998
+ () => CreateParallelDataRequest,
999
+ () => CreateParallelDataResponse,
1000
+ ];
1001
+ var DeleteParallelData = [
1002
+ 9,
1003
+ n0,
1004
+ _DPD,
1005
+ 0,
1006
+ () => DeleteParallelDataRequest,
1007
+ () => DeleteParallelDataResponse,
1008
+ ];
1009
+ var DeleteTerminology = [9, n0, _DT, 0, () => DeleteTerminologyRequest, () => __Unit];
1010
+ var DescribeTextTranslationJob = [
1011
+ 9,
1012
+ n0,
1013
+ _DTTJ,
1014
+ 0,
1015
+ () => DescribeTextTranslationJobRequest,
1016
+ () => DescribeTextTranslationJobResponse,
1017
+ ];
1018
+ var GetParallelData = [
1019
+ 9,
1020
+ n0,
1021
+ _GPD,
1022
+ 0,
1023
+ () => GetParallelDataRequest,
1024
+ () => GetParallelDataResponse,
1025
+ ];
1026
+ var GetTerminology = [
1027
+ 9,
1028
+ n0,
1029
+ _GT,
1030
+ 0,
1031
+ () => GetTerminologyRequest,
1032
+ () => GetTerminologyResponse,
1033
+ ];
1034
+ var ImportTerminology = [
1035
+ 9,
1036
+ n0,
1037
+ _IT,
1038
+ 0,
1039
+ () => ImportTerminologyRequest,
1040
+ () => ImportTerminologyResponse,
1041
+ ];
1042
+ var ListLanguages = [
1043
+ 9,
1044
+ n0,
1045
+ _LLi,
1046
+ 0,
1047
+ () => ListLanguagesRequest,
1048
+ () => ListLanguagesResponse,
1049
+ ];
1050
+ var ListParallelData = [
1051
+ 9,
1052
+ n0,
1053
+ _LPD,
1054
+ 0,
1055
+ () => ListParallelDataRequest,
1056
+ () => ListParallelDataResponse,
1057
+ ];
1058
+ var ListTagsForResource = [
1059
+ 9,
1060
+ n0,
1061
+ _LTFR,
1062
+ 0,
1063
+ () => ListTagsForResourceRequest,
1064
+ () => ListTagsForResourceResponse,
1065
+ ];
1066
+ var ListTerminologies = [
1067
+ 9,
1068
+ n0,
1069
+ _LT,
1070
+ 0,
1071
+ () => ListTerminologiesRequest,
1072
+ () => ListTerminologiesResponse,
1073
+ ];
1074
+ var ListTextTranslationJobs = [
1075
+ 9,
1076
+ n0,
1077
+ _LTTJ,
1078
+ 0,
1079
+ () => ListTextTranslationJobsRequest,
1080
+ () => ListTextTranslationJobsResponse,
1081
+ ];
1082
+ var StartTextTranslationJob = [
1083
+ 9,
1084
+ n0,
1085
+ _STTJ,
1086
+ 0,
1087
+ () => StartTextTranslationJobRequest,
1088
+ () => StartTextTranslationJobResponse,
1089
+ ];
1090
+ var StopTextTranslationJob = [
1091
+ 9,
1092
+ n0,
1093
+ _STTJt,
1094
+ 0,
1095
+ () => StopTextTranslationJobRequest,
1096
+ () => StopTextTranslationJobResponse,
1097
+ ];
1098
+ var TagResource = [9, n0, _TR, 0, () => TagResourceRequest, () => TagResourceResponse];
1099
+ var TranslateDocument = [
1100
+ 9,
1101
+ n0,
1102
+ _TDra,
1103
+ 0,
1104
+ () => TranslateDocumentRequest,
1105
+ () => TranslateDocumentResponse,
1106
+ ];
1107
+ var TranslateText = [
1108
+ 9,
1109
+ n0,
1110
+ _TTra,
1111
+ 0,
1112
+ () => TranslateTextRequest,
1113
+ () => TranslateTextResponse,
1114
+ ];
1115
+ var UntagResource = [
1116
+ 9,
1117
+ n0,
1118
+ _UR,
1119
+ 0,
1120
+ () => UntagResourceRequest,
1121
+ () => UntagResourceResponse,
1122
+ ];
1123
+ var UpdateParallelData = [
1124
+ 9,
1125
+ n0,
1126
+ _UPD,
1127
+ 0,
1128
+ () => UpdateParallelDataRequest,
1129
+ () => UpdateParallelDataResponse,
1130
+ ];
1231
1131
 
1232
1132
  class CreateParallelDataCommand extends smithyClient.Command
1233
1133
  .classBuilder()
1234
1134
  .ep(commonParams)
1235
1135
  .m(function (Command, cs, config, o) {
1236
- return [
1237
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1238
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1239
- ];
1136
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1240
1137
  })
1241
1138
  .s("AWSShineFrontendService_20170701", "CreateParallelData", {})
1242
1139
  .n("TranslateClient", "CreateParallelDataCommand")
1243
- .f(void 0, void 0)
1244
- .ser(se_CreateParallelDataCommand)
1245
- .de(de_CreateParallelDataCommand)
1140
+ .sc(CreateParallelData)
1246
1141
  .build() {
1247
1142
  }
1248
1143
 
@@ -1250,16 +1145,11 @@ class DeleteParallelDataCommand extends smithyClient.Command
1250
1145
  .classBuilder()
1251
1146
  .ep(commonParams)
1252
1147
  .m(function (Command, cs, config, o) {
1253
- return [
1254
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1255
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1256
- ];
1148
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1257
1149
  })
1258
1150
  .s("AWSShineFrontendService_20170701", "DeleteParallelData", {})
1259
1151
  .n("TranslateClient", "DeleteParallelDataCommand")
1260
- .f(void 0, void 0)
1261
- .ser(se_DeleteParallelDataCommand)
1262
- .de(de_DeleteParallelDataCommand)
1152
+ .sc(DeleteParallelData)
1263
1153
  .build() {
1264
1154
  }
1265
1155
 
@@ -1267,16 +1157,11 @@ class DeleteTerminologyCommand extends smithyClient.Command
1267
1157
  .classBuilder()
1268
1158
  .ep(commonParams)
1269
1159
  .m(function (Command, cs, config, o) {
1270
- return [
1271
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1272
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1273
- ];
1160
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1274
1161
  })
1275
1162
  .s("AWSShineFrontendService_20170701", "DeleteTerminology", {})
1276
1163
  .n("TranslateClient", "DeleteTerminologyCommand")
1277
- .f(void 0, void 0)
1278
- .ser(se_DeleteTerminologyCommand)
1279
- .de(de_DeleteTerminologyCommand)
1164
+ .sc(DeleteTerminology)
1280
1165
  .build() {
1281
1166
  }
1282
1167
 
@@ -1284,16 +1169,11 @@ class DescribeTextTranslationJobCommand extends smithyClient.Command
1284
1169
  .classBuilder()
1285
1170
  .ep(commonParams)
1286
1171
  .m(function (Command, cs, config, o) {
1287
- return [
1288
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1289
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1290
- ];
1172
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1291
1173
  })
1292
1174
  .s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {})
1293
1175
  .n("TranslateClient", "DescribeTextTranslationJobCommand")
1294
- .f(void 0, void 0)
1295
- .ser(se_DescribeTextTranslationJobCommand)
1296
- .de(de_DescribeTextTranslationJobCommand)
1176
+ .sc(DescribeTextTranslationJob)
1297
1177
  .build() {
1298
1178
  }
1299
1179
 
@@ -1301,16 +1181,11 @@ class GetParallelDataCommand extends smithyClient.Command
1301
1181
  .classBuilder()
1302
1182
  .ep(commonParams)
1303
1183
  .m(function (Command, cs, config, o) {
1304
- return [
1305
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1306
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1307
- ];
1184
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
1185
  })
1309
1186
  .s("AWSShineFrontendService_20170701", "GetParallelData", {})
1310
1187
  .n("TranslateClient", "GetParallelDataCommand")
1311
- .f(void 0, void 0)
1312
- .ser(se_GetParallelDataCommand)
1313
- .de(de_GetParallelDataCommand)
1188
+ .sc(GetParallelData)
1314
1189
  .build() {
1315
1190
  }
1316
1191
 
@@ -1318,16 +1193,11 @@ class GetTerminologyCommand extends smithyClient.Command
1318
1193
  .classBuilder()
1319
1194
  .ep(commonParams)
1320
1195
  .m(function (Command, cs, config, o) {
1321
- return [
1322
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1323
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1324
- ];
1196
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1325
1197
  })
1326
1198
  .s("AWSShineFrontendService_20170701", "GetTerminology", {})
1327
1199
  .n("TranslateClient", "GetTerminologyCommand")
1328
- .f(void 0, void 0)
1329
- .ser(se_GetTerminologyCommand)
1330
- .de(de_GetTerminologyCommand)
1200
+ .sc(GetTerminology)
1331
1201
  .build() {
1332
1202
  }
1333
1203
 
@@ -1335,16 +1205,11 @@ class ImportTerminologyCommand extends smithyClient.Command
1335
1205
  .classBuilder()
1336
1206
  .ep(commonParams)
1337
1207
  .m(function (Command, cs, config, o) {
1338
- return [
1339
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1340
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1341
- ];
1208
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1342
1209
  })
1343
1210
  .s("AWSShineFrontendService_20170701", "ImportTerminology", {})
1344
1211
  .n("TranslateClient", "ImportTerminologyCommand")
1345
- .f(ImportTerminologyRequestFilterSensitiveLog, void 0)
1346
- .ser(se_ImportTerminologyCommand)
1347
- .de(de_ImportTerminologyCommand)
1212
+ .sc(ImportTerminology)
1348
1213
  .build() {
1349
1214
  }
1350
1215
 
@@ -1352,16 +1217,11 @@ class ListLanguagesCommand extends smithyClient.Command
1352
1217
  .classBuilder()
1353
1218
  .ep(commonParams)
1354
1219
  .m(function (Command, cs, config, o) {
1355
- return [
1356
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1357
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1358
- ];
1220
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1359
1221
  })
1360
1222
  .s("AWSShineFrontendService_20170701", "ListLanguages", {})
1361
1223
  .n("TranslateClient", "ListLanguagesCommand")
1362
- .f(void 0, void 0)
1363
- .ser(se_ListLanguagesCommand)
1364
- .de(de_ListLanguagesCommand)
1224
+ .sc(ListLanguages)
1365
1225
  .build() {
1366
1226
  }
1367
1227
 
@@ -1369,16 +1229,11 @@ class ListParallelDataCommand extends smithyClient.Command
1369
1229
  .classBuilder()
1370
1230
  .ep(commonParams)
1371
1231
  .m(function (Command, cs, config, o) {
1372
- return [
1373
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1374
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1375
- ];
1232
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
1233
  })
1377
1234
  .s("AWSShineFrontendService_20170701", "ListParallelData", {})
1378
1235
  .n("TranslateClient", "ListParallelDataCommand")
1379
- .f(void 0, void 0)
1380
- .ser(se_ListParallelDataCommand)
1381
- .de(de_ListParallelDataCommand)
1236
+ .sc(ListParallelData)
1382
1237
  .build() {
1383
1238
  }
1384
1239
 
@@ -1386,16 +1241,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1386
1241
  .classBuilder()
1387
1242
  .ep(commonParams)
1388
1243
  .m(function (Command, cs, config, o) {
1389
- return [
1390
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1391
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1392
- ];
1244
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1393
1245
  })
1394
1246
  .s("AWSShineFrontendService_20170701", "ListTagsForResource", {})
1395
1247
  .n("TranslateClient", "ListTagsForResourceCommand")
1396
- .f(void 0, void 0)
1397
- .ser(se_ListTagsForResourceCommand)
1398
- .de(de_ListTagsForResourceCommand)
1248
+ .sc(ListTagsForResource)
1399
1249
  .build() {
1400
1250
  }
1401
1251
 
@@ -1403,16 +1253,11 @@ class ListTerminologiesCommand extends smithyClient.Command
1403
1253
  .classBuilder()
1404
1254
  .ep(commonParams)
1405
1255
  .m(function (Command, cs, config, o) {
1406
- return [
1407
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1408
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1409
- ];
1256
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1410
1257
  })
1411
1258
  .s("AWSShineFrontendService_20170701", "ListTerminologies", {})
1412
1259
  .n("TranslateClient", "ListTerminologiesCommand")
1413
- .f(void 0, void 0)
1414
- .ser(se_ListTerminologiesCommand)
1415
- .de(de_ListTerminologiesCommand)
1260
+ .sc(ListTerminologies)
1416
1261
  .build() {
1417
1262
  }
1418
1263
 
@@ -1420,16 +1265,11 @@ class ListTextTranslationJobsCommand extends smithyClient.Command
1420
1265
  .classBuilder()
1421
1266
  .ep(commonParams)
1422
1267
  .m(function (Command, cs, config, o) {
1423
- return [
1424
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1425
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1426
- ];
1268
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1427
1269
  })
1428
1270
  .s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {})
1429
1271
  .n("TranslateClient", "ListTextTranslationJobsCommand")
1430
- .f(void 0, void 0)
1431
- .ser(se_ListTextTranslationJobsCommand)
1432
- .de(de_ListTextTranslationJobsCommand)
1272
+ .sc(ListTextTranslationJobs)
1433
1273
  .build() {
1434
1274
  }
1435
1275
 
@@ -1437,16 +1277,11 @@ class StartTextTranslationJobCommand extends smithyClient.Command
1437
1277
  .classBuilder()
1438
1278
  .ep(commonParams)
1439
1279
  .m(function (Command, cs, config, o) {
1440
- return [
1441
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1442
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1443
- ];
1280
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1444
1281
  })
1445
1282
  .s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {})
1446
1283
  .n("TranslateClient", "StartTextTranslationJobCommand")
1447
- .f(void 0, void 0)
1448
- .ser(se_StartTextTranslationJobCommand)
1449
- .de(de_StartTextTranslationJobCommand)
1284
+ .sc(StartTextTranslationJob)
1450
1285
  .build() {
1451
1286
  }
1452
1287
 
@@ -1454,16 +1289,11 @@ class StopTextTranslationJobCommand extends smithyClient.Command
1454
1289
  .classBuilder()
1455
1290
  .ep(commonParams)
1456
1291
  .m(function (Command, cs, config, o) {
1457
- return [
1458
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1459
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1460
- ];
1292
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1461
1293
  })
1462
1294
  .s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {})
1463
1295
  .n("TranslateClient", "StopTextTranslationJobCommand")
1464
- .f(void 0, void 0)
1465
- .ser(se_StopTextTranslationJobCommand)
1466
- .de(de_StopTextTranslationJobCommand)
1296
+ .sc(StopTextTranslationJob)
1467
1297
  .build() {
1468
1298
  }
1469
1299
 
@@ -1471,16 +1301,11 @@ class TagResourceCommand extends smithyClient.Command
1471
1301
  .classBuilder()
1472
1302
  .ep(commonParams)
1473
1303
  .m(function (Command, cs, config, o) {
1474
- return [
1475
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1476
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1477
- ];
1304
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1478
1305
  })
1479
1306
  .s("AWSShineFrontendService_20170701", "TagResource", {})
1480
1307
  .n("TranslateClient", "TagResourceCommand")
1481
- .f(void 0, void 0)
1482
- .ser(se_TagResourceCommand)
1483
- .de(de_TagResourceCommand)
1308
+ .sc(TagResource)
1484
1309
  .build() {
1485
1310
  }
1486
1311
 
@@ -1488,16 +1313,11 @@ class TranslateDocumentCommand extends smithyClient.Command
1488
1313
  .classBuilder()
1489
1314
  .ep(commonParams)
1490
1315
  .m(function (Command, cs, config, o) {
1491
- return [
1492
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1493
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1494
- ];
1316
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1495
1317
  })
1496
1318
  .s("AWSShineFrontendService_20170701", "TranslateDocument", {})
1497
1319
  .n("TranslateClient", "TranslateDocumentCommand")
1498
- .f(TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog)
1499
- .ser(se_TranslateDocumentCommand)
1500
- .de(de_TranslateDocumentCommand)
1320
+ .sc(TranslateDocument)
1501
1321
  .build() {
1502
1322
  }
1503
1323
 
@@ -1505,16 +1325,11 @@ class TranslateTextCommand extends smithyClient.Command
1505
1325
  .classBuilder()
1506
1326
  .ep(commonParams)
1507
1327
  .m(function (Command, cs, config, o) {
1508
- return [
1509
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1510
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1511
- ];
1328
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1512
1329
  })
1513
1330
  .s("AWSShineFrontendService_20170701", "TranslateText", {})
1514
1331
  .n("TranslateClient", "TranslateTextCommand")
1515
- .f(void 0, void 0)
1516
- .ser(se_TranslateTextCommand)
1517
- .de(de_TranslateTextCommand)
1332
+ .sc(TranslateText)
1518
1333
  .build() {
1519
1334
  }
1520
1335
 
@@ -1522,16 +1337,11 @@ class UntagResourceCommand extends smithyClient.Command
1522
1337
  .classBuilder()
1523
1338
  .ep(commonParams)
1524
1339
  .m(function (Command, cs, config, o) {
1525
- return [
1526
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1527
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1528
- ];
1340
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1529
1341
  })
1530
1342
  .s("AWSShineFrontendService_20170701", "UntagResource", {})
1531
1343
  .n("TranslateClient", "UntagResourceCommand")
1532
- .f(void 0, void 0)
1533
- .ser(se_UntagResourceCommand)
1534
- .de(de_UntagResourceCommand)
1344
+ .sc(UntagResource)
1535
1345
  .build() {
1536
1346
  }
1537
1347
 
@@ -1539,16 +1349,11 @@ class UpdateParallelDataCommand extends smithyClient.Command
1539
1349
  .classBuilder()
1540
1350
  .ep(commonParams)
1541
1351
  .m(function (Command, cs, config, o) {
1542
- return [
1543
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1544
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1545
- ];
1352
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1546
1353
  })
1547
1354
  .s("AWSShineFrontendService_20170701", "UpdateParallelData", {})
1548
1355
  .n("TranslateClient", "UpdateParallelDataCommand")
1549
- .f(void 0, void 0)
1550
- .ser(se_UpdateParallelDataCommand)
1551
- .de(de_UpdateParallelDataCommand)
1356
+ .sc(UpdateParallelData)
1552
1357
  .build() {
1553
1358
  }
1554
1359
 
@@ -1594,28 +1399,26 @@ Object.defineProperty(exports, "__Client", {
1594
1399
  get: function () { return smithyClient.Client; }
1595
1400
  });
1596
1401
  exports.Brevity = Brevity;
1597
- exports.ConcurrentModificationException = ConcurrentModificationException;
1598
- exports.ConflictException = ConflictException;
1402
+ exports.ConcurrentModificationException = ConcurrentModificationException$1;
1403
+ exports.ConflictException = ConflictException$1;
1599
1404
  exports.CreateParallelDataCommand = CreateParallelDataCommand;
1600
1405
  exports.DeleteParallelDataCommand = DeleteParallelDataCommand;
1601
1406
  exports.DeleteTerminologyCommand = DeleteTerminologyCommand;
1602
1407
  exports.DescribeTextTranslationJobCommand = DescribeTextTranslationJobCommand;
1603
- exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException;
1408
+ exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException$1;
1604
1409
  exports.Directionality = Directionality;
1605
1410
  exports.DisplayLanguageCode = DisplayLanguageCode;
1606
- exports.DocumentFilterSensitiveLog = DocumentFilterSensitiveLog;
1607
1411
  exports.EncryptionKeyType = EncryptionKeyType;
1608
1412
  exports.Formality = Formality;
1609
1413
  exports.GetParallelDataCommand = GetParallelDataCommand;
1610
1414
  exports.GetTerminologyCommand = GetTerminologyCommand;
1611
1415
  exports.ImportTerminologyCommand = ImportTerminologyCommand;
1612
- exports.ImportTerminologyRequestFilterSensitiveLog = ImportTerminologyRequestFilterSensitiveLog;
1613
- exports.InternalServerException = InternalServerException;
1614
- exports.InvalidFilterException = InvalidFilterException;
1615
- exports.InvalidParameterValueException = InvalidParameterValueException;
1616
- exports.InvalidRequestException = InvalidRequestException;
1416
+ exports.InternalServerException = InternalServerException$1;
1417
+ exports.InvalidFilterException = InvalidFilterException$1;
1418
+ exports.InvalidParameterValueException = InvalidParameterValueException$1;
1419
+ exports.InvalidRequestException = InvalidRequestException$1;
1617
1420
  exports.JobStatus = JobStatus;
1618
- exports.LimitExceededException = LimitExceededException;
1421
+ exports.LimitExceededException = LimitExceededException$1;
1619
1422
  exports.ListLanguagesCommand = ListLanguagesCommand;
1620
1423
  exports.ListParallelDataCommand = ListParallelDataCommand;
1621
1424
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -1625,26 +1428,22 @@ exports.MergeStrategy = MergeStrategy;
1625
1428
  exports.ParallelDataFormat = ParallelDataFormat;
1626
1429
  exports.ParallelDataStatus = ParallelDataStatus;
1627
1430
  exports.Profanity = Profanity;
1628
- exports.ResourceNotFoundException = ResourceNotFoundException;
1629
- exports.ServiceUnavailableException = ServiceUnavailableException;
1431
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1432
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
1630
1433
  exports.StartTextTranslationJobCommand = StartTextTranslationJobCommand;
1631
1434
  exports.StopTextTranslationJobCommand = StopTextTranslationJobCommand;
1632
1435
  exports.TagResourceCommand = TagResourceCommand;
1633
- exports.TerminologyDataFilterSensitiveLog = TerminologyDataFilterSensitiveLog;
1634
1436
  exports.TerminologyDataFormat = TerminologyDataFormat;
1635
- exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
1636
- exports.TooManyRequestsException = TooManyRequestsException;
1637
- exports.TooManyTagsException = TooManyTagsException;
1437
+ exports.TextSizeLimitExceededException = TextSizeLimitExceededException$1;
1438
+ exports.TooManyRequestsException = TooManyRequestsException$1;
1439
+ exports.TooManyTagsException = TooManyTagsException$1;
1638
1440
  exports.Translate = Translate;
1639
1441
  exports.TranslateClient = TranslateClient;
1640
1442
  exports.TranslateDocumentCommand = TranslateDocumentCommand;
1641
- exports.TranslateDocumentRequestFilterSensitiveLog = TranslateDocumentRequestFilterSensitiveLog;
1642
- exports.TranslateDocumentResponseFilterSensitiveLog = TranslateDocumentResponseFilterSensitiveLog;
1643
- exports.TranslateServiceException = TranslateServiceException;
1443
+ exports.TranslateServiceException = TranslateServiceException$1;
1644
1444
  exports.TranslateTextCommand = TranslateTextCommand;
1645
- exports.TranslatedDocumentFilterSensitiveLog = TranslatedDocumentFilterSensitiveLog;
1646
- exports.UnsupportedDisplayLanguageCodeException = UnsupportedDisplayLanguageCodeException;
1647
- exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException;
1445
+ exports.UnsupportedDisplayLanguageCodeException = UnsupportedDisplayLanguageCodeException$1;
1446
+ exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException$1;
1648
1447
  exports.UntagResourceCommand = UntagResourceCommand;
1649
1448
  exports.UpdateParallelDataCommand = UpdateParallelDataCommand;
1650
1449
  exports.paginateListLanguages = paginateListLanguages;