@aws-sdk/client-sso 3.1075.0 → 3.1076.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.
- package/dist-cjs/index.js +448 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -69
- package/dist-cjs/endpoint/bdd.js +0 -49
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/SSOServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -49
- package/dist-cjs/runtimeConfig.browser.js +0 -31
- package/dist-cjs/runtimeConfig.js +0 -43
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -44
- package/dist-cjs/schemas/schemas_0.js +0 -173
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
const {
|
|
3
|
-
const {
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
|
+
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
15
|
+
|
|
16
|
+
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
|
+
return {
|
|
18
|
+
operation: getSmithyContext(context).operation,
|
|
19
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
20
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
21
|
+
})(),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
25
|
+
return {
|
|
26
|
+
schemeId: "aws.auth#sigv4",
|
|
27
|
+
signingProperties: {
|
|
28
|
+
name: "awsssoportal",
|
|
29
|
+
region: authParameters.region,
|
|
30
|
+
},
|
|
31
|
+
propertiesExtractor: (config, context) => ({
|
|
32
|
+
signingProperties: {
|
|
33
|
+
config,
|
|
34
|
+
context,
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
40
|
+
return {
|
|
41
|
+
schemeId: "smithy.api#noAuth",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
45
|
+
const options = [];
|
|
46
|
+
switch (authParameters.operation) {
|
|
47
|
+
case "GetRoleCredentials":
|
|
48
|
+
{
|
|
49
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
case "ListAccountRoles":
|
|
53
|
+
{
|
|
54
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case "ListAccounts":
|
|
58
|
+
{
|
|
59
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case "Logout":
|
|
63
|
+
{
|
|
64
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
default: {
|
|
68
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return options;
|
|
72
|
+
};
|
|
73
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
74
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
75
|
+
return Object.assign(config_0, {
|
|
76
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
77
|
+
});
|
|
78
|
+
};
|
|
19
79
|
|
|
20
80
|
const resolveClientEndpointParameters = (options) => {
|
|
21
81
|
return Object.assign(options, {
|
|
@@ -31,6 +91,353 @@ const commonParams = {
|
|
|
31
91
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
92
|
};
|
|
33
93
|
|
|
94
|
+
var version = "3.1075.0";
|
|
95
|
+
var packageInfo = {
|
|
96
|
+
version: version};
|
|
97
|
+
|
|
98
|
+
const k = "ref";
|
|
99
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
100
|
+
const _data = {
|
|
101
|
+
conditions: [
|
|
102
|
+
[c, [g]],
|
|
103
|
+
[c, j],
|
|
104
|
+
["aws.partition", j, d],
|
|
105
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
106
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
107
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
108
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
109
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
110
|
+
],
|
|
111
|
+
results: [
|
|
112
|
+
[a],
|
|
113
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
114
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
115
|
+
[g, i],
|
|
116
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
117
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
118
|
+
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
119
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
120
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
121
|
+
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
122
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
123
|
+
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
124
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
const root = 2;
|
|
128
|
+
const r = 100_000_000;
|
|
129
|
+
const nodes = new Int32Array([
|
|
130
|
+
-1, 1, -1,
|
|
131
|
+
0, 13, 3,
|
|
132
|
+
1, 4, r + 12,
|
|
133
|
+
2, 5, r + 12,
|
|
134
|
+
3, 8, 6,
|
|
135
|
+
4, 7, r + 11,
|
|
136
|
+
5, r + 9, r + 10,
|
|
137
|
+
4, 11, 9,
|
|
138
|
+
6, 10, r + 8,
|
|
139
|
+
7, r + 6, r + 7,
|
|
140
|
+
5, 12, r + 5,
|
|
141
|
+
6, r + 4, r + 5,
|
|
142
|
+
3, r + 1, 14,
|
|
143
|
+
4, r + 2, r + 3,
|
|
144
|
+
]);
|
|
145
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
146
|
+
|
|
147
|
+
const cache = new EndpointCache({
|
|
148
|
+
size: 50,
|
|
149
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
150
|
+
});
|
|
151
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
152
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
153
|
+
endpointParams: endpointParams,
|
|
154
|
+
logger: context.logger,
|
|
155
|
+
}));
|
|
156
|
+
};
|
|
157
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
158
|
+
|
|
159
|
+
class SSOServiceException extends ServiceException {
|
|
160
|
+
constructor(options) {
|
|
161
|
+
super(options);
|
|
162
|
+
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
class InvalidRequestException extends SSOServiceException {
|
|
167
|
+
name = "InvalidRequestException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "InvalidRequestException",
|
|
172
|
+
$fault: "client",
|
|
173
|
+
...opts,
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
class ResourceNotFoundException extends SSOServiceException {
|
|
179
|
+
name = "ResourceNotFoundException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ResourceNotFoundException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
class TooManyRequestsException extends SSOServiceException {
|
|
191
|
+
name = "TooManyRequestsException";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "TooManyRequestsException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
class UnauthorizedException extends SSOServiceException {
|
|
203
|
+
name = "UnauthorizedException";
|
|
204
|
+
$fault = "client";
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "UnauthorizedException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const _AI = "AccountInfo";
|
|
216
|
+
const _ALT = "AccountListType";
|
|
217
|
+
const _ATT = "AccessTokenType";
|
|
218
|
+
const _GRC = "GetRoleCredentials";
|
|
219
|
+
const _GRCR = "GetRoleCredentialsRequest";
|
|
220
|
+
const _GRCRe = "GetRoleCredentialsResponse";
|
|
221
|
+
const _IRE = "InvalidRequestException";
|
|
222
|
+
const _L = "Logout";
|
|
223
|
+
const _LA = "ListAccounts";
|
|
224
|
+
const _LAR = "ListAccountsRequest";
|
|
225
|
+
const _LARR = "ListAccountRolesRequest";
|
|
226
|
+
const _LARRi = "ListAccountRolesResponse";
|
|
227
|
+
const _LARi = "ListAccountsResponse";
|
|
228
|
+
const _LARis = "ListAccountRoles";
|
|
229
|
+
const _LR = "LogoutRequest";
|
|
230
|
+
const _RC = "RoleCredentials";
|
|
231
|
+
const _RI = "RoleInfo";
|
|
232
|
+
const _RLT = "RoleListType";
|
|
233
|
+
const _RNFE = "ResourceNotFoundException";
|
|
234
|
+
const _SAKT = "SecretAccessKeyType";
|
|
235
|
+
const _STT = "SessionTokenType";
|
|
236
|
+
const _TMRE = "TooManyRequestsException";
|
|
237
|
+
const _UE = "UnauthorizedException";
|
|
238
|
+
const _aI = "accountId";
|
|
239
|
+
const _aKI = "accessKeyId";
|
|
240
|
+
const _aL = "accountList";
|
|
241
|
+
const _aN = "accountName";
|
|
242
|
+
const _aT = "accessToken";
|
|
243
|
+
const _ai = "account_id";
|
|
244
|
+
const _c = "client";
|
|
245
|
+
const _e = "error";
|
|
246
|
+
const _eA = "emailAddress";
|
|
247
|
+
const _ex = "expiration";
|
|
248
|
+
const _h = "http";
|
|
249
|
+
const _hE = "httpError";
|
|
250
|
+
const _hH = "httpHeader";
|
|
251
|
+
const _hQ = "httpQuery";
|
|
252
|
+
const _m = "message";
|
|
253
|
+
const _mR = "maxResults";
|
|
254
|
+
const _mr = "max_result";
|
|
255
|
+
const _nT = "nextToken";
|
|
256
|
+
const _nt = "next_token";
|
|
257
|
+
const _rC = "roleCredentials";
|
|
258
|
+
const _rL = "roleList";
|
|
259
|
+
const _rN = "roleName";
|
|
260
|
+
const _rn = "role_name";
|
|
261
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
262
|
+
const _sAK = "secretAccessKey";
|
|
263
|
+
const _sT = "sessionToken";
|
|
264
|
+
const _xasbt = "x-amz-sso_bearer_token";
|
|
265
|
+
const n0 = "com.amazonaws.sso";
|
|
266
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
267
|
+
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
268
|
+
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
269
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
270
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
271
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
272
|
+
[_m],
|
|
273
|
+
[0]
|
|
274
|
+
];
|
|
275
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
276
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
277
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
278
|
+
[_m],
|
|
279
|
+
[0]
|
|
280
|
+
];
|
|
281
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
282
|
+
var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
283
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
284
|
+
[_m],
|
|
285
|
+
[0]
|
|
286
|
+
];
|
|
287
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
288
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
289
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
290
|
+
[_m],
|
|
291
|
+
[0]
|
|
292
|
+
];
|
|
293
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
294
|
+
const errorTypeRegistries = [
|
|
295
|
+
_s_registry,
|
|
296
|
+
n0_registry,
|
|
297
|
+
];
|
|
298
|
+
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
299
|
+
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
300
|
+
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
301
|
+
var AccountInfo$ = [3, n0, _AI,
|
|
302
|
+
0,
|
|
303
|
+
[_aI, _aN, _eA],
|
|
304
|
+
[0, 0, 0]
|
|
305
|
+
];
|
|
306
|
+
var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
307
|
+
0,
|
|
308
|
+
[_rN, _aI, _aT],
|
|
309
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
310
|
+
];
|
|
311
|
+
var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
312
|
+
0,
|
|
313
|
+
[_rC],
|
|
314
|
+
[[() => RoleCredentials$, 0]]
|
|
315
|
+
];
|
|
316
|
+
var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
317
|
+
0,
|
|
318
|
+
[_aT, _aI, _nT, _mR],
|
|
319
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
320
|
+
];
|
|
321
|
+
var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
322
|
+
0,
|
|
323
|
+
[_nT, _rL],
|
|
324
|
+
[0, () => RoleListType]
|
|
325
|
+
];
|
|
326
|
+
var ListAccountsRequest$ = [3, n0, _LAR,
|
|
327
|
+
0,
|
|
328
|
+
[_aT, _nT, _mR],
|
|
329
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
330
|
+
];
|
|
331
|
+
var ListAccountsResponse$ = [3, n0, _LARi,
|
|
332
|
+
0,
|
|
333
|
+
[_nT, _aL],
|
|
334
|
+
[0, () => AccountListType]
|
|
335
|
+
];
|
|
336
|
+
var LogoutRequest$ = [3, n0, _LR,
|
|
337
|
+
0,
|
|
338
|
+
[_aT],
|
|
339
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
340
|
+
];
|
|
341
|
+
var RoleCredentials$ = [3, n0, _RC,
|
|
342
|
+
0,
|
|
343
|
+
[_aKI, _sAK, _sT, _ex],
|
|
344
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
345
|
+
];
|
|
346
|
+
var RoleInfo$ = [3, n0, _RI,
|
|
347
|
+
0,
|
|
348
|
+
[_rN, _aI],
|
|
349
|
+
[0, 0]
|
|
350
|
+
];
|
|
351
|
+
var __Unit = "unit";
|
|
352
|
+
var AccountListType = [1, n0, _ALT,
|
|
353
|
+
0, () => AccountInfo$
|
|
354
|
+
];
|
|
355
|
+
var RoleListType = [1, n0, _RLT,
|
|
356
|
+
0, () => RoleInfo$
|
|
357
|
+
];
|
|
358
|
+
var GetRoleCredentials$ = [9, n0, _GRC,
|
|
359
|
+
{ [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
360
|
+
];
|
|
361
|
+
var ListAccountRoles$ = [9, n0, _LARis,
|
|
362
|
+
{ [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
|
|
363
|
+
];
|
|
364
|
+
var ListAccounts$ = [9, n0, _LA,
|
|
365
|
+
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
|
|
366
|
+
];
|
|
367
|
+
var Logout$ = [9, n0, _L,
|
|
368
|
+
{ [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
|
|
369
|
+
];
|
|
370
|
+
|
|
371
|
+
const getRuntimeConfig$1 = (config) => {
|
|
372
|
+
return {
|
|
373
|
+
apiVersion: "2019-06-10",
|
|
374
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
375
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
376
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
377
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
378
|
+
extensions: config?.extensions ?? [],
|
|
379
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
380
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
381
|
+
{
|
|
382
|
+
schemeId: "aws.auth#sigv4",
|
|
383
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
384
|
+
signer: new AwsSdkSigV4Signer(),
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
schemeId: "smithy.api#noAuth",
|
|
388
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
389
|
+
signer: new NoAuthSigner(),
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
393
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
394
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
395
|
+
defaultNamespace: "com.amazonaws.sso",
|
|
396
|
+
errorTypeRegistries,
|
|
397
|
+
version: "2019-06-10",
|
|
398
|
+
serviceTarget: "SWBPortalService",
|
|
399
|
+
},
|
|
400
|
+
serviceId: config?.serviceId ?? "SSO",
|
|
401
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
402
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
403
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
const getRuntimeConfig = (config) => {
|
|
408
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
409
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
410
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
411
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
412
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
413
|
+
const loaderConfig = {
|
|
414
|
+
profile: config?.profile,
|
|
415
|
+
logger: clientSharedValues.logger,
|
|
416
|
+
};
|
|
417
|
+
return {
|
|
418
|
+
...clientSharedValues,
|
|
419
|
+
...config,
|
|
420
|
+
runtime: "node",
|
|
421
|
+
defaultsMode,
|
|
422
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
423
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
424
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
425
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
426
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
427
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
428
|
+
retryMode: config?.retryMode ??
|
|
429
|
+
loadConfig({
|
|
430
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
431
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
432
|
+
}, config),
|
|
433
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
434
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
435
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
436
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
437
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
|
|
34
441
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
442
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
443
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -177,11 +584,36 @@ class SSO extends SSOClient {
|
|
|
177
584
|
}
|
|
178
585
|
createAggregatedClient(commands, SSO, { paginators });
|
|
179
586
|
|
|
587
|
+
exports.AccountInfo$ = AccountInfo$;
|
|
588
|
+
exports.GetRoleCredentials$ = GetRoleCredentials$;
|
|
180
589
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
590
|
+
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
591
|
+
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
592
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
593
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
594
|
+
exports.ListAccountRoles$ = ListAccountRoles$;
|
|
181
595
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
596
|
+
exports.ListAccountRolesRequest$ = ListAccountRolesRequest$;
|
|
597
|
+
exports.ListAccountRolesResponse$ = ListAccountRolesResponse$;
|
|
598
|
+
exports.ListAccounts$ = ListAccounts$;
|
|
182
599
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
600
|
+
exports.ListAccountsRequest$ = ListAccountsRequest$;
|
|
601
|
+
exports.ListAccountsResponse$ = ListAccountsResponse$;
|
|
602
|
+
exports.Logout$ = Logout$;
|
|
183
603
|
exports.LogoutCommand = LogoutCommand;
|
|
604
|
+
exports.LogoutRequest$ = LogoutRequest$;
|
|
605
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
606
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
607
|
+
exports.RoleCredentials$ = RoleCredentials$;
|
|
608
|
+
exports.RoleInfo$ = RoleInfo$;
|
|
184
609
|
exports.SSO = SSO;
|
|
185
610
|
exports.SSOClient = SSOClient;
|
|
611
|
+
exports.SSOServiceException = SSOServiceException;
|
|
612
|
+
exports.SSOServiceException$ = SSOServiceException$;
|
|
613
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
614
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
615
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
616
|
+
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
617
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
186
618
|
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
187
619
|
exports.paginateListAccounts = paginateListAccounts;
|
|
@@ -13,7 +13,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
13
13
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
14
14
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
15
15
|
sha256: import("@smithy/types").HashConstructor;
|
|
16
|
-
streamCollector: import("
|
|
16
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
17
17
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
18
18
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
14
14
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
19
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -16,7 +16,13 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
16
16
|
| RequestHandler;
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
18
|
sha256: import("@smithy/types").HashConstructor;
|
|
19
|
-
streamCollector:
|
|
19
|
+
streamCollector: (
|
|
20
|
+
stream:
|
|
21
|
+
| import("stream").Readable
|
|
22
|
+
| import("stream/web").ReadableStream
|
|
23
|
+
| ReadableStream
|
|
24
|
+
| Blob
|
|
25
|
+
) => Promise<Uint8Array>;
|
|
20
26
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
21
27
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
28
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -17,7 +17,13 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
17
17
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
18
18
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
19
|
sha256: import("@smithy/types").HashConstructor;
|
|
20
|
-
streamCollector:
|
|
20
|
+
streamCollector: (
|
|
21
|
+
stream:
|
|
22
|
+
| import("stream").Readable
|
|
23
|
+
| import("stream/web").ReadableStream
|
|
24
|
+
| ReadableStream
|
|
25
|
+
| Blob
|
|
26
|
+
) => Promise<Uint8Array>;
|
|
21
27
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
28
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
29
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
27
27
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
28
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
-
"@aws-sdk/types": "^3.973.
|
|
30
|
-
"@smithy/core": "^3.
|
|
31
|
-
"@smithy/fetch-http-handler": "^5.
|
|
32
|
-
"@smithy/node-http-handler": "^4.
|
|
33
|
-
"@smithy/types": "^4.
|
|
28
|
+
"@aws-sdk/core": "^3.974.24",
|
|
29
|
+
"@aws-sdk/types": "^3.973.14",
|
|
30
|
+
"@smithy/core": "^3.27.0",
|
|
31
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
32
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
33
|
+
"@smithy/types": "^4.15.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@smithy/snapshot-testing": "^2.
|
|
37
|
+
"@smithy/snapshot-testing": "^2.2.3",
|
|
38
38
|
"@tsconfig/node20": "20.1.8",
|
|
39
39
|
"@types/node": "^20.14.8",
|
|
40
40
|
"concurrently": "7.0.0",
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "awsssoportal",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
27
|
-
return {
|
|
28
|
-
schemeId: "smithy.api#noAuth",
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
exports.defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
-
const options = [];
|
|
33
|
-
switch (authParameters.operation) {
|
|
34
|
-
case "GetRoleCredentials":
|
|
35
|
-
{
|
|
36
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
;
|
|
40
|
-
case "ListAccountRoles":
|
|
41
|
-
{
|
|
42
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
;
|
|
46
|
-
case "ListAccounts":
|
|
47
|
-
{
|
|
48
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
;
|
|
52
|
-
case "Logout":
|
|
53
|
-
{
|
|
54
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
;
|
|
58
|
-
default: {
|
|
59
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return options;
|
|
63
|
-
};
|
|
64
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
65
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
66
|
-
return Object.assign(config_0, {
|
|
67
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
68
|
-
});
|
|
69
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const k = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [g]],
|
|
7
|
-
[c, j],
|
|
8
|
-
["aws.partition", j, d],
|
|
9
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
13
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
|
|
14
|
-
],
|
|
15
|
-
results: [
|
|
16
|
-
[a],
|
|
17
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
18
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
19
|
-
[g, i],
|
|
20
|
-
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
21
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
22
|
-
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
23
|
-
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
24
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
25
|
-
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
26
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
27
|
-
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
28
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
const root = 2;
|
|
32
|
-
const r = 100_000_000;
|
|
33
|
-
const nodes = new Int32Array([
|
|
34
|
-
-1, 1, -1,
|
|
35
|
-
0, 13, 3,
|
|
36
|
-
1, 4, r + 12,
|
|
37
|
-
2, 5, r + 12,
|
|
38
|
-
3, 8, 6,
|
|
39
|
-
4, 7, r + 11,
|
|
40
|
-
5, r + 9, r + 10,
|
|
41
|
-
4, 11, 9,
|
|
42
|
-
6, 10, r + 8,
|
|
43
|
-
7, r + 6, r + 7,
|
|
44
|
-
5, 12, r + 5,
|
|
45
|
-
6, r + 4, r + 5,
|
|
46
|
-
3, r + 1, 14,
|
|
47
|
-
4, r + 2, r + 3,
|
|
48
|
-
]);
|
|
49
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.SSOServiceException = class SSOServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const { SSOServiceException: __BaseException } = require("./SSOServiceException");
|
|
2
|
-
exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
|
|
3
|
-
name = "InvalidRequestException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "InvalidRequestException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
15
|
-
name = "ResourceNotFoundException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ResourceNotFoundException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
|
|
27
|
-
name = "TooManyRequestsException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "TooManyRequestsException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.UnauthorizedException = class UnauthorizedException extends __BaseException {
|
|
39
|
-
name = "UnauthorizedException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "UnauthorizedException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
21
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
23
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
24
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
25
|
-
sha256: config?.sha256 ?? Sha256,
|
|
26
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
27
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
28
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
8
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
12
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
13
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
14
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
awsCheckVersion(process.version);
|
|
16
|
-
const loaderConfig = {
|
|
17
|
-
profile: config?.profile,
|
|
18
|
-
logger: clientSharedValues.logger,
|
|
19
|
-
};
|
|
20
|
-
return {
|
|
21
|
-
...clientSharedValues,
|
|
22
|
-
...config,
|
|
23
|
-
runtime: "node",
|
|
24
|
-
defaultsMode,
|
|
25
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
26
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
28
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
29
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
30
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
-
retryMode: config?.retryMode ??
|
|
32
|
-
loadNodeConfig({
|
|
33
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
35
|
-
}, config),
|
|
36
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
37
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
39
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
40
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoAuthSigner } = require("@smithy/core");
|
|
4
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
5
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
6
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
7
|
-
const { defaultSSOHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
8
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
9
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
10
|
-
exports.getRuntimeConfig = (config) => {
|
|
11
|
-
return {
|
|
12
|
-
apiVersion: "2019-06-10",
|
|
13
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
14
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
15
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
17
|
-
extensions: config?.extensions ?? [],
|
|
18
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
19
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
20
|
-
{
|
|
21
|
-
schemeId: "aws.auth#sigv4",
|
|
22
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
23
|
-
signer: new AwsSdkSigV4Signer(),
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
schemeId: "smithy.api#noAuth",
|
|
27
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
28
|
-
signer: new NoAuthSigner(),
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
33
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
34
|
-
defaultNamespace: "com.amazonaws.sso",
|
|
35
|
-
errorTypeRegistries,
|
|
36
|
-
version: "2019-06-10",
|
|
37
|
-
serviceTarget: "SWBPortalService",
|
|
38
|
-
},
|
|
39
|
-
serviceId: config?.serviceId ?? "SSO",
|
|
40
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
41
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
const _AI = "AccountInfo";
|
|
2
|
-
const _ALT = "AccountListType";
|
|
3
|
-
const _ATT = "AccessTokenType";
|
|
4
|
-
const _GRC = "GetRoleCredentials";
|
|
5
|
-
const _GRCR = "GetRoleCredentialsRequest";
|
|
6
|
-
const _GRCRe = "GetRoleCredentialsResponse";
|
|
7
|
-
const _IRE = "InvalidRequestException";
|
|
8
|
-
const _L = "Logout";
|
|
9
|
-
const _LA = "ListAccounts";
|
|
10
|
-
const _LAR = "ListAccountsRequest";
|
|
11
|
-
const _LARR = "ListAccountRolesRequest";
|
|
12
|
-
const _LARRi = "ListAccountRolesResponse";
|
|
13
|
-
const _LARi = "ListAccountsResponse";
|
|
14
|
-
const _LARis = "ListAccountRoles";
|
|
15
|
-
const _LR = "LogoutRequest";
|
|
16
|
-
const _RC = "RoleCredentials";
|
|
17
|
-
const _RI = "RoleInfo";
|
|
18
|
-
const _RLT = "RoleListType";
|
|
19
|
-
const _RNFE = "ResourceNotFoundException";
|
|
20
|
-
const _SAKT = "SecretAccessKeyType";
|
|
21
|
-
const _STT = "SessionTokenType";
|
|
22
|
-
const _TMRE = "TooManyRequestsException";
|
|
23
|
-
const _UE = "UnauthorizedException";
|
|
24
|
-
const _aI = "accountId";
|
|
25
|
-
const _aKI = "accessKeyId";
|
|
26
|
-
const _aL = "accountList";
|
|
27
|
-
const _aN = "accountName";
|
|
28
|
-
const _aT = "accessToken";
|
|
29
|
-
const _ai = "account_id";
|
|
30
|
-
const _c = "client";
|
|
31
|
-
const _e = "error";
|
|
32
|
-
const _eA = "emailAddress";
|
|
33
|
-
const _ex = "expiration";
|
|
34
|
-
const _h = "http";
|
|
35
|
-
const _hE = "httpError";
|
|
36
|
-
const _hH = "httpHeader";
|
|
37
|
-
const _hQ = "httpQuery";
|
|
38
|
-
const _m = "message";
|
|
39
|
-
const _mR = "maxResults";
|
|
40
|
-
const _mr = "max_result";
|
|
41
|
-
const _nT = "nextToken";
|
|
42
|
-
const _nt = "next_token";
|
|
43
|
-
const _rC = "roleCredentials";
|
|
44
|
-
const _rL = "roleList";
|
|
45
|
-
const _rN = "roleName";
|
|
46
|
-
const _rn = "role_name";
|
|
47
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
48
|
-
const _sAK = "secretAccessKey";
|
|
49
|
-
const _sT = "sessionToken";
|
|
50
|
-
const _xasbt = "x-amz-sso_bearer_token";
|
|
51
|
-
const n0 = "com.amazonaws.sso";
|
|
52
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
53
|
-
const { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException } = require("../models/errors");
|
|
54
|
-
const { SSOServiceException } = require("../models/SSOServiceException");
|
|
55
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
56
|
-
const SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
57
|
-
exports.SSOServiceException$ = SSOServiceException$;
|
|
58
|
-
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
59
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
60
|
-
const InvalidRequestException$ = [-3, n0, _IRE,
|
|
61
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
62
|
-
[_m],
|
|
63
|
-
[0]
|
|
64
|
-
];
|
|
65
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
66
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
67
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
68
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
69
|
-
[_m],
|
|
70
|
-
[0]
|
|
71
|
-
];
|
|
72
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
73
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
74
|
-
const TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
75
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
76
|
-
[_m],
|
|
77
|
-
[0]
|
|
78
|
-
];
|
|
79
|
-
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
80
|
-
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
81
|
-
const UnauthorizedException$ = [-3, n0, _UE,
|
|
82
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
83
|
-
[_m],
|
|
84
|
-
[0]
|
|
85
|
-
];
|
|
86
|
-
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
87
|
-
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
88
|
-
exports.errorTypeRegistries = [
|
|
89
|
-
_s_registry,
|
|
90
|
-
n0_registry,
|
|
91
|
-
];
|
|
92
|
-
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
93
|
-
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
94
|
-
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
95
|
-
const AccountInfo$ = [3, n0, _AI,
|
|
96
|
-
0,
|
|
97
|
-
[_aI, _aN, _eA],
|
|
98
|
-
[0, 0, 0]
|
|
99
|
-
];
|
|
100
|
-
exports.AccountInfo$ = AccountInfo$;
|
|
101
|
-
const GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
102
|
-
0,
|
|
103
|
-
[_rN, _aI, _aT],
|
|
104
|
-
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
105
|
-
];
|
|
106
|
-
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
107
|
-
const GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
108
|
-
0,
|
|
109
|
-
[_rC],
|
|
110
|
-
[[() => RoleCredentials$, 0]]
|
|
111
|
-
];
|
|
112
|
-
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
113
|
-
const ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
114
|
-
0,
|
|
115
|
-
[_aT, _aI, _nT, _mR],
|
|
116
|
-
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
117
|
-
];
|
|
118
|
-
exports.ListAccountRolesRequest$ = ListAccountRolesRequest$;
|
|
119
|
-
const ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
120
|
-
0,
|
|
121
|
-
[_nT, _rL],
|
|
122
|
-
[0, () => RoleListType]
|
|
123
|
-
];
|
|
124
|
-
exports.ListAccountRolesResponse$ = ListAccountRolesResponse$;
|
|
125
|
-
const ListAccountsRequest$ = [3, n0, _LAR,
|
|
126
|
-
0,
|
|
127
|
-
[_aT, _nT, _mR],
|
|
128
|
-
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
129
|
-
];
|
|
130
|
-
exports.ListAccountsRequest$ = ListAccountsRequest$;
|
|
131
|
-
const ListAccountsResponse$ = [3, n0, _LARi,
|
|
132
|
-
0,
|
|
133
|
-
[_nT, _aL],
|
|
134
|
-
[0, () => AccountListType]
|
|
135
|
-
];
|
|
136
|
-
exports.ListAccountsResponse$ = ListAccountsResponse$;
|
|
137
|
-
const LogoutRequest$ = [3, n0, _LR,
|
|
138
|
-
0,
|
|
139
|
-
[_aT],
|
|
140
|
-
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
141
|
-
];
|
|
142
|
-
exports.LogoutRequest$ = LogoutRequest$;
|
|
143
|
-
const RoleCredentials$ = [3, n0, _RC,
|
|
144
|
-
0,
|
|
145
|
-
[_aKI, _sAK, _sT, _ex],
|
|
146
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
147
|
-
];
|
|
148
|
-
exports.RoleCredentials$ = RoleCredentials$;
|
|
149
|
-
const RoleInfo$ = [3, n0, _RI,
|
|
150
|
-
0,
|
|
151
|
-
[_rN, _aI],
|
|
152
|
-
[0, 0]
|
|
153
|
-
];
|
|
154
|
-
exports.RoleInfo$ = RoleInfo$;
|
|
155
|
-
var __Unit = "unit";
|
|
156
|
-
var AccountListType = [1, n0, _ALT,
|
|
157
|
-
0, () => AccountInfo$
|
|
158
|
-
];
|
|
159
|
-
var RoleListType = [1, n0, _RLT,
|
|
160
|
-
0, () => RoleInfo$
|
|
161
|
-
];
|
|
162
|
-
exports.GetRoleCredentials$ = [9, n0, _GRC,
|
|
163
|
-
{ [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
164
|
-
];
|
|
165
|
-
exports.ListAccountRoles$ = [9, n0, _LARis,
|
|
166
|
-
{ [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
|
|
167
|
-
];
|
|
168
|
-
exports.ListAccounts$ = [9, n0, _LA,
|
|
169
|
-
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
|
|
170
|
-
];
|
|
171
|
-
exports.Logout$ = [9, n0, _L,
|
|
172
|
-
{ [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
|
|
173
|
-
];
|