@aws-sdk/client-transcribe-streaming 3.51.0 → 3.54.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-transcribe-streaming
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranscribeStreamingServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./TranscribeStreaming"), exports);
5
6
  tslib_1.__exportStar(require("./TranscribeStreamingClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var TranscribeStreamingServiceException_1 = require("./models/TranscribeStreamingServiceException");
10
+ Object.defineProperty(exports, "TranscribeStreamingServiceException", { enumerable: true, get: function () { return TranscribeStreamingServiceException_1.TranscribeStreamingServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranscribeStreamingServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class TranscribeStreamingServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
9
+ }
10
+ }
11
+ exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.PartialResultsStability = exports.MedicalTranscriptResultStream = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalContentIdentificationType = exports.MedicalAlternative = exports.MedicalItem = exports.MedicalEntity = exports.MediaEncoding = exports.LanguageWithScore = exports.LanguageCode = exports.ContentRedactionType = exports.ContentIdentificationType = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = exports.Entity = void 0;
3
+ exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.PartialResultsStability = exports.MedicalTranscriptResultStream = exports.ServiceUnavailableException = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalContentIdentificationType = exports.MedicalAlternative = exports.MedicalItem = exports.MedicalEntity = exports.MediaEncoding = exports.LimitExceededException = exports.LanguageWithScore = exports.LanguageCode = exports.InternalFailureException = exports.ContentRedactionType = exports.ContentIdentificationType = exports.ConflictException = exports.BadRequestException = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = exports.Entity = void 0;
4
+ const TranscribeStreamingServiceException_1 = require("./TranscribeStreamingServiceException");
4
5
  var Entity;
5
6
  (function (Entity) {
6
7
  Entity.filterSensitiveLog = (obj) => ({
@@ -44,6 +45,34 @@ var AudioStream;
44
45
  return { [obj.$unknown[0]]: "UNKNOWN" };
45
46
  };
46
47
  })(AudioStream = exports.AudioStream || (exports.AudioStream = {}));
48
+ class BadRequestException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
49
+ constructor(opts) {
50
+ super({
51
+ name: "BadRequestException",
52
+ $fault: "client",
53
+ ...opts,
54
+ });
55
+ this.name = "BadRequestException";
56
+ this.$fault = "client";
57
+ Object.setPrototypeOf(this, BadRequestException.prototype);
58
+ this.Message = opts.Message;
59
+ }
60
+ }
61
+ exports.BadRequestException = BadRequestException;
62
+ class ConflictException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
63
+ constructor(opts) {
64
+ super({
65
+ name: "ConflictException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ this.name = "ConflictException";
70
+ this.$fault = "client";
71
+ Object.setPrototypeOf(this, ConflictException.prototype);
72
+ this.Message = opts.Message;
73
+ }
74
+ }
75
+ exports.ConflictException = ConflictException;
47
76
  var ContentIdentificationType;
48
77
  (function (ContentIdentificationType) {
49
78
  ContentIdentificationType["PII"] = "PII";
@@ -52,6 +81,20 @@ var ContentRedactionType;
52
81
  (function (ContentRedactionType) {
53
82
  ContentRedactionType["PII"] = "PII";
54
83
  })(ContentRedactionType = exports.ContentRedactionType || (exports.ContentRedactionType = {}));
84
+ class InternalFailureException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "InternalFailureException",
88
+ $fault: "server",
89
+ ...opts,
90
+ });
91
+ this.name = "InternalFailureException";
92
+ this.$fault = "server";
93
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
94
+ this.Message = opts.Message;
95
+ }
96
+ }
97
+ exports.InternalFailureException = InternalFailureException;
55
98
  var LanguageCode;
56
99
  (function (LanguageCode) {
57
100
  LanguageCode["DE_DE"] = "de-DE";
@@ -73,6 +116,20 @@ var LanguageWithScore;
73
116
  ...obj,
74
117
  });
75
118
  })(LanguageWithScore = exports.LanguageWithScore || (exports.LanguageWithScore = {}));
119
+ class LimitExceededException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "LimitExceededException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "LimitExceededException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
129
+ this.Message = opts.Message;
130
+ }
131
+ }
132
+ exports.LimitExceededException = LimitExceededException;
76
133
  var MediaEncoding;
