@monorise/react 7.1.0 → 7.1.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/dist/helpers/transactional.d.ts +40 -0
- package/dist/helpers/transactional.d.ts.map +1 -0
- package/dist/index.d.ts +4 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +168 -8677
- package/dist/index.js.map +1 -1
- package/dist/services/core.service.d.ts +2 -8
- package/dist/services/core.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5XIRNUBL.js +0 -43
- package/dist/chunk-5XIRNUBL.js.map +0 -1
- package/dist/chunk-7JDOKZGQ.js +0 -172
- package/dist/chunk-7JDOKZGQ.js.map +0 -1
- package/dist/chunk-A5TI2FW3.js +0 -13
- package/dist/chunk-A5TI2FW3.js.map +0 -1
- package/dist/chunk-AYQDOLYF.js +0 -628
- package/dist/chunk-AYQDOLYF.js.map +0 -1
- package/dist/chunk-BUTF5RJU.js +0 -29
- package/dist/chunk-BUTF5RJU.js.map +0 -1
- package/dist/chunk-EYG2DL3D.js +0 -893
- package/dist/chunk-EYG2DL3D.js.map +0 -1
- package/dist/chunk-GEN4TSCQ.js +0 -5179
- package/dist/chunk-GEN4TSCQ.js.map +0 -1
- package/dist/chunk-GFVCNWVT.js +0 -54
- package/dist/chunk-GFVCNWVT.js.map +0 -1
- package/dist/chunk-KJX5LOMN.js +0 -43
- package/dist/chunk-KJX5LOMN.js.map +0 -1
- package/dist/chunk-KLXK4V6G.js +0 -65
- package/dist/chunk-KLXK4V6G.js.map +0 -1
- package/dist/chunk-L6MAS3AX.js +0 -482
- package/dist/chunk-L6MAS3AX.js.map +0 -1
- package/dist/chunk-LPXR5V4J.js +0 -582
- package/dist/chunk-LPXR5V4J.js.map +0 -1
- package/dist/chunk-MIXAYX55.js +0 -147
- package/dist/chunk-MIXAYX55.js.map +0 -1
- package/dist/chunk-OEHQ546W.js +0 -182
- package/dist/chunk-OEHQ546W.js.map +0 -1
- package/dist/chunk-RPNCWADG.js +0 -248
- package/dist/chunk-RPNCWADG.js.map +0 -1
- package/dist/chunk-S6RDMHHH.js +0 -47
- package/dist/chunk-S6RDMHHH.js.map +0 -1
- package/dist/chunk-VVCM7N22.js +0 -101
- package/dist/chunk-VVCM7N22.js.map +0 -1
- package/dist/dist-es-5WYA7CWK.js +0 -379
- package/dist/dist-es-5WYA7CWK.js.map +0 -1
- package/dist/dist-es-DLWQXBOR.js +0 -333
- package/dist/dist-es-DLWQXBOR.js.map +0 -1
- package/dist/dist-es-EMJCB37T.js +0 -71
- package/dist/dist-es-EMJCB37T.js.map +0 -1
- package/dist/dist-es-Q7IAXWRB.js +0 -494
- package/dist/dist-es-Q7IAXWRB.js.map +0 -1
- package/dist/dist-es-QF65HH5Y.js +0 -169
- package/dist/dist-es-QF65HH5Y.js.map +0 -1
- package/dist/dist-es-R4TRTT45.js +0 -22
- package/dist/dist-es-R4TRTT45.js.map +0 -1
- package/dist/dist-es-XNAC47MK.js +0 -90
- package/dist/dist-es-XNAC47MK.js.map +0 -1
- package/dist/event-streams-6APKUBMC.js +0 -270
- package/dist/event-streams-6APKUBMC.js.map +0 -1
- package/dist/loadSso-WMS367NT.js +0 -595
- package/dist/loadSso-WMS367NT.js.map +0 -1
- package/dist/signin-2I7AG6XI.js +0 -707
- package/dist/signin-2I7AG6XI.js.map +0 -1
- package/dist/sso-oidc-OAJ7SALL.js +0 -825
- package/dist/sso-oidc-OAJ7SALL.js.map +0 -1
- package/dist/sts-LKM23TRV.js +0 -3866
- package/dist/sts-LKM23TRV.js.map +0 -1
package/dist/loadSso-WMS367NT.js
DELETED
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AwsRestJsonProtocol
|
|
3
|
-
} from "./chunk-LPXR5V4J.js";
|
|
4
|
-
import {
|
|
5
|
-
Command,
|
|
6
|
-
NoAuthSigner,
|
|
7
|
-
getEndpointPlugin,
|
|
8
|
-
package_default
|
|
9
|
-
} from "./chunk-AYQDOLYF.js";
|
|
10
|
-
import "./chunk-L6MAS3AX.js";
|
|
11
|
-
import {
|
|
12
|
-
AwsSdkSigV4Signer,
|
|
13
|
-
Client,
|
|
14
|
-
DEFAULT_RETRY_MODE,
|
|
15
|
-
DefaultIdentityProviderConfig,
|
|
16
|
-
EndpointCache,
|
|
17
|
-
Hash,
|
|
18
|
-
NODE_APP_ID_CONFIG_OPTIONS,
|
|
19
|
-
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
20
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
21
|
-
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
22
|
-
NODE_REGION_CONFIG_OPTIONS,
|
|
23
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
24
|
-
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
25
|
-
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
26
|
-
NoOpLogger,
|
|
27
|
-
ServiceException,
|
|
28
|
-
TypeRegistry,
|
|
29
|
-
awsEndpointFunctions,
|
|
30
|
-
calculateBodyLength,
|
|
31
|
-
createDefaultUserAgentProvider,
|
|
32
|
-
customEndpointFunctions,
|
|
33
|
-
emitWarningIfUnsupportedVersion,
|
|
34
|
-
emitWarningIfUnsupportedVersion2,
|
|
35
|
-
getAwsRegionExtensionConfiguration,
|
|
36
|
-
getContentLengthPlugin,
|
|
37
|
-
getDefaultExtensionConfiguration,
|
|
38
|
-
getHostHeaderPlugin,
|
|
39
|
-
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
40
|
-
getHttpHandlerExtensionConfiguration,
|
|
41
|
-
getHttpSigningPlugin,
|
|
42
|
-
getLoggerPlugin,
|
|
43
|
-
getRecursionDetectionPlugin,
|
|
44
|
-
getRetryPlugin,
|
|
45
|
-
getSchemaSerdePlugin,
|
|
46
|
-
getSmithyContext,
|
|
47
|
-
getUserAgentPlugin,
|
|
48
|
-
loadConfigsForDefaultMode,
|
|
49
|
-
normalizeProvider,
|
|
50
|
-
resolveAwsRegionExtensionConfiguration,
|
|
51
|
-
resolveAwsSdkSigV4Config,
|
|
52
|
-
resolveDefaultRuntimeConfig,
|
|
53
|
-
resolveDefaultsModeConfig,
|
|
54
|
-
resolveEndpoint,
|
|
55
|
-
resolveEndpointConfig,
|
|
56
|
-
resolveHostHeaderConfig,
|
|
57
|
-
resolveHttpHandlerRuntimeConfig,
|
|
58
|
-
resolveRegionConfig,
|
|
59
|
-
resolveRetryConfig,
|
|
60
|
-
resolveUserAgentConfig
|
|
61
|
-
} from "./chunk-GEN4TSCQ.js";
|
|
62
|
-
import {
|
|
63
|
-
loadConfig,
|
|
64
|
-
parseUrl
|
|
65
|
-
} from "./chunk-7JDOKZGQ.js";
|
|
66
|
-
import "./chunk-BUTF5RJU.js";
|
|
67
|
-
import "./chunk-OEHQ546W.js";
|
|
68
|
-
import {
|
|
69
|
-
NodeHttpHandler,
|
|
70
|
-
fromBase64,
|
|
71
|
-
streamCollector,
|
|
72
|
-
toBase64
|
|
73
|
-
} from "./chunk-EYG2DL3D.js";
|
|
74
|
-
import "./chunk-KLXK4V6G.js";
|
|
75
|
-
import {
|
|
76
|
-
fromUtf8,
|
|
77
|
-
toUtf8
|
|
78
|
-
} from "./chunk-KJX5LOMN.js";
|
|
79
|
-
import "./chunk-RPNCWADG.js";
|
|
80
|
-
import "./chunk-A5TI2FW3.js";
|
|
81
|
-
import "./chunk-5XIRNUBL.js";
|
|
82
|
-
import {
|
|
83
|
-
__publicField,
|
|
84
|
-
__spreadProps,
|
|
85
|
-
__spreadValues
|
|
86
|
-
} from "./chunk-MIXAYX55.js";
|
|
87
|
-
|
|
88
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
|
|
89
|
-
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
90
|
-
return {
|
|
91
|
-
operation: getSmithyContext(context).operation,
|
|
92
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
93
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
94
|
-
})()
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
98
|
-
return {
|
|
99
|
-
schemeId: "aws.auth#sigv4",
|
|
100
|
-
signingProperties: {
|
|
101
|
-
name: "awsssoportal",
|
|
102
|
-
region: authParameters.region
|
|
103
|
-
},
|
|
104
|
-
propertiesExtractor: (config, context) => ({
|
|
105
|
-
signingProperties: {
|
|
106
|
-
config,
|
|
107
|
-
context
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
113
|
-
return {
|
|
114
|
-
schemeId: "smithy.api#noAuth"
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
118
|
-
const options = [];
|
|
119
|
-
switch (authParameters.operation) {
|
|
120
|
-
case "GetRoleCredentials": {
|
|
121
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
default: {
|
|
125
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return options;
|
|
129
|
-
};
|
|
130
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
131
|
-
var _a;
|
|
132
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
133
|
-
return Object.assign(config_0, {
|
|
134
|
-
authSchemePreference: normalizeProvider((_a = config.authSchemePreference) != null ? _a : [])
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
|
|
139
|
-
var resolveClientEndpointParameters = (options) => {
|
|
140
|
-
var _a, _b;
|
|
141
|
-
return Object.assign(options, {
|
|
142
|
-
useDualstackEndpoint: (_a = options.useDualstackEndpoint) != null ? _a : false,
|
|
143
|
-
useFipsEndpoint: (_b = options.useFipsEndpoint) != null ? _b : false,
|
|
144
|
-
defaultSigningName: "awsssoportal"
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
var commonParams = {
|
|
148
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
149
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
150
|
-
Region: { type: "builtInParams", name: "region" },
|
|
151
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js
|
|
155
|
-
var u = "required";
|
|
156
|
-
var v = "fn";
|
|
157
|
-
var w = "argv";
|
|
158
|
-
var x = "ref";
|
|
159
|
-
var a = true;
|
|
160
|
-
var b = "isSet";
|
|
161
|
-
var c = "booleanEquals";
|
|
162
|
-
var d = "error";
|
|
163
|
-
var e = "endpoint";
|
|
164
|
-
var f = "tree";
|
|
165
|
-
var g = "PartitionResult";
|
|
166
|
-
var h = "getAttr";
|
|
167
|
-
var i = { [u]: false, type: "string" };
|
|
168
|
-
var j = { [u]: true, default: false, type: "boolean" };
|
|
169
|
-
var k = { [x]: "Endpoint" };
|
|
170
|
-
var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
|
|
171
|
-
var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
|
|
172
|
-
var n = {};
|
|
173
|
-
var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
|
|
174
|
-
var p = { [x]: g };
|
|
175
|
-
var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
|
|
176
|
-
var r = [l];
|
|
177
|
-
var s = [m];
|
|
178
|
-
var t = [{ [x]: "Region" }];
|
|
179
|
-
var _data = {
|
|
180
|
-
version: "1.0",
|
|
181
|
-
parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
|
|
182
|
-
rules: [
|
|
183
|
-
{
|
|
184
|
-
conditions: [{ [v]: b, [w]: [k] }],
|
|
185
|
-
rules: [
|
|
186
|
-
{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
187
|
-
{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
|
188
|
-
{ endpoint: { url: k, properties: n, headers: n }, type: e }
|
|
189
|
-
],
|
|
190
|
-
type: f
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
conditions: [{ [v]: b, [w]: t }],
|
|
194
|
-
rules: [
|
|
195
|
-
{
|
|
196
|
-
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
197
|
-
rules: [
|
|
198
|
-
{
|
|
199
|
-
conditions: [l, m],
|
|
200
|
-
rules: [
|
|
201
|
-
{
|
|
202
|
-
conditions: [{ [v]: c, [w]: [a, o] }, q],
|
|
203
|
-
rules: [
|
|
204
|
-
{
|
|
205
|
-
endpoint: {
|
|
206
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
207
|
-
properties: n,
|
|
208
|
-
headers: n
|
|
209
|
-
},
|
|
210
|
-
type: e
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
type: f
|
|
214
|
-
},
|
|
215
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }
|
|
216
|
-
],
|
|
217
|
-
type: f
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
conditions: r,
|
|
221
|
-
rules: [
|
|
222
|
-
{
|
|
223
|
-
conditions: [{ [v]: c, [w]: [o, a] }],
|
|
224
|
-
rules: [
|
|
225
|
-
{
|
|
226
|
-
conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
|
|
227
|
-
endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
|
|
228
|
-
type: e
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
endpoint: {
|
|
232
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
233
|
-
properties: n,
|
|
234
|
-
headers: n
|
|
235
|
-
},
|
|
236
|
-
type: e
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
type: f
|
|
240
|
-
},
|
|
241
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d }
|
|
242
|
-
],
|
|
243
|
-
type: f
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
conditions: s,
|
|
247
|
-
rules: [
|
|
248
|
-
{
|
|
249
|
-
conditions: [q],
|
|
250
|
-
rules: [
|
|
251
|
-
{
|
|
252
|
-
endpoint: {
|
|
253
|
-
url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
254
|
-
properties: n,
|
|
255
|
-
headers: n
|
|
256
|
-
},
|
|
257
|
-
type: e
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
type: f
|
|
261
|
-
},
|
|
262
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d }
|
|
263
|
-
],
|
|
264
|
-
type: f
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
268
|
-
type: e
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
type: f
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
type: f
|
|
275
|
-
},
|
|
276
|
-
{ error: "Invalid Configuration: Missing Region", type: d }
|
|
277
|
-
]
|
|
278
|
-
};
|
|
279
|
-
var ruleSet = _data;
|
|
280
|
-
|
|
281
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
|
|
282
|
-
var cache = new EndpointCache({
|
|
283
|
-
size: 50,
|
|
284
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
285
|
-
});
|
|
286
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
287
|
-
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
288
|
-
endpointParams,
|
|
289
|
-
logger: context.logger
|
|
290
|
-
}));
|
|
291
|
-
};
|
|
292
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
293
|
-
|
|
294
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
|
|
295
|
-
var SSOServiceException = class _SSOServiceException extends ServiceException {
|
|
296
|
-
constructor(options) {
|
|
297
|
-
super(options);
|
|
298
|
-
Object.setPrototypeOf(this, _SSOServiceException.prototype);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
|
|
303
|
-
var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
|
|
304
|
-
constructor(opts) {
|
|
305
|
-
super(__spreadValues({
|
|
306
|
-
name: "InvalidRequestException",
|
|
307
|
-
$fault: "client"
|
|
308
|
-
}, opts));
|
|
309
|
-
__publicField(this, "name", "InvalidRequestException");
|
|
310
|
-
__publicField(this, "$fault", "client");
|
|
311
|
-
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
|
|
315
|
-
constructor(opts) {
|
|
316
|
-
super(__spreadValues({
|
|
317
|
-
name: "ResourceNotFoundException",
|
|
318
|
-
$fault: "client"
|
|
319
|
-
}, opts));
|
|
320
|
-
__publicField(this, "name", "ResourceNotFoundException");
|
|
321
|
-
__publicField(this, "$fault", "client");
|
|
322
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
|
|
326
|
-
constructor(opts) {
|
|
327
|
-
super(__spreadValues({
|
|
328
|
-
name: "TooManyRequestsException",
|
|
329
|
-
$fault: "client"
|
|
330
|
-
}, opts));
|
|
331
|
-
__publicField(this, "name", "TooManyRequestsException");
|
|
332
|
-
__publicField(this, "$fault", "client");
|
|
333
|
-
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
|
|
337
|
-
constructor(opts) {
|
|
338
|
-
super(__spreadValues({
|
|
339
|
-
name: "UnauthorizedException",
|
|
340
|
-
$fault: "client"
|
|
341
|
-
}, opts));
|
|
342
|
-
__publicField(this, "name", "UnauthorizedException");
|
|
343
|
-
__publicField(this, "$fault", "client");
|
|
344
|
-
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
|
|
349
|
-
var _ATT = "AccessTokenType";
|
|
350
|
-
var _GRC = "GetRoleCredentials";
|
|
351
|
-
var _GRCR = "GetRoleCredentialsRequest";
|
|
352
|
-
var _GRCRe = "GetRoleCredentialsResponse";
|
|
353
|
-
var _IRE = "InvalidRequestException";
|
|
354
|
-
var _RC = "RoleCredentials";
|
|
355
|
-
var _RNFE = "ResourceNotFoundException";
|
|
356
|
-
var _SAKT = "SecretAccessKeyType";
|
|
357
|
-
var _STT = "SessionTokenType";
|
|
358
|
-
var _TMRE = "TooManyRequestsException";
|
|
359
|
-
var _UE = "UnauthorizedException";
|
|
360
|
-
var _aI = "accountId";
|
|
361
|
-
var _aKI = "accessKeyId";
|
|
362
|
-
var _aT = "accessToken";
|
|
363
|
-
var _ai = "account_id";
|
|
364
|
-
var _c = "client";
|
|
365
|
-
var _e = "error";
|
|
366
|
-
var _ex = "expiration";
|
|
367
|
-
var _h = "http";
|
|
368
|
-
var _hE = "httpError";
|
|
369
|
-
var _hH = "httpHeader";
|
|
370
|
-
var _hQ = "httpQuery";
|
|
371
|
-
var _m = "message";
|
|
372
|
-
var _rC = "roleCredentials";
|
|
373
|
-
var _rN = "roleName";
|
|
374
|
-
var _rn = "role_name";
|
|
375
|
-
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
376
|
-
var _sAK = "secretAccessKey";
|
|
377
|
-
var _sT = "sessionToken";
|
|
378
|
-
var _xasbt = "x-amz-sso_bearer_token";
|
|
379
|
-
var n0 = "com.amazonaws.sso";
|
|
380
|
-
var _s_registry = TypeRegistry.for(_s);
|
|
381
|
-
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
382
|
-
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
383
|
-
var n0_registry = TypeRegistry.for(n0);
|
|
384
|
-
var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
385
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
386
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
387
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
388
|
-
var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
389
|
-
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
390
|
-
var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
|
|
391
|
-
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
392
|
-
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
393
|
-
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
394
|
-
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
395
|
-
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
396
|
-
var GetRoleCredentialsRequest$ = [
|
|
397
|
-
3,
|
|
398
|
-
n0,
|
|
399
|
-
_GRCR,
|
|
400
|
-
0,
|
|
401
|
-
[_rN, _aI, _aT],
|
|
402
|
-
[
|
|
403
|
-
[0, { [_hQ]: _rn }],
|
|
404
|
-
[0, { [_hQ]: _ai }],
|
|
405
|
-
[() => AccessTokenType, { [_hH]: _xasbt }]
|
|
406
|
-
],
|
|
407
|
-
3
|
|
408
|
-
];
|
|
409
|
-
var GetRoleCredentialsResponse$ = [
|
|
410
|
-
3,
|
|
411
|
-
n0,
|
|
412
|
-
_GRCRe,
|
|
413
|
-
0,
|
|
414
|
-
[_rC],
|
|
415
|
-
[[() => RoleCredentials$, 0]]
|
|
416
|
-
];
|
|
417
|
-
var RoleCredentials$ = [
|
|
418
|
-
3,
|
|
419
|
-
n0,
|
|
420
|
-
_RC,
|
|
421
|
-
0,
|
|
422
|
-
[_aKI, _sAK, _sT, _ex],
|
|
423
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
424
|
-
];
|
|
425
|
-
var GetRoleCredentials$ = [
|
|
426
|
-
9,
|
|
427
|
-
n0,
|
|
428
|
-
_GRC,
|
|
429
|
-
{ [_h]: ["GET", "/federation/credentials", 200] },
|
|
430
|
-
() => GetRoleCredentialsRequest$,
|
|
431
|
-
() => GetRoleCredentialsResponse$
|
|
432
|
-
];
|
|
433
|
-
|
|
434
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
|
|
435
|
-
var getRuntimeConfig = (config) => {
|
|
436
|
-
var _a, _b, _c2, _d, _e2, _f, _g, _h2, _i, _j, _k, _l, _m2, _n;
|
|
437
|
-
return {
|
|
438
|
-
apiVersion: "2019-06-10",
|
|
439
|
-
base64Decoder: (_a = config == null ? void 0 : config.base64Decoder) != null ? _a : fromBase64,
|
|
440
|
-
base64Encoder: (_b = config == null ? void 0 : config.base64Encoder) != null ? _b : toBase64,
|
|
441
|
-
disableHostPrefix: (_c2 = config == null ? void 0 : config.disableHostPrefix) != null ? _c2 : false,
|
|
442
|
-
endpointProvider: (_d = config == null ? void 0 : config.endpointProvider) != null ? _d : defaultEndpointResolver,
|
|
443
|
-
extensions: (_e2 = config == null ? void 0 : config.extensions) != null ? _e2 : [],
|
|
444
|
-
httpAuthSchemeProvider: (_f = config == null ? void 0 : config.httpAuthSchemeProvider) != null ? _f : defaultSSOHttpAuthSchemeProvider,
|
|
445
|
-
httpAuthSchemes: (_g = config == null ? void 0 : config.httpAuthSchemes) != null ? _g : [
|
|
446
|
-
{
|
|
447
|
-
schemeId: "aws.auth#sigv4",
|
|
448
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
449
|
-
signer: new AwsSdkSigV4Signer()
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
schemeId: "smithy.api#noAuth",
|
|
453
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
454
|
-
signer: new NoAuthSigner()
|
|
455
|
-
}
|
|
456
|
-
],
|
|
457
|
-
logger: (_h2 = config == null ? void 0 : config.logger) != null ? _h2 : new NoOpLogger(),
|
|
458
|
-
protocol: (_i = config == null ? void 0 : config.protocol) != null ? _i : AwsRestJsonProtocol,
|
|
459
|
-
protocolSettings: (_j = config == null ? void 0 : config.protocolSettings) != null ? _j : {
|
|
460
|
-
defaultNamespace: "com.amazonaws.sso",
|
|
461
|
-
errorTypeRegistries,
|
|
462
|
-
version: "2019-06-10",
|
|
463
|
-
serviceTarget: "SWBPortalService"
|
|
464
|
-
},
|
|
465
|
-
serviceId: (_k = config == null ? void 0 : config.serviceId) != null ? _k : "SSO",
|
|
466
|
-
urlParser: (_l = config == null ? void 0 : config.urlParser) != null ? _l : parseUrl,
|
|
467
|
-
utf8Decoder: (_m2 = config == null ? void 0 : config.utf8Decoder) != null ? _m2 : fromUtf8,
|
|
468
|
-
utf8Encoder: (_n = config == null ? void 0 : config.utf8Encoder) != null ? _n : toUtf8
|
|
469
|
-
};
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
|
|
473
|
-
var getRuntimeConfig2 = (config) => {
|
|
474
|
-
var _a, _b, _c2, _d, _e2, _f, _g, _h2, _i, _j, _k, _l;
|
|
475
|
-
emitWarningIfUnsupportedVersion2(process.version);
|
|
476
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
477
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
478
|
-
const clientSharedValues = getRuntimeConfig(config);
|
|
479
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
480
|
-
const loaderConfig = {
|
|
481
|
-
profile: config == null ? void 0 : config.profile,
|
|
482
|
-
logger: clientSharedValues.logger
|
|
483
|
-
};
|
|
484
|
-
return __spreadProps(__spreadValues(__spreadValues({}, clientSharedValues), config), {
|
|
485
|
-
runtime: "node",
|
|
486
|
-
defaultsMode,
|
|
487
|
-
authSchemePreference: (_a = config == null ? void 0 : config.authSchemePreference) != null ? _a : loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
488
|
-
bodyLengthChecker: (_b = config == null ? void 0 : config.bodyLengthChecker) != null ? _b : calculateBodyLength,
|
|
489
|
-
defaultUserAgentProvider: (_c2 = config == null ? void 0 : config.defaultUserAgentProvider) != null ? _c2 : createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
490
|
-
maxAttempts: (_d = config == null ? void 0 : config.maxAttempts) != null ? _d : loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
491
|
-
region: (_e2 = config == null ? void 0 : config.region) != null ? _e2 : loadConfig(NODE_REGION_CONFIG_OPTIONS, __spreadValues(__spreadValues({}, NODE_REGION_CONFIG_FILE_OPTIONS), loaderConfig)),
|
|
492
|
-
requestHandler: NodeHttpHandler.create((_f = config == null ? void 0 : config.requestHandler) != null ? _f : defaultConfigProvider),
|
|
493
|
-
retryMode: (_g = config == null ? void 0 : config.retryMode) != null ? _g : loadConfig(__spreadProps(__spreadValues({}, NODE_RETRY_MODE_CONFIG_OPTIONS), {
|
|
494
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
495
|
-
}), config),
|
|
496
|
-
sha256: (_h2 = config == null ? void 0 : config.sha256) != null ? _h2 : Hash.bind(null, "sha256"),
|
|
497
|
-
streamCollector: (_i = config == null ? void 0 : config.streamCollector) != null ? _i : streamCollector,
|
|
498
|
-
useDualstackEndpoint: (_j = config == null ? void 0 : config.useDualstackEndpoint) != null ? _j : loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
499
|
-
useFipsEndpoint: (_k = config == null ? void 0 : config.useFipsEndpoint) != null ? _k : loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
500
|
-
userAgentAppId: (_l = config == null ? void 0 : config.userAgentAppId) != null ? _l : loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
501
|
-
});
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
|
|
505
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
506
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
507
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
508
|
-
let _credentials = runtimeConfig.credentials;
|
|
509
|
-
return {
|
|
510
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
511
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
512
|
-
if (index === -1) {
|
|
513
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
514
|
-
} else {
|
|
515
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
httpAuthSchemes() {
|
|
519
|
-
return _httpAuthSchemes;
|
|
520
|
-
},
|
|
521
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
522
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
523
|
-
},
|
|
524
|
-
httpAuthSchemeProvider() {
|
|
525
|
-
return _httpAuthSchemeProvider;
|
|
526
|
-
},
|
|
527
|
-
setCredentials(credentials) {
|
|
528
|
-
_credentials = credentials;
|
|
529
|
-
},
|
|
530
|
-
credentials() {
|
|
531
|
-
return _credentials;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
};
|
|
535
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
536
|
-
return {
|
|
537
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
538
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
539
|
-
credentials: config.credentials()
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
|
|
544
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
545
|
-
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
546
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
547
|
-
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
|
|
551
|
-
var SSOClient = class extends Client {
|
|
552
|
-
constructor(...[configuration]) {
|
|
553
|
-
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
554
|
-
super(_config_0);
|
|
555
|
-
__publicField(this, "config");
|
|
556
|
-
this.initConfig = _config_0;
|
|
557
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
558
|
-
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
559
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
560
|
-
const _config_4 = resolveRegionConfig(_config_3);
|
|
561
|
-
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
562
|
-
const _config_6 = resolveEndpointConfig(_config_5);
|
|
563
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
564
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
565
|
-
this.config = _config_8;
|
|
566
|
-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
567
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
568
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
569
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
570
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
571
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
572
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
573
|
-
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
574
|
-
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
575
|
-
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
576
|
-
"aws.auth#sigv4": config.credentials
|
|
577
|
-
})
|
|
578
|
-
}));
|
|
579
|
-
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
580
|
-
}
|
|
581
|
-
destroy() {
|
|
582
|
-
super.destroy();
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
|
|
587
|
-
var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
588
|
-
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
589
|
-
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
|
|
590
|
-
};
|
|
591
|
-
export {
|
|
592
|
-
GetRoleCredentialsCommand,
|
|
593
|
-
SSOClient
|
|
594
|
-
};
|
|
595
|
-
//# sourceMappingURL=loadSso-WMS367NT.js.map
|