@aws-sdk/client-transcribe-streaming
Advanced tools
Comparing version 3.19.0 to 3.20.0
{ | ||
"name": "@aws-sdk/client-transcribe-streaming", | ||
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native", | ||
"version": "3.19.0", | ||
"version": "3.20.0", | ||
"scripts": { | ||
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"build-documentation": "yarn remove-documentation && typedoc ./", | ||
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4", | ||
"pretest": "yarn build", | ||
@@ -18,3 +17,4 @@ "remove-definitions": "rimraf ./types", | ||
"build": "yarn build:cjs && yarn build:es", | ||
"postbuild": "cp test/speech.wav dist/cjs/test" | ||
"postbuild": "cp test/speech.wav dist/cjs/test", | ||
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4" | ||
}, | ||
@@ -34,40 +34,40 @@ "main": "./dist/cjs/index.js", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.19.0", | ||
"@aws-sdk/config-resolver": "3.19.0", | ||
"@aws-sdk/credential-provider-node": "3.19.0", | ||
"@aws-sdk/eventstream-handler-node": "3.18.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.18.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.18.0", | ||
"@aws-sdk/eventstream-serde-node": "3.18.0", | ||
"@aws-sdk/fetch-http-handler": "3.18.0", | ||
"@aws-sdk/hash-node": "3.18.0", | ||
"@aws-sdk/invalid-dependency": "3.18.0", | ||
"@aws-sdk/middleware-content-length": "3.18.0", | ||
"@aws-sdk/middleware-eventstream": "3.18.0", | ||
"@aws-sdk/middleware-host-header": "3.18.0", | ||
"@aws-sdk/middleware-logger": "3.18.0", | ||
"@aws-sdk/middleware-retry": "3.19.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.19.0", | ||
"@aws-sdk/middleware-serde": "3.18.0", | ||
"@aws-sdk/middleware-signing": "3.19.0", | ||
"@aws-sdk/middleware-stack": "3.18.0", | ||
"@aws-sdk/middleware-user-agent": "3.18.0", | ||
"@aws-sdk/node-config-provider": "3.19.0", | ||
"@aws-sdk/node-http-handler": "3.18.0", | ||
"@aws-sdk/protocol-http": "3.18.0", | ||
"@aws-sdk/smithy-client": "3.19.0", | ||
"@aws-sdk/types": "3.18.0", | ||
"@aws-sdk/url-parser": "3.18.0", | ||
"@aws-sdk/util-base64-browser": "3.18.0", | ||
"@aws-sdk/util-base64-node": "3.18.0", | ||
"@aws-sdk/util-body-length-browser": "3.18.0", | ||
"@aws-sdk/util-body-length-node": "3.18.0", | ||
"@aws-sdk/util-user-agent-browser": "3.18.0", | ||
"@aws-sdk/util-user-agent-node": "3.19.0", | ||
"@aws-sdk/util-utf8-browser": "3.18.0", | ||
"@aws-sdk/util-utf8-node": "3.18.0", | ||
"@aws-sdk/client-sts": "3.20.0", | ||
"@aws-sdk/config-resolver": "3.20.0", | ||
"@aws-sdk/credential-provider-node": "3.20.0", | ||
"@aws-sdk/eventstream-handler-node": "3.20.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.20.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.20.0", | ||
"@aws-sdk/eventstream-serde-node": "3.20.0", | ||
"@aws-sdk/fetch-http-handler": "3.20.0", | ||
"@aws-sdk/hash-node": "3.20.0", | ||
"@aws-sdk/invalid-dependency": "3.20.0", | ||
"@aws-sdk/middleware-content-length": "3.20.0", | ||
"@aws-sdk/middleware-eventstream": "3.20.0", | ||
"@aws-sdk/middleware-host-header": "3.20.0", | ||
"@aws-sdk/middleware-logger": "3.20.0", | ||
"@aws-sdk/middleware-retry": "3.20.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.20.0", | ||
"@aws-sdk/middleware-serde": "3.20.0", | ||
"@aws-sdk/middleware-signing": "3.20.0", | ||
"@aws-sdk/middleware-stack": "3.20.0", | ||
"@aws-sdk/middleware-user-agent": "3.20.0", | ||
"@aws-sdk/node-config-provider": "3.20.0", | ||
"@aws-sdk/node-http-handler": "3.20.0", | ||
"@aws-sdk/protocol-http": "3.20.0", | ||
"@aws-sdk/smithy-client": "3.20.0", | ||
"@aws-sdk/types": "3.20.0", | ||
"@aws-sdk/url-parser": "3.20.0", | ||
"@aws-sdk/util-base64-browser": "3.20.0", | ||
"@aws-sdk/util-base64-node": "3.20.0", | ||
"@aws-sdk/util-body-length-browser": "3.20.0", | ||
"@aws-sdk/util-body-length-node": "3.20.0", | ||
"@aws-sdk/util-user-agent-browser": "3.20.0", | ||
"@aws-sdk/util-user-agent-node": "3.20.0", | ||
"@aws-sdk/util-utf8-browser": "3.20.0", | ||
"@aws-sdk/util-utf8-node": "3.20.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.18.0", | ||
"@aws-sdk/client-documentation-generator": "3.20.0", | ||
"@types/node": "^12.7.5", | ||
@@ -74,0 +74,0 @@ "downlevel-dts": "0.7.0", |
@@ -6,3 +6,5 @@ "use strict"; | ||
const protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
const smithy_client_1 = require("@aws-sdk/smithy-client"); | ||
const serializeAws_restJson1StartMedicalStreamTranscriptionCommand = async (input, context) => { | ||
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); | ||
const headers = { | ||
@@ -33,3 +35,3 @@ ...(isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode }), | ||
}; | ||
let resolvedPath = "/medical-stream-transcription"; | ||
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription"; | ||
let body; | ||
@@ -39,3 +41,2 @@ if (input.AudioStream !== undefined) { | ||
} | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
@@ -53,2 +54,3 @@ protocol, | ||
const serializeAws_restJson1StartStreamTranscriptionCommand = async (input, context) => { | ||
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); | ||
const headers = { | ||
@@ -86,3 +88,3 @@ ...(isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode }), | ||
}; | ||
let resolvedPath = "/stream-transcription"; | ||
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription"; | ||
let body; | ||
@@ -92,3 +94,2 @@ if (input.AudioStream !== undefined) { | ||
} | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
@@ -147,3 +148,3 @@ protocol, | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
@@ -154,3 +155,3 @@ if (output.headers["x-amzn-transcribe-session-id"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]); | ||
} | ||
@@ -293,6 +294,6 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]); | ||
} | ||
@@ -303,4 +304,3 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] !== undefined) { | ||
contents.EnablePartialResultsStabilization = | ||
output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] === "true"; | ||
contents.EnablePartialResultsStabilization = smithy_client_1.parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]); | ||
} | ||
@@ -539,3 +539,3 @@ if (output.headers["x-amzn-transcribe-partial-results-stability"] !== undefined) { | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = smithy_client_1.expectString(data.Message); | ||
} | ||
@@ -553,3 +553,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = smithy_client_1.expectString(data.Message); | ||
} | ||
@@ -567,3 +567,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = smithy_client_1.expectString(data.Message); | ||
} | ||
@@ -581,3 +581,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = smithy_client_1.expectString(data.Message); | ||
} | ||
@@ -595,3 +595,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = smithy_client_1.expectString(data.Message); | ||
} | ||
@@ -617,3 +617,3 @@ return contents; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: smithy_client_1.expectString(output.Transcript), | ||
}; | ||
@@ -633,3 +633,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: smithy_client_1.expectString(output.Message), | ||
}; | ||
@@ -639,3 +639,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: smithy_client_1.expectString(output.Message), | ||
}; | ||
@@ -645,3 +645,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: smithy_client_1.expectString(output.Message), | ||
}; | ||
@@ -651,12 +651,10 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
Stable: output.Stable !== undefined && output.Stable !== null ? output.Stable : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
VocabularyFilterMatch: output.VocabularyFilterMatch !== undefined && output.VocabularyFilterMatch !== null | ||
? output.VocabularyFilterMatch | ||
: undefined, | ||
Confidence: smithy_client_1.handleFloat(output.Confidence), | ||
Content: smithy_client_1.expectString(output.Content), | ||
EndTime: smithy_client_1.handleFloat(output.EndTime), | ||
Speaker: smithy_client_1.expectString(output.Speaker), | ||
Stable: smithy_client_1.expectBoolean(output.Stable), | ||
StartTime: smithy_client_1.handleFloat(output.StartTime), | ||
Type: smithy_client_1.expectString(output.Type), | ||
VocabularyFilterMatch: smithy_client_1.expectBoolean(output.VocabularyFilterMatch), | ||
}; | ||
@@ -676,3 +674,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: smithy_client_1.expectString(output.Message), | ||
}; | ||
@@ -688,3 +686,3 @@ }; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: smithy_client_1.expectString(output.Transcript), | ||
}; | ||
@@ -704,7 +702,7 @@ }; | ||
return { | ||
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined, | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Category: smithy_client_1.expectString(output.Category), | ||
Confidence: smithy_client_1.handleFloat(output.Confidence), | ||
Content: smithy_client_1.expectString(output.Content), | ||
EndTime: smithy_client_1.handleFloat(output.EndTime), | ||
StartTime: smithy_client_1.handleFloat(output.StartTime), | ||
}; | ||
@@ -724,8 +722,8 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
Confidence: smithy_client_1.handleFloat(output.Confidence), | ||
Content: smithy_client_1.expectString(output.Content), | ||
EndTime: smithy_client_1.handleFloat(output.EndTime), | ||
Speaker: smithy_client_1.expectString(output.Speaker), | ||
StartTime: smithy_client_1.handleFloat(output.StartTime), | ||
Type: smithy_client_1.expectString(output.Type), | ||
}; | ||
@@ -748,7 +746,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: smithy_client_1.expectString(output.ChannelId), | ||
EndTime: smithy_client_1.handleFloat(output.EndTime), | ||
IsPartial: smithy_client_1.expectBoolean(output.IsPartial), | ||
ResultId: smithy_client_1.expectString(output.ResultId), | ||
StartTime: smithy_client_1.handleFloat(output.StartTime), | ||
}; | ||
@@ -818,7 +816,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: smithy_client_1.expectString(output.ChannelId), | ||
EndTime: smithy_client_1.handleFloat(output.EndTime), | ||
IsPartial: smithy_client_1.expectBoolean(output.IsPartial), | ||
ResultId: smithy_client_1.expectString(output.ResultId), | ||
StartTime: smithy_client_1.handleFloat(output.StartTime), | ||
}; | ||
@@ -838,3 +836,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: smithy_client_1.expectString(output.Message), | ||
}; | ||
@@ -841,0 +839,0 @@ }; |
{ | ||
"name": "@aws-sdk/client-transcribe-streaming", | ||
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native", | ||
"version": "3.19.0", | ||
"version": "3.20.0", | ||
"scripts": { | ||
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"build-documentation": "yarn remove-documentation && typedoc ./", | ||
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4", | ||
"pretest": "yarn build", | ||
@@ -18,3 +17,4 @@ "remove-definitions": "rimraf ./types", | ||
"build": "yarn build:cjs && yarn build:es", | ||
"postbuild": "cp test/speech.wav dist/cjs/test" | ||
"postbuild": "cp test/speech.wav dist/cjs/test", | ||
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4" | ||
}, | ||
@@ -34,40 +34,40 @@ "main": "./dist/cjs/index.js", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.19.0", | ||
"@aws-sdk/config-resolver": "3.19.0", | ||
"@aws-sdk/credential-provider-node": "3.19.0", | ||
"@aws-sdk/eventstream-handler-node": "3.18.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.18.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.18.0", | ||
"@aws-sdk/eventstream-serde-node": "3.18.0", | ||
"@aws-sdk/fetch-http-handler": "3.18.0", | ||
"@aws-sdk/hash-node": "3.18.0", | ||
"@aws-sdk/invalid-dependency": "3.18.0", | ||
"@aws-sdk/middleware-content-length": "3.18.0", | ||
"@aws-sdk/middleware-eventstream": "3.18.0", | ||
"@aws-sdk/middleware-host-header": "3.18.0", | ||
"@aws-sdk/middleware-logger": "3.18.0", | ||
"@aws-sdk/middleware-retry": "3.19.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.19.0", | ||
"@aws-sdk/middleware-serde": "3.18.0", | ||
"@aws-sdk/middleware-signing": "3.19.0", | ||
"@aws-sdk/middleware-stack": "3.18.0", | ||
"@aws-sdk/middleware-user-agent": "3.18.0", | ||
"@aws-sdk/node-config-provider": "3.19.0", | ||
"@aws-sdk/node-http-handler": "3.18.0", | ||
"@aws-sdk/protocol-http": "3.18.0", | ||
"@aws-sdk/smithy-client": "3.19.0", | ||
"@aws-sdk/types": "3.18.0", | ||
"@aws-sdk/url-parser": "3.18.0", | ||
"@aws-sdk/util-base64-browser": "3.18.0", | ||
"@aws-sdk/util-base64-node": "3.18.0", | ||
"@aws-sdk/util-body-length-browser": "3.18.0", | ||
"@aws-sdk/util-body-length-node": "3.18.0", | ||
"@aws-sdk/util-user-agent-browser": "3.18.0", | ||
"@aws-sdk/util-user-agent-node": "3.19.0", | ||
"@aws-sdk/util-utf8-browser": "3.18.0", | ||
"@aws-sdk/util-utf8-node": "3.18.0", | ||
"@aws-sdk/client-sts": "3.20.0", | ||
"@aws-sdk/config-resolver": "3.20.0", | ||
"@aws-sdk/credential-provider-node": "3.20.0", | ||
"@aws-sdk/eventstream-handler-node": "3.20.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.20.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.20.0", | ||
"@aws-sdk/eventstream-serde-node": "3.20.0", | ||
"@aws-sdk/fetch-http-handler": "3.20.0", | ||
"@aws-sdk/hash-node": "3.20.0", | ||
"@aws-sdk/invalid-dependency": "3.20.0", | ||
"@aws-sdk/middleware-content-length": "3.20.0", | ||
"@aws-sdk/middleware-eventstream": "3.20.0", | ||
"@aws-sdk/middleware-host-header": "3.20.0", | ||
"@aws-sdk/middleware-logger": "3.20.0", | ||
"@aws-sdk/middleware-retry": "3.20.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.20.0", | ||
"@aws-sdk/middleware-serde": "3.20.0", | ||
"@aws-sdk/middleware-signing": "3.20.0", | ||
"@aws-sdk/middleware-stack": "3.20.0", | ||
"@aws-sdk/middleware-user-agent": "3.20.0", | ||
"@aws-sdk/node-config-provider": "3.20.0", | ||
"@aws-sdk/node-http-handler": "3.20.0", | ||
"@aws-sdk/protocol-http": "3.20.0", | ||
"@aws-sdk/smithy-client": "3.20.0", | ||
"@aws-sdk/types": "3.20.0", | ||
"@aws-sdk/url-parser": "3.20.0", | ||
"@aws-sdk/util-base64-browser": "3.20.0", | ||
"@aws-sdk/util-base64-node": "3.20.0", | ||
"@aws-sdk/util-body-length-browser": "3.20.0", | ||
"@aws-sdk/util-body-length-node": "3.20.0", | ||
"@aws-sdk/util-user-agent-browser": "3.20.0", | ||
"@aws-sdk/util-user-agent-node": "3.20.0", | ||
"@aws-sdk/util-utf8-browser": "3.20.0", | ||
"@aws-sdk/util-utf8-node": "3.20.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.18.0", | ||
"@aws-sdk/client-documentation-generator": "3.20.0", | ||
"@types/node": "^12.7.5", | ||
@@ -74,0 +74,0 @@ "downlevel-dts": "0.7.0", |
import { __assign, __awaiter, __generator } from "tslib"; | ||
import { AudioStream, } from "../models/models_0"; | ||
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http"; | ||
import { expectBoolean as __expectBoolean, expectString as __expectString, handleFloat as __handleFloat, parseBoolean as __parseBoolean, } from "@aws-sdk/smithy-client"; | ||
export var serializeAws_restJson1StartMedicalStreamTranscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, body, _a, hostname, _b, protocol, port; | ||
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
case 0: return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path; | ||
headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && { | ||
@@ -22,3 +25,3 @@ "x-amzn-transcribe-sample-rate": input.MediaSampleRateHertz.toString(), | ||
})); | ||
resolvedPath = "/medical-stream-transcription"; | ||
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/medical-stream-transcription"; | ||
if (input.AudioStream !== undefined) { | ||
@@ -29,5 +32,2 @@ body = context.eventStreamMarshaller.serialize(input.AudioStream, function (event) { | ||
} | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
@@ -46,6 +46,8 @@ protocol: protocol, | ||
export var serializeAws_restJson1StartStreamTranscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, body, _a, hostname, _b, protocol, port; | ||
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
case 0: return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path; | ||
headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && { | ||
@@ -70,3 +72,3 @@ "x-amzn-transcribe-sample-rate": input.MediaSampleRateHertz.toString(), | ||
})); | ||
resolvedPath = "/stream-transcription"; | ||
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stream-transcription"; | ||
if (input.AudioStream !== undefined) { | ||
@@ -77,5 +79,2 @@ body = context.eventStreamMarshaller.serialize(input.AudioStream, function (event) { | ||
} | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
@@ -137,3 +136,3 @@ protocol: protocol, | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
@@ -144,3 +143,3 @@ if (output.headers["x-amzn-transcribe-session-id"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = __parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]); | ||
} | ||
@@ -298,6 +297,6 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = __parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]); | ||
} | ||
@@ -308,4 +307,3 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] !== undefined) { | ||
contents.EnablePartialResultsStabilization = | ||
output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] === "true"; | ||
contents.EnablePartialResultsStabilization = __parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]); | ||
} | ||
@@ -631,3 +629,3 @@ if (output.headers["x-amzn-transcribe-partial-results-stability"] !== undefined) { | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -648,3 +646,3 @@ return [2 /*return*/, contents]; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -665,3 +663,3 @@ return [2 /*return*/, contents]; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -682,3 +680,3 @@ return [2 /*return*/, contents]; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -699,3 +697,3 @@ return [2 /*return*/, contents]; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -720,3 +718,3 @@ return [2 /*return*/, contents]; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: __expectString(output.Transcript), | ||
}; | ||
@@ -736,3 +734,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
}; | ||
@@ -742,3 +740,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
}; | ||
@@ -748,3 +746,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
}; | ||
@@ -754,12 +752,10 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
Stable: output.Stable !== undefined && output.Stable !== null ? output.Stable : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
VocabularyFilterMatch: output.VocabularyFilterMatch !== undefined && output.VocabularyFilterMatch !== null | ||
? output.VocabularyFilterMatch | ||
: undefined, | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
Speaker: __expectString(output.Speaker), | ||
Stable: __expectBoolean(output.Stable), | ||
StartTime: __handleFloat(output.StartTime), | ||
Type: __expectString(output.Type), | ||
VocabularyFilterMatch: __expectBoolean(output.VocabularyFilterMatch), | ||
}; | ||
@@ -779,3 +775,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
}; | ||
@@ -791,3 +787,3 @@ }; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: __expectString(output.Transcript), | ||
}; | ||
@@ -807,7 +803,7 @@ }; | ||
return { | ||
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined, | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Category: __expectString(output.Category), | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
StartTime: __handleFloat(output.StartTime), | ||
}; | ||
@@ -827,8 +823,8 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
Speaker: __expectString(output.Speaker), | ||
StartTime: __handleFloat(output.StartTime), | ||
Type: __expectString(output.Type), | ||
}; | ||
@@ -851,7 +847,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: __expectString(output.ChannelId), | ||
EndTime: __handleFloat(output.EndTime), | ||
IsPartial: __expectBoolean(output.IsPartial), | ||
ResultId: __expectString(output.ResultId), | ||
StartTime: __handleFloat(output.StartTime), | ||
}; | ||
@@ -921,7 +917,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: __expectString(output.ChannelId), | ||
EndTime: __handleFloat(output.EndTime), | ||
IsPartial: __expectBoolean(output.IsPartial), | ||
ResultId: __expectString(output.ResultId), | ||
StartTime: __handleFloat(output.StartTime), | ||
}; | ||
@@ -941,3 +937,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
}; | ||
@@ -944,0 +940,0 @@ }; |
{ | ||
"name": "@aws-sdk/client-transcribe-streaming", | ||
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native", | ||
"version": "3.19.0", | ||
"version": "3.20.0", | ||
"scripts": { | ||
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"build-documentation": "yarn remove-documentation && typedoc ./", | ||
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4", | ||
"pretest": "yarn build", | ||
@@ -18,3 +17,4 @@ "remove-definitions": "rimraf ./types", | ||
"build": "yarn build:cjs && yarn build:es", | ||
"postbuild": "cp test/speech.wav dist/cjs/test" | ||
"postbuild": "cp test/speech.wav dist/cjs/test", | ||
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4" | ||
}, | ||
@@ -34,40 +34,40 @@ "main": "./dist/cjs/index.js", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.19.0", | ||
"@aws-sdk/config-resolver": "3.19.0", | ||
"@aws-sdk/credential-provider-node": "3.19.0", | ||
"@aws-sdk/eventstream-handler-node": "3.18.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.18.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.18.0", | ||
"@aws-sdk/eventstream-serde-node": "3.18.0", | ||
"@aws-sdk/fetch-http-handler": "3.18.0", | ||
"@aws-sdk/hash-node": "3.18.0", | ||
"@aws-sdk/invalid-dependency": "3.18.0", | ||
"@aws-sdk/middleware-content-length": "3.18.0", | ||
"@aws-sdk/middleware-eventstream": "3.18.0", | ||
"@aws-sdk/middleware-host-header": "3.18.0", | ||
"@aws-sdk/middleware-logger": "3.18.0", | ||
"@aws-sdk/middleware-retry": "3.19.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.19.0", | ||
"@aws-sdk/middleware-serde": "3.18.0", | ||
"@aws-sdk/middleware-signing": "3.19.0", | ||
"@aws-sdk/middleware-stack": "3.18.0", | ||
"@aws-sdk/middleware-user-agent": "3.18.0", | ||
"@aws-sdk/node-config-provider": "3.19.0", | ||
"@aws-sdk/node-http-handler": "3.18.0", | ||
"@aws-sdk/protocol-http": "3.18.0", | ||
"@aws-sdk/smithy-client": "3.19.0", | ||
"@aws-sdk/types": "3.18.0", | ||
"@aws-sdk/url-parser": "3.18.0", | ||
"@aws-sdk/util-base64-browser": "3.18.0", | ||
"@aws-sdk/util-base64-node": "3.18.0", | ||
"@aws-sdk/util-body-length-browser": "3.18.0", | ||
"@aws-sdk/util-body-length-node": "3.18.0", | ||
"@aws-sdk/util-user-agent-browser": "3.18.0", | ||
"@aws-sdk/util-user-agent-node": "3.19.0", | ||
"@aws-sdk/util-utf8-browser": "3.18.0", | ||
"@aws-sdk/util-utf8-node": "3.18.0", | ||
"@aws-sdk/client-sts": "3.20.0", | ||
"@aws-sdk/config-resolver": "3.20.0", | ||
"@aws-sdk/credential-provider-node": "3.20.0", | ||
"@aws-sdk/eventstream-handler-node": "3.20.0", | ||
"@aws-sdk/eventstream-serde-browser": "3.20.0", | ||
"@aws-sdk/eventstream-serde-config-resolver": "3.20.0", | ||
"@aws-sdk/eventstream-serde-node": "3.20.0", | ||
"@aws-sdk/fetch-http-handler": "3.20.0", | ||
"@aws-sdk/hash-node": "3.20.0", | ||
"@aws-sdk/invalid-dependency": "3.20.0", | ||
"@aws-sdk/middleware-content-length": "3.20.0", | ||
"@aws-sdk/middleware-eventstream": "3.20.0", | ||
"@aws-sdk/middleware-host-header": "3.20.0", | ||
"@aws-sdk/middleware-logger": "3.20.0", | ||
"@aws-sdk/middleware-retry": "3.20.0", | ||
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.20.0", | ||
"@aws-sdk/middleware-serde": "3.20.0", | ||
"@aws-sdk/middleware-signing": "3.20.0", | ||
"@aws-sdk/middleware-stack": "3.20.0", | ||
"@aws-sdk/middleware-user-agent": "3.20.0", | ||
"@aws-sdk/node-config-provider": "3.20.0", | ||
"@aws-sdk/node-http-handler": "3.20.0", | ||
"@aws-sdk/protocol-http": "3.20.0", | ||
"@aws-sdk/smithy-client": "3.20.0", | ||
"@aws-sdk/types": "3.20.0", | ||
"@aws-sdk/url-parser": "3.20.0", | ||
"@aws-sdk/util-base64-browser": "3.20.0", | ||
"@aws-sdk/util-base64-node": "3.20.0", | ||
"@aws-sdk/util-body-length-browser": "3.20.0", | ||
"@aws-sdk/util-body-length-node": "3.20.0", | ||
"@aws-sdk/util-user-agent-browser": "3.20.0", | ||
"@aws-sdk/util-user-agent-node": "3.20.0", | ||
"@aws-sdk/util-utf8-browser": "3.20.0", | ||
"@aws-sdk/util-utf8-node": "3.20.0", | ||
"tslib": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.18.0", | ||
"@aws-sdk/client-documentation-generator": "3.20.0", | ||
"@types/node": "^12.7.5", | ||
@@ -74,0 +74,0 @@ "downlevel-dts": "0.7.0", |
@@ -32,4 +32,10 @@ import { | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client"; | ||
import { | ||
SmithyException as __SmithyException, | ||
expectBoolean as __expectBoolean, | ||
expectString as __expectString, | ||
handleFloat as __handleFloat, | ||
parseBoolean as __parseBoolean, | ||
} from "@aws-sdk/smithy-client"; | ||
import { | ||
Endpoint as __Endpoint, | ||
@@ -47,2 +53,3 @@ EventStreamSerdeContext as __EventStreamSerdeContext, | ||
): Promise<__HttpRequest> => { | ||
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); | ||
const headers: any = { | ||
@@ -73,3 +80,4 @@ ...(isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode! }), | ||
}; | ||
let resolvedPath = "/medical-stream-transcription"; | ||
let resolvedPath = | ||
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription"; | ||
let body: any; | ||
@@ -81,3 +89,2 @@ if (input.AudioStream !== undefined) { | ||
} | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
@@ -98,2 +105,3 @@ protocol, | ||
): Promise<__HttpRequest> => { | ||
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); | ||
const headers: any = { | ||
@@ -131,3 +139,3 @@ ...(isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode! }), | ||
}; | ||
let resolvedPath = "/stream-transcription"; | ||
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription"; | ||
let body: any; | ||
@@ -139,3 +147,2 @@ if (input.AudioStream !== undefined) { | ||
} | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
@@ -197,3 +204,3 @@ protocol, | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
@@ -204,3 +211,5 @@ if (output.headers["x-amzn-transcribe-session-id"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = __parseBoolean( | ||
output.headers["x-amzn-transcribe-enable-channel-identification"] | ||
); | ||
} | ||
@@ -350,6 +359,8 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-show-speaker-label"] !== undefined) { | ||
contents.ShowSpeakerLabel = output.headers["x-amzn-transcribe-show-speaker-label"] === "true"; | ||
contents.ShowSpeakerLabel = __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]); | ||
} | ||
if (output.headers["x-amzn-transcribe-enable-channel-identification"] !== undefined) { | ||
contents.EnableChannelIdentification = output.headers["x-amzn-transcribe-enable-channel-identification"] === "true"; | ||
contents.EnableChannelIdentification = __parseBoolean( | ||
output.headers["x-amzn-transcribe-enable-channel-identification"] | ||
); | ||
} | ||
@@ -360,4 +371,5 @@ if (output.headers["x-amzn-transcribe-number-of-channels"] !== undefined) { | ||
if (output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] !== undefined) { | ||
contents.EnablePartialResultsStabilization = | ||
output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] === "true"; | ||
contents.EnablePartialResultsStabilization = __parseBoolean( | ||
output.headers["x-amzn-transcribe-enable-partial-results-stabilization"] | ||
); | ||
} | ||
@@ -654,3 +666,3 @@ if (output.headers["x-amzn-transcribe-partial-results-stability"] !== undefined) { | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -672,3 +684,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -690,3 +702,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -708,3 +720,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -726,3 +738,3 @@ return contents; | ||
if (data.Message !== undefined && data.Message !== null) { | ||
contents.Message = data.Message; | ||
contents.Message = __expectString(data.Message); | ||
} | ||
@@ -752,3 +764,3 @@ return contents; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: __expectString(output.Transcript), | ||
} as any; | ||
@@ -770,3 +782,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
} as any; | ||
@@ -777,3 +789,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
} as any; | ||
@@ -787,3 +799,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
} as any; | ||
@@ -794,13 +806,10 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
Stable: output.Stable !== undefined && output.Stable !== null ? output.Stable : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
VocabularyFilterMatch: | ||
output.VocabularyFilterMatch !== undefined && output.VocabularyFilterMatch !== null | ||
? output.VocabularyFilterMatch | ||
: undefined, | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
Speaker: __expectString(output.Speaker), | ||
Stable: __expectBoolean(output.Stable), | ||
StartTime: __handleFloat(output.StartTime), | ||
Type: __expectString(output.Type), | ||
VocabularyFilterMatch: __expectBoolean(output.VocabularyFilterMatch), | ||
} as any; | ||
@@ -825,3 +834,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
} as any; | ||
@@ -840,3 +849,3 @@ }; | ||
: undefined, | ||
Transcript: output.Transcript !== undefined && output.Transcript !== null ? output.Transcript : undefined, | ||
Transcript: __expectString(output.Transcript), | ||
} as any; | ||
@@ -858,7 +867,7 @@ }; | ||
return { | ||
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined, | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Category: __expectString(output.Category), | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
StartTime: __handleFloat(output.StartTime), | ||
} as any; | ||
@@ -880,8 +889,8 @@ }; | ||
return { | ||
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, | ||
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
Speaker: output.Speaker !== undefined && output.Speaker !== null ? output.Speaker : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, | ||
Confidence: __handleFloat(output.Confidence), | ||
Content: __expectString(output.Content), | ||
EndTime: __handleFloat(output.EndTime), | ||
Speaker: __expectString(output.Speaker), | ||
StartTime: __handleFloat(output.StartTime), | ||
Type: __expectString(output.Type), | ||
} as any; | ||
@@ -907,7 +916,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: __expectString(output.ChannelId), | ||
EndTime: __handleFloat(output.EndTime), | ||
IsPartial: __expectBoolean(output.IsPartial), | ||
ResultId: __expectString(output.ResultId), | ||
StartTime: __handleFloat(output.StartTime), | ||
} as any; | ||
@@ -997,7 +1006,7 @@ }; | ||
: undefined, | ||
ChannelId: output.ChannelId !== undefined && output.ChannelId !== null ? output.ChannelId : undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, | ||
IsPartial: output.IsPartial !== undefined && output.IsPartial !== null ? output.IsPartial : undefined, | ||
ResultId: output.ResultId !== undefined && output.ResultId !== null ? output.ResultId : undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, | ||
ChannelId: __expectString(output.ChannelId), | ||
EndTime: __handleFloat(output.EndTime), | ||
IsPartial: __expectBoolean(output.IsPartial), | ||
ResultId: __expectString(output.ResultId), | ||
StartTime: __handleFloat(output.StartTime), | ||
} as any; | ||
@@ -1022,3 +1031,3 @@ }; | ||
return { | ||
Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, | ||
Message: __expectString(output.Message), | ||
} as any; | ||
@@ -1025,0 +1034,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3110179
105
9390
+ Added@aws-sdk/abort-controller@3.20.0(transitive)
+ Added@aws-sdk/client-sso@3.20.0(transitive)
+ Added@aws-sdk/client-sts@3.20.0(transitive)
+ Added@aws-sdk/config-resolver@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-imds@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.20.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.20.0(transitive)
+ Added@aws-sdk/eventstream-handler-node@3.20.0(transitive)
+ Added@aws-sdk/eventstream-marshaller@3.20.0(transitive)
+ Added@aws-sdk/eventstream-serde-browser@3.20.0(transitive)
+ Added@aws-sdk/eventstream-serde-config-resolver@3.20.0(transitive)
+ Added@aws-sdk/eventstream-serde-node@3.20.0(transitive)
+ Added@aws-sdk/eventstream-serde-universal@3.20.0(transitive)
+ Added@aws-sdk/fetch-http-handler@3.20.0(transitive)
+ Added@aws-sdk/hash-node@3.20.0(transitive)
+ Added@aws-sdk/invalid-dependency@3.20.0(transitive)
+ Added@aws-sdk/is-array-buffer@3.20.0(transitive)
+ Added@aws-sdk/middleware-content-length@3.20.0(transitive)
+ Added@aws-sdk/middleware-eventstream@3.20.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.20.0(transitive)
+ Added@aws-sdk/middleware-logger@3.20.0(transitive)
+ Added@aws-sdk/middleware-retry@3.20.0(transitive)
+ Added@aws-sdk/middleware-sdk-sts@3.20.0(transitive)
+ Added@aws-sdk/middleware-sdk-transcribe-streaming@3.20.0(transitive)
+ Added@aws-sdk/middleware-serde@3.20.0(transitive)
+ Added@aws-sdk/middleware-signing@3.20.0(transitive)
+ Added@aws-sdk/middleware-stack@3.20.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.20.0(transitive)
+ Added@aws-sdk/node-config-provider@3.20.0(transitive)
+ Added@aws-sdk/node-http-handler@3.20.0(transitive)
+ Added@aws-sdk/property-provider@3.20.0(transitive)
+ Added@aws-sdk/protocol-http@3.20.0(transitive)
+ Added@aws-sdk/querystring-builder@3.20.0(transitive)
+ Added@aws-sdk/querystring-parser@3.20.0(transitive)
+ Added@aws-sdk/service-error-classification@3.20.0(transitive)
+ Added@aws-sdk/shared-ini-file-loader@3.20.0(transitive)
+ Added@aws-sdk/signature-v4@3.20.0(transitive)
+ Added@aws-sdk/smithy-client@3.20.0(transitive)
+ Added@aws-sdk/types@3.20.0(transitive)
+ Added@aws-sdk/url-parser@3.20.0(transitive)
+ Added@aws-sdk/util-base64-browser@3.20.0(transitive)
+ Added@aws-sdk/util-base64-node@3.20.0(transitive)
+ Added@aws-sdk/util-body-length-browser@3.20.0(transitive)
+ Added@aws-sdk/util-body-length-node@3.20.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.20.0(transitive)
+ Added@aws-sdk/util-format-url@3.20.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.20.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.20.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.20.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.20.0(transitive)
+ Added@aws-sdk/util-utf8-browser@3.20.0(transitive)
+ Added@aws-sdk/util-utf8-node@3.20.0(transitive)
- Removed@aws-sdk/abort-controller@3.18.0(transitive)
- Removed@aws-sdk/client-sso@3.19.0(transitive)
- Removed@aws-sdk/client-sts@3.19.0(transitive)
- Removed@aws-sdk/config-resolver@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-imds@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.19.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.19.0(transitive)
- Removed@aws-sdk/eventstream-handler-node@3.18.0(transitive)
- Removed@aws-sdk/eventstream-marshaller@3.18.0(transitive)
- Removed@aws-sdk/eventstream-serde-browser@3.18.0(transitive)
- Removed@aws-sdk/eventstream-serde-config-resolver@3.18.0(transitive)
- Removed@aws-sdk/eventstream-serde-node@3.18.0(transitive)
- Removed@aws-sdk/eventstream-serde-universal@3.18.0(transitive)
- Removed@aws-sdk/fetch-http-handler@3.18.0(transitive)
- Removed@aws-sdk/hash-node@3.18.0(transitive)
- Removed@aws-sdk/invalid-dependency@3.18.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.18.0(transitive)
- Removed@aws-sdk/middleware-content-length@3.18.0(transitive)
- Removed@aws-sdk/middleware-eventstream@3.18.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.18.0(transitive)
- Removed@aws-sdk/middleware-logger@3.18.0(transitive)
- Removed@aws-sdk/middleware-retry@3.19.0(transitive)
- Removed@aws-sdk/middleware-sdk-sts@3.19.0(transitive)
- Removed@aws-sdk/middleware-sdk-transcribe-streaming@3.19.0(transitive)
- Removed@aws-sdk/middleware-serde@3.18.0(transitive)
- Removed@aws-sdk/middleware-signing@3.19.0(transitive)
- Removed@aws-sdk/middleware-stack@3.18.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.18.0(transitive)
- Removed@aws-sdk/node-config-provider@3.19.0(transitive)
- Removed@aws-sdk/node-http-handler@3.18.0(transitive)
- Removed@aws-sdk/property-provider@3.19.0(transitive)
- Removed@aws-sdk/protocol-http@3.18.0(transitive)
- Removed@aws-sdk/querystring-builder@3.18.0(transitive)
- Removed@aws-sdk/querystring-parser@3.18.0(transitive)
- Removed@aws-sdk/service-error-classification@3.19.0(transitive)
- Removed@aws-sdk/shared-ini-file-loader@3.18.0(transitive)
- Removed@aws-sdk/signature-v4@3.18.0(transitive)
- Removed@aws-sdk/smithy-client@3.19.0(transitive)
- Removed@aws-sdk/types@3.18.0(transitive)
- Removed@aws-sdk/url-parser@3.18.0(transitive)
- Removed@aws-sdk/util-base64-browser@3.18.0(transitive)
- Removed@aws-sdk/util-base64-node@3.18.0(transitive)
- Removed@aws-sdk/util-body-length-browser@3.18.0(transitive)
- Removed@aws-sdk/util-body-length-node@3.18.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.18.0(transitive)
- Removed@aws-sdk/util-format-url@3.18.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.18.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.18.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.18.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.19.0(transitive)
- Removed@aws-sdk/util-utf8-browser@3.18.0(transitive)
- Removed@aws-sdk/util-utf8-node@3.18.0(transitive)
Updated@aws-sdk/client-sts@3.20.0
Updated@aws-sdk/hash-node@3.20.0
Updated@aws-sdk/types@3.20.0
Updated@aws-sdk/url-parser@3.20.0