@aws-sdk/nested-clients 3.935.0 → 3.936.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/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
- package/dist-cjs/submodules/signin/index.js +439 -0
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
- package/dist-cjs/submodules/signin/runtimeConfig.js +54 -0
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +42 -0
- package/dist-es/submodules/signin/Signin.js +9 -0
- package/dist-es/submodules/signin/SigninClient.js +50 -0
- package/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
- package/dist-es/submodules/signin/commands/index.js +1 -0
- package/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
- package/dist-es/submodules/signin/extensionConfiguration.js +1 -0
- package/dist-es/submodules/signin/index.js +6 -0
- package/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
- package/dist-es/submodules/signin/models/enums.js +8 -0
- package/dist-es/submodules/signin/models/errors.js +57 -0
- package/dist-es/submodules/signin/models/models_0.js +1 -0
- package/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
- package/dist-es/submodules/signin/runtimeConfig.js +49 -0
- package/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/signin/runtimeConfig.shared.js +38 -0
- package/dist-es/submodules/signin/runtimeExtensions.js +9 -0
- package/dist-es/submodules/signin/schemas/schemas_0.js +221 -0
- package/dist-types/submodules/signin/Signin.d.ts +18 -0
- package/dist-types/submodules/signin/SigninClient.d.ts +198 -0
- package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
- package/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/signin/index.d.ts +16 -0
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
- package/dist-types/submodules/signin/models/enums.d.ts +34 -0
- package/dist-types/submodules/signin/models/errors.d.ts +102 -0
- package/dist-types/submodules/signin/models/models_0.d.ts +142 -0
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +59 -0
- package/dist-types/submodules/signin/runtimeConfig.d.ts +59 -0
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +58 -0
- package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +33 -0
- package/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/signin/schemas/schemas_0.d.ts +14 -0
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +127 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
- package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +121 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +114 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +125 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +53 -0
- package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +19 -0
- package/package.json +22 -11
- package/signin.d.ts +7 -0
- package/signin.js +5 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SigninClientConfig } from "./SigninClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SigninClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
cacheMiddleware?: boolean;
|
|
11
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
12
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
14
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
15
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
16
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
18
|
+
disableHostPrefix: boolean;
|
|
19
|
+
serviceId: string;
|
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
23
|
+
profile?: string;
|
|
24
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
25
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
26
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
27
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
|
+
logger: import("@smithy/types").Logger;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
31
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
32
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
35
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
36
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
|
+
logger?: import("@smithy/types").Logger;
|
|
38
|
+
}) => import("@smithy/types").EndpointV2;
|
|
39
|
+
tls?: boolean;
|
|
40
|
+
serviceConfiguredEndpoint?: never;
|
|
41
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
42
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
43
|
+
schemeId: string;
|
|
44
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
45
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
46
|
+
} | {
|
|
47
|
+
schemeId: string;
|
|
48
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
49
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
50
|
+
})[];
|
|
51
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SigninHttpAuthSchemeProvider;
|
|
52
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
53
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
54
|
+
signingEscapePath?: boolean;
|
|
55
|
+
systemClockOffset?: number;
|
|
56
|
+
signingRegion?: string;
|
|
57
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
58
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
|
+
import { SigninClientConfig } from "./SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const getRuntimeConfig: (config: SigninClientConfig) => {
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
11
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
12
|
+
disableHostPrefix: boolean;
|
|
13
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
14
|
+
logger?: import("@smithy/types").Logger;
|
|
15
|
+
}) => import("@smithy/types").EndpointV2;
|
|
16
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
17
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SigninHttpAuthSchemeProvider;
|
|
18
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
19
|
+
schemeId: string;
|
|
20
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
21
|
+
signer: AwsSdkSigV4Signer;
|
|
22
|
+
} | {
|
|
23
|
+
schemeId: string;
|
|
24
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
25
|
+
signer: NoAuthSigner;
|
|
26
|
+
})[];
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
29
|
+
serviceId: string;
|
|
30
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
31
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
32
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SigninExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: SigninExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var RefreshToken: StaticSimpleSchema;
|
|
3
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
4
|
+
export declare var AccessToken: StaticStructureSchema;
|
|
5
|
+
export declare var CreateOAuth2TokenRequest: StaticStructureSchema;
|
|
6
|
+
export declare var CreateOAuth2TokenRequestBody: StaticStructureSchema;
|
|
7
|
+
export declare var CreateOAuth2TokenResponse: StaticStructureSchema;
|
|
8
|
+
export declare var CreateOAuth2TokenResponseBody: StaticStructureSchema;
|
|
9
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
10
|
+
export declare var TooManyRequestsError: StaticErrorSchema;
|
|
11
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
12
|
+
export declare var __Unit: "unit";
|
|
13
|
+
export declare var SigninServiceException: StaticErrorSchema;
|
|
14
|
+
export declare var CreateOAuth2Token: StaticOperationSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
CreateOAuth2TokenCommandInput,
|
|
4
|
+
CreateOAuth2TokenCommandOutput,
|
|
5
|
+
} from "./commands/CreateOAuth2TokenCommand";
|
|
6
|
+
import { SigninClient } from "./SigninClient";
|
|
7
|
+
export interface Signin {
|
|
8
|
+
createOAuth2Token(
|
|
9
|
+
args: CreateOAuth2TokenCommandInput,
|
|
10
|
+
options?: __HttpHandlerOptions
|
|
11
|
+
): Promise<CreateOAuth2TokenCommandOutput>;
|
|
12
|
+
createOAuth2Token(
|
|
13
|
+
args: CreateOAuth2TokenCommandInput,
|
|
14
|
+
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
|
|
15
|
+
): void;
|
|
16
|
+
createOAuth2Token(
|
|
17
|
+
args: CreateOAuth2TokenCommandInput,
|
|
18
|
+
options: __HttpHandlerOptions,
|
|
19
|
+
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
|
|
20
|
+
): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class Signin extends SigninClient implements Signin {}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import {
|
|
6
|
+
UserAgentInputConfig,
|
|
7
|
+
UserAgentResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import {
|
|
10
|
+
RegionInputConfig,
|
|
11
|
+
RegionResolvedConfig,
|
|
12
|
+
} from "@smithy/config-resolver";
|
|
13
|
+
import {
|
|
14
|
+
EndpointInputConfig,
|
|
15
|
+
EndpointResolvedConfig,
|
|
16
|
+
} from "@smithy/middleware-endpoint";
|
|
17
|
+
import {
|
|
18
|
+
RetryInputConfig,
|
|
19
|
+
RetryResolvedConfig,
|
|
20
|
+
} from "@smithy/middleware-retry";
|
|
21
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
22
|
+
import {
|
|
23
|
+
Client as __Client,
|
|
24
|
+
DefaultsMode as __DefaultsMode,
|
|
25
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
26
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
27
|
+
} from "@smithy/smithy-client";
|
|
28
|
+
import {
|
|
29
|
+
AwsCredentialIdentityProvider,
|
|
30
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
34
|
+
Decoder as __Decoder,
|
|
35
|
+
Encoder as __Encoder,
|
|
36
|
+
HashConstructor as __HashConstructor,
|
|
37
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
40
|
+
Logger as __Logger,
|
|
41
|
+
Provider as __Provider,
|
|
42
|
+
Provider,
|
|
43
|
+
StreamCollector as __StreamCollector,
|
|
44
|
+
UrlParser as __UrlParser,
|
|
45
|
+
UserAgent as __UserAgent,
|
|
46
|
+
} from "@smithy/types";
|
|
47
|
+
import {
|
|
48
|
+
HttpAuthSchemeInputConfig,
|
|
49
|
+
HttpAuthSchemeResolvedConfig,
|
|
50
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
51
|
+
import {
|
|
52
|
+
CreateOAuth2TokenCommandInput,
|
|
53
|
+
CreateOAuth2TokenCommandOutput,
|
|
54
|
+
} from "./commands/CreateOAuth2TokenCommand";
|
|
55
|
+
import {
|
|
56
|
+
ClientInputEndpointParameters,
|
|
57
|
+
ClientResolvedEndpointParameters,
|
|
58
|
+
EndpointParameters,
|
|
59
|
+
} from "./endpoint/EndpointParameters";
|
|
60
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
61
|
+
export { __Client };
|
|
62
|
+
export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
|
|
63
|
+
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
|
|
64
|
+
export interface ClientDefaults
|
|
65
|
+
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
66
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
67
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
68
|
+
urlParser?: __UrlParser;
|
|
69
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
70
|
+
streamCollector?: __StreamCollector;
|
|
71
|
+
base64Decoder?: __Decoder;
|
|
72
|
+
base64Encoder?: __Encoder;
|
|
73
|
+
utf8Decoder?: __Decoder;
|
|
74
|
+
utf8Encoder?: __Encoder;
|
|
75
|
+
runtime?: string;
|
|
76
|
+
disableHostPrefix?: boolean;
|
|
77
|
+
serviceId?: string;
|
|
78
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
79
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
80
|
+
region?: string | __Provider<string>;
|
|
81
|
+
profile?: string;
|
|
82
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
83
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
84
|
+
maxAttempts?: number | __Provider<number>;
|
|
85
|
+
retryMode?: string | __Provider<string>;
|
|
86
|
+
logger?: __Logger;
|
|
87
|
+
extensions?: RuntimeExtension[];
|
|
88
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
89
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
90
|
+
}
|
|
91
|
+
export type SigninClientConfigType = Partial<
|
|
92
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
93
|
+
> &
|
|
94
|
+
ClientDefaults &
|
|
95
|
+
UserAgentInputConfig &
|
|
96
|
+
RetryInputConfig &
|
|
97
|
+
RegionInputConfig &
|
|
98
|
+
HostHeaderInputConfig &
|
|
99
|
+
EndpointInputConfig<EndpointParameters> &
|
|
100
|
+
HttpAuthSchemeInputConfig &
|
|
101
|
+
ClientInputEndpointParameters;
|
|
102
|
+
export interface SigninClientConfig extends SigninClientConfigType {}
|
|
103
|
+
export type SigninClientResolvedConfigType =
|
|
104
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
105
|
+
Required<ClientDefaults> &
|
|
106
|
+
RuntimeExtensionsConfig &
|
|
107
|
+
UserAgentResolvedConfig &
|
|
108
|
+
RetryResolvedConfig &
|
|
109
|
+
RegionResolvedConfig &
|
|
110
|
+
HostHeaderResolvedConfig &
|
|
111
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
112
|
+
HttpAuthSchemeResolvedConfig &
|
|
113
|
+
ClientResolvedEndpointParameters;
|
|
114
|
+
export interface SigninClientResolvedConfig
|
|
115
|
+
extends SigninClientResolvedConfigType {}
|
|
116
|
+
export declare class SigninClient extends __Client<
|
|
117
|
+
__HttpHandlerOptions,
|
|
118
|
+
ServiceInputTypes,
|
|
119
|
+
ServiceOutputTypes,
|
|
120
|
+
SigninClientResolvedConfig
|
|
121
|
+
> {
|
|
122
|
+
readonly config: SigninClientResolvedConfig;
|
|
123
|
+
constructor(
|
|
124
|
+
...[configuration]: __CheckOptionalClientConfig<SigninClientConfig>
|
|
125
|
+
);
|
|
126
|
+
destroy(): void;
|
|
127
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { SigninHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: SigninHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): SigninHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(
|
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
|
16
|
+
): void;
|
|
17
|
+
credentials():
|
|
18
|
+
| AwsCredentialIdentity
|
|
19
|
+
| AwsCredentialIdentityProvider
|
|
20
|
+
| undefined;
|
|
21
|
+
}
|
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
24
|
+
httpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
|
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
+
config: HttpAuthExtensionConfiguration
|
|
32
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
13
|
+
} from "@smithy/types";
|
|
14
|
+
import { SigninClientResolvedConfig } from "../SigninClient";
|
|
15
|
+
export interface SigninHttpAuthSchemeParameters
|
|
16
|
+
extends HttpAuthSchemeParameters {
|
|
17
|
+
region?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SigninHttpAuthSchemeParametersProvider
|
|
20
|
+
extends HttpAuthSchemeParametersProvider<
|
|
21
|
+
SigninClientResolvedConfig,
|
|
22
|
+
HandlerExecutionContext,
|
|
23
|
+
SigninHttpAuthSchemeParameters,
|
|
24
|
+
object
|
|
25
|
+
> {}
|
|
26
|
+
export declare const defaultSigninHttpAuthSchemeParametersProvider: (
|
|
27
|
+
config: SigninClientResolvedConfig,
|
|
28
|
+
context: HandlerExecutionContext,
|
|
29
|
+
input: object
|
|
30
|
+
) => Promise<SigninHttpAuthSchemeParameters>;
|
|
31
|
+
export interface SigninHttpAuthSchemeProvider
|
|
32
|
+
extends HttpAuthSchemeProvider<SigninHttpAuthSchemeParameters> {}
|
|
33
|
+
export declare const defaultSigninHttpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
|
|
34
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
35
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
httpAuthSchemeProvider?: SigninHttpAuthSchemeProvider;
|
|
38
|
+
}
|
|
39
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
40
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
42
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
43
|
+
readonly httpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
|
|
44
|
+
}
|
|
45
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
46
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
47
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
CreateOAuth2TokenRequest,
|
|
5
|
+
CreateOAuth2TokenResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import { SigninClientResolvedConfig } from "../SigninClient";
|
|
8
|
+
export { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
export interface CreateOAuth2TokenCommandInput
|
|
11
|
+
extends CreateOAuth2TokenRequest {}
|
|
12
|
+
export interface CreateOAuth2TokenCommandOutput
|
|
13
|
+
extends CreateOAuth2TokenResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const CreateOAuth2TokenCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: CreateOAuth2TokenCommandInput
|
|
18
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
19
|
+
CreateOAuth2TokenCommandInput,
|
|
20
|
+
CreateOAuth2TokenCommandOutput,
|
|
21
|
+
SigninClientResolvedConfig,
|
|
22
|
+
CreateOAuth2TokenCommandInput,
|
|
23
|
+
CreateOAuth2TokenCommandOutput
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
input: CreateOAuth2TokenCommandInput
|
|
27
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
28
|
+
CreateOAuth2TokenCommandInput,
|
|
29
|
+
CreateOAuth2TokenCommandOutput,
|
|
30
|
+
SigninClientResolvedConfig,
|
|
31
|
+
CreateOAuth2TokenCommandInput,
|
|
32
|
+
CreateOAuth2TokenCommandOutput
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
|
+
};
|
|
36
|
+
export declare class CreateOAuth2TokenCommand extends CreateOAuth2TokenCommand_base {
|
|
37
|
+
protected static __types: {
|
|
38
|
+
api: {
|
|
39
|
+
input: CreateOAuth2TokenRequest;
|
|
40
|
+
output: CreateOAuth2TokenResponse;
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
input: CreateOAuth2TokenCommandInput;
|
|
44
|
+
output: CreateOAuth2TokenCommandOutput;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateOAuth2TokenCommand";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
endpoint?:
|
|
11
|
+
| string
|
|
12
|
+
| Provider<string>
|
|
13
|
+
| Endpoint
|
|
14
|
+
| Provider<Endpoint>
|
|
15
|
+
| EndpointV2
|
|
16
|
+
| Provider<EndpointV2>;
|
|
17
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
18
|
+
}
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
23
|
+
defaultSigningName: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
+
options: T & ClientInputEndpointParameters
|
|
27
|
+
) => T & ClientResolvedEndpointParameters;
|
|
28
|
+
export declare const commonParams: {
|
|
29
|
+
readonly UseFIPS: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "useFipsEndpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Endpoint: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "endpoint";
|
|
36
|
+
};
|
|
37
|
+
readonly Region: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "region";
|
|
40
|
+
};
|
|
41
|
+
readonly UseDualStack: {
|
|
42
|
+
readonly type: "builtInParams";
|
|
43
|
+
readonly name: "useDualstackEndpoint";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
47
|
+
UseDualStack?: boolean | undefined;
|
|
48
|
+
UseFIPS?: boolean | undefined;
|
|
49
|
+
Endpoint?: string | undefined;
|
|
50
|
+
Region?: string | undefined;
|
|
51
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export interface SigninExtensionConfiguration
|
|
6
|
+
extends HttpHandlerExtensionConfiguration,
|
|
7
|
+
DefaultExtensionConfiguration,
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./SigninClient";
|
|
2
|
+
export * from "./Signin";
|
|
3
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { SigninExtensionConfiguration } from "./extensionConfiguration";
|
|
6
|
+
export * from "./commands";
|
|
7
|
+
export * from "./models/enums";
|
|
8
|
+
export * from "./models/errors";
|
|
9
|
+
export * from "./models/models_0";
|
|
10
|
+
export { SigninServiceException } from "./models/SigninServiceException";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceException as __ServiceException,
|
|
3
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
|
+
} from "@smithy/smithy-client";
|
|
5
|
+
export { __ServiceExceptionOptions };
|
|
6
|
+
export { __ServiceException };
|
|
7
|
+
export declare class SigninServiceException extends __ServiceException {
|
|
8
|
+
constructor(options: __ServiceExceptionOptions);
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const OAuth2ErrorCode: {
|
|
2
|
+
readonly AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED";
|
|
3
|
+
readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS";
|
|
4
|
+
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
5
|
+
readonly SERVER_ERROR: "server_error";
|
|
6
|
+
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
7
|
+
readonly USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED";
|
|
8
|
+
};
|
|
9
|
+
export type OAuth2ErrorCode =
|
|
10
|
+
(typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { OAuth2ErrorCode } from "./enums";
|
|
3
|
+
import { SigninServiceException as __BaseException } from "./SigninServiceException";
|
|
4
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
5
|
+
readonly name: "AccessDeniedException";
|
|
6
|
+
readonly $fault: "client";
|
|
7
|
+
error: OAuth2ErrorCode | undefined;
|
|
8
|
+
constructor(
|
|
9
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
export declare class InternalServerException extends __BaseException {
|
|
13
|
+
readonly name: "InternalServerException";
|
|
14
|
+
readonly $fault: "server";
|
|
15
|
+
error: OAuth2ErrorCode | undefined;
|
|
16
|
+
constructor(
|
|
17
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export declare class TooManyRequestsError extends __BaseException {
|
|
21
|
+
readonly name: "TooManyRequestsError";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
error: OAuth2ErrorCode | undefined;
|
|
24
|
+
constructor(
|
|
25
|
+
opts: __ExceptionOptionType<TooManyRequestsError, __BaseException>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export declare class ValidationException extends __BaseException {
|
|
29
|
+
readonly name: "ValidationException";
|
|
30
|
+
readonly $fault: "client";
|
|
31
|
+
error: OAuth2ErrorCode | undefined;
|
|
32
|
+
constructor(
|
|
33
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface AccessToken {
|
|
2
|
+
accessKeyId: string | undefined;
|
|
3
|
+
secretAccessKey: string | undefined;
|
|
4
|
+
sessionToken: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface CreateOAuth2TokenRequestBody {
|
|
7
|
+
clientId: string | undefined;
|
|
8
|
+
grantType: string | undefined;
|
|
9
|
+
code?: string | undefined;
|
|
10
|
+
redirectUri?: string | undefined;
|
|
11
|
+
codeVerifier?: string | undefined;
|
|
12
|
+
refreshToken?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface CreateOAuth2TokenRequest {
|
|
15
|
+
tokenInput: CreateOAuth2TokenRequestBody | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateOAuth2TokenResponseBody {
|
|
18
|
+
accessToken: AccessToken | undefined;
|
|
19
|
+
tokenType: string | undefined;
|
|
20
|
+
expiresIn: number | undefined;
|
|
21
|
+
refreshToken: string | undefined;
|
|
22
|
+
idToken?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateOAuth2TokenResponse {
|
|
25
|
+
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
26
|
+
}
|