@aws-sdk/nested-clients 3.997.31 → 3.997.33
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/cognito-identity/index.js +11 -9
- package/dist-cjs/submodules/signin/index.js +121 -76
- package/dist-cjs/submodules/sso/index.js +6 -5
- package/dist-cjs/submodules/sso-oidc/index.js +6 -5
- package/dist-cjs/submodules/sts/index.js +1 -1
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +12 -8
- package/dist-es/submodules/signin/Signin.js +2 -0
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/signin/commandBuilder.js +3 -0
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/dist-es/submodules/signin/commands/index.js +1 -0
- package/dist-es/submodules/signin/endpoint/bdd.js +80 -70
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/signin/Signin.d.ts +7 -0
- package/dist-types/submodules/signin/SigninClient.d.ts +3 -2
- package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/submodules/signin/models/models_0.d.ts +41 -3
- package/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +7 -15
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -22
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +7 -13
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +4 -6
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -2
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -28
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +13 -30
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +12 -26
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +13 -30
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +6 -12
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +2 -4
- package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +20 -3
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +25 -27
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +13 -18
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +9 -14
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +42 -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 +2 -1
- package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +1 -2
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -12
- package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +13 -30
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +12 -26
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +13 -30
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +4 -5
- package/dist-types/ts3.4/submodules/sso/SSO.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +13 -20
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +10 -13
- package/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +5 -10
- package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -12
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +11 -23
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +4 -7
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +16 -29
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -5
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -34
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +11 -23
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/sts/STS.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +16 -30
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +11 -16
- package/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +8 -18
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -5
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -6
- package/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +5 -7
- package/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -24
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +14 -34
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +14 -33
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +14 -34
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +6 -10
- package/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +1 -5
- package/package.json +53 -50
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
2
|
-
export declare const getRuntimeConfig: (
|
|
3
|
-
config: CognitoIdentityClientConfig
|
|
4
|
-
) => {
|
|
2
|
+
export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
|
|
5
3
|
runtime: string;
|
|
6
4
|
requestHandler:
|
|
7
5
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
@@ -23,11 +21,7 @@ export declare const getRuntimeConfig: (
|
|
|
23
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
25
23
|
streamCollector: (
|
|
26
|
-
stream:
|
|
27
|
-
| import("stream").Readable
|
|
28
|
-
| import("stream/web").ReadableStream
|
|
29
|
-
| ReadableStream
|
|
30
|
-
| Blob
|
|
24
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
31
25
|
) => Promise<Uint8Array>;
|
|
32
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
33
27
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -42,7 +36,7 @@ export declare const getRuntimeConfig: (
|
|
|
42
36
|
region: string | import("@smithy/types").Provider<any>;
|
|
43
37
|
profile?: string;
|
|
44
38
|
defaultUserAgentProvider: (
|
|
45
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
39
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
46
40
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
47
41
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
48
42
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
@@ -50,17 +44,10 @@ export declare const getRuntimeConfig: (
|
|
|
50
44
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
51
45
|
defaultsMode:
|
|
52
46
|
| import("@smithy/core/client").DefaultsMode
|
|
53
|
-
| import("@smithy/types").Provider<
|
|
54
|
-
import("@smithy/core/client").DefaultsMode
|
|
55
|
-
>;
|
|
47
|
+
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
|
|
56
48
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
57
|
-
userAgentAppId?:
|
|
58
|
-
|
|
59
|
-
| undefined
|
|
60
|
-
| import("@smithy/types").Provider<string | undefined>;
|
|
61
|
-
retryStrategy?:
|
|
62
|
-
| import("@smithy/types").RetryStrategy
|
|
63
|
-
| import("@smithy/types").RetryStrategyV2;
|
|
49
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
50
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
64
51
|
endpoint?:
|
|
65
52
|
| ((
|
|
66
53
|
| string
|
|
@@ -82,7 +69,7 @@ export declare const getRuntimeConfig: (
|
|
|
82
69
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
83
70
|
context?: {
|
|
84
71
|
logger?: import("@smithy/types").Logger;
|
|
85
|
-
}
|
|
72
|
+
},
|
|
86
73
|
) => import("@smithy/types").EndpointV2;
|
|
87
74
|
tls?: boolean;
|
|
88
75
|
serviceConfiguredEndpoint?: never;
|
|
@@ -93,22 +80,18 @@ export declare const getRuntimeConfig: (
|
|
|
93
80
|
| {
|
|
94
81
|
schemeId: string;
|
|
95
82
|
identityProvider: (
|
|
96
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
83
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
97
84
|
) =>
|
|
98
|
-
| import("@smithy/types").IdentityProvider<
|
|
99
|
-
import("@smithy/types").Identity
|
|
100
|
-
>
|
|
85
|
+
| import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
|
|
101
86
|
| undefined;
|
|
102
87
|
signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
|
|
103
88
|
}
|
|
104
89
|
| {
|
|
105
90
|
schemeId: string;
|
|
106
91
|
identityProvider: (
|
|
107
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
92
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
108
93
|
) =>
|
|
109
|
-
| import("@smithy/types").IdentityProvider<
|
|
110
|
-
import("@smithy/types").Identity
|
|
111
|
-
>
|
|
94
|
+
| import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
|
|
112
95
|
| (() => Promise<{}>);
|
|
113
96
|
signer: import("@smithy/core").NoAuthSigner;
|
|
114
97
|
}
|
|
@@ -120,13 +103,13 @@ export declare const getRuntimeConfig: (
|
|
|
120
103
|
signer?:
|
|
121
104
|
| import("@smithy/types").RequestSigner
|
|
122
105
|
| ((
|
|
123
|
-
authScheme?: import("@smithy/types").AuthScheme
|
|
106
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
124
107
|
) => Promise<import("@smithy/types").RequestSigner>);
|
|
125
108
|
signingEscapePath?: boolean;
|
|
126
109
|
systemClockOffset?: number;
|
|
127
110
|
signingRegion?: string;
|
|
128
111
|
signerConstructor?: new (
|
|
129
112
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
130
|
-
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
113
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
131
114
|
) => import("@smithy/types").RequestSigner;
|
|
132
115
|
};
|
|
@@ -3,9 +3,7 @@ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
|
3
3
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
4
|
import { IdentityProviderConfig } from "@smithy/types";
|
|
5
5
|
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
6
|
-
export declare const getRuntimeConfig: (
|
|
7
|
-
config: CognitoIdentityClientConfig
|
|
8
|
-
) => {
|
|
6
|
+
export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
|
|
9
7
|
apiVersion: string;
|
|
10
8
|
base64Decoder: import("@smithy/types").Decoder;
|
|
11
9
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -14,7 +12,7 @@ export declare const getRuntimeConfig: (
|
|
|
14
12
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
15
13
|
context?: {
|
|
16
14
|
logger?: import("@smithy/types").Logger;
|
|
17
|
-
}
|
|
15
|
+
},
|
|
18
16
|
) => import("@smithy/types").EndpointV2;
|
|
19
17
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
20
18
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
@@ -24,22 +22,18 @@ export declare const getRuntimeConfig: (
|
|
|
24
22
|
| {
|
|
25
23
|
schemeId: string;
|
|
26
24
|
identityProvider: (
|
|
27
|
-
ipc: IdentityProviderConfig
|
|
25
|
+
ipc: IdentityProviderConfig,
|
|
28
26
|
) =>
|
|
29
|
-
| import("@smithy/types").IdentityProvider<
|
|
30
|
-
import("@smithy/types").Identity
|
|
31
|
-
>
|
|
27
|
+
| import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
|
|
32
28
|
| undefined;
|
|
33
29
|
signer: AwsSdkSigV4Signer;
|
|
34
30
|
}
|
|
35
31
|
| {
|
|
36
32
|
schemeId: string;
|
|
37
33
|
identityProvider: (
|
|
38
|
-
ipc: IdentityProviderConfig
|
|
34
|
+
ipc: IdentityProviderConfig,
|
|
39
35
|
) =>
|
|
40
|
-
| import("@smithy/types").IdentityProvider<
|
|
41
|
-
import("@smithy/types").Identity
|
|
42
|
-
>
|
|
36
|
+
| import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
|
|
43
37
|
| (() => Promise<{}>);
|
|
44
38
|
signer: NoAuthSigner;
|
|
45
39
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
export interface RuntimeExtension {
|
|
3
|
-
configure(
|
|
4
|
-
extensionConfiguration: CognitoIdentityExtensionConfiguration
|
|
5
|
-
): void;
|
|
3
|
+
configure(extensionConfiguration: CognitoIdentityExtensionConfiguration): void;
|
|
6
4
|
}
|
|
7
5
|
export interface RuntimeExtensionsConfig {
|
|
8
6
|
extensions: RuntimeExtension[];
|
|
9
7
|
}
|
|
10
8
|
export declare const resolveRuntimeExtensions: (
|
|
11
9
|
runtimeConfig: any,
|
|
12
|
-
extensions: RuntimeExtension[]
|
|
10
|
+
extensions: RuntimeExtension[],
|
|
13
11
|
) => any;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
-
import {
|
|
3
|
-
StaticErrorSchema,
|
|
4
|
-
StaticOperationSchema,
|
|
5
|
-
StaticStructureSchema,
|
|
6
|
-
} from "@smithy/types";
|
|
2
|
+
import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
7
3
|
export declare var CognitoIdentityServiceException$: StaticErrorSchema;
|
|
8
4
|
export declare var ExternalServiceException$: StaticErrorSchema;
|
|
9
5
|
export declare var InternalErrorException$: StaticErrorSchema;
|
|
@@ -3,20 +3,37 @@ import {
|
|
|
3
3
|
CreateOAuth2TokenCommandInput,
|
|
4
4
|
CreateOAuth2TokenCommandOutput,
|
|
5
5
|
} from "./commands/CreateOAuth2TokenCommand";
|
|
6
|
+
import {
|
|
7
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
8
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
9
|
+
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
6
10
|
import { SigninClient } from "./SigninClient";
|
|
7
11
|
export interface Signin {
|
|
8
12
|
createOAuth2Token(
|
|
9
13
|
args: CreateOAuth2TokenCommandInput,
|
|
10
|
-
options?: __HttpHandlerOptions
|
|
14
|
+
options?: __HttpHandlerOptions,
|
|
11
15
|
): Promise<CreateOAuth2TokenCommandOutput>;
|
|
12
16
|
createOAuth2Token(
|
|
13
17
|
args: CreateOAuth2TokenCommandInput,
|
|
14
|
-
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
|
|
18
|
+
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void,
|
|
15
19
|
): void;
|
|
16
20
|
createOAuth2Token(
|
|
17
21
|
args: CreateOAuth2TokenCommandInput,
|
|
18
22
|
options: __HttpHandlerOptions,
|
|
19
|
-
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
|
|
23
|
+
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void,
|
|
24
|
+
): void;
|
|
25
|
+
createOAuth2TokenWithIAM(
|
|
26
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
27
|
+
options?: __HttpHandlerOptions,
|
|
28
|
+
): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
29
|
+
createOAuth2TokenWithIAM(
|
|
30
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
31
|
+
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void,
|
|
32
|
+
): void;
|
|
33
|
+
createOAuth2TokenWithIAM(
|
|
34
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
35
|
+
options: __HttpHandlerOptions,
|
|
36
|
+
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void,
|
|
20
37
|
): void;
|
|
21
38
|
}
|
|
22
39
|
export declare class Signin extends SigninClient implements Signin {}
|
|
@@ -11,10 +11,7 @@ import {
|
|
|
11
11
|
Client as __Client,
|
|
12
12
|
} from "@smithy/core/client";
|
|
13
13
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
|
|
14
|
-
import {
|
|
15
|
-
EndpointInputConfig,
|
|
16
|
-
EndpointResolvedConfig,
|
|
17
|
-
} from "@smithy/core/endpoints";
|
|
14
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
18
15
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
19
16
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
|
|
20
17
|
import {
|
|
@@ -40,6 +37,10 @@ import {
|
|
|
40
37
|
CreateOAuth2TokenCommandInput,
|
|
41
38
|
CreateOAuth2TokenCommandOutput,
|
|
42
39
|
} from "./commands/CreateOAuth2TokenCommand";
|
|
40
|
+
import {
|
|
41
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
42
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
43
|
+
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
43
44
|
import {
|
|
44
45
|
ClientInputEndpointParameters,
|
|
45
46
|
ClientResolvedEndpointParameters,
|
|
@@ -47,10 +48,13 @@ import {
|
|
|
47
48
|
} from "./endpoint/EndpointParameters";
|
|
48
49
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
49
50
|
export { __Client };
|
|
50
|
-
export type ServiceInputTypes =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
export type ServiceInputTypes =
|
|
52
|
+
| CreateOAuth2TokenCommandInput
|
|
53
|
+
| CreateOAuth2TokenWithIAMCommandInput;
|
|
54
|
+
export type ServiceOutputTypes =
|
|
55
|
+
| CreateOAuth2TokenCommandOutput
|
|
56
|
+
| CreateOAuth2TokenWithIAMCommandOutput;
|
|
57
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
54
58
|
requestHandler?: __HttpHandlerUserInput;
|
|
55
59
|
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
56
60
|
urlParser?: __UrlParser;
|
|
@@ -75,9 +79,7 @@ export interface ClientDefaults
|
|
|
75
79
|
extensions?: RuntimeExtension[];
|
|
76
80
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
77
81
|
}
|
|
78
|
-
export type SigninClientConfigType = Partial<
|
|
79
|
-
__SmithyConfiguration<__HttpHandlerOptions>
|
|
80
|
-
> &
|
|
82
|
+
export type SigninClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
81
83
|
ClientDefaults &
|
|
82
84
|
UserAgentInputConfig &
|
|
83
85
|
RetryInputConfig &
|
|
@@ -87,19 +89,17 @@ export type SigninClientConfigType = Partial<
|
|
|
87
89
|
HttpAuthSchemeInputConfig &
|
|
88
90
|
ClientInputEndpointParameters;
|
|
89
91
|
export interface SigninClientConfig extends SigninClientConfigType {}
|
|
90
|
-
export type SigninClientResolvedConfigType =
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export interface SigninClientResolvedConfig
|
|
102
|
-
extends SigninClientResolvedConfigType {}
|
|
92
|
+
export type SigninClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
93
|
+
Required<ClientDefaults> &
|
|
94
|
+
RuntimeExtensionsConfig &
|
|
95
|
+
UserAgentResolvedConfig &
|
|
96
|
+
RetryResolvedConfig &
|
|
97
|
+
RegionResolvedConfig &
|
|
98
|
+
HostHeaderResolvedConfig &
|
|
99
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
100
|
+
HttpAuthSchemeResolvedConfig &
|
|
101
|
+
ClientResolvedEndpointParameters;
|
|
102
|
+
export interface SigninClientResolvedConfig extends SigninClientResolvedConfigType {}
|
|
103
103
|
export declare class SigninClient extends __Client<
|
|
104
104
|
__HttpHandlerOptions,
|
|
105
105
|
ServiceInputTypes,
|
|
@@ -107,8 +107,6 @@ export declare class SigninClient extends __Client<
|
|
|
107
107
|
SigninClientResolvedConfig
|
|
108
108
|
> {
|
|
109
109
|
readonly config: SigninClientResolvedConfig;
|
|
110
|
-
constructor(
|
|
111
|
-
...[configuration]: __CheckOptionalClientConfig<SigninClientConfig>
|
|
112
|
-
);
|
|
110
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SigninClientConfig>);
|
|
113
111
|
destroy(): void;
|
|
114
112
|
}
|
|
@@ -7,17 +7,10 @@ import { SigninHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
|
7
7
|
export interface HttpAuthExtensionConfiguration {
|
|
8
8
|
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
9
|
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
-
setHttpAuthSchemeProvider(
|
|
11
|
-
httpAuthSchemeProvider: SigninHttpAuthSchemeProvider
|
|
12
|
-
): void;
|
|
10
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SigninHttpAuthSchemeProvider): void;
|
|
13
11
|
httpAuthSchemeProvider(): SigninHttpAuthSchemeProvider;
|
|
14
|
-
setCredentials(
|
|
15
|
-
|
|
16
|
-
): void;
|
|
17
|
-
credentials():
|
|
18
|
-
| AwsCredentialIdentity
|
|
19
|
-
| AwsCredentialIdentityProvider
|
|
20
|
-
| undefined;
|
|
12
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
13
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
21
14
|
}
|
|
22
15
|
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
16
|
httpAuthSchemes: HttpAuthScheme[];
|
|
@@ -25,8 +18,8 @@ export type HttpAuthRuntimeConfig = Partial<{
|
|
|
25
18
|
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
19
|
}>;
|
|
27
20
|
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
-
runtimeConfig: HttpAuthRuntimeConfig
|
|
21
|
+
runtimeConfig: HttpAuthRuntimeConfig,
|
|
29
22
|
) => HttpAuthExtensionConfiguration;
|
|
30
23
|
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
-
config: HttpAuthExtensionConfiguration
|
|
24
|
+
config: HttpAuthExtensionConfiguration,
|
|
32
25
|
) => HttpAuthRuntimeConfig;
|
|
@@ -12,36 +12,32 @@ import {
|
|
|
12
12
|
Provider,
|
|
13
13
|
} from "@smithy/types";
|
|
14
14
|
import { SigninClientResolvedConfig } from "../SigninClient";
|
|
15
|
-
export interface SigninHttpAuthSchemeParameters
|
|
16
|
-
extends HttpAuthSchemeParameters {
|
|
15
|
+
export interface SigninHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
17
16
|
region?: string;
|
|
18
17
|
}
|
|
19
|
-
export interface SigninHttpAuthSchemeParametersProvider
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
> {}
|
|
18
|
+
export interface SigninHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<
|
|
19
|
+
SigninClientResolvedConfig,
|
|
20
|
+
HandlerExecutionContext,
|
|
21
|
+
SigninHttpAuthSchemeParameters,
|
|
22
|
+
object
|
|
23
|
+
> {}
|
|
26
24
|
export declare const defaultSigninHttpAuthSchemeParametersProvider: (
|
|
27
25
|
config: SigninClientResolvedConfig,
|
|
28
26
|
context: HandlerExecutionContext,
|
|
29
|
-
input: object
|
|
27
|
+
input: object,
|
|
30
28
|
) => Promise<SigninHttpAuthSchemeParameters>;
|
|
31
|
-
export interface SigninHttpAuthSchemeProvider
|
|
32
|
-
extends HttpAuthSchemeProvider<SigninHttpAuthSchemeParameters> {}
|
|
29
|
+
export interface SigninHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SigninHttpAuthSchemeParameters> {}
|
|
33
30
|
export declare const defaultSigninHttpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
|
|
34
31
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
35
32
|
authSchemePreference?: string[] | Provider<string[]>;
|
|
36
33
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
34
|
httpAuthSchemeProvider?: SigninHttpAuthSchemeProvider;
|
|
38
35
|
}
|
|
39
|
-
export interface HttpAuthSchemeResolvedConfig
|
|
40
|
-
extends AwsSdkSigV4AuthResolvedConfig {
|
|
36
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
37
|
readonly authSchemePreference: Provider<string[]>;
|
|
42
38
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
43
39
|
readonly httpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
|
|
44
40
|
}
|
|
45
41
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
46
|
-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
47
43
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
-
import { SigninClientResolvedConfig } from "./SigninClient";
|
|
3
|
-
export declare const command: <
|
|
4
|
-
I extends import("./commands").CreateOAuth2TokenCommandInput,
|
|
5
|
-
O extends import("./commands").CreateOAuth2TokenCommandOutput
|
|
6
|
-
>(
|
|
2
|
+
import { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "./SigninClient";
|
|
3
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(
|
|
7
4
|
added: EndpointParameterInstructions,
|
|
8
5
|
plugins: (
|
|
9
6
|
CommandCtor: any,
|
|
10
7
|
clientStack: any,
|
|
11
8
|
config: any,
|
|
12
|
-
options: any
|
|
9
|
+
options: any,
|
|
13
10
|
) => import("@smithy/types").Pluggable<any, any>[],
|
|
14
11
|
op: string,
|
|
15
12
|
$: import("@smithy/types").StaticOperationSchema,
|
|
16
|
-
smithyContext?: Record<string, unknown
|
|
13
|
+
smithyContext?: Record<string, unknown>,
|
|
17
14
|
) => {
|
|
18
|
-
new (
|
|
15
|
+
new (
|
|
16
|
+
input: I,
|
|
17
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
18
|
I,
|
|
20
19
|
O,
|
|
21
20
|
SigninClientResolvedConfig,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ServiceInputTypes,
|
|
22
|
+
ServiceOutputTypes
|
|
24
23
|
>;
|
|
25
24
|
new (
|
|
26
25
|
...[input]: import("@smithy/types").OptionalParameter<I>
|
|
@@ -28,15 +27,11 @@ export declare const command: <
|
|
|
28
27
|
I,
|
|
29
28
|
O,
|
|
30
29
|
SigninClientResolvedConfig,
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
33
32
|
>;
|
|
34
33
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
35
34
|
};
|
|
36
35
|
export declare const _ep0: EndpointParameterInstructions;
|
|
37
|
-
export declare const
|
|
38
|
-
|
|
39
|
-
cs: any,
|
|
40
|
-
config: any,
|
|
41
|
-
o: any
|
|
42
|
-
) => never[];
|
|
36
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
37
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
CreateOAuth2TokenRequest,
|
|
4
|
-
CreateOAuth2TokenResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { CreateOAuth2TokenRequest, CreateOAuth2TokenResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
|
-
export interface CreateOAuth2TokenCommandInput
|
|
8
|
-
extends CreateOAuth2TokenRequest {}
|
|
4
|
+
export interface CreateOAuth2TokenCommandInput extends CreateOAuth2TokenRequest {}
|
|
9
5
|
export interface CreateOAuth2TokenCommandOutput
|
|
10
|
-
extends CreateOAuth2TokenResponse,
|
|
11
|
-
__MetadataBearer {}
|
|
6
|
+
extends CreateOAuth2TokenResponse, __MetadataBearer {}
|
|
12
7
|
declare const CreateOAuth2TokenCommand_base: {
|
|
13
8
|
new (
|
|
14
|
-
input: CreateOAuth2TokenCommandInput
|
|
9
|
+
input: CreateOAuth2TokenCommandInput,
|
|
15
10
|
): import("@smithy/core/client").CommandImpl<
|
|
16
11
|
CreateOAuth2TokenCommandInput,
|
|
17
12
|
CreateOAuth2TokenCommandOutput,
|
|
18
13
|
import("..").SigninClientResolvedConfig,
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import("..").ServiceInputTypes,
|
|
15
|
+
import("..").ServiceOutputTypes
|
|
21
16
|
>;
|
|
22
17
|
new (
|
|
23
|
-
input: CreateOAuth2TokenCommandInput
|
|
18
|
+
input: CreateOAuth2TokenCommandInput,
|
|
24
19
|
): import("@smithy/core/client").CommandImpl<
|
|
25
20
|
CreateOAuth2TokenCommandInput,
|
|
26
21
|
CreateOAuth2TokenCommandOutput,
|
|
27
22
|
import("..").SigninClientResolvedConfig,
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
import("..").ServiceInputTypes,
|
|
24
|
+
import("..").ServiceOutputTypes
|
|
30
25
|
>;
|
|
31
26
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
27
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
CreateOAuth2TokenWithIAMRequest,
|
|
4
|
+
CreateOAuth2TokenWithIAMResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface CreateOAuth2TokenWithIAMCommandInput extends CreateOAuth2TokenWithIAMRequest {}
|
|
8
|
+
export interface CreateOAuth2TokenWithIAMCommandOutput
|
|
9
|
+
extends CreateOAuth2TokenWithIAMResponse, __MetadataBearer {}
|
|
10
|
+
declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
11
|
+
new (
|
|
12
|
+
input: CreateOAuth2TokenWithIAMCommandInput,
|
|
13
|
+
): import("@smithy/core/client").CommandImpl<
|
|
14
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
15
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
16
|
+
import("..").SigninClientResolvedConfig,
|
|
17
|
+
import("..").ServiceInputTypes,
|
|
18
|
+
import("..").ServiceOutputTypes
|
|
19
|
+
>;
|
|
20
|
+
new (
|
|
21
|
+
input: CreateOAuth2TokenWithIAMCommandInput,
|
|
22
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
24
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
25
|
+
import("..").SigninClientResolvedConfig,
|
|
26
|
+
import("..").ServiceInputTypes,
|
|
27
|
+
import("..").ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
|
+
};
|
|
31
|
+
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
|
|
32
|
+
protected static __types: {
|
|
33
|
+
api: {
|
|
34
|
+
input: CreateOAuth2TokenWithIAMRequest;
|
|
35
|
+
output: CreateOAuth2TokenWithIAMResponse;
|
|
36
|
+
};
|
|
37
|
+
sdk: {
|
|
38
|
+
input: CreateOAuth2TokenWithIAMCommandInput;
|
|
39
|
+
output: CreateOAuth2TokenWithIAMCommandOutput;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -23,7 +23,7 @@ export type ClientResolvedEndpointParameters = Pick<
|
|
|
23
23
|
defaultSigningName: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
-
options: T & ClientInputEndpointParameters
|
|
26
|
+
options: T & ClientInputEndpointParameters,
|
|
27
27
|
) => T & ClientResolvedEndpointParameters;
|
|
28
28
|
export declare const commonParams: {
|
|
29
29
|
readonly UseFIPS: {
|
|
@@ -49,4 +49,5 @@ export interface EndpointParameters extends __EndpointParameters {
|
|
|
49
49
|
Endpoint?: string | undefined;
|
|
50
50
|
Region?: string | undefined;
|
|
51
51
|
IsControlPlane?: boolean | undefined;
|
|
52
|
+
IsOAuthEndpoint?: boolean | undefined;
|
|
52
53
|
}
|
|
@@ -3,7 +3,8 @@ import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
4
|
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
export interface SigninExtensionConfiguration
|
|
6
|
-
extends
|
|
6
|
+
extends
|
|
7
|
+
HttpHandlerExtensionConfiguration,
|
|
7
8
|
DefaultExtensionConfiguration,
|
|
8
9
|
AwsRegionExtensionConfiguration,
|
|
9
10
|
HttpAuthExtensionConfiguration {}
|
|
@@ -9,5 +9,4 @@ export declare const OAuth2ErrorCode: {
|
|
|
9
9
|
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
10
10
|
readonly USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED";
|
|
11
11
|
};
|
|
12
|
-
export type OAuth2ErrorCode =
|
|
13
|
-
(typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode];
|
|
12
|
+
export type OAuth2ErrorCode = (typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode];
|
|
@@ -5,31 +5,23 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
5
5
|
readonly name: "AccessDeniedException";
|
|
6
6
|
readonly $fault: "client";
|
|
7
7
|
error: OAuth2ErrorCode | undefined;
|
|
8
|
-
constructor(
|
|
9
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
10
|
-
);
|
|
8
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
11
9
|
}
|
|
12
10
|
export declare class InternalServerException extends __BaseException {
|
|
13
11
|
readonly name: "InternalServerException";
|
|
14
12
|
readonly $fault: "server";
|
|
15
13
|
error: OAuth2ErrorCode | undefined;
|
|
16
|
-
constructor(
|
|
17
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
18
|
-
);
|
|
14
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
19
15
|
}
|
|
20
16
|
export declare class TooManyRequestsError extends __BaseException {
|
|
21
17
|
readonly name: "TooManyRequestsError";
|
|
22
18
|
readonly $fault: "client";
|
|
23
19
|
error: OAuth2ErrorCode | undefined;
|
|
24
|
-
constructor(
|
|
25
|
-
opts: __ExceptionOptionType<TooManyRequestsError, __BaseException>
|
|
26
|
-
);
|
|
20
|
+
constructor(opts: __ExceptionOptionType<TooManyRequestsError, __BaseException>);
|
|
27
21
|
}
|
|
28
22
|
export declare class ValidationException extends __BaseException {
|
|
29
23
|
readonly name: "ValidationException";
|
|
30
24
|
readonly $fault: "client";
|
|
31
25
|
error: OAuth2ErrorCode | undefined;
|
|
32
|
-
constructor(
|
|
33
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
34
|
-
);
|
|
26
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
35
27
|
}
|
|
@@ -24,3 +24,12 @@ export interface CreateOAuth2TokenResponseBody {
|
|
|
24
24
|
export interface CreateOAuth2TokenResponse {
|
|
25
25
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
26
26
|
}
|
|
27
|
+
export interface CreateOAuth2TokenWithIAMRequest {
|
|
28
|
+
grantType: string | undefined;
|
|
29
|
+
resource: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface CreateOAuth2TokenWithIAMResponse {
|
|
32
|
+
accessToken: string | undefined;
|
|
33
|
+
tokenType: string | undefined;
|
|
34
|
+
expiresIn: number | undefined;
|
|
35
|
+
}
|