@aws-sdk/client-polly 3.1068.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +76 -96
- package/dist-cjs/models/PollyServiceException.js +4 -8
- package/dist-cjs/models/errors.js +49 -76
- package/dist-cjs/runtimeConfig.browser.js +25 -29
- package/dist-cjs/runtimeConfig.js +34 -38
- package/dist-cjs/runtimeConfig.native.js +6 -9
- package/dist-cjs/runtimeConfig.shared.js +21 -25
- package/dist-cjs/schemas/schemas_0.js +172 -117
- package/package.json +12 -12
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultPollyHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultPollyHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultPollyHttpAuthSchemeParametersProvider = defaultPollyHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultPollyHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultPollyHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
4
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
5
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
6
|
+
exports.$Command = Command;
|
|
7
|
+
exports.__Client = Client;
|
|
8
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
10
|
+
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
11
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
12
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
13
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
14
|
+
const { resolveHttpAuthSchemeConfig, defaultPollyHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
15
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
16
|
+
const { DeleteLexicon$, DescribeVoices$, GetLexicon$, GetSpeechSynthesisTask$, ListLexicons$, ListSpeechSynthesisTasks$, PutLexicon$, StartSpeechSynthesisStream$, StartSpeechSynthesisTask$, SynthesizeSpeech$ } = require("./schemas/schemas_0");
|
|
17
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
18
|
+
__exportStar(require("./models/errors"), exports);
|
|
19
|
+
const { PollyServiceException } = require("./models/PollyServiceException");
|
|
20
|
+
exports.PollyServiceException = PollyServiceException;
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -70,139 +73,139 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
70
73
|
};
|
|
71
74
|
|
|
72
75
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
73
|
-
const extensionConfiguration = Object.assign(
|
|
76
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
74
77
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
75
|
-
return Object.assign(runtimeConfig,
|
|
78
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
76
79
|
};
|
|
77
80
|
|
|
78
|
-
class PollyClient extends
|
|
81
|
+
class PollyClient extends Client {
|
|
79
82
|
config;
|
|
80
83
|
constructor(...[configuration]) {
|
|
81
|
-
const _config_0 =
|
|
84
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
82
85
|
super(_config_0);
|
|
83
86
|
this.initConfig = _config_0;
|
|
84
87
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
85
|
-
const _config_2 =
|
|
86
|
-
const _config_3 =
|
|
87
|
-
const _config_4 =
|
|
88
|
-
const _config_5 =
|
|
89
|
-
const _config_6 =
|
|
90
|
-
const _config_7 =
|
|
91
|
-
const _config_8 =
|
|
92
|
-
const _config_9 =
|
|
88
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
95
|
+
const _config_9 = resolveEventStreamConfig(_config_8);
|
|
93
96
|
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
|
|
94
97
|
this.config = _config_10;
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
this.middlewareStack.use(
|
|
102
|
-
this.middlewareStack.use(
|
|
103
|
-
httpAuthSchemeParametersProvider:
|
|
104
|
-
identityProviderConfigProvider: async (config) => new
|
|
98
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
104
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
105
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
106
|
+
httpAuthSchemeParametersProvider: defaultPollyHttpAuthSchemeParametersProvider,
|
|
107
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
105
108
|
"aws.auth#sigv4": config.credentials,
|
|
106
109
|
}),
|
|
107
110
|
}));
|
|
108
|
-
this.middlewareStack.use(
|
|
111
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
109
112
|
}
|
|
110
113
|
destroy() {
|
|
111
114
|
super.destroy();
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
|
|
115
|
-
class DeleteLexiconCommand extends
|
|
118
|
+
class DeleteLexiconCommand extends Command
|
|
116
119
|
.classBuilder()
|
|
117
120
|
.ep(commonParams)
|
|
118
121
|
.m(function (Command, cs, config, o) {
|
|
119
|
-
return [
|
|
122
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
120
123
|
})
|
|
121
124
|
.s("Parrot_v1", "DeleteLexicon", {})
|
|
122
125
|
.n("PollyClient", "DeleteLexiconCommand")
|
|
123
|
-
.sc(
|
|
126
|
+
.sc(DeleteLexicon$)
|
|
124
127
|
.build() {
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
class DescribeVoicesCommand extends
|
|
130
|
+
class DescribeVoicesCommand extends Command
|
|
128
131
|
.classBuilder()
|
|
129
132
|
.ep(commonParams)
|
|
130
133
|
.m(function (Command, cs, config, o) {
|
|
131
|
-
return [
|
|
134
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
132
135
|
})
|
|
133
136
|
.s("Parrot_v1", "DescribeVoices", {})
|
|
134
137
|
.n("PollyClient", "DescribeVoicesCommand")
|
|
135
|
-
.sc(
|
|
138
|
+
.sc(DescribeVoices$)
|
|
136
139
|
.build() {
|
|
137
140
|
}
|
|
138
141
|
|
|
139
|
-
class GetLexiconCommand extends
|
|
142
|
+
class GetLexiconCommand extends Command
|
|
140
143
|
.classBuilder()
|
|
141
144
|
.ep(commonParams)
|
|
142
145
|
.m(function (Command, cs, config, o) {
|
|
143
|
-
return [
|
|
146
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
144
147
|
})
|
|
145
148
|
.s("Parrot_v1", "GetLexicon", {})
|
|
146
149
|
.n("PollyClient", "GetLexiconCommand")
|
|
147
|
-
.sc(
|
|
150
|
+
.sc(GetLexicon$)
|
|
148
151
|
.build() {
|
|
149
152
|
}
|
|
150
153
|
|
|
151
|
-
class GetSpeechSynthesisTaskCommand extends
|
|
154
|
+
class GetSpeechSynthesisTaskCommand extends Command
|
|
152
155
|
.classBuilder()
|
|
153
156
|
.ep(commonParams)
|
|
154
157
|
.m(function (Command, cs, config, o) {
|
|
155
|
-
return [
|
|
158
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
156
159
|
})
|
|
157
160
|
.s("Parrot_v1", "GetSpeechSynthesisTask", {})
|
|
158
161
|
.n("PollyClient", "GetSpeechSynthesisTaskCommand")
|
|
159
|
-
.sc(
|
|
162
|
+
.sc(GetSpeechSynthesisTask$)
|
|
160
163
|
.build() {
|
|
161
164
|
}
|
|
162
165
|
|
|
163
|
-
class ListLexiconsCommand extends
|
|
166
|
+
class ListLexiconsCommand extends Command
|
|
164
167
|
.classBuilder()
|
|
165
168
|
.ep(commonParams)
|
|
166
169
|
.m(function (Command, cs, config, o) {
|
|
167
|
-
return [
|
|
170
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
168
171
|
})
|
|
169
172
|
.s("Parrot_v1", "ListLexicons", {})
|
|
170
173
|
.n("PollyClient", "ListLexiconsCommand")
|
|
171
|
-
.sc(
|
|
174
|
+
.sc(ListLexicons$)
|
|
172
175
|
.build() {
|
|
173
176
|
}
|
|
174
177
|
|
|
175
|
-
class ListSpeechSynthesisTasksCommand extends
|
|
178
|
+
class ListSpeechSynthesisTasksCommand extends Command
|
|
176
179
|
.classBuilder()
|
|
177
180
|
.ep(commonParams)
|
|
178
181
|
.m(function (Command, cs, config, o) {
|
|
179
|
-
return [
|
|
182
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
180
183
|
})
|
|
181
184
|
.s("Parrot_v1", "ListSpeechSynthesisTasks", {})
|
|
182
185
|
.n("PollyClient", "ListSpeechSynthesisTasksCommand")
|
|
183
|
-
.sc(
|
|
186
|
+
.sc(ListSpeechSynthesisTasks$)
|
|
184
187
|
.build() {
|
|
185
188
|
}
|
|
186
189
|
|
|
187
|
-
class PutLexiconCommand extends
|
|
190
|
+
class PutLexiconCommand extends Command
|
|
188
191
|
.classBuilder()
|
|
189
192
|
.ep(commonParams)
|
|
190
193
|
.m(function (Command, cs, config, o) {
|
|
191
|
-
return [
|
|
194
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
192
195
|
})
|
|
193
196
|
.s("Parrot_v1", "PutLexicon", {})
|
|
194
197
|
.n("PollyClient", "PutLexiconCommand")
|
|
195
|
-
.sc(
|
|
198
|
+
.sc(PutLexicon$)
|
|
196
199
|
.build() {
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
class StartSpeechSynthesisStreamCommand extends
|
|
202
|
+
class StartSpeechSynthesisStreamCommand extends Command
|
|
200
203
|
.classBuilder()
|
|
201
204
|
.ep(commonParams)
|
|
202
205
|
.m(function (Command, cs, config, o) {
|
|
203
206
|
return [
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
208
|
+
getEventStreamPlugin(config),
|
|
206
209
|
];
|
|
207
210
|
})
|
|
208
211
|
.s("Parrot_v1", "StartSpeechSynthesisStream", {
|
|
@@ -212,35 +215,35 @@ class StartSpeechSynthesisStreamCommand extends client.Command
|
|
|
212
215
|
},
|
|
213
216
|
})
|
|
214
217
|
.n("PollyClient", "StartSpeechSynthesisStreamCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(StartSpeechSynthesisStream$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class StartSpeechSynthesisTaskCommand extends
|
|
222
|
+
class StartSpeechSynthesisTaskCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("Parrot_v1", "StartSpeechSynthesisTask", {})
|
|
226
229
|
.n("PollyClient", "StartSpeechSynthesisTaskCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(StartSpeechSynthesisTask$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class SynthesizeSpeechCommand extends
|
|
234
|
+
class SynthesizeSpeechCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("Parrot_v1", "SynthesizeSpeech", {})
|
|
238
241
|
.n("PollyClient", "SynthesizeSpeechCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(SynthesizeSpeech$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
const paginateListSpeechSynthesisTasks =
|
|
246
|
+
const paginateListSpeechSynthesisTasks = createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
244
247
|
|
|
245
248
|
const commands = {
|
|
246
249
|
DeleteLexiconCommand,
|
|
@@ -259,7 +262,7 @@ const paginators = {
|
|
|
259
262
|
};
|
|
260
263
|
class Polly extends PollyClient {
|
|
261
264
|
}
|
|
262
|
-
|
|
265
|
+
createAggregatedClient(commands, Polly, { paginators });
|
|
263
266
|
|
|
264
267
|
const Engine = {
|
|
265
268
|
GENERATIVE: "generative",
|
|
@@ -462,9 +465,6 @@ const ValidationExceptionReason = {
|
|
|
462
465
|
UNSUPPORTED_OPERATION: "unsupportedOperation",
|
|
463
466
|
};
|
|
464
467
|
|
|
465
|
-
exports.$Command = client.Command;
|
|
466
|
-
exports.__Client = client.Client;
|
|
467
|
-
exports.PollyServiceException = PollyServiceException.PollyServiceException;
|
|
468
468
|
exports.DeleteLexiconCommand = DeleteLexiconCommand;
|
|
469
469
|
exports.DescribeVoicesCommand = DescribeVoicesCommand;
|
|
470
470
|
exports.Engine = Engine;
|
|
@@ -489,23 +489,3 @@ exports.TextType = TextType;
|
|
|
489
489
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
490
490
|
exports.VoiceId = VoiceId;
|
|
491
491
|
exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;
|
|
492
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
493
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
494
|
-
Object.defineProperty(exports, '__proto__', {
|
|
495
|
-
enumerable: true,
|
|
496
|
-
value: schemas_0['__proto__']
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
500
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
501
|
-
});
|
|
502
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
503
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
504
|
-
Object.defineProperty(exports, '__proto__', {
|
|
505
|
-
enumerable: true,
|
|
506
|
-
value: errors['__proto__']
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
Object.keys(errors).forEach(function (k) {
|
|
510
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
511
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.PollyServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class PollyServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.PollyServiceException = class PollyServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, PollyServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.PollyServiceException = PollyServiceException;
|
|
8
|
+
};
|