Initial
This commit is contained in:
201
resources/app/node_modules/@aws-sdk/client-sso/LICENSE
generated
vendored
Normal file
201
resources/app/node_modules/@aws-sdk/client-sso/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
68
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
68
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
|
||||
const core_1 = require("@aws-sdk/core");
|
||||
const util_middleware_1 = require("@smithy/util-middleware");
|
||||
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
||||
return {
|
||||
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
||||
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
||||
(() => {
|
||||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
||||
})(),
|
||||
};
|
||||
};
|
||||
exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
|
||||
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "aws.auth#sigv4",
|
||||
signingProperties: {
|
||||
name: "awsssoportal",
|
||||
region: authParameters.region,
|
||||
},
|
||||
propertiesExtractor: (config, context) => ({
|
||||
signingProperties: {
|
||||
config,
|
||||
context,
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "smithy.api#noAuth",
|
||||
};
|
||||
}
|
||||
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
||||
const options = [];
|
||||
switch (authParameters.operation) {
|
||||
case "GetRoleCredentials": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "ListAccountRoles": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "ListAccounts": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "Logout": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
||||
}
|
||||
}
|
||||
return options;
|
||||
};
|
||||
exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
|
||||
const resolveHttpAuthSchemeConfig = (config) => {
|
||||
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
||||
return {
|
||||
...config_0,
|
||||
};
|
||||
};
|
||||
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
14
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
generated
vendored
Normal file
14
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
||||
const util_endpoints_2 = require("@smithy/util-endpoints");
|
||||
const ruleset_1 = require("./ruleset");
|
||||
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||||
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
||||
endpointParams: endpointParams,
|
||||
logger: context.logger,
|
||||
});
|
||||
};
|
||||
exports.defaultEndpointResolver = defaultEndpointResolver;
|
||||
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
||||
7
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
generated
vendored
Normal file
7
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ruleSet = void 0;
|
||||
const u = "required", v = "fn", w = "argv", x = "ref";
|
||||
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
||||
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
||||
exports.ruleSet = _data;
|
||||
630
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/index.js
generated
vendored
Normal file
630
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,630 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var src_exports = {};
|
||||
__export(src_exports, {
|
||||
GetRoleCredentialsCommand: () => GetRoleCredentialsCommand,
|
||||
GetRoleCredentialsRequestFilterSensitiveLog: () => GetRoleCredentialsRequestFilterSensitiveLog,
|
||||
GetRoleCredentialsResponseFilterSensitiveLog: () => GetRoleCredentialsResponseFilterSensitiveLog,
|
||||
InvalidRequestException: () => InvalidRequestException,
|
||||
ListAccountRolesCommand: () => ListAccountRolesCommand,
|
||||
ListAccountRolesRequestFilterSensitiveLog: () => ListAccountRolesRequestFilterSensitiveLog,
|
||||
ListAccountsCommand: () => ListAccountsCommand,
|
||||
ListAccountsRequestFilterSensitiveLog: () => ListAccountsRequestFilterSensitiveLog,
|
||||
LogoutCommand: () => LogoutCommand,
|
||||
LogoutRequestFilterSensitiveLog: () => LogoutRequestFilterSensitiveLog,
|
||||
ResourceNotFoundException: () => ResourceNotFoundException,
|
||||
RoleCredentialsFilterSensitiveLog: () => RoleCredentialsFilterSensitiveLog,
|
||||
SSO: () => SSO,
|
||||
SSOClient: () => SSOClient,
|
||||
SSOServiceException: () => SSOServiceException,
|
||||
TooManyRequestsException: () => TooManyRequestsException,
|
||||
UnauthorizedException: () => UnauthorizedException,
|
||||
__Client: () => import_smithy_client.Client,
|
||||
paginateListAccountRoles: () => paginateListAccountRoles,
|
||||
paginateListAccounts: () => paginateListAccounts
|
||||
});
|
||||
module.exports = __toCommonJS(src_exports);
|
||||
|
||||
// src/SSOClient.ts
|
||||
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
||||
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
||||
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
||||
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
||||
var import_config_resolver = require("@smithy/config-resolver");
|
||||
var import_core = require("@smithy/core");
|
||||
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
||||
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
||||
var import_middleware_retry = require("@smithy/middleware-retry");
|
||||
|
||||
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
||||
|
||||
// src/endpoint/EndpointParameters.ts
|
||||
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
||||
return {
|
||||
...options,
|
||||
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
||||
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
||||
defaultSigningName: "awsssoportal"
|
||||
};
|
||||
}, "resolveClientEndpointParameters");
|
||||
var commonParams = {
|
||||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
||||
Endpoint: { type: "builtInParams", name: "endpoint" },
|
||||
Region: { type: "builtInParams", name: "region" },
|
||||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
||||
};
|
||||
|
||||
// src/SSOClient.ts
|
||||
var import_runtimeConfig = require("././runtimeConfig");
|
||||
|
||||
// src/runtimeExtensions.ts
|
||||
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
||||
var import_protocol_http = require("@smithy/protocol-http");
|
||||
var import_smithy_client = require("@smithy/smithy-client");
|
||||
|
||||
// src/auth/httpAuthExtensionConfiguration.ts
|
||||
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
||||
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
||||
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
||||
let _credentials = runtimeConfig.credentials;
|
||||
return {
|
||||
setHttpAuthScheme(httpAuthScheme) {
|
||||
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
||||
if (index === -1) {
|
||||
_httpAuthSchemes.push(httpAuthScheme);
|
||||
} else {
|
||||
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
||||
}
|
||||
},
|
||||
httpAuthSchemes() {
|
||||
return _httpAuthSchemes;
|
||||
},
|
||||
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
||||
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
||||
},
|
||||
httpAuthSchemeProvider() {
|
||||
return _httpAuthSchemeProvider;
|
||||
},
|
||||
setCredentials(credentials) {
|
||||
_credentials = credentials;
|
||||
},
|
||||
credentials() {
|
||||
return _credentials;
|
||||
}
|
||||
};
|
||||
}, "getHttpAuthExtensionConfiguration");
|
||||
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
||||
return {
|
||||
httpAuthSchemes: config.httpAuthSchemes(),
|
||||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
||||
credentials: config.credentials()
|
||||
};
|
||||
}, "resolveHttpAuthRuntimeConfig");
|
||||
|
||||
// src/runtimeExtensions.ts
|
||||
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
||||
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
||||
const extensionConfiguration = {
|
||||
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
||||
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
||||
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
||||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
||||
};
|
||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||
return {
|
||||
...runtimeConfig,
|
||||
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
||||
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
||||
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
||||
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
||||
};
|
||||
}, "resolveRuntimeExtensions");
|
||||
|
||||
// src/SSOClient.ts
|
||||
var _SSOClient = class _SSOClient extends import_smithy_client.Client {
|
||||
constructor(...[configuration]) {
|
||||
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
||||
const _config_1 = resolveClientEndpointParameters(_config_0);
|
||||
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
||||
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
||||
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
||||
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
||||
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
||||
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
||||
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
||||
super(_config_8);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
||||
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
||||
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
||||
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
||||
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
||||
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
||||
this.middlewareStack.use(
|
||||
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
||||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
||||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
||||
})
|
||||
);
|
||||
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
||||
}
|
||||
/**
|
||||
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
||||
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
||||
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
||||
*/
|
||||
destroy() {
|
||||
super.destroy();
|
||||
}
|
||||
getDefaultHttpAuthSchemeParametersProvider() {
|
||||
return import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider;
|
||||
}
|
||||
getIdentityProviderConfigProvider() {
|
||||
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
||||
"aws.auth#sigv4": config.credentials
|
||||
});
|
||||
}
|
||||
};
|
||||
__name(_SSOClient, "SSOClient");
|
||||
var SSOClient = _SSOClient;
|
||||
|
||||
// src/SSO.ts
|
||||
|
||||
|
||||
// src/commands/GetRoleCredentialsCommand.ts
|
||||
|
||||
var import_middleware_serde = require("@smithy/middleware-serde");
|
||||
|
||||
var import_types = require("@smithy/types");
|
||||
|
||||
// src/models/models_0.ts
|
||||
|
||||
|
||||
// src/models/SSOServiceException.ts
|
||||
|
||||
var _SSOServiceException = class _SSOServiceException extends import_smithy_client.ServiceException {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, _SSOServiceException.prototype);
|
||||
}
|
||||
};
|
||||
__name(_SSOServiceException, "SSOServiceException");
|
||||
var SSOServiceException = _SSOServiceException;
|
||||
|
||||
// src/models/models_0.ts
|
||||
var _InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidRequestException",
|
||||
$fault: "client",
|
||||
...opts
|
||||
});
|
||||
this.name = "InvalidRequestException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
||||
}
|
||||
};
|
||||
__name(_InvalidRequestException, "InvalidRequestException");
|
||||
var InvalidRequestException = _InvalidRequestException;
|
||||
var _ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "ResourceNotFoundException",
|
||||
$fault: "client",
|
||||
...opts
|
||||
});
|
||||
this.name = "ResourceNotFoundException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
||||
}
|
||||
};
|
||||
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
||||
var ResourceNotFoundException = _ResourceNotFoundException;
|
||||
var _TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "TooManyRequestsException",
|
||||
$fault: "client",
|
||||
...opts
|
||||
});
|
||||
this.name = "TooManyRequestsException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
||||
}
|
||||
};
|
||||
__name(_TooManyRequestsException, "TooManyRequestsException");
|
||||
var TooManyRequestsException = _TooManyRequestsException;
|
||||
var _UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "UnauthorizedException",
|
||||
$fault: "client",
|
||||
...opts
|
||||
});
|
||||
this.name = "UnauthorizedException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
||||
}
|
||||
};
|
||||
__name(_UnauthorizedException, "UnauthorizedException");
|
||||
var UnauthorizedException = _UnauthorizedException;
|
||||
var GetRoleCredentialsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
|
||||
}), "GetRoleCredentialsRequestFilterSensitiveLog");
|
||||
var RoleCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.secretAccessKey && { secretAccessKey: import_smithy_client.SENSITIVE_STRING },
|
||||
...obj.sessionToken && { sessionToken: import_smithy_client.SENSITIVE_STRING }
|
||||
}), "RoleCredentialsFilterSensitiveLog");
|
||||
var GetRoleCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
|
||||
}), "GetRoleCredentialsResponseFilterSensitiveLog");
|
||||
var ListAccountRolesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
|
||||
}), "ListAccountRolesRequestFilterSensitiveLog");
|
||||
var ListAccountsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
|
||||
}), "ListAccountsRequestFilterSensitiveLog");
|
||||
var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
||||
...obj,
|
||||
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING }
|
||||
}), "LogoutRequestFilterSensitiveLog");
|
||||
|
||||
// src/protocols/Aws_restJson1.ts
|
||||
var import_core2 = require("@aws-sdk/core");
|
||||
|
||||
|
||||
var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
||||
const b = (0, import_core.requestBuilder)(input, context);
|
||||
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT]
|
||||
});
|
||||
b.bp("/federation/credentials");
|
||||
const query = (0, import_smithy_client.map)({
|
||||
[_rn]: [, (0, import_smithy_client.expectNonNull)(input[_rN], `roleName`)],
|
||||
[_ai]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `accountId`)]
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
}, "se_GetRoleCredentialsCommand");
|
||||
var se_ListAccountRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
||||
const b = (0, import_core.requestBuilder)(input, context);
|
||||
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT]
|
||||
});
|
||||
b.bp("/assignment/roles");
|
||||
const query = (0, import_smithy_client.map)({
|
||||
[_nt]: [, input[_nT]],
|
||||
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
||||
[_ai]: [, (0, import_smithy_client.expectNonNull)(input[_aI], `accountId`)]
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
}, "se_ListAccountRolesCommand");
|
||||
var se_ListAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
||||
const b = (0, import_core.requestBuilder)(input, context);
|
||||
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT]
|
||||
});
|
||||
b.bp("/assignment/accounts");
|
||||
const query = (0, import_smithy_client.map)({
|
||||
[_nt]: [, input[_nT]],
|
||||
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
}, "se_ListAccountsCommand");
|
||||
var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
||||
const b = (0, import_core.requestBuilder)(input, context);
|
||||
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT]
|
||||
});
|
||||
b.bp("/logout");
|
||||
let body;
|
||||
b.m("POST").h(headers).b(body);
|
||||
return b.build();
|
||||
}, "se_LogoutCommand");
|
||||
var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = (0, import_smithy_client.map)({
|
||||
$metadata: deserializeMetadata(output)
|
||||
});
|
||||
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
roleCredentials: import_smithy_client._json
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
}, "de_GetRoleCredentialsCommand");
|
||||
var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = (0, import_smithy_client.map)({
|
||||
$metadata: deserializeMetadata(output)
|
||||
});
|
||||
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
nextToken: import_smithy_client.expectString,
|
||||
roleList: import_smithy_client._json
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
}, "de_ListAccountRolesCommand");
|
||||
var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = (0, import_smithy_client.map)({
|
||||
$metadata: deserializeMetadata(output)
|
||||
});
|
||||
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
accountList: import_smithy_client._json,
|
||||
nextToken: import_smithy_client.expectString
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
}, "de_ListAccountsCommand");
|
||||
var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = (0, import_smithy_client.map)({
|
||||
$metadata: deserializeMetadata(output)
|
||||
});
|
||||
await (0, import_smithy_client.collectBody)(output.body, context);
|
||||
return contents;
|
||||
}, "de_LogoutCommand");
|
||||
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
||||
const parsedOutput = {
|
||||
...output,
|
||||
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
||||
};
|
||||
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
||||
switch (errorCode) {
|
||||
case "InvalidRequestException":
|
||||
case "com.amazonaws.sso#InvalidRequestException":
|
||||
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
||||
case "ResourceNotFoundException":
|
||||
case "com.amazonaws.sso#ResourceNotFoundException":
|
||||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
||||
case "TooManyRequestsException":
|
||||
case "com.amazonaws.sso#TooManyRequestsException":
|
||||
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
||||
case "UnauthorizedException":
|
||||
case "com.amazonaws.sso#UnauthorizedException":
|
||||
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
||||
default:
|
||||
const parsedBody = parsedOutput.body;
|
||||
return throwDefaultError({
|
||||
output,
|
||||
parsedBody,
|
||||
errorCode
|
||||
});
|
||||
}
|
||||
}, "de_CommandError");
|
||||
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOServiceException);
|
||||
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
||||
const contents = (0, import_smithy_client.map)({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
message: import_smithy_client.expectString
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidRequestException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents
|
||||
});
|
||||
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
||||
}, "de_InvalidRequestExceptionRes");
|
||||
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
||||
const contents = (0, import_smithy_client.map)({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
message: import_smithy_client.expectString
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new ResourceNotFoundException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents
|
||||
});
|
||||
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
||||
}, "de_ResourceNotFoundExceptionRes");
|
||||
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
||||
const contents = (0, import_smithy_client.map)({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
message: import_smithy_client.expectString
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new TooManyRequestsException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents
|
||||
});
|
||||
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
||||
}, "de_TooManyRequestsExceptionRes");
|
||||
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
||||
const contents = (0, import_smithy_client.map)({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = (0, import_smithy_client.take)(data, {
|
||||
message: import_smithy_client.expectString
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new UnauthorizedException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents
|
||||
});
|
||||
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
||||
}, "de_UnauthorizedExceptionRes");
|
||||
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
||||
httpStatusCode: output.statusCode,
|
||||
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
||||
extendedRequestId: output.headers["x-amz-id-2"],
|
||||
cfId: output.headers["x-amz-cf-id"]
|
||||
}), "deserializeMetadata");
|
||||
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
||||
var _aI = "accountId";
|
||||
var _aT = "accessToken";
|
||||
var _ai = "account_id";
|
||||
var _mR = "maxResults";
|
||||
var _mr = "max_result";
|
||||
var _nT = "nextToken";
|
||||
var _nt = "next_token";
|
||||
var _rN = "roleName";
|
||||
var _rn = "role_name";
|
||||
var _xasbt = "x-amz-sso_bearer_token";
|
||||
|
||||
// src/commands/GetRoleCredentialsCommand.ts
|
||||
var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client.Command.classBuilder().ep({
|
||||
...commonParams
|
||||
}).m(function(Command, cs, config, o) {
|
||||
return [
|
||||
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
||||
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
||||
];
|
||||
}).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
|
||||
};
|
||||
__name(_GetRoleCredentialsCommand, "GetRoleCredentialsCommand");
|
||||
var GetRoleCredentialsCommand = _GetRoleCredentialsCommand;
|
||||
|
||||
// src/commands/ListAccountRolesCommand.ts
|
||||
|
||||
|
||||
|
||||
|
||||
var _ListAccountRolesCommand = class _ListAccountRolesCommand extends import_smithy_client.Command.classBuilder().ep({
|
||||
...commonParams
|
||||
}).m(function(Command, cs, config, o) {
|
||||
return [
|
||||
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
||||
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
||||
];
|
||||
}).s("SWBPortalService", "ListAccountRoles", {}).n("SSOClient", "ListAccountRolesCommand").f(ListAccountRolesRequestFilterSensitiveLog, void 0).ser(se_ListAccountRolesCommand).de(de_ListAccountRolesCommand).build() {
|
||||
};
|
||||
__name(_ListAccountRolesCommand, "ListAccountRolesCommand");
|
||||
var ListAccountRolesCommand = _ListAccountRolesCommand;
|
||||
|
||||
// src/commands/ListAccountsCommand.ts
|
||||
|
||||
|
||||
|
||||
|
||||
var _ListAccountsCommand = class _ListAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
|
||||
...commonParams
|
||||
}).m(function(Command, cs, config, o) {
|
||||
return [
|
||||
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
||||
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
||||
];
|
||||
}).s("SWBPortalService", "ListAccounts", {}).n("SSOClient", "ListAccountsCommand").f(ListAccountsRequestFilterSensitiveLog, void 0).ser(se_ListAccountsCommand).de(de_ListAccountsCommand).build() {
|
||||
};
|
||||
__name(_ListAccountsCommand, "ListAccountsCommand");
|
||||
var ListAccountsCommand = _ListAccountsCommand;
|
||||
|
||||
// src/commands/LogoutCommand.ts
|
||||
|
||||
|
||||
|
||||
|
||||
var _LogoutCommand = class _LogoutCommand extends import_smithy_client.Command.classBuilder().ep({
|
||||
...commonParams
|
||||
}).m(function(Command, cs, config, o) {
|
||||
return [
|
||||
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
||||
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
||||
];
|
||||
}).s("SWBPortalService", "Logout", {}).n("SSOClient", "LogoutCommand").f(LogoutRequestFilterSensitiveLog, void 0).ser(se_LogoutCommand).de(de_LogoutCommand).build() {
|
||||
};
|
||||
__name(_LogoutCommand, "LogoutCommand");
|
||||
var LogoutCommand = _LogoutCommand;
|
||||
|
||||
// src/SSO.ts
|
||||
var commands = {
|
||||
GetRoleCredentialsCommand,
|
||||
ListAccountRolesCommand,
|
||||
ListAccountsCommand,
|
||||
LogoutCommand
|
||||
};
|
||||
var _SSO = class _SSO extends SSOClient {
|
||||
};
|
||||
__name(_SSO, "SSO");
|
||||
var SSO = _SSO;
|
||||
(0, import_smithy_client.createAggregatedClient)(commands, SSO);
|
||||
|
||||
// src/pagination/ListAccountRolesPaginator.ts
|
||||
|
||||
var paginateListAccountRoles = (0, import_core.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
// src/pagination/ListAccountsPaginator.ts
|
||||
|
||||
var paginateListAccounts = (0, import_core.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (module.exports = {
|
||||
SSOServiceException,
|
||||
__Client,
|
||||
SSOClient,
|
||||
SSO,
|
||||
$Command,
|
||||
GetRoleCredentialsCommand,
|
||||
ListAccountRolesCommand,
|
||||
ListAccountsCommand,
|
||||
LogoutCommand,
|
||||
paginateListAccountRoles,
|
||||
paginateListAccounts,
|
||||
InvalidRequestException,
|
||||
ResourceNotFoundException,
|
||||
TooManyRequestsException,
|
||||
UnauthorizedException,
|
||||
GetRoleCredentialsRequestFilterSensitiveLog,
|
||||
RoleCredentialsFilterSensitiveLog,
|
||||
GetRoleCredentialsResponseFilterSensitiveLog,
|
||||
ListAccountRolesRequestFilterSensitiveLog,
|
||||
ListAccountsRequestFilterSensitiveLog,
|
||||
LogoutRequestFilterSensitiveLog
|
||||
});
|
||||
|
||||
38
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js
generated
vendored
Normal file
38
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
||||
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
||||
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
||||
const config_resolver_1 = require("@smithy/config-resolver");
|
||||
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
||||
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
||||
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
||||
const util_retry_1 = require("@smithy/util-retry");
|
||||
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
||||
const smithy_client_1 = require("@smithy/smithy-client");
|
||||
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
||||
const getRuntimeConfig = (config) => {
|
||||
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
||||
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "browser",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
||||
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
||||
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
||||
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
||||
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
||||
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
47
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
generated
vendored
Normal file
47
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
||||
const core_1 = require("@aws-sdk/core");
|
||||
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
||||
const config_resolver_1 = require("@smithy/config-resolver");
|
||||
const hash_node_1 = require("@smithy/hash-node");
|
||||
const middleware_retry_1 = require("@smithy/middleware-retry");
|
||||
const node_config_provider_1 = require("@smithy/node-config-provider");
|
||||
const node_http_handler_1 = require("@smithy/node-http-handler");
|
||||
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
||||
const util_retry_1 = require("@smithy/util-retry");
|
||||
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
||||
const smithy_client_1 = require("@smithy/smithy-client");
|
||||
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
||||
const smithy_client_2 = require("@smithy/smithy-client");
|
||||
const getRuntimeConfig = (config) => {
|
||||
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
||||
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
||||
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
||||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "node",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
||||
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
||||
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
||||
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ??
|
||||
(0, node_config_provider_1.loadConfig)({
|
||||
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
||||
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
||||
}),
|
||||
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
||||
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
15
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.native.js
generated
vendored
Normal file
15
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.native.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
||||
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
||||
const getRuntimeConfig = (config) => {
|
||||
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
||||
return {
|
||||
...browserDefaults,
|
||||
...config,
|
||||
runtime: "react-native",
|
||||
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
40
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
generated
vendored
Normal file
40
resources/app/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const core_1 = require("@aws-sdk/core");
|
||||
const core_2 = require("@smithy/core");
|
||||
const smithy_client_1 = require("@smithy/smithy-client");
|
||||
const url_parser_1 = require("@smithy/url-parser");
|
||||
const util_base64_1 = require("@smithy/util-base64");
|
||||
const util_utf8_1 = require("@smithy/util-utf8");
|
||||
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
||||
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
||||
const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2019-06-10",
|
||||
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
||||
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
||||
disableHostPrefix: config?.disableHostPrefix ?? false,
|
||||
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
||||
extensions: config?.extensions ?? [],
|
||||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
||||
signer: new core_1.AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new core_2.NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
||||
serviceId: config?.serviceId ?? "SSO",
|
||||
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
||||
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
15
resources/app/node_modules/@aws-sdk/client-sso/dist-es/SSO.js
generated
vendored
Normal file
15
resources/app/node_modules/@aws-sdk/client-sso/dist-es/SSO.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createAggregatedClient } from "@smithy/smithy-client";
|
||||
import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
|
||||
import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
|
||||
import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
|
||||
import { LogoutCommand } from "./commands/LogoutCommand";
|
||||
import { SSOClient } from "./SSOClient";
|
||||
const commands = {
|
||||
GetRoleCredentialsCommand,
|
||||
ListAccountRolesCommand,
|
||||
ListAccountsCommand,
|
||||
LogoutCommand,
|
||||
};
|
||||
export class SSO extends SSOClient {
|
||||
}
|
||||
createAggregatedClient(commands, SSO);
|
||||
52
resources/app/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
generated
vendored
Normal file
52
resources/app/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
||||
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
||||
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
||||
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
||||
import { resolveRegionConfig } from "@smithy/config-resolver";
|
||||
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
||||
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
||||
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
||||
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
||||
import { Client as __Client, } from "@smithy/smithy-client";
|
||||
import { defaultSSOHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
||||
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
||||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
||||
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
||||
export { __Client };
|
||||
export class SSOClient extends __Client {
|
||||
constructor(...[configuration]) {
|
||||
const _config_0 = __getRuntimeConfig(configuration || {});
|
||||
const _config_1 = resolveClientEndpointParameters(_config_0);
|
||||
const _config_2 = resolveRegionConfig(_config_1);
|
||||
const _config_3 = resolveEndpointConfig(_config_2);
|
||||
const _config_4 = resolveRetryConfig(_config_3);
|
||||
const _config_5 = resolveHostHeaderConfig(_config_4);
|
||||
const _config_6 = resolveUserAgentConfig(_config_5);
|
||||
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
||||
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
||||
super(_config_8);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use(getRetryPlugin(this.config));
|
||||
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
||||
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
||||
this.middlewareStack.use(getLoggerPlugin(this.config));
|
||||
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
||||
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
||||
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
||||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
||||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
||||
}));
|
||||
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
||||
}
|
||||
destroy() {
|
||||
super.destroy();
|
||||
}
|
||||
getDefaultHttpAuthSchemeParametersProvider() {
|
||||
return defaultSSOHttpAuthSchemeParametersProvider;
|
||||
}
|
||||
getIdentityProviderConfigProvider() {
|
||||
return async (config) => new DefaultIdentityProviderConfig({
|
||||
"aws.auth#sigv4": config.credentials,
|
||||
});
|
||||
}
|
||||
}
|
||||
38
resources/app/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js
generated
vendored
Normal file
38
resources/app/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
||||
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
||||
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
||||
let _credentials = runtimeConfig.credentials;
|
||||
return {
|
||||
setHttpAuthScheme(httpAuthScheme) {
|
||||
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
||||
if (index === -1) {
|
||||
_httpAuthSchemes.push(httpAuthScheme);
|
||||
}
|
||||
else {
|
||||
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
||||
}
|
||||
},
|
||||
httpAuthSchemes() {
|
||||
return _httpAuthSchemes;
|
||||
},
|
||||
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
||||
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
||||
},
|
||||
httpAuthSchemeProvider() {
|
||||
return _httpAuthSchemeProvider;
|
||||
},
|
||||
setCredentials(credentials) {
|
||||
_credentials = credentials;
|
||||
},
|
||||
credentials() {
|
||||
return _credentials;
|
||||
},
|
||||
};
|
||||
};
|
||||
export const resolveHttpAuthRuntimeConfig = (config) => {
|
||||
return {
|
||||
httpAuthSchemes: config.httpAuthSchemes(),
|
||||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
||||
credentials: config.credentials(),
|
||||
};
|
||||
};
|
||||
62
resources/app/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
62
resources/app/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
||||
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
||||
export const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
||||
return {
|
||||
operation: getSmithyContext(context).operation,
|
||||
region: (await normalizeProvider(config.region)()) ||
|
||||
(() => {
|
||||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
||||
})(),
|
||||
};
|
||||
};
|
||||
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "aws.auth#sigv4",
|
||||
signingProperties: {
|
||||
name: "awsssoportal",
|
||||
region: authParameters.region,
|
||||
},
|
||||
propertiesExtractor: (config, context) => ({
|
||||
signingProperties: {
|
||||
config,
|
||||
context,
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "smithy.api#noAuth",
|
||||
};
|
||||
}
|
||||
export const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
||||
const options = [];
|
||||
switch (authParameters.operation) {
|
||||
case "GetRoleCredentials": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "ListAccountRoles": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "ListAccounts": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "Logout": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
||||
}
|
||||
}
|
||||
return options;
|
||||
};
|
||||
export const resolveHttpAuthSchemeConfig = (config) => {
|
||||
const config_0 = resolveAwsSdkSigV4Config(config);
|
||||
return {
|
||||
...config_0,
|
||||
};
|
||||
};
|
||||
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../protocols/Aws_restJson1";
|
||||
export { $Command };
|
||||
export class GetRoleCredentialsCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("SWBPortalService", "GetRoleCredentials", {})
|
||||
.n("SSOClient", "GetRoleCredentialsCommand")
|
||||
.f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog)
|
||||
.ser(se_GetRoleCredentialsCommand)
|
||||
.de(de_GetRoleCredentialsCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../protocols/Aws_restJson1";
|
||||
export { $Command };
|
||||
export class ListAccountRolesCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("SWBPortalService", "ListAccountRoles", {})
|
||||
.n("SSOClient", "ListAccountRolesCommand")
|
||||
.f(ListAccountRolesRequestFilterSensitiveLog, void 0)
|
||||
.ser(se_ListAccountRolesCommand)
|
||||
.de(de_ListAccountRolesCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0";
|
||||
import { de_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws_restJson1";
|
||||
export { $Command };
|
||||
export class ListAccountsCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("SWBPortalService", "ListAccounts", {})
|
||||
.n("SSOClient", "ListAccountsCommand")
|
||||
.f(ListAccountsRequestFilterSensitiveLog, void 0)
|
||||
.ser(se_ListAccountsCommand)
|
||||
.de(de_ListAccountsCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
||||
import { de_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1";
|
||||
export { $Command };
|
||||
export class LogoutCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("SWBPortalService", "Logout", {})
|
||||
.n("SSOClient", "LogoutCommand")
|
||||
.f(LogoutRequestFilterSensitiveLog, void 0)
|
||||
.ser(se_LogoutCommand)
|
||||
.de(de_LogoutCommand)
|
||||
.build() {
|
||||
}
|
||||
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from "./GetRoleCredentialsCommand";
|
||||
export * from "./ListAccountRolesCommand";
|
||||
export * from "./ListAccountsCommand";
|
||||
export * from "./LogoutCommand";
|
||||
14
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js
generated
vendored
Normal file
14
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export const resolveClientEndpointParameters = (options) => {
|
||||
return {
|
||||
...options,
|
||||
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
||||
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
||||
defaultSigningName: "awsssoportal",
|
||||
};
|
||||
};
|
||||
export const commonParams = {
|
||||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
||||
Endpoint: { type: "builtInParams", name: "endpoint" },
|
||||
Region: { type: "builtInParams", name: "region" },
|
||||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
||||
};
|
||||
10
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js
generated
vendored
Normal file
10
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
||||
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
||||
import { ruleSet } from "./ruleset";
|
||||
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||||
return resolveEndpoint(ruleSet, {
|
||||
endpointParams: endpointParams,
|
||||
logger: context.logger,
|
||||
});
|
||||
};
|
||||
customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
const u = "required", v = "fn", w = "argv", x = "ref";
|
||||
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
||||
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
||||
export const ruleSet = _data;
|
||||
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/extensionConfiguration.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/extensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
6
resources/app/node_modules/@aws-sdk/client-sso/dist-es/index.js
generated
vendored
Normal file
6
resources/app/node_modules/@aws-sdk/client-sso/dist-es/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from "./SSOClient";
|
||||
export * from "./SSO";
|
||||
export * from "./commands";
|
||||
export * from "./pagination";
|
||||
export * from "./models";
|
||||
export { SSOServiceException } from "./models/SSOServiceException";
|
||||
8
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js
generated
vendored
Normal file
8
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
||||
export { __ServiceException };
|
||||
export class SSOServiceException extends __ServiceException {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
||||
}
|
||||
}
|
||||
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/index.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./models_0";
|
||||
75
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js
generated
vendored
Normal file
75
resources/app/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
||||
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
||||
export class InvalidRequestException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidRequestException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "InvalidRequestException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
||||
}
|
||||
}
|
||||
export class ResourceNotFoundException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "ResourceNotFoundException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "ResourceNotFoundException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
||||
}
|
||||
}
|
||||
export class TooManyRequestsException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "TooManyRequestsException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "TooManyRequestsException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
||||
}
|
||||
}
|
||||
export class UnauthorizedException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "UnauthorizedException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "UnauthorizedException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
||||
}
|
||||
}
|
||||
export const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
||||
});
|
||||
export const RoleCredentialsFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),
|
||||
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
|
||||
});
|
||||
export const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }),
|
||||
});
|
||||
export const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
||||
});
|
||||
export const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
||||
});
|
||||
export const LogoutRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
||||
});
|
||||
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/Interfaces.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/Interfaces.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { createPaginator } from "@smithy/core";
|
||||
import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
|
||||
import { SSOClient } from "../SSOClient";
|
||||
export const paginateListAccountRoles = createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { createPaginator } from "@smithy/core";
|
||||
import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
|
||||
import { SSOClient } from "../SSOClient";
|
||||
export const paginateListAccounts = createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
3
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js
generated
vendored
Normal file
3
resources/app/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./Interfaces";
|
||||
export * from "./ListAccountRolesPaginator";
|
||||
export * from "./ListAccountsPaginator";
|
||||
215
resources/app/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
generated
vendored
Normal file
215
resources/app/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
||||
import { requestBuilder as rb } from "@smithy/core";
|
||||
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
||||
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
||||
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
||||
export const se_GetRoleCredentialsCommand = async (input, context) => {
|
||||
const b = rb(input, context);
|
||||
const headers = map({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT],
|
||||
});
|
||||
b.bp("/federation/credentials");
|
||||
const query = map({
|
||||
[_rn]: [, __expectNonNull(input[_rN], `roleName`)],
|
||||
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
};
|
||||
export const se_ListAccountRolesCommand = async (input, context) => {
|
||||
const b = rb(input, context);
|
||||
const headers = map({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT],
|
||||
});
|
||||
b.bp("/assignment/roles");
|
||||
const query = map({
|
||||
[_nt]: [, input[_nT]],
|
||||
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
||||
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
};
|
||||
export const se_ListAccountsCommand = async (input, context) => {
|
||||
const b = rb(input, context);
|
||||
const headers = map({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT],
|
||||
});
|
||||
b.bp("/assignment/accounts");
|
||||
const query = map({
|
||||
[_nt]: [, input[_nT]],
|
||||
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
||||
});
|
||||
let body;
|
||||
b.m("GET").h(headers).q(query).b(body);
|
||||
return b.build();
|
||||
};
|
||||
export const se_LogoutCommand = async (input, context) => {
|
||||
const b = rb(input, context);
|
||||
const headers = map({}, isSerializableHeaderValue, {
|
||||
[_xasbt]: input[_aT],
|
||||
});
|
||||
b.bp("/logout");
|
||||
let body;
|
||||
b.m("POST").h(headers).b(body);
|
||||
return b.build();
|
||||
};
|
||||
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = map({
|
||||
$metadata: deserializeMetadata(output),
|
||||
});
|
||||
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
||||
const doc = take(data, {
|
||||
roleCredentials: _json,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
};
|
||||
export const de_ListAccountRolesCommand = async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = map({
|
||||
$metadata: deserializeMetadata(output),
|
||||
});
|
||||
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
||||
const doc = take(data, {
|
||||
nextToken: __expectString,
|
||||
roleList: _json,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
};
|
||||
export const de_ListAccountsCommand = async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = map({
|
||||
$metadata: deserializeMetadata(output),
|
||||
});
|
||||
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
||||
const doc = take(data, {
|
||||
accountList: _json,
|
||||
nextToken: __expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
};
|
||||
export const de_LogoutCommand = async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = map({
|
||||
$metadata: deserializeMetadata(output),
|
||||
});
|
||||
await collectBody(output.body, context);
|
||||
return contents;
|
||||
};
|
||||
const de_CommandError = async (output, context) => {
|
||||
const parsedOutput = {
|
||||
...output,
|
||||
body: await parseErrorBody(output.body, context),
|
||||
};
|
||||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
||||
switch (errorCode) {
|
||||
case "InvalidRequestException":
|
||||
case "com.amazonaws.sso#InvalidRequestException":
|
||||
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
||||
case "ResourceNotFoundException":
|
||||
case "com.amazonaws.sso#ResourceNotFoundException":
|
||||
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
||||
case "TooManyRequestsException":
|
||||
case "com.amazonaws.sso#TooManyRequestsException":
|
||||
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
||||
case "UnauthorizedException":
|
||||
case "com.amazonaws.sso#UnauthorizedException":
|
||||
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
||||
default:
|
||||
const parsedBody = parsedOutput.body;
|
||||
return throwDefaultError({
|
||||
output,
|
||||
parsedBody,
|
||||
errorCode,
|
||||
});
|
||||
}
|
||||
};
|
||||
const throwDefaultError = withBaseException(__BaseException);
|
||||
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = take(data, {
|
||||
message: __expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidRequestException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return __decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = take(data, {
|
||||
message: __expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new ResourceNotFoundException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return __decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = take(data, {
|
||||
message: __expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new TooManyRequestsException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return __decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = take(data, {
|
||||
message: __expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new UnauthorizedException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return __decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const deserializeMetadata = (output) => ({
|
||||
httpStatusCode: output.statusCode,
|
||||
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
||||
extendedRequestId: output.headers["x-amz-id-2"],
|
||||
cfId: output.headers["x-amz-cf-id"],
|
||||
});
|
||||
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
||||
const isSerializableHeaderValue = (value) => value !== undefined &&
|
||||
value !== null &&
|
||||
value !== "" &&
|
||||
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
||||
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
||||
const _aI = "accountId";
|
||||
const _aT = "accessToken";
|
||||
const _ai = "account_id";
|
||||
const _mR = "maxResults";
|
||||
const _mr = "max_result";
|
||||
const _nT = "nextToken";
|
||||
const _nt = "next_token";
|
||||
const _rN = "roleName";
|
||||
const _rn = "role_name";
|
||||
const _xasbt = "x-amz-sso_bearer_token";
|
||||
33
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js
generated
vendored
Normal file
33
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import packageInfo from "../package.json";
|
||||
import { Sha256 } from "@aws-crypto/sha256-browser";
|
||||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
||||
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
||||
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
||||
import { invalidProvider } from "@smithy/invalid-dependency";
|
||||
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
||||
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
||||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
||||
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
||||
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
const defaultsMode = resolveDefaultsModeConfig(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
||||
const clientSharedValues = getSharedRuntimeConfig(config);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "browser",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
||||
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
||||
region: config?.region ?? invalidProvider("Region is missing"),
|
||||
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
||||
sha256: config?.sha256 ?? Sha256,
|
||||
streamCollector: config?.streamCollector ?? streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
||||
};
|
||||
};
|
||||
42
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
generated
vendored
Normal file
42
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import packageInfo from "../package.json";
|
||||
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
||||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
||||
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
||||
import { Hash } from "@smithy/hash-node";
|
||||
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
||||
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
||||
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
||||
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
||||
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
||||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
||||
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
||||
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
||||
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
emitWarningIfUnsupportedVersion(process.version);
|
||||
const defaultsMode = resolveDefaultsModeConfig(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
||||
const clientSharedValues = getSharedRuntimeConfig(config);
|
||||
awsCheckVersion(process.version);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "node",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
||||
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
||||
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
||||
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ??
|
||||
loadNodeConfig({
|
||||
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
||||
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
||||
}),
|
||||
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
||||
streamCollector: config?.streamCollector ?? streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
||||
};
|
||||
};
|
||||
11
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.native.js
generated
vendored
Normal file
11
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.native.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Sha256 } from "@aws-crypto/sha256-js";
|
||||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
const browserDefaults = getBrowserRuntimeConfig(config);
|
||||
return {
|
||||
...browserDefaults,
|
||||
...config,
|
||||
runtime: "react-native",
|
||||
sha256: config?.sha256 ?? Sha256,
|
||||
};
|
||||
};
|
||||
36
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
generated
vendored
Normal file
36
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
||||
import { NoAuthSigner } from "@smithy/core";
|
||||
import { NoOpLogger } from "@smithy/smithy-client";
|
||||
import { parseUrl } from "@smithy/url-parser";
|
||||
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
||||
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
||||
import { defaultSSOHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
||||
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2019-06-10",
|
||||
base64Decoder: config?.base64Decoder ?? fromBase64,
|
||||
base64Encoder: config?.base64Encoder ?? toBase64,
|
||||
disableHostPrefix: config?.disableHostPrefix ?? false,
|
||||
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
||||
extensions: config?.extensions ?? [],
|
||||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
||||
signer: new AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new NoOpLogger(),
|
||||
serviceId: config?.serviceId ?? "SSO",
|
||||
urlParser: config?.urlParser ?? parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
||||
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
||||
};
|
||||
};
|
||||
21
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
generated
vendored
Normal file
21
resources/app/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
||||
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
||||
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
||||
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
||||
const asPartial = (t) => t;
|
||||
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
const extensionConfiguration = {
|
||||
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
||||
};
|
||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||
return {
|
||||
...runtimeConfig,
|
||||
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
||||
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
||||
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
||||
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
||||
};
|
||||
};
|
||||
87
resources/app/node_modules/@aws-sdk/client-sso/package.json
generated
vendored
Normal file
87
resources/app/node_modules/@aws-sdk/client-sso/package.json
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"name": "@aws-sdk/client-sso",
|
||||
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
||||
"version": "3.577.0",
|
||||
"main": "./dist-cjs/index.js",
|
||||
"types": "./dist-types/index.d.ts",
|
||||
"module": "./dist-es/index.js",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@aws-crypto/sha256-browser": "3.0.0",
|
||||
"@aws-crypto/sha256-js": "3.0.0",
|
||||
"@aws-sdk/core": "3.576.0",
|
||||
"@aws-sdk/middleware-host-header": "3.577.0",
|
||||
"@aws-sdk/middleware-logger": "3.577.0",
|
||||
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
||||
"@aws-sdk/middleware-user-agent": "3.577.0",
|
||||
"@aws-sdk/region-config-resolver": "3.577.0",
|
||||
"@aws-sdk/types": "3.577.0",
|
||||
"@aws-sdk/util-endpoints": "3.577.0",
|
||||
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
||||
"@aws-sdk/util-user-agent-node": "3.577.0",
|
||||
"@smithy/config-resolver": "^3.0.0",
|
||||
"@smithy/core": "^2.0.0",
|
||||
"@smithy/fetch-http-handler": "^3.0.0",
|
||||
"@smithy/hash-node": "^3.0.0",
|
||||
"@smithy/invalid-dependency": "^3.0.0",
|
||||
"@smithy/middleware-content-length": "^3.0.0",
|
||||
"@smithy/middleware-endpoint": "^3.0.0",
|
||||
"@smithy/middleware-retry": "^3.0.0",
|
||||
"@smithy/middleware-serde": "^3.0.0",
|
||||
"@smithy/middleware-stack": "^3.0.0",
|
||||
"@smithy/node-config-provider": "^3.0.0",
|
||||
"@smithy/node-http-handler": "^3.0.0",
|
||||
"@smithy/protocol-http": "^4.0.0",
|
||||
"@smithy/smithy-client": "^3.0.0",
|
||||
"@smithy/types": "^3.0.0",
|
||||
"@smithy/url-parser": "^3.0.0",
|
||||
"@smithy/util-base64": "^3.0.0",
|
||||
"@smithy/util-body-length-browser": "^3.0.0",
|
||||
"@smithy/util-body-length-node": "^3.0.0",
|
||||
"@smithy/util-defaults-mode-browser": "^3.0.0",
|
||||
"@smithy/util-defaults-mode-node": "^3.0.0",
|
||||
"@smithy/util-endpoints": "^2.0.0",
|
||||
"@smithy/util-middleware": "^3.0.0",
|
||||
"@smithy/util-retry": "^3.0.0",
|
||||
"@smithy/util-utf8": "^3.0.0",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/node16": "16.1.3",
|
||||
"@types/node": "^16.18.96",
|
||||
"concurrently": "7.0.0",
|
||||
"downlevel-dts": "0.10.1",
|
||||
"rimraf": "3.0.2",
|
||||
"typescript": "~4.9.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<4.0": {
|
||||
"dist-types/*": [
|
||||
"dist-types/ts3.4/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist-*/**"
|
||||
],
|
||||
"author": {
|
||||
"name": "AWS SDK for JavaScript Team",
|
||||
"url": "https://aws.amazon.com/javascript/"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"browser": {
|
||||
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
||||
},
|
||||
"react-native": {
|
||||
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
||||
},
|
||||
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
||||
"directory": "clients/client-sso"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user