@aws-sdk/client-transcribe-streaming 3.30.0 → 3.34.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 +38 -0
- package/TranscribeStreaming.ts +3 -2
- package/commands/StartStreamTranscriptionCommand.ts +3 -2
- package/dist/cjs/TranscribeStreaming.js.map +1 -1
- package/dist/cjs/TranscribeStreamingClient.js +17 -17
- package/dist/cjs/TranscribeStreamingClient.js.map +1 -1
- package/dist/cjs/commands/StartMedicalStreamTranscriptionCommand.js +4 -4
- package/dist/cjs/commands/StartMedicalStreamTranscriptionCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamTranscriptionCommand.js +7 -6
- package/dist/cjs/commands/StartStreamTranscriptionCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +23 -2
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +18 -1
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +47 -47
- package/dist/cjs/protocols/Aws_restJson1.js +94 -50
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/test/index.integ.spec.js +1 -1
- package/dist/cjs/test/index.integ.spec.js.map +1 -1
- package/dist/es/TranscribeStreaming.js +1 -4
- package/dist/es/TranscribeStreaming.js.map +1 -1
- package/dist/es/TranscribeStreamingClient.js +1 -9
- package/dist/es/TranscribeStreamingClient.js.map +1 -1
- package/dist/es/commands/StartMedicalStreamTranscriptionCommand.js +2 -28
- package/dist/es/commands/StartMedicalStreamTranscriptionCommand.js.map +1 -1
- package/dist/es/commands/StartStreamTranscriptionCommand.js +2 -43
- package/dist/es/commands/StartStreamTranscriptionCommand.js.map +1 -1
- package/dist/es/endpoints.js +23 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +12 -72
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +47 -47
- package/dist/es/protocols/Aws_restJson1.js +157 -121
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/TranscribeStreaming.d.ts +3 -2
- package/dist/types/commands/StartStreamTranscriptionCommand.d.ts +3 -2
- package/dist/types/models/models_0.d.ts +98 -17
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/TranscribeStreaming.d.ts +3 -2
- package/dist/types/ts3.4/commands/StartStreamTranscriptionCommand.d.ts +3 -2
- package/dist/types/ts3.4/models/models_0.d.ts +98 -17
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/endpoints.ts +22 -1
- package/models/models_0.ts +116 -17
- package/package.json +47 -47
- package/protocols/Aws_restJson1.ts +48 -0
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
AudioStream,
|
|
13
13
|
BadRequestException,
|
|
14
14
|
ConflictException,
|
|
15
|
+
Entity,
|
|
15
16
|
InternalFailureException,
|
|
16
17
|
Item,
|
|
17
18
|
LimitExceededException,
|
|
@@ -131,6 +132,15 @@ export const serializeAws_restJson1StartStreamTranscriptionCommand = async (
|
|
|
131
132
|
...(isSerializableHeaderValue(input.PartialResultsStability) && {
|
|
132
133
|
"x-amzn-transcribe-partial-results-stability": input.PartialResultsStability!,
|
|
133
134
|
}),
|
|
135
|
+
...(isSerializableHeaderValue(input.ContentIdentificationType) && {
|
|
136
|
+
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType!,
|
|
137
|
+
}),
|
|
138
|
+
...(isSerializableHeaderValue(input.ContentRedactionType) && {
|
|
139
|
+
"x-amzn-transcribe-content-redaction-type": input.ContentRedactionType!,
|
|
140
|
+
}),
|
|
141
|
+
...(isSerializableHeaderValue(input.PiiEntityTypes) && {
|
|
142
|
+
"x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes!,
|
|
143
|
+
}),
|
|
134
144
|
};
|
|
135
145
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
|
|
136
146
|
let body: any;
|
|
@@ -308,6 +318,8 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async (
|
|
|
308
318
|
}
|
|
309
319
|
const contents: StartStreamTranscriptionCommandOutput = {
|
|
310
320
|
$metadata: deserializeMetadata(output),
|
|
321
|
+
ContentIdentificationType: undefined,
|
|
322
|
+
ContentRedactionType: undefined,
|
|
311
323
|
EnableChannelIdentification: undefined,
|
|
312
324
|
EnablePartialResultsStabilization: undefined,
|
|
313
325
|
LanguageCode: undefined,
|
|
@@ -315,6 +327,7 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async (
|
|
|
315
327
|
MediaSampleRateHertz: undefined,
|
|
316
328
|
NumberOfChannels: undefined,
|
|
317
329
|
PartialResultsStability: undefined,
|
|
330
|
+
PiiEntityTypes: undefined,
|
|
318
331
|
RequestId: undefined,
|
|
319
332
|
SessionId: undefined,
|
|
320
333
|
ShowSpeakerLabel: undefined,
|
|
@@ -366,6 +379,15 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async (
|
|
|
366
379
|
if (output.headers["x-amzn-transcribe-partial-results-stability"] !== undefined) {
|
|
367
380
|
contents.PartialResultsStability = output.headers["x-amzn-transcribe-partial-results-stability"];
|
|
368
381
|
}
|
|
382
|
+
if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
|
|
383
|
+
contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
|
|
384
|
+
}
|
|
385
|
+
if (output.headers["x-amzn-transcribe-content-redaction-type"] !== undefined) {
|
|
386
|
+
contents.ContentRedactionType = output.headers["x-amzn-transcribe-content-redaction-type"];
|
|
387
|
+
}
|
|
388
|
+
if (output.headers["x-amzn-transcribe-pii-entity-types"] !== undefined) {
|
|
389
|
+
contents.PiiEntityTypes = output.headers["x-amzn-transcribe-pii-entity-types"];
|
|
390
|
+
}
|
|
369
391
|
const data: any = context.eventStreamMarshaller.deserialize(output.body, async (event) => {
|
|
370
392
|
const eventName = Object.keys(event)[0];
|
|
371
393
|
const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
|
|
@@ -742,6 +764,10 @@ const serializeAws_restJson1AudioStream = (input: AudioStream, context: __SerdeC
|
|
|
742
764
|
|
|
743
765
|
const deserializeAws_restJson1Alternative = (output: any, context: __SerdeContext): Alternative => {
|
|
744
766
|
return {
|
|
767
|
+
Entities:
|
|
768
|
+
output.Entities !== undefined && output.Entities !== null
|
|
769
|
+
? deserializeAws_restJson1EntityList(output.Entities, context)
|
|
770
|
+
: undefined,
|
|
745
771
|
Items:
|
|
746
772
|
output.Items !== undefined && output.Items !== null
|
|
747
773
|
? deserializeAws_restJson1ItemList(output.Items, context)
|
|
@@ -773,6 +799,28 @@ const deserializeAws_restJson1ConflictException = (output: any, context: __Serde
|
|
|
773
799
|
} as any;
|
|
774
800
|
};
|
|
775
801
|
|
|
802
|
+
const deserializeAws_restJson1Entity = (output: any, context: __SerdeContext): Entity => {
|
|
803
|
+
return {
|
|
804
|
+
Category: __expectString(output.Category),
|
|
805
|
+
Confidence: __limitedParseDouble(output.Confidence),
|
|
806
|
+
Content: __expectString(output.Content),
|
|
807
|
+
EndTime: __limitedParseDouble(output.EndTime),
|
|
808
|
+
StartTime: __limitedParseDouble(output.StartTime),
|
|
809
|
+
Type: __expectString(output.Type),
|
|
810
|
+
} as any;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
const deserializeAws_restJson1EntityList = (output: any, context: __SerdeContext): Entity[] => {
|
|
814
|
+
return (output || [])
|
|
815
|
+
.filter((e: any) => e != null)
|
|
816
|
+
.map((entry: any) => {
|
|
817
|
+
if (entry === null) {
|
|
818
|
+
return null as any;
|
|
819
|
+
}
|
|
820
|
+
return deserializeAws_restJson1Entity(entry, context);
|
|
821
|
+
});
|
|
822
|
+
};
|
|
823
|
+
|
|
776
824
|
const deserializeAws_restJson1InternalFailureException = (
|
|
777
825
|
output: any,
|
|
778
826
|
context: __SerdeContext
|
package/tsconfig.es.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"alwaysStrict": true,
|
|
4
4
|
"target": "ES2018",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"declaration": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"sourceMap": true,
|
|
9
8
|
"downlevelIteration": true,
|
|
@@ -12,9 +11,8 @@
|
|
|
12
11
|
"incremental": true,
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
13
|
"esModuleInterop": true,
|
|
15
|
-
"declarationDir": "./dist/types",
|
|
16
14
|
"outDir": "dist/cjs",
|
|
17
|
-
"
|
|
15
|
+
"removeComments": true
|
|
18
16
|
},
|
|
19
17
|
"typedocOptions": {
|
|
20
18
|
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
@@ -24,9 +22,9 @@
|
|
|
24
22
|
"ignoreCompilerErrors": true,
|
|
25
23
|
"includeDeclarations": true,
|
|
26
24
|
"stripInternal": true,
|
|
27
|
-
"readme": "
|
|
25
|
+
"readme": "README.md",
|
|
28
26
|
"mode": "file",
|
|
29
|
-
"out": "
|
|
27
|
+
"out": "docs",
|
|
30
28
|
"theme": "minimal",
|
|
31
29
|
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
32
30
|
}
|