77
134
  (function (MediaEncoding) {
78
135
  MediaEncoding["FLAC"] = "flac";
@@ -119,6 +176,20 @@ var MedicalTranscriptEvent;
119
176
  ...obj,
120
177
  });
121
178
  })(MedicalTranscriptEvent = exports.MedicalTranscriptEvent || (exports.MedicalTranscriptEvent = {}));
179
+ class ServiceUnavailableException extends TranscribeStreamingServiceException_1.TranscribeStreamingServiceException {
180
+ constructor(opts) {
181
+ super({
182
+ name: "ServiceUnavailableException",
183
+ $fault: "server",
184
+ ...opts,
185
+ });
186
+ this.name = "ServiceUnavailableException";
187
+ this.$fault = "server";
188
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
189
+ this.Message = opts.Message;
190
+ }
191
+ }
192
+ exports.ServiceUnavailableException = ServiceUnavailableException;
122
193
  var MedicalTranscriptResultStream;
123
194
  (function (MedicalTranscriptResultStream) {
124
195
  MedicalTranscriptResultStream.visit = (value, visitor) => {
@@ -4,6 +4,7 @@ exports.deserializeAws_restJson1StartStreamTranscriptionCommand = exports.deseri
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
+ const TranscribeStreamingServiceException_1 = require("../models/TranscribeStreamingServiceException");
7
8
  const serializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (input, context) => {
8
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
10
  const headers = {
@@ -204,59 +205,28 @@ const deserializeAws_restJson1StartMedicalStreamTranscriptionCommandError = asyn
204
205
  switch (errorCode) {
205
206
  case "BadRequestException":
206
207
  case "com.amazonaws.transcribestreaming#BadRequestException":
207
- response = {
208
- ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
209
- name: errorCode,
210
- $metadata: deserializeMetadata(output),
211
- };
212
- break;
208
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
213
209
  case "ConflictException":
214
210
  case "com.amazonaws.transcribestreaming#ConflictException":
215
- response = {
216
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
217
- name: errorCode,
218
- $metadata: deserializeMetadata(output),
219
- };
220
- break;
211
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
221
212
  case "InternalFailureException":
222
213
  case "com.amazonaws.transcribestreaming#InternalFailureException":
223
- response = {
224
- ...(await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)),
225
- name: errorCode,
226
- $metadata: deserializeMetadata(output),
227
- };
228
- break;
214
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
229
215
  case "LimitExceededException":
230
216
  case "com.amazonaws.transcribestreaming#LimitExceededException":
231
- response = {
232
- ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
233
- name: errorCode,
234
- $metadata: deserializeMetadata(output),
235
- };
236
- break;
217
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
237
218
  case "ServiceUnavailableException":
238
219
  case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
239
- response = {
240
- ...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
241
- name: errorCode,
242
- $metadata: deserializeMetadata(output),
243
- };
244
- break;
220
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
245
221
  default:
246
222
  const parsedBody = parsedOutput.body;
247
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
248
- response = {
249
- ...parsedBody,
250
- name: `${errorCode}`,
251
- message: parsedBody.message || parsedBody.Message || errorCode,
223
+ response = new TranscribeStreamingServiceException_1.TranscribeStreamingServiceException({
224
+ name: parsedBody.code || parsedBody.Code || errorCode,
252
225
  $fault: "client",
253
226
  $metadata: deserializeMetadata(output),
254
- };
227
+ });
228
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
255
229
  }
256
- const message = response.message || response.Message || errorCode;
257
- response.message = message;
258
- delete response.Message;
259
- return Promise.reject(Object.assign(new Error(message), response));
260
230
  };
261
231
  const deserializeAws_restJson1StartStreamTranscriptionCommand = async (output, context) => {
262
232
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -376,59 +346,28 @@ const deserializeAws_restJson1StartStreamTranscriptionCommandError = async (outp
376
346
  switch (errorCode) {
377
347
  case "BadRequestException":
378
348
  case "com.amazonaws.transcribestreaming#BadRequestException":
379
- response = {
380
- ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
381
- name: errorCode,
382
- $metadata: deserializeMetadata(output),
383
- };
384
- break;
349
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
385
350
  case "ConflictException":
386
351
  case "com.amazonaws.transcribestreaming#ConflictException":
387
- response = {
388
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
389
- name: errorCode,
390
- $metadata: deserializeMetadata(output),
391
- };
392
- break;
352
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
393
353
  case "InternalFailureException":
394
354
  case "com.amazonaws.transcribestreaming#InternalFailureException":
395
- response = {
396
- ...(await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)),
397
- name: errorCode,
398
- $metadata: deserializeMetadata(output),
399
- };
400
- break;
355
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
401
356
  case "LimitExceededException":
402
357
  case "com.amazonaws.transcribestreaming#LimitExceededException":
403
- response = {
404
- ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
405
- name: errorCode,
406
- $metadata: deserializeMetadata(output),
407
- };
408
- break;
358
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
409
359
  case "ServiceUnavailableException":
410
360
  case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
411
- response = {
412
- ...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
413
- name: errorCode,
414
- $metadata: deserializeMetadata(output),
415
- };
416
- break;
361
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
417
362
  default:
418
363
  const parsedBody = parsedOutput.body;
419
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
420
- response = {
421
- ...parsedBody,
422
- name: `${errorCode}`,
423
- message: parsedBody.message || parsedBody.Message || errorCode,
364
+ response = new TranscribeStreamingServiceException_1.TranscribeStreamingServiceException({
365
+ name: parsedBody.code || parsedBody.Code || errorCode,
424
366
  $fault: "client",
425
367
  $metadata: deserializeMetadata(output),
426
- };
368
+ });
369
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
427
370
  }
428
- const message = response.message || response.Message || errorCode;
429
- response.message = message;
430
- delete response.Message;
431
- return Promise.reject(Object.assign(new Error(message), response));
432
371
  };
433
372
  const serializeAws_restJson1AudioStream_event = (input, context) => {
434
373
  return models_0_1.AudioStream.visit(input, {
@@ -567,69 +506,64 @@ const deserializeAws_restJson1TranscriptEvent_event = async (output, context) =>
567
506
  return contents;
568
507
  };
569
508
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
570
- const contents = {
571
- name: "BadRequestException",
572
- $fault: "client",
573
- $metadata: deserializeMetadata(parsedOutput),
574
- Message: undefined,
575
- };
509
+ const contents = {};
576
510
  const data = parsedOutput.body;
577
511
  if (data.Message !== undefined && data.Message !== null) {
578
512
  contents.Message = smithy_client_1.expectString(data.Message);
579
513
  }
580
- return contents;
514
+ const exception = new models_0_1.BadRequestException({
515
+ $metadata: deserializeMetadata(parsedOutput),
516
+ ...contents,
517
+ });
518
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
581
519
  };
582
520
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
583
- const contents = {
584
- name: "ConflictException",
585
- $fault: "client",
586
- $metadata: deserializeMetadata(parsedOutput),
587
- Message: undefined,
588
- };
521
+ const contents = {};
589
522
  const data = parsedOutput.body;
590
523
  if (data.Message !== undefined && data.Message !== null) {
591
524
  contents.Message = smithy_client_1.expectString(data.Message);
592
525
  }
593
- return contents;
526
+ const exception = new models_0_1.ConflictException({
527
+ $metadata: deserializeMetadata(parsedOutput),
528
+ ...contents,
529
+ });
530
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
594
531
  };
595
532
  const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
596
- const contents = {
597
- name: "InternalFailureException",
598
- $fault: "server",
599
- $metadata: deserializeMetadata(parsedOutput),
600
- Message: undefined,
601
- };
533
+ const contents = {};
602
534
  const data = parsedOutput.body;
603
535
  if (data.Message !== undefined && data.Message !== null) {
604
536
  contents.Message = smithy_client_1.expectString(data.Message);
605
537
  }
606
- return contents;
538
+ const exception = new models_0_1.InternalFailureException({
539
+ $metadata: deserializeMetadata(parsedOutput),
540
+ ...contents,
541
+ });
542
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
607
543
  };
608
544
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
609
- const contents = {
610
- name: "LimitExceededException",
611
- $fault: "client",
612
- $metadata: deserializeMetadata(parsedOutput),
613
- Message: undefined,
614
- };
545
+ const contents = {};
615
546
  const data = parsedOutput.body;
616
547
  if (data.Message !== undefined && data.Message !== null) {
617
548
  contents.Message = smithy_client_1.expectString(data.Message);
618
549
  }
619
- return contents;
550
+ const exception = new models_0_1.LimitExceededException({
551
+ $metadata: deserializeMetadata(parsedOutput),
552
+ ...contents,
553
+ });
554
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
620
555
  };
621
556
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
622
- const contents = {
623
- name: "ServiceUnavailableException",
624
- $fault: "server",
625
- $metadata: deserializeMetadata(parsedOutput),
626
- Message: undefined,
627
- };
557
+ const contents = {};
628
558
  const data = parsedOutput.body;
629
559
  if (data.Message !== undefined && data.Message !== null) {
630
560
  contents.Message = smithy_client_1.expectString(data.Message);
631
561
  }
632
- return contents;
562
+ const exception = new models_0_1.ServiceUnavailableException({
563
+ $metadata: deserializeMetadata(parsedOutput),
564
+ ...contents,
565
+ });
566
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
633
567
  };
