@aws-sdk/client-polly 3.193.0 → 3.196.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/PollyClient.js +11 -8
  3. package/dist-cjs/commands/DeleteLexiconCommand.js +10 -0
  4. package/dist-cjs/commands/DescribeVoicesCommand.js +10 -0
  5. package/dist-cjs/commands/GetLexiconCommand.js +10 -0
  6. package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +10 -0
  7. package/dist-cjs/commands/ListLexiconsCommand.js +10 -0
  8. package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +10 -0
  9. package/dist-cjs/commands/PutLexiconCommand.js +10 -0
  10. package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +10 -0
  11. package/dist-cjs/commands/SynthesizeSpeechCommand.js +10 -0
  12. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  13. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  14. package/dist-cjs/endpoint/ruleset.js +318 -0
  15. package/dist-cjs/runtimeConfig.shared.js +3 -3
  16. package/dist-es/PollyClient.js +12 -9
  17. package/dist-es/commands/DeleteLexiconCommand.js +10 -0
  18. package/dist-es/commands/DescribeVoicesCommand.js +10 -0
  19. package/dist-es/commands/GetLexiconCommand.js +10 -0
  20. package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +10 -0
  21. package/dist-es/commands/ListLexiconsCommand.js +10 -0
  22. package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +10 -0
  23. package/dist-es/commands/PutLexiconCommand.js +10 -0
  24. package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +10 -0
  25. package/dist-es/commands/SynthesizeSpeechCommand.js +10 -0
  26. package/dist-es/endpoint/EndpointParameters.js +8 -0
  27. package/dist-es/endpoint/endpointResolver.js +8 -0
  28. package/dist-es/endpoint/ruleset.js +315 -0
  29. package/dist-es/runtimeConfig.shared.js +2 -2
  30. package/dist-types/PollyClient.d.ts +6 -9
  31. package/dist-types/commands/DeleteLexiconCommand.d.ts +2 -0
  32. package/dist-types/commands/DescribeVoicesCommand.d.ts +2 -0
  33. package/dist-types/commands/GetLexiconCommand.d.ts +2 -0
  34. package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -0
  35. package/dist-types/commands/ListLexiconsCommand.d.ts +2 -0
  36. package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -0
  37. package/dist-types/commands/PutLexiconCommand.d.ts +2 -0
  38. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -0
  39. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +2 -0
  40. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  41. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  42. package/dist-types/endpoint/ruleset.d.ts +2 -0
  43. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  44. package/dist-types/runtimeConfig.d.ts +4 -2
  45. package/dist-types/runtimeConfig.native.d.ts +4 -2
  46. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  47. package/dist-types/ts3.4/PollyClient.d.ts +15 -8
  48. package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +2 -0
  49. package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +2 -0
  50. package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +2 -0
  51. package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -0
  52. package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +2 -0
  53. package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -0
  54. package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +2 -0
  55. package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -0
  56. package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +2 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  58. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  59. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  60. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  61. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  63. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  64. package/package.json +5 -3
  65. package/dist-cjs/endpoints.js +0 -177
  66. package/dist-es/endpoints.js +0 -173
  67. package/dist-types/endpoints.d.ts +0 -2
  68. package/dist-types/ts3.4/endpoints.d.ts +0 -2
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.193.0",
4
+ "version": "3.196.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",
@@ -19,13 +19,14 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.193.0",
22
+ "@aws-sdk/client-sts": "3.196.0",
23
23
  "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.193.0",
24
+ "@aws-sdk/credential-provider-node": "3.196.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.193.0",
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.196.0",
49
51
  "@aws-sdk/util-stream-browser": "3.193.0",
50
52
  "@aws-sdk/util-stream-node": "3.193.0",
51
53
  "@aws-sdk/util-user-agent-browser": "3.193.0",
@@ -1,177 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "us-east-1": {
7
- variants: [
8
- {
9
- hostname: "polly-fips.us-east-1.amazonaws.com",
10
- tags: ["fips"],
11
- },
12
- ],
13
- },
14
- "us-east-2": {
15
- variants: [
16
- {
17
- hostname: "polly-fips.us-east-2.amazonaws.com",
18
- tags: ["fips"],
19
- },
20
- ],
21
- },
22
- "us-gov-west-1": {
23
- variants: [
24
- {
25
- hostname: "polly-fips.us-gov-west-1.amazonaws.com",
26
- tags: ["fips"],
27
- },
28
- ],
29
- },
30
- "us-west-1": {
31
- variants: [
32
- {
33
- hostname: "polly-fips.us-west-1.amazonaws.com",
34
- tags: ["fips"],
35
- },
36
- ],
37
- },
38
- "us-west-2": {
39
- variants: [
40
- {
41
- hostname: "polly-fips.us-west-2.amazonaws.com",
42
- tags: ["fips"],
43
- },
44
- ],
45
- },
46
- };
47
- const partitionHash = {
48
- aws: {
49
- regions: [
50
- "af-south-1",
51
- "ap-east-1",
52
- "ap-northeast-1",
53
- "ap-northeast-2",
54
- "ap-northeast-3",
55
- "ap-south-1",
56
- "ap-southeast-1",
57
- "ap-southeast-2",
58
- "ap-southeast-3",
59
- "ca-central-1",
60
- "eu-central-1",
61
- "eu-north-1",
62
- "eu-south-1",
63
- "eu-west-1",
64
- "eu-west-2",
65
- "eu-west-3",
66
- "fips-us-east-1",
67
- "fips-us-east-2",
68
- "fips-us-west-1",
69
- "fips-us-west-2",
70
- "me-central-1",
71
- "me-south-1",
72
- "sa-east-1",
73
- "us-east-1",
74
- "us-east-2",
75
- "us-west-1",
76
- "us-west-2",
77
- ],
78
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
79
- variants: [
80
- {
81
- hostname: "polly.{region}.amazonaws.com",
82
- tags: [],
83
- },
84
- {
85
- hostname: "polly-fips.{region}.amazonaws.com",
86
- tags: ["fips"],
87
- },
88
- {
89
- hostname: "polly-fips.{region}.api.aws",
90
- tags: ["dualstack", "fips"],
91
- },
92
- {
93
- hostname: "polly.{region}.api.aws",
94
- tags: ["dualstack"],
95
- },
96
- ],
97
- },
98
- "aws-cn": {
99
- regions: ["cn-north-1", "cn-northwest-1"],
100
- regionRegex: "^cn\\-\\w+\\-\\d+$",
101
- variants: [
102
- {
103
- hostname: "polly.{region}.amazonaws.com.cn",
104
- tags: [],
105
- },
106
- {
107
- hostname: "polly-fips.{region}.amazonaws.com.cn",
108
- tags: ["fips"],
109
- },
110
- {
111
- hostname: "polly-fips.{region}.api.amazonwebservices.com.cn",
112
- tags: ["dualstack", "fips"],
113
- },
114
- {
115
- hostname: "polly.{region}.api.amazonwebservices.com.cn",
116
- tags: ["dualstack"],
117
- },
118
- ],
119
- },
120
- "aws-iso": {
121
- regions: ["us-iso-east-1", "us-iso-west-1"],
122
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
123
- variants: [
124
- {
125
- hostname: "polly.{region}.c2s.ic.gov",
126
- tags: [],
127
- },
128
- {
129
- hostname: "polly-fips.{region}.c2s.ic.gov",
130
- tags: ["fips"],
131
- },
132
- ],
133
- },
134
- "aws-iso-b": {
135
- regions: ["us-isob-east-1"],
136
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
137
- variants: [
138
- {
139
- hostname: "polly.{region}.sc2s.sgov.gov",
140
- tags: [],
141
- },
142
- {
143
- hostname: "polly-fips.{region}.sc2s.sgov.gov",
144
- tags: ["fips"],
145
- },
146
- ],
147
- },
148
- "aws-us-gov": {
149
- regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
150
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
151
- variants: [
152
- {
153
- hostname: "polly.{region}.amazonaws.com",
154
- tags: [],
155
- },
156
- {
157
- hostname: "polly-fips.{region}.amazonaws.com",
158
- tags: ["fips"],
159
- },
160
- {
161
- hostname: "polly-fips.{region}.api.aws",
162
- tags: ["dualstack", "fips"],
163
- },
164
- {
165
- hostname: "polly.{region}.api.aws",
166
- tags: ["dualstack"],
167
- },
168
- ],
169
- },
170
- };
171
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
172
- ...options,
173
- signingService: "polly",
174
- regionHash,
175
- partitionHash,
176
- });
177
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -1,173 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "us-east-1": {
4
- variants: [
5
- {
6
- hostname: "polly-fips.us-east-1.amazonaws.com",
7
- tags: ["fips"],
8
- },
9
- ],
10
- },
11
- "us-east-2": {
12
- variants: [
13
- {
14
- hostname: "polly-fips.us-east-2.amazonaws.com",
15
- tags: ["fips"],
16
- },
17
- ],
18
- },
19
- "us-gov-west-1": {
20
- variants: [
21
- {
22
- hostname: "polly-fips.us-gov-west-1.amazonaws.com",
23
- tags: ["fips"],
24
- },
25
- ],
26
- },
27
- "us-west-1": {
28
- variants: [
29
- {
30
- hostname: "polly-fips.us-west-1.amazonaws.com",
31
- tags: ["fips"],
32
- },
33
- ],
34
- },
35
- "us-west-2": {
36
- variants: [
37
- {
38
- hostname: "polly-fips.us-west-2.amazonaws.com",
39
- tags: ["fips"],
40
- },
41
- ],
42
- },
43
- };
44
- const partitionHash = {
45
- aws: {
46
- regions: [
47
- "af-south-1",
48
- "ap-east-1",
49
- "ap-northeast-1",
50
- "ap-northeast-2",
51
- "ap-northeast-3",
52
- "ap-south-1",
53
- "ap-southeast-1",
54
- "ap-southeast-2",
55
- "ap-southeast-3",
56
- "ca-central-1",
57
- "eu-central-1",
58
- "eu-north-1",
59
- "eu-south-1",
60
- "eu-west-1",
61
- "eu-west-2",
62
- "eu-west-3",
63
- "fips-us-east-1",
64
- "fips-us-east-2",
65
- "fips-us-west-1",
66
- "fips-us-west-2",
67
- "me-central-1",
68
- "me-south-1",
69
- "sa-east-1",
70
- "us-east-1",
71
- "us-east-2",
72
- "us-west-1",
73
- "us-west-2",
74
- ],
75
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
76
- variants: [
77
- {
78
- hostname: "polly.{region}.amazonaws.com",
79
- tags: [],
80
- },
81
- {
82
- hostname: "polly-fips.{region}.amazonaws.com",
83
- tags: ["fips"],
84
- },
85
- {
86
- hostname: "polly-fips.{region}.api.aws",
87
- tags: ["dualstack", "fips"],
88
- },
89
- {
90
- hostname: "polly.{region}.api.aws",
91
- tags: ["dualstack"],
92
- },
93
- ],
94
- },
95
- "aws-cn": {
96
- regions: ["cn-north-1", "cn-northwest-1"],
97
- regionRegex: "^cn\\-\\w+\\-\\d+$",
98
- variants: [
99
- {
100
- hostname: "polly.{region}.amazonaws.com.cn",
101
- tags: [],
102
- },
103
- {
104
- hostname: "polly-fips.{region}.amazonaws.com.cn",
105
- tags: ["fips"],
106
- },
107
- {
108
- hostname: "polly-fips.{region}.api.amazonwebservices.com.cn",
109
- tags: ["dualstack", "fips"],
110
- },
111
- {
112
- hostname: "polly.{region}.api.amazonwebservices.com.cn",
113
- tags: ["dualstack"],
114
- },
115
- ],
116
- },
117
- "aws-iso": {
118
- regions: ["us-iso-east-1", "us-iso-west-1"],
119
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
120
- variants: [
121
- {
122
- hostname: "polly.{region}.c2s.ic.gov",
123
- tags: [],
124
- },
125
- {
126
- hostname: "polly-fips.{region}.c2s.ic.gov",
127
- tags: ["fips"],
128
- },
129
- ],
130
- },
131
- "aws-iso-b": {
132
- regions: ["us-isob-east-1"],
133
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
134
- variants: [
135
- {
136
- hostname: "polly.{region}.sc2s.sgov.gov",
137
- tags: [],
138
- },
139
- {
140
- hostname: "polly-fips.{region}.sc2s.sgov.gov",
141
- tags: ["fips"],
142
- },
143
- ],
144
- },
145
- "aws-us-gov": {
146
- regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
147
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
148
- variants: [
149
- {
150
- hostname: "polly.{region}.amazonaws.com",
151
- tags: [],
152
- },
153
- {
154
- hostname: "polly-fips.{region}.amazonaws.com",
155
- tags: ["fips"],
156
- },
157
- {
158
- hostname: "polly-fips.{region}.api.aws",
159
- tags: ["dualstack", "fips"],
160
- },
161
- {
162
- hostname: "polly.{region}.api.aws",
163
- tags: ["dualstack"],
164
- },
165
- ],
166
- },
167
- };
168
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
169
- ...options,
170
- signingService: "polly",
171
- regionHash,
172
- partitionHash,
173
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;