@alienplatform/sdk 1.10.7 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +37 -8
- package/dist/bearerTokenAuthenticationPolicy.js +3028 -0
- package/dist/bindings/index.d.ts +1 -0
- package/dist/bindings/index.d.ts.map +1 -1
- package/dist/bindings/postgres.d.ts +90 -0
- package/dist/bindings/postgres.d.ts.map +1 -0
- package/dist/bindings/postgres.test.d.ts +2 -0
- package/dist/bindings/postgres.test.d.ts.map +1 -0
- package/dist/client.js +2376 -0
- package/dist/commands/index.js +1 -1
- package/dist/dist-cjs.js +3 -0
- package/dist/dist-cjs2.js +718 -0
- package/dist/dist-cjs3.js +2486 -0
- package/dist/dist-cjs4.js +171 -0
- package/dist/dist-cjs5.js +429 -0
- package/dist/dist-cjs6.js +60 -0
- package/dist/dist-cjs7.js +978 -0
- package/dist/dist-cjs8.js +86 -0
- package/dist/dist-cjs9.js +319 -0
- package/dist/dist.js +498 -36
- package/dist/dist2.js +1239 -0
- package/dist/errors.d.ts +25 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/es5.js +1624 -0
- package/dist/esm.js +18211 -0
- package/dist/esm2.js +3104 -0
- package/dist/event-streams.js +203 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +336 -24996
- package/dist/jws.js +611 -0
- package/dist/open.js +460 -0
- package/dist/package.js +4 -0
- package/dist/protocols.js +954 -0
- package/dist/protocols2.js +5565 -0
- package/dist/rolldown-runtime.js +37 -0
- package/dist/serde.js +5542 -0
- package/dist/signin.js +723 -0
- package/dist/src.js +24900 -0
- package/dist/src2.js +114030 -0
- package/dist/sso-oidc.js +940 -0
- package/dist/sts.js +1329 -0
- package/dist/tslib.es6.js +543 -0
- package/package.json +26 -2
- package/src/bindings/index.ts +1 -0
- package/src/bindings/postgres.test.ts +17 -0
- package/src/bindings/postgres.ts +446 -0
- package/src/errors.ts +21 -0
- package/src/index.ts +5 -0
package/dist/sso-oidc.js
ADDED
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime.js";
|
|
2
|
+
import { A as getHttpSigningPlugin, B as resolveHostHeaderConfig, E as DefaultIdentityProviderConfig, G as NODE_RETRY_MODE_CONFIG_OPTIONS, H as init_retry, I as getLoggerPlugin, J as DEFAULT_RETRY_MODE, M as getHttpAuthSchemeEndpointRuleSetPlugin, P as getRecursionDetectionPlugin, Q as emitWarningIfUnsupportedVersion, R as getHostHeaderPlugin, V as getRetryPlugin, W as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as resolveUserAgentConfig, a as resolveAwsRegionExtensionConfiguration, c as awsEndpointFunctions, f as createDefaultUserAgentProvider, m as getUserAgentPlugin, n as init_client, q as resolveRetryConfig, r as getAwsRegionExtensionConfiguration, u as NODE_APP_ID_CONFIG_OPTIONS, w as NoAuthSigner, y as init_dist_es } from "./client.js";
|
|
3
|
+
import { $ as calculateBodyLength, $t as TypeRegistry, Bt as emitWarningIfUnsupportedVersion$1, Dt as fromUtf8, E as BinaryDecisionDiagram, En as getSmithyContext, Et as toBase64, F as resolveRegionConfig, I as NODE_REGION_CONFIG_FILE_OPTIONS, K as loadConfig, L as NODE_REGION_CONFIG_OPTIONS, Lt as getDefaultExtensionConfiguration, Mt as init_client$1, N as resolveDefaultsModeConfig, Nt as NoOpLogger, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, Ut as loadConfigsForDefaultMode, V as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, Wt as ServiceException, Yt as Command, Zt as init_schema, _n as normalizeProvider, an as getSchemaSerdePlugin, b as customEndpointFunctions, c as Hash, d as getEndpointPlugin, f as init_endpoints, g as decideEndpoint, j as init_config$1, kt as fromBase64, ln as Client, p as resolveEndpointConfig, pn as parseUrl, qt as createAggregatedClient, r as init_serde, w as EndpointCache, wt as toUtf8, zt as resolveDefaultRuntimeConfig } from "./serde.js";
|
|
4
|
+
import { a as getHttpHandlerExtensionConfiguration, r as getContentLengthPlugin, s as resolveHttpHandlerRuntimeConfig, t as init_protocols } from "./protocols.js";
|
|
5
|
+
import { a as AwsRestJsonProtocol, c as init_httpAuthSchemes, h as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, t as init_protocols$1, u as resolveAwsSdkSigV4Config, y as AwsSdkSigV4Signer } from "./protocols2.js";
|
|
6
|
+
import { t as require_dist_cjs } from "./dist-cjs2.js";
|
|
7
|
+
import { t as version } from "./package.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
|
|
9
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
10
|
+
return {
|
|
11
|
+
schemeId: "aws.auth#sigv4",
|
|
12
|
+
signingProperties: {
|
|
13
|
+
name: "sso-oauth",
|
|
14
|
+
region: authParameters.region
|
|
15
|
+
},
|
|
16
|
+
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
17
|
+
config,
|
|
18
|
+
context
|
|
19
|
+
} })
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
23
|
+
return { schemeId: "smithy.api#noAuth" };
|
|
24
|
+
}
|
|
25
|
+
var defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig;
|
|
26
|
+
var init_httpAuthSchemeProvider = __esmMin((() => {
|
|
27
|
+
init_httpAuthSchemes();
|
|
28
|
+
init_client$1();
|
|
29
|
+
defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
30
|
+
return {
|
|
31
|
+
operation: getSmithyContext(context).operation,
|
|
32
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
33
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
34
|
+
})()
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
38
|
+
const options = [];
|
|
39
|
+
switch (authParameters.operation) {
|
|
40
|
+
case "CreateToken":
|
|
41
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
42
|
+
break;
|
|
43
|
+
default: options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
44
|
+
}
|
|
45
|
+
return options;
|
|
46
|
+
};
|
|
47
|
+
resolveHttpAuthSchemeConfig = (config) => {
|
|
48
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
49
|
+
return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) });
|
|
50
|
+
};
|
|
51
|
+
}));
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
|
|
54
|
+
var resolveClientEndpointParameters, commonParams;
|
|
55
|
+
var init_EndpointParameters = __esmMin((() => {
|
|
56
|
+
resolveClientEndpointParameters = (options) => {
|
|
57
|
+
return Object.assign(options, {
|
|
58
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
59
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
60
|
+
defaultSigningName: "sso-oauth"
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
commonParams = {
|
|
64
|
+
UseFIPS: {
|
|
65
|
+
type: "builtInParams",
|
|
66
|
+
name: "useFipsEndpoint"
|
|
67
|
+
},
|
|
68
|
+
Endpoint: {
|
|
69
|
+
type: "builtInParams",
|
|
70
|
+
name: "endpoint"
|
|
71
|
+
},
|
|
72
|
+
Region: {
|
|
73
|
+
type: "builtInParams",
|
|
74
|
+
name: "region"
|
|
75
|
+
},
|
|
76
|
+
UseDualStack: {
|
|
77
|
+
type: "builtInParams",
|
|
78
|
+
name: "useDualstackEndpoint"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}));
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js
|
|
84
|
+
var k, a, b, c, d, e, f, g, h, i, j, _data, root, nodes, bdd;
|
|
85
|
+
var init_bdd = __esmMin((() => {
|
|
86
|
+
init_endpoints();
|
|
87
|
+
k = "ref";
|
|
88
|
+
a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
89
|
+
_data = {
|
|
90
|
+
conditions: [
|
|
91
|
+
[c, [g]],
|
|
92
|
+
[c, j],
|
|
93
|
+
[
|
|
94
|
+
"aws.partition",
|
|
95
|
+
j,
|
|
96
|
+
d
|
|
97
|
+
],
|
|
98
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
99
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
100
|
+
[e, [{
|
|
101
|
+
fn: f,
|
|
102
|
+
argv: [h, "supportsDualStack"]
|
|
103
|
+
}, b]],
|
|
104
|
+
[e, [{
|
|
105
|
+
fn: f,
|
|
106
|
+
argv: [h, "supportsFIPS"]
|
|
107
|
+
}, b]],
|
|
108
|
+
["stringEquals", [{
|
|
109
|
+
fn: f,
|
|
110
|
+
argv: [h, "name"]
|
|
111
|
+
}, "aws-us-gov"]]
|
|
112
|
+
],
|
|
113
|
+
results: [
|
|
114
|
+
[a],
|
|
115
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
116
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
117
|
+
[g, i],
|
|
118
|
+
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
119
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
120
|
+
["https://oidc.{Region}.amazonaws.com", i],
|
|
121
|
+
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
122
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
123
|
+
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
124
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
125
|
+
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
126
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
127
|
+
]
|
|
128
|
+
};
|
|
129
|
+
root = 2;
|
|
130
|
+
nodes = new Int32Array([
|
|
131
|
+
-1,
|
|
132
|
+
1,
|
|
133
|
+
-1,
|
|
134
|
+
0,
|
|
135
|
+
13,
|
|
136
|
+
3,
|
|
137
|
+
1,
|
|
138
|
+
4,
|
|
139
|
+
100000012,
|
|
140
|
+
2,
|
|
141
|
+
5,
|
|
142
|
+
100000012,
|
|
143
|
+
3,
|
|
144
|
+
8,
|
|
145
|
+
6,
|
|
146
|
+
4,
|
|
147
|
+
7,
|
|
148
|
+
100000011,
|
|
149
|
+
5,
|
|
150
|
+
100000009,
|
|
151
|
+
100000010,
|
|
152
|
+
4,
|
|
153
|
+
11,
|
|
154
|
+
9,
|
|
155
|
+
6,
|
|
156
|
+
10,
|
|
157
|
+
100000008,
|
|
158
|
+
7,
|
|
159
|
+
100000006,
|
|
160
|
+
100000007,
|
|
161
|
+
5,
|
|
162
|
+
12,
|
|
163
|
+
100000005,
|
|
164
|
+
6,
|
|
165
|
+
100000004,
|
|
166
|
+
100000005,
|
|
167
|
+
3,
|
|
168
|
+
100000001,
|
|
169
|
+
14,
|
|
170
|
+
4,
|
|
171
|
+
100000002,
|
|
172
|
+
100000003
|
|
173
|
+
]);
|
|
174
|
+
bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
175
|
+
}));
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
|
|
178
|
+
var cache, defaultEndpointResolver;
|
|
179
|
+
var init_endpointResolver = __esmMin((() => {
|
|
180
|
+
init_client();
|
|
181
|
+
init_endpoints();
|
|
182
|
+
init_bdd();
|
|
183
|
+
cache = new EndpointCache({
|
|
184
|
+
size: 50,
|
|
185
|
+
params: [
|
|
186
|
+
"Endpoint",
|
|
187
|
+
"Region",
|
|
188
|
+
"UseDualStack",
|
|
189
|
+
"UseFIPS"
|
|
190
|
+
]
|
|
191
|
+
});
|
|
192
|
+
defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
193
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
194
|
+
endpointParams,
|
|
195
|
+
logger: context.logger
|
|
196
|
+
}));
|
|
197
|
+
};
|
|
198
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
199
|
+
}));
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
|
|
202
|
+
var SSOOIDCServiceException;
|
|
203
|
+
var init_SSOOIDCServiceException = __esmMin((() => {
|
|
204
|
+
init_client$1();
|
|
205
|
+
SSOOIDCServiceException = class SSOOIDCServiceException extends ServiceException {
|
|
206
|
+
constructor(options) {
|
|
207
|
+
super(options);
|
|
208
|
+
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}));
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
|
|
214
|
+
var AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException;
|
|
215
|
+
var init_errors = __esmMin((() => {
|
|
216
|
+
init_SSOOIDCServiceException();
|
|
217
|
+
AccessDeniedException = class AccessDeniedException extends SSOOIDCServiceException {
|
|
218
|
+
name = "AccessDeniedException";
|
|
219
|
+
$fault = "client";
|
|
220
|
+
error;
|
|
221
|
+
reason;
|
|
222
|
+
error_description;
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "AccessDeniedException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
230
|
+
this.error = opts.error;
|
|
231
|
+
this.reason = opts.reason;
|
|
232
|
+
this.error_description = opts.error_description;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
AuthorizationPendingException = class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
236
|
+
name = "AuthorizationPendingException";
|
|
237
|
+
$fault = "client";
|
|
238
|
+
error;
|
|
239
|
+
error_description;
|
|
240
|
+
constructor(opts) {
|
|
241
|
+
super({
|
|
242
|
+
name: "AuthorizationPendingException",
|
|
243
|
+
$fault: "client",
|
|
244
|
+
...opts
|
|
245
|
+
});
|
|
246
|
+
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
247
|
+
this.error = opts.error;
|
|
248
|
+
this.error_description = opts.error_description;
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
ExpiredTokenException = class ExpiredTokenException extends SSOOIDCServiceException {
|
|
252
|
+
name = "ExpiredTokenException";
|
|
253
|
+
$fault = "client";
|
|
254
|
+
error;
|
|
255
|
+
error_description;
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "ExpiredTokenException",
|
|
259
|
+
$fault: "client",
|
|
260
|
+
...opts
|
|
261
|
+
});
|
|
262
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
263
|
+
this.error = opts.error;
|
|
264
|
+
this.error_description = opts.error_description;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
InternalServerException = class InternalServerException extends SSOOIDCServiceException {
|
|
268
|
+
name = "InternalServerException";
|
|
269
|
+
$fault = "server";
|
|
270
|
+
error;
|
|
271
|
+
error_description;
|
|
272
|
+
constructor(opts) {
|
|
273
|
+
super({
|
|
274
|
+
name: "InternalServerException",
|
|
275
|
+
$fault: "server",
|
|
276
|
+
...opts
|
|
277
|
+
});
|
|
278
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
279
|
+
this.error = opts.error;
|
|
280
|
+
this.error_description = opts.error_description;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
InvalidClientException = class InvalidClientException extends SSOOIDCServiceException {
|
|
284
|
+
name = "InvalidClientException";
|
|
285
|
+
$fault = "client";
|
|
286
|
+
error;
|
|
287
|
+
error_description;
|
|
288
|
+
constructor(opts) {
|
|
289
|
+
super({
|
|
290
|
+
name: "InvalidClientException",
|
|
291
|
+
$fault: "client",
|
|
292
|
+
...opts
|
|
293
|
+
});
|
|
294
|
+
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
295
|
+
this.error = opts.error;
|
|
296
|
+
this.error_description = opts.error_description;
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
InvalidGrantException = class InvalidGrantException extends SSOOIDCServiceException {
|
|
300
|
+
name = "InvalidGrantException";
|
|
301
|
+
$fault = "client";
|
|
302
|
+
error;
|
|
303
|
+
error_description;
|
|
304
|
+
constructor(opts) {
|
|
305
|
+
super({
|
|
306
|
+
name: "InvalidGrantException",
|
|
307
|
+
$fault: "client",
|
|
308
|
+
...opts
|
|
309
|
+
});
|
|
310
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
311
|
+
this.error = opts.error;
|
|
312
|
+
this.error_description = opts.error_description;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
InvalidRequestException = class InvalidRequestException extends SSOOIDCServiceException {
|
|
316
|
+
name = "InvalidRequestException";
|
|
317
|
+
$fault = "client";
|
|
318
|
+
error;
|
|
319
|
+
reason;
|
|
320
|
+
error_description;
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "InvalidRequestException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts
|
|
326
|
+
});
|
|
327
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
328
|
+
this.error = opts.error;
|
|
329
|
+
this.reason = opts.reason;
|
|
330
|
+
this.error_description = opts.error_description;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
InvalidScopeException = class InvalidScopeException extends SSOOIDCServiceException {
|
|
334
|
+
name = "InvalidScopeException";
|
|
335
|
+
$fault = "client";
|
|
336
|
+
error;
|
|
337
|
+
error_description;
|
|
338
|
+
constructor(opts) {
|
|
339
|
+
super({
|
|
340
|
+
name: "InvalidScopeException",
|
|
341
|
+
$fault: "client",
|
|
342
|
+
...opts
|
|
343
|
+
});
|
|
344
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
345
|
+
this.error = opts.error;
|
|
346
|
+
this.error_description = opts.error_description;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
SlowDownException = class SlowDownException extends SSOOIDCServiceException {
|
|
350
|
+
name = "SlowDownException";
|
|
351
|
+
$fault = "client";
|
|
352
|
+
error;
|
|
353
|
+
error_description;
|
|
354
|
+
constructor(opts) {
|
|
355
|
+
super({
|
|
356
|
+
name: "SlowDownException",
|
|
357
|
+
$fault: "client",
|
|
358
|
+
...opts
|
|
359
|
+
});
|
|
360
|
+
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
361
|
+
this.error = opts.error;
|
|
362
|
+
this.error_description = opts.error_description;
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
UnauthorizedClientException = class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
366
|
+
name = "UnauthorizedClientException";
|
|
367
|
+
$fault = "client";
|
|
368
|
+
error;
|
|
369
|
+
error_description;
|
|
370
|
+
constructor(opts) {
|
|
371
|
+
super({
|
|
372
|
+
name: "UnauthorizedClientException",
|
|
373
|
+
$fault: "client",
|
|
374
|
+
...opts
|
|
375
|
+
});
|
|
376
|
+
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
377
|
+
this.error = opts.error;
|
|
378
|
+
this.error_description = opts.error_description;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
UnsupportedGrantTypeException = class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
382
|
+
name = "UnsupportedGrantTypeException";
|
|
383
|
+
$fault = "client";
|
|
384
|
+
error;
|
|
385
|
+
error_description;
|
|
386
|
+
constructor(opts) {
|
|
387
|
+
super({
|
|
388
|
+
name: "UnsupportedGrantTypeException",
|
|
389
|
+
$fault: "client",
|
|
390
|
+
...opts
|
|
391
|
+
});
|
|
392
|
+
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
393
|
+
this.error = opts.error;
|
|
394
|
+
this.error_description = opts.error_description;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
}));
|
|
398
|
+
//#endregion
|
|
399
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
|
|
400
|
+
var _ADE, _APE, _AT, _CS, _CT, _CTR, _CTRr, _CV, _ETE, _ICE, _IGE, _IRE, _ISE, _ISEn, _IT, _RT, _SDE, _UCE, _UGTE, _aT, _c, _cI, _cS, _cV, _co, _dC, _e, _eI, _ed, _gT, _h, _hE, _iT, _r, _rT, _rU, _s, _sc, _se, _tT, n0, _s_registry, SSOOIDCServiceException$, n0_registry, AccessDeniedException$, AuthorizationPendingException$, ExpiredTokenException$, InternalServerException$, InvalidClientException$, InvalidGrantException$, InvalidRequestException$, InvalidScopeException$, SlowDownException$, UnauthorizedClientException$, UnsupportedGrantTypeException$, errorTypeRegistries, AccessToken, ClientSecret, CodeVerifier, IdToken, RefreshToken, CreateTokenRequest$, CreateTokenResponse$, CreateToken$;
|
|
401
|
+
var init_schemas_0 = __esmMin((() => {
|
|
402
|
+
init_schema();
|
|
403
|
+
init_errors();
|
|
404
|
+
init_SSOOIDCServiceException();
|
|
405
|
+
_ADE = "AccessDeniedException";
|
|
406
|
+
_APE = "AuthorizationPendingException";
|
|
407
|
+
_AT = "AccessToken";
|
|
408
|
+
_CS = "ClientSecret";
|
|
409
|
+
_CT = "CreateToken";
|
|
410
|
+
_CTR = "CreateTokenRequest";
|
|
411
|
+
_CTRr = "CreateTokenResponse";
|
|
412
|
+
_CV = "CodeVerifier";
|
|
413
|
+
_ETE = "ExpiredTokenException";
|
|
414
|
+
_ICE = "InvalidClientException";
|
|
415
|
+
_IGE = "InvalidGrantException";
|
|
416
|
+
_IRE = "InvalidRequestException";
|
|
417
|
+
_ISE = "InternalServerException";
|
|
418
|
+
_ISEn = "InvalidScopeException";
|
|
419
|
+
_IT = "IdToken";
|
|
420
|
+
_RT = "RefreshToken";
|
|
421
|
+
_SDE = "SlowDownException";
|
|
422
|
+
_UCE = "UnauthorizedClientException";
|
|
423
|
+
_UGTE = "UnsupportedGrantTypeException";
|
|
424
|
+
_aT = "accessToken";
|
|
425
|
+
_c = "client";
|
|
426
|
+
_cI = "clientId";
|
|
427
|
+
_cS = "clientSecret";
|
|
428
|
+
_cV = "codeVerifier";
|
|
429
|
+
_co = "code";
|
|
430
|
+
_dC = "deviceCode";
|
|
431
|
+
_e = "error";
|
|
432
|
+
_eI = "expiresIn";
|
|
433
|
+
_ed = "error_description";
|
|
434
|
+
_gT = "grantType";
|
|
435
|
+
_h = "http";
|
|
436
|
+
_hE = "httpError";
|
|
437
|
+
_iT = "idToken";
|
|
438
|
+
_r = "reason";
|
|
439
|
+
_rT = "refreshToken";
|
|
440
|
+
_rU = "redirectUri";
|
|
441
|
+
_s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
442
|
+
_sc = "scope";
|
|
443
|
+
_se = "server";
|
|
444
|
+
_tT = "tokenType";
|
|
445
|
+
n0 = "com.amazonaws.ssooidc";
|
|
446
|
+
_s_registry = TypeRegistry.for(_s);
|
|
447
|
+
SSOOIDCServiceException$ = [
|
|
448
|
+
-3,
|
|
449
|
+
_s,
|
|
450
|
+
"SSOOIDCServiceException",
|
|
451
|
+
0,
|
|
452
|
+
[],
|
|
453
|
+
[]
|
|
454
|
+
];
|
|
455
|
+
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
456
|
+
n0_registry = TypeRegistry.for(n0);
|
|
457
|
+
AccessDeniedException$ = [
|
|
458
|
+
-3,
|
|
459
|
+
n0,
|
|
460
|
+
_ADE,
|
|
461
|
+
{
|
|
462
|
+
[_e]: _c,
|
|
463
|
+
[_hE]: 400
|
|
464
|
+
},
|
|
465
|
+
[
|
|
466
|
+
_e,
|
|
467
|
+
_r,
|
|
468
|
+
_ed
|
|
469
|
+
],
|
|
470
|
+
[
|
|
471
|
+
0,
|
|
472
|
+
0,
|
|
473
|
+
0
|
|
474
|
+
]
|
|
475
|
+
];
|
|
476
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
477
|
+
AuthorizationPendingException$ = [
|
|
478
|
+
-3,
|
|
479
|
+
n0,
|
|
480
|
+
_APE,
|
|
481
|
+
{
|
|
482
|
+
[_e]: _c,
|
|
483
|
+
[_hE]: 400
|
|
484
|
+
},
|
|
485
|
+
[_e, _ed],
|
|
486
|
+
[0, 0]
|
|
487
|
+
];
|
|
488
|
+
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
489
|
+
ExpiredTokenException$ = [
|
|
490
|
+
-3,
|
|
491
|
+
n0,
|
|
492
|
+
_ETE,
|
|
493
|
+
{
|
|
494
|
+
[_e]: _c,
|
|
495
|
+
[_hE]: 400
|
|
496
|
+
},
|
|
497
|
+
[_e, _ed],
|
|
498
|
+
[0, 0]
|
|
499
|
+
];
|
|
500
|
+
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
501
|
+
InternalServerException$ = [
|
|
502
|
+
-3,
|
|
503
|
+
n0,
|
|
504
|
+
_ISE,
|
|
505
|
+
{
|
|
506
|
+
[_e]: _se,
|
|
507
|
+
[_hE]: 500
|
|
508
|
+
},
|
|
509
|
+
[_e, _ed],
|
|
510
|
+
[0, 0]
|
|
511
|
+
];
|
|
512
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
513
|
+
InvalidClientException$ = [
|
|
514
|
+
-3,
|
|
515
|
+
n0,
|
|
516
|
+
_ICE,
|
|
517
|
+
{
|
|
518
|
+
[_e]: _c,
|
|
519
|
+
[_hE]: 401
|
|
520
|
+
},
|
|
521
|
+
[_e, _ed],
|
|
522
|
+
[0, 0]
|
|
523
|
+
];
|
|
524
|
+
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
525
|
+
InvalidGrantException$ = [
|
|
526
|
+
-3,
|
|
527
|
+
n0,
|
|
528
|
+
_IGE,
|
|
529
|
+
{
|
|
530
|
+
[_e]: _c,
|
|
531
|
+
[_hE]: 400
|
|
532
|
+
},
|
|
533
|
+
[_e, _ed],
|
|
534
|
+
[0, 0]
|
|
535
|
+
];
|
|
536
|
+
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
537
|
+
InvalidRequestException$ = [
|
|
538
|
+
-3,
|
|
539
|
+
n0,
|
|
540
|
+
_IRE,
|
|
541
|
+
{
|
|
542
|
+
[_e]: _c,
|
|
543
|
+
[_hE]: 400
|
|
544
|
+
},
|
|
545
|
+
[
|
|
546
|
+
_e,
|
|
547
|
+
_r,
|
|
548
|
+
_ed
|
|
549
|
+
],
|
|
550
|
+
[
|
|
551
|
+
0,
|
|
552
|
+
0,
|
|
553
|
+
0
|
|
554
|
+
]
|
|
555
|
+
];
|
|
556
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
557
|
+
InvalidScopeException$ = [
|
|
558
|
+
-3,
|
|
559
|
+
n0,
|
|
560
|
+
_ISEn,
|
|
561
|
+
{
|
|
562
|
+
[_e]: _c,
|
|
563
|
+
[_hE]: 400
|
|
564
|
+
},
|
|
565
|
+
[_e, _ed],
|
|
566
|
+
[0, 0]
|
|
567
|
+
];
|
|
568
|
+
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
569
|
+
SlowDownException$ = [
|
|
570
|
+
-3,
|
|
571
|
+
n0,
|
|
572
|
+
_SDE,
|
|
573
|
+
{
|
|
574
|
+
[_e]: _c,
|
|
575
|
+
[_hE]: 400
|
|
576
|
+
},
|
|
577
|
+
[_e, _ed],
|
|
578
|
+
[0, 0]
|
|
579
|
+
];
|
|
580
|
+
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
581
|
+
UnauthorizedClientException$ = [
|
|
582
|
+
-3,
|
|
583
|
+
n0,
|
|
584
|
+
_UCE,
|
|
585
|
+
{
|
|
586
|
+
[_e]: _c,
|
|
587
|
+
[_hE]: 400
|
|
588
|
+
},
|
|
589
|
+
[_e, _ed],
|
|
590
|
+
[0, 0]
|
|
591
|
+
];
|
|
592
|
+
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
593
|
+
UnsupportedGrantTypeException$ = [
|
|
594
|
+
-3,
|
|
595
|
+
n0,
|
|
596
|
+
_UGTE,
|
|
597
|
+
{
|
|
598
|
+
[_e]: _c,
|
|
599
|
+
[_hE]: 400
|
|
600
|
+
},
|
|
601
|
+
[_e, _ed],
|
|
602
|
+
[0, 0]
|
|
603
|
+
];
|
|
604
|
+
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
605
|
+
errorTypeRegistries = [_s_registry, n0_registry];
|
|
606
|
+
AccessToken = [
|
|
607
|
+
0,
|
|
608
|
+
n0,
|
|
609
|
+
_AT,
|
|
610
|
+
8,
|
|
611
|
+
0
|
|
612
|
+
];
|
|
613
|
+
ClientSecret = [
|
|
614
|
+
0,
|
|
615
|
+
n0,
|
|
616
|
+
_CS,
|
|
617
|
+
8,
|
|
618
|
+
0
|
|
619
|
+
];
|
|
620
|
+
CodeVerifier = [
|
|
621
|
+
0,
|
|
622
|
+
n0,
|
|
623
|
+
_CV,
|
|
624
|
+
8,
|
|
625
|
+
0
|
|
626
|
+
];
|
|
627
|
+
IdToken = [
|
|
628
|
+
0,
|
|
629
|
+
n0,
|
|
630
|
+
_IT,
|
|
631
|
+
8,
|
|
632
|
+
0
|
|
633
|
+
];
|
|
634
|
+
RefreshToken = [
|
|
635
|
+
0,
|
|
636
|
+
n0,
|
|
637
|
+
_RT,
|
|
638
|
+
8,
|
|
639
|
+
0
|
|
640
|
+
];
|
|
641
|
+
CreateTokenRequest$ = [
|
|
642
|
+
3,
|
|
643
|
+
n0,
|
|
644
|
+
_CTR,
|
|
645
|
+
0,
|
|
646
|
+
[
|
|
647
|
+
_cI,
|
|
648
|
+
_cS,
|
|
649
|
+
_gT,
|
|
650
|
+
_dC,
|
|
651
|
+
_co,
|
|
652
|
+
_rT,
|
|
653
|
+
_sc,
|
|
654
|
+
_rU,
|
|
655
|
+
_cV
|
|
656
|
+
],
|
|
657
|
+
[
|
|
658
|
+
0,
|
|
659
|
+
[() => ClientSecret, 0],
|
|
660
|
+
0,
|
|
661
|
+
0,
|
|
662
|
+
0,
|
|
663
|
+
[() => RefreshToken, 0],
|
|
664
|
+
64,
|
|
665
|
+
0,
|
|
666
|
+
[() => CodeVerifier, 0]
|
|
667
|
+
],
|
|
668
|
+
3
|
|
669
|
+
];
|
|
670
|
+
CreateTokenResponse$ = [
|
|
671
|
+
3,
|
|
672
|
+
n0,
|
|
673
|
+
_CTRr,
|
|
674
|
+
0,
|
|
675
|
+
[
|
|
676
|
+
_aT,
|
|
677
|
+
_tT,
|
|
678
|
+
_eI,
|
|
679
|
+
_rT,
|
|
680
|
+
_iT
|
|
681
|
+
],
|
|
682
|
+
[
|
|
683
|
+
[() => AccessToken, 0],
|
|
684
|
+
0,
|
|
685
|
+
1,
|
|
686
|
+
[() => RefreshToken, 0],
|
|
687
|
+
[() => IdToken, 0]
|
|
688
|
+
]
|
|
689
|
+
];
|
|
690
|
+
CreateToken$ = [
|
|
691
|
+
9,
|
|
692
|
+
n0,
|
|
693
|
+
_CT,
|
|
694
|
+
{ [_h]: [
|
|
695
|
+
"POST",
|
|
696
|
+
"/token",
|
|
697
|
+
200
|
|
698
|
+
] },
|
|
699
|
+
() => CreateTokenRequest$,
|
|
700
|
+
() => CreateTokenResponse$
|
|
701
|
+
];
|
|
702
|
+
}));
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
|
|
705
|
+
var getRuntimeConfig$1;
|
|
706
|
+
var init_runtimeConfig_shared = __esmMin((() => {
|
|
707
|
+
init_httpAuthSchemes();
|
|
708
|
+
init_protocols$1();
|
|
709
|
+
init_dist_es();
|
|
710
|
+
init_client$1();
|
|
711
|
+
init_protocols();
|
|
712
|
+
init_serde();
|
|
713
|
+
init_httpAuthSchemeProvider();
|
|
714
|
+
init_endpointResolver();
|
|
715
|
+
init_schemas_0();
|
|
716
|
+
getRuntimeConfig$1 = (config) => {
|
|
717
|
+
return {
|
|
718
|
+
apiVersion: "2019-06-10",
|
|
719
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
720
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
721
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
722
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
723
|
+
extensions: config?.extensions ?? [],
|
|
724
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
725
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
726
|
+
schemeId: "aws.auth#sigv4",
|
|
727
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
728
|
+
signer: new AwsSdkSigV4Signer()
|
|
729
|
+
}, {
|
|
730
|
+
schemeId: "smithy.api#noAuth",
|
|
731
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
732
|
+
signer: new NoAuthSigner()
|
|
733
|
+
}],
|
|
734
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
735
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
736
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
737
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
738
|
+
errorTypeRegistries,
|
|
739
|
+
version: "2019-06-10",
|
|
740
|
+
serviceTarget: "AWSSSOOIDCService"
|
|
741
|
+
},
|
|
742
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
743
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
744
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
745
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
}));
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
|
|
751
|
+
var import_dist_cjs, getRuntimeConfig;
|
|
752
|
+
var init_runtimeConfig = __esmMin((() => {
|
|
753
|
+
init_client();
|
|
754
|
+
init_httpAuthSchemes();
|
|
755
|
+
init_client$1();
|
|
756
|
+
init_config$1();
|
|
757
|
+
init_retry();
|
|
758
|
+
init_serde();
|
|
759
|
+
import_dist_cjs = require_dist_cjs();
|
|
760
|
+
init_runtimeConfig_shared();
|
|
761
|
+
getRuntimeConfig = (config) => {
|
|
762
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
763
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
764
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
765
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
766
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
767
|
+
const loaderConfig = {
|
|
768
|
+
profile: config?.profile,
|
|
769
|
+
logger: clientSharedValues.logger
|
|
770
|
+
};
|
|
771
|
+
return {
|
|
772
|
+
...clientSharedValues,
|
|
773
|
+
...config,
|
|
774
|
+
runtime: "node",
|
|
775
|
+
defaultsMode,
|
|
776
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
777
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
778
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
779
|
+
serviceId: clientSharedValues.serviceId,
|
|
780
|
+
clientVersion: version
|
|
781
|
+
}),
|
|
782
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
783
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
784
|
+
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
785
|
+
...loaderConfig
|
|
786
|
+
}),
|
|
787
|
+
requestHandler: import_dist_cjs.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
788
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
789
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
790
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
791
|
+
}, config),
|
|
792
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
793
|
+
streamCollector: config?.streamCollector ?? import_dist_cjs.streamCollector,
|
|
794
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
795
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
796
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
}));
|
|
800
|
+
//#endregion
|
|
801
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
|
|
802
|
+
var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig;
|
|
803
|
+
var init_httpAuthExtensionConfiguration = __esmMin((() => {
|
|
804
|
+
getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
805
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
806
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
807
|
+
let _credentials = runtimeConfig.credentials;
|
|
808
|
+
return {
|
|
809
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
810
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
811
|
+
if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
|
|
812
|
+
else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
813
|
+
},
|
|
814
|
+
httpAuthSchemes() {
|
|
815
|
+
return _httpAuthSchemes;
|
|
816
|
+
},
|
|
817
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
818
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
819
|
+
},
|
|
820
|
+
httpAuthSchemeProvider() {
|
|
821
|
+
return _httpAuthSchemeProvider;
|
|
822
|
+
},
|
|
823
|
+
setCredentials(credentials) {
|
|
824
|
+
_credentials = credentials;
|
|
825
|
+
},
|
|
826
|
+
credentials() {
|
|
827
|
+
return _credentials;
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
resolveHttpAuthRuntimeConfig = (config) => {
|
|
832
|
+
return {
|
|
833
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
834
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
835
|
+
credentials: config.credentials()
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
}));
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
|
|
841
|
+
var resolveRuntimeExtensions;
|
|
842
|
+
var init_runtimeExtensions = __esmMin((() => {
|
|
843
|
+
init_client();
|
|
844
|
+
init_client$1();
|
|
845
|
+
init_protocols();
|
|
846
|
+
init_httpAuthExtensionConfiguration();
|
|
847
|
+
resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
848
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
849
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
850
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
851
|
+
};
|
|
852
|
+
}));
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
|
|
855
|
+
var SSOOIDCClient;
|
|
856
|
+
var init_SSOOIDCClient = __esmMin((() => {
|
|
857
|
+
init_client();
|
|
858
|
+
init_dist_es();
|
|
859
|
+
init_client$1();
|
|
860
|
+
init_config$1();
|
|
861
|
+
init_endpoints();
|
|
862
|
+
init_protocols();
|
|
863
|
+
init_retry();
|
|
864
|
+
init_schema();
|
|
865
|
+
init_httpAuthSchemeProvider();
|
|
866
|
+
init_EndpointParameters();
|
|
867
|
+
init_runtimeConfig();
|
|
868
|
+
init_runtimeExtensions();
|
|
869
|
+
SSOOIDCClient = class extends Client {
|
|
870
|
+
config;
|
|
871
|
+
constructor(...[configuration]) {
|
|
872
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
873
|
+
super(_config_0);
|
|
874
|
+
this.initConfig = _config_0;
|
|
875
|
+
const _config_8 = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig(resolveEndpointConfig(resolveHostHeaderConfig(resolveRegionConfig(resolveRetryConfig(resolveUserAgentConfig(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
|
|
876
|
+
this.config = _config_8;
|
|
877
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
878
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
879
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
880
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
881
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
882
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
883
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
884
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
885
|
+
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
886
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
|
|
887
|
+
}));
|
|
888
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
889
|
+
}
|
|
890
|
+
destroy() {
|
|
891
|
+
super.destroy();
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
}));
|
|
895
|
+
//#endregion
|
|
896
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
|
|
897
|
+
var CreateTokenCommand;
|
|
898
|
+
var init_CreateTokenCommand = __esmMin((() => {
|
|
899
|
+
init_client$1();
|
|
900
|
+
init_endpoints();
|
|
901
|
+
init_EndpointParameters();
|
|
902
|
+
init_schemas_0();
|
|
903
|
+
CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
904
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
905
|
+
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {};
|
|
906
|
+
}));
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
|
|
909
|
+
var commands, SSOOIDC;
|
|
910
|
+
var init_SSOOIDC = __esmMin((() => {
|
|
911
|
+
init_client$1();
|
|
912
|
+
init_CreateTokenCommand();
|
|
913
|
+
init_SSOOIDCClient();
|
|
914
|
+
commands = { CreateTokenCommand };
|
|
915
|
+
SSOOIDC = class extends SSOOIDCClient {};
|
|
916
|
+
createAggregatedClient(commands, SSOOIDC);
|
|
917
|
+
}));
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js
|
|
920
|
+
var init_commands = __esmMin((() => {
|
|
921
|
+
init_CreateTokenCommand();
|
|
922
|
+
}));
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
|
|
925
|
+
var init_enums = __esmMin((() => {}));
|
|
926
|
+
//#endregion
|
|
927
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js
|
|
928
|
+
var init_models_0 = __esmMin((() => {}));
|
|
929
|
+
//#endregion
|
|
930
|
+
__esmMin((() => {
|
|
931
|
+
init_SSOOIDCClient();
|
|
932
|
+
init_SSOOIDC();
|
|
933
|
+
init_commands();
|
|
934
|
+
init_schemas_0();
|
|
935
|
+
init_enums();
|
|
936
|
+
init_errors();
|
|
937
|
+
init_models_0();
|
|
938
|
+
init_SSOOIDCServiceException();
|
|
939
|
+
}))();
|
|
940
|
+
export { CreateTokenCommand, SSOOIDCClient };
|