@aws-sdk/client-polly 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PollyServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class PollyServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, PollyServiceException.prototype);
10
+ }
11
+ }
12
+ exports.PollyServiceException = PollyServiceException;
@@ -0,0 +1,277 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextLengthExceededException = exports.SsmlMarksNotSupportedForTextTypeException = exports.UnsupportedPlsLanguageException = exports.UnsupportedPlsAlphabetException = exports.MaxLexiconsNumberExceededException = exports.MaxLexemeLengthExceededException = exports.MarksNotSupportedForFormatException = exports.LexiconSizeExceededException = exports.LanguageNotSupportedException = exports.InvalidSsmlException = exports.InvalidSnsTopicArnException = exports.InvalidSampleRateException = exports.InvalidS3KeyException = exports.InvalidS3BucketException = exports.InvalidLexiconException = exports.SynthesisTaskNotFoundException = exports.InvalidTaskIdException = exports.EngineNotSupportedException = exports.InvalidNextTokenException = exports.ServiceFailureException = exports.LexiconNotFoundException = void 0;
4
+ const PollyServiceException_1 = require("./PollyServiceException");
5
+ class LexiconNotFoundException extends PollyServiceException_1.PollyServiceException {
6
+ name = "LexiconNotFoundException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "LexiconNotFoundException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
15
+ }
16
+ }
17
+ exports.LexiconNotFoundException = LexiconNotFoundException;
18
+ class ServiceFailureException extends PollyServiceException_1.PollyServiceException {
19
+ name = "ServiceFailureException";
20
+ $fault = "server";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ServiceFailureException",
24
+ $fault: "server",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ServiceFailureException.prototype);
28
+ }
29
+ }
30
+ exports.ServiceFailureException = ServiceFailureException;
31
+ class InvalidNextTokenException extends PollyServiceException_1.PollyServiceException {
32
+ name = "InvalidNextTokenException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InvalidNextTokenException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
41
+ }
42
+ }
43
+ exports.InvalidNextTokenException = InvalidNextTokenException;
44
+ class EngineNotSupportedException extends PollyServiceException_1.PollyServiceException {
45
+ name = "EngineNotSupportedException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "EngineNotSupportedException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, EngineNotSupportedException.prototype);
54
+ }
55
+ }
56
+ exports.EngineNotSupportedException = EngineNotSupportedException;
57
+ class InvalidTaskIdException extends PollyServiceException_1.PollyServiceException {
58
+ name = "InvalidTaskIdException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "InvalidTaskIdException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, InvalidTaskIdException.prototype);
67
+ }
68
+ }
69
+ exports.InvalidTaskIdException = InvalidTaskIdException;
70
+ class SynthesisTaskNotFoundException extends PollyServiceException_1.PollyServiceException {
71
+ name = "SynthesisTaskNotFoundException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "SynthesisTaskNotFoundException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);
80
+ }
81
+ }
82
+ exports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException;
83
+ class InvalidLexiconException extends PollyServiceException_1.PollyServiceException {
84
+ name = "InvalidLexiconException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "InvalidLexiconException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, InvalidLexiconException.prototype);
93
+ }
94
+ }
95
+ exports.InvalidLexiconException = InvalidLexiconException;
96
+ class InvalidS3BucketException extends PollyServiceException_1.PollyServiceException {
97
+ name = "InvalidS3BucketException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "InvalidS3BucketException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, InvalidS3BucketException.prototype);
106
+ }
107
+ }
108
+ exports.InvalidS3BucketException = InvalidS3BucketException;
109
+ class InvalidS3KeyException extends PollyServiceException_1.PollyServiceException {
110
+ name = "InvalidS3KeyException";
111
+ $fault = "client";
112
+ constructor(opts) {
113
+ super({
114
+ name: "InvalidS3KeyException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, InvalidS3KeyException.prototype);
119
+ }
120
+ }
121
+ exports.InvalidS3KeyException = InvalidS3KeyException;
122
+ class InvalidSampleRateException extends PollyServiceException_1.PollyServiceException {
123
+ name = "InvalidSampleRateException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "InvalidSampleRateException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, InvalidSampleRateException.prototype);
132
+ }
133
+ }
134
+ exports.InvalidSampleRateException = InvalidSampleRateException;
135
+ class InvalidSnsTopicArnException extends PollyServiceException_1.PollyServiceException {
136
+ name = "InvalidSnsTopicArnException";
137
+ $fault = "client";
138
+ constructor(opts) {
139
+ super({
140
+ name: "InvalidSnsTopicArnException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);
145
+ }
146
+ }
147
+ exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;
148
+ class InvalidSsmlException extends PollyServiceException_1.PollyServiceException {
149
+ name = "InvalidSsmlException";
150
+ $fault = "client";
151
+ constructor(opts) {
152
+ super({
153
+ name: "InvalidSsmlException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, InvalidSsmlException.prototype);
158
+ }
159
+ }
160
+ exports.InvalidSsmlException = InvalidSsmlException;
161
+ class LanguageNotSupportedException extends PollyServiceException_1.PollyServiceException {
162
+ name = "LanguageNotSupportedException";
163
+ $fault = "client";
164
+ constructor(opts) {
165
+ super({
166
+ name: "LanguageNotSupportedException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);
171
+ }
172
+ }
173
+ exports.LanguageNotSupportedException = LanguageNotSupportedException;
174
+ class LexiconSizeExceededException extends PollyServiceException_1.PollyServiceException {
175
+ name = "LexiconSizeExceededException";
176
+ $fault = "client";
177
+ constructor(opts) {
178
+ super({
179
+ name: "LexiconSizeExceededException",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
184
+ }
185
+ }
186
+ exports.LexiconSizeExceededException = LexiconSizeExceededException;
187
+ class MarksNotSupportedForFormatException extends PollyServiceException_1.PollyServiceException {
188
+ name = "MarksNotSupportedForFormatException";
189
+ $fault = "client";
190
+ constructor(opts) {
191
+ super({
192
+ name: "MarksNotSupportedForFormatException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);
197
+ }
198
+ }
199
+ exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;
200
+ class MaxLexemeLengthExceededException extends PollyServiceException_1.PollyServiceException {
201
+ name = "MaxLexemeLengthExceededException";
202
+ $fault = "client";
203
+ constructor(opts) {
204
+ super({
205
+ name: "MaxLexemeLengthExceededException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);
210
+ }
211
+ }
212
+ exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;
213
+ class MaxLexiconsNumberExceededException extends PollyServiceException_1.PollyServiceException {
214
+ name = "MaxLexiconsNumberExceededException";
215
+ $fault = "client";
216
+ constructor(opts) {
217
+ super({
218
+ name: "MaxLexiconsNumberExceededException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
223
+ }
224
+ }
225
+ exports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException;
226
+ class UnsupportedPlsAlphabetException extends PollyServiceException_1.PollyServiceException {
227
+ name = "UnsupportedPlsAlphabetException";
228
+ $fault = "client";
229
+ constructor(opts) {
230
+ super({
231
+ name: "UnsupportedPlsAlphabetException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);
236
+ }
237
+ }
238
+ exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;
239
+ class UnsupportedPlsLanguageException extends PollyServiceException_1.PollyServiceException {
240
+ name = "UnsupportedPlsLanguageException";
241
+ $fault = "client";
242
+ constructor(opts) {
243
+ super({
244
+ name: "UnsupportedPlsLanguageException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
249
+ }
250
+ }
251
+ exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
252
+ class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException_1.PollyServiceException {
253
+ name = "SsmlMarksNotSupportedForTextTypeException";
254
+ $fault = "client";
255
+ constructor(opts) {
256
+ super({
257
+ name: "SsmlMarksNotSupportedForTextTypeException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);
262
+ }
263
+ }
264
+ exports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException;
265
+ class TextLengthExceededException extends PollyServiceException_1.PollyServiceException {
266
+ name = "TextLengthExceededException";
267
+ $fault = "client";
268
+ constructor(opts) {
269
+ super({
270
+ name: "TextLengthExceededException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ Object.setPrototypeOf(this, TextLengthExceededException.prototype);
275
+ }
276
+ }
277
+ exports.TextLengthExceededException = TextLengthExceededException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2016-06-10",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.polly",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  xmlNamespace: "http://polly.amazonaws.com/doc/v1",
34
36
  version: "2016-06-10",
35
37
  serviceTarget: "Parrot_v1",