634
568
  const serializeAws_restJson1AudioEvent = (input, context) => {
635
569
  return {
@@ -655,7 +589,7 @@ const deserializeAws_restJson1Alternative = (output, context) => {
655
589
  };
656
590
  };
657
591
  const deserializeAws_restJson1AlternativeList = (output, context) => {
658
- return (output || [])
592
+ const retVal = (output || [])
659
593
  .filter((e) => e != null)
660
594
  .map((entry) => {
661
595
  if (entry === null) {
@@ -663,6 +597,7 @@ const deserializeAws_restJson1AlternativeList = (output, context) => {
663
597
  }
664
598
  return deserializeAws_restJson1Alternative(entry, context);
665
599
  });
600
+ return retVal;
666
601
  };
667
602
  const deserializeAws_restJson1BadRequestException = (output, context) => {
668
603
  return {
@@ -685,7 +620,7 @@ const deserializeAws_restJson1Entity = (output, context) => {
685
620
  };
686
621
  };
687
622
  const deserializeAws_restJson1EntityList = (output, context) => {
688
- return (output || [])
623
+ const retVal = (output || [])
689
624
  .filter((e) => e != null)
690
625
  .map((entry) => {
691
626
  if (entry === null) {
@@ -693,6 +628,7 @@ const deserializeAws_restJson1EntityList = (output, context) => {
693
628
  }
694
629
  return deserializeAws_restJson1Entity(entry, context);
695
630
  });
631
+ return retVal;
696
632
  };
697
633
  const deserializeAws_restJson1InternalFailureException = (output, context) => {
698
634
  return {
@@ -712,7 +648,7 @@ const deserializeAws_restJson1Item = (output, context) => {
712
648
  };
713
649
  };
714
650
  const deserializeAws_restJson1ItemList = (output, context) => {
715
- return (output || [])
651
+ const retVal = (output || [])
716
652
  .filter((e) => e != null)
717
653
  .map((entry) => {
718
654
  if (entry === null) {
@@ -720,9 +656,10 @@ const deserializeAws_restJson1ItemList = (output, context) => {
720
656
  }
721
657
  return deserializeAws_restJson1Item(entry, context);
722
658
  });
659
+ return retVal;
723
660
  };
724
661
  const deserializeAws_restJson1LanguageIdentification = (output, context) => {
725
- return (output || [])
662
+ const retVal = (output || [])
726
663
  .filter((e) => e != null)
727
664
  .map((entry) => {
728
665
  if (entry === null) {
@@ -730,6 +667,7 @@ const deserializeAws_restJson1LanguageIdentification = (output, context) => {
730
667
  }
731
668
  return deserializeAws_restJson1LanguageWithScore(entry, context);
732
669
  });
670
+ return retVal;
733
671
  };
734
672
  const deserializeAws_restJson1LanguageWithScore = (output, context) => {
735
673
  return {
@@ -754,7 +692,7 @@ const deserializeAws_restJson1MedicalAlternative = (output, context) => {
754
692
  };
755
693
  };
756
694
  const deserializeAws_restJson1MedicalAlternativeList = (output, context) => {
757
- return (output || [])
695
+ const retVal = (output || [])
758
696
  .filter((e) => e != null)
759
697
  .map((entry) => {
760
698
  if (entry === null) {
@@ -762,6 +700,7 @@ const deserializeAws_restJson1MedicalAlternativeList = (output, context) => {
762
700
  }
763
701
  return deserializeAws_restJson1MedicalAlternative(entry, context);
764
702
  });
703
+ return retVal;
765
704
  };
766
705
  const deserializeAws_restJson1MedicalEntity = (output, context) => {
767
706
  return {
@@ -773,7 +712,7 @@ const deserializeAws_restJson1MedicalEntity = (output, context) => {
773
712
  };
774
713
  };
775
714
  const deserializeAws_restJson1MedicalEntityList = (output, context) => {
776
- return (output || [])
715
+ const retVal = (output || [])
777
716
  .filter((e) => e != null)
778
717
  .map((entry) => {
779
718
  if (entry === null) {
@@ -781,6 +720,7 @@ const deserializeAws_restJson1MedicalEntityList = (output, context) => {
781
720
  }
782
721
  return deserializeAws_restJson1MedicalEntity(entry, context);
783
722
  });
723
+ return retVal;
784
724
  };
785
725
  const deserializeAws_restJson1MedicalItem = (output, context) => {
786
726
  return {
@@ -793,7 +733,7 @@ const deserializeAws_restJson1MedicalItem = (output, context) => {
793
733
  };
794
734
  };
795
735
  const deserializeAws_restJson1MedicalItemList = (output, context) => {
796
- return (output || [])
736
+ const retVal = (output || [])
797
737
  .filter((e) => e != null)
798
738
  .map((entry) => {
799
739
  if (entry === null) {
@@ -801,6 +741,7 @@ const deserializeAws_restJson1MedicalItemList = (output, context) => {
801
741
  }
802
742
  return deserializeAws_restJson1MedicalItem(entry, context);
803
743
  });
744
+ return retVal;
804
745
  };
805
746
  const deserializeAws_restJson1MedicalResult = (output, context) => {
806
747
  return {
@@ -815,7 +756,7 @@ const deserializeAws_restJson1MedicalResult = (output, context) => {
815
756
  };
816
757
  };
817
758
  const deserializeAws_restJson1MedicalResultList = (output, context) => {
818
- return (output || [])
759
+ const retVal = (output || [])
819
760
  .filter((e) => e != null)
820
761
  .map((entry) => {
821
762
  if (entry === null) {
@@ -823,6 +764,7 @@ const deserializeAws_restJson1MedicalResultList = (output, context) => {
823
764
  }
824
765
  return deserializeAws_restJson1MedicalResult(entry, context);
825
766
  });
767
+ return retVal;
826
768
  };
827
769
  const deserializeAws_restJson1MedicalTranscript = (output, context) => {
828
770
  return {
@@ -888,7 +830,7 @@ const deserializeAws_restJson1Result = (output, context) => {
888
830
  };
889
831
  };
890
832
  const deserializeAws_restJson1ResultList = (output, context) => {
891
- return (output || [])
833
+ const retVal = (output || [])
892
834
  .filter((e) => e != null)
893
835
  .map((entry) => {
894
836
  if (entry === null) {
@@ -896,6 +838,7 @@ const deserializeAws_restJson1ResultList = (output, context) => {
896
838
  }
897
839
  return deserializeAws_restJson1Result(entry, context);
898
840
  });
841
+ return retVal;
899
842
  };
900
843
  const deserializeAws_restJson1ServiceUnavailableException = (output, context) => {
901
844
  return {
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./TranscribeStreaming";
2
2
  export * from "./TranscribeStreamingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { TranscribeStreamingServiceException } from "./models/TranscribeStreamingServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var TranscribeStreamingServiceException = (function (_super) {
4
+ __extends(TranscribeStreamingServiceException, _super);
5
+ function TranscribeStreamingServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, TranscribeStreamingServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return TranscribeStreamingServiceException;
11
+ }(__ServiceException));
12
+ export { TranscribeStreamingServiceException };
@@ -1,4 +1,5 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
2
3
  export var Entity;
3
4
  (function (Entity) {
4
5
  Entity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -35,6 +36,32 @@ export var AudioStream;
35
36
  return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
36
37
  };
37
38
  })(AudioStream || (AudioStream = {}));
39
+ var BadRequestException = (function (_super) {
40
+ __extends(BadRequestException, _super);
41
+ function BadRequestException(opts) {
42
+ var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
43
+ _this.name = "BadRequestException";
44
+ _this.$fault = "client";
45
+ Object.setPrototypeOf(_this, BadRequestException.prototype);
46
+ _this.Message = opts.Message;
47
+ return _this;
48
+ }
49
+ return BadRequestException;
50
+ }(__BaseException));
51
+ export { BadRequestException };
52
+ var ConflictException = (function (_super) {
53
+ __extends(ConflictException, _super);
54
+ function ConflictException(opts) {
55
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
56
+ _this.name = "ConflictException";
57
+ _this.$fault = "client";
58
+ Object.setPrototypeOf(_this, ConflictException.prototype);
59
+ _this.Message = opts.Message;
60
+ return _this;
61
+ }
62
+ return ConflictException;
63
+ }(__BaseException));
64
+ export { ConflictException };
38
65
  export var ContentIdentificationType;
39
66
  (function (ContentIdentificationType) {
40
67
  ContentIdentificationType["PII"] = "PII";
@@ -43,6 +70,19 @@ export var ContentRedactionType;
43
70
  (function (ContentRedactionType) {
44
71
  ContentRedactionType["PII"] = "PII";
45
72
  })(ContentRedactionType || (ContentRedactionType = {}));
73
+ var InternalFailureException = (function (_super) {
74
+ __extends(InternalFailureException, _super);
75
+ function InternalFailureException(opts) {
76
+ var _this = _super.call(this, __assign({ name: "InternalFailureException", $fault: "server" }, opts)) || this;
77
+ _this.name = "InternalFailureException";
78
+ _this.$fault = "server";
79
+ Object.setPrototypeOf(_this, InternalFailureException.prototype);
80
+ _this.Message = opts.Message;
81
+ return _this;
82
+ }
83
+ return InternalFailureException;
84
+ }(__BaseException));
85
+ export { InternalFailureException };
46
86
  export var LanguageCode;
47
87
  (function (LanguageCode) {
48
88
  LanguageCode["DE_DE"] = "de-DE";
@@ -62,6 +102,19 @@ export var LanguageWithScore;
62
102
  (function (LanguageWithScore) {
63
103
  LanguageWithScore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
104
  })(LanguageWithScore || (LanguageWithScore = {}));
105
+ var LimitExceededException = (function (_super) {
106
+ __extends(LimitExceededException, _super);
107
+ function LimitExceededException(opts) {
108
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
109
+ _this.name = "LimitExceededException";
110
+ _this.$fault = "client";
111
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
112
+ _this.Message = opts.Message;
113
+ return _this;
114
+ }
115
+ return LimitExceededException;
116
+ }(__BaseException));
117
+ export { LimitExceededException };
65
118
  export var MediaEncoding;
66
119
  (function (MediaEncoding) {
67
120
  MediaEncoding["FLAC"] = "flac";
@@ -96,6 +149,19 @@ export var MedicalTranscriptEvent;
96
149
  (function (MedicalTranscriptEvent) {
97
150
  MedicalTranscriptEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
151
  })(MedicalTranscriptEvent || (MedicalTranscriptEvent = {}));
152
+ var ServiceUnavailableException = (function (_super) {
153
+ __extends(ServiceUnavailableException, _super);
154
+ function ServiceUnavailableException(opts) {
155
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
156
+ _this.name = "ServiceUnavailableException";
157
+ _this.$fault = "server";
158
+ Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
159
+ _this.Message = opts.Message;
160
+ return _this;
161
+ }
162
+ return ServiceUnavailableException;
163
+ }(__BaseException));
164
+ export { ServiceUnavailableException };
99
165
  export var MedicalTranscriptResultStream;
100
166
  (function (MedicalTranscriptResultStream) {
101
167
  MedicalTranscriptResultStream.visit = function (value, visitor) {