@aws-sdk/client-polly 3.489.0 → 3.490.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/PollyClient.js +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-es/PollyClient.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/PollyClient.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/ts3.4/PollyClient.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/package.json +4 -4
package/dist-cjs/PollyClient.js
CHANGED
|
@@ -17,14 +17,6 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
|
17
17
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
18
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
19
19
|
class PollyClient extends smithy_client_1.Client {
|
|
20
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
21
|
-
return httpAuthSchemeProvider_1.defaultPollyHttpAuthSchemeParametersProvider;
|
|
22
|
-
}
|
|
23
|
-
getIdentityProviderConfigProvider() {
|
|
24
|
-
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
25
|
-
"aws.auth#sigv4": config.credentials,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
20
|
constructor(...[configuration]) {
|
|
29
21
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
30
22
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
@@ -52,5 +44,13 @@ class PollyClient extends smithy_client_1.Client {
|
|
|
52
44
|
destroy() {
|
|
53
45
|
super.destroy();
|
|
54
46
|
}
|
|
47
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
48
|
+
return httpAuthSchemeProvider_1.defaultPollyHttpAuthSchemeParametersProvider;
|
|
49
|
+
}
|
|
50
|
+
getIdentityProviderConfigProvider() {
|
|
51
|
+
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
52
|
+
"aws.auth#sigv4": config.credentials,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
55
|
}
|
|
56
56
|
exports.PollyClient = PollyClient;
|
|
@@ -39,7 +39,7 @@ const defaultPollyHttpAuthSchemeProvider = (authParameters) => {
|
|
|
39
39
|
};
|
|
40
40
|
exports.defaultPollyHttpAuthSchemeProvider = defaultPollyHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
-
const config_0 = (0, core_1.
|
|
42
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
43
|
return {
|
|
44
44
|
...config_0,
|
|
45
45
|
};
|
|
@@ -22,7 +22,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
22
|
{
|
|
23
23
|
schemeId: "aws.auth#sigv4",
|
|
24
24
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new core_1.
|
|
25
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
package/dist-es/PollyClient.js
CHANGED
|
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class PollyClient extends __Client {
|
|
17
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
-
return defaultPollyHttpAuthSchemeParametersProvider;
|
|
19
|
-
}
|
|
20
|
-
getIdentityProviderConfigProvider() {
|
|
21
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
-
"aws.auth#sigv4": config.credentials,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
constructor(...[configuration]) {
|
|
26
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
27
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -49,4 +41,12 @@ export class PollyClient extends __Client {
|
|
|
49
41
|
destroy() {
|
|
50
42
|
super.destroy();
|
|
51
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultPollyHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
3
|
export const defaultPollyHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
@@ -34,7 +34,7 @@ export const defaultPollyHttpAuthSchemeProvider = (authParameters) => {
|
|
|
34
34
|
return options;
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
-
const config_0 =
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
38
|
return {
|
|
39
39
|
...config_0,
|
|
40
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -19,7 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
19
|
{
|
|
20
20
|
schemeId: "aws.auth#sigv4",
|
|
21
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
@@ -178,8 +178,6 @@ export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceI
|
|
|
178
178
|
* The resolved configuration of PollyClient class. This is resolved and normalized from the {@link PollyClientConfig | constructor configuration interface}.
|
|
179
179
|
*/
|
|
180
180
|
readonly config: PollyClientResolvedConfig;
|
|
181
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
182
|
-
private getIdentityProviderConfigProvider;
|
|
183
181
|
constructor(...[configuration]: __CheckOptionalClientConfig<PollyClientConfig>);
|
|
184
182
|
/**
|
|
185
183
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -187,4 +185,6 @@ export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceI
|
|
|
187
185
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
188
186
|
*/
|
|
189
187
|
destroy(): void;
|
|
188
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
189
|
+
private getIdentityProviderConfigProvider;
|
|
190
190
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { PollyClientResolvedConfig } from "../PollyClient";
|
|
4
4
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const defaultPollyHttpAuthSchemeProvider: PollyHttpAuthSchemeProv
|
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
32
|
/**
|
|
33
33
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
34
|
* @internal
|
|
@@ -43,7 +43,7 @@ export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
|
-
export interface HttpAuthSchemeResolvedConfig extends
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
47
|
/**
|
|
48
48
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
49
|
* @internal
|
|
@@ -58,4 +58,4 @@ export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedCon
|
|
|
58
58
|
/**
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig &
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -167,10 +167,10 @@ export declare class PollyClient extends __Client<
|
|
|
167
167
|
PollyClientResolvedConfig
|
|
168
168
|
> {
|
|
169
169
|
readonly config: PollyClientResolvedConfig;
|
|
170
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
171
|
-
private getIdentityProviderConfigProvider;
|
|
172
170
|
constructor(
|
|
173
171
|
...[configuration]: __CheckOptionalClientConfig<PollyClientConfig>
|
|
174
172
|
);
|
|
175
173
|
destroy(): void;
|
|
174
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
175
|
+
private getIdentityProviderConfigProvider;
|
|
176
176
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
5
|
} from "@aws-sdk/core";
|
|
6
6
|
import {
|
|
7
7
|
HandlerExecutionContext,
|
|
@@ -30,15 +30,15 @@ export declare const defaultPollyHttpAuthSchemeParametersProvider: (
|
|
|
30
30
|
export interface PollyHttpAuthSchemeProvider
|
|
31
31
|
extends HttpAuthSchemeProvider<PollyHttpAuthSchemeParameters> {}
|
|
32
32
|
export declare const defaultPollyHttpAuthSchemeProvider: PollyHttpAuthSchemeProvider;
|
|
33
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
34
34
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
35
|
httpAuthSchemeProvider?: PollyHttpAuthSchemeProvider;
|
|
36
36
|
}
|
|
37
37
|
export interface HttpAuthSchemeResolvedConfig
|
|
38
|
-
extends
|
|
38
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
39
39
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
40
|
readonly httpAuthSchemeProvider: PollyHttpAuthSchemeProvider;
|
|
41
41
|
}
|
|
42
42
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
43
|
-
config: T & HttpAuthSchemeInputConfig &
|
|
43
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
44
44
|
) => T & HttpAuthSchemeResolvedConfig;
|
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.
|
|
4
|
+
"version": "3.490.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.490.0",
|
|
24
|
+
"@aws-sdk/core": "3.490.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.490.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.489.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.489.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.489.0",
|