@aws-sdk/client-transcribe-streaming 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +5 -67
- package/dist-es/protocols/Aws_restJson1.js +4 -66
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -590,7 +590,7 @@ var se_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
590
590
|
}, "se_StartStreamTranscriptionCommand");
|
|
591
591
|
var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
-
return
|
|
593
|
+
return de_CommandError(output, context);
|
|
594
594
|
}
|
|
595
595
|
const contents = (0, import_smithy_client.map)({
|
|
596
596
|
$metadata: deserializeMetadata(output),
|
|
@@ -613,40 +613,9 @@ var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(asy
|
|
|
613
613
|
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
614
614
|
return contents;
|
|
615
615
|
}, "de_StartCallAnalyticsStreamTranscriptionCommand");
|
|
616
|
-
var de_StartCallAnalyticsStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
617
|
-
const parsedOutput = {
|
|
618
|
-
...output,
|
|
619
|
-
body: await parseErrorBody(output.body, context)
|
|
620
|
-
};
|
|
621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
-
switch (errorCode) {
|
|
623
|
-
case "BadRequestException":
|
|
624
|
-
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
625
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ConflictException":
|
|
627
|
-
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
628
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
629
|
-
case "InternalFailureException":
|
|
630
|
-
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
631
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
632
|
-
case "LimitExceededException":
|
|
633
|
-
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
634
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ServiceUnavailableException":
|
|
636
|
-
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
637
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
638
|
-
default:
|
|
639
|
-
const parsedBody = parsedOutput.body;
|
|
640
|
-
return throwDefaultError({
|
|
641
|
-
output,
|
|
642
|
-
parsedBody,
|
|
643
|
-
errorCode
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
}, "de_StartCallAnalyticsStreamTranscriptionCommandError");
|
|
647
616
|
var de_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
648
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
650
619
|
}
|
|
651
620
|
const contents = (0, import_smithy_client.map)({
|
|
652
621
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,40 +636,9 @@ var de_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (ou
|
|
|
667
636
|
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
668
637
|
return contents;
|
|
669
638
|
}, "de_StartMedicalStreamTranscriptionCommand");
|
|
670
|
-
var de_StartMedicalStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
671
|
-
const parsedOutput = {
|
|
672
|
-
...output,
|
|
673
|
-
body: await parseErrorBody(output.body, context)
|
|
674
|
-
};
|
|
675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
|
-
switch (errorCode) {
|
|
677
|
-
case "BadRequestException":
|
|
678
|
-
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
679
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ConflictException":
|
|
681
|
-
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalFailureException":
|
|
684
|
-
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
685
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
686
|
-
case "LimitExceededException":
|
|
687
|
-
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
688
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ServiceUnavailableException":
|
|
690
|
-
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
691
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
}, "de_StartMedicalStreamTranscriptionCommandError");
|
|
701
639
|
var de_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
640
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return
|
|
641
|
+
return de_CommandError(output, context);
|
|
704
642
|
}
|
|
705
643
|
const contents = (0, import_smithy_client.map)({
|
|
706
644
|
$metadata: deserializeMetadata(output),
|
|
@@ -732,7 +670,7 @@ var de_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
732
670
|
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
733
671
|
return contents;
|
|
734
672
|
}, "de_StartStreamTranscriptionCommand");
|
|
735
|
-
var
|
|
673
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
736
674
|
const parsedOutput = {
|
|
737
675
|
...output,
|
|
738
676
|
body: await parseErrorBody(output.body, context)
|
|
@@ -762,7 +700,7 @@ var de_StartStreamTranscriptionCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
762
700
|
errorCode
|
|
763
701
|
});
|
|
764
702
|
}
|
|
765
|
-
}, "
|
|
703
|
+
}, "de_CommandError");
|
|
766
704
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(TranscribeStreamingServiceException);
|
|
767
705
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
768
706
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -86,7 +86,7 @@ export const se_StartStreamTranscriptionCommand = async (input, context) => {
|
|
|
86
86
|
};
|
|
87
87
|
export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
|
|
88
88
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
89
|
-
return
|
|
89
|
+
return de_CommandError(output, context);
|
|
90
90
|
}
|
|
91
91
|
const contents = map({
|
|
92
92
|
$metadata: deserializeMetadata(output),
|
|
@@ -109,40 +109,9 @@ export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, co
|
|
|
109
109
|
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
110
110
|
return contents;
|
|
111
111
|
};
|
|
112
|
-
const de_StartCallAnalyticsStreamTranscriptionCommandError = async (output, context) => {
|
|
113
|
-
const parsedOutput = {
|
|
114
|
-
...output,
|
|
115
|
-
body: await parseErrorBody(output.body, context),
|
|
116
|
-
};
|
|
117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
118
|
-
switch (errorCode) {
|
|
119
|
-
case "BadRequestException":
|
|
120
|
-
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
121
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
122
|
-
case "ConflictException":
|
|
123
|
-
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
124
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
125
|
-
case "InternalFailureException":
|
|
126
|
-
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
127
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
128
|
-
case "LimitExceededException":
|
|
129
|
-
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
130
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
131
|
-
case "ServiceUnavailableException":
|
|
132
|
-
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
133
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
134
|
-
default:
|
|
135
|
-
const parsedBody = parsedOutput.body;
|
|
136
|
-
return throwDefaultError({
|
|
137
|
-
output,
|
|
138
|
-
parsedBody,
|
|
139
|
-
errorCode,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
112
|
export const de_StartMedicalStreamTranscriptionCommand = async (output, context) => {
|
|
144
113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
145
|
-
return
|
|
114
|
+
return de_CommandError(output, context);
|
|
146
115
|
}
|
|
147
116
|
const contents = map({
|
|
148
117
|
$metadata: deserializeMetadata(output),
|
|
@@ -163,40 +132,9 @@ export const de_StartMedicalStreamTranscriptionCommand = async (output, context)
|
|
|
163
132
|
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
164
133
|
return contents;
|
|
165
134
|
};
|
|
166
|
-
const de_StartMedicalStreamTranscriptionCommandError = async (output, context) => {
|
|
167
|
-
const parsedOutput = {
|
|
168
|
-
...output,
|
|
169
|
-
body: await parseErrorBody(output.body, context),
|
|
170
|
-
};
|
|
171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
172
|
-
switch (errorCode) {
|
|
173
|
-
case "BadRequestException":
|
|
174
|
-
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
175
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
176
|
-
case "ConflictException":
|
|
177
|
-
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
178
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
179
|
-
case "InternalFailureException":
|
|
180
|
-
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
181
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
182
|
-
case "LimitExceededException":
|
|
183
|
-
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
184
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
185
|
-
case "ServiceUnavailableException":
|
|
186
|
-
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
187
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
188
|
-
default:
|
|
189
|
-
const parsedBody = parsedOutput.body;
|
|
190
|
-
return throwDefaultError({
|
|
191
|
-
output,
|
|
192
|
-
parsedBody,
|
|
193
|
-
errorCode,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
135
|
export const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
198
136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
199
|
-
return
|
|
137
|
+
return de_CommandError(output, context);
|
|
200
138
|
}
|
|
201
139
|
const contents = map({
|
|
202
140
|
$metadata: deserializeMetadata(output),
|
|
@@ -228,7 +166,7 @@ export const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
|
228
166
|
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
229
167
|
return contents;
|
|
230
168
|
};
|
|
231
|
-
const
|
|
169
|
+
const de_CommandError = async (output, context) => {
|
|
232
170
|
const parsedOutput = {
|
|
233
171
|
...output,
|
|
234
172
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transcribe-streaming",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-transcribe-streaming",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
25
25
|
"@aws-sdk/core": "3.496.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
27
27
|
"@aws-sdk/eventstream-handler-node": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-eventstream": "3.502.0",
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.502.0",
|