@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,436 @@
1
+ /**
2
+ * <p>This structure contains Amazon Web Services-specific parameter extensions and the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html">identity context</a>.</p>
3
+ * @public
4
+ */
5
+ export interface AwsAdditionalDetails {
6
+ /**
7
+ * <p>The trusted context assertion is signed and encrypted by STS. It provides access to
8
+ * <code>sts:identity_context</code> claim in the <code>idToken</code> without JWT
9
+ * parsing</p>
10
+ * <p>Identity context comprises information that Amazon Web Services services use to make authorization
11
+ * decisions when they receive requests.</p>
12
+ * @public
13
+ */
14
+ identityContext?: string | undefined;
15
+ }
16
+ /**
17
+ * @public
18
+ */
19
+ export interface CreateTokenRequest {
20
+ /**
21
+ * <p>The unique identifier string for the client or application. This value comes from the
22
+ * result of the <a>RegisterClient</a> API.</p>
23
+ * @public
24
+ */
25
+ clientId: string | undefined;
26
+ /**
27
+ * <p>A secret string generated for the client. This value should come from the persisted result
28
+ * of the <a>RegisterClient</a> API.</p>
29
+ * @public
30
+ */
31
+ clientSecret: string | undefined;
32
+ /**
33
+ * <p>Supports the following OAuth grant types: Authorization Code, Device Code, and Refresh
34
+ * Token. Specify one of the following values, depending on the grant type that you want:</p>
35
+ * <p>* Authorization Code - <code>authorization_code</code>
36
+ * </p>
37
+ * <p>* Device Code - <code>urn:ietf:params:oauth:grant-type:device_code</code>
38
+ * </p>
39
+ * <p>* Refresh Token - <code>refresh_token</code>
40
+ * </p>
41
+ * @public
42
+ */
43
+ grantType: string | undefined;
44
+ /**
45
+ * <p>Used only when calling this API for the Device Code grant type. This short-lived code is
46
+ * used to identify this authorization request. This comes from the result of the <a>StartDeviceAuthorization</a> API.</p>
47
+ * @public
48
+ */
49
+ deviceCode?: string | undefined;
50
+ /**
51
+ * <p>Used only when calling this API for the Authorization Code grant type. The short-lived
52
+ * code is used to identify this authorization request.</p>
53
+ * @public
54
+ */
55
+ code?: string | undefined;
56
+ /**
57
+ * <p>Used only when calling this API for the Refresh Token grant type. This token is used to
58
+ * refresh short-lived tokens, such as the access token, that might expire.</p>
59
+ * <p>For more information about the features and limitations of the current IAM Identity Center OIDC
60
+ * implementation, see <i>Considerations for Using this Guide</i> in the <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html">IAM Identity Center
61
+ * OIDC API Reference</a>.</p>
62
+ * @public
63
+ */
64
+ refreshToken?: string | undefined;
65
+ /**
66
+ * <p>The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.</p>
67
+ * @public
68
+ */
69
+ scope?: string[] | undefined;
70
+ /**
71
+ * <p>Used only when calling this API for the Authorization Code grant type. This value
72
+ * specifies the location of the client or application that has registered to receive the
73
+ * authorization code.</p>
74
+ * @public
75
+ */
76
+ redirectUri?: string | undefined;
77
+ /**
78
+ * <p>Used only when calling this API for the Authorization Code grant type. This value is
79
+ * generated by the client and presented to validate the original code challenge value the client
80
+ * passed at authorization time.</p>
81
+ * @public
82
+ */
83
+ codeVerifier?: string | undefined;
84
+ }
85
+ /**
86
+ * @public
87
+ */
88
+ export interface CreateTokenResponse {
89
+ /**
90
+ * <p>A bearer token to access Amazon Web Services accounts and applications assigned to a user.</p>
91
+ * @public
92
+ */
93
+ accessToken?: string | undefined;
94
+ /**
95
+ * <p>Used to notify the client that the returned token is an access token. The supported token
96
+ * type is <code>Bearer</code>.</p>
97
+ * @public
98
+ */
99
+ tokenType?: string | undefined;
100
+ /**
101
+ * <p>Indicates the time in seconds when an access token will expire.</p>
102
+ * @public
103
+ */
104
+ expiresIn?: number | undefined;
105
+ /**
106
+ * <p>A token that, if present, can be used to refresh a previously issued access token that
107
+ * might have expired.</p>
108
+ * <p>For more information about the features and limitations of the current IAM Identity Center OIDC
109
+ * implementation, see <i>Considerations for Using this Guide</i> in the <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html">IAM Identity Center
110
+ * OIDC API Reference</a>.</p>
111
+ * @public
112
+ */
113
+ refreshToken?: string | undefined;
114
+ /**
115
+ * <p>The <code>idToken</code> is not implemented or supported. For more information about the
116
+ * features and limitations of the current IAM Identity Center OIDC implementation, see
117
+ * <i>Considerations for Using this Guide</i> in the <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html">IAM Identity Center
118
+ * OIDC API Reference</a>.</p>
119
+ * <p>A JSON Web Token (JWT) that identifies who is associated with the issued access token.
120
+ * </p>
121
+ * @public
122
+ */
123
+ idToken?: string | undefined;
124
+ }
125
+ /**
126
+ * @public
127
+ */
128
+ export interface CreateTokenWithIAMRequest {
129
+ /**
130
+ * <p>The unique identifier string for the client or application. This value is an application
131
+ * ARN that has OAuth grants configured.</p>
132
+ * @public
133
+ */
134
+ clientId: string | undefined;
135
+ /**
136
+ * <p>Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer,
137
+ * and Token Exchange. Specify one of the following values, depending on the grant type that you
138
+ * want:</p>
139
+ * <p>* Authorization Code - <code>authorization_code</code>
140
+ * </p>
141
+ * <p>* Refresh Token - <code>refresh_token</code>
142
+ * </p>
143
+ * <p>* JWT Bearer - <code>urn:ietf:params:oauth:grant-type:jwt-bearer</code>
144
+ * </p>
145
+ * <p>* Token Exchange - <code>urn:ietf:params:oauth:grant-type:token-exchange</code>
146
+ * </p>
147
+ * @public
148
+ */
149
+ grantType: string | undefined;
150
+ /**
151
+ * <p>Used only when calling this API for the Authorization Code grant type. This short-lived
152
+ * code is used to identify this authorization request. The code is obtained through a redirect
153
+ * from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the
154
+ * application.</p>
155
+ * @public
156
+ */
157
+ code?: string | undefined;
158
+ /**
159
+ * <p>Used only when calling this API for the Refresh Token grant type. This token is used to
160
+ * refresh short-lived tokens, such as the access token, that might expire.</p>
161
+ * <p>For more information about the features and limitations of the current IAM Identity Center OIDC
162
+ * implementation, see <i>Considerations for Using this Guide</i> in the <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html">IAM Identity Center
163
+ * OIDC API Reference</a>.</p>
164
+ * @public
165
+ */
166
+ refreshToken?: string | undefined;
167
+ /**
168
+ * <p>Used only when calling this API for the JWT Bearer grant type. This value specifies the
169
+ * JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer,
170
+ * configure the JWT Bearer GrantOptions for the application.</p>
171
+ * @public
172
+ */
173
+ assertion?: string | undefined;
174
+ /**
175
+ * <p>The list of scopes for which authorization is requested. The access token that is issued
176
+ * is limited to the scopes that are granted. If the value is not specified, IAM Identity Center authorizes all
177
+ * scopes configured for the application, including the following default scopes:
178
+ * <code>openid</code>, <code>aws</code>, <code>sts:identity_context</code>.</p>
179
+ * @public
180
+ */
181
+ scope?: string[] | undefined;
182
+ /**
183
+ * <p>Used only when calling this API for the Authorization Code grant type. This value
184
+ * specifies the location of the client or application that has registered to receive the
185
+ * authorization code. </p>
186
+ * @public
187
+ */
188
+ redirectUri?: string | undefined;
189
+ /**
190
+ * <p>Used only when calling this API for the Token Exchange grant type. This value specifies
191
+ * the subject of the exchange. The value of the subject token must be an access token issued by
192
+ * IAM Identity Center to a different client or application. The access token must have authorized scopes that
193
+ * indicate the requested application as a target audience.</p>
194
+ * @public
195
+ */
196
+ subjectToken?: string | undefined;
197
+ /**
198
+ * <p>Used only when calling this API for the Token Exchange grant type. This value specifies
199
+ * the type of token that is passed as the subject of the exchange. The following value is
200
+ * supported:</p>
201
+ * <p>* Access Token - <code>urn:ietf:params:oauth:token-type:access_token</code>
202
+ * </p>
203
+ * @public
204
+ */
205
+ subjectTokenType?: string | undefined;
206
+ /**
207
+ * <p>Used only when calling this API for the Token Exchange grant type. This value specifies
208
+ * the type of token that the requester can receive. The following values are supported:</p>
209
+ * <p>* Access Token - <code>urn:ietf:params:oauth:token-type:access_token</code>
210
+ * </p>
211
+ * <p>* Refresh Token - <code>urn:ietf:params:oauth:token-type:refresh_token</code>
212
+ * </p>
213
+ * @public
214
+ */
215
+ requestedTokenType?: string | undefined;
216
+ /**
217
+ * <p>Used only when calling this API for the Authorization Code grant type. This value is
218
+ * generated by the client and presented to validate the original code challenge value the client
219
+ * passed at authorization time.</p>
220
+ * @public
221
+ */
222
+ codeVerifier?: string | undefined;
223
+ }
224
+ /**
225
+ * @public
226
+ */
227
+ export interface CreateTokenWithIAMResponse {
228
+ /**
229
+ * <p>A bearer token to access Amazon Web Services accounts and applications assigned to a user.</p>
230
+ * @public
231
+ */
232
+ accessToken?: string | undefined;
233
+ /**
234
+ * <p>Used to notify the requester that the returned token is an access token. The supported
235
+ * token type is <code>Bearer</code>.</p>
236
+ * @public
237
+ */
238
+ tokenType?: string | undefined;
239
+ /**
240
+ * <p>Indicates the time in seconds when an access token will expire.</p>
241
+ * @public
242
+ */
243
+ expiresIn?: number | undefined;
244
+ /**
245
+ * <p>A token that, if present, can be used to refresh a previously issued access token that
246
+ * might have expired.</p>
247
+ * <p>For more information about the features and limitations of the current IAM Identity Center OIDC
248
+ * implementation, see <i>Considerations for Using this Guide</i> in the <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html">IAM Identity Center
249
+ * OIDC API Reference</a>.</p>
250
+ * @public
251
+ */
252
+ refreshToken?: string | undefined;
253
+ /**
254
+ * <p>A JSON Web Token (JWT) that identifies the user associated with the issued access token.
255
+ * </p>
256
+ * @public
257
+ */
258
+ idToken?: string | undefined;
259
+ /**
260
+ * <p>Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported: </p>
261
+ * <p>* Access Token - <code>urn:ietf:params:oauth:token-type:access_token</code>
262
+ * </p>
263
+ * <p>* Refresh Token - <code>urn:ietf:params:oauth:token-type:refresh_token</code>
264
+ * </p>
265
+ * @public
266
+ */
267
+ issuedTokenType?: string | undefined;
268
+ /**
269
+ * <p>The list of scopes for which authorization is granted. The access token that is issued is
270
+ * limited to the scopes that are granted.</p>
271
+ * @public
272
+ */
273
+ scope?: string[] | undefined;
274
+ /**
275
+ * <p>A structure containing information from IAM Identity Center managed user and group
276
+ * information.</p>
277
+ * @public
278
+ */
279
+ awsAdditionalDetails?: AwsAdditionalDetails | undefined;
280
+ }
281
+ /**
282
+ * @public
283
+ */
284
+ export interface RegisterClientRequest {
285
+ /**
286
+ * <p>The friendly name of the client.</p>
287
+ * @public
288
+ */
289
+ clientName: string | undefined;
290
+ /**
291
+ * <p>The type of client. The service supports only <code>public</code> as a client type.
292
+ * Anything other than public will be rejected by the service.</p>
293
+ * @public
294
+ */
295
+ clientType: string | undefined;
296
+ /**
297
+ * <p>The list of scopes that are defined by the client. Upon authorization, this list is used
298
+ * to restrict permissions when granting an access token.</p>
299
+ * @public
300
+ */
301
+ scopes?: string[] | undefined;
302
+ /**
303
+ * <p>The list of redirect URI that are defined by the client. At completion of authorization,
304
+ * this list is used to restrict what locations the user agent can be redirected back to.</p>
305
+ * @public
306
+ */
307
+ redirectUris?: string[] | undefined;
308
+ /**
309
+ * <p>The list of OAuth 2.0 grant types that are defined by the client. This list is used to
310
+ * restrict the token granting flows available to the client. Supports the following OAuth 2.0
311
+ * grant types: Authorization Code, Device Code, and Refresh Token. </p>
312
+ * <p>* Authorization Code - <code>authorization_code</code>
313
+ * </p>
314
+ * <p>* Device Code - <code>urn:ietf:params:oauth:grant-type:device_code</code>
315
+ * </p>
316
+ * <p>* Refresh Token - <code>refresh_token</code>
317
+ * </p>
318
+ * @public
319
+ */
320
+ grantTypes?: string[] | undefined;
321
+ /**
322
+ * <p>The IAM Identity Center Issuer URL associated with an instance of IAM Identity Center. This value is needed for user
323
+ * access to resources through the client.</p>
324
+ * @public
325
+ */
326
+ issuerUrl?: string | undefined;
327
+ /**
328
+ * <p>This IAM Identity Center application ARN is used to define administrator-managed configuration for
329
+ * public client access to resources. At authorization, the scopes, grants, and redirect URI
330
+ * available to this client will be restricted by this application resource.</p>
331
+ * @public
332
+ */
333
+ entitledApplicationArn?: string | undefined;
334
+ }
335
+ /**
336
+ * @public
337
+ */
338
+ export interface RegisterClientResponse {
339
+ /**
340
+ * <p>The unique identifier string for each client. This client uses this identifier to get
341
+ * authenticated by the service in subsequent calls.</p>
342
+ * @public
343
+ */
344
+ clientId?: string | undefined;
345
+ /**
346
+ * <p>A secret string generated for the client. The client will use this string to get
347
+ * authenticated by the service in subsequent calls.</p>
348
+ * @public
349
+ */
350
+ clientSecret?: string | undefined;
351
+ /**
352
+ * <p>Indicates the time at which the <code>clientId</code> and <code>clientSecret</code> were
353
+ * issued.</p>
354
+ * @public
355
+ */
356
+ clientIdIssuedAt?: number | undefined;
357
+ /**
358
+ * <p>Indicates the time at which the <code>clientId</code> and <code>clientSecret</code> will
359
+ * become invalid.</p>
360
+ * @public
361
+ */
362
+ clientSecretExpiresAt?: number | undefined;
363
+ /**
364
+ * <p>An endpoint that the client can use to request authorization.</p>
365
+ * @public
366
+ */
367
+ authorizationEndpoint?: string | undefined;
368
+ /**
369
+ * <p>An endpoint that the client can use to create tokens.</p>
370
+ * @public
371
+ */
372
+ tokenEndpoint?: string | undefined;
373
+ }
374
+ /**
375
+ * @public
376
+ */
377
+ export interface StartDeviceAuthorizationRequest {
378
+ /**
379
+ * <p>The unique identifier string for the client that is registered with IAM Identity Center. This value
380
+ * should come from the persisted result of the <a>RegisterClient</a> API
381
+ * operation.</p>
382
+ * @public
383
+ */
384
+ clientId: string | undefined;
385
+ /**
386
+ * <p>A secret string that is generated for the client. This value should come from the
387
+ * persisted result of the <a>RegisterClient</a> API operation.</p>
388
+ * @public
389
+ */
390
+ clientSecret: string | undefined;
391
+ /**
392
+ * <p>The URL for the Amazon Web Services access portal. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html">Using
393
+ * the Amazon Web Services access portal</a> in the <i>IAM Identity Center User Guide</i>.</p>
394
+ * @public
395
+ */
396
+ startUrl: string | undefined;
397
+ }
398
+ /**
399
+ * @public
400
+ */
401
+ export interface StartDeviceAuthorizationResponse {
402
+ /**
403
+ * <p>The short-lived code that is used by the device when polling for a session token.</p>
404
+ * @public
405
+ */
406
+ deviceCode?: string | undefined;
407
+ /**
408
+ * <p>A one-time user verification code. This is needed to authorize an in-use device.</p>
409
+ * @public
410
+ */
411
+ userCode?: string | undefined;
412
+ /**
413
+ * <p>The URI of the verification page that takes the <code>userCode</code> to authorize the
414
+ * device.</p>
415
+ * @public
416
+ */
417
+ verificationUri?: string | undefined;
418
+ /**
419
+ * <p>An alternate URL that the client can use to automatically launch a browser. This process
420
+ * skips the manual step in which the user visits the verification page and enters their
421
+ * code.</p>
422
+ * @public
423
+ */
424
+ verificationUriComplete?: string | undefined;
425
+ /**
426
+ * <p>Indicates the number of seconds in which the verification code will become invalid.</p>
427
+ * @public
428
+ */
429
+ expiresIn?: number | undefined;
430
+ /**
431
+ * <p>Indicates the number of seconds the client must wait between attempts when polling for a
432
+ * session.</p>
433
+ * @public
434
+ */
435
+ interval?: number | undefined;
436
+ }
@@ -0,0 +1,63 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import type { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<any>;
14
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
+ sha256: import("@smithy/types").HashConstructor;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
+ cacheMiddleware?: boolean | undefined;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ defaultNamespace?: string;
24
+ [setting: string]: unknown;
25
+ };
26
+ apiVersion: string;
27
+ urlParser: import("@smithy/types").UrlParser;
28
+ base64Decoder: import("@smithy/types").Decoder;
29
+ base64Encoder: (_input: Uint8Array | string) => string;
30
+ utf8Decoder: import("@smithy/types").Decoder;
31
+ utf8Encoder: (input: Uint8Array | string) => string;
32
+ disableHostPrefix: boolean;
33
+ serviceId: string;
34
+ profile?: string;
35
+ logger: import("@smithy/types").Logger;
36
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
37
+ customUserAgent?: string | import("@smithy/types").UserAgent;
38
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
39
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
41
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
42
+ logger?: import("@smithy/types").Logger;
43
+ }) => import("@smithy/types").EndpointV2;
44
+ tls?: boolean;
45
+ serviceConfiguredEndpoint?: never;
46
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
47
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
48
+ schemeId: string;
49
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
50
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
51
+ } | {
52
+ schemeId: string;
53
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
54
+ signer: import("@smithy/core").NoAuthSigner;
55
+ })[];
56
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
57
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
58
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
59
+ signingEscapePath?: boolean;
60
+ systemClockOffset?: number;
61
+ signingRegion?: string;
62
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
63
+ };
@@ -0,0 +1,63 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import type { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
+ maxAttempts: number | import("@smithy/types").Provider<number>;
14
+ region: string | import("@smithy/types").Provider<string>;
15
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
16
+ retryMode: string | import("@smithy/types").Provider<string>;
17
+ sha256: import("@smithy/types").HashConstructor;
18
+ streamCollector: import("@smithy/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
+ cacheMiddleware?: boolean | undefined;
23
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ defaultNamespace?: string;
26
+ [setting: string]: unknown;
27
+ };
28
+ apiVersion: string;
29
+ urlParser: import("@smithy/types").UrlParser;
30
+ base64Decoder: import("@smithy/types").Decoder;
31
+ base64Encoder: (_input: Uint8Array | string) => string;
32
+ utf8Decoder: import("@smithy/types").Decoder;
33
+ utf8Encoder: (input: Uint8Array | string) => string;
34
+ disableHostPrefix: boolean;
35
+ serviceId: string;
36
+ profile?: string;
37
+ logger: import("@smithy/types").Logger;
38
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
+ customUserAgent?: string | import("@smithy/types").UserAgent;
40
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
41
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
42
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
43
+ logger?: import("@smithy/types").Logger;
44
+ }) => import("@smithy/types").EndpointV2;
45
+ tls?: boolean;
46
+ serviceConfiguredEndpoint?: never;
47
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
48
+ schemeId: string;
49
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
50
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
51
+ } | {
52
+ schemeId: string;
53
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
54
+ signer: import("@smithy/core").NoAuthSigner;
55
+ })[];
56
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
57
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
58
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
59
+ signingEscapePath?: boolean;
60
+ systemClockOffset?: number;
61
+ signingRegion?: string;
62
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
63
+ };
@@ -0,0 +1,62 @@
1
+ import type { SSOOIDCClientConfig } from "./SSOOIDCClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@smithy/types").HashConstructor;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
+ cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
16
+ urlParser: import("@smithy/types").UrlParser;
17
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
+ streamCollector: import("@smithy/types").StreamCollector;
19
+ base64Decoder: import("@smithy/types").Decoder;
20
+ base64Encoder: (_input: Uint8Array | string) => string;
21
+ utf8Decoder: import("@smithy/types").Decoder;
22
+ utf8Encoder: (input: Uint8Array | string) => string;
23
+ disableHostPrefix: boolean;
24
+ serviceId: string;
25
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
26
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
+ region: string | import("@smithy/types").Provider<any>;
28
+ profile?: string;
29
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
30
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
31
+ maxAttempts: number | import("@smithy/types").Provider<number>;
32
+ retryMode: string | import("@smithy/types").Provider<string>;
33
+ logger: import("@smithy/types").Logger;
34
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
36
+ customUserAgent?: string | import("@smithy/types").UserAgent;
37
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
40
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
41
+ logger?: import("@smithy/types").Logger;
42
+ }) => import("@smithy/types").EndpointV2;
43
+ tls?: boolean;
44
+ serviceConfiguredEndpoint?: never;
45
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
46
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
47
+ schemeId: string;
48
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
49
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
50
+ } | {
51
+ schemeId: string;
52
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
53
+ signer: import("@smithy/core").NoAuthSigner;
54
+ })[];
55
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
56
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
57
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
58
+ signingEscapePath?: boolean;
59
+ systemClockOffset?: number;
60
+ signingRegion?: string;
61
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
62
+ };