@aws-sdk/client-signin 3.935.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 (74) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +214 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +56 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +439 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +42 -0
  11. package/dist-es/Signin.js +9 -0
  12. package/dist-es/SigninClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +50 -0
  15. package/dist-es/commands/CreateOAuth2TokenCommand.js +16 -0
  16. package/dist-es/commands/index.js +1 -0
  17. package/dist-es/endpoint/EndpointParameters.js +13 -0
  18. package/dist-es/endpoint/endpointResolver.js +14 -0
  19. package/dist-es/endpoint/ruleset.js +4 -0
  20. package/dist-es/extensionConfiguration.js +1 -0
  21. package/dist-es/index.js +6 -0
  22. package/dist-es/models/SigninServiceException.js +8 -0
  23. package/dist-es/models/enums.js +8 -0
  24. package/dist-es/models/errors.js +57 -0
  25. package/dist-es/models/models_0.js +1 -0
  26. package/dist-es/runtimeConfig.browser.js +34 -0
  27. package/dist-es/runtimeConfig.js +51 -0
  28. package/dist-es/runtimeConfig.native.js +11 -0
  29. package/dist-es/runtimeConfig.shared.js +38 -0
  30. package/dist-es/runtimeExtensions.js +9 -0
  31. package/dist-es/schemas/schemas_0.js +221 -0
  32. package/dist-types/Signin.d.ts +18 -0
  33. package/dist-types/SigninClient.d.ts +198 -0
  34. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  35. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  36. package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +157 -0
  37. package/dist-types/commands/index.d.ts +1 -0
  38. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  39. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  40. package/dist-types/endpoint/ruleset.d.ts +2 -0
  41. package/dist-types/extensionConfiguration.d.ts +9 -0
  42. package/dist-types/index.d.ts +16 -0
  43. package/dist-types/models/SigninServiceException.d.ts +14 -0
  44. package/dist-types/models/enums.d.ts +34 -0
  45. package/dist-types/models/errors.d.ts +102 -0
  46. package/dist-types/models/models_0.d.ts +142 -0
  47. package/dist-types/runtimeConfig.browser.d.ts +59 -0
  48. package/dist-types/runtimeConfig.d.ts +59 -0
  49. package/dist-types/runtimeConfig.native.d.ts +58 -0
  50. package/dist-types/runtimeConfig.shared.d.ts +33 -0
  51. package/dist-types/runtimeExtensions.d.ts +17 -0
  52. package/dist-types/schemas/schemas_0.d.ts +14 -0
  53. package/dist-types/ts3.4/Signin.d.ts +22 -0
  54. package/dist-types/ts3.4/SigninClient.d.ts +127 -0
  55. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  56. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  57. package/dist-types/ts3.4/commands/CreateOAuth2TokenCommand.d.ts +47 -0
  58. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  59. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  60. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  61. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  62. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  63. package/dist-types/ts3.4/index.d.ts +10 -0
  64. package/dist-types/ts3.4/models/SigninServiceException.d.ts +9 -0
  65. package/dist-types/ts3.4/models/enums.d.ts +10 -0
  66. package/dist-types/ts3.4/models/errors.d.ts +35 -0
  67. package/dist-types/ts3.4/models/models_0.d.ts +26 -0
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +121 -0
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +116 -0
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +125 -0
  71. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +53 -0
  72. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  73. package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
  74. package/package.json +99 -0
@@ -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,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -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
+ }
@@ -0,0 +1,121 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { SigninClientConfig } from "./SigninClient";
3
+ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
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?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
16
+ ) => Promise<import("@smithy/types").UserAgent>;
17
+ maxAttempts: number | import("@smithy/types").Provider<number>;
18
+ region: string | import("@smithy/types").Provider<any>;
19
+ requestHandler:
20
+ | import("@smithy/protocol-http").HttpHandler<any>
21
+ | RequestHandler;
22
+ retryMode: string | import("@smithy/types").Provider<string>;
23
+ sha256: import("@smithy/types").HashConstructor;
24
+ streamCollector: import("@smithy/types").StreamCollector;
25
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
26
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
+ apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
31
+ urlParser: import("@smithy/types").UrlParser;
32
+ base64Decoder: import("@smithy/types").Decoder;
33
+ base64Encoder: (_input: Uint8Array | string) => string;
34
+ utf8Decoder: import("@smithy/types").Decoder;
35
+ utf8Encoder: (input: Uint8Array | string) => string;
36
+ disableHostPrefix: boolean;
37
+ serviceId: string;
38
+ profile?: string;
39
+ logger: import("@smithy/types").Logger;
40
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent;
46
+ userAgentAppId?:
47
+ | string
48
+ | undefined
49
+ | import("@smithy/types").Provider<string | undefined>;
50
+ retryStrategy?:
51
+ | import("@smithy/types").RetryStrategy
52
+ | import("@smithy/types").RetryStrategyV2;
53
+ endpoint?:
54
+ | ((
55
+ | string
56
+ | import("@smithy/types").Endpoint
57
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
+ | import("@smithy/types").EndpointV2
59
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
60
+ ) &
61
+ (
62
+ | string
63
+ | import("@smithy/types").Provider<string>
64
+ | import("@smithy/types").Endpoint
65
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
66
+ | import("@smithy/types").EndpointV2
67
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
68
+ ))
69
+ | undefined;
70
+ endpointProvider: (
71
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
72
+ context?: {
73
+ logger?: import("@smithy/types").Logger;
74
+ }
75
+ ) => import("@smithy/types").EndpointV2;
76
+ tls?: boolean;
77
+ serviceConfiguredEndpoint?: never;
78
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
79
+ httpAuthSchemes:
80
+ | import("@smithy/types").HttpAuthScheme[]
81
+ | (
82
+ | {
83
+ schemeId: string;
84
+ identityProvider: (
85
+ ipc: import("@smithy/types").IdentityProviderConfig
86
+ ) =>
87
+ | import("@smithy/types").IdentityProvider<
88
+ import("@smithy/types").Identity
89
+ >
90
+ | undefined;
91
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
92
+ }
93
+ | {
94
+ schemeId: string;
95
+ identityProvider: (
96
+ ipc: import("@smithy/types").IdentityProviderConfig
97
+ ) =>
98
+ | import("@smithy/types").IdentityProvider<
99
+ import("@smithy/types").Identity
100
+ >
101
+ | (() => Promise<{}>);
102
+ signer: import("@smithy/core").NoAuthSigner;
103
+ }
104
+ )[];
105
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SigninHttpAuthSchemeProvider;
106
+ credentials?:
107
+ | import("@smithy/types").AwsCredentialIdentity
108
+ | import("@smithy/types").AwsCredentialIdentityProvider;
109
+ signer?:
110
+ | import("@smithy/types").RequestSigner
111
+ | ((
112
+ authScheme?: import("@smithy/types").AuthScheme
113
+ ) => Promise<import("@smithy/types").RequestSigner>);
114
+ signingEscapePath?: boolean;
115
+ systemClockOffset?: number;
116
+ signingRegion?: string;
117
+ signerConstructor?: new (
118
+ options: import("@smithy/signature-v4").SignatureV4Init &
119
+ import("@smithy/signature-v4").SignatureV4CryptoInit
120
+ ) => import("@smithy/types").RequestSigner;
121
+ };
@@ -0,0 +1,116 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { SigninClientConfig } from "./SigninClient";
3
+ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
4
+ runtime: string;
5
+ defaultsMode: import("@smithy/types").Provider<
6
+ import("@smithy/smithy-client").ResolvedDefaultsMode
7
+ >;
8
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider:
11
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
12
+ | ((
13
+ init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ ) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
15
+ defaultUserAgentProvider: (
16
+ config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
17
+ ) => Promise<import("@smithy/types").UserAgent>;
18
+ maxAttempts: number | import("@smithy/types").Provider<number>;
19
+ region: string | import("@smithy/types").Provider<string>;
20
+ requestHandler:
21
+ | RequestHandler
22
+ | import("@smithy/protocol-http").HttpHandler<any>;
23
+ retryMode: string | import("@smithy/types").Provider<string>;
24
+ sha256: import("@smithy/types").HashConstructor;
25
+ streamCollector: import("@smithy/types").StreamCollector;
26
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
29
+ apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
31
+ urlParser: import("@smithy/types").UrlParser;
32
+ base64Decoder: import("@smithy/types").Decoder;
33
+ base64Encoder: (_input: Uint8Array | string) => string;
34
+ utf8Decoder: import("@smithy/types").Decoder;
35
+ utf8Encoder: (input: Uint8Array | string) => string;
36
+ disableHostPrefix: boolean;
37
+ serviceId: string;
38
+ profile?: string;
39
+ logger: import("@smithy/types").Logger;
40
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent;
46
+ retryStrategy?:
47
+ | import("@smithy/types").RetryStrategy
48
+ | import("@smithy/types").RetryStrategyV2;
49
+ endpoint?:
50
+ | ((
51
+ | string
52
+ | import("@smithy/types").Endpoint
53
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
54
+ | import("@smithy/types").EndpointV2
55
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
56
+ ) &
57
+ (
58
+ | string
59
+ | import("@smithy/types").Provider<string>
60
+ | import("@smithy/types").Endpoint
61
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
62
+ | import("@smithy/types").EndpointV2
63
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
64
+ ))
65
+ | undefined;
66
+ endpointProvider: (
67
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
68
+ context?: {
69
+ logger?: import("@smithy/types").Logger;
70
+ }
71
+ ) => import("@smithy/types").EndpointV2;
72
+ tls?: boolean;
73
+ serviceConfiguredEndpoint?: never;
74
+ httpAuthSchemes:
75
+ | import("@smithy/types").HttpAuthScheme[]
76
+ | (
77
+ | {
78
+ schemeId: string;
79
+ identityProvider: (
80
+ ipc: import("@smithy/types").IdentityProviderConfig
81
+ ) =>
82
+ | import("@smithy/types").IdentityProvider<
83
+ import("@smithy/types").Identity
84
+ >
85
+ | undefined;
86
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
87
+ }
88
+ | {
89
+ schemeId: string;
90
+ identityProvider: (
91
+ ipc: import("@smithy/types").IdentityProviderConfig
92
+ ) =>
93
+ | import("@smithy/types").IdentityProvider<
94
+ import("@smithy/types").Identity
95
+ >
96
+ | (() => Promise<{}>);
97
+ signer: import("@smithy/core").NoAuthSigner;
98
+ }
99
+ )[];
100
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SigninHttpAuthSchemeProvider;
101
+ credentials?:
102
+ | import("@smithy/types").AwsCredentialIdentity
103
+ | import("@smithy/types").AwsCredentialIdentityProvider;
104
+ signer?:
105
+ | import("@smithy/types").RequestSigner
106
+ | ((
107
+ authScheme?: import("@smithy/types").AuthScheme
108
+ ) => Promise<import("@smithy/types").RequestSigner>);
109
+ signingEscapePath?: boolean;
110
+ systemClockOffset?: number;
111
+ signingRegion?: string;
112
+ signerConstructor?: new (
113
+ options: import("@smithy/signature-v4").SignatureV4Init &
114
+ import("@smithy/signature-v4").SignatureV4CryptoInit
115
+ ) => import("@smithy/types").RequestSigner;
116
+ };
@@ -0,0 +1,125 @@
1
+ import { SigninClientConfig } from "./SigninClient";
2
+ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
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;
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: Uint8Array | string) => string;
18
+ utf8Decoder: import("@smithy/types").Decoder;
19
+ utf8Encoder: (input: Uint8Array | string) => string;
20
+ disableHostPrefix: boolean;
21
+ serviceId: string;
22
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
23
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
24
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
25
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
26
+ region: string | import("@smithy/types").Provider<any>;
27
+ profile?: string;
28
+ defaultUserAgentProvider: (
29
+ config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
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
+ protocol: import("@smithy/types").ClientProtocol<
41
+ import("@smithy/types").HttpRequest,
42
+ import("@smithy/types").HttpResponse
43
+ >;
44
+ defaultsMode:
45
+ | import("@smithy/smithy-client").DefaultsMode
46
+ | import("@smithy/types").Provider<
47
+ import("@smithy/smithy-client").DefaultsMode
48
+ >;
49
+ customUserAgent?: string | import("@smithy/types").UserAgent;
50
+ userAgentAppId?:
51
+ | string
52
+ | undefined
53
+ | import("@smithy/types").Provider<string | undefined>;
54
+ retryStrategy?:
55
+ | import("@smithy/types").RetryStrategy
56
+ | import("@smithy/types").RetryStrategyV2;
57
+ endpoint?:
58
+ | ((
59
+ | string
60
+ | import("@smithy/types").Endpoint
61
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
62
+ | import("@smithy/types").EndpointV2
63
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
64
+ ) &
65
+ (
66
+ | string
67
+ | import("@smithy/types").Provider<string>
68
+ | import("@smithy/types").Endpoint
69
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
70
+ | import("@smithy/types").EndpointV2
71
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
72
+ ))
73
+ | undefined;
74
+ endpointProvider: (
75
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
76
+ context?: {
77
+ logger?: import("@smithy/types").Logger;
78
+ }
79
+ ) => import("@smithy/types").EndpointV2;
80
+ tls?: boolean;
81
+ serviceConfiguredEndpoint?: never;
82
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
83
+ httpAuthSchemes:
84
+ | import("@smithy/types").HttpAuthScheme[]
85
+ | (
86
+ | {
87
+ schemeId: string;
88
+ identityProvider: (
89
+ ipc: import("@smithy/types").IdentityProviderConfig
90
+ ) =>
91
+ | import("@smithy/types").IdentityProvider<
92
+ import("@smithy/types").Identity
93
+ >
94
+ | undefined;
95
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
96
+ }
97
+ | {
98
+ schemeId: string;
99
+ identityProvider: (
100
+ ipc: import("@smithy/types").IdentityProviderConfig
101
+ ) =>
102
+ | import("@smithy/types").IdentityProvider<
103
+ import("@smithy/types").Identity
104
+ >
105
+ | (() => Promise<{}>);
106
+ signer: import("@smithy/core").NoAuthSigner;
107
+ }
108
+ )[];
109
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SigninHttpAuthSchemeProvider;
110
+ credentials?:
111
+ | import("@smithy/types").AwsCredentialIdentity
112
+ | import("@smithy/types").AwsCredentialIdentityProvider;
113
+ signer?:
114
+ | import("@smithy/types").RequestSigner
115
+ | ((
116
+ authScheme?: import("@smithy/types").AuthScheme
117
+ ) => Promise<import("@smithy/types").RequestSigner>);
118
+ signingEscapePath?: boolean;
119
+ systemClockOffset?: number;
120
+ signingRegion?: string;
121
+ signerConstructor?: new (
122
+ options: import("@smithy/signature-v4").SignatureV4Init &
123
+ import("@smithy/signature-v4").SignatureV4CryptoInit
124
+ ) => import("@smithy/types").RequestSigner;
125
+ };