@depup/aws-sdk__client-sso-oidc 3.1010.0-depup.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 (87) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/changes.json +42 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +69 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  6. package/dist-cjs/endpoint/ruleset.js +7 -0
  7. package/dist-cjs/index.js +214 -0
  8. package/dist-cjs/models/SSOOIDCServiceException.js +12 -0
  9. package/dist-cjs/models/errors.js +250 -0
  10. package/dist-cjs/runtimeConfig.browser.js +38 -0
  11. package/dist-cjs/runtimeConfig.js +53 -0
  12. package/dist-cjs/runtimeConfig.native.js +15 -0
  13. package/dist-cjs/runtimeConfig.shared.js +49 -0
  14. package/dist-cjs/schemas/schemas_0.js +246 -0
  15. package/dist-es/SSOOIDC.js +15 -0
  16. package/dist-es/SSOOIDCClient.js +50 -0
  17. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  18. package/dist-es/auth/httpAuthSchemeProvider.js +63 -0
  19. package/dist-es/commands/CreateTokenCommand.js +16 -0
  20. package/dist-es/commands/CreateTokenWithIAMCommand.js +16 -0
  21. package/dist-es/commands/RegisterClientCommand.js +16 -0
  22. package/dist-es/commands/StartDeviceAuthorizationCommand.js +16 -0
  23. package/dist-es/commands/index.js +4 -0
  24. package/dist-es/endpoint/EndpointParameters.js +13 -0
  25. package/dist-es/endpoint/endpointResolver.js +14 -0
  26. package/dist-es/endpoint/ruleset.js +4 -0
  27. package/dist-es/extensionConfiguration.js +1 -0
  28. package/dist-es/index.js +8 -0
  29. package/dist-es/models/SSOOIDCServiceException.js +8 -0
  30. package/dist-es/models/enums.js +9 -0
  31. package/dist-es/models/errors.js +233 -0
  32. package/dist-es/models/models_0.js +1 -0
  33. package/dist-es/runtimeConfig.browser.js +33 -0
  34. package/dist-es/runtimeConfig.js +48 -0
  35. package/dist-es/runtimeConfig.native.js +11 -0
  36. package/dist-es/runtimeConfig.shared.js +45 -0
  37. package/dist-es/runtimeExtensions.js +9 -0
  38. package/dist-es/schemas/schemas_0.js +243 -0
  39. package/dist-types/SSOOIDC.d.ts +76 -0
  40. package/dist-types/SSOOIDCClient.d.ts +229 -0
  41. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  42. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  43. package/dist-types/commands/CreateTokenCommand.d.ts +176 -0
  44. package/dist-types/commands/CreateTokenWithIAMCommand.d.ts +272 -0
  45. package/dist-types/commands/RegisterClientCommand.d.ts +151 -0
  46. package/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +125 -0
  47. package/dist-types/commands/index.d.ts +4 -0
  48. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  49. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  50. package/dist-types/endpoint/ruleset.d.ts +2 -0
  51. package/dist-types/extensionConfiguration.d.ts +9 -0
  52. package/dist-types/index.d.ts +54 -0
  53. package/dist-types/models/SSOOIDCServiceException.d.ts +14 -0
  54. package/dist-types/models/enums.d.ts +25 -0
  55. package/dist-types/models/errors.d.ts +364 -0
  56. package/dist-types/models/models_0.d.ts +436 -0
  57. package/dist-types/runtimeConfig.browser.d.ts +63 -0
  58. package/dist-types/runtimeConfig.d.ts +63 -0
  59. package/dist-types/runtimeConfig.native.d.ts +62 -0
  60. package/dist-types/runtimeConfig.shared.d.ts +38 -0
  61. package/dist-types/runtimeExtensions.d.ts +17 -0
  62. package/dist-types/schemas/schemas_0.d.ts +36 -0
  63. package/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  64. package/dist-types/ts3.4/SSOOIDCClient.d.ts +143 -0
  65. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  66. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  67. package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +50 -0
  70. package/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +51 -0
  71. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  72. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  73. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  74. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  75. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  76. package/dist-types/ts3.4/index.d.ts +11 -0
  77. package/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +9 -0
  78. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  79. package/dist-types/ts3.4/models/errors.d.ts +134 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +74 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +125 -0
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +120 -0
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +129 -0
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +58 -0
  85. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  86. package/dist-types/ts3.4/schemas/schemas_0.d.ts +35 -0
  87. package/package.json +159 -0
@@ -0,0 +1,38 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { NoAuthSigner } from "@smithy/core";
4
+ import type { IdentityProviderConfig } from "@smithy/types";
5
+ import type { SSOOIDCClientConfig } from "./SSOOIDCClient";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
10
+ apiVersion: string;
11
+ base64Decoder: import("@smithy/types").Decoder;
12
+ base64Encoder: (_input: Uint8Array | string) => string;
13
+ disableHostPrefix: boolean;
14
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
15
+ logger?: import("@smithy/types").Logger;
16
+ }) => import("@smithy/types").EndpointV2;
17
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
18
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
19
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
20
+ schemeId: string;
21
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
22
+ signer: AwsSdkSigV4Signer;
23
+ } | {
24
+ schemeId: string;
25
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
26
+ signer: NoAuthSigner;
27
+ })[];
28
+ logger: import("@smithy/types").Logger;
29
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
30
+ protocolSettings: {
31
+ [setting: string]: unknown;
32
+ defaultNamespace?: string;
33
+ };
34
+ serviceId: string;
35
+ urlParser: import("@smithy/types").UrlParser;
36
+ utf8Decoder: import("@smithy/types").Decoder;
37
+ utf8Encoder: (input: Uint8Array | string) => string;
38
+ };
@@ -0,0 +1,17 @@
1
+ import type { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: SSOOIDCExtensionConfiguration): 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,36 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SSOOIDCServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var AuthorizationPendingException$: StaticErrorSchema;
6
+ export declare var ExpiredTokenException$: StaticErrorSchema;
7
+ export declare var InternalServerException$: StaticErrorSchema;
8
+ export declare var InvalidClientException$: StaticErrorSchema;
9
+ export declare var InvalidClientMetadataException$: StaticErrorSchema;
10
+ export declare var InvalidGrantException$: StaticErrorSchema;
11
+ export declare var InvalidRedirectUriException$: StaticErrorSchema;
12
+ export declare var InvalidRequestException$: StaticErrorSchema;
13
+ export declare var InvalidRequestRegionException$: StaticErrorSchema;
14
+ export declare var InvalidScopeException$: StaticErrorSchema;
15
+ export declare var SlowDownException$: StaticErrorSchema;
16
+ export declare var UnauthorizedClientException$: StaticErrorSchema;
17
+ export declare var UnsupportedGrantTypeException$: StaticErrorSchema;
18
+ /**
19
+ * TypeRegistry instances containing modeled errors.
20
+ * @internal
21
+ *
22
+ */
23
+ export declare const errorTypeRegistries: TypeRegistry[];
24
+ export declare var AwsAdditionalDetails$: StaticStructureSchema;
25
+ export declare var CreateTokenRequest$: StaticStructureSchema;
26
+ export declare var CreateTokenResponse$: StaticStructureSchema;
27
+ export declare var CreateTokenWithIAMRequest$: StaticStructureSchema;
28
+ export declare var CreateTokenWithIAMResponse$: StaticStructureSchema;
29
+ export declare var RegisterClientRequest$: StaticStructureSchema;
30
+ export declare var RegisterClientResponse$: StaticStructureSchema;
31
+ export declare var StartDeviceAuthorizationRequest$: StaticStructureSchema;
32
+ export declare var StartDeviceAuthorizationResponse$: StaticStructureSchema;
33
+ export declare var CreateToken$: StaticOperationSchema;
34
+ export declare var CreateTokenWithIAM$: StaticOperationSchema;
35
+ export declare var RegisterClient$: StaticOperationSchema;
36
+ export declare var StartDeviceAuthorization$: StaticOperationSchema;
@@ -0,0 +1,73 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ CreateTokenCommandInput,
4
+ CreateTokenCommandOutput,
5
+ } from "./commands/CreateTokenCommand";
6
+ import {
7
+ CreateTokenWithIAMCommandInput,
8
+ CreateTokenWithIAMCommandOutput,
9
+ } from "./commands/CreateTokenWithIAMCommand";
10
+ import {
11
+ RegisterClientCommandInput,
12
+ RegisterClientCommandOutput,
13
+ } from "./commands/RegisterClientCommand";
14
+ import {
15
+ StartDeviceAuthorizationCommandInput,
16
+ StartDeviceAuthorizationCommandOutput,
17
+ } from "./commands/StartDeviceAuthorizationCommand";
18
+ import { SSOOIDCClient } from "./SSOOIDCClient";
19
+ export interface SSOOIDC {
20
+ createToken(
21
+ args: CreateTokenCommandInput,
22
+ options?: __HttpHandlerOptions
23
+ ): Promise<CreateTokenCommandOutput>;
24
+ createToken(
25
+ args: CreateTokenCommandInput,
26
+ cb: (err: any, data?: CreateTokenCommandOutput) => void
27
+ ): void;
28
+ createToken(
29
+ args: CreateTokenCommandInput,
30
+ options: __HttpHandlerOptions,
31
+ cb: (err: any, data?: CreateTokenCommandOutput) => void
32
+ ): void;
33
+ createTokenWithIAM(
34
+ args: CreateTokenWithIAMCommandInput,
35
+ options?: __HttpHandlerOptions
36
+ ): Promise<CreateTokenWithIAMCommandOutput>;
37
+ createTokenWithIAM(
38
+ args: CreateTokenWithIAMCommandInput,
39
+ cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
40
+ ): void;
41
+ createTokenWithIAM(
42
+ args: CreateTokenWithIAMCommandInput,
43
+ options: __HttpHandlerOptions,
44
+ cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
45
+ ): void;
46
+ registerClient(
47
+ args: RegisterClientCommandInput,
48
+ options?: __HttpHandlerOptions
49
+ ): Promise<RegisterClientCommandOutput>;
50
+ registerClient(
51
+ args: RegisterClientCommandInput,
52
+ cb: (err: any, data?: RegisterClientCommandOutput) => void
53
+ ): void;
54
+ registerClient(
55
+ args: RegisterClientCommandInput,
56
+ options: __HttpHandlerOptions,
57
+ cb: (err: any, data?: RegisterClientCommandOutput) => void
58
+ ): void;
59
+ startDeviceAuthorization(
60
+ args: StartDeviceAuthorizationCommandInput,
61
+ options?: __HttpHandlerOptions
62
+ ): Promise<StartDeviceAuthorizationCommandOutput>;
63
+ startDeviceAuthorization(
64
+ args: StartDeviceAuthorizationCommandInput,
65
+ cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
66
+ ): void;
67
+ startDeviceAuthorization(
68
+ args: StartDeviceAuthorizationCommandInput,
69
+ options: __HttpHandlerOptions,
70
+ cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
71
+ ): void;
72
+ }
73
+ export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {}
@@ -0,0 +1,143 @@
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
+ DefaultsMode as __DefaultsMode,
24
+ SmithyConfiguration as __SmithyConfiguration,
25
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
26
+ Client as __Client,
27
+ } from "@smithy/smithy-client";
28
+ import {
29
+ BodyLengthCalculator as __BodyLengthCalculator,
30
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
+ ChecksumConstructor as __ChecksumConstructor,
32
+ Decoder as __Decoder,
33
+ Encoder as __Encoder,
34
+ HashConstructor as __HashConstructor,
35
+ HttpHandlerOptions as __HttpHandlerOptions,
36
+ Logger as __Logger,
37
+ Provider as __Provider,
38
+ StreamCollector as __StreamCollector,
39
+ UrlParser as __UrlParser,
40
+ AwsCredentialIdentityProvider,
41
+ Provider,
42
+ UserAgent as __UserAgent,
43
+ } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ CreateTokenCommandInput,
50
+ CreateTokenCommandOutput,
51
+ } from "./commands/CreateTokenCommand";
52
+ import {
53
+ CreateTokenWithIAMCommandInput,
54
+ CreateTokenWithIAMCommandOutput,
55
+ } from "./commands/CreateTokenWithIAMCommand";
56
+ import {
57
+ RegisterClientCommandInput,
58
+ RegisterClientCommandOutput,
59
+ } from "./commands/RegisterClientCommand";
60
+ import {
61
+ StartDeviceAuthorizationCommandInput,
62
+ StartDeviceAuthorizationCommandOutput,
63
+ } from "./commands/StartDeviceAuthorizationCommand";
64
+ import {
65
+ ClientInputEndpointParameters,
66
+ ClientResolvedEndpointParameters,
67
+ EndpointParameters,
68
+ } from "./endpoint/EndpointParameters";
69
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
70
+ export { __Client };
71
+ export type ServiceInputTypes =
72
+ | CreateTokenCommandInput
73
+ | CreateTokenWithIAMCommandInput
74
+ | RegisterClientCommandInput
75
+ | StartDeviceAuthorizationCommandInput;
76
+ export type ServiceOutputTypes =
77
+ | CreateTokenCommandOutput
78
+ | CreateTokenWithIAMCommandOutput
79
+ | RegisterClientCommandOutput
80
+ | StartDeviceAuthorizationCommandOutput;
81
+ export interface ClientDefaults
82
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
83
+ requestHandler?: __HttpHandlerUserInput;
84
+ sha256?: __ChecksumConstructor | __HashConstructor;
85
+ urlParser?: __UrlParser;
86
+ bodyLengthChecker?: __BodyLengthCalculator;
87
+ streamCollector?: __StreamCollector;
88
+ base64Decoder?: __Decoder;
89
+ base64Encoder?: __Encoder;
90
+ utf8Decoder?: __Decoder;
91
+ utf8Encoder?: __Encoder;
92
+ runtime?: string;
93
+ disableHostPrefix?: boolean;
94
+ serviceId?: string;
95
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
96
+ useFipsEndpoint?: boolean | __Provider<boolean>;
97
+ region?: string | __Provider<string>;
98
+ profile?: string;
99
+ defaultUserAgentProvider?: Provider<__UserAgent>;
100
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
101
+ maxAttempts?: number | __Provider<number>;
102
+ retryMode?: string | __Provider<string>;
103
+ logger?: __Logger;
104
+ extensions?: RuntimeExtension[];
105
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
106
+ }
107
+ export type SSOOIDCClientConfigType = Partial<
108
+ __SmithyConfiguration<__HttpHandlerOptions>
109
+ > &
110
+ ClientDefaults &
111
+ UserAgentInputConfig &
112
+ RetryInputConfig &
113
+ RegionInputConfig &
114
+ HostHeaderInputConfig &
115
+ EndpointInputConfig<EndpointParameters> &
116
+ HttpAuthSchemeInputConfig &
117
+ ClientInputEndpointParameters;
118
+ export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {}
119
+ export type SSOOIDCClientResolvedConfigType =
120
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
121
+ Required<ClientDefaults> &
122
+ RuntimeExtensionsConfig &
123
+ UserAgentResolvedConfig &
124
+ RetryResolvedConfig &
125
+ RegionResolvedConfig &
126
+ HostHeaderResolvedConfig &
127
+ EndpointResolvedConfig<EndpointParameters> &
128
+ HttpAuthSchemeResolvedConfig &
129
+ ClientResolvedEndpointParameters;
130
+ export interface SSOOIDCClientResolvedConfig
131
+ extends SSOOIDCClientResolvedConfigType {}
132
+ export declare class SSOOIDCClient extends __Client<
133
+ __HttpHandlerOptions,
134
+ ServiceInputTypes,
135
+ ServiceOutputTypes,
136
+ SSOOIDCClientResolvedConfig
137
+ > {
138
+ readonly config: SSOOIDCClientResolvedConfig;
139
+ constructor(
140
+ ...[configuration]: __CheckOptionalClientConfig<SSOOIDCClientConfig>
141
+ );
142
+ destroy(): void;
143
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ HttpAuthScheme,
3
+ AwsCredentialIdentity,
4
+ AwsCredentialIdentityProvider,
5
+ } from "@smithy/types";
6
+ import { SSOOIDCHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): SSOOIDCHttpAuthSchemeProvider;
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: SSOOIDCHttpAuthSchemeProvider;
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 { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
15
+ export interface SSOOIDCHttpAuthSchemeParameters
16
+ extends HttpAuthSchemeParameters {
17
+ region?: string;
18
+ }
19
+ export interface SSOOIDCHttpAuthSchemeParametersProvider
20
+ extends HttpAuthSchemeParametersProvider<
21
+ SSOOIDCClientResolvedConfig,
22
+ HandlerExecutionContext,
23
+ SSOOIDCHttpAuthSchemeParameters,
24
+ object
25
+ > {}
26
+ export declare const defaultSSOOIDCHttpAuthSchemeParametersProvider: (
27
+ config: SSOOIDCClientResolvedConfig,
28
+ context: HandlerExecutionContext,
29
+ input: object
30
+ ) => Promise<SSOOIDCHttpAuthSchemeParameters>;
31
+ export interface SSOOIDCHttpAuthSchemeProvider
32
+ extends HttpAuthSchemeProvider<SSOOIDCHttpAuthSchemeParameters> {}
33
+ export declare const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
34
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
35
+ authSchemePreference?: string[] | Provider<string[]>;
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ httpAuthSchemeProvider?: SSOOIDCHttpAuthSchemeProvider;
38
+ }
39
+ export interface HttpAuthSchemeResolvedConfig
40
+ extends AwsSdkSigV4AuthResolvedConfig {
41
+ readonly authSchemePreference: Provider<string[]>;
42
+ readonly httpAuthSchemes: HttpAuthScheme[];
43
+ readonly httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
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 { CreateTokenRequest, CreateTokenResponse } from "../models/models_0";
4
+ import {
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ SSOOIDCClientResolvedConfig,
8
+ } from "../SSOOIDCClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface CreateTokenCommandInput extends CreateTokenRequest {}
12
+ export interface CreateTokenCommandOutput
13
+ extends CreateTokenResponse,
14
+ __MetadataBearer {}
15
+ declare const CreateTokenCommand_base: {
16
+ new (
17
+ input: CreateTokenCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ CreateTokenCommandInput,
20
+ CreateTokenCommandOutput,
21
+ SSOOIDCClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: CreateTokenCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ CreateTokenCommandInput,
29
+ CreateTokenCommandOutput,
30
+ SSOOIDCClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class CreateTokenCommand extends CreateTokenCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: CreateTokenRequest;
40
+ output: CreateTokenResponse;
41
+ };
42
+ sdk: {
43
+ input: CreateTokenCommandInput;
44
+ output: CreateTokenCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CreateTokenWithIAMRequest,
5
+ CreateTokenWithIAMResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SSOOIDCClientResolvedConfig,
11
+ } from "../SSOOIDCClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CreateTokenWithIAMCommandInput
15
+ extends CreateTokenWithIAMRequest {}
16
+ export interface CreateTokenWithIAMCommandOutput
17
+ extends CreateTokenWithIAMResponse,
18
+ __MetadataBearer {}
19
+ declare const CreateTokenWithIAMCommand_base: {
20
+ new (
21
+ input: CreateTokenWithIAMCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CreateTokenWithIAMCommandInput,
24
+ CreateTokenWithIAMCommandOutput,
25
+ SSOOIDCClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: CreateTokenWithIAMCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CreateTokenWithIAMCommandInput,
33
+ CreateTokenWithIAMCommandOutput,
34
+ SSOOIDCClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CreateTokenWithIAMCommand extends CreateTokenWithIAMCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CreateTokenWithIAMRequest;
44
+ output: CreateTokenWithIAMResponse;
45
+ };
46
+ sdk: {
47
+ input: CreateTokenWithIAMCommandInput;
48
+ output: CreateTokenWithIAMCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ RegisterClientRequest,
5
+ RegisterClientResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SSOOIDCClientResolvedConfig,
11
+ } from "../SSOOIDCClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface RegisterClientCommandInput extends RegisterClientRequest {}
15
+ export interface RegisterClientCommandOutput
16
+ extends RegisterClientResponse,
17
+ __MetadataBearer {}
18
+ declare const RegisterClientCommand_base: {
19
+ new (
20
+ input: RegisterClientCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ RegisterClientCommandInput,
23
+ RegisterClientCommandOutput,
24
+ SSOOIDCClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ input: RegisterClientCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ RegisterClientCommandInput,
32
+ RegisterClientCommandOutput,
33
+ SSOOIDCClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class RegisterClientCommand extends RegisterClientCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: RegisterClientRequest;
43
+ output: RegisterClientResponse;
44
+ };
45
+ sdk: {
46
+ input: RegisterClientCommandInput;
47
+ output: RegisterClientCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ StartDeviceAuthorizationRequest,
5
+ StartDeviceAuthorizationResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SSOOIDCClientResolvedConfig,
11
+ } from "../SSOOIDCClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartDeviceAuthorizationCommandInput
15
+ extends StartDeviceAuthorizationRequest {}
16
+ export interface StartDeviceAuthorizationCommandOutput
17
+ extends StartDeviceAuthorizationResponse,
18
+ __MetadataBearer {}
19
+ declare const StartDeviceAuthorizationCommand_base: {
20
+ new (
21
+ input: StartDeviceAuthorizationCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ StartDeviceAuthorizationCommandInput,
24
+ StartDeviceAuthorizationCommandOutput,
25
+ SSOOIDCClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: StartDeviceAuthorizationCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ StartDeviceAuthorizationCommandInput,
33
+ StartDeviceAuthorizationCommandOutput,
34
+ SSOOIDCClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class StartDeviceAuthorizationCommand extends StartDeviceAuthorizationCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: StartDeviceAuthorizationRequest;
44
+ output: StartDeviceAuthorizationResponse;
45
+ };
46
+ sdk: {
47
+ input: StartDeviceAuthorizationCommandInput;
48
+ output: StartDeviceAuthorizationCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./CreateTokenCommand";
2
+ export * from "./CreateTokenWithIAMCommand";
3
+ export * from "./RegisterClientCommand";
4
+ export * from "./StartDeviceAuthorizationCommand";
@@ -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
+ region?: string | undefined | Provider<string | undefined>;
9
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
10
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
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
+ Region?: string | undefined;
48
+ UseDualStack?: boolean | undefined;
49
+ UseFIPS?: boolean | undefined;
50
+ Endpoint?: 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 SSOOIDCExtensionConfiguration
6
+ extends HttpHandlerExtensionConfiguration,
7
+ DefaultExtensionConfiguration,
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}