@aws-sdk/client-polly 3.51.0 → 3.54.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.
@@ -1,6 +1,7 @@
1
1
 
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { PollyServiceException as __BaseException } from "./PollyServiceException";
4
5
  export interface DeleteLexiconInput {
5
6
 
6
7
  Name: string | undefined;
@@ -16,16 +17,18 @@ export declare namespace DeleteLexiconOutput {
16
17
  const filterSensitiveLog: (obj: DeleteLexiconOutput) => any;
17
18
  }
18
19
 
19
- export interface LexiconNotFoundException extends __SmithyException, $MetadataBearer {
20
- name: "LexiconNotFoundException";
21
- $fault: "client";
22
- message?: string;
20
+ export declare class LexiconNotFoundException extends __BaseException {
21
+ readonly name: "LexiconNotFoundException";
22
+ readonly $fault: "client";
23
+
24
+ constructor(opts: __ExceptionOptionType<LexiconNotFoundException, __BaseException>);
23
25
  }
24
26
 
25
- export interface ServiceFailureException extends __SmithyException, $MetadataBearer {
26
- name: "ServiceFailureException";
27
- $fault: "server";
28
- message?: string;
27
+ export declare class ServiceFailureException extends __BaseException {
28
+ readonly name: "ServiceFailureException";
29
+ readonly $fault: "server";
30
+
31
+ constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>);
29
32
  }
30
33
  export declare enum Engine {
31
34
  NEURAL = "neural",
@@ -80,16 +83,18 @@ export declare namespace DescribeVoicesOutput {
80
83
  const filterSensitiveLog: (obj: DescribeVoicesOutput) => any;
81
84
  }
82
85
 
83
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
84
- name: "InvalidNextTokenException";
85
- $fault: "client";
86
- message?: string;
86
+ export declare class InvalidNextTokenException extends __BaseException {
87
+ readonly name: "InvalidNextTokenException";
88
+ readonly $fault: "client";
89
+
90
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
87
91
  }
88
92
 
89
- export interface EngineNotSupportedException extends __SmithyException, $MetadataBearer {
90
- name: "EngineNotSupportedException";
91
- $fault: "client";
92
- message?: string;
93
+ export declare class EngineNotSupportedException extends __BaseException {
94
+ readonly name: "EngineNotSupportedException";
95
+ readonly $fault: "client";
96
+
97
+ constructor(opts: __ExceptionOptionType<EngineNotSupportedException, __BaseException>);
93
98
  }
94
99
  export interface GetLexiconInput {
95
100
 
@@ -215,58 +220,67 @@ export declare namespace GetSpeechSynthesisTaskOutput {
215
220
  const filterSensitiveLog: (obj: GetSpeechSynthesisTaskOutput) => any;
216
221
  }
217
222
 
218
- export interface InvalidTaskIdException extends __SmithyException, $MetadataBearer {
219
- name: "InvalidTaskIdException";
220
- $fault: "client";
221
- message?: string;
223
+ export declare class InvalidTaskIdException extends __BaseException {
224
+ readonly name: "InvalidTaskIdException";
225
+ readonly $fault: "client";
226
+
227
+ constructor(opts: __ExceptionOptionType<InvalidTaskIdException, __BaseException>);
222
228
  }
223
229
 
224
- export interface SynthesisTaskNotFoundException extends __SmithyException, $MetadataBearer {
225
- name: "SynthesisTaskNotFoundException";
226
- $fault: "client";
227
- message?: string;
230
+ export declare class SynthesisTaskNotFoundException extends __BaseException {
231
+ readonly name: "SynthesisTaskNotFoundException";
232
+ readonly $fault: "client";
233
+
234
+ constructor(opts: __ExceptionOptionType<SynthesisTaskNotFoundException, __BaseException>);
228
235
  }
229
236
 
230
- export interface InvalidLexiconException extends __SmithyException, $MetadataBearer {
231
- name: "InvalidLexiconException";
232
- $fault: "client";
233
- message?: string;
237
+ export declare class InvalidLexiconException extends __BaseException {
238
+ readonly name: "InvalidLexiconException";
239
+ readonly $fault: "client";
240
+
241
+ constructor(opts: __ExceptionOptionType<InvalidLexiconException, __BaseException>);
234
242
  }
235
243
 
236
- export interface InvalidS3BucketException extends __SmithyException, $MetadataBearer {
237
- name: "InvalidS3BucketException";
238
- $fault: "client";
239
- message?: string;
244
+ export declare class InvalidS3BucketException extends __BaseException {
245
+ readonly name: "InvalidS3BucketException";
246
+ readonly $fault: "client";
247
+
248
+ constructor(opts: __ExceptionOptionType<InvalidS3BucketException, __BaseException>);
240
249
  }
241
250
 
242
- export interface InvalidS3KeyException extends __SmithyException, $MetadataBearer {
243
- name: "InvalidS3KeyException";
244
- $fault: "client";
245
- message?: string;
251
+ export declare class InvalidS3KeyException extends __BaseException {
252
+ readonly name: "InvalidS3KeyException";
253
+ readonly $fault: "client";
254
+
255
+ constructor(opts: __ExceptionOptionType<InvalidS3KeyException, __BaseException>);
246
256
  }
247
257
 
248
- export interface InvalidSampleRateException extends __SmithyException, $MetadataBearer {
249
- name: "InvalidSampleRateException";
250
- $fault: "client";
251
- message?: string;
258
+ export declare class InvalidSampleRateException extends __BaseException {
259
+ readonly name: "InvalidSampleRateException";
260
+ readonly $fault: "client";
261
+
262
+ constructor(opts: __ExceptionOptionType<InvalidSampleRateException, __BaseException>);
252
263
  }
253
264
 
254
- export interface InvalidSnsTopicArnException extends __SmithyException, $MetadataBearer {
255
- name: "InvalidSnsTopicArnException";
256
- $fault: "client";
257
- message?: string;
265
+ export declare class InvalidSnsTopicArnException extends __BaseException {
266
+ readonly name: "InvalidSnsTopicArnException";
267
+ readonly $fault: "client";
268
+
269
+ constructor(opts: __ExceptionOptionType<InvalidSnsTopicArnException, __BaseException>);
258
270
  }
259
271
 
260
- export interface InvalidSsmlException extends __SmithyException, $MetadataBearer {
261
- name: "InvalidSsmlException";
262
- $fault: "client";
263
- message?: string;
272
+ export declare class InvalidSsmlException extends __BaseException {
273
+ readonly name: "InvalidSsmlException";
274
+ readonly $fault: "client";
275
+
276
+ constructor(opts: __ExceptionOptionType<InvalidSsmlException, __BaseException>);
264
277
  }
265
278
 
266
- export interface LanguageNotSupportedException extends __SmithyException, $MetadataBearer {
267
- name: "LanguageNotSupportedException";
268
- $fault: "client";
269
- message?: string;
279
+ export declare class LanguageNotSupportedException extends __BaseException {
280
+ readonly name: "LanguageNotSupportedException";
281
+ readonly $fault: "client";
282
+
283
+ constructor(opts: __ExceptionOptionType<LanguageNotSupportedException, __BaseException>);
270
284
  }
271
285
 
272
286
  export interface LexiconDescription {
@@ -280,10 +294,11 @@ export declare namespace LexiconDescription {
280
294
  const filterSensitiveLog: (obj: LexiconDescription) => any;
281
295
  }
282
296
 
283
- export interface LexiconSizeExceededException extends __SmithyException, $MetadataBearer {
284
- name: "LexiconSizeExceededException";
285
- $fault: "client";
286
- message?: string;
297
+ export declare class LexiconSizeExceededException extends __BaseException {
298
+ readonly name: "LexiconSizeExceededException";
299
+ readonly $fault: "client";
300
+
301
+ constructor(opts: __ExceptionOptionType<LexiconSizeExceededException, __BaseException>);
287
302
  }
288
303
  export interface ListLexiconsInput {
289
304
 
@@ -326,22 +341,25 @@ export declare namespace ListSpeechSynthesisTasksOutput {
326
341
  const filterSensitiveLog: (obj: ListSpeechSynthesisTasksOutput) => any;
327
342
  }
328
343
 
329
- export interface MarksNotSupportedForFormatException extends __SmithyException, $MetadataBearer {
330
- name: "MarksNotSupportedForFormatException";
331
- $fault: "client";
332
- message?: string;
344
+ export declare class MarksNotSupportedForFormatException extends __BaseException {
345
+ readonly name: "MarksNotSupportedForFormatException";
346
+ readonly $fault: "client";
347
+
348
+ constructor(opts: __ExceptionOptionType<MarksNotSupportedForFormatException, __BaseException>);
333
349
  }
334
350
 
335
- export interface MaxLexemeLengthExceededException extends __SmithyException, $MetadataBearer {
336
- name: "MaxLexemeLengthExceededException";
337
- $fault: "client";
338
- message?: string;
351
+ export declare class MaxLexemeLengthExceededException extends __BaseException {
352
+ readonly name: "MaxLexemeLengthExceededException";
353
+ readonly $fault: "client";
354
+
355
+ constructor(opts: __ExceptionOptionType<MaxLexemeLengthExceededException, __BaseException>);
339
356
  }
340
357
 
341
- export interface MaxLexiconsNumberExceededException extends __SmithyException, $MetadataBearer {
342
- name: "MaxLexiconsNumberExceededException";
343
- $fault: "client";
344
- message?: string;
358
+ export declare class MaxLexiconsNumberExceededException extends __BaseException {
359
+ readonly name: "MaxLexiconsNumberExceededException";
360
+ readonly $fault: "client";
361
+
362
+ constructor(opts: __ExceptionOptionType<MaxLexiconsNumberExceededException, __BaseException>);
345
363
  }
346
364
  export interface PutLexiconInput {
347
365
 
@@ -360,22 +378,25 @@ export declare namespace PutLexiconOutput {
360
378
  const filterSensitiveLog: (obj: PutLexiconOutput) => any;
361
379
  }
362
380
 
363
- export interface UnsupportedPlsAlphabetException extends __SmithyException, $MetadataBearer {
364
- name: "UnsupportedPlsAlphabetException";
365
- $fault: "client";
366
- message?: string;
381
+ export declare class UnsupportedPlsAlphabetException extends __BaseException {
382
+ readonly name: "UnsupportedPlsAlphabetException";
383
+ readonly $fault: "client";
384
+
385
+ constructor(opts: __ExceptionOptionType<UnsupportedPlsAlphabetException, __BaseException>);
367
386
  }
368
387
 
369
- export interface UnsupportedPlsLanguageException extends __SmithyException, $MetadataBearer {
370
- name: "UnsupportedPlsLanguageException";
371
- $fault: "client";
372
- message?: string;
388
+ export declare class UnsupportedPlsLanguageException extends __BaseException {
389
+ readonly name: "UnsupportedPlsLanguageException";
390
+ readonly $fault: "client";
391
+
392
+ constructor(opts: __ExceptionOptionType<UnsupportedPlsLanguageException, __BaseException>);
373
393
  }
374
394
 
375
- export interface SsmlMarksNotSupportedForTextTypeException extends __SmithyException, $MetadataBearer {
376
- name: "SsmlMarksNotSupportedForTextTypeException";
377
- $fault: "client";
378
- message?: string;
395
+ export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
396
+ readonly name: "SsmlMarksNotSupportedForTextTypeException";
397
+ readonly $fault: "client";
398
+
399
+ constructor(opts: __ExceptionOptionType<SsmlMarksNotSupportedForTextTypeException, __BaseException>);
379
400
  }
380
401
  export interface StartSpeechSynthesisTaskInput {
381
402
 
@@ -416,10 +437,11 @@ export declare namespace StartSpeechSynthesisTaskOutput {
416
437
  const filterSensitiveLog: (obj: StartSpeechSynthesisTaskOutput) => any;
417
438
  }
418
439
 
419
- export interface TextLengthExceededException extends __SmithyException, $MetadataBearer {
420
- name: "TextLengthExceededException";
421
- $fault: "client";
422
- message?: string;
440
+ export declare class TextLengthExceededException extends __BaseException {
441
+ readonly name: "TextLengthExceededException";
442
+ readonly $fault: "client";
443
+
444
+ constructor(opts: __ExceptionOptionType<TextLengthExceededException, __BaseException>);
423
445
  }
424
446
  export interface SynthesizeSpeechInput {
425
447
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-polly",
3
3
  "description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
4
- "version": "3.51.0",
4
+ "version": "3.54.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,40 +18,40 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.51.0",
22
- "@aws-sdk/config-resolver": "3.51.0",
23
- "@aws-sdk/credential-provider-node": "3.51.0",
24
- "@aws-sdk/fetch-http-handler": "3.50.0",
25
- "@aws-sdk/hash-node": "3.50.0",
26
- "@aws-sdk/invalid-dependency": "3.50.0",
27
- "@aws-sdk/middleware-content-length": "3.50.0",
28
- "@aws-sdk/middleware-host-header": "3.50.0",
29
- "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.51.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.51.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.51.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",