@aws-sdk/client-transcribe-streaming 3.899.0 → 3.906.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 +1747 -1883
- package/package.json +44 -44
package/dist-cjs/index.js
CHANGED
|
@@ -1,1925 +1,1789 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
MedicalContentIdentificationType: () => MedicalContentIdentificationType,
|
|
42
|
-
MedicalScribeConfigurationEventFilterSensitiveLog: () => MedicalScribeConfigurationEventFilterSensitiveLog,
|
|
43
|
-
MedicalScribeContextFilterSensitiveLog: () => MedicalScribeContextFilterSensitiveLog,
|
|
44
|
-
MedicalScribeInputStream: () => MedicalScribeInputStream,
|
|
45
|
-
MedicalScribeInputStreamFilterSensitiveLog: () => MedicalScribeInputStreamFilterSensitiveLog,
|
|
46
|
-
MedicalScribeLanguageCode: () => MedicalScribeLanguageCode,
|
|
47
|
-
MedicalScribeMediaEncoding: () => MedicalScribeMediaEncoding,
|
|
48
|
-
MedicalScribeNoteTemplate: () => MedicalScribeNoteTemplate,
|
|
49
|
-
MedicalScribeParticipantRole: () => MedicalScribeParticipantRole,
|
|
50
|
-
MedicalScribePatientContextFilterSensitiveLog: () => MedicalScribePatientContextFilterSensitiveLog,
|
|
51
|
-
MedicalScribeResultStream: () => MedicalScribeResultStream,
|
|
52
|
-
MedicalScribeResultStreamFilterSensitiveLog: () => MedicalScribeResultStreamFilterSensitiveLog,
|
|
53
|
-
MedicalScribeSessionControlEventType: () => MedicalScribeSessionControlEventType,
|
|
54
|
-
MedicalScribeStreamStatus: () => MedicalScribeStreamStatus,
|
|
55
|
-
MedicalScribeTranscriptItemType: () => MedicalScribeTranscriptItemType,
|
|
56
|
-
MedicalScribeVocabularyFilterMethod: () => MedicalScribeVocabularyFilterMethod,
|
|
57
|
-
MedicalTranscriptResultStream: () => MedicalTranscriptResultStream,
|
|
58
|
-
MedicalTranscriptResultStreamFilterSensitiveLog: () => MedicalTranscriptResultStreamFilterSensitiveLog,
|
|
59
|
-
PartialResultsStability: () => PartialResultsStability,
|
|
60
|
-
ParticipantRole: () => ParticipantRole,
|
|
61
|
-
Pronouns: () => Pronouns,
|
|
62
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
63
|
-
Sentiment: () => Sentiment,
|
|
64
|
-
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
65
|
-
Specialty: () => Specialty,
|
|
66
|
-
StartCallAnalyticsStreamTranscriptionCommand: () => StartCallAnalyticsStreamTranscriptionCommand,
|
|
67
|
-
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
68
|
-
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog: () => StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
|
|
69
|
-
StartMedicalScribeStreamCommand: () => StartMedicalScribeStreamCommand,
|
|
70
|
-
StartMedicalScribeStreamRequestFilterSensitiveLog: () => StartMedicalScribeStreamRequestFilterSensitiveLog,
|
|
71
|
-
StartMedicalScribeStreamResponseFilterSensitiveLog: () => StartMedicalScribeStreamResponseFilterSensitiveLog,
|
|
72
|
-
StartMedicalStreamTranscriptionCommand: () => StartMedicalStreamTranscriptionCommand,
|
|
73
|
-
StartMedicalStreamTranscriptionRequestFilterSensitiveLog: () => StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
74
|
-
StartMedicalStreamTranscriptionResponseFilterSensitiveLog: () => StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
|
|
75
|
-
StartStreamTranscriptionCommand: () => StartStreamTranscriptionCommand,
|
|
76
|
-
StartStreamTranscriptionRequestFilterSensitiveLog: () => StartStreamTranscriptionRequestFilterSensitiveLog,
|
|
77
|
-
StartStreamTranscriptionResponseFilterSensitiveLog: () => StartStreamTranscriptionResponseFilterSensitiveLog,
|
|
78
|
-
TranscribeStreaming: () => TranscribeStreaming,
|
|
79
|
-
TranscribeStreamingClient: () => TranscribeStreamingClient,
|
|
80
|
-
TranscribeStreamingServiceException: () => TranscribeStreamingServiceException,
|
|
81
|
-
TranscriptResultStream: () => TranscriptResultStream,
|
|
82
|
-
TranscriptResultStreamFilterSensitiveLog: () => TranscriptResultStreamFilterSensitiveLog,
|
|
83
|
-
Type: () => Type,
|
|
84
|
-
VocabularyFilterMethod: () => VocabularyFilterMethod,
|
|
85
|
-
__Client: () => import_smithy_client.Client
|
|
86
|
-
});
|
|
87
|
-
module.exports = __toCommonJS(index_exports);
|
|
88
|
-
|
|
89
|
-
// src/TranscribeStreamingClient.ts
|
|
90
|
-
var import_middleware_eventstream = require("@aws-sdk/middleware-eventstream");
|
|
91
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
92
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
93
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
94
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
95
|
-
var import_middleware_websocket = require("@aws-sdk/middleware-websocket");
|
|
96
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
97
|
-
var import_core = require("@smithy/core");
|
|
98
|
-
var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
|
|
99
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
100
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
101
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
3
|
+
var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
|
|
4
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
5
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
6
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
7
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
8
|
+
var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
|
|
9
|
+
var configResolver = require('@smithy/config-resolver');
|
|
10
|
+
var core = require('@smithy/core');
|
|
11
|
+
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
12
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
13
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
14
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
15
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
16
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
17
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
18
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
19
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
20
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
21
|
+
var core$1 = require('@aws-sdk/core');
|
|
22
|
+
var middlewareSdkTranscribeStreaming = require('@aws-sdk/middleware-sdk-transcribe-streaming');
|
|
102
23
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
110
|
-
defaultSigningName: "transcribe"
|
|
111
|
-
});
|
|
112
|
-
}, "resolveClientEndpointParameters");
|
|
113
|
-
var commonParams = {
|
|
114
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
115
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
116
|
-
Region: { type: "builtInParams", name: "region" },
|
|
117
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
24
|
+
const resolveClientEndpointParameters = (options) => {
|
|
25
|
+
return Object.assign(options, {
|
|
26
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
27
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
28
|
+
defaultSigningName: "transcribe",
|
|
29
|
+
});
|
|
118
30
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
125
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
126
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
127
|
-
|
|
128
|
-
// src/auth/httpAuthExtensionConfiguration.ts
|
|
129
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
130
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
131
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
132
|
-
let _credentials = runtimeConfig.credentials;
|
|
133
|
-
return {
|
|
134
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
135
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
136
|
-
if (index === -1) {
|
|
137
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
138
|
-
} else {
|
|
139
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
httpAuthSchemes() {
|
|
143
|
-
return _httpAuthSchemes;
|
|
144
|
-
},
|
|
145
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
146
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
147
|
-
},
|
|
148
|
-
httpAuthSchemeProvider() {
|
|
149
|
-
return _httpAuthSchemeProvider;
|
|
150
|
-
},
|
|
151
|
-
setCredentials(credentials) {
|
|
152
|
-
_credentials = credentials;
|
|
153
|
-
},
|
|
154
|
-
credentials() {
|
|
155
|
-
return _credentials;
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
159
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
160
|
-
return {
|
|
161
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
162
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
163
|
-
credentials: config.credentials()
|
|
164
|
-
};
|
|
165
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
166
|
-
|
|
167
|
-
// src/runtimeExtensions.ts
|
|
168
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
169
|
-
const extensionConfiguration = Object.assign(
|
|
170
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
171
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
172
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
173
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
174
|
-
);
|
|
175
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
176
|
-
return Object.assign(
|
|
177
|
-
runtimeConfig,
|
|
178
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
179
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
180
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
181
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
182
|
-
);
|
|
183
|
-
}, "resolveRuntimeExtensions");
|
|
184
|
-
|
|
185
|
-
// src/TranscribeStreamingClient.ts
|
|
186
|
-
var TranscribeStreamingClient = class extends import_smithy_client.Client {
|
|
187
|
-
static {
|
|
188
|
-
__name(this, "TranscribeStreamingClient");
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* The resolved configuration of TranscribeStreamingClient class. This is resolved and normalized from the {@link TranscribeStreamingClientConfig | constructor configuration interface}.
|
|
192
|
-
*/
|
|
193
|
-
config;
|
|
194
|
-
constructor(...[configuration]) {
|
|
195
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
196
|
-
super(_config_0);
|
|
197
|
-
this.initConfig = _config_0;
|
|
198
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
199
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
200
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
201
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
202
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
203
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
204
|
-
const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
|
|
205
|
-
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
|
|
206
|
-
const _config_9 = (0, import_middleware_eventstream.resolveEventStreamConfig)(_config_8);
|
|
207
|
-
const _config_10 = (0, import_middleware_websocket.resolveWebSocketConfig)(_config_9);
|
|
208
|
-
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
209
|
-
this.config = _config_11;
|
|
210
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
211
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
212
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
213
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
214
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
215
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
216
|
-
this.middlewareStack.use(
|
|
217
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
218
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTranscribeStreamingHttpAuthSchemeParametersProvider,
|
|
219
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
220
|
-
"aws.auth#sigv4": config.credentials
|
|
221
|
-
}), "identityProviderConfigProvider")
|
|
222
|
-
})
|
|
223
|
-
);
|
|
224
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
228
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
229
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
230
|
-
*/
|
|
231
|
-
destroy() {
|
|
232
|
-
super.destroy();
|
|
233
|
-
}
|
|
31
|
+
const commonParams = {
|
|
32
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
33
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
34
|
+
Region: { type: "builtInParams", name: "region" },
|
|
35
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
234
36
|
};
|
|
235
37
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
38
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
39
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
40
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
41
|
+
let _credentials = runtimeConfig.credentials;
|
|
42
|
+
return {
|
|
43
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
44
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
45
|
+
if (index === -1) {
|
|
46
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemes() {
|
|
53
|
+
return _httpAuthSchemes;
|
|
54
|
+
},
|
|
55
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
56
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
httpAuthSchemeProvider() {
|
|
59
|
+
return _httpAuthSchemeProvider;
|
|
60
|
+
},
|
|
61
|
+
setCredentials(credentials) {
|
|
62
|
+
_credentials = credentials;
|
|
63
|
+
},
|
|
64
|
+
credentials() {
|
|
65
|
+
return _credentials;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
70
|
+
return {
|
|
71
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
72
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
73
|
+
credentials: config.credentials(),
|
|
74
|
+
};
|
|
265
75
|
};
|
|
266
76
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
};
|
|
272
|
-
var ParticipantRole = {
|
|
273
|
-
AGENT: "AGENT",
|
|
274
|
-
CUSTOMER: "CUSTOMER"
|
|
275
|
-
};
|
|
276
|
-
var ContentRedactionOutput = {
|
|
277
|
-
REDACTED: "redacted",
|
|
278
|
-
REDACTED_AND_UNREDACTED: "redacted_and_unredacted"
|
|
279
|
-
};
|
|
280
|
-
var AudioStream;
|
|
281
|
-
((AudioStream2) => {
|
|
282
|
-
AudioStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
283
|
-
if (value.AudioEvent !== void 0) return visitor.AudioEvent(value.AudioEvent);
|
|
284
|
-
if (value.ConfigurationEvent !== void 0) return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
285
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
286
|
-
}, "visit");
|
|
287
|
-
})(AudioStream || (AudioStream = {}));
|
|
288
|
-
var BadRequestException = class _BadRequestException extends TranscribeStreamingServiceException {
|
|
289
|
-
static {
|
|
290
|
-
__name(this, "BadRequestException");
|
|
291
|
-
}
|
|
292
|
-
name = "BadRequestException";
|
|
293
|
-
$fault = "client";
|
|
294
|
-
Message;
|
|
295
|
-
/**
|
|
296
|
-
* @internal
|
|
297
|
-
*/
|
|
298
|
-
constructor(opts) {
|
|
299
|
-
super({
|
|
300
|
-
name: "BadRequestException",
|
|
301
|
-
$fault: "client",
|
|
302
|
-
...opts
|
|
303
|
-
});
|
|
304
|
-
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
305
|
-
this.Message = opts.Message;
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
var CallAnalyticsLanguageCode = {
|
|
309
|
-
DE_DE: "de-DE",
|
|
310
|
-
EN_AU: "en-AU",
|
|
311
|
-
EN_GB: "en-GB",
|
|
312
|
-
EN_US: "en-US",
|
|
313
|
-
ES_US: "es-US",
|
|
314
|
-
FR_CA: "fr-CA",
|
|
315
|
-
FR_FR: "fr-FR",
|
|
316
|
-
IT_IT: "it-IT",
|
|
317
|
-
PT_BR: "pt-BR"
|
|
318
|
-
};
|
|
319
|
-
var ConflictException = class _ConflictException extends TranscribeStreamingServiceException {
|
|
320
|
-
static {
|
|
321
|
-
__name(this, "ConflictException");
|
|
322
|
-
}
|
|
323
|
-
name = "ConflictException";
|
|
324
|
-
$fault = "client";
|
|
325
|
-
Message;
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
*/
|
|
329
|
-
constructor(opts) {
|
|
330
|
-
super({
|
|
331
|
-
name: "ConflictException",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
...opts
|
|
334
|
-
});
|
|
335
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
336
|
-
this.Message = opts.Message;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
var InternalFailureException = class _InternalFailureException extends TranscribeStreamingServiceException {
|
|
340
|
-
static {
|
|
341
|
-
__name(this, "InternalFailureException");
|
|
342
|
-
}
|
|
343
|
-
name = "InternalFailureException";
|
|
344
|
-
$fault = "server";
|
|
345
|
-
Message;
|
|
346
|
-
/**
|
|
347
|
-
* @internal
|
|
348
|
-
*/
|
|
349
|
-
constructor(opts) {
|
|
350
|
-
super({
|
|
351
|
-
name: "InternalFailureException",
|
|
352
|
-
$fault: "server",
|
|
353
|
-
...opts
|
|
354
|
-
});
|
|
355
|
-
Object.setPrototypeOf(this, _InternalFailureException.prototype);
|
|
356
|
-
this.Message = opts.Message;
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
var LimitExceededException = class _LimitExceededException extends TranscribeStreamingServiceException {
|
|
360
|
-
static {
|
|
361
|
-
__name(this, "LimitExceededException");
|
|
362
|
-
}
|
|
363
|
-
name = "LimitExceededException";
|
|
364
|
-
$fault = "client";
|
|
365
|
-
Message;
|
|
366
|
-
/**
|
|
367
|
-
* @internal
|
|
368
|
-
*/
|
|
369
|
-
constructor(opts) {
|
|
370
|
-
super({
|
|
371
|
-
name: "LimitExceededException",
|
|
372
|
-
$fault: "client",
|
|
373
|
-
...opts
|
|
374
|
-
});
|
|
375
|
-
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
376
|
-
this.Message = opts.Message;
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
var ServiceUnavailableException = class _ServiceUnavailableException extends TranscribeStreamingServiceException {
|
|
380
|
-
static {
|
|
381
|
-
__name(this, "ServiceUnavailableException");
|
|
382
|
-
}
|
|
383
|
-
name = "ServiceUnavailableException";
|
|
384
|
-
$fault = "server";
|
|
385
|
-
Message;
|
|
386
|
-
/**
|
|
387
|
-
* @internal
|
|
388
|
-
*/
|
|
389
|
-
constructor(opts) {
|
|
390
|
-
super({
|
|
391
|
-
name: "ServiceUnavailableException",
|
|
392
|
-
$fault: "server",
|
|
393
|
-
...opts
|
|
394
|
-
});
|
|
395
|
-
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
396
|
-
this.Message = opts.Message;
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
var Sentiment = {
|
|
400
|
-
MIXED: "MIXED",
|
|
401
|
-
NEGATIVE: "NEGATIVE",
|
|
402
|
-
NEUTRAL: "NEUTRAL",
|
|
403
|
-
POSITIVE: "POSITIVE"
|
|
404
|
-
};
|
|
405
|
-
var CallAnalyticsTranscriptResultStream;
|
|
406
|
-
((CallAnalyticsTranscriptResultStream3) => {
|
|
407
|
-
CallAnalyticsTranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
408
|
-
if (value.UtteranceEvent !== void 0) return visitor.UtteranceEvent(value.UtteranceEvent);
|
|
409
|
-
if (value.CategoryEvent !== void 0) return visitor.CategoryEvent(value.CategoryEvent);
|
|
410
|
-
if (value.BadRequestException !== void 0) return visitor.BadRequestException(value.BadRequestException);
|
|
411
|
-
if (value.LimitExceededException !== void 0) return visitor.LimitExceededException(value.LimitExceededException);
|
|
412
|
-
if (value.InternalFailureException !== void 0)
|
|
413
|
-
return visitor.InternalFailureException(value.InternalFailureException);
|
|
414
|
-
if (value.ConflictException !== void 0) return visitor.ConflictException(value.ConflictException);
|
|
415
|
-
if (value.ServiceUnavailableException !== void 0)
|
|
416
|
-
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
417
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
418
|
-
}, "visit");
|
|
419
|
-
})(CallAnalyticsTranscriptResultStream || (CallAnalyticsTranscriptResultStream = {}));
|
|
420
|
-
var ClinicalNoteGenerationStatus = {
|
|
421
|
-
COMPLETED: "COMPLETED",
|
|
422
|
-
FAILED: "FAILED",
|
|
423
|
-
IN_PROGRESS: "IN_PROGRESS"
|
|
424
|
-
};
|
|
425
|
-
var MedicalScribeNoteTemplate = {
|
|
426
|
-
BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
|
|
427
|
-
BIRP: "BIRP",
|
|
428
|
-
DAP: "DAP",
|
|
429
|
-
GIRPP: "GIRPP",
|
|
430
|
-
HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
|
|
431
|
-
PHYSICAL_SOAP: "PHYSICAL_SOAP",
|
|
432
|
-
SIRP: "SIRP"
|
|
433
|
-
};
|
|
434
|
-
var ContentIdentificationType = {
|
|
435
|
-
PII: "PII"
|
|
436
|
-
};
|
|
437
|
-
var ContentRedactionType = {
|
|
438
|
-
PII: "PII"
|
|
439
|
-
};
|
|
440
|
-
var MedicalScribeParticipantRole = {
|
|
441
|
-
CLINICIAN: "CLINICIAN",
|
|
442
|
-
PATIENT: "PATIENT"
|
|
443
|
-
};
|
|
444
|
-
var MedicalScribeLanguageCode = {
|
|
445
|
-
EN_US: "en-US"
|
|
446
|
-
};
|
|
447
|
-
var MedicalScribeMediaEncoding = {
|
|
448
|
-
FLAC: "flac",
|
|
449
|
-
OGG_OPUS: "ogg-opus",
|
|
450
|
-
PCM: "pcm"
|
|
451
|
-
};
|
|
452
|
-
var MedicalScribeStreamStatus = {
|
|
453
|
-
COMPLETED: "COMPLETED",
|
|
454
|
-
FAILED: "FAILED",
|
|
455
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
456
|
-
PAUSED: "PAUSED"
|
|
457
|
-
};
|
|
458
|
-
var MedicalScribeVocabularyFilterMethod = {
|
|
459
|
-
MASK: "mask",
|
|
460
|
-
REMOVE: "remove",
|
|
461
|
-
TAG: "tag"
|
|
462
|
-
};
|
|
463
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends TranscribeStreamingServiceException {
|
|
464
|
-
static {
|
|
465
|
-
__name(this, "ResourceNotFoundException");
|
|
466
|
-
}
|
|
467
|
-
name = "ResourceNotFoundException";
|
|
468
|
-
$fault = "client";
|
|
469
|
-
Message;
|
|
470
|
-
/**
|
|
471
|
-
* @internal
|
|
472
|
-
*/
|
|
473
|
-
constructor(opts) {
|
|
474
|
-
super({
|
|
475
|
-
name: "ResourceNotFoundException",
|
|
476
|
-
$fault: "client",
|
|
477
|
-
...opts
|
|
478
|
-
});
|
|
479
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
480
|
-
this.Message = opts.Message;
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
var LanguageCode = {
|
|
484
|
-
AF_ZA: "af-ZA",
|
|
485
|
-
AR_AE: "ar-AE",
|
|
486
|
-
AR_SA: "ar-SA",
|
|
487
|
-
CA_ES: "ca-ES",
|
|
488
|
-
CS_CZ: "cs-CZ",
|
|
489
|
-
DA_DK: "da-DK",
|
|
490
|
-
DE_CH: "de-CH",
|
|
491
|
-
DE_DE: "de-DE",
|
|
492
|
-
EL_GR: "el-GR",
|
|
493
|
-
EN_AB: "en-AB",
|
|
494
|
-
EN_AU: "en-AU",
|
|
495
|
-
EN_GB: "en-GB",
|
|
496
|
-
EN_IE: "en-IE",
|
|
497
|
-
EN_IN: "en-IN",
|
|
498
|
-
EN_NZ: "en-NZ",
|
|
499
|
-
EN_US: "en-US",
|
|
500
|
-
EN_WL: "en-WL",
|
|
501
|
-
EN_ZA: "en-ZA",
|
|
502
|
-
ES_ES: "es-ES",
|
|
503
|
-
ES_US: "es-US",
|
|
504
|
-
EU_ES: "eu-ES",
|
|
505
|
-
FA_IR: "fa-IR",
|
|
506
|
-
FI_FI: "fi-FI",
|
|
507
|
-
FR_CA: "fr-CA",
|
|
508
|
-
FR_FR: "fr-FR",
|
|
509
|
-
GL_ES: "gl-ES",
|
|
510
|
-
HE_IL: "he-IL",
|
|
511
|
-
HI_IN: "hi-IN",
|
|
512
|
-
HR_HR: "hr-HR",
|
|
513
|
-
ID_ID: "id-ID",
|
|
514
|
-
IT_IT: "it-IT",
|
|
515
|
-
JA_JP: "ja-JP",
|
|
516
|
-
KO_KR: "ko-KR",
|
|
517
|
-
LV_LV: "lv-LV",
|
|
518
|
-
MS_MY: "ms-MY",
|
|
519
|
-
NL_NL: "nl-NL",
|
|
520
|
-
NO_NO: "no-NO",
|
|
521
|
-
PL_PL: "pl-PL",
|
|
522
|
-
PT_BR: "pt-BR",
|
|
523
|
-
PT_PT: "pt-PT",
|
|
524
|
-
RO_RO: "ro-RO",
|
|
525
|
-
RU_RU: "ru-RU",
|
|
526
|
-
SK_SK: "sk-SK",
|
|
527
|
-
SO_SO: "so-SO",
|
|
528
|
-
SR_RS: "sr-RS",
|
|
529
|
-
SV_SE: "sv-SE",
|
|
530
|
-
TH_TH: "th-TH",
|
|
531
|
-
TL_PH: "tl-PH",
|
|
532
|
-
UK_UA: "uk-UA",
|
|
533
|
-
VI_VN: "vi-VN",
|
|
534
|
-
ZH_CN: "zh-CN",
|
|
535
|
-
ZH_HK: "zh-HK",
|
|
536
|
-
ZH_TW: "zh-TW",
|
|
537
|
-
ZU_ZA: "zu-ZA"
|
|
538
|
-
};
|
|
539
|
-
var MediaEncoding = {
|
|
540
|
-
FLAC: "flac",
|
|
541
|
-
OGG_OPUS: "ogg-opus",
|
|
542
|
-
PCM: "pcm"
|
|
543
|
-
};
|
|
544
|
-
var MedicalContentIdentificationType = {
|
|
545
|
-
PHI: "PHI"
|
|
546
|
-
};
|
|
547
|
-
var Pronouns = {
|
|
548
|
-
HE_HIM: "HE_HIM",
|
|
549
|
-
SHE_HER: "SHE_HER",
|
|
550
|
-
THEY_THEM: "THEY_THEM"
|
|
551
|
-
};
|
|
552
|
-
var MedicalScribeSessionControlEventType = {
|
|
553
|
-
END_OF_SESSION: "END_OF_SESSION"
|
|
554
|
-
};
|
|
555
|
-
var MedicalScribeInputStream;
|
|
556
|
-
((MedicalScribeInputStream2) => {
|
|
557
|
-
MedicalScribeInputStream2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
558
|
-
if (value.AudioEvent !== void 0) return visitor.AudioEvent(value.AudioEvent);
|
|
559
|
-
if (value.SessionControlEvent !== void 0) return visitor.SessionControlEvent(value.SessionControlEvent);
|
|
560
|
-
if (value.ConfigurationEvent !== void 0) return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
561
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
562
|
-
}, "visit");
|
|
563
|
-
})(MedicalScribeInputStream || (MedicalScribeInputStream = {}));
|
|
564
|
-
var MedicalScribeTranscriptItemType = {
|
|
565
|
-
PRONUNCIATION: "pronunciation",
|
|
566
|
-
PUNCTUATION: "punctuation"
|
|
567
|
-
};
|
|
568
|
-
var MedicalScribeResultStream;
|
|
569
|
-
((MedicalScribeResultStream3) => {
|
|
570
|
-
MedicalScribeResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
571
|
-
if (value.TranscriptEvent !== void 0) return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
572
|
-
if (value.BadRequestException !== void 0) return visitor.BadRequestException(value.BadRequestException);
|
|
573
|
-
if (value.LimitExceededException !== void 0) return visitor.LimitExceededException(value.LimitExceededException);
|
|
574
|
-
if (value.InternalFailureException !== void 0)
|
|
575
|
-
return visitor.InternalFailureException(value.InternalFailureException);
|
|
576
|
-
if (value.ConflictException !== void 0) return visitor.ConflictException(value.ConflictException);
|
|
577
|
-
if (value.ServiceUnavailableException !== void 0)
|
|
578
|
-
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
579
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
580
|
-
}, "visit");
|
|
581
|
-
})(MedicalScribeResultStream || (MedicalScribeResultStream = {}));
|
|
582
|
-
var MedicalTranscriptResultStream;
|
|
583
|
-
((MedicalTranscriptResultStream3) => {
|
|
584
|
-
MedicalTranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
585
|
-
if (value.TranscriptEvent !== void 0) return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
586
|
-
if (value.BadRequestException !== void 0) return visitor.BadRequestException(value.BadRequestException);
|
|
587
|
-
if (value.LimitExceededException !== void 0) return visitor.LimitExceededException(value.LimitExceededException);
|
|
588
|
-
if (value.InternalFailureException !== void 0)
|
|
589
|
-
return visitor.InternalFailureException(value.InternalFailureException);
|
|
590
|
-
if (value.ConflictException !== void 0) return visitor.ConflictException(value.ConflictException);
|
|
591
|
-
if (value.ServiceUnavailableException !== void 0)
|
|
592
|
-
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
593
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
594
|
-
}, "visit");
|
|
595
|
-
})(MedicalTranscriptResultStream || (MedicalTranscriptResultStream = {}));
|
|
596
|
-
var PartialResultsStability = {
|
|
597
|
-
HIGH: "high",
|
|
598
|
-
LOW: "low",
|
|
599
|
-
MEDIUM: "medium"
|
|
600
|
-
};
|
|
601
|
-
var Specialty = {
|
|
602
|
-
CARDIOLOGY: "CARDIOLOGY",
|
|
603
|
-
NEUROLOGY: "NEUROLOGY",
|
|
604
|
-
ONCOLOGY: "ONCOLOGY",
|
|
605
|
-
PRIMARYCARE: "PRIMARYCARE",
|
|
606
|
-
RADIOLOGY: "RADIOLOGY",
|
|
607
|
-
UROLOGY: "UROLOGY"
|
|
608
|
-
};
|
|
609
|
-
var VocabularyFilterMethod = {
|
|
610
|
-
MASK: "mask",
|
|
611
|
-
REMOVE: "remove",
|
|
612
|
-
TAG: "tag"
|
|
613
|
-
};
|
|
614
|
-
var Type = {
|
|
615
|
-
CONVERSATION: "CONVERSATION",
|
|
616
|
-
DICTATION: "DICTATION"
|
|
617
|
-
};
|
|
618
|
-
var TranscriptResultStream;
|
|
619
|
-
((TranscriptResultStream3) => {
|
|
620
|
-
TranscriptResultStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
621
|
-
if (value.TranscriptEvent !== void 0) return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
622
|
-
if (value.BadRequestException !== void 0) return visitor.BadRequestException(value.BadRequestException);
|
|
623
|
-
if (value.LimitExceededException !== void 0) return visitor.LimitExceededException(value.LimitExceededException);
|
|
624
|
-
if (value.InternalFailureException !== void 0)
|
|
625
|
-
return visitor.InternalFailureException(value.InternalFailureException);
|
|
626
|
-
if (value.ConflictException !== void 0) return visitor.ConflictException(value.ConflictException);
|
|
627
|
-
if (value.ServiceUnavailableException !== void 0)
|
|
628
|
-
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
629
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
630
|
-
}, "visit");
|
|
631
|
-
})(TranscriptResultStream || (TranscriptResultStream = {}));
|
|
632
|
-
var AudioStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
633
|
-
if (obj.AudioEvent !== void 0) return { AudioEvent: obj.AudioEvent };
|
|
634
|
-
if (obj.ConfigurationEvent !== void 0) return { ConfigurationEvent: obj.ConfigurationEvent };
|
|
635
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
636
|
-
}, "AudioStreamFilterSensitiveLog");
|
|
637
|
-
var CallAnalyticsTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
638
|
-
if (obj.UtteranceEvent !== void 0) return { UtteranceEvent: obj.UtteranceEvent };
|
|
639
|
-
if (obj.CategoryEvent !== void 0) return { CategoryEvent: obj.CategoryEvent };
|
|
640
|
-
if (obj.BadRequestException !== void 0) return { BadRequestException: obj.BadRequestException };
|
|
641
|
-
if (obj.LimitExceededException !== void 0) return { LimitExceededException: obj.LimitExceededException };
|
|
642
|
-
if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
|
|
643
|
-
if (obj.ConflictException !== void 0) return { ConflictException: obj.ConflictException };
|
|
644
|
-
if (obj.ServiceUnavailableException !== void 0)
|
|
645
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
646
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
647
|
-
}, "CallAnalyticsTranscriptResultStreamFilterSensitiveLog");
|
|
648
|
-
var MedicalScribePatientContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
649
|
-
...obj,
|
|
650
|
-
...obj.Pronouns && { Pronouns: import_smithy_client.SENSITIVE_STRING }
|
|
651
|
-
}), "MedicalScribePatientContextFilterSensitiveLog");
|
|
652
|
-
var MedicalScribeContextFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
653
|
-
...obj,
|
|
654
|
-
...obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }
|
|
655
|
-
}), "MedicalScribeContextFilterSensitiveLog");
|
|
656
|
-
var MedicalScribeConfigurationEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
657
|
-
...obj,
|
|
658
|
-
...obj.MedicalScribeContext && {
|
|
659
|
-
MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext)
|
|
660
|
-
}
|
|
661
|
-
}), "MedicalScribeConfigurationEventFilterSensitiveLog");
|
|
662
|
-
var MedicalScribeInputStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
663
|
-
if (obj.AudioEvent !== void 0) return { AudioEvent: obj.AudioEvent };
|
|
664
|
-
if (obj.SessionControlEvent !== void 0) return { SessionControlEvent: obj.SessionControlEvent };
|
|
665
|
-
if (obj.ConfigurationEvent !== void 0)
|
|
666
|
-
return { ConfigurationEvent: MedicalScribeConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
|
|
667
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
668
|
-
}, "MedicalScribeInputStreamFilterSensitiveLog");
|
|
669
|
-
var MedicalScribeResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
670
|
-
if (obj.TranscriptEvent !== void 0) return { TranscriptEvent: obj.TranscriptEvent };
|
|
671
|
-
if (obj.BadRequestException !== void 0) return { BadRequestException: obj.BadRequestException };
|
|
672
|
-
if (obj.LimitExceededException !== void 0) return { LimitExceededException: obj.LimitExceededException };
|
|
673
|
-
if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
|
|
674
|
-
if (obj.ConflictException !== void 0) return { ConflictException: obj.ConflictException };
|
|
675
|
-
if (obj.ServiceUnavailableException !== void 0)
|
|
676
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
677
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
678
|
-
}, "MedicalScribeResultStreamFilterSensitiveLog");
|
|
679
|
-
var MedicalTranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
680
|
-
if (obj.TranscriptEvent !== void 0) return { TranscriptEvent: obj.TranscriptEvent };
|
|
681
|
-
if (obj.BadRequestException !== void 0) return { BadRequestException: obj.BadRequestException };
|
|
682
|
-
if (obj.LimitExceededException !== void 0) return { LimitExceededException: obj.LimitExceededException };
|
|
683
|
-
if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
|
|
684
|
-
if (obj.ConflictException !== void 0) return { ConflictException: obj.ConflictException };
|
|
685
|
-
if (obj.ServiceUnavailableException !== void 0)
|
|
686
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
687
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
688
|
-
}, "MedicalTranscriptResultStreamFilterSensitiveLog");
|
|
689
|
-
var StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
690
|
-
...obj,
|
|
691
|
-
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
692
|
-
}), "StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog");
|
|
693
|
-
var StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
694
|
-
...obj,
|
|
695
|
-
...obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }
|
|
696
|
-
}), "StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog");
|
|
697
|
-
var StartMedicalScribeStreamRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
698
|
-
...obj,
|
|
699
|
-
...obj.InputStream && { InputStream: "STREAMING_CONTENT" }
|
|
700
|
-
}), "StartMedicalScribeStreamRequestFilterSensitiveLog");
|
|
701
|
-
var StartMedicalScribeStreamResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
702
|
-
...obj,
|
|
703
|
-
...obj.ResultStream && { ResultStream: "STREAMING_CONTENT" }
|
|
704
|
-
}), "StartMedicalScribeStreamResponseFilterSensitiveLog");
|
|
705
|
-
var StartMedicalStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
706
|
-
...obj,
|
|
707
|
-
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
708
|
-
}), "StartMedicalStreamTranscriptionRequestFilterSensitiveLog");
|
|
709
|
-
var StartMedicalStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
710
|
-
...obj,
|
|
711
|
-
...obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }
|
|
712
|
-
}), "StartMedicalStreamTranscriptionResponseFilterSensitiveLog");
|
|
713
|
-
var StartStreamTranscriptionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
714
|
-
...obj,
|
|
715
|
-
...obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }
|
|
716
|
-
}), "StartStreamTranscriptionRequestFilterSensitiveLog");
|
|
717
|
-
var TranscriptResultStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
718
|
-
if (obj.TranscriptEvent !== void 0) return { TranscriptEvent: obj.TranscriptEvent };
|
|
719
|
-
if (obj.BadRequestException !== void 0) return { BadRequestException: obj.BadRequestException };
|
|
720
|
-
if (obj.LimitExceededException !== void 0) return { LimitExceededException: obj.LimitExceededException };
|
|
721
|
-
if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
|
|
722
|
-
if (obj.ConflictException !== void 0) return { ConflictException: obj.ConflictException };
|
|
723
|
-
if (obj.ServiceUnavailableException !== void 0)
|
|
724
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
725
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
726
|
-
}, "TranscriptResultStreamFilterSensitiveLog");
|
|
727
|
-
var StartStreamTranscriptionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
728
|
-
...obj,
|
|
729
|
-
...obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }
|
|
730
|
-
}), "StartStreamTranscriptionResponseFilterSensitiveLog");
|
|
77
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
78
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
79
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
80
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
81
|
+
};
|
|
731
82
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
[_xatpet]: input[_PET]
|
|
764
|
-
});
|
|
765
|
-
b.bp("/call-analytics-stream-transcription");
|
|
766
|
-
let body;
|
|
767
|
-
if (input.AudioStream !== void 0) {
|
|
768
|
-
body = se_AudioStream(input.AudioStream, context);
|
|
769
|
-
}
|
|
770
|
-
b.m("POST").h(headers).b(body);
|
|
771
|
-
return b.build();
|
|
772
|
-
}, "se_StartCallAnalyticsStreamTranscriptionCommand");
|
|
773
|
-
var se_StartMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
774
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
775
|
-
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
776
|
-
"content-type": "application/json",
|
|
777
|
-
[_xatsi]: input[_SI],
|
|
778
|
-
[_xatlc]: input[_LC],
|
|
779
|
-
[_xatsr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MSRH]), () => input[_MSRH].toString()],
|
|
780
|
-
[_xatme]: input[_ME]
|
|
781
|
-
});
|
|
782
|
-
b.bp("/medical-scribe-stream");
|
|
783
|
-
let body;
|
|
784
|
-
if (input.InputStream !== void 0) {
|
|
785
|
-
body = se_MedicalScribeInputStream(input.InputStream, context);
|
|
786
|
-
}
|
|
787
|
-
b.m("POST").h(headers).b(body);
|
|
788
|
-
return b.build();
|
|
789
|
-
}, "se_StartMedicalScribeStreamCommand");
|
|
790
|
-
var se_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
791
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
792
|
-
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
793
|
-
"content-type": "application/json",
|
|
794
|
-
[_xatlc]: input[_LC],
|
|
795
|
-
[_xatsr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MSRH]), () => input[_MSRH].toString()],
|
|
796
|
-
[_xatme]: input[_ME],
|
|
797
|
-
[_xatvn]: input[_VN],
|
|
798
|
-
[_xats]: input[_S],
|
|
799
|
-
[_xatt]: input[_T],
|
|
800
|
-
[_xatssl]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SSL]), () => input[_SSL].toString()],
|
|
801
|
-
[_xatsi]: input[_SI],
|
|
802
|
-
[_xateci]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_ECI]), () => input[_ECI].toString()],
|
|
803
|
-
[_xatnoc]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_NOC]), () => input[_NOC].toString()],
|
|
804
|
-
[_xatcit]: input[_CIT]
|
|
805
|
-
});
|
|
806
|
-
b.bp("/medical-stream-transcription");
|
|
807
|
-
let body;
|
|
808
|
-
if (input.AudioStream !== void 0) {
|
|
809
|
-
body = se_AudioStream(input.AudioStream, context);
|
|
810
|
-
}
|
|
811
|
-
b.m("POST").h(headers).b(body);
|
|
812
|
-
return b.build();
|
|
813
|
-
}, "se_StartMedicalStreamTranscriptionCommand");
|
|
814
|
-
var se_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
815
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
816
|
-
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
817
|
-
"content-type": "application/json",
|
|
818
|
-
[_xatlc]: input[_LC],
|
|
819
|
-
[_xatsr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_MSRH]), () => input[_MSRH].toString()],
|
|
820
|
-
[_xatme]: input[_ME],
|
|
821
|
-
[_xatvn]: input[_VN],
|
|
822
|
-
[_xatsi]: input[_SI],
|
|
823
|
-
[_xatvfn]: input[_VFN],
|
|
824
|
-
[_xatvfm]: input[_VFM],
|
|
825
|
-
[_xatssl]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_SSL]), () => input[_SSL].toString()],
|
|
826
|
-
[_xateci]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_ECI]), () => input[_ECI].toString()],
|
|
827
|
-
[_xatnoc]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_NOC]), () => input[_NOC].toString()],
|
|
828
|
-
[_xateprs]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_EPRS]), () => input[_EPRS].toString()],
|
|
829
|
-
[_xatprs]: input[_PRS],
|
|
830
|
-
[_xatcit]: input[_CIT],
|
|
831
|
-
[_xatcrt]: input[_CRT],
|
|
832
|
-
[_xatpet]: input[_PET],
|
|
833
|
-
[_xatlmn]: input[_LMN],
|
|
834
|
-
[_xatil]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IL]), () => input[_IL].toString()],
|
|
835
|
-
[_xatlo]: input[_LO],
|
|
836
|
-
[_xatpl]: input[_PL],
|
|
837
|
-
[_xatiml]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IML]), () => input[_IML].toString()],
|
|
838
|
-
[_xatvn_]: input[_VNo],
|
|
839
|
-
[_xatvfn_]: input[_VFNo]
|
|
840
|
-
});
|
|
841
|
-
b.bp("/stream-transcription");
|
|
842
|
-
let body;
|
|
843
|
-
if (input.AudioStream !== void 0) {
|
|
844
|
-
body = se_AudioStream(input.AudioStream, context);
|
|
845
|
-
}
|
|
846
|
-
b.m("POST").h(headers).b(body);
|
|
847
|
-
return b.build();
|
|
848
|
-
}, "se_StartStreamTranscriptionCommand");
|
|
849
|
-
var de_GetMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
-
return de_CommandError(output, context);
|
|
852
|
-
}
|
|
853
|
-
const contents = (0, import_smithy_client.map)({
|
|
854
|
-
$metadata: deserializeMetadata(output)
|
|
855
|
-
});
|
|
856
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
857
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
858
|
-
MedicalScribeStreamDetails: /* @__PURE__ */ __name((_) => de_MedicalScribeStreamDetails(_, context), "MedicalScribeStreamDetails")
|
|
859
|
-
});
|
|
860
|
-
Object.assign(contents, doc);
|
|
861
|
-
return contents;
|
|
862
|
-
}, "de_GetMedicalScribeStreamCommand");
|
|
863
|
-
var de_StartCallAnalyticsStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
-
return de_CommandError(output, context);
|
|
866
|
-
}
|
|
867
|
-
const contents = (0, import_smithy_client.map)({
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
[_RI]: [, output.headers[_xari]],
|
|
870
|
-
[_LC]: [, output.headers[_xatlc]],
|
|
871
|
-
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
872
|
-
[_ME]: [, output.headers[_xatme]],
|
|
873
|
-
[_VN]: [, output.headers[_xatvn]],
|
|
874
|
-
[_SI]: [, output.headers[_xatsi]],
|
|
875
|
-
[_VFN]: [, output.headers[_xatvfn]],
|
|
876
|
-
[_VFM]: [, output.headers[_xatvfm]],
|
|
877
|
-
[_LMN]: [, output.headers[_xatlmn]],
|
|
878
|
-
[_IL]: [() => void 0 !== output.headers[_xatil], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatil])],
|
|
879
|
-
[_LO]: [, output.headers[_xatlo]],
|
|
880
|
-
[_PL]: [, output.headers[_xatpl]],
|
|
881
|
-
[_VNo]: [, output.headers[_xatvn_]],
|
|
882
|
-
[_VFNo]: [, output.headers[_xatvfn_]],
|
|
883
|
-
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateprs])],
|
|
884
|
-
[_PRS]: [, output.headers[_xatprs]],
|
|
885
|
-
[_CIT]: [, output.headers[_xatcit]],
|
|
886
|
-
[_CRT]: [, output.headers[_xatcrt]],
|
|
887
|
-
[_PET]: [, output.headers[_xatpet]]
|
|
888
|
-
});
|
|
889
|
-
const data = output.body;
|
|
890
|
-
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
891
|
-
return contents;
|
|
892
|
-
}, "de_StartCallAnalyticsStreamTranscriptionCommand");
|
|
893
|
-
var de_StartMedicalScribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
-
return de_CommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const contents = (0, import_smithy_client.map)({
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
[_SI]: [, output.headers[_xatsi]],
|
|
900
|
-
[_RI]: [, output.headers[_xari]],
|
|
901
|
-
[_LC]: [, output.headers[_xatlc]],
|
|
902
|
-
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
903
|
-
[_ME]: [, output.headers[_xatme]]
|
|
904
|
-
});
|
|
905
|
-
const data = output.body;
|
|
906
|
-
contents.ResultStream = de_MedicalScribeResultStream(data, context);
|
|
907
|
-
return contents;
|
|
908
|
-
}, "de_StartMedicalScribeStreamCommand");
|
|
909
|
-
var de_StartMedicalStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
910
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
911
|
-
return de_CommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const contents = (0, import_smithy_client.map)({
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
[_RI]: [, output.headers[_xari]],
|
|
916
|
-
[_LC]: [, output.headers[_xatlc]],
|
|
917
|
-
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
918
|
-
[_ME]: [, output.headers[_xatme]],
|
|
919
|
-
[_VN]: [, output.headers[_xatvn]],
|
|
920
|
-
[_S]: [, output.headers[_xats]],
|
|
921
|
-
[_T]: [, output.headers[_xatt]],
|
|
922
|
-
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatssl])],
|
|
923
|
-
[_SI]: [, output.headers[_xatsi]],
|
|
924
|
-
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateci])],
|
|
925
|
-
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatnoc])],
|
|
926
|
-
[_CIT]: [, output.headers[_xatcit]]
|
|
927
|
-
});
|
|
928
|
-
const data = output.body;
|
|
929
|
-
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_StartMedicalStreamTranscriptionCommand");
|
|
932
|
-
var de_StartStreamTranscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, import_smithy_client.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
[_RI]: [, output.headers[_xari]],
|
|
939
|
-
[_LC]: [, output.headers[_xatlc]],
|
|
940
|
-
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatsr])],
|
|
941
|
-
[_ME]: [, output.headers[_xatme]],
|
|
942
|
-
[_VN]: [, output.headers[_xatvn]],
|
|
943
|
-
[_SI]: [, output.headers[_xatsi]],
|
|
944
|
-
[_VFN]: [, output.headers[_xatvfn]],
|
|
945
|
-
[_VFM]: [, output.headers[_xatvfm]],
|
|
946
|
-
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatssl])],
|
|
947
|
-
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateci])],
|
|
948
|
-
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xatnoc])],
|
|
949
|
-
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, import_smithy_client.parseBoolean)(output.headers[_xateprs])],
|
|
950
|
-
[_PRS]: [, output.headers[_xatprs]],
|
|
951
|
-
[_CIT]: [, output.headers[_xatcit]],
|
|
952
|
-
[_CRT]: [, output.headers[_xatcrt]],
|
|
953
|
-
[_PET]: [, output.headers[_xatpet]],
|
|
954
|
-
[_LMN]: [, output.headers[_xatlmn]],
|
|
955
|
-
[_IL]: [() => void 0 !== output.headers[_xatil], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatil])],
|
|
956
|
-
[_LO]: [, output.headers[_xatlo]],
|
|
957
|
-
[_PL]: [, output.headers[_xatpl]],
|
|
958
|
-
[_IML]: [() => void 0 !== output.headers[_xatiml], () => (0, import_smithy_client.parseBoolean)(output.headers[_xatiml])],
|
|
959
|
-
[_VNo]: [, output.headers[_xatvn_]],
|
|
960
|
-
[_VFNo]: [, output.headers[_xatvfn_]]
|
|
961
|
-
});
|
|
962
|
-
const data = output.body;
|
|
963
|
-
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
964
|
-
return contents;
|
|
965
|
-
}, "de_StartStreamTranscriptionCommand");
|
|
966
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
|
-
const parsedOutput = {
|
|
968
|
-
...output,
|
|
969
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
970
|
-
};
|
|
971
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
972
|
-
switch (errorCode) {
|
|
973
|
-
case "BadRequestException":
|
|
974
|
-
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
975
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
976
|
-
case "InternalFailureException":
|
|
977
|
-
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
978
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
979
|
-
case "LimitExceededException":
|
|
980
|
-
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
981
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ResourceNotFoundException":
|
|
983
|
-
case "com.amazonaws.transcribestreaming#ResourceNotFoundException":
|
|
984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ConflictException":
|
|
986
|
-
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
987
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ServiceUnavailableException":
|
|
989
|
-
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
990
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
991
|
-
default:
|
|
992
|
-
const parsedBody = parsedOutput.body;
|
|
993
|
-
return throwDefaultError({
|
|
994
|
-
output,
|
|
995
|
-
parsedBody,
|
|
996
|
-
errorCode
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
}, "de_CommandError");
|
|
1000
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(TranscribeStreamingServiceException);
|
|
1001
|
-
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1002
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1003
|
-
const data = parsedOutput.body;
|
|
1004
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1005
|
-
Message: import_smithy_client.expectString
|
|
1006
|
-
});
|
|
1007
|
-
Object.assign(contents, doc);
|
|
1008
|
-
const exception = new BadRequestException({
|
|
1009
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
|
-
...contents
|
|
1011
|
-
});
|
|
1012
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1013
|
-
}, "de_BadRequestExceptionRes");
|
|
1014
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1015
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1016
|
-
const data = parsedOutput.body;
|
|
1017
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1018
|
-
Message: import_smithy_client.expectString
|
|
1019
|
-
});
|
|
1020
|
-
Object.assign(contents, doc);
|
|
1021
|
-
const exception = new ConflictException({
|
|
1022
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1023
|
-
...contents
|
|
1024
|
-
});
|
|
1025
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1026
|
-
}, "de_ConflictExceptionRes");
|
|
1027
|
-
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1028
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1029
|
-
const data = parsedOutput.body;
|
|
1030
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1031
|
-
Message: import_smithy_client.expectString
|
|
1032
|
-
});
|
|
1033
|
-
Object.assign(contents, doc);
|
|
1034
|
-
const exception = new InternalFailureException({
|
|
1035
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1036
|
-
...contents
|
|
1037
|
-
});
|
|
1038
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1039
|
-
}, "de_InternalFailureExceptionRes");
|
|
1040
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1041
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1042
|
-
const data = parsedOutput.body;
|
|
1043
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1044
|
-
Message: import_smithy_client.expectString
|
|
1045
|
-
});
|
|
1046
|
-
Object.assign(contents, doc);
|
|
1047
|
-
const exception = new LimitExceededException({
|
|
1048
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
|
-
...contents
|
|
1050
|
-
});
|
|
1051
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1052
|
-
}, "de_LimitExceededExceptionRes");
|
|
1053
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1054
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1055
|
-
const data = parsedOutput.body;
|
|
1056
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1057
|
-
Message: import_smithy_client.expectString
|
|
1058
|
-
});
|
|
1059
|
-
Object.assign(contents, doc);
|
|
1060
|
-
const exception = new ResourceNotFoundException({
|
|
1061
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1062
|
-
...contents
|
|
1063
|
-
});
|
|
1064
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1065
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1066
|
-
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1067
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1068
|
-
const data = parsedOutput.body;
|
|
1069
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1070
|
-
Message: import_smithy_client.expectString
|
|
1071
|
-
});
|
|
1072
|
-
Object.assign(contents, doc);
|
|
1073
|
-
const exception = new ServiceUnavailableException({
|
|
1074
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1075
|
-
...contents
|
|
1076
|
-
});
|
|
1077
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1078
|
-
}, "de_ServiceUnavailableExceptionRes");
|
|
1079
|
-
var se_AudioStream = /* @__PURE__ */ __name((input, context) => {
|
|
1080
|
-
const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => AudioStream.visit(event, {
|
|
1081
|
-
AudioEvent: /* @__PURE__ */ __name((value) => se_AudioEvent_event(value, context), "AudioEvent"),
|
|
1082
|
-
ConfigurationEvent: /* @__PURE__ */ __name((value) => se_ConfigurationEvent_event(value, context), "ConfigurationEvent"),
|
|
1083
|
-
_: /* @__PURE__ */ __name((value) => value, "_")
|
|
1084
|
-
}), "eventMarshallingVisitor");
|
|
1085
|
-
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
1086
|
-
}, "se_AudioStream");
|
|
1087
|
-
var se_MedicalScribeInputStream = /* @__PURE__ */ __name((input, context) => {
|
|
1088
|
-
const eventMarshallingVisitor = /* @__PURE__ */ __name((event) => MedicalScribeInputStream.visit(event, {
|
|
1089
|
-
AudioEvent: /* @__PURE__ */ __name((value) => se_MedicalScribeAudioEvent_event(value, context), "AudioEvent"),
|
|
1090
|
-
SessionControlEvent: /* @__PURE__ */ __name((value) => se_MedicalScribeSessionControlEvent_event(value, context), "SessionControlEvent"),
|
|
1091
|
-
ConfigurationEvent: /* @__PURE__ */ __name((value) => se_MedicalScribeConfigurationEvent_event(value, context), "ConfigurationEvent"),
|
|
1092
|
-
_: /* @__PURE__ */ __name((value) => value, "_")
|
|
1093
|
-
}), "eventMarshallingVisitor");
|
|
1094
|
-
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
1095
|
-
}, "se_MedicalScribeInputStream");
|
|
1096
|
-
var se_AudioEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
1097
|
-
const headers = {
|
|
1098
|
-
":event-type": { type: "string", value: "AudioEvent" },
|
|
1099
|
-
":message-type": { type: "string", value: "event" },
|
|
1100
|
-
":content-type": { type: "string", value: "application/octet-stream" }
|
|
1101
|
-
};
|
|
1102
|
-
let body = new Uint8Array();
|
|
1103
|
-
if (input.AudioChunk != null) {
|
|
1104
|
-
body = input.AudioChunk;
|
|
1105
|
-
}
|
|
1106
|
-
return { headers, body };
|
|
1107
|
-
}, "se_AudioEvent_event");
|
|
1108
|
-
var se_ConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
1109
|
-
const headers = {
|
|
1110
|
-
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
1111
|
-
":message-type": { type: "string", value: "event" },
|
|
1112
|
-
":content-type": { type: "string", value: "application/json" }
|
|
1113
|
-
};
|
|
1114
|
-
let body = new Uint8Array();
|
|
1115
|
-
body = (0, import_smithy_client._json)(input);
|
|
1116
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
1117
|
-
return { headers, body };
|
|
1118
|
-
}, "se_ConfigurationEvent_event");
|
|
1119
|
-
var se_MedicalScribeAudioEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
1120
|
-
const headers = {
|
|
1121
|
-
":event-type": { type: "string", value: "AudioEvent" },
|
|
1122
|
-
":message-type": { type: "string", value: "event" },
|
|
1123
|
-
":content-type": { type: "string", value: "application/octet-stream" }
|
|
1124
|
-
};
|
|
1125
|
-
let body = new Uint8Array();
|
|
1126
|
-
if (input.AudioChunk != null) {
|
|
1127
|
-
body = input.AudioChunk;
|
|
1128
|
-
}
|
|
1129
|
-
return { headers, body };
|
|
1130
|
-
}, "se_MedicalScribeAudioEvent_event");
|
|
1131
|
-
var se_MedicalScribeConfigurationEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
1132
|
-
const headers = {
|
|
1133
|
-
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
1134
|
-
":message-type": { type: "string", value: "event" },
|
|
1135
|
-
":content-type": { type: "string", value: "application/json" }
|
|
1136
|
-
};
|
|
1137
|
-
let body = new Uint8Array();
|
|
1138
|
-
body = (0, import_smithy_client._json)(input);
|
|
1139
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
1140
|
-
return { headers, body };
|
|
1141
|
-
}, "se_MedicalScribeConfigurationEvent_event");
|
|
1142
|
-
var se_MedicalScribeSessionControlEvent_event = /* @__PURE__ */ __name((input, context) => {
|
|
1143
|
-
const headers = {
|
|
1144
|
-
":event-type": { type: "string", value: "SessionControlEvent" },
|
|
1145
|
-
":message-type": { type: "string", value: "event" },
|
|
1146
|
-
":content-type": { type: "string", value: "application/json" }
|
|
1147
|
-
};
|
|
1148
|
-
let body = new Uint8Array();
|
|
1149
|
-
body = (0, import_smithy_client._json)(input);
|
|
1150
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
1151
|
-
return { headers, body };
|
|
1152
|
-
}, "se_MedicalScribeSessionControlEvent_event");
|
|
1153
|
-
var de_CallAnalyticsTranscriptResultStream = /* @__PURE__ */ __name((output, context) => {
|
|
1154
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1155
|
-
if (event["UtteranceEvent"] != null) {
|
|
1156
|
-
return {
|
|
1157
|
-
UtteranceEvent: await de_UtteranceEvent_event(event["UtteranceEvent"], context)
|
|
1158
|
-
};
|
|
1159
|
-
}
|
|
1160
|
-
if (event["CategoryEvent"] != null) {
|
|
1161
|
-
return {
|
|
1162
|
-
CategoryEvent: await de_CategoryEvent_event(event["CategoryEvent"], context)
|
|
1163
|
-
};
|
|
83
|
+
class TranscribeStreamingClient extends smithyClient.Client {
|
|
84
|
+
config;
|
|
85
|
+
constructor(...[configuration]) {
|
|
86
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
87
|
+
super(_config_0);
|
|
88
|
+
this.initConfig = _config_0;
|
|
89
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
90
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
91
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
92
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
93
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
94
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
95
|
+
const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
|
|
96
|
+
const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
|
|
97
|
+
const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
|
|
98
|
+
const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
|
|
99
|
+
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
100
|
+
this.config = _config_11;
|
|
101
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
104
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
105
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
106
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
107
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
108
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultTranscribeStreamingHttpAuthSchemeParametersProvider,
|
|
109
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
110
|
+
"aws.auth#sigv4": config.credentials,
|
|
111
|
+
}),
|
|
112
|
+
}));
|
|
113
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
1164
114
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context)
|
|
1168
|
-
};
|
|
115
|
+
destroy() {
|
|
116
|
+
super.destroy();
|
|
1169
117
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
return {
|
|
1177
|
-
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context)
|
|
1178
|
-
};
|
|
1179
|
-
}
|
|
1180
|
-
if (event["ConflictException"] != null) {
|
|
1181
|
-
return {
|
|
1182
|
-
ConflictException: await de_ConflictException_event(event["ConflictException"], context)
|
|
1183
|
-
};
|
|
1184
|
-
}
|
|
1185
|
-
if (event["ServiceUnavailableException"] != null) {
|
|
1186
|
-
return {
|
|
1187
|
-
ServiceUnavailableException: await de_ServiceUnavailableException_event(
|
|
1188
|
-
event["ServiceUnavailableException"],
|
|
1189
|
-
context
|
|
1190
|
-
)
|
|
1191
|
-
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class TranscribeStreamingServiceException extends smithyClient.ServiceException {
|
|
121
|
+
constructor(options) {
|
|
122
|
+
super(options);
|
|
123
|
+
Object.setPrototypeOf(this, TranscribeStreamingServiceException.prototype);
|
|
1192
124
|
}
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const ItemType = {
|
|
128
|
+
PRONUNCIATION: "pronunciation",
|
|
129
|
+
PUNCTUATION: "punctuation",
|
|
130
|
+
};
|
|
131
|
+
const ParticipantRole = {
|
|
132
|
+
AGENT: "AGENT",
|
|
133
|
+
CUSTOMER: "CUSTOMER",
|
|
134
|
+
};
|
|
135
|
+
const ContentRedactionOutput = {
|
|
136
|
+
REDACTED: "redacted",
|
|
137
|
+
REDACTED_AND_UNREDACTED: "redacted_and_unredacted",
|
|
138
|
+
};
|
|
139
|
+
exports.AudioStream = void 0;
|
|
140
|
+
(function (AudioStream) {
|
|
141
|
+
AudioStream.visit = (value, visitor) => {
|
|
142
|
+
if (value.AudioEvent !== undefined)
|
|
143
|
+
return visitor.AudioEvent(value.AudioEvent);
|
|
144
|
+
if (value.ConfigurationEvent !== undefined)
|
|
145
|
+
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
146
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
147
|
+
};
|
|
148
|
+
})(exports.AudioStream || (exports.AudioStream = {}));
|
|
149
|
+
class BadRequestException extends TranscribeStreamingServiceException {
|
|
150
|
+
name = "BadRequestException";
|
|
151
|
+
$fault = "client";
|
|
152
|
+
Message;
|
|
153
|
+
constructor(opts) {
|
|
154
|
+
super({
|
|
155
|
+
name: "BadRequestException",
|
|
156
|
+
$fault: "client",
|
|
157
|
+
...opts,
|
|
158
|
+
});
|
|
159
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
160
|
+
this.Message = opts.Message;
|
|
1202
161
|
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
162
|
+
}
|
|
163
|
+
const CallAnalyticsLanguageCode = {
|
|
164
|
+
DE_DE: "de-DE",
|
|
165
|
+
EN_AU: "en-AU",
|
|
166
|
+
EN_GB: "en-GB",
|
|
167
|
+
EN_US: "en-US",
|
|
168
|
+
ES_US: "es-US",
|
|
169
|
+
FR_CA: "fr-CA",
|
|
170
|
+
FR_FR: "fr-FR",
|
|
171
|
+
IT_IT: "it-IT",
|
|
172
|
+
PT_BR: "pt-BR",
|
|
173
|
+
};
|
|
174
|
+
class ConflictException extends TranscribeStreamingServiceException {
|
|
175
|
+
name = "ConflictException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
Message;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "ConflictException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
1207
186
|
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
187
|
+
}
|
|
188
|
+
class InternalFailureException extends TranscribeStreamingServiceException {
|
|
189
|
+
name = "InternalFailureException";
|
|
190
|
+
$fault = "server";
|
|
191
|
+
Message;
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "InternalFailureException",
|
|
195
|
+
$fault: "server",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
199
|
+
this.Message = opts.Message;
|
|
1212
200
|
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
201
|
+
}
|
|
202
|
+
class LimitExceededException extends TranscribeStreamingServiceException {
|
|
203
|
+
name = "LimitExceededException";
|
|
204
|
+
$fault = "client";
|
|
205
|
+
Message;
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "LimitExceededException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
213
|
+
this.Message = opts.Message;
|
|
1217
214
|
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
215
|
+
}
|
|
216
|
+
class ServiceUnavailableException extends TranscribeStreamingServiceException {
|
|
217
|
+
name = "ServiceUnavailableException";
|
|
218
|
+
$fault = "server";
|
|
219
|
+
Message;
|
|
220
|
+
constructor(opts) {
|
|
221
|
+
super({
|
|
222
|
+
name: "ServiceUnavailableException",
|
|
223
|
+
$fault: "server",
|
|
224
|
+
...opts,
|
|
225
|
+
});
|
|
226
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
227
|
+
this.Message = opts.Message;
|
|
1222
228
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
229
|
+
}
|
|
230
|
+
const Sentiment = {
|
|
231
|
+
MIXED: "MIXED",
|
|
232
|
+
NEGATIVE: "NEGATIVE",
|
|
233
|
+
NEUTRAL: "NEUTRAL",
|
|
234
|
+
POSITIVE: "POSITIVE",
|
|
235
|
+
};
|
|
236
|
+
exports.CallAnalyticsTranscriptResultStream = void 0;
|
|
237
|
+
(function (CallAnalyticsTranscriptResultStream) {
|
|
238
|
+
CallAnalyticsTranscriptResultStream.visit = (value, visitor) => {
|
|
239
|
+
if (value.UtteranceEvent !== undefined)
|
|
240
|
+
return visitor.UtteranceEvent(value.UtteranceEvent);
|
|
241
|
+
if (value.CategoryEvent !== undefined)
|
|
242
|
+
return visitor.CategoryEvent(value.CategoryEvent);
|
|
243
|
+
if (value.BadRequestException !== undefined)
|
|
244
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
245
|
+
if (value.LimitExceededException !== undefined)
|
|
246
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
247
|
+
if (value.InternalFailureException !== undefined)
|
|
248
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
249
|
+
if (value.ConflictException !== undefined)
|
|
250
|
+
return visitor.ConflictException(value.ConflictException);
|
|
251
|
+
if (value.ServiceUnavailableException !== undefined)
|
|
252
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
253
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
254
|
+
};
|
|
255
|
+
})(exports.CallAnalyticsTranscriptResultStream || (exports.CallAnalyticsTranscriptResultStream = {}));
|
|
256
|
+
const ClinicalNoteGenerationStatus = {
|
|
257
|
+
COMPLETED: "COMPLETED",
|
|
258
|
+
FAILED: "FAILED",
|
|
259
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
260
|
+
};
|
|
261
|
+
const MedicalScribeNoteTemplate = {
|
|
262
|
+
BEHAVIORAL_SOAP: "BEHAVIORAL_SOAP",
|
|
263
|
+
BIRP: "BIRP",
|
|
264
|
+
DAP: "DAP",
|
|
265
|
+
GIRPP: "GIRPP",
|
|
266
|
+
HISTORY_AND_PHYSICAL: "HISTORY_AND_PHYSICAL",
|
|
267
|
+
PHYSICAL_SOAP: "PHYSICAL_SOAP",
|
|
268
|
+
SIRP: "SIRP",
|
|
269
|
+
};
|
|
270
|
+
const ContentIdentificationType = {
|
|
271
|
+
PII: "PII",
|
|
272
|
+
};
|
|
273
|
+
const ContentRedactionType = {
|
|
274
|
+
PII: "PII",
|
|
275
|
+
};
|
|
276
|
+
const MedicalScribeParticipantRole = {
|
|
277
|
+
CLINICIAN: "CLINICIAN",
|
|
278
|
+
PATIENT: "PATIENT",
|
|
279
|
+
};
|
|
280
|
+
const MedicalScribeLanguageCode = {
|
|
281
|
+
EN_US: "en-US",
|
|
282
|
+
};
|
|
283
|
+
const MedicalScribeMediaEncoding = {
|
|
284
|
+
FLAC: "flac",
|
|
285
|
+
OGG_OPUS: "ogg-opus",
|
|
286
|
+
PCM: "pcm",
|
|
287
|
+
};
|
|
288
|
+
const MedicalScribeStreamStatus = {
|
|
289
|
+
COMPLETED: "COMPLETED",
|
|
290
|
+
FAILED: "FAILED",
|
|
291
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
292
|
+
PAUSED: "PAUSED",
|
|
293
|
+
};
|
|
294
|
+
const MedicalScribeVocabularyFilterMethod = {
|
|
295
|
+
MASK: "mask",
|
|
296
|
+
REMOVE: "remove",
|
|
297
|
+
TAG: "tag",
|
|
298
|
+
};
|
|
299
|
+
class ResourceNotFoundException extends TranscribeStreamingServiceException {
|
|
300
|
+
name = "ResourceNotFoundException";
|
|
301
|
+
$fault = "client";
|
|
302
|
+
Message;
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "ResourceNotFoundException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
...opts,
|
|
308
|
+
});
|
|
309
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
310
|
+
this.Message = opts.Message;
|
|
1230
311
|
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
312
|
+
}
|
|
313
|
+
const LanguageCode = {
|
|
314
|
+
AF_ZA: "af-ZA",
|
|
315
|
+
AR_AE: "ar-AE",
|
|
316
|
+
AR_SA: "ar-SA",
|
|
317
|
+
CA_ES: "ca-ES",
|
|
318
|
+
CS_CZ: "cs-CZ",
|
|
319
|
+
DA_DK: "da-DK",
|
|
320
|
+
DE_CH: "de-CH",
|
|
321
|
+
DE_DE: "de-DE",
|
|
322
|
+
EL_GR: "el-GR",
|
|
323
|
+
EN_AB: "en-AB",
|
|
324
|
+
EN_AU: "en-AU",
|
|
325
|
+
EN_GB: "en-GB",
|
|
326
|
+
EN_IE: "en-IE",
|
|
327
|
+
EN_IN: "en-IN",
|
|
328
|
+
EN_NZ: "en-NZ",
|
|
329
|
+
EN_US: "en-US",
|
|
330
|
+
EN_WL: "en-WL",
|
|
331
|
+
EN_ZA: "en-ZA",
|
|
332
|
+
ES_ES: "es-ES",
|
|
333
|
+
ES_US: "es-US",
|
|
334
|
+
EU_ES: "eu-ES",
|
|
335
|
+
FA_IR: "fa-IR",
|
|
336
|
+
FI_FI: "fi-FI",
|
|
337
|
+
FR_CA: "fr-CA",
|
|
338
|
+
FR_FR: "fr-FR",
|
|
339
|
+
GL_ES: "gl-ES",
|
|
340
|
+
HE_IL: "he-IL",
|
|
341
|
+
HI_IN: "hi-IN",
|
|
342
|
+
HR_HR: "hr-HR",
|
|
343
|
+
ID_ID: "id-ID",
|
|
344
|
+
IT_IT: "it-IT",
|
|
345
|
+
JA_JP: "ja-JP",
|
|
346
|
+
KO_KR: "ko-KR",
|
|
347
|
+
LV_LV: "lv-LV",
|
|
348
|
+
MS_MY: "ms-MY",
|
|
349
|
+
NL_NL: "nl-NL",
|
|
350
|
+
NO_NO: "no-NO",
|
|
351
|
+
PL_PL: "pl-PL",
|
|
352
|
+
PT_BR: "pt-BR",
|
|
353
|
+
PT_PT: "pt-PT",
|
|
354
|
+
RO_RO: "ro-RO",
|
|
355
|
+
RU_RU: "ru-RU",
|
|
356
|
+
SK_SK: "sk-SK",
|
|
357
|
+
SO_SO: "so-SO",
|
|
358
|
+
SR_RS: "sr-RS",
|
|
359
|
+
SV_SE: "sv-SE",
|
|
360
|
+
TH_TH: "th-TH",
|
|
361
|
+
TL_PH: "tl-PH",
|
|
362
|
+
UK_UA: "uk-UA",
|
|
363
|
+
VI_VN: "vi-VN",
|
|
364
|
+
ZH_CN: "zh-CN",
|
|
365
|
+
ZH_HK: "zh-HK",
|
|
366
|
+
ZH_TW: "zh-TW",
|
|
367
|
+
ZU_ZA: "zu-ZA",
|
|
368
|
+
};
|
|
369
|
+
const MediaEncoding = {
|
|
370
|
+
FLAC: "flac",
|
|
371
|
+
OGG_OPUS: "ogg-opus",
|
|
372
|
+
PCM: "pcm",
|
|
373
|
+
};
|
|
374
|
+
const MedicalContentIdentificationType = {
|
|
375
|
+
PHI: "PHI",
|
|
376
|
+
};
|
|
377
|
+
const Pronouns = {
|
|
378
|
+
HE_HIM: "HE_HIM",
|
|
379
|
+
SHE_HER: "SHE_HER",
|
|
380
|
+
THEY_THEM: "THEY_THEM",
|
|
381
|
+
};
|
|
382
|
+
const MedicalScribeSessionControlEventType = {
|
|
383
|
+
END_OF_SESSION: "END_OF_SESSION",
|
|
384
|
+
};
|
|
385
|
+
exports.MedicalScribeInputStream = void 0;
|
|
386
|
+
(function (MedicalScribeInputStream) {
|
|
387
|
+
MedicalScribeInputStream.visit = (value, visitor) => {
|
|
388
|
+
if (value.AudioEvent !== undefined)
|
|
389
|
+
return visitor.AudioEvent(value.AudioEvent);
|
|
390
|
+
if (value.SessionControlEvent !== undefined)
|
|
391
|
+
return visitor.SessionControlEvent(value.SessionControlEvent);
|
|
392
|
+
if (value.ConfigurationEvent !== undefined)
|
|
393
|
+
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
394
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
395
|
+
};
|
|
396
|
+
})(exports.MedicalScribeInputStream || (exports.MedicalScribeInputStream = {}));
|
|
397
|
+
const MedicalScribeTranscriptItemType = {
|
|
398
|
+
PRONUNCIATION: "pronunciation",
|
|
399
|
+
PUNCTUATION: "punctuation",
|
|
400
|
+
};
|
|
401
|
+
exports.MedicalScribeResultStream = void 0;
|
|
402
|
+
(function (MedicalScribeResultStream) {
|
|
403
|
+
MedicalScribeResultStream.visit = (value, visitor) => {
|
|
404
|
+
if (value.TranscriptEvent !== undefined)
|
|
405
|
+
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
406
|
+
if (value.BadRequestException !== undefined)
|
|
407
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
408
|
+
if (value.LimitExceededException !== undefined)
|
|
409
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
410
|
+
if (value.InternalFailureException !== undefined)
|
|
411
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
412
|
+
if (value.ConflictException !== undefined)
|
|
413
|
+
return visitor.ConflictException(value.ConflictException);
|
|
414
|
+
if (value.ServiceUnavailableException !== undefined)
|
|
415
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
416
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
417
|
+
};
|
|
418
|
+
})(exports.MedicalScribeResultStream || (exports.MedicalScribeResultStream = {}));
|
|
419
|
+
exports.MedicalTranscriptResultStream = void 0;
|
|
420
|
+
(function (MedicalTranscriptResultStream) {
|
|
421
|
+
MedicalTranscriptResultStream.visit = (value, visitor) => {
|
|
422
|
+
if (value.TranscriptEvent !== undefined)
|
|
423
|
+
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
424
|
+
if (value.BadRequestException !== undefined)
|
|
425
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
426
|
+
if (value.LimitExceededException !== undefined)
|
|
427
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
428
|
+
if (value.InternalFailureException !== undefined)
|
|
429
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
430
|
+
if (value.ConflictException !== undefined)
|
|
431
|
+
return visitor.ConflictException(value.ConflictException);
|
|
432
|
+
if (value.ServiceUnavailableException !== undefined)
|
|
433
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
434
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
435
|
+
};
|
|
436
|
+
})(exports.MedicalTranscriptResultStream || (exports.MedicalTranscriptResultStream = {}));
|
|
437
|
+
const PartialResultsStability = {
|
|
438
|
+
HIGH: "high",
|
|
439
|
+
LOW: "low",
|
|
440
|
+
MEDIUM: "medium",
|
|
441
|
+
};
|
|
442
|
+
const Specialty = {
|
|
443
|
+
CARDIOLOGY: "CARDIOLOGY",
|
|
444
|
+
NEUROLOGY: "NEUROLOGY",
|
|
445
|
+
ONCOLOGY: "ONCOLOGY",
|
|
446
|
+
PRIMARYCARE: "PRIMARYCARE",
|
|
447
|
+
RADIOLOGY: "RADIOLOGY",
|
|
448
|
+
UROLOGY: "UROLOGY",
|
|
449
|
+
};
|
|
450
|
+
const VocabularyFilterMethod = {
|
|
451
|
+
MASK: "mask",
|
|
452
|
+
REMOVE: "remove",
|
|
453
|
+
TAG: "tag",
|
|
454
|
+
};
|
|
455
|
+
const Type = {
|
|
456
|
+
CONVERSATION: "CONVERSATION",
|
|
457
|
+
DICTATION: "DICTATION",
|
|
458
|
+
};
|
|
459
|
+
exports.TranscriptResultStream = void 0;
|
|
460
|
+
(function (TranscriptResultStream) {
|
|
461
|
+
TranscriptResultStream.visit = (value, visitor) => {
|
|
462
|
+
if (value.TranscriptEvent !== undefined)
|
|
463
|
+
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
464
|
+
if (value.BadRequestException !== undefined)
|
|
465
|
+
return visitor.BadRequestException(value.BadRequestException);
|
|
466
|
+
if (value.LimitExceededException !== undefined)
|
|
467
|
+
return visitor.LimitExceededException(value.LimitExceededException);
|
|
468
|
+
if (value.InternalFailureException !== undefined)
|
|
469
|
+
return visitor.InternalFailureException(value.InternalFailureException);
|
|
470
|
+
if (value.ConflictException !== undefined)
|
|
471
|
+
return visitor.ConflictException(value.ConflictException);
|
|
472
|
+
if (value.ServiceUnavailableException !== undefined)
|
|
473
|
+
return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
|
|
474
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
475
|
+
};
|
|
476
|
+
})(exports.TranscriptResultStream || (exports.TranscriptResultStream = {}));
|
|
477
|
+
const AudioStreamFilterSensitiveLog = (obj) => {
|
|
478
|
+
if (obj.AudioEvent !== undefined)
|
|
479
|
+
return { AudioEvent: obj.AudioEvent };
|
|
480
|
+
if (obj.ConfigurationEvent !== undefined)
|
|
481
|
+
return { ConfigurationEvent: obj.ConfigurationEvent };
|
|
482
|
+
if (obj.$unknown !== undefined)
|
|
483
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
484
|
+
};
|
|
485
|
+
const CallAnalyticsTranscriptResultStreamFilterSensitiveLog = (obj) => {
|
|
486
|
+
if (obj.UtteranceEvent !== undefined)
|
|
487
|
+
return { UtteranceEvent: obj.UtteranceEvent };
|
|
488
|
+
if (obj.CategoryEvent !== undefined)
|
|
489
|
+
return { CategoryEvent: obj.CategoryEvent };
|
|
490
|
+
if (obj.BadRequestException !== undefined)
|
|
491
|
+
return { BadRequestException: obj.BadRequestException };
|
|
492
|
+
if (obj.LimitExceededException !== undefined)
|
|
493
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
494
|
+
if (obj.InternalFailureException !== undefined)
|
|
495
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
496
|
+
if (obj.ConflictException !== undefined)
|
|
497
|
+
return { ConflictException: obj.ConflictException };
|
|
498
|
+
if (obj.ServiceUnavailableException !== undefined)
|
|
499
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
500
|
+
if (obj.$unknown !== undefined)
|
|
501
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
502
|
+
};
|
|
503
|
+
const MedicalScribePatientContextFilterSensitiveLog = (obj) => ({
|
|
504
|
+
...obj,
|
|
505
|
+
...(obj.Pronouns && { Pronouns: smithyClient.SENSITIVE_STRING }),
|
|
506
|
+
});
|
|
507
|
+
const MedicalScribeContextFilterSensitiveLog = (obj) => ({
|
|
508
|
+
...obj,
|
|
509
|
+
...(obj.PatientContext && { PatientContext: MedicalScribePatientContextFilterSensitiveLog(obj.PatientContext) }),
|
|
510
|
+
});
|
|
511
|
+
const MedicalScribeConfigurationEventFilterSensitiveLog = (obj) => ({
|
|
512
|
+
...obj,
|
|
513
|
+
...(obj.MedicalScribeContext && {
|
|
514
|
+
MedicalScribeContext: MedicalScribeContextFilterSensitiveLog(obj.MedicalScribeContext),
|
|
515
|
+
}),
|
|
516
|
+
});
|
|
517
|
+
const MedicalScribeInputStreamFilterSensitiveLog = (obj) => {
|
|
518
|
+
if (obj.AudioEvent !== undefined)
|
|
519
|
+
return { AudioEvent: obj.AudioEvent };
|
|
520
|
+
if (obj.SessionControlEvent !== undefined)
|
|
521
|
+
return { SessionControlEvent: obj.SessionControlEvent };
|
|
522
|
+
if (obj.ConfigurationEvent !== undefined)
|
|
523
|
+
return { ConfigurationEvent: MedicalScribeConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
|
|
524
|
+
if (obj.$unknown !== undefined)
|
|
525
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
526
|
+
};
|
|
527
|
+
const MedicalScribeResultStreamFilterSensitiveLog = (obj) => {
|
|
528
|
+
if (obj.TranscriptEvent !== undefined)
|
|
529
|
+
return { TranscriptEvent: obj.TranscriptEvent };
|
|
530
|
+
if (obj.BadRequestException !== undefined)
|
|
531
|
+
return { BadRequestException: obj.BadRequestException };
|
|
532
|
+
if (obj.LimitExceededException !== undefined)
|
|
533
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
534
|
+
if (obj.InternalFailureException !== undefined)
|
|
535
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
536
|
+
if (obj.ConflictException !== undefined)
|
|
537
|
+
return { ConflictException: obj.ConflictException };
|
|
538
|
+
if (obj.ServiceUnavailableException !== undefined)
|
|
539
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
540
|
+
if (obj.$unknown !== undefined)
|
|
541
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
542
|
+
};
|
|
543
|
+
const MedicalTranscriptResultStreamFilterSensitiveLog = (obj) => {
|
|
544
|
+
if (obj.TranscriptEvent !== undefined)
|
|
545
|
+
return { TranscriptEvent: obj.TranscriptEvent };
|
|
546
|
+
if (obj.BadRequestException !== undefined)
|
|
547
|
+
return { BadRequestException: obj.BadRequestException };
|
|
548
|
+
if (obj.LimitExceededException !== undefined)
|
|
549
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
550
|
+
if (obj.InternalFailureException !== undefined)
|
|
551
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
552
|
+
if (obj.ConflictException !== undefined)
|
|
553
|
+
return { ConflictException: obj.ConflictException };
|
|
554
|
+
if (obj.ServiceUnavailableException !== undefined)
|
|
555
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
556
|
+
if (obj.$unknown !== undefined)
|
|
557
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
558
|
+
};
|
|
559
|
+
const StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
560
|
+
...obj,
|
|
561
|
+
...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
|
|
562
|
+
});
|
|
563
|
+
const StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
564
|
+
...obj,
|
|
565
|
+
...(obj.CallAnalyticsTranscriptResultStream && { CallAnalyticsTranscriptResultStream: "STREAMING_CONTENT" }),
|
|
566
|
+
});
|
|
567
|
+
const StartMedicalScribeStreamRequestFilterSensitiveLog = (obj) => ({
|
|
568
|
+
...obj,
|
|
569
|
+
...(obj.InputStream && { InputStream: "STREAMING_CONTENT" }),
|
|
570
|
+
});
|
|
571
|
+
const StartMedicalScribeStreamResponseFilterSensitiveLog = (obj) => ({
|
|
572
|
+
...obj,
|
|
573
|
+
...(obj.ResultStream && { ResultStream: "STREAMING_CONTENT" }),
|
|
574
|
+
});
|
|
575
|
+
const StartMedicalStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
576
|
+
...obj,
|
|
577
|
+
...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
|
|
578
|
+
});
|
|
579
|
+
const StartMedicalStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
580
|
+
...obj,
|
|
581
|
+
...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
|
|
582
|
+
});
|
|
583
|
+
const StartStreamTranscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
584
|
+
...obj,
|
|
585
|
+
...(obj.AudioStream && { AudioStream: "STREAMING_CONTENT" }),
|
|
586
|
+
});
|
|
587
|
+
const TranscriptResultStreamFilterSensitiveLog = (obj) => {
|
|
588
|
+
if (obj.TranscriptEvent !== undefined)
|
|
589
|
+
return { TranscriptEvent: obj.TranscriptEvent };
|
|
590
|
+
if (obj.BadRequestException !== undefined)
|
|
591
|
+
return { BadRequestException: obj.BadRequestException };
|
|
592
|
+
if (obj.LimitExceededException !== undefined)
|
|
593
|
+
return { LimitExceededException: obj.LimitExceededException };
|
|
594
|
+
if (obj.InternalFailureException !== undefined)
|
|
595
|
+
return { InternalFailureException: obj.InternalFailureException };
|
|
596
|
+
if (obj.ConflictException !== undefined)
|
|
597
|
+
return { ConflictException: obj.ConflictException };
|
|
598
|
+
if (obj.ServiceUnavailableException !== undefined)
|
|
599
|
+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
600
|
+
if (obj.$unknown !== undefined)
|
|
601
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
602
|
+
};
|
|
603
|
+
const StartStreamTranscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
604
|
+
...obj,
|
|
605
|
+
...(obj.TranscriptResultStream && { TranscriptResultStream: "STREAMING_CONTENT" }),
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
const se_GetMedicalScribeStreamCommand = async (input, context) => {
|
|
609
|
+
const b = core.requestBuilder(input, context);
|
|
610
|
+
const headers = {};
|
|
611
|
+
b.bp("/medical-scribe-stream/{SessionId}");
|
|
612
|
+
b.p("SessionId", () => input.SessionId, "{SessionId}", false);
|
|
613
|
+
let body;
|
|
614
|
+
b.m("GET").h(headers).b(body);
|
|
615
|
+
return b.build();
|
|
616
|
+
};
|
|
617
|
+
const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, context) => {
|
|
618
|
+
const b = core.requestBuilder(input, context);
|
|
619
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
620
|
+
"content-type": "application/json",
|
|
621
|
+
[_xatlc]: input[_LC],
|
|
622
|
+
[_xatsr]: [() => smithyClient.isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
623
|
+
[_xatme]: input[_ME],
|
|
624
|
+
[_xatvn]: input[_VN],
|
|
625
|
+
[_xatsi]: input[_SI],
|
|
626
|
+
[_xatvfn]: input[_VFN],
|
|
627
|
+
[_xatvfm]: input[_VFM],
|
|
628
|
+
[_xatlmn]: input[_LMN],
|
|
629
|
+
[_xatil]: [() => smithyClient.isSerializableHeaderValue(input[_IL]), () => input[_IL].toString()],
|
|
630
|
+
[_xatlo]: input[_LO],
|
|
631
|
+
[_xatpl]: input[_PL],
|
|
632
|
+
[_xatvn_]: input[_VNo],
|
|
633
|
+
[_xatvfn_]: input[_VFNo],
|
|
634
|
+
[_xateprs]: [() => smithyClient.isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
635
|
+
[_xatprs]: input[_PRS],
|
|
636
|
+
[_xatcit]: input[_CIT],
|
|
637
|
+
[_xatcrt]: input[_CRT],
|
|
638
|
+
[_xatpet]: input[_PET],
|
|
639
|
+
});
|
|
640
|
+
b.bp("/call-analytics-stream-transcription");
|
|
641
|
+
let body;
|
|
642
|
+
if (input.AudioStream !== undefined) {
|
|
643
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
1240
644
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
645
|
+
b.m("POST").h(headers).b(body);
|
|
646
|
+
return b.build();
|
|
647
|
+
};
|
|
648
|
+
const se_StartMedicalScribeStreamCommand = async (input, context) => {
|
|
649
|
+
const b = core.requestBuilder(input, context);
|
|
650
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
651
|
+
"content-type": "application/json",
|
|
652
|
+
[_xatsi]: input[_SI],
|
|
653
|
+
[_xatlc]: input[_LC],
|
|
654
|
+
[_xatsr]: [() => smithyClient.isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
655
|
+
[_xatme]: input[_ME],
|
|
656
|
+
});
|
|
657
|
+
b.bp("/medical-scribe-stream");
|
|
658
|
+
let body;
|
|
659
|
+
if (input.InputStream !== undefined) {
|
|
660
|
+
body = se_MedicalScribeInputStream(input.InputStream, context);
|
|
1245
661
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
662
|
+
b.m("POST").h(headers).b(body);
|
|
663
|
+
return b.build();
|
|
664
|
+
};
|
|
665
|
+
const se_StartMedicalStreamTranscriptionCommand = async (input, context) => {
|
|
666
|
+
const b = core.requestBuilder(input, context);
|
|
667
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
668
|
+
"content-type": "application/json",
|
|
669
|
+
[_xatlc]: input[_LC],
|
|
670
|
+
[_xatsr]: [() => smithyClient.isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
671
|
+
[_xatme]: input[_ME],
|
|
672
|
+
[_xatvn]: input[_VN],
|
|
673
|
+
[_xats]: input[_S],
|
|
674
|
+
[_xatt]: input[_T],
|
|
675
|
+
[_xatssl]: [() => smithyClient.isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
676
|
+
[_xatsi]: input[_SI],
|
|
677
|
+
[_xateci]: [() => smithyClient.isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
678
|
+
[_xatnoc]: [() => smithyClient.isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
679
|
+
[_xatcit]: input[_CIT],
|
|
680
|
+
});
|
|
681
|
+
b.bp("/medical-stream-transcription");
|
|
682
|
+
let body;
|
|
683
|
+
if (input.AudioStream !== undefined) {
|
|
684
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
1250
685
|
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
686
|
+
b.m("POST").h(headers).b(body);
|
|
687
|
+
return b.build();
|
|
688
|
+
};
|
|
689
|
+
const se_StartStreamTranscriptionCommand = async (input, context) => {
|
|
690
|
+
const b = core.requestBuilder(input, context);
|
|
691
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
692
|
+
"content-type": "application/json",
|
|
693
|
+
[_xatlc]: input[_LC],
|
|
694
|
+
[_xatsr]: [() => smithyClient.isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
695
|
+
[_xatme]: input[_ME],
|
|
696
|
+
[_xatvn]: input[_VN],
|
|
697
|
+
[_xatsi]: input[_SI],
|
|
698
|
+
[_xatvfn]: input[_VFN],
|
|
699
|
+
[_xatvfm]: input[_VFM],
|
|
700
|
+
[_xatssl]: [() => smithyClient.isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
701
|
+
[_xateci]: [() => smithyClient.isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
702
|
+
[_xatnoc]: [() => smithyClient.isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
703
|
+
[_xateprs]: [() => smithyClient.isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
704
|
+
[_xatprs]: input[_PRS],
|
|
705
|
+
[_xatcit]: input[_CIT],
|
|
706
|
+
[_xatcrt]: input[_CRT],
|
|
707
|
+
[_xatpet]: input[_PET],
|
|
708
|
+
[_xatlmn]: input[_LMN],
|
|
709
|
+
[_xatil]: [() => smithyClient.isSerializableHeaderValue(input[_IL]), () => input[_IL].toString()],
|
|
710
|
+
[_xatlo]: input[_LO],
|
|
711
|
+
[_xatpl]: input[_PL],
|
|
712
|
+
[_xatiml]: [() => smithyClient.isSerializableHeaderValue(input[_IML]), () => input[_IML].toString()],
|
|
713
|
+
[_xatvn_]: input[_VNo],
|
|
714
|
+
[_xatvfn_]: input[_VFNo],
|
|
715
|
+
});
|
|
716
|
+
b.bp("/stream-transcription");
|
|
717
|
+
let body;
|
|
718
|
+
if (input.AudioStream !== undefined) {
|
|
719
|
+
body = se_AudioStream(input.AudioStream, context);
|
|
1255
720
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
721
|
+
b.m("POST").h(headers).b(body);
|
|
722
|
+
return b.build();
|
|
723
|
+
};
|
|
724
|
+
const de_GetMedicalScribeStreamCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
1260
727
|
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
)
|
|
1267
|
-
|
|
728
|
+
const contents = smithyClient.map({
|
|
729
|
+
$metadata: deserializeMetadata(output),
|
|
730
|
+
});
|
|
731
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
732
|
+
const doc = smithyClient.take(data, {
|
|
733
|
+
MedicalScribeStreamDetails: (_) => de_MedicalScribeStreamDetails(_),
|
|
734
|
+
});
|
|
735
|
+
Object.assign(contents, doc);
|
|
736
|
+
return contents;
|
|
737
|
+
};
|
|
738
|
+
const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
+
return de_CommandError(output, context);
|
|
1268
741
|
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
742
|
+
const contents = smithyClient.map({
|
|
743
|
+
$metadata: deserializeMetadata(output),
|
|
744
|
+
[_RI]: [, output.headers[_xari]],
|
|
745
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
746
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => smithyClient.strictParseInt32(output.headers[_xatsr])],
|
|
747
|
+
[_ME]: [, output.headers[_xatme]],
|
|
748
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
749
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
750
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
751
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
752
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
753
|
+
[_IL]: [() => void 0 !== output.headers[_xatil], () => smithyClient.parseBoolean(output.headers[_xatil])],
|
|
754
|
+
[_LO]: [, output.headers[_xatlo]],
|
|
755
|
+
[_PL]: [, output.headers[_xatpl]],
|
|
756
|
+
[_VNo]: [, output.headers[_xatvn_]],
|
|
757
|
+
[_VFNo]: [, output.headers[_xatvfn_]],
|
|
758
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => smithyClient.parseBoolean(output.headers[_xateprs])],
|
|
759
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
760
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
761
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
762
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
763
|
+
});
|
|
764
|
+
const data = output.body;
|
|
765
|
+
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
766
|
+
return contents;
|
|
767
|
+
};
|
|
768
|
+
const de_StartMedicalScribeStreamCommand = async (output, context) => {
|
|
769
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
+
return de_CommandError(output, context);
|
|
1278
771
|
}
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
772
|
+
const contents = smithyClient.map({
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
775
|
+
[_RI]: [, output.headers[_xari]],
|
|
776
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
777
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => smithyClient.strictParseInt32(output.headers[_xatsr])],
|
|
778
|
+
[_ME]: [, output.headers[_xatme]],
|
|
779
|
+
});
|
|
780
|
+
const data = output.body;
|
|
781
|
+
contents.ResultStream = de_MedicalScribeResultStream(data, context);
|
|
782
|
+
return contents;
|
|
783
|
+
};
|
|
784
|
+
const de_StartMedicalStreamTranscriptionCommand = async (output, context) => {
|
|
785
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
786
|
+
return de_CommandError(output, context);
|
|
1283
787
|
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
788
|
+
const contents = smithyClient.map({
|
|
789
|
+
$metadata: deserializeMetadata(output),
|
|
790
|
+
[_RI]: [, output.headers[_xari]],
|
|
791
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
792
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => smithyClient.strictParseInt32(output.headers[_xatsr])],
|
|
793
|
+
[_ME]: [, output.headers[_xatme]],
|
|
794
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
795
|
+
[_S]: [, output.headers[_xats]],
|
|
796
|
+
[_T]: [, output.headers[_xatt]],
|
|
797
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => smithyClient.parseBoolean(output.headers[_xatssl])],
|
|
798
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
799
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => smithyClient.parseBoolean(output.headers[_xateci])],
|
|
800
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => smithyClient.strictParseInt32(output.headers[_xatnoc])],
|
|
801
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
802
|
+
});
|
|
803
|
+
const data = output.body;
|
|
804
|
+
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
805
|
+
return contents;
|
|
806
|
+
};
|
|
807
|
+
const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
+
return de_CommandError(output, context);
|
|
1288
810
|
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
811
|
+
const contents = smithyClient.map({
|
|
812
|
+
$metadata: deserializeMetadata(output),
|
|
813
|
+
[_RI]: [, output.headers[_xari]],
|
|
814
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
815
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => smithyClient.strictParseInt32(output.headers[_xatsr])],
|
|
816
|
+
[_ME]: [, output.headers[_xatme]],
|
|
817
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
818
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
819
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
820
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
821
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => smithyClient.parseBoolean(output.headers[_xatssl])],
|
|
822
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => smithyClient.parseBoolean(output.headers[_xateci])],
|
|
823
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => smithyClient.strictParseInt32(output.headers[_xatnoc])],
|
|
824
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => smithyClient.parseBoolean(output.headers[_xateprs])],
|
|
825
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
826
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
827
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
828
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
829
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
830
|
+
[_IL]: [() => void 0 !== output.headers[_xatil], () => smithyClient.parseBoolean(output.headers[_xatil])],
|
|
831
|
+
[_LO]: [, output.headers[_xatlo]],
|
|
832
|
+
[_PL]: [, output.headers[_xatpl]],
|
|
833
|
+
[_IML]: [() => void 0 !== output.headers[_xatiml], () => smithyClient.parseBoolean(output.headers[_xatiml])],
|
|
834
|
+
[_VNo]: [, output.headers[_xatvn_]],
|
|
835
|
+
[_VFNo]: [, output.headers[_xatvfn_]],
|
|
836
|
+
});
|
|
837
|
+
const data = output.body;
|
|
838
|
+
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
839
|
+
return contents;
|
|
840
|
+
};
|
|
841
|
+
const de_CommandError = async (output, context) => {
|
|
842
|
+
const parsedOutput = {
|
|
843
|
+
...output,
|
|
844
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
845
|
+
};
|
|
846
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
+
switch (errorCode) {
|
|
848
|
+
case "BadRequestException":
|
|
849
|
+
case "com.amazonaws.transcribestreaming#BadRequestException":
|
|
850
|
+
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
851
|
+
case "InternalFailureException":
|
|
852
|
+
case "com.amazonaws.transcribestreaming#InternalFailureException":
|
|
853
|
+
throw await de_InternalFailureExceptionRes(parsedOutput);
|
|
854
|
+
case "LimitExceededException":
|
|
855
|
+
case "com.amazonaws.transcribestreaming#LimitExceededException":
|
|
856
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
857
|
+
case "ResourceNotFoundException":
|
|
858
|
+
case "com.amazonaws.transcribestreaming#ResourceNotFoundException":
|
|
859
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
860
|
+
case "ConflictException":
|
|
861
|
+
case "com.amazonaws.transcribestreaming#ConflictException":
|
|
862
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
863
|
+
case "ServiceUnavailableException":
|
|
864
|
+
case "com.amazonaws.transcribestreaming#ServiceUnavailableException":
|
|
865
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
866
|
+
default:
|
|
867
|
+
const parsedBody = parsedOutput.body;
|
|
868
|
+
return throwDefaultError({
|
|
869
|
+
output,
|
|
870
|
+
parsedBody,
|
|
871
|
+
errorCode,
|
|
872
|
+
});
|
|
1293
873
|
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
874
|
+
};
|
|
875
|
+
const throwDefaultError = smithyClient.withBaseException(TranscribeStreamingServiceException);
|
|
876
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
877
|
+
const contents = smithyClient.map({});
|
|
878
|
+
const data = parsedOutput.body;
|
|
879
|
+
const doc = smithyClient.take(data, {
|
|
880
|
+
Message: smithyClient.expectString,
|
|
881
|
+
});
|
|
882
|
+
Object.assign(contents, doc);
|
|
883
|
+
const exception = new BadRequestException({
|
|
884
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
885
|
+
...contents,
|
|
886
|
+
});
|
|
887
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
888
|
+
};
|
|
889
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
890
|
+
const contents = smithyClient.map({});
|
|
891
|
+
const data = parsedOutput.body;
|
|
892
|
+
const doc = smithyClient.take(data, {
|
|
893
|
+
Message: smithyClient.expectString,
|
|
894
|
+
});
|
|
895
|
+
Object.assign(contents, doc);
|
|
896
|
+
const exception = new ConflictException({
|
|
897
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
898
|
+
...contents,
|
|
899
|
+
});
|
|
900
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
901
|
+
};
|
|
902
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
903
|
+
const contents = smithyClient.map({});
|
|
904
|
+
const data = parsedOutput.body;
|
|
905
|
+
const doc = smithyClient.take(data, {
|
|
906
|
+
Message: smithyClient.expectString,
|
|
907
|
+
});
|
|
908
|
+
Object.assign(contents, doc);
|
|
909
|
+
const exception = new InternalFailureException({
|
|
910
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
911
|
+
...contents,
|
|
912
|
+
});
|
|
913
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
914
|
+
};
|
|
915
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
916
|
+
const contents = smithyClient.map({});
|
|
917
|
+
const data = parsedOutput.body;
|
|
918
|
+
const doc = smithyClient.take(data, {
|
|
919
|
+
Message: smithyClient.expectString,
|
|
920
|
+
});
|
|
921
|
+
Object.assign(contents, doc);
|
|
922
|
+
const exception = new LimitExceededException({
|
|
923
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
924
|
+
...contents,
|
|
925
|
+
});
|
|
926
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
927
|
+
};
|
|
928
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
929
|
+
const contents = smithyClient.map({});
|
|
930
|
+
const data = parsedOutput.body;
|
|
931
|
+
const doc = smithyClient.take(data, {
|
|
932
|
+
Message: smithyClient.expectString,
|
|
933
|
+
});
|
|
934
|
+
Object.assign(contents, doc);
|
|
935
|
+
const exception = new ResourceNotFoundException({
|
|
936
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
937
|
+
...contents,
|
|
938
|
+
});
|
|
939
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
940
|
+
};
|
|
941
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
942
|
+
const contents = smithyClient.map({});
|
|
943
|
+
const data = parsedOutput.body;
|
|
944
|
+
const doc = smithyClient.take(data, {
|
|
945
|
+
Message: smithyClient.expectString,
|
|
946
|
+
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
948
|
+
const exception = new ServiceUnavailableException({
|
|
949
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
950
|
+
...contents,
|
|
951
|
+
});
|
|
952
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
953
|
+
};
|
|
954
|
+
const se_AudioStream = (input, context) => {
|
|
955
|
+
const eventMarshallingVisitor = (event) => exports.AudioStream.visit(event, {
|
|
956
|
+
AudioEvent: (value) => se_AudioEvent_event(value),
|
|
957
|
+
ConfigurationEvent: (value) => se_ConfigurationEvent_event(value, context),
|
|
958
|
+
_: (value) => value,
|
|
959
|
+
});
|
|
960
|
+
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
961
|
+
};
|
|
962
|
+
const se_MedicalScribeInputStream = (input, context) => {
|
|
963
|
+
const eventMarshallingVisitor = (event) => exports.MedicalScribeInputStream.visit(event, {
|
|
964
|
+
AudioEvent: (value) => se_MedicalScribeAudioEvent_event(value),
|
|
965
|
+
SessionControlEvent: (value) => se_MedicalScribeSessionControlEvent_event(value, context),
|
|
966
|
+
ConfigurationEvent: (value) => se_MedicalScribeConfigurationEvent_event(value, context),
|
|
967
|
+
_: (value) => value,
|
|
968
|
+
});
|
|
969
|
+
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
970
|
+
};
|
|
971
|
+
const se_AudioEvent_event = (input, context) => {
|
|
972
|
+
const headers = {
|
|
973
|
+
":event-type": { type: "string", value: "AudioEvent" },
|
|
974
|
+
":message-type": { type: "string", value: "event" },
|
|
975
|
+
":content-type": { type: "string", value: "application/octet-stream" },
|
|
976
|
+
};
|
|
977
|
+
let body = new Uint8Array();
|
|
978
|
+
if (input.AudioChunk != null) {
|
|
979
|
+
body = input.AudioChunk;
|
|
1298
980
|
}
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
981
|
+
return { headers, body };
|
|
982
|
+
};
|
|
983
|
+
const se_ConfigurationEvent_event = (input, context) => {
|
|
984
|
+
const headers = {
|
|
985
|
+
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
986
|
+
":message-type": { type: "string", value: "event" },
|
|
987
|
+
":content-type": { type: "string", value: "application/json" },
|
|
988
|
+
};
|
|
989
|
+
let body = new Uint8Array();
|
|
990
|
+
body = smithyClient._json(input);
|
|
991
|
+
body = context.utf8Decoder(JSON.stringify(body));
|
|
992
|
+
return { headers, body };
|
|
993
|
+
};
|
|
994
|
+
const se_MedicalScribeAudioEvent_event = (input, context) => {
|
|
995
|
+
const headers = {
|
|
996
|
+
":event-type": { type: "string", value: "AudioEvent" },
|
|
997
|
+
":message-type": { type: "string", value: "event" },
|
|
998
|
+
":content-type": { type: "string", value: "application/octet-stream" },
|
|
999
|
+
};
|
|
1000
|
+
let body = new Uint8Array();
|
|
1001
|
+
if (input.AudioChunk != null) {
|
|
1002
|
+
body = input.AudioChunk;
|
|
1306
1003
|
}
|
|
1307
|
-
return {
|
|
1308
|
-
});
|
|
1309
|
-
}, "de_TranscriptResultStream");
|
|
1310
|
-
var de_BadRequestException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1314
|
-
};
|
|
1315
|
-
return de_BadRequestExceptionRes(parsedOutput, context);
|
|
1316
|
-
}, "de_BadRequestException_event");
|
|
1317
|
-
var de_CategoryEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1318
|
-
const contents = {};
|
|
1319
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1320
|
-
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
1321
|
-
return contents;
|
|
1322
|
-
}, "de_CategoryEvent_event");
|
|
1323
|
-
var de_ConflictException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1324
|
-
const parsedOutput = {
|
|
1325
|
-
...output,
|
|
1326
|
-
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1327
|
-
};
|
|
1328
|
-
return de_ConflictExceptionRes(parsedOutput, context);
|
|
1329
|
-
}, "de_ConflictException_event");
|
|
1330
|
-
var de_InternalFailureException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1331
|
-
const parsedOutput = {
|
|
1332
|
-
...output,
|
|
1333
|
-
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1334
|
-
};
|
|
1335
|
-
return de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1336
|
-
}, "de_InternalFailureException_event");
|
|
1337
|
-
var de_LimitExceededException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1341
|
-
};
|
|
1342
|
-
return de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1343
|
-
}, "de_LimitExceededException_event");
|
|
1344
|
-
var de_MedicalScribeTranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
|
-
const contents = {};
|
|
1346
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1347
|
-
Object.assign(contents, de_MedicalScribeTranscriptEvent(data, context));
|
|
1348
|
-
return contents;
|
|
1349
|
-
}, "de_MedicalScribeTranscriptEvent_event");
|
|
1350
|
-
var de_MedicalTranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
|
-
const contents = {};
|
|
1352
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1353
|
-
Object.assign(contents, de_MedicalTranscriptEvent(data, context));
|
|
1354
|
-
return contents;
|
|
1355
|
-
}, "de_MedicalTranscriptEvent_event");
|
|
1356
|
-
var de_ServiceUnavailableException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1357
|
-
const parsedOutput = {
|
|
1358
|
-
...output,
|
|
1359
|
-
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
1360
|
-
};
|
|
1361
|
-
return de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1362
|
-
}, "de_ServiceUnavailableException_event");
|
|
1363
|
-
var de_TranscriptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
|
-
const contents = {};
|
|
1365
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1366
|
-
Object.assign(contents, de_TranscriptEvent(data, context));
|
|
1367
|
-
return contents;
|
|
1368
|
-
}, "de_TranscriptEvent_event");
|
|
1369
|
-
var de_UtteranceEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1370
|
-
const contents = {};
|
|
1371
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1372
|
-
Object.assign(contents, de_UtteranceEvent(data, context));
|
|
1373
|
-
return contents;
|
|
1374
|
-
}, "de_UtteranceEvent_event");
|
|
1375
|
-
var de_Alternative = /* @__PURE__ */ __name((output, context) => {
|
|
1376
|
-
return (0, import_smithy_client.take)(output, {
|
|
1377
|
-
Entities: /* @__PURE__ */ __name((_) => de_EntityList(_, context), "Entities"),
|
|
1378
|
-
Items: /* @__PURE__ */ __name((_) => de_ItemList(_, context), "Items"),
|
|
1379
|
-
Transcript: import_smithy_client.expectString
|
|
1380
|
-
});
|
|
1381
|
-
}, "de_Alternative");
|
|
1382
|
-
var de_AlternativeList = /* @__PURE__ */ __name((output, context) => {
|
|
1383
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1384
|
-
return de_Alternative(entry, context);
|
|
1385
|
-
});
|
|
1386
|
-
return retVal;
|
|
1387
|
-
}, "de_AlternativeList");
|
|
1388
|
-
var de_CallAnalyticsEntity = /* @__PURE__ */ __name((output, context) => {
|
|
1389
|
-
return (0, import_smithy_client.take)(output, {
|
|
1390
|
-
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1391
|
-
Category: import_smithy_client.expectString,
|
|
1392
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1393
|
-
Content: import_smithy_client.expectString,
|
|
1394
|
-
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1395
|
-
Type: import_smithy_client.expectString
|
|
1396
|
-
});
|
|
1397
|
-
}, "de_CallAnalyticsEntity");
|
|
1398
|
-
var de_CallAnalyticsEntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1399
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1400
|
-
return de_CallAnalyticsEntity(entry, context);
|
|
1401
|
-
});
|
|
1402
|
-
return retVal;
|
|
1403
|
-
}, "de_CallAnalyticsEntityList");
|
|
1404
|
-
var de_CallAnalyticsItem = /* @__PURE__ */ __name((output, context) => {
|
|
1405
|
-
return (0, import_smithy_client.take)(output, {
|
|
1406
|
-
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1407
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1408
|
-
Content: import_smithy_client.expectString,
|
|
1409
|
-
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1410
|
-
Stable: import_smithy_client.expectBoolean,
|
|
1411
|
-
Type: import_smithy_client.expectString,
|
|
1412
|
-
VocabularyFilterMatch: import_smithy_client.expectBoolean
|
|
1413
|
-
});
|
|
1414
|
-
}, "de_CallAnalyticsItem");
|
|
1415
|
-
var de_CallAnalyticsItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1416
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1417
|
-
return de_CallAnalyticsItem(entry, context);
|
|
1418
|
-
});
|
|
1419
|
-
return retVal;
|
|
1420
|
-
}, "de_CallAnalyticsItemList");
|
|
1421
|
-
var de_CallAnalyticsLanguageIdentification = /* @__PURE__ */ __name((output, context) => {
|
|
1422
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1423
|
-
return de_CallAnalyticsLanguageWithScore(entry, context);
|
|
1424
|
-
});
|
|
1425
|
-
return retVal;
|
|
1426
|
-
}, "de_CallAnalyticsLanguageIdentification");
|
|
1427
|
-
var de_CallAnalyticsLanguageWithScore = /* @__PURE__ */ __name((output, context) => {
|
|
1428
|
-
return (0, import_smithy_client.take)(output, {
|
|
1429
|
-
LanguageCode: import_smithy_client.expectString,
|
|
1430
|
-
Score: import_smithy_client.limitedParseDouble
|
|
1431
|
-
});
|
|
1432
|
-
}, "de_CallAnalyticsLanguageWithScore");
|
|
1433
|
-
var de_Entity = /* @__PURE__ */ __name((output, context) => {
|
|
1434
|
-
return (0, import_smithy_client.take)(output, {
|
|
1435
|
-
Category: import_smithy_client.expectString,
|
|
1436
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1437
|
-
Content: import_smithy_client.expectString,
|
|
1438
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1439
|
-
StartTime: import_smithy_client.limitedParseDouble,
|
|
1440
|
-
Type: import_smithy_client.expectString
|
|
1441
|
-
});
|
|
1442
|
-
}, "de_Entity");
|
|
1443
|
-
var de_EntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1444
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1445
|
-
return de_Entity(entry, context);
|
|
1446
|
-
});
|
|
1447
|
-
return retVal;
|
|
1448
|
-
}, "de_EntityList");
|
|
1449
|
-
var de_Item = /* @__PURE__ */ __name((output, context) => {
|
|
1450
|
-
return (0, import_smithy_client.take)(output, {
|
|
1451
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1452
|
-
Content: import_smithy_client.expectString,
|
|
1453
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1454
|
-
Speaker: import_smithy_client.expectString,
|
|
1455
|
-
Stable: import_smithy_client.expectBoolean,
|
|
1456
|
-
StartTime: import_smithy_client.limitedParseDouble,
|
|
1457
|
-
Type: import_smithy_client.expectString,
|
|
1458
|
-
VocabularyFilterMatch: import_smithy_client.expectBoolean
|
|
1459
|
-
});
|
|
1460
|
-
}, "de_Item");
|
|
1461
|
-
var de_ItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1462
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1463
|
-
return de_Item(entry, context);
|
|
1464
|
-
});
|
|
1465
|
-
return retVal;
|
|
1466
|
-
}, "de_ItemList");
|
|
1467
|
-
var de_LanguageIdentification = /* @__PURE__ */ __name((output, context) => {
|
|
1468
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1469
|
-
return de_LanguageWithScore(entry, context);
|
|
1470
|
-
});
|
|
1471
|
-
return retVal;
|
|
1472
|
-
}, "de_LanguageIdentification");
|
|
1473
|
-
var de_LanguageWithScore = /* @__PURE__ */ __name((output, context) => {
|
|
1474
|
-
return (0, import_smithy_client.take)(output, {
|
|
1475
|
-
LanguageCode: import_smithy_client.expectString,
|
|
1476
|
-
Score: import_smithy_client.limitedParseDouble
|
|
1477
|
-
});
|
|
1478
|
-
}, "de_LanguageWithScore");
|
|
1479
|
-
var de_MedicalAlternative = /* @__PURE__ */ __name((output, context) => {
|
|
1480
|
-
return (0, import_smithy_client.take)(output, {
|
|
1481
|
-
Entities: /* @__PURE__ */ __name((_) => de_MedicalEntityList(_, context), "Entities"),
|
|
1482
|
-
Items: /* @__PURE__ */ __name((_) => de_MedicalItemList(_, context), "Items"),
|
|
1483
|
-
Transcript: import_smithy_client.expectString
|
|
1484
|
-
});
|
|
1485
|
-
}, "de_MedicalAlternative");
|
|
1486
|
-
var de_MedicalAlternativeList = /* @__PURE__ */ __name((output, context) => {
|
|
1487
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1488
|
-
return de_MedicalAlternative(entry, context);
|
|
1489
|
-
});
|
|
1490
|
-
return retVal;
|
|
1491
|
-
}, "de_MedicalAlternativeList");
|
|
1492
|
-
var de_MedicalEntity = /* @__PURE__ */ __name((output, context) => {
|
|
1493
|
-
return (0, import_smithy_client.take)(output, {
|
|
1494
|
-
Category: import_smithy_client.expectString,
|
|
1495
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1496
|
-
Content: import_smithy_client.expectString,
|
|
1497
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1498
|
-
StartTime: import_smithy_client.limitedParseDouble
|
|
1499
|
-
});
|
|
1500
|
-
}, "de_MedicalEntity");
|
|
1501
|
-
var de_MedicalEntityList = /* @__PURE__ */ __name((output, context) => {
|
|
1502
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1503
|
-
return de_MedicalEntity(entry, context);
|
|
1504
|
-
});
|
|
1505
|
-
return retVal;
|
|
1506
|
-
}, "de_MedicalEntityList");
|
|
1507
|
-
var de_MedicalItem = /* @__PURE__ */ __name((output, context) => {
|
|
1508
|
-
return (0, import_smithy_client.take)(output, {
|
|
1509
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1510
|
-
Content: import_smithy_client.expectString,
|
|
1511
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1512
|
-
Speaker: import_smithy_client.expectString,
|
|
1513
|
-
StartTime: import_smithy_client.limitedParseDouble,
|
|
1514
|
-
Type: import_smithy_client.expectString
|
|
1515
|
-
});
|
|
1516
|
-
}, "de_MedicalItem");
|
|
1517
|
-
var de_MedicalItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1518
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1519
|
-
return de_MedicalItem(entry, context);
|
|
1520
|
-
});
|
|
1521
|
-
return retVal;
|
|
1522
|
-
}, "de_MedicalItemList");
|
|
1523
|
-
var de_MedicalResult = /* @__PURE__ */ __name((output, context) => {
|
|
1524
|
-
return (0, import_smithy_client.take)(output, {
|
|
1525
|
-
Alternatives: /* @__PURE__ */ __name((_) => de_MedicalAlternativeList(_, context), "Alternatives"),
|
|
1526
|
-
ChannelId: import_smithy_client.expectString,
|
|
1527
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1528
|
-
IsPartial: import_smithy_client.expectBoolean,
|
|
1529
|
-
ResultId: import_smithy_client.expectString,
|
|
1530
|
-
StartTime: import_smithy_client.limitedParseDouble
|
|
1531
|
-
});
|
|
1532
|
-
}, "de_MedicalResult");
|
|
1533
|
-
var de_MedicalResultList = /* @__PURE__ */ __name((output, context) => {
|
|
1534
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1535
|
-
return de_MedicalResult(entry, context);
|
|
1536
|
-
});
|
|
1537
|
-
return retVal;
|
|
1538
|
-
}, "de_MedicalResultList");
|
|
1539
|
-
var de_MedicalScribeStreamDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1540
|
-
return (0, import_smithy_client.take)(output, {
|
|
1541
|
-
ChannelDefinitions: import_smithy_client._json,
|
|
1542
|
-
EncryptionSettings: import_smithy_client._json,
|
|
1543
|
-
LanguageCode: import_smithy_client.expectString,
|
|
1544
|
-
MediaEncoding: import_smithy_client.expectString,
|
|
1545
|
-
MediaSampleRateHertz: import_smithy_client.expectInt32,
|
|
1546
|
-
MedicalScribeContextProvided: import_smithy_client.expectBoolean,
|
|
1547
|
-
PostStreamAnalyticsResult: import_smithy_client._json,
|
|
1548
|
-
PostStreamAnalyticsSettings: import_smithy_client._json,
|
|
1549
|
-
ResourceAccessRoleArn: import_smithy_client.expectString,
|
|
1550
|
-
SessionId: import_smithy_client.expectString,
|
|
1551
|
-
StreamCreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreatedAt"),
|
|
1552
|
-
StreamEndedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamEndedAt"),
|
|
1553
|
-
StreamStatus: import_smithy_client.expectString,
|
|
1554
|
-
VocabularyFilterMethod: import_smithy_client.expectString,
|
|
1555
|
-
VocabularyFilterName: import_smithy_client.expectString,
|
|
1556
|
-
VocabularyName: import_smithy_client.expectString
|
|
1557
|
-
});
|
|
1558
|
-
}, "de_MedicalScribeStreamDetails");
|
|
1559
|
-
var de_MedicalScribeTranscriptEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1560
|
-
return (0, import_smithy_client.take)(output, {
|
|
1561
|
-
TranscriptSegment: /* @__PURE__ */ __name((_) => de_MedicalScribeTranscriptSegment(_, context), "TranscriptSegment")
|
|
1562
|
-
});
|
|
1563
|
-
}, "de_MedicalScribeTranscriptEvent");
|
|
1564
|
-
var de_MedicalScribeTranscriptItem = /* @__PURE__ */ __name((output, context) => {
|
|
1565
|
-
return (0, import_smithy_client.take)(output, {
|
|
1566
|
-
BeginAudioTime: import_smithy_client.limitedParseDouble,
|
|
1567
|
-
Confidence: import_smithy_client.limitedParseDouble,
|
|
1568
|
-
Content: import_smithy_client.expectString,
|
|
1569
|
-
EndAudioTime: import_smithy_client.limitedParseDouble,
|
|
1570
|
-
Type: import_smithy_client.expectString,
|
|
1571
|
-
VocabularyFilterMatch: import_smithy_client.expectBoolean
|
|
1572
|
-
});
|
|
1573
|
-
}, "de_MedicalScribeTranscriptItem");
|
|
1574
|
-
var de_MedicalScribeTranscriptItemList = /* @__PURE__ */ __name((output, context) => {
|
|
1575
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1576
|
-
return de_MedicalScribeTranscriptItem(entry, context);
|
|
1577
|
-
});
|
|
1578
|
-
return retVal;
|
|
1579
|
-
}, "de_MedicalScribeTranscriptItemList");
|
|
1580
|
-
var de_MedicalScribeTranscriptSegment = /* @__PURE__ */ __name((output, context) => {
|
|
1581
|
-
return (0, import_smithy_client.take)(output, {
|
|
1582
|
-
BeginAudioTime: import_smithy_client.limitedParseDouble,
|
|
1583
|
-
ChannelId: import_smithy_client.expectString,
|
|
1584
|
-
Content: import_smithy_client.expectString,
|
|
1585
|
-
EndAudioTime: import_smithy_client.limitedParseDouble,
|
|
1586
|
-
IsPartial: import_smithy_client.expectBoolean,
|
|
1587
|
-
Items: /* @__PURE__ */ __name((_) => de_MedicalScribeTranscriptItemList(_, context), "Items"),
|
|
1588
|
-
SegmentId: import_smithy_client.expectString
|
|
1589
|
-
});
|
|
1590
|
-
}, "de_MedicalScribeTranscriptSegment");
|
|
1591
|
-
var de_MedicalTranscript = /* @__PURE__ */ __name((output, context) => {
|
|
1592
|
-
return (0, import_smithy_client.take)(output, {
|
|
1593
|
-
Results: /* @__PURE__ */ __name((_) => de_MedicalResultList(_, context), "Results")
|
|
1594
|
-
});
|
|
1595
|
-
}, "de_MedicalTranscript");
|
|
1596
|
-
var de_MedicalTranscriptEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1597
|
-
return (0, import_smithy_client.take)(output, {
|
|
1598
|
-
Transcript: /* @__PURE__ */ __name((_) => de_MedicalTranscript(_, context), "Transcript")
|
|
1599
|
-
});
|
|
1600
|
-
}, "de_MedicalTranscriptEvent");
|
|
1601
|
-
var de_Result = /* @__PURE__ */ __name((output, context) => {
|
|
1602
|
-
return (0, import_smithy_client.take)(output, {
|
|
1603
|
-
Alternatives: /* @__PURE__ */ __name((_) => de_AlternativeList(_, context), "Alternatives"),
|
|
1604
|
-
ChannelId: import_smithy_client.expectString,
|
|
1605
|
-
EndTime: import_smithy_client.limitedParseDouble,
|
|
1606
|
-
IsPartial: import_smithy_client.expectBoolean,
|
|
1607
|
-
LanguageCode: import_smithy_client.expectString,
|
|
1608
|
-
LanguageIdentification: /* @__PURE__ */ __name((_) => de_LanguageIdentification(_, context), "LanguageIdentification"),
|
|
1609
|
-
ResultId: import_smithy_client.expectString,
|
|
1610
|
-
StartTime: import_smithy_client.limitedParseDouble
|
|
1611
|
-
});
|
|
1612
|
-
}, "de_Result");
|
|
1613
|
-
var de_ResultList = /* @__PURE__ */ __name((output, context) => {
|
|
1614
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1615
|
-
return de_Result(entry, context);
|
|
1616
|
-
});
|
|
1617
|
-
return retVal;
|
|
1618
|
-
}, "de_ResultList");
|
|
1619
|
-
var de_Transcript = /* @__PURE__ */ __name((output, context) => {
|
|
1620
|
-
return (0, import_smithy_client.take)(output, {
|
|
1621
|
-
Results: /* @__PURE__ */ __name((_) => de_ResultList(_, context), "Results")
|
|
1622
|
-
});
|
|
1623
|
-
}, "de_Transcript");
|
|
1624
|
-
var de_TranscriptEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1625
|
-
return (0, import_smithy_client.take)(output, {
|
|
1626
|
-
Transcript: /* @__PURE__ */ __name((_) => de_Transcript(_, context), "Transcript")
|
|
1627
|
-
});
|
|
1628
|
-
}, "de_TranscriptEvent");
|
|
1629
|
-
var de_UtteranceEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1630
|
-
return (0, import_smithy_client.take)(output, {
|
|
1631
|
-
BeginOffsetMillis: import_smithy_client.expectLong,
|
|
1632
|
-
EndOffsetMillis: import_smithy_client.expectLong,
|
|
1633
|
-
Entities: /* @__PURE__ */ __name((_) => de_CallAnalyticsEntityList(_, context), "Entities"),
|
|
1634
|
-
IsPartial: import_smithy_client.expectBoolean,
|
|
1635
|
-
IssuesDetected: import_smithy_client._json,
|
|
1636
|
-
Items: /* @__PURE__ */ __name((_) => de_CallAnalyticsItemList(_, context), "Items"),
|
|
1637
|
-
LanguageCode: import_smithy_client.expectString,
|
|
1638
|
-
LanguageIdentification: /* @__PURE__ */ __name((_) => de_CallAnalyticsLanguageIdentification(_, context), "LanguageIdentification"),
|
|
1639
|
-
ParticipantRole: import_smithy_client.expectString,
|
|
1640
|
-
Sentiment: import_smithy_client.expectString,
|
|
1641
|
-
Transcript: import_smithy_client.expectString,
|
|
1642
|
-
UtteranceId: import_smithy_client.expectString
|
|
1643
|
-
});
|
|
1644
|
-
}, "de_UtteranceEvent");
|
|
1645
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1646
|
-
httpStatusCode: output.statusCode,
|
|
1647
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1648
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1649
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1650
|
-
}), "deserializeMetadata");
|
|
1651
|
-
var _CIT = "ContentIdentificationType";
|
|
1652
|
-
var _CRT = "ContentRedactionType";
|
|
1653
|
-
var _ECI = "EnableChannelIdentification";
|
|
1654
|
-
var _EPRS = "EnablePartialResultsStabilization";
|
|
1655
|
-
var _IL = "IdentifyLanguage";
|
|
1656
|
-
var _IML = "IdentifyMultipleLanguages";
|
|
1657
|
-
var _LC = "LanguageCode";
|
|
1658
|
-
var _LMN = "LanguageModelName";
|
|
1659
|
-
var _LO = "LanguageOptions";
|
|
1660
|
-
var _ME = "MediaEncoding";
|
|
1661
|
-
var _MSRH = "MediaSampleRateHertz";
|
|
1662
|
-
var _NOC = "NumberOfChannels";
|
|
1663
|
-
var _PET = "PiiEntityTypes";
|
|
1664
|
-
var _PL = "PreferredLanguage";
|
|
1665
|
-
var _PRS = "PartialResultsStability";
|
|
1666
|
-
var _RI = "RequestId";
|
|
1667
|
-
var _S = "Specialty";
|
|
1668
|
-
var _SI = "SessionId";
|
|
1669
|
-
var _SSL = "ShowSpeakerLabel";
|
|
1670
|
-
var _T = "Type";
|
|
1671
|
-
var _VFM = "VocabularyFilterMethod";
|
|
1672
|
-
var _VFN = "VocabularyFilterName";
|
|
1673
|
-
var _VFNo = "VocabularyFilterNames";
|
|
1674
|
-
var _VN = "VocabularyName";
|
|
1675
|
-
var _VNo = "VocabularyNames";
|
|
1676
|
-
var _xari = "x-amzn-request-id";
|
|
1677
|
-
var _xatcit = "x-amzn-transcribe-content-identification-type";
|
|
1678
|
-
var _xatcrt = "x-amzn-transcribe-content-redaction-type";
|
|
1679
|
-
var _xateci = "x-amzn-transcribe-enable-channel-identification";
|
|
1680
|
-
var _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
|
|
1681
|
-
var _xatil = "x-amzn-transcribe-identify-language";
|
|
1682
|
-
var _xatiml = "x-amzn-transcribe-identify-multiple-languages";
|
|
1683
|
-
var _xatlc = "x-amzn-transcribe-language-code";
|
|
1684
|
-
var _xatlmn = "x-amzn-transcribe-language-model-name";
|
|
1685
|
-
var _xatlo = "x-amzn-transcribe-language-options";
|
|
1686
|
-
var _xatme = "x-amzn-transcribe-media-encoding";
|
|
1687
|
-
var _xatnoc = "x-amzn-transcribe-number-of-channels";
|
|
1688
|
-
var _xatpet = "x-amzn-transcribe-pii-entity-types";
|
|
1689
|
-
var _xatpl = "x-amzn-transcribe-preferred-language";
|
|
1690
|
-
var _xatprs = "x-amzn-transcribe-partial-results-stability";
|
|
1691
|
-
var _xats = "x-amzn-transcribe-specialty";
|
|
1692
|
-
var _xatsi = "x-amzn-transcribe-session-id";
|
|
1693
|
-
var _xatsr = "x-amzn-transcribe-sample-rate";
|
|
1694
|
-
var _xatssl = "x-amzn-transcribe-show-speaker-label";
|
|
1695
|
-
var _xatt = "x-amzn-transcribe-type";
|
|
1696
|
-
var _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
|
|
1697
|
-
var _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
|
|
1698
|
-
var _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
|
|
1699
|
-
var _xatvn = "x-amzn-transcribe-vocabulary-name";
|
|
1700
|
-
var _xatvn_ = "x-amzn-transcribe-vocabulary-names";
|
|
1701
|
-
|
|
1702
|
-
// src/commands/GetMedicalScribeStreamCommand.ts
|
|
1703
|
-
var GetMedicalScribeStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1704
|
-
return [
|
|
1705
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1706
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1707
|
-
];
|
|
1708
|
-
}).s("Transcribe", "GetMedicalScribeStream", {}).n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand").f(void 0, void 0).ser(se_GetMedicalScribeStreamCommand).de(de_GetMedicalScribeStreamCommand).build() {
|
|
1709
|
-
static {
|
|
1710
|
-
__name(this, "GetMedicalScribeStreamCommand");
|
|
1711
|
-
}
|
|
1004
|
+
return { headers, body };
|
|
1712
1005
|
};
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1724
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1725
|
-
(0, import_middleware_eventstream.getEventStreamPlugin)(config),
|
|
1726
|
-
(0, import_middleware_websocket.getWebSocketPlugin)(config, {
|
|
1727
|
-
headerPrefix: "x-amzn-transcribe-"
|
|
1728
|
-
}),
|
|
1729
|
-
(0, import_middleware_sdk_transcribe_streaming.getTranscribeStreamingPlugin)(config)
|
|
1730
|
-
];
|
|
1731
|
-
}).s("Transcribe", "StartCallAnalyticsStreamTranscription", {
|
|
1732
|
-
/**
|
|
1733
|
-
* @internal
|
|
1734
|
-
*/
|
|
1735
|
-
eventStream: {
|
|
1736
|
-
input: true,
|
|
1737
|
-
output: true
|
|
1738
|
-
}
|
|
1739
|
-
}).n("TranscribeStreamingClient", "StartCallAnalyticsStreamTranscriptionCommand").f(
|
|
1740
|
-
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
1741
|
-
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog
|
|
1742
|
-
).ser(se_StartCallAnalyticsStreamTranscriptionCommand).de(de_StartCallAnalyticsStreamTranscriptionCommand).build() {
|
|
1743
|
-
static {
|
|
1744
|
-
__name(this, "StartCallAnalyticsStreamTranscriptionCommand");
|
|
1745
|
-
}
|
|
1006
|
+
const se_MedicalScribeConfigurationEvent_event = (input, context) => {
|
|
1007
|
+
const headers = {
|
|
1008
|
+
":event-type": { type: "string", value: "ConfigurationEvent" },
|
|
1009
|
+
":message-type": { type: "string", value: "event" },
|
|
1010
|
+
":content-type": { type: "string", value: "application/json" },
|
|
1011
|
+
};
|
|
1012
|
+
let body = new Uint8Array();
|
|
1013
|
+
body = smithyClient._json(input);
|
|
1014
|
+
body = context.utf8Decoder(JSON.stringify(body));
|
|
1015
|
+
return { headers, body };
|
|
1746
1016
|
};
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1758
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1759
|
-
(0, import_middleware_eventstream.getEventStreamPlugin)(config),
|
|
1760
|
-
(0, import_middleware_websocket.getWebSocketPlugin)(config, {
|
|
1761
|
-
headerPrefix: "x-amzn-transcribe-"
|
|
1762
|
-
}),
|
|
1763
|
-
(0, import_middleware_sdk_transcribe_streaming.getTranscribeStreamingPlugin)(config)
|
|
1764
|
-
];
|
|
1765
|
-
}).s("Transcribe", "StartMedicalScribeStream", {
|
|
1766
|
-
/**
|
|
1767
|
-
* @internal
|
|
1768
|
-
*/
|
|
1769
|
-
eventStream: {
|
|
1770
|
-
input: true,
|
|
1771
|
-
output: true
|
|
1772
|
-
}
|
|
1773
|
-
}).n("TranscribeStreamingClient", "StartMedicalScribeStreamCommand").f(StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog).ser(se_StartMedicalScribeStreamCommand).de(de_StartMedicalScribeStreamCommand).build() {
|
|
1774
|
-
static {
|
|
1775
|
-
__name(this, "StartMedicalScribeStreamCommand");
|
|
1776
|
-
}
|
|
1017
|
+
const se_MedicalScribeSessionControlEvent_event = (input, context) => {
|
|
1018
|
+
const headers = {
|
|
1019
|
+
":event-type": { type: "string", value: "SessionControlEvent" },
|
|
1020
|
+
":message-type": { type: "string", value: "event" },
|
|
1021
|
+
":content-type": { type: "string", value: "application/json" },
|
|
1022
|
+
};
|
|
1023
|
+
let body = new Uint8Array();
|
|
1024
|
+
body = smithyClient._json(input);
|
|
1025
|
+
body = context.utf8Decoder(JSON.stringify(body));
|
|
1026
|
+
return { headers, body };
|
|
1777
1027
|
};
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1028
|
+
const de_CallAnalyticsTranscriptResultStream = (output, context) => {
|
|
1029
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1030
|
+
if (event["UtteranceEvent"] != null) {
|
|
1031
|
+
return {
|
|
1032
|
+
UtteranceEvent: await de_UtteranceEvent_event(event["UtteranceEvent"], context),
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
if (event["CategoryEvent"] != null) {
|
|
1036
|
+
return {
|
|
1037
|
+
CategoryEvent: await de_CategoryEvent_event(event["CategoryEvent"], context),
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
if (event["BadRequestException"] != null) {
|
|
1041
|
+
return {
|
|
1042
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
if (event["LimitExceededException"] != null) {
|
|
1046
|
+
return {
|
|
1047
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
if (event["InternalFailureException"] != null) {
|
|
1051
|
+
return {
|
|
1052
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
if (event["ConflictException"] != null) {
|
|
1056
|
+
return {
|
|
1057
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
1061
|
+
return {
|
|
1062
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
return { $unknown: event };
|
|
1066
|
+
});
|
|
1811
1067
|
};
|
|
1068
|
+
const de_MedicalScribeResultStream = (output, context) => {
|
|
1069
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1070
|
+
if (event["TranscriptEvent"] != null) {
|
|
1071
|
+
return {
|
|
1072
|
+
TranscriptEvent: await de_MedicalScribeTranscriptEvent_event(event["TranscriptEvent"], context),
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
if (event["BadRequestException"] != null) {
|
|
1076
|
+
return {
|
|
1077
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
if (event["LimitExceededException"] != null) {
|
|
1081
|
+
return {
|
|
1082
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
if (event["InternalFailureException"] != null) {
|
|
1086
|
+
return {
|
|
1087
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
if (event["ConflictException"] != null) {
|
|
1091
|
+
return {
|
|
1092
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
1096
|
+
return {
|
|
1097
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
return { $unknown: event };
|
|
1101
|
+
});
|
|
1102
|
+
};
|
|
1103
|
+
const de_MedicalTranscriptResultStream = (output, context) => {
|
|
1104
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1105
|
+
if (event["TranscriptEvent"] != null) {
|
|
1106
|
+
return {
|
|
1107
|
+
TranscriptEvent: await de_MedicalTranscriptEvent_event(event["TranscriptEvent"], context),
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
if (event["BadRequestException"] != null) {
|
|
1111
|
+
return {
|
|
1112
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
if (event["LimitExceededException"] != null) {
|
|
1116
|
+
return {
|
|
1117
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
if (event["InternalFailureException"] != null) {
|
|
1121
|
+
return {
|
|
1122
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
if (event["ConflictException"] != null) {
|
|
1126
|
+
return {
|
|
1127
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
1131
|
+
return {
|
|
1132
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
return { $unknown: event };
|
|
1136
|
+
});
|
|
1137
|
+
};
|
|
1138
|
+
const de_TranscriptResultStream = (output, context) => {
|
|
1139
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1140
|
+
if (event["TranscriptEvent"] != null) {
|
|
1141
|
+
return {
|
|
1142
|
+
TranscriptEvent: await de_TranscriptEvent_event(event["TranscriptEvent"], context),
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
if (event["BadRequestException"] != null) {
|
|
1146
|
+
return {
|
|
1147
|
+
BadRequestException: await de_BadRequestException_event(event["BadRequestException"], context),
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
if (event["LimitExceededException"] != null) {
|
|
1151
|
+
return {
|
|
1152
|
+
LimitExceededException: await de_LimitExceededException_event(event["LimitExceededException"], context),
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
if (event["InternalFailureException"] != null) {
|
|
1156
|
+
return {
|
|
1157
|
+
InternalFailureException: await de_InternalFailureException_event(event["InternalFailureException"], context),
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
if (event["ConflictException"] != null) {
|
|
1161
|
+
return {
|
|
1162
|
+
ConflictException: await de_ConflictException_event(event["ConflictException"], context),
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
1166
|
+
return {
|
|
1167
|
+
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
return { $unknown: event };
|
|
1171
|
+
});
|
|
1172
|
+
};
|
|
1173
|
+
const de_BadRequestException_event = async (output, context) => {
|
|
1174
|
+
const parsedOutput = {
|
|
1175
|
+
...output,
|
|
1176
|
+
body: await core$1.parseJsonBody(output.body, context),
|
|
1177
|
+
};
|
|
1178
|
+
return de_BadRequestExceptionRes(parsedOutput);
|
|
1179
|
+
};
|
|
1180
|
+
const de_CategoryEvent_event = async (output, context) => {
|
|
1181
|
+
const contents = {};
|
|
1182
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1183
|
+
Object.assign(contents, smithyClient._json(data));
|
|
1184
|
+
return contents;
|
|
1185
|
+
};
|
|
1186
|
+
const de_ConflictException_event = async (output, context) => {
|
|
1187
|
+
const parsedOutput = {
|
|
1188
|
+
...output,
|
|
1189
|
+
body: await core$1.parseJsonBody(output.body, context),
|
|
1190
|
+
};
|
|
1191
|
+
return de_ConflictExceptionRes(parsedOutput);
|
|
1192
|
+
};
|
|
1193
|
+
const de_InternalFailureException_event = async (output, context) => {
|
|
1194
|
+
const parsedOutput = {
|
|
1195
|
+
...output,
|
|
1196
|
+
body: await core$1.parseJsonBody(output.body, context),
|
|
1197
|
+
};
|
|
1198
|
+
return de_InternalFailureExceptionRes(parsedOutput);
|
|
1199
|
+
};
|
|
1200
|
+
const de_LimitExceededException_event = async (output, context) => {
|
|
1201
|
+
const parsedOutput = {
|
|
1202
|
+
...output,
|
|
1203
|
+
body: await core$1.parseJsonBody(output.body, context),
|
|
1204
|
+
};
|
|
1205
|
+
return de_LimitExceededExceptionRes(parsedOutput);
|
|
1206
|
+
};
|
|
1207
|
+
const de_MedicalScribeTranscriptEvent_event = async (output, context) => {
|
|
1208
|
+
const contents = {};
|
|
1209
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1210
|
+
Object.assign(contents, de_MedicalScribeTranscriptEvent(data));
|
|
1211
|
+
return contents;
|
|
1212
|
+
};
|
|
1213
|
+
const de_MedicalTranscriptEvent_event = async (output, context) => {
|
|
1214
|
+
const contents = {};
|
|
1215
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1216
|
+
Object.assign(contents, de_MedicalTranscriptEvent(data));
|
|
1217
|
+
return contents;
|
|
1218
|
+
};
|
|
1219
|
+
const de_ServiceUnavailableException_event = async (output, context) => {
|
|
1220
|
+
const parsedOutput = {
|
|
1221
|
+
...output,
|
|
1222
|
+
body: await core$1.parseJsonBody(output.body, context),
|
|
1223
|
+
};
|
|
1224
|
+
return de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
1225
|
+
};
|
|
1226
|
+
const de_TranscriptEvent_event = async (output, context) => {
|
|
1227
|
+
const contents = {};
|
|
1228
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1229
|
+
Object.assign(contents, de_TranscriptEvent(data));
|
|
1230
|
+
return contents;
|
|
1231
|
+
};
|
|
1232
|
+
const de_UtteranceEvent_event = async (output, context) => {
|
|
1233
|
+
const contents = {};
|
|
1234
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
1235
|
+
Object.assign(contents, de_UtteranceEvent(data));
|
|
1236
|
+
return contents;
|
|
1237
|
+
};
|
|
1238
|
+
const de_Alternative = (output, context) => {
|
|
1239
|
+
return smithyClient.take(output, {
|
|
1240
|
+
Entities: (_) => de_EntityList(_),
|
|
1241
|
+
Items: (_) => de_ItemList(_),
|
|
1242
|
+
Transcript: smithyClient.expectString,
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
const de_AlternativeList = (output, context) => {
|
|
1246
|
+
const retVal = (output || [])
|
|
1247
|
+
.filter((e) => e != null)
|
|
1248
|
+
.map((entry) => {
|
|
1249
|
+
return de_Alternative(entry);
|
|
1250
|
+
});
|
|
1251
|
+
return retVal;
|
|
1252
|
+
};
|
|
1253
|
+
const de_CallAnalyticsEntity = (output, context) => {
|
|
1254
|
+
return smithyClient.take(output, {
|
|
1255
|
+
BeginOffsetMillis: smithyClient.expectLong,
|
|
1256
|
+
Category: smithyClient.expectString,
|
|
1257
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1258
|
+
Content: smithyClient.expectString,
|
|
1259
|
+
EndOffsetMillis: smithyClient.expectLong,
|
|
1260
|
+
Type: smithyClient.expectString,
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
const de_CallAnalyticsEntityList = (output, context) => {
|
|
1264
|
+
const retVal = (output || [])
|
|
1265
|
+
.filter((e) => e != null)
|
|
1266
|
+
.map((entry) => {
|
|
1267
|
+
return de_CallAnalyticsEntity(entry);
|
|
1268
|
+
});
|
|
1269
|
+
return retVal;
|
|
1270
|
+
};
|
|
1271
|
+
const de_CallAnalyticsItem = (output, context) => {
|
|
1272
|
+
return smithyClient.take(output, {
|
|
1273
|
+
BeginOffsetMillis: smithyClient.expectLong,
|
|
1274
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1275
|
+
Content: smithyClient.expectString,
|
|
1276
|
+
EndOffsetMillis: smithyClient.expectLong,
|
|
1277
|
+
Stable: smithyClient.expectBoolean,
|
|
1278
|
+
Type: smithyClient.expectString,
|
|
1279
|
+
VocabularyFilterMatch: smithyClient.expectBoolean,
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
const de_CallAnalyticsItemList = (output, context) => {
|
|
1283
|
+
const retVal = (output || [])
|
|
1284
|
+
.filter((e) => e != null)
|
|
1285
|
+
.map((entry) => {
|
|
1286
|
+
return de_CallAnalyticsItem(entry);
|
|
1287
|
+
});
|
|
1288
|
+
return retVal;
|
|
1289
|
+
};
|
|
1290
|
+
const de_CallAnalyticsLanguageIdentification = (output, context) => {
|
|
1291
|
+
const retVal = (output || [])
|
|
1292
|
+
.filter((e) => e != null)
|
|
1293
|
+
.map((entry) => {
|
|
1294
|
+
return de_CallAnalyticsLanguageWithScore(entry);
|
|
1295
|
+
});
|
|
1296
|
+
return retVal;
|
|
1297
|
+
};
|
|
1298
|
+
const de_CallAnalyticsLanguageWithScore = (output, context) => {
|
|
1299
|
+
return smithyClient.take(output, {
|
|
1300
|
+
LanguageCode: smithyClient.expectString,
|
|
1301
|
+
Score: smithyClient.limitedParseDouble,
|
|
1302
|
+
});
|
|
1303
|
+
};
|
|
1304
|
+
const de_Entity = (output, context) => {
|
|
1305
|
+
return smithyClient.take(output, {
|
|
1306
|
+
Category: smithyClient.expectString,
|
|
1307
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1308
|
+
Content: smithyClient.expectString,
|
|
1309
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1310
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1311
|
+
Type: smithyClient.expectString,
|
|
1312
|
+
});
|
|
1313
|
+
};
|
|
1314
|
+
const de_EntityList = (output, context) => {
|
|
1315
|
+
const retVal = (output || [])
|
|
1316
|
+
.filter((e) => e != null)
|
|
1317
|
+
.map((entry) => {
|
|
1318
|
+
return de_Entity(entry);
|
|
1319
|
+
});
|
|
1320
|
+
return retVal;
|
|
1321
|
+
};
|
|
1322
|
+
const de_Item = (output, context) => {
|
|
1323
|
+
return smithyClient.take(output, {
|
|
1324
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1325
|
+
Content: smithyClient.expectString,
|
|
1326
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1327
|
+
Speaker: smithyClient.expectString,
|
|
1328
|
+
Stable: smithyClient.expectBoolean,
|
|
1329
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1330
|
+
Type: smithyClient.expectString,
|
|
1331
|
+
VocabularyFilterMatch: smithyClient.expectBoolean,
|
|
1332
|
+
});
|
|
1333
|
+
};
|
|
1334
|
+
const de_ItemList = (output, context) => {
|
|
1335
|
+
const retVal = (output || [])
|
|
1336
|
+
.filter((e) => e != null)
|
|
1337
|
+
.map((entry) => {
|
|
1338
|
+
return de_Item(entry);
|
|
1339
|
+
});
|
|
1340
|
+
return retVal;
|
|
1341
|
+
};
|
|
1342
|
+
const de_LanguageIdentification = (output, context) => {
|
|
1343
|
+
const retVal = (output || [])
|
|
1344
|
+
.filter((e) => e != null)
|
|
1345
|
+
.map((entry) => {
|
|
1346
|
+
return de_LanguageWithScore(entry);
|
|
1347
|
+
});
|
|
1348
|
+
return retVal;
|
|
1349
|
+
};
|
|
1350
|
+
const de_LanguageWithScore = (output, context) => {
|
|
1351
|
+
return smithyClient.take(output, {
|
|
1352
|
+
LanguageCode: smithyClient.expectString,
|
|
1353
|
+
Score: smithyClient.limitedParseDouble,
|
|
1354
|
+
});
|
|
1355
|
+
};
|
|
1356
|
+
const de_MedicalAlternative = (output, context) => {
|
|
1357
|
+
return smithyClient.take(output, {
|
|
1358
|
+
Entities: (_) => de_MedicalEntityList(_),
|
|
1359
|
+
Items: (_) => de_MedicalItemList(_),
|
|
1360
|
+
Transcript: smithyClient.expectString,
|
|
1361
|
+
});
|
|
1362
|
+
};
|
|
1363
|
+
const de_MedicalAlternativeList = (output, context) => {
|
|
1364
|
+
const retVal = (output || [])
|
|
1365
|
+
.filter((e) => e != null)
|
|
1366
|
+
.map((entry) => {
|
|
1367
|
+
return de_MedicalAlternative(entry);
|
|
1368
|
+
});
|
|
1369
|
+
return retVal;
|
|
1370
|
+
};
|
|
1371
|
+
const de_MedicalEntity = (output, context) => {
|
|
1372
|
+
return smithyClient.take(output, {
|
|
1373
|
+
Category: smithyClient.expectString,
|
|
1374
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1375
|
+
Content: smithyClient.expectString,
|
|
1376
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1377
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1378
|
+
});
|
|
1379
|
+
};
|
|
1380
|
+
const de_MedicalEntityList = (output, context) => {
|
|
1381
|
+
const retVal = (output || [])
|
|
1382
|
+
.filter((e) => e != null)
|
|
1383
|
+
.map((entry) => {
|
|
1384
|
+
return de_MedicalEntity(entry);
|
|
1385
|
+
});
|
|
1386
|
+
return retVal;
|
|
1387
|
+
};
|
|
1388
|
+
const de_MedicalItem = (output, context) => {
|
|
1389
|
+
return smithyClient.take(output, {
|
|
1390
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1391
|
+
Content: smithyClient.expectString,
|
|
1392
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1393
|
+
Speaker: smithyClient.expectString,
|
|
1394
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1395
|
+
Type: smithyClient.expectString,
|
|
1396
|
+
});
|
|
1397
|
+
};
|
|
1398
|
+
const de_MedicalItemList = (output, context) => {
|
|
1399
|
+
const retVal = (output || [])
|
|
1400
|
+
.filter((e) => e != null)
|
|
1401
|
+
.map((entry) => {
|
|
1402
|
+
return de_MedicalItem(entry);
|
|
1403
|
+
});
|
|
1404
|
+
return retVal;
|
|
1405
|
+
};
|
|
1406
|
+
const de_MedicalResult = (output, context) => {
|
|
1407
|
+
return smithyClient.take(output, {
|
|
1408
|
+
Alternatives: (_) => de_MedicalAlternativeList(_),
|
|
1409
|
+
ChannelId: smithyClient.expectString,
|
|
1410
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1411
|
+
IsPartial: smithyClient.expectBoolean,
|
|
1412
|
+
ResultId: smithyClient.expectString,
|
|
1413
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1414
|
+
});
|
|
1415
|
+
};
|
|
1416
|
+
const de_MedicalResultList = (output, context) => {
|
|
1417
|
+
const retVal = (output || [])
|
|
1418
|
+
.filter((e) => e != null)
|
|
1419
|
+
.map((entry) => {
|
|
1420
|
+
return de_MedicalResult(entry);
|
|
1421
|
+
});
|
|
1422
|
+
return retVal;
|
|
1423
|
+
};
|
|
1424
|
+
const de_MedicalScribeStreamDetails = (output, context) => {
|
|
1425
|
+
return smithyClient.take(output, {
|
|
1426
|
+
ChannelDefinitions: smithyClient._json,
|
|
1427
|
+
EncryptionSettings: smithyClient._json,
|
|
1428
|
+
LanguageCode: smithyClient.expectString,
|
|
1429
|
+
MediaEncoding: smithyClient.expectString,
|
|
1430
|
+
MediaSampleRateHertz: smithyClient.expectInt32,
|
|
1431
|
+
MedicalScribeContextProvided: smithyClient.expectBoolean,
|
|
1432
|
+
PostStreamAnalyticsResult: smithyClient._json,
|
|
1433
|
+
PostStreamAnalyticsSettings: smithyClient._json,
|
|
1434
|
+
ResourceAccessRoleArn: smithyClient.expectString,
|
|
1435
|
+
SessionId: smithyClient.expectString,
|
|
1436
|
+
StreamCreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1437
|
+
StreamEndedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1438
|
+
StreamStatus: smithyClient.expectString,
|
|
1439
|
+
VocabularyFilterMethod: smithyClient.expectString,
|
|
1440
|
+
VocabularyFilterName: smithyClient.expectString,
|
|
1441
|
+
VocabularyName: smithyClient.expectString,
|
|
1442
|
+
});
|
|
1443
|
+
};
|
|
1444
|
+
const de_MedicalScribeTranscriptEvent = (output, context) => {
|
|
1445
|
+
return smithyClient.take(output, {
|
|
1446
|
+
TranscriptSegment: (_) => de_MedicalScribeTranscriptSegment(_),
|
|
1447
|
+
});
|
|
1448
|
+
};
|
|
1449
|
+
const de_MedicalScribeTranscriptItem = (output, context) => {
|
|
1450
|
+
return smithyClient.take(output, {
|
|
1451
|
+
BeginAudioTime: smithyClient.limitedParseDouble,
|
|
1452
|
+
Confidence: smithyClient.limitedParseDouble,
|
|
1453
|
+
Content: smithyClient.expectString,
|
|
1454
|
+
EndAudioTime: smithyClient.limitedParseDouble,
|
|
1455
|
+
Type: smithyClient.expectString,
|
|
1456
|
+
VocabularyFilterMatch: smithyClient.expectBoolean,
|
|
1457
|
+
});
|
|
1458
|
+
};
|
|
1459
|
+
const de_MedicalScribeTranscriptItemList = (output, context) => {
|
|
1460
|
+
const retVal = (output || [])
|
|
1461
|
+
.filter((e) => e != null)
|
|
1462
|
+
.map((entry) => {
|
|
1463
|
+
return de_MedicalScribeTranscriptItem(entry);
|
|
1464
|
+
});
|
|
1465
|
+
return retVal;
|
|
1466
|
+
};
|
|
1467
|
+
const de_MedicalScribeTranscriptSegment = (output, context) => {
|
|
1468
|
+
return smithyClient.take(output, {
|
|
1469
|
+
BeginAudioTime: smithyClient.limitedParseDouble,
|
|
1470
|
+
ChannelId: smithyClient.expectString,
|
|
1471
|
+
Content: smithyClient.expectString,
|
|
1472
|
+
EndAudioTime: smithyClient.limitedParseDouble,
|
|
1473
|
+
IsPartial: smithyClient.expectBoolean,
|
|
1474
|
+
Items: (_) => de_MedicalScribeTranscriptItemList(_),
|
|
1475
|
+
SegmentId: smithyClient.expectString,
|
|
1476
|
+
});
|
|
1477
|
+
};
|
|
1478
|
+
const de_MedicalTranscript = (output, context) => {
|
|
1479
|
+
return smithyClient.take(output, {
|
|
1480
|
+
Results: (_) => de_MedicalResultList(_),
|
|
1481
|
+
});
|
|
1482
|
+
};
|
|
1483
|
+
const de_MedicalTranscriptEvent = (output, context) => {
|
|
1484
|
+
return smithyClient.take(output, {
|
|
1485
|
+
Transcript: (_) => de_MedicalTranscript(_),
|
|
1486
|
+
});
|
|
1487
|
+
};
|
|
1488
|
+
const de_Result = (output, context) => {
|
|
1489
|
+
return smithyClient.take(output, {
|
|
1490
|
+
Alternatives: (_) => de_AlternativeList(_),
|
|
1491
|
+
ChannelId: smithyClient.expectString,
|
|
1492
|
+
EndTime: smithyClient.limitedParseDouble,
|
|
1493
|
+
IsPartial: smithyClient.expectBoolean,
|
|
1494
|
+
LanguageCode: smithyClient.expectString,
|
|
1495
|
+
LanguageIdentification: (_) => de_LanguageIdentification(_),
|
|
1496
|
+
ResultId: smithyClient.expectString,
|
|
1497
|
+
StartTime: smithyClient.limitedParseDouble,
|
|
1498
|
+
});
|
|
1499
|
+
};
|
|
1500
|
+
const de_ResultList = (output, context) => {
|
|
1501
|
+
const retVal = (output || [])
|
|
1502
|
+
.filter((e) => e != null)
|
|
1503
|
+
.map((entry) => {
|
|
1504
|
+
return de_Result(entry);
|
|
1505
|
+
});
|
|
1506
|
+
return retVal;
|
|
1507
|
+
};
|
|
1508
|
+
const de_Transcript = (output, context) => {
|
|
1509
|
+
return smithyClient.take(output, {
|
|
1510
|
+
Results: (_) => de_ResultList(_),
|
|
1511
|
+
});
|
|
1512
|
+
};
|
|
1513
|
+
const de_TranscriptEvent = (output, context) => {
|
|
1514
|
+
return smithyClient.take(output, {
|
|
1515
|
+
Transcript: (_) => de_Transcript(_),
|
|
1516
|
+
});
|
|
1517
|
+
};
|
|
1518
|
+
const de_UtteranceEvent = (output, context) => {
|
|
1519
|
+
return smithyClient.take(output, {
|
|
1520
|
+
BeginOffsetMillis: smithyClient.expectLong,
|
|
1521
|
+
EndOffsetMillis: smithyClient.expectLong,
|
|
1522
|
+
Entities: (_) => de_CallAnalyticsEntityList(_),
|
|
1523
|
+
IsPartial: smithyClient.expectBoolean,
|
|
1524
|
+
IssuesDetected: smithyClient._json,
|
|
1525
|
+
Items: (_) => de_CallAnalyticsItemList(_),
|
|
1526
|
+
LanguageCode: smithyClient.expectString,
|
|
1527
|
+
LanguageIdentification: (_) => de_CallAnalyticsLanguageIdentification(_),
|
|
1528
|
+
ParticipantRole: smithyClient.expectString,
|
|
1529
|
+
Sentiment: smithyClient.expectString,
|
|
1530
|
+
Transcript: smithyClient.expectString,
|
|
1531
|
+
UtteranceId: smithyClient.expectString,
|
|
1532
|
+
});
|
|
1533
|
+
};
|
|
1534
|
+
const deserializeMetadata = (output) => ({
|
|
1535
|
+
httpStatusCode: output.statusCode,
|
|
1536
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1537
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1538
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1539
|
+
});
|
|
1540
|
+
const _CIT = "ContentIdentificationType";
|
|
1541
|
+
const _CRT = "ContentRedactionType";
|
|
1542
|
+
const _ECI = "EnableChannelIdentification";
|
|
1543
|
+
const _EPRS = "EnablePartialResultsStabilization";
|
|
1544
|
+
const _IL = "IdentifyLanguage";
|
|
1545
|
+
const _IML = "IdentifyMultipleLanguages";
|
|
1546
|
+
const _LC = "LanguageCode";
|
|
1547
|
+
const _LMN = "LanguageModelName";
|
|
1548
|
+
const _LO = "LanguageOptions";
|
|
1549
|
+
const _ME = "MediaEncoding";
|
|
1550
|
+
const _MSRH = "MediaSampleRateHertz";
|
|
1551
|
+
const _NOC = "NumberOfChannels";
|
|
1552
|
+
const _PET = "PiiEntityTypes";
|
|
1553
|
+
const _PL = "PreferredLanguage";
|
|
1554
|
+
const _PRS = "PartialResultsStability";
|
|
1555
|
+
const _RI = "RequestId";
|
|
1556
|
+
const _S = "Specialty";
|
|
1557
|
+
const _SI = "SessionId";
|
|
1558
|
+
const _SSL = "ShowSpeakerLabel";
|
|
1559
|
+
const _T = "Type";
|
|
1560
|
+
const _VFM = "VocabularyFilterMethod";
|
|
1561
|
+
const _VFN = "VocabularyFilterName";
|
|
1562
|
+
const _VFNo = "VocabularyFilterNames";
|
|
1563
|
+
const _VN = "VocabularyName";
|
|
1564
|
+
const _VNo = "VocabularyNames";
|
|
1565
|
+
const _xari = "x-amzn-request-id";
|
|
1566
|
+
const _xatcit = "x-amzn-transcribe-content-identification-type";
|
|
1567
|
+
const _xatcrt = "x-amzn-transcribe-content-redaction-type";
|
|
1568
|
+
const _xateci = "x-amzn-transcribe-enable-channel-identification";
|
|
1569
|
+
const _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
|
|
1570
|
+
const _xatil = "x-amzn-transcribe-identify-language";
|
|
1571
|
+
const _xatiml = "x-amzn-transcribe-identify-multiple-languages";
|
|
1572
|
+
const _xatlc = "x-amzn-transcribe-language-code";
|
|
1573
|
+
const _xatlmn = "x-amzn-transcribe-language-model-name";
|
|
1574
|
+
const _xatlo = "x-amzn-transcribe-language-options";
|
|
1575
|
+
const _xatme = "x-amzn-transcribe-media-encoding";
|
|
1576
|
+
const _xatnoc = "x-amzn-transcribe-number-of-channels";
|
|
1577
|
+
const _xatpet = "x-amzn-transcribe-pii-entity-types";
|
|
1578
|
+
const _xatpl = "x-amzn-transcribe-preferred-language";
|
|
1579
|
+
const _xatprs = "x-amzn-transcribe-partial-results-stability";
|
|
1580
|
+
const _xats = "x-amzn-transcribe-specialty";
|
|
1581
|
+
const _xatsi = "x-amzn-transcribe-session-id";
|
|
1582
|
+
const _xatsr = "x-amzn-transcribe-sample-rate";
|
|
1583
|
+
const _xatssl = "x-amzn-transcribe-show-speaker-label";
|
|
1584
|
+
const _xatt = "x-amzn-transcribe-type";
|
|
1585
|
+
const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
|
|
1586
|
+
const _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
|
|
1587
|
+
const _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
|
|
1588
|
+
const _xatvn = "x-amzn-transcribe-vocabulary-name";
|
|
1589
|
+
const _xatvn_ = "x-amzn-transcribe-vocabulary-names";
|
|
1812
1590
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1591
|
+
class GetMedicalScribeStreamCommand extends smithyClient.Command
|
|
1592
|
+
.classBuilder()
|
|
1593
|
+
.ep(commonParams)
|
|
1594
|
+
.m(function (Command, cs, config, o) {
|
|
1595
|
+
return [
|
|
1596
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1597
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1598
|
+
];
|
|
1599
|
+
})
|
|
1600
|
+
.s("Transcribe", "GetMedicalScribeStream", {})
|
|
1601
|
+
.n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand")
|
|
1602
|
+
.f(void 0, void 0)
|
|
1603
|
+
.ser(se_GetMedicalScribeStreamCommand)
|
|
1604
|
+
.de(de_GetMedicalScribeStreamCommand)
|
|
1605
|
+
.build() {
|
|
1606
|
+
}
|
|
1815
1607
|
|
|
1608
|
+
class StartCallAnalyticsStreamTranscriptionCommand extends smithyClient.Command
|
|
1609
|
+
.classBuilder()
|
|
1610
|
+
.ep(commonParams)
|
|
1611
|
+
.m(function (Command, cs, config, o) {
|
|
1612
|
+
return [
|
|
1613
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1614
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1615
|
+
middlewareEventstream.getEventStreamPlugin(config),
|
|
1616
|
+
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
1617
|
+
headerPrefix: "x-amzn-transcribe-",
|
|
1618
|
+
}),
|
|
1619
|
+
middlewareSdkTranscribeStreaming.getTranscribeStreamingPlugin(config),
|
|
1620
|
+
];
|
|
1621
|
+
})
|
|
1622
|
+
.s("Transcribe", "StartCallAnalyticsStreamTranscription", {
|
|
1623
|
+
eventStream: {
|
|
1624
|
+
input: true,
|
|
1625
|
+
output: true,
|
|
1626
|
+
},
|
|
1627
|
+
})
|
|
1628
|
+
.n("TranscribeStreamingClient", "StartCallAnalyticsStreamTranscriptionCommand")
|
|
1629
|
+
.f(StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog, StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog)
|
|
1630
|
+
.ser(se_StartCallAnalyticsStreamTranscriptionCommand)
|
|
1631
|
+
.de(de_StartCallAnalyticsStreamTranscriptionCommand)
|
|
1632
|
+
.build() {
|
|
1633
|
+
}
|
|
1816
1634
|
|
|
1635
|
+
class StartMedicalScribeStreamCommand extends smithyClient.Command
|
|
1636
|
+
.classBuilder()
|
|
1637
|
+
.ep(commonParams)
|
|
1638
|
+
.m(function (Command, cs, config, o) {
|
|
1639
|
+
return [
|
|
1640
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1641
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1642
|
+
middlewareEventstream.getEventStreamPlugin(config),
|
|
1643
|
+
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
1644
|
+
headerPrefix: "x-amzn-transcribe-",
|
|
1645
|
+
}),
|
|
1646
|
+
middlewareSdkTranscribeStreaming.getTranscribeStreamingPlugin(config),
|
|
1647
|
+
];
|
|
1648
|
+
})
|
|
1649
|
+
.s("Transcribe", "StartMedicalScribeStream", {
|
|
1650
|
+
eventStream: {
|
|
1651
|
+
input: true,
|
|
1652
|
+
output: true,
|
|
1653
|
+
},
|
|
1654
|
+
})
|
|
1655
|
+
.n("TranscribeStreamingClient", "StartMedicalScribeStreamCommand")
|
|
1656
|
+
.f(StartMedicalScribeStreamRequestFilterSensitiveLog, StartMedicalScribeStreamResponseFilterSensitiveLog)
|
|
1657
|
+
.ser(se_StartMedicalScribeStreamCommand)
|
|
1658
|
+
.de(de_StartMedicalScribeStreamCommand)
|
|
1659
|
+
.build() {
|
|
1660
|
+
}
|
|
1817
1661
|
|
|
1662
|
+
class StartMedicalStreamTranscriptionCommand extends smithyClient.Command
|
|
1663
|
+
.classBuilder()
|
|
1664
|
+
.ep(commonParams)
|
|
1665
|
+
.m(function (Command, cs, config, o) {
|
|
1666
|
+
return [
|
|
1667
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1668
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1669
|
+
middlewareEventstream.getEventStreamPlugin(config),
|
|
1670
|
+
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
1671
|
+
headerPrefix: "x-amzn-transcribe-",
|
|
1672
|
+
}),
|
|
1673
|
+
middlewareSdkTranscribeStreaming.getTranscribeStreamingPlugin(config),
|
|
1674
|
+
];
|
|
1675
|
+
})
|
|
1676
|
+
.s("Transcribe", "StartMedicalStreamTranscription", {
|
|
1677
|
+
eventStream: {
|
|
1678
|
+
input: true,
|
|
1679
|
+
output: true,
|
|
1680
|
+
},
|
|
1681
|
+
})
|
|
1682
|
+
.n("TranscribeStreamingClient", "StartMedicalStreamTranscriptionCommand")
|
|
1683
|
+
.f(StartMedicalStreamTranscriptionRequestFilterSensitiveLog, StartMedicalStreamTranscriptionResponseFilterSensitiveLog)
|
|
1684
|
+
.ser(se_StartMedicalStreamTranscriptionCommand)
|
|
1685
|
+
.de(de_StartMedicalStreamTranscriptionCommand)
|
|
1686
|
+
.build() {
|
|
1687
|
+
}
|
|
1818
1688
|
|
|
1689
|
+
class StartStreamTranscriptionCommand extends smithyClient.Command
|
|
1690
|
+
.classBuilder()
|
|
1691
|
+
.ep(commonParams)
|
|
1692
|
+
.m(function (Command, cs, config, o) {
|
|
1693
|
+
return [
|
|
1694
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1695
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1696
|
+
middlewareEventstream.getEventStreamPlugin(config),
|
|
1697
|
+
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
1698
|
+
headerPrefix: "x-amzn-transcribe-",
|
|
1699
|
+
}),
|
|
1700
|
+
middlewareSdkTranscribeStreaming.getTranscribeStreamingPlugin(config),
|
|
1701
|
+
];
|
|
1702
|
+
})
|
|
1703
|
+
.s("Transcribe", "StartStreamTranscription", {
|
|
1704
|
+
eventStream: {
|
|
1705
|
+
input: true,
|
|
1706
|
+
output: true,
|
|
1707
|
+
},
|
|
1708
|
+
})
|
|
1709
|
+
.n("TranscribeStreamingClient", "StartStreamTranscriptionCommand")
|
|
1710
|
+
.f(StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog)
|
|
1711
|
+
.ser(se_StartStreamTranscriptionCommand)
|
|
1712
|
+
.de(de_StartStreamTranscriptionCommand)
|
|
1713
|
+
.build() {
|
|
1714
|
+
}
|
|
1819
1715
|
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
headerPrefix: "x-amzn-transcribe-"
|
|
1827
|
-
}),
|
|
1828
|
-
(0, import_middleware_sdk_transcribe_streaming.getTranscribeStreamingPlugin)(config)
|
|
1829
|
-
];
|
|
1830
|
-
}).s("Transcribe", "StartStreamTranscription", {
|
|
1831
|
-
/**
|
|
1832
|
-
* @internal
|
|
1833
|
-
*/
|
|
1834
|
-
eventStream: {
|
|
1835
|
-
input: true,
|
|
1836
|
-
output: true
|
|
1837
|
-
}
|
|
1838
|
-
}).n("TranscribeStreamingClient", "StartStreamTranscriptionCommand").f(StartStreamTranscriptionRequestFilterSensitiveLog, StartStreamTranscriptionResponseFilterSensitiveLog).ser(se_StartStreamTranscriptionCommand).de(de_StartStreamTranscriptionCommand).build() {
|
|
1839
|
-
static {
|
|
1840
|
-
__name(this, "StartStreamTranscriptionCommand");
|
|
1841
|
-
}
|
|
1716
|
+
const commands = {
|
|
1717
|
+
GetMedicalScribeStreamCommand,
|
|
1718
|
+
StartCallAnalyticsStreamTranscriptionCommand,
|
|
1719
|
+
StartMedicalScribeStreamCommand,
|
|
1720
|
+
StartMedicalStreamTranscriptionCommand,
|
|
1721
|
+
StartStreamTranscriptionCommand,
|
|
1842
1722
|
};
|
|
1723
|
+
class TranscribeStreaming extends TranscribeStreamingClient {
|
|
1724
|
+
}
|
|
1725
|
+
smithyClient.createAggregatedClient(commands, TranscribeStreaming);
|
|
1843
1726
|
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
StartCallAnalyticsStreamTranscriptionCommand,
|
|
1848
|
-
StartMedicalScribeStreamCommand,
|
|
1849
|
-
StartMedicalStreamTranscriptionCommand,
|
|
1850
|
-
StartStreamTranscriptionCommand
|
|
1851
|
-
};
|
|
1852
|
-
var TranscribeStreaming = class extends TranscribeStreamingClient {
|
|
1853
|
-
static {
|
|
1854
|
-
__name(this, "TranscribeStreaming");
|
|
1855
|
-
}
|
|
1856
|
-
};
|
|
1857
|
-
(0, import_smithy_client.createAggregatedClient)(commands, TranscribeStreaming);
|
|
1858
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1859
|
-
|
|
1860
|
-
0 && (module.exports = {
|
|
1861
|
-
TranscribeStreamingServiceException,
|
|
1862
|
-
__Client,
|
|
1863
|
-
TranscribeStreamingClient,
|
|
1864
|
-
TranscribeStreaming,
|
|
1865
|
-
$Command,
|
|
1866
|
-
GetMedicalScribeStreamCommand,
|
|
1867
|
-
StartCallAnalyticsStreamTranscriptionCommand,
|
|
1868
|
-
StartMedicalScribeStreamCommand,
|
|
1869
|
-
StartMedicalStreamTranscriptionCommand,
|
|
1870
|
-
StartStreamTranscriptionCommand,
|
|
1871
|
-
ItemType,
|
|
1872
|
-
ParticipantRole,
|
|
1873
|
-
ContentRedactionOutput,
|
|
1874
|
-
AudioStream,
|
|
1875
|
-
BadRequestException,
|
|
1876
|
-
CallAnalyticsLanguageCode,
|
|
1877
|
-
ConflictException,
|
|
1878
|
-
InternalFailureException,
|
|
1879
|
-
LimitExceededException,
|
|
1880
|
-
ServiceUnavailableException,
|
|
1881
|
-
Sentiment,
|
|
1882
|
-
CallAnalyticsTranscriptResultStream,
|
|
1883
|
-
ClinicalNoteGenerationStatus,
|
|
1884
|
-
MedicalScribeNoteTemplate,
|
|
1885
|
-
ContentIdentificationType,
|
|
1886
|
-
ContentRedactionType,
|
|
1887
|
-
MedicalScribeParticipantRole,
|
|
1888
|
-
MedicalScribeLanguageCode,
|
|
1889
|
-
MedicalScribeMediaEncoding,
|
|
1890
|
-
MedicalScribeStreamStatus,
|
|
1891
|
-
MedicalScribeVocabularyFilterMethod,
|
|
1892
|
-
ResourceNotFoundException,
|
|
1893
|
-
LanguageCode,
|
|
1894
|
-
MediaEncoding,
|
|
1895
|
-
MedicalContentIdentificationType,
|
|
1896
|
-
Pronouns,
|
|
1897
|
-
MedicalScribeSessionControlEventType,
|
|
1898
|
-
MedicalScribeInputStream,
|
|
1899
|
-
MedicalScribeTranscriptItemType,
|
|
1900
|
-
MedicalScribeResultStream,
|
|
1901
|
-
MedicalTranscriptResultStream,
|
|
1902
|
-
PartialResultsStability,
|
|
1903
|
-
Specialty,
|
|
1904
|
-
VocabularyFilterMethod,
|
|
1905
|
-
Type,
|
|
1906
|
-
TranscriptResultStream,
|
|
1907
|
-
AudioStreamFilterSensitiveLog,
|
|
1908
|
-
CallAnalyticsTranscriptResultStreamFilterSensitiveLog,
|
|
1909
|
-
MedicalScribePatientContextFilterSensitiveLog,
|
|
1910
|
-
MedicalScribeContextFilterSensitiveLog,
|
|
1911
|
-
MedicalScribeConfigurationEventFilterSensitiveLog,
|
|
1912
|
-
MedicalScribeInputStreamFilterSensitiveLog,
|
|
1913
|
-
MedicalScribeResultStreamFilterSensitiveLog,
|
|
1914
|
-
MedicalTranscriptResultStreamFilterSensitiveLog,
|
|
1915
|
-
StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog,
|
|
1916
|
-
StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog,
|
|
1917
|
-
StartMedicalScribeStreamRequestFilterSensitiveLog,
|
|
1918
|
-
StartMedicalScribeStreamResponseFilterSensitiveLog,
|
|
1919
|
-
StartMedicalStreamTranscriptionRequestFilterSensitiveLog,
|
|
1920
|
-
StartMedicalStreamTranscriptionResponseFilterSensitiveLog,
|
|
1921
|
-
StartStreamTranscriptionRequestFilterSensitiveLog,
|
|
1922
|
-
TranscriptResultStreamFilterSensitiveLog,
|
|
1923
|
-
StartStreamTranscriptionResponseFilterSensitiveLog
|
|
1727
|
+
Object.defineProperty(exports, "$Command", {
|
|
1728
|
+
enumerable: true,
|
|
1729
|
+
get: function () { return smithyClient.Command; }
|
|
1924
1730
|
});
|
|
1925
|
-
|
|
1731
|
+
Object.defineProperty(exports, "__Client", {
|
|
1732
|
+
enumerable: true,
|
|
1733
|
+
get: function () { return smithyClient.Client; }
|
|
1734
|
+
});
|
|
1735
|
+
exports.AudioStreamFilterSensitiveLog = AudioStreamFilterSensitiveLog;
|
|
1736
|
+
exports.BadRequestException = BadRequestException;
|
|
1737
|
+
exports.CallAnalyticsLanguageCode = CallAnalyticsLanguageCode;
|
|
1738
|
+
exports.CallAnalyticsTranscriptResultStreamFilterSensitiveLog = CallAnalyticsTranscriptResultStreamFilterSensitiveLog;
|
|
1739
|
+
exports.ClinicalNoteGenerationStatus = ClinicalNoteGenerationStatus;
|
|
1740
|
+
exports.ConflictException = ConflictException;
|
|
1741
|
+
exports.ContentIdentificationType = ContentIdentificationType;
|
|
1742
|
+
exports.ContentRedactionOutput = ContentRedactionOutput;
|
|
1743
|
+
exports.ContentRedactionType = ContentRedactionType;
|
|
1744
|
+
exports.GetMedicalScribeStreamCommand = GetMedicalScribeStreamCommand;
|
|
1745
|
+
exports.InternalFailureException = InternalFailureException;
|
|
1746
|
+
exports.ItemType = ItemType;
|
|
1747
|
+
exports.LanguageCode = LanguageCode;
|
|
1748
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1749
|
+
exports.MediaEncoding = MediaEncoding;
|
|
1750
|
+
exports.MedicalContentIdentificationType = MedicalContentIdentificationType;
|
|
1751
|
+
exports.MedicalScribeConfigurationEventFilterSensitiveLog = MedicalScribeConfigurationEventFilterSensitiveLog;
|
|
1752
|
+
exports.MedicalScribeContextFilterSensitiveLog = MedicalScribeContextFilterSensitiveLog;
|
|
1753
|
+
exports.MedicalScribeInputStreamFilterSensitiveLog = MedicalScribeInputStreamFilterSensitiveLog;
|
|
1754
|
+
exports.MedicalScribeLanguageCode = MedicalScribeLanguageCode;
|
|
1755
|
+
exports.MedicalScribeMediaEncoding = MedicalScribeMediaEncoding;
|
|
1756
|
+
exports.MedicalScribeNoteTemplate = MedicalScribeNoteTemplate;
|
|
1757
|
+
exports.MedicalScribeParticipantRole = MedicalScribeParticipantRole;
|
|
1758
|
+
exports.MedicalScribePatientContextFilterSensitiveLog = MedicalScribePatientContextFilterSensitiveLog;
|
|
1759
|
+
exports.MedicalScribeResultStreamFilterSensitiveLog = MedicalScribeResultStreamFilterSensitiveLog;
|
|
1760
|
+
exports.MedicalScribeSessionControlEventType = MedicalScribeSessionControlEventType;
|
|
1761
|
+
exports.MedicalScribeStreamStatus = MedicalScribeStreamStatus;
|
|
1762
|
+
exports.MedicalScribeTranscriptItemType = MedicalScribeTranscriptItemType;
|
|
1763
|
+
exports.MedicalScribeVocabularyFilterMethod = MedicalScribeVocabularyFilterMethod;
|
|
1764
|
+
exports.MedicalTranscriptResultStreamFilterSensitiveLog = MedicalTranscriptResultStreamFilterSensitiveLog;
|
|
1765
|
+
exports.PartialResultsStability = PartialResultsStability;
|
|
1766
|
+
exports.ParticipantRole = ParticipantRole;
|
|
1767
|
+
exports.Pronouns = Pronouns;
|
|
1768
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1769
|
+
exports.Sentiment = Sentiment;
|
|
1770
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
1771
|
+
exports.Specialty = Specialty;
|
|
1772
|
+
exports.StartCallAnalyticsStreamTranscriptionCommand = StartCallAnalyticsStreamTranscriptionCommand;
|
|
1773
|
+
exports.StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog = StartCallAnalyticsStreamTranscriptionRequestFilterSensitiveLog;
|
|
1774
|
+
exports.StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog = StartCallAnalyticsStreamTranscriptionResponseFilterSensitiveLog;
|
|
1775
|
+
exports.StartMedicalScribeStreamCommand = StartMedicalScribeStreamCommand;
|
|
1776
|
+
exports.StartMedicalScribeStreamRequestFilterSensitiveLog = StartMedicalScribeStreamRequestFilterSensitiveLog;
|
|
1777
|
+
exports.StartMedicalScribeStreamResponseFilterSensitiveLog = StartMedicalScribeStreamResponseFilterSensitiveLog;
|
|
1778
|
+
exports.StartMedicalStreamTranscriptionCommand = StartMedicalStreamTranscriptionCommand;
|
|
1779
|
+
exports.StartMedicalStreamTranscriptionRequestFilterSensitiveLog = StartMedicalStreamTranscriptionRequestFilterSensitiveLog;
|
|
1780
|
+
exports.StartMedicalStreamTranscriptionResponseFilterSensitiveLog = StartMedicalStreamTranscriptionResponseFilterSensitiveLog;
|
|
1781
|
+
exports.StartStreamTranscriptionCommand = StartStreamTranscriptionCommand;
|
|
1782
|
+
exports.StartStreamTranscriptionRequestFilterSensitiveLog = StartStreamTranscriptionRequestFilterSensitiveLog;
|
|
1783
|
+
exports.StartStreamTranscriptionResponseFilterSensitiveLog = StartStreamTranscriptionResponseFilterSensitiveLog;
|
|
1784
|
+
exports.TranscribeStreaming = TranscribeStreaming;
|
|
1785
|
+
exports.TranscribeStreamingClient = TranscribeStreamingClient;
|
|
1786
|
+
exports.TranscribeStreamingServiceException = TranscribeStreamingServiceException;
|
|
1787
|
+
exports.TranscriptResultStreamFilterSensitiveLog = TranscriptResultStreamFilterSensitiveLog;
|
|
1788
|
+
exports.Type = Type;
|
|
1789
|
+
exports.VocabularyFilterMethod = VocabularyFilterMethod;
|