@aws-sdk/nested-clients 3.730.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/README.md +13 -0
- package/dist-cjs/index.js +2 -0
- package/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/dist-cjs/submodules/sso-oidc/index.js +804 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.js +50 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +40 -0
- package/dist-cjs/submodules/sts/STSClient.js +51 -0
- package/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +63 -0
- package/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +20 -0
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/dist-cjs/submodules/sts/index.js +950 -0
- package/dist-cjs/submodules/sts/runtimeConfig.browser.js +39 -0
- package/dist-cjs/submodules/sts/runtimeConfig.js +64 -0
- package/dist-cjs/submodules/sts/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +40 -0
- package/dist-cjs/submodules/sts/runtimeExtensions.js +25 -0
- package/dist-es/index.js +1 -0
- package/dist-es/submodules/sso-oidc/SSOOIDC.js +9 -0
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +47 -0
- package/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +23 -0
- package/dist-es/submodules/sso-oidc/commands/index.js +1 -0
- package/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js +14 -0
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +103 -0
- package/dist-es/submodules/sso-oidc/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sso-oidc/index.js +5 -0
- package/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +8 -0
- package/dist-es/submodules/sso-oidc/models/index.js +1 -0
- package/dist-es/submodules/sso-oidc/models/models_0.js +190 -0
- package/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +255 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +45 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +36 -0
- package/dist-es/submodules/sso-oidc/runtimeExtensions.js +21 -0
- package/dist-es/submodules/sts/STS.js +11 -0
- package/dist-es/submodules/sts/STSClient.js +47 -0
- package/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +23 -0
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +23 -0
- package/dist-es/submodules/sts/commands/index.js +2 -0
- package/dist-es/submodules/sts/defaultRoleAssumers.js +22 -0
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +93 -0
- package/dist-es/submodules/sts/endpoint/EndpointParameters.js +16 -0
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sts/endpoint/ruleset.js +142 -0
- package/dist-es/submodules/sts/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sts/index.js +6 -0
- package/dist-es/submodules/sts/models/STSServiceException.js +8 -0
- package/dist-es/submodules/sts/models/index.js +1 -0
- package/dist-es/submodules/sts/models/models_0.js +102 -0
- package/dist-es/submodules/sts/protocols/Aws_query.js +528 -0
- package/dist-es/submodules/sts/runtimeConfig.browser.js +34 -0
- package/dist-es/submodules/sts/runtimeConfig.js +59 -0
- package/dist-es/submodules/sts/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sts/runtimeConfig.shared.js +36 -0
- package/dist-es/submodules/sts/runtimeExtensions.js +21 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +54 -0
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +219 -0
- package/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +128 -0
- package/dist-types/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/submodules/sso-oidc/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sso-oidc/index.d.ts +50 -0
- package/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +14 -0
- package/dist-types/submodules/sso-oidc/models/index.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/models/models_0.d.ts +396 -0
- package/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +56 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +55 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/submodules/sso-oidc/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/sts/STS.d.ts +27 -0
- package/dist-types/submodules/sts/STSClient.d.ts +192 -0
- package/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +71 -0
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +222 -0
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +254 -0
- package/dist-types/submodules/sts/commands/index.d.ts +2 -0
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +23 -0
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +43 -0
- package/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +46 -0
- package/dist-types/submodules/sts/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/submodules/sts/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sts/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sts/index.d.ts +17 -0
- package/dist-types/submodules/sts/models/STSServiceException.d.ts +14 -0
- package/dist-types/submodules/sts/models/index.d.ts +1 -0
- package/dist-types/submodules/sts/models/models_0.d.ts +712 -0
- package/dist-types/submodules/sts/protocols/Aws_query.d.ts +20 -0
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +58 -0
- package/dist-types/submodules/sts/runtimeConfig.d.ts +56 -0
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +57 -0
- package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/submodules/sts/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +22 -0
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +121 -0
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +43 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +123 -0
- package/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +17 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +116 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +113 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +120 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +49 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sts/STS.d.ts +39 -0
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +128 -0
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +54 -0
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sts/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +19 -0
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +33 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +57 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sts/index.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sts/models/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +123 -0
- package/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +29 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +127 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +111 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +131 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +11 -0
- package/package.json +115 -0
- package/sso-oidc.d.ts +7 -0
- package/sso-oidc.js +5 -0
- package/sts.d.ts +7 -0
- package/sts.js +5 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
3
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
4
|
+
runtime: string;
|
|
5
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
6
|
+
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
|
+
>;
|
|
8
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
|
+
credentialDefaultProvider:
|
|
10
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
+
| ((
|
|
12
|
+
_: unknown
|
|
13
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
14
|
+
defaultUserAgentProvider: (
|
|
15
|
+
config?:
|
|
16
|
+
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
17
|
+
| undefined
|
|
18
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
19
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
20
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
21
|
+
requestHandler:
|
|
22
|
+
| import("@smithy/protocol-http").HttpHandler<any>
|
|
23
|
+
| RequestHandler;
|
|
24
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
27
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
|
+
apiVersion: string;
|
|
30
|
+
cacheMiddleware?: boolean | undefined;
|
|
31
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
32
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
33
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
34
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
35
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
36
|
+
disableHostPrefix: boolean;
|
|
37
|
+
serviceId: string;
|
|
38
|
+
profile?: string | undefined;
|
|
39
|
+
logger: import("@smithy/types").Logger;
|
|
40
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
42
|
+
userAgentAppId?:
|
|
43
|
+
| string
|
|
44
|
+
| import("@smithy/types").Provider<string | undefined>
|
|
45
|
+
| undefined;
|
|
46
|
+
retryStrategy?:
|
|
47
|
+
| import("@smithy/types").RetryStrategy
|
|
48
|
+
| import("@smithy/types").RetryStrategyV2
|
|
49
|
+
| undefined;
|
|
50
|
+
endpoint?:
|
|
51
|
+
| ((
|
|
52
|
+
| string
|
|
53
|
+
| import("@smithy/types").Endpoint
|
|
54
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
55
|
+
| import("@smithy/types").EndpointV2
|
|
56
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
57
|
+
) &
|
|
58
|
+
(
|
|
59
|
+
| string
|
|
60
|
+
| import("@smithy/types").Provider<string>
|
|
61
|
+
| import("@smithy/types").Endpoint
|
|
62
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
63
|
+
| import("@smithy/types").EndpointV2
|
|
64
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
65
|
+
))
|
|
66
|
+
| undefined;
|
|
67
|
+
endpointProvider: (
|
|
68
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
69
|
+
context?:
|
|
70
|
+
| {
|
|
71
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
72
|
+
}
|
|
73
|
+
| undefined
|
|
74
|
+
) => import("@smithy/types").EndpointV2;
|
|
75
|
+
tls?: boolean | undefined;
|
|
76
|
+
serviceConfiguredEndpoint?: undefined;
|
|
77
|
+
httpAuthSchemes:
|
|
78
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
79
|
+
| (
|
|
80
|
+
| {
|
|
81
|
+
schemeId: string;
|
|
82
|
+
identityProvider: (
|
|
83
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
84
|
+
) =>
|
|
85
|
+
| import("@smithy/types").IdentityProvider<
|
|
86
|
+
import("@smithy/types").Identity
|
|
87
|
+
>
|
|
88
|
+
| undefined;
|
|
89
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
90
|
+
}
|
|
91
|
+
| {
|
|
92
|
+
schemeId: string;
|
|
93
|
+
identityProvider: (
|
|
94
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
95
|
+
) =>
|
|
96
|
+
| import("@smithy/types").IdentityProvider<
|
|
97
|
+
import("@smithy/types").Identity
|
|
98
|
+
>
|
|
99
|
+
| (() => Promise<{}>);
|
|
100
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
101
|
+
}
|
|
102
|
+
)[];
|
|
103
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
104
|
+
credentials?:
|
|
105
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
106
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
107
|
+
| undefined;
|
|
108
|
+
signer?:
|
|
109
|
+
| import("@smithy/types").RequestSigner
|
|
110
|
+
| ((
|
|
111
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
|
112
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
|
113
|
+
| undefined;
|
|
114
|
+
signingEscapePath?: boolean | undefined;
|
|
115
|
+
systemClockOffset?: number | undefined;
|
|
116
|
+
signingRegion?: string | undefined;
|
|
117
|
+
signerConstructor?:
|
|
118
|
+
| (new (
|
|
119
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
120
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
121
|
+
) => import("@smithy/types").RequestSigner)
|
|
122
|
+
| undefined;
|
|
123
|
+
useGlobalEndpoint?:
|
|
124
|
+
| boolean
|
|
125
|
+
| import("@smithy/types").Provider<boolean>
|
|
126
|
+
| undefined;
|
|
127
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
2
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
|
+
import { STSClientConfig } from "./STSClient";
|
|
5
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
8
|
+
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
|
+
>;
|
|
10
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
+
defaultUserAgentProvider: (
|
|
12
|
+
config?:
|
|
13
|
+
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
14
|
+
| undefined
|
|
15
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
16
|
+
httpAuthSchemes:
|
|
17
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
18
|
+
| {
|
|
19
|
+
schemeId: string;
|
|
20
|
+
identityProvider: (
|
|
21
|
+
ipc: IdentityProviderConfig
|
|
22
|
+
) =>
|
|
23
|
+
| import("@smithy/types").IdentityProvider<
|
|
24
|
+
import("@smithy/types").Identity
|
|
25
|
+
>
|
|
26
|
+
| (() => Promise<{}>);
|
|
27
|
+
signer: NoAuthSigner;
|
|
28
|
+
}[];
|
|
29
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
30
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
31
|
+
requestHandler:
|
|
32
|
+
| RequestHandler
|
|
33
|
+
| import("@smithy/protocol-http").HttpHandler<any>;
|
|
34
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
36
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
37
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
38
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
39
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
40
|
+
apiVersion: string;
|
|
41
|
+
cacheMiddleware?: boolean | undefined;
|
|
42
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
43
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
44
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
45
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
46
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
47
|
+
disableHostPrefix: boolean;
|
|
48
|
+
serviceId: string;
|
|
49
|
+
profile?: string | undefined;
|
|
50
|
+
credentialDefaultProvider?:
|
|
51
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
52
|
+
| undefined;
|
|
53
|
+
logger: import("@smithy/types").Logger;
|
|
54
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
55
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
56
|
+
retryStrategy?:
|
|
57
|
+
| import("@smithy/types").RetryStrategy
|
|
58
|
+
| import("@smithy/types").RetryStrategyV2
|
|
59
|
+
| undefined;
|
|
60
|
+
endpoint?:
|
|
61
|
+
| ((
|
|
62
|
+
| string
|
|
63
|
+
| import("@smithy/types").Endpoint
|
|
64
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
65
|
+
| import("@smithy/types").EndpointV2
|
|
66
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
67
|
+
) &
|
|
68
|
+
(
|
|
69
|
+
| string
|
|
70
|
+
| import("@smithy/types").Provider<string>
|
|
71
|
+
| import("@smithy/types").Endpoint
|
|
72
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
73
|
+
| import("@smithy/types").EndpointV2
|
|
74
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
75
|
+
))
|
|
76
|
+
| undefined;
|
|
77
|
+
endpointProvider: (
|
|
78
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
79
|
+
context?:
|
|
80
|
+
| {
|
|
81
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
82
|
+
}
|
|
83
|
+
| undefined
|
|
84
|
+
) => import("@smithy/types").EndpointV2;
|
|
85
|
+
tls?: boolean | undefined;
|
|
86
|
+
serviceConfiguredEndpoint?: undefined;
|
|
87
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
88
|
+
credentials?:
|
|
89
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
90
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
91
|
+
| undefined;
|
|
92
|
+
signer?:
|
|
93
|
+
| import("@smithy/types").RequestSigner
|
|
94
|
+
| ((
|
|
95
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
|
96
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
|
97
|
+
| undefined;
|
|
98
|
+
signingEscapePath?: boolean | undefined;
|
|
99
|
+
systemClockOffset?: number | undefined;
|
|
100
|
+
signingRegion?: string | undefined;
|
|
101
|
+
signerConstructor?:
|
|
102
|
+
| (new (
|
|
103
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
104
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
105
|
+
) => import("@smithy/types").RequestSigner)
|
|
106
|
+
| undefined;
|
|
107
|
+
useGlobalEndpoint?:
|
|
108
|
+
| boolean
|
|
109
|
+
| import("@smithy/types").Provider<boolean>
|
|
110
|
+
| undefined;
|
|
111
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { STSClientConfig } from "./STSClient";
|
|
2
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
3
|
+
runtime: string;
|
|
4
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
5
|
+
requestHandler:
|
|
6
|
+
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
|
+
| import("@smithy/types").FetchHttpHandlerOptions
|
|
8
|
+
| Record<string, unknown>
|
|
9
|
+
| import("@smithy/protocol-http").HttpHandler<any>
|
|
10
|
+
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
|
+
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
13
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
14
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
18
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
20
|
+
disableHostPrefix: boolean;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
+
profile?: string | undefined;
|
|
26
|
+
defaultUserAgentProvider: (
|
|
27
|
+
config?:
|
|
28
|
+
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
29
|
+
| undefined
|
|
30
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
31
|
+
credentialDefaultProvider:
|
|
32
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
33
|
+
| ((
|
|
34
|
+
_: unknown
|
|
35
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
36
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
37
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
|
+
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
defaultsMode:
|
|
41
|
+
| import("@smithy/smithy-client").DefaultsMode
|
|
42
|
+
| import("@smithy/types").Provider<
|
|
43
|
+
import("@smithy/smithy-client").DefaultsMode
|
|
44
|
+
>;
|
|
45
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
|
+
userAgentAppId?:
|
|
47
|
+
| string
|
|
48
|
+
| import("@smithy/types").Provider<string | undefined>
|
|
49
|
+
| undefined;
|
|
50
|
+
retryStrategy?:
|
|
51
|
+
| import("@smithy/types").RetryStrategy
|
|
52
|
+
| import("@smithy/types").RetryStrategyV2
|
|
53
|
+
| undefined;
|
|
54
|
+
endpoint?:
|
|
55
|
+
| ((
|
|
56
|
+
| string
|
|
57
|
+
| import("@smithy/types").Endpoint
|
|
58
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
59
|
+
| import("@smithy/types").EndpointV2
|
|
60
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
61
|
+
) &
|
|
62
|
+
(
|
|
63
|
+
| string
|
|
64
|
+
| import("@smithy/types").Provider<string>
|
|
65
|
+
| import("@smithy/types").Endpoint
|
|
66
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
67
|
+
| import("@smithy/types").EndpointV2
|
|
68
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
69
|
+
))
|
|
70
|
+
| undefined;
|
|
71
|
+
endpointProvider: (
|
|
72
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
73
|
+
context?:
|
|
74
|
+
| {
|
|
75
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
76
|
+
}
|
|
77
|
+
| undefined
|
|
78
|
+
) => import("@smithy/types").EndpointV2;
|
|
79
|
+
tls?: boolean | undefined;
|
|
80
|
+
serviceConfiguredEndpoint?: undefined;
|
|
81
|
+
httpAuthSchemes:
|
|
82
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
83
|
+
| (
|
|
84
|
+
| {
|
|
85
|
+
schemeId: string;
|
|
86
|
+
identityProvider: (
|
|
87
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
88
|
+
) =>
|
|
89
|
+
| import("@smithy/types").IdentityProvider<
|
|
90
|
+
import("@smithy/types").Identity
|
|
91
|
+
>
|
|
92
|
+
| undefined;
|
|
93
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
94
|
+
}
|
|
95
|
+
| {
|
|
96
|
+
schemeId: string;
|
|
97
|
+
identityProvider: (
|
|
98
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
99
|
+
) =>
|
|
100
|
+
| import("@smithy/types").IdentityProvider<
|
|
101
|
+
import("@smithy/types").Identity
|
|
102
|
+
>
|
|
103
|
+
| (() => Promise<{}>);
|
|
104
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
105
|
+
}
|
|
106
|
+
)[];
|
|
107
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
108
|
+
credentials?:
|
|
109
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
110
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
111
|
+
| undefined;
|
|
112
|
+
signer?:
|
|
113
|
+
| import("@smithy/types").RequestSigner
|
|
114
|
+
| ((
|
|
115
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
|
116
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
|
117
|
+
| undefined;
|
|
118
|
+
signingEscapePath?: boolean | undefined;
|
|
119
|
+
systemClockOffset?: number | undefined;
|
|
120
|
+
signingRegion?: string | undefined;
|
|
121
|
+
signerConstructor?:
|
|
122
|
+
| (new (
|
|
123
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
124
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
125
|
+
) => import("@smithy/types").RequestSigner)
|
|
126
|
+
| undefined;
|
|
127
|
+
useGlobalEndpoint?:
|
|
128
|
+
| boolean
|
|
129
|
+
| import("@smithy/types").Provider<boolean>
|
|
130
|
+
| undefined;
|
|
131
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
|
+
import { STSClientConfig } from "./STSClient";
|
|
5
|
+
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: (_input: string | Uint8Array) => string;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
endpointProvider: (
|
|
11
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
12
|
+
context?:
|
|
13
|
+
| {
|
|
14
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
15
|
+
}
|
|
16
|
+
| undefined
|
|
17
|
+
) => import("@smithy/types").EndpointV2;
|
|
18
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
19
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
20
|
+
httpAuthSchemes:
|
|
21
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
22
|
+
| (
|
|
23
|
+
| {
|
|
24
|
+
schemeId: string;
|
|
25
|
+
identityProvider: (
|
|
26
|
+
ipc: IdentityProviderConfig
|
|
27
|
+
) =>
|
|
28
|
+
| import("@smithy/types").IdentityProvider<
|
|
29
|
+
import("@smithy/types").Identity
|
|
30
|
+
>
|
|
31
|
+
| undefined;
|
|
32
|
+
signer: AwsSdkSigV4Signer;
|
|
33
|
+
}
|
|
34
|
+
| {
|
|
35
|
+
schemeId: string;
|
|
36
|
+
identityProvider: (
|
|
37
|
+
ipc: IdentityProviderConfig
|
|
38
|
+
) =>
|
|
39
|
+
| import("@smithy/types").IdentityProvider<
|
|
40
|
+
import("@smithy/types").Identity
|
|
41
|
+
>
|
|
42
|
+
| (() => Promise<{}>);
|
|
43
|
+
signer: NoAuthSigner;
|
|
44
|
+
}
|
|
45
|
+
)[];
|
|
46
|
+
logger: import("@smithy/types").Logger;
|
|
47
|
+
serviceId: string;
|
|
48
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
49
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
50
|
+
utf8Encoder: (input: string | Uint8Array) => string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { STSExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
export interface RuntimeExtension {
|
|
3
|
+
configure(extensionConfiguration: STSExtensionConfiguration): void;
|
|
4
|
+
}
|
|
5
|
+
export interface RuntimeExtensionsConfig {
|
|
6
|
+
extensions: RuntimeExtension[];
|
|
7
|
+
}
|
|
8
|
+
export declare const resolveRuntimeExtensions: (
|
|
9
|
+
runtimeConfig: any,
|
|
10
|
+
extensions: RuntimeExtension[]
|
|
11
|
+
) => any;
|
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/nested-clients",
|
|
3
|
+
"version": "3.730.0",
|
|
4
|
+
"description": "Nested clients for AWS SDK packages.",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"types": "./dist-types/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
10
|
+
"build:cjs": "node ../../scripts/compilation/inline nested-clients",
|
|
11
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
12
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
13
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
14
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
16
|
+
"lint": "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
|
|
17
|
+
"test": "yarn g:vitest run",
|
|
18
|
+
"test:watch": "yarn g:vitest watch"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18.0.0"
|
|
22
|
+
},
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "AWS SDK for JavaScript Team",
|
|
25
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
30
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
31
|
+
"@aws-sdk/core": "3.730.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.723.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.730.0",
|
|
36
|
+
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
37
|
+
"@aws-sdk/types": "3.723.0",
|
|
38
|
+
"@aws-sdk/util-endpoints": "3.730.0",
|
|
39
|
+
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
40
|
+
"@aws-sdk/util-user-agent-node": "3.730.0",
|
|
41
|
+
"@smithy/config-resolver": "^4.0.0",
|
|
42
|
+
"@smithy/core": "^3.0.0",
|
|
43
|
+
"@smithy/fetch-http-handler": "^5.0.0",
|
|
44
|
+
"@smithy/hash-node": "^4.0.0",
|
|
45
|
+
"@smithy/invalid-dependency": "^4.0.0",
|
|
46
|
+
"@smithy/middleware-content-length": "^4.0.0",
|
|
47
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
48
|
+
"@smithy/middleware-retry": "^4.0.0",
|
|
49
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
50
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
51
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
52
|
+
"@smithy/node-http-handler": "^4.0.0",
|
|
53
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
54
|
+
"@smithy/smithy-client": "^4.0.0",
|
|
55
|
+
"@smithy/types": "^4.0.0",
|
|
56
|
+
"@smithy/url-parser": "^4.0.0",
|
|
57
|
+
"@smithy/util-base64": "^4.0.0",
|
|
58
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
59
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
60
|
+
"@smithy/util-defaults-mode-browser": "^4.0.0",
|
|
61
|
+
"@smithy/util-defaults-mode-node": "^4.0.0",
|
|
62
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
63
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
64
|
+
"@smithy/util-retry": "^4.0.0",
|
|
65
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
66
|
+
"tslib": "^2.6.2"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"concurrently": "7.0.0",
|
|
70
|
+
"downlevel-dts": "0.10.1",
|
|
71
|
+
"rimraf": "3.0.2",
|
|
72
|
+
"typescript": "~5.2.2"
|
|
73
|
+
},
|
|
74
|
+
"typesVersions": {
|
|
75
|
+
"<4.0": {
|
|
76
|
+
"dist-types/*": [
|
|
77
|
+
"dist-types/ts3.4/*"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"files": [
|
|
82
|
+
"./sso-oidc.d.ts",
|
|
83
|
+
"./sso-oidc.js",
|
|
84
|
+
"./sts.d.ts",
|
|
85
|
+
"./sts.js",
|
|
86
|
+
"dist-*/**"
|
|
87
|
+
],
|
|
88
|
+
"browser": {
|
|
89
|
+
"./dist-es/nested-sso-oidc/runtimeConfig": "./dist-es/nested-sso-oidc/runtimeConfig.browser",
|
|
90
|
+
"./dist-es/nested-sts/runtimeConfig": "./dist-es/nested-sts/runtimeConfig.browser"
|
|
91
|
+
},
|
|
92
|
+
"react-native": {},
|
|
93
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
97
|
+
"directory": "packages/nested-clients"
|
|
98
|
+
},
|
|
99
|
+
"exports": {
|
|
100
|
+
"./sso-oidc": {
|
|
101
|
+
"module": "./dist-es/submodules/sso-oidc/index.js",
|
|
102
|
+
"node": "./dist-cjs/submodules/sso-oidc/index.js",
|
|
103
|
+
"import": "./dist-es/submodules/sso-oidc/index.js",
|
|
104
|
+
"require": "./dist-cjs/submodules/sso-oidc/index.js",
|
|
105
|
+
"types": "./dist-types/submodules/sso-oidc/index.d.ts"
|
|
106
|
+
},
|
|
107
|
+
"./sts": {
|
|
108
|
+
"module": "./dist-es/submodules/sts/index.js",
|
|
109
|
+
"node": "./dist-cjs/submodules/sts/index.js",
|
|
110
|
+
"import": "./dist-es/submodules/sts/index.js",
|
|
111
|
+
"require": "./dist-cjs/submodules/sts/index.js",
|
|
112
|
+
"types": "./dist-types/submodules/sts/index.d.ts"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/sso-oidc.d.ts
ADDED
package/sso-oidc.js
ADDED
package/sts.d.ts
ADDED