@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,11 @@
1
+ export * from "./SSOOIDCClient";
2
+ export * from "./SSOOIDC";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
11
+ export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class SSOOIDCServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1,13 @@
1
+ export declare const AccessDeniedExceptionReason: {
2
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
3
+ };
4
+ export type AccessDeniedExceptionReason =
5
+ (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
6
+ export declare const InvalidRequestExceptionReason: {
7
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
8
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
9
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
10
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
11
+ };
12
+ export type InvalidRequestExceptionReason =
13
+ (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
@@ -0,0 +1,134 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import {
3
+ AccessDeniedExceptionReason,
4
+ InvalidRequestExceptionReason,
5
+ } from "./enums";
6
+ import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ error?: string | undefined;
11
+ reason?: AccessDeniedExceptionReason | undefined;
12
+ error_description?: string | undefined;
13
+ constructor(
14
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
15
+ );
16
+ }
17
+ export declare class AuthorizationPendingException extends __BaseException {
18
+ readonly name: "AuthorizationPendingException";
19
+ readonly $fault: "client";
20
+ error?: string | undefined;
21
+ error_description?: string | undefined;
22
+ constructor(
23
+ opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>
24
+ );
25
+ }
26
+ export declare class ExpiredTokenException extends __BaseException {
27
+ readonly name: "ExpiredTokenException";
28
+ readonly $fault: "client";
29
+ error?: string | undefined;
30
+ error_description?: string | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
33
+ );
34
+ }
35
+ export declare class InternalServerException extends __BaseException {
36
+ readonly name: "InternalServerException";
37
+ readonly $fault: "server";
38
+ error?: string | undefined;
39
+ error_description?: string | undefined;
40
+ constructor(
41
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
42
+ );
43
+ }
44
+ export declare class InvalidClientException extends __BaseException {
45
+ readonly name: "InvalidClientException";
46
+ readonly $fault: "client";
47
+ error?: string | undefined;
48
+ error_description?: string | undefined;
49
+ constructor(
50
+ opts: __ExceptionOptionType<InvalidClientException, __BaseException>
51
+ );
52
+ }
53
+ export declare class InvalidGrantException extends __BaseException {
54
+ readonly name: "InvalidGrantException";
55
+ readonly $fault: "client";
56
+ error?: string | undefined;
57
+ error_description?: string | undefined;
58
+ constructor(
59
+ opts: __ExceptionOptionType<InvalidGrantException, __BaseException>
60
+ );
61
+ }
62
+ export declare class InvalidRequestException extends __BaseException {
63
+ readonly name: "InvalidRequestException";
64
+ readonly $fault: "client";
65
+ error?: string | undefined;
66
+ reason?: InvalidRequestExceptionReason | undefined;
67
+ error_description?: string | undefined;
68
+ constructor(
69
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
70
+ );
71
+ }
72
+ export declare class InvalidScopeException extends __BaseException {
73
+ readonly name: "InvalidScopeException";
74
+ readonly $fault: "client";
75
+ error?: string | undefined;
76
+ error_description?: string | undefined;
77
+ constructor(
78
+ opts: __ExceptionOptionType<InvalidScopeException, __BaseException>
79
+ );
80
+ }
81
+ export declare class SlowDownException extends __BaseException {
82
+ readonly name: "SlowDownException";
83
+ readonly $fault: "client";
84
+ error?: string | undefined;
85
+ error_description?: string | undefined;
86
+ constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
87
+ }
88
+ export declare class UnauthorizedClientException extends __BaseException {
89
+ readonly name: "UnauthorizedClientException";
90
+ readonly $fault: "client";
91
+ error?: string | undefined;
92
+ error_description?: string | undefined;
93
+ constructor(
94
+ opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>
95
+ );
96
+ }
97
+ export declare class UnsupportedGrantTypeException extends __BaseException {
98
+ readonly name: "UnsupportedGrantTypeException";
99
+ readonly $fault: "client";
100
+ error?: string | undefined;
101
+ error_description?: string | undefined;
102
+ constructor(
103
+ opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>
104
+ );
105
+ }
106
+ export declare class InvalidRequestRegionException extends __BaseException {
107
+ readonly name: "InvalidRequestRegionException";
108
+ readonly $fault: "client";
109
+ error?: string | undefined;
110
+ error_description?: string | undefined;
111
+ endpoint?: string | undefined;
112
+ region?: string | undefined;
113
+ constructor(
114
+ opts: __ExceptionOptionType<InvalidRequestRegionException, __BaseException>
115
+ );
116
+ }
117
+ export declare class InvalidClientMetadataException extends __BaseException {
118
+ readonly name: "InvalidClientMetadataException";
119
+ readonly $fault: "client";
120
+ error?: string | undefined;
121
+ error_description?: string | undefined;
122
+ constructor(
123
+ opts: __ExceptionOptionType<InvalidClientMetadataException, __BaseException>
124
+ );
125
+ }
126
+ export declare class InvalidRedirectUriException extends __BaseException {
127
+ readonly name: "InvalidRedirectUriException";
128
+ readonly $fault: "client";
129
+ error?: string | undefined;
130
+ error_description?: string | undefined;
131
+ constructor(
132
+ opts: __ExceptionOptionType<InvalidRedirectUriException, __BaseException>
133
+ );
134
+ }
@@ -0,0 +1,74 @@
1
+ export interface AwsAdditionalDetails {
2
+ identityContext?: string | undefined;
3
+ }
4
+ export interface CreateTokenRequest {
5
+ clientId: string | undefined;
6
+ clientSecret: string | undefined;
7
+ grantType: string | undefined;
8
+ deviceCode?: string | undefined;
9
+ code?: string | undefined;
10
+ refreshToken?: string | undefined;
11
+ scope?: string[] | undefined;
12
+ redirectUri?: string | undefined;
13
+ codeVerifier?: string | undefined;
14
+ }
15
+ export interface CreateTokenResponse {
16
+ accessToken?: string | undefined;
17
+ tokenType?: string | undefined;
18
+ expiresIn?: number | undefined;
19
+ refreshToken?: string | undefined;
20
+ idToken?: string | undefined;
21
+ }
22
+ export interface CreateTokenWithIAMRequest {
23
+ clientId: string | undefined;
24
+ grantType: string | undefined;
25
+ code?: string | undefined;
26
+ refreshToken?: string | undefined;
27
+ assertion?: string | undefined;
28
+ scope?: string[] | undefined;
29
+ redirectUri?: string | undefined;
30
+ subjectToken?: string | undefined;
31
+ subjectTokenType?: string | undefined;
32
+ requestedTokenType?: string | undefined;
33
+ codeVerifier?: string | undefined;
34
+ }
35
+ export interface CreateTokenWithIAMResponse {
36
+ accessToken?: string | undefined;
37
+ tokenType?: string | undefined;
38
+ expiresIn?: number | undefined;
39
+ refreshToken?: string | undefined;
40
+ idToken?: string | undefined;
41
+ issuedTokenType?: string | undefined;
42
+ scope?: string[] | undefined;
43
+ awsAdditionalDetails?: AwsAdditionalDetails | undefined;
44
+ }
45
+ export interface RegisterClientRequest {
46
+ clientName: string | undefined;
47
+ clientType: string | undefined;
48
+ scopes?: string[] | undefined;
49
+ redirectUris?: string[] | undefined;
50
+ grantTypes?: string[] | undefined;
51
+ issuerUrl?: string | undefined;
52
+ entitledApplicationArn?: string | undefined;
53
+ }
54
+ export interface RegisterClientResponse {
55
+ clientId?: string | undefined;
56
+ clientSecret?: string | undefined;
57
+ clientIdIssuedAt?: number | undefined;
58
+ clientSecretExpiresAt?: number | undefined;
59
+ authorizationEndpoint?: string | undefined;
60
+ tokenEndpoint?: string | undefined;
61
+ }
62
+ export interface StartDeviceAuthorizationRequest {
63
+ clientId: string | undefined;
64
+ clientSecret: string | undefined;
65
+ startUrl: string | undefined;
66
+ }
67
+ export interface StartDeviceAuthorizationResponse {
68
+ deviceCode?: string | undefined;
69
+ userCode?: string | undefined;
70
+ verificationUri?: string | undefined;
71
+ verificationUriComplete?: string | undefined;
72
+ expiresIn?: number | undefined;
73
+ interval?: number | undefined;
74
+ }
@@ -0,0 +1,125 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
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
+ cacheMiddleware?: boolean | undefined;
30
+ protocol:
31
+ | import("@smithy/types").ClientProtocol<any, any>
32
+ | import("@smithy/types").ClientProtocolCtor<any, any>
33
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
34
+ protocolSettings: {
35
+ defaultNamespace?: string;
36
+ [setting: string]: unknown;
37
+ };
38
+ apiVersion: string;
39
+ urlParser: import("@smithy/types").UrlParser;
40
+ base64Decoder: import("@smithy/types").Decoder;
41
+ base64Encoder: (_input: Uint8Array | string) => string;
42
+ utf8Decoder: import("@smithy/types").Decoder;
43
+ utf8Encoder: (input: Uint8Array | string) => string;
44
+ disableHostPrefix: boolean;
45
+ serviceId: string;
46
+ profile?: string;
47
+ logger: import("@smithy/types").Logger;
48
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
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").SSOOIDCHttpAuthSchemeProvider;
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
+ };
@@ -0,0 +1,120 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
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
+ cacheMiddleware?: boolean | undefined;
30
+ protocol:
31
+ | import("@smithy/types").ClientProtocol<any, any>
32
+ | import("@smithy/types").ClientProtocolCtor<any, any>
33
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
34
+ protocolSettings: {
35
+ defaultNamespace?: string;
36
+ [setting: string]: unknown;
37
+ };
38
+ apiVersion: string;
39
+ urlParser: import("@smithy/types").UrlParser;
40
+ base64Decoder: import("@smithy/types").Decoder;
41
+ base64Encoder: (_input: Uint8Array | string) => string;
42
+ utf8Decoder: import("@smithy/types").Decoder;
43
+ utf8Encoder: (input: Uint8Array | string) => string;
44
+ disableHostPrefix: boolean;
45
+ serviceId: string;
46
+ profile?: string;
47
+ logger: import("@smithy/types").Logger;
48
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
49
+ customUserAgent?: string | import("@smithy/types").UserAgent;
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
+ httpAuthSchemes:
79
+ | import("@smithy/types").HttpAuthScheme[]
80
+ | (
81
+ | {
82
+ schemeId: string;
83
+ identityProvider: (
84
+ ipc: import("@smithy/types").IdentityProviderConfig
85
+ ) =>
86
+ | import("@smithy/types").IdentityProvider<
87
+ import("@smithy/types").Identity
88
+ >
89
+ | undefined;
90
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
91
+ }
92
+ | {
93
+ schemeId: string;
94
+ identityProvider: (
95
+ ipc: import("@smithy/types").IdentityProviderConfig
96
+ ) =>
97
+ | import("@smithy/types").IdentityProvider<
98
+ import("@smithy/types").Identity
99
+ >
100
+ | (() => Promise<{}>);
101
+ signer: import("@smithy/core").NoAuthSigner;
102
+ }
103
+ )[];
104
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
105
+ credentials?:
106
+ | import("@smithy/types").AwsCredentialIdentity
107
+ | import("@smithy/types").AwsCredentialIdentityProvider;
108
+ signer?:
109
+ | import("@smithy/types").RequestSigner
110
+ | ((
111
+ authScheme?: import("@smithy/types").AuthScheme
112
+ ) => Promise<import("@smithy/types").RequestSigner>);
113
+ signingEscapePath?: boolean;
114
+ systemClockOffset?: number;
115
+ signingRegion?: string;
116
+ signerConstructor?: new (
117
+ options: import("@smithy/signature-v4").SignatureV4Init &
118
+ import("@smithy/signature-v4").SignatureV4CryptoInit
119
+ ) => import("@smithy/types").RequestSigner;
120
+ };
@@ -0,0 +1,129 @@
1
+ import { SSOOIDCClientConfig } from "./SSOOIDCClient";
2
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
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
+ cacheMiddleware?: boolean;
12
+ protocol:
13
+ | import("@smithy/types").ClientProtocol<any, any>
14
+ | import("@smithy/types").ClientProtocolCtor<any, any>
15
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
16
+ protocolSettings: {
17
+ defaultNamespace?: string;
18
+ [setting: string]: unknown;
19
+ };
20
+ apiVersion: string;
21
+ urlParser: import("@smithy/types").UrlParser;
22
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
+ streamCollector: import("@smithy/types").StreamCollector;
24
+ base64Decoder: import("@smithy/types").Decoder;
25
+ base64Encoder: (_input: Uint8Array | string) => string;
26
+ utf8Decoder: import("@smithy/types").Decoder;
27
+ utf8Encoder: (input: Uint8Array | string) => string;
28
+ disableHostPrefix: boolean;
29
+ serviceId: string;
30
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
31
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
32
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
33
+ (boolean | import("@smithy/types").Provider<boolean | undefined>);
34
+ region: string | import("@smithy/types").Provider<any>;
35
+ profile?: string;
36
+ defaultUserAgentProvider: (
37
+ config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
38
+ ) => Promise<import("@smithy/types").UserAgent>;
39
+ credentialDefaultProvider:
40
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
41
+ | ((
42
+ _: unknown
43
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
44
+ maxAttempts: number | import("@smithy/types").Provider<number>;
45
+ retryMode: string | import("@smithy/types").Provider<string>;
46
+ logger: import("@smithy/types").Logger;
47
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
48
+ defaultsMode:
49
+ | import("@smithy/smithy-client").DefaultsMode
50
+ | import("@smithy/types").Provider<
51
+ import("@smithy/smithy-client").DefaultsMode
52
+ >;
53
+ customUserAgent?: string | import("@smithy/types").UserAgent;
54
+ userAgentAppId?:
55
+ | string
56
+ | undefined
57
+ | import("@smithy/types").Provider<string | undefined>;
58
+ retryStrategy?:
59
+ | import("@smithy/types").RetryStrategy
60
+ | import("@smithy/types").RetryStrategyV2;
61
+ endpoint?:
62
+ | ((
63
+ | 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
+ (
70
+ | string
71
+ | import("@smithy/types").Provider<string>
72
+ | import("@smithy/types").Endpoint
73
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
74
+ | import("@smithy/types").EndpointV2
75
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
76
+ ))
77
+ | undefined;
78
+ endpointProvider: (
79
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
80
+ context?: {
81
+ logger?: import("@smithy/types").Logger;
82
+ }
83
+ ) => import("@smithy/types").EndpointV2;
84
+ tls?: boolean;
85
+ serviceConfiguredEndpoint?: never;
86
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
87
+ httpAuthSchemes:
88
+ | import("@smithy/types").HttpAuthScheme[]
89
+ | (
90
+ | {
91
+ schemeId: string;
92
+ identityProvider: (
93
+ ipc: import("@smithy/types").IdentityProviderConfig
94
+ ) =>
95
+ | import("@smithy/types").IdentityProvider<
96
+ import("@smithy/types").Identity
97
+ >
98
+ | undefined;
99
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
100
+ }
101
+ | {
102
+ schemeId: string;
103
+ identityProvider: (
104
+ ipc: import("@smithy/types").IdentityProviderConfig
105
+ ) =>
106
+ | import("@smithy/types").IdentityProvider<
107
+ import("@smithy/types").Identity
108
+ >
109
+ | (() => Promise<{}>);
110
+ signer: import("@smithy/core").NoAuthSigner;
111
+ }
112
+ )[];
113
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
114
+ credentials?:
115
+ | import("@smithy/types").AwsCredentialIdentity
116
+ | import("@smithy/types").AwsCredentialIdentityProvider;
117
+ signer?:
118
+ | import("@smithy/types").RequestSigner
119
+ | ((
120
+ authScheme?: import("@smithy/types").AuthScheme
121
+ ) => Promise<import("@smithy/types").RequestSigner>);
122
+ signingEscapePath?: boolean;
123
+ systemClockOffset?: number;
124
+ signingRegion?: string;
125
+ signerConstructor?: new (
126
+ options: import("@smithy/signature-v4").SignatureV4Init &
127
+ import("@smithy/signature-v4").SignatureV4CryptoInit
128
+ ) => import("@smithy/types").RequestSigner;
129
+ };
@@ -0,0 +1,58 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { NoAuthSigner } from "@smithy/core";
4
+ import { IdentityProviderConfig } from "@smithy/types";
5
+ import { SSOOIDCClientConfig } from "./SSOOIDCClient";
6
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
+ apiVersion: string;
8
+ base64Decoder: import("@smithy/types").Decoder;
9
+ base64Encoder: (_input: Uint8Array | string) => string;
10
+ disableHostPrefix: boolean;
11
+ endpointProvider: (
12
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
13
+ context?: {
14
+ logger?: import("@smithy/types").Logger;
15
+ }
16
+ ) => import("@smithy/types").EndpointV2;
17
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
18
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
19
+ httpAuthSchemes:
20
+ | import("@smithy/types").HttpAuthScheme[]
21
+ | (
22
+ | {
23
+ schemeId: string;
24
+ identityProvider: (
25
+ ipc: IdentityProviderConfig
26
+ ) =>
27
+ | import("@smithy/types").IdentityProvider<
28
+ import("@smithy/types").Identity
29
+ >
30
+ | undefined;
31
+ signer: AwsSdkSigV4Signer;
32
+ }
33
+ | {
34
+ schemeId: string;
35
+ identityProvider: (
36
+ ipc: IdentityProviderConfig
37
+ ) =>
38
+ | import("@smithy/types").IdentityProvider<
39
+ import("@smithy/types").Identity
40
+ >
41
+ | (() => Promise<{}>);
42
+ signer: NoAuthSigner;
43
+ }
44
+ )[];
45
+ logger: import("@smithy/types").Logger;
46
+ protocol:
47
+ | import("@smithy/types").ClientProtocol<any, any>
48
+ | import("@smithy/types").ClientProtocolCtor<any, any>
49
+ | typeof AwsRestJsonProtocol;
50
+ protocolSettings: {
51
+ [setting: string]: unknown;
52
+ defaultNamespace?: string;
53
+ };
54
+ serviceId: string;
55
+ urlParser: import("@smithy/types").UrlParser;
56
+ utf8Decoder: import("@smithy/types").Decoder;
57
+ utf8Encoder: (input: Uint8Array | string) => string;
58
+ };