@aws-sdk/client-sso
Advanced tools
Comparing version 3.490.0 to 3.495.0
@@ -1,29 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GetRoleCredentialsCommand = exports.$Command = void 0; | ||
const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); | ||
const middleware_serde_1 = require("@smithy/middleware-serde"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); | ||
const EndpointParameters_1 = require("../endpoint/EndpointParameters"); | ||
const models_0_1 = require("../models/models_0"); | ||
const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); | ||
class GetRoleCredentialsCommand extends smithy_client_1.Command | ||
.classBuilder() | ||
.ep({ | ||
...EndpointParameters_1.commonParams, | ||
}) | ||
.m(function (Command, cs, config, o) { | ||
return [ | ||
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize), | ||
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("SWBPortalService", "GetRoleCredentials", {}) | ||
.n("SSOClient", "GetRoleCredentialsCommand") | ||
.f(models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, models_0_1.GetRoleCredentialsResponseFilterSensitiveLog) | ||
.ser(Aws_restJson1_1.se_GetRoleCredentialsCommand) | ||
.de(Aws_restJson1_1.de_GetRoleCredentialsCommand) | ||
.build() { | ||
} | ||
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; | ||
module.exports = require("../index.js"); |
@@ -1,7 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./GetRoleCredentialsCommand"), exports); | ||
tslib_1.__exportStar(require("./ListAccountRolesCommand"), exports); | ||
tslib_1.__exportStar(require("./ListAccountsCommand"), exports); | ||
tslib_1.__exportStar(require("./LogoutCommand"), exports); | ||
module.exports = require("../index.js"); |
@@ -1,29 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListAccountRolesCommand = exports.$Command = void 0; | ||
const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); | ||
const middleware_serde_1 = require("@smithy/middleware-serde"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); | ||
const EndpointParameters_1 = require("../endpoint/EndpointParameters"); | ||
const models_0_1 = require("../models/models_0"); | ||
const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); | ||
class ListAccountRolesCommand extends smithy_client_1.Command | ||
.classBuilder() | ||
.ep({ | ||
...EndpointParameters_1.commonParams, | ||
}) | ||
.m(function (Command, cs, config, o) { | ||
return [ | ||
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize), | ||
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("SWBPortalService", "ListAccountRoles", {}) | ||
.n("SSOClient", "ListAccountRolesCommand") | ||
.f(models_0_1.ListAccountRolesRequestFilterSensitiveLog, void 0) | ||
.ser(Aws_restJson1_1.se_ListAccountRolesCommand) | ||
.de(Aws_restJson1_1.de_ListAccountRolesCommand) | ||
.build() { | ||
} | ||
exports.ListAccountRolesCommand = ListAccountRolesCommand; | ||
module.exports = require("../index.js"); |
@@ -1,29 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListAccountsCommand = exports.$Command = void 0; | ||
const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); | ||
const middleware_serde_1 = require("@smithy/middleware-serde"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); | ||
const EndpointParameters_1 = require("../endpoint/EndpointParameters"); | ||
const models_0_1 = require("../models/models_0"); | ||
const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); | ||
class ListAccountsCommand extends smithy_client_1.Command | ||
.classBuilder() | ||
.ep({ | ||
...EndpointParameters_1.commonParams, | ||
}) | ||
.m(function (Command, cs, config, o) { | ||
return [ | ||
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize), | ||
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("SWBPortalService", "ListAccounts", {}) | ||
.n("SSOClient", "ListAccountsCommand") | ||
.f(models_0_1.ListAccountsRequestFilterSensitiveLog, void 0) | ||
.ser(Aws_restJson1_1.se_ListAccountsCommand) | ||
.de(Aws_restJson1_1.de_ListAccountsCommand) | ||
.build() { | ||
} | ||
exports.ListAccountsCommand = ListAccountsCommand; | ||
module.exports = require("../index.js"); |
@@ -1,29 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LogoutCommand = exports.$Command = void 0; | ||
const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); | ||
const middleware_serde_1 = require("@smithy/middleware-serde"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); | ||
const EndpointParameters_1 = require("../endpoint/EndpointParameters"); | ||
const models_0_1 = require("../models/models_0"); | ||
const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); | ||
class LogoutCommand extends smithy_client_1.Command | ||
.classBuilder() | ||
.ep({ | ||
...EndpointParameters_1.commonParams, | ||
}) | ||
.m(function (Command, cs, config, o) { | ||
return [ | ||
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize), | ||
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("SWBPortalService", "Logout", {}) | ||
.n("SSOClient", "LogoutCommand") | ||
.f(models_0_1.LogoutRequestFilterSensitiveLog, void 0) | ||
.ser(Aws_restJson1_1.se_LogoutCommand) | ||
.de(Aws_restJson1_1.de_LogoutCommand) | ||
.build() { | ||
} | ||
exports.LogoutCommand = LogoutCommand; | ||
module.exports = require("../index.js"); |
@@ -1,18 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.commonParams = exports.resolveClientEndpointParameters = void 0; | ||
const resolveClientEndpointParameters = (options) => { | ||
return { | ||
...options, | ||
useDualstackEndpoint: options.useDualstackEndpoint ?? false, | ||
useFipsEndpoint: options.useFipsEndpoint ?? false, | ||
defaultSigningName: "awsssoportal", | ||
}; | ||
}; | ||
exports.resolveClientEndpointParameters = resolveClientEndpointParameters; | ||
exports.commonParams = { | ||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, | ||
Endpoint: { type: "builtInParams", name: "endpoint" }, | ||
Region: { type: "builtInParams", name: "region" }, | ||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, | ||
}; | ||
module.exports = require("../index.js"); |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
module.exports = require("./index.js"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SSOServiceException = void 0; | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./SSOClient"), exports); | ||
tslib_1.__exportStar(require("./SSO"), exports); | ||
tslib_1.__exportStar(require("./commands"), exports); | ||
tslib_1.__exportStar(require("./pagination"), exports); | ||
tslib_1.__exportStar(require("./models"), exports); | ||
require("@aws-sdk/util-endpoints"); | ||
var SSOServiceException_1 = require("./models/SSOServiceException"); | ||
Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } }); | ||
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_middleware_content_length = require("@smithy/middleware-content-length"); | ||
var import_middleware_endpoint = require("@smithy/middleware-endpoint"); | ||
var import_middleware_retry = require("@smithy/middleware-retry"); | ||
// 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"); | ||
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)) | ||
}; | ||
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) | ||
}; | ||
}, "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 = resolveRuntimeExtensions(_config_6, (configuration == null ? void 0 : configuration.extensions) || []); | ||
super(_config_7); | ||
this.config = _config_7; | ||
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)); | ||
} | ||
/** | ||
* 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(); | ||
} | ||
}; | ||
__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_core = require("@smithy/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_GetRoleCredentialsCommandError(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 parseBody(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_GetRoleCredentialsCommandError = /* @__PURE__ */ __name(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 | ||
}); | ||
} | ||
}, "de_GetRoleCredentialsCommandError"); | ||
var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListAccountRolesCommandError(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 parseBody(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_ListAccountRolesCommandError = /* @__PURE__ */ __name(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 | ||
}); | ||
} | ||
}, "de_ListAccountRolesCommandError"); | ||
var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListAccountsCommandError(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 parseBody(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_ListAccountsCommandError = /* @__PURE__ */ __name(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 | ||
}); | ||
} | ||
}, "de_ListAccountsCommandError"); | ||
var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_LogoutCommandError(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_LogoutCommandError = /* @__PURE__ */ __name(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 "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_LogoutCommandError"); | ||
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 collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); | ||
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"; | ||
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { | ||
if (encoded.length) { | ||
return JSON.parse(encoded); | ||
} | ||
return {}; | ||
}), "parseBody"); | ||
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => { | ||
const value = await parseBody(errorBody, context); | ||
value.message = value.message ?? value.Message; | ||
return value; | ||
}, "parseErrorBody"); | ||
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => { | ||
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey"); | ||
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => { | ||
let cleanValue = rawValue; | ||
if (typeof cleanValue === "number") { | ||
cleanValue = cleanValue.toString(); | ||
} | ||
if (cleanValue.indexOf(",") >= 0) { | ||
cleanValue = cleanValue.split(",")[0]; | ||
} | ||
if (cleanValue.indexOf(":") >= 0) { | ||
cleanValue = cleanValue.split(":")[0]; | ||
} | ||
if (cleanValue.indexOf("#") >= 0) { | ||
cleanValue = cleanValue.split("#")[1]; | ||
} | ||
return cleanValue; | ||
}, "sanitizeErrorCode"); | ||
const headerKey = findKey(output.headers, "x-amzn-errortype"); | ||
if (headerKey !== void 0) { | ||
return sanitizeErrorCode(output.headers[headerKey]); | ||
} | ||
if (data.code !== void 0) { | ||
return sanitizeErrorCode(data.code); | ||
} | ||
if (data["__type"] !== void 0) { | ||
return sanitizeErrorCode(data["__type"]); | ||
} | ||
}, "loadRestJsonErrorCode"); | ||
// 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"); | ||
// src/index.ts | ||
var import_util_endpoints = require("@aws-sdk/util-endpoints"); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
GetRoleCredentialsCommand, | ||
GetRoleCredentialsRequestFilterSensitiveLog, | ||
GetRoleCredentialsResponseFilterSensitiveLog, | ||
InvalidRequestException, | ||
ListAccountRolesCommand, | ||
ListAccountRolesRequestFilterSensitiveLog, | ||
ListAccountsCommand, | ||
ListAccountsRequestFilterSensitiveLog, | ||
LogoutCommand, | ||
LogoutRequestFilterSensitiveLog, | ||
ResourceNotFoundException, | ||
RoleCredentialsFilterSensitiveLog, | ||
SSO, | ||
SSOClient, | ||
SSOServiceException, | ||
TooManyRequestsException, | ||
UnauthorizedException, | ||
__Client, | ||
paginateListAccountRoles, | ||
paginateListAccounts | ||
}); |
@@ -1,4 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./models_0"), exports); | ||
module.exports = require("../index.js"); |
@@ -1,88 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
const SSOServiceException_1 = require("./SSOServiceException"); | ||
class InvalidRequestException extends SSOServiceException_1.SSOServiceException { | ||
constructor(opts) { | ||
super({ | ||
name: "InvalidRequestException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "InvalidRequestException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, InvalidRequestException.prototype); | ||
} | ||
} | ||
exports.InvalidRequestException = InvalidRequestException; | ||
class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { | ||
constructor(opts) { | ||
super({ | ||
name: "ResourceNotFoundException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "ResourceNotFoundException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, ResourceNotFoundException.prototype); | ||
} | ||
} | ||
exports.ResourceNotFoundException = ResourceNotFoundException; | ||
class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { | ||
constructor(opts) { | ||
super({ | ||
name: "TooManyRequestsException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "TooManyRequestsException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, TooManyRequestsException.prototype); | ||
} | ||
} | ||
exports.TooManyRequestsException = TooManyRequestsException; | ||
class UnauthorizedException extends SSOServiceException_1.SSOServiceException { | ||
constructor(opts) { | ||
super({ | ||
name: "UnauthorizedException", | ||
$fault: "client", | ||
...opts, | ||
}); | ||
this.name = "UnauthorizedException"; | ||
this.$fault = "client"; | ||
Object.setPrototypeOf(this, UnauthorizedException.prototype); | ||
} | ||
} | ||
exports.UnauthorizedException = UnauthorizedException; | ||
const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), | ||
}); | ||
exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; | ||
const RoleCredentialsFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), | ||
...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), | ||
}); | ||
exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; | ||
const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), | ||
}); | ||
exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; | ||
const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), | ||
}); | ||
exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; | ||
const ListAccountsRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), | ||
}); | ||
exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; | ||
const LogoutRequestFilterSensitiveLog = (obj) => ({ | ||
...obj, | ||
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), | ||
}); | ||
exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; | ||
module.exports = require("../index.js"); |
@@ -1,12 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SSOServiceException = exports.__ServiceException = void 0; | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } }); | ||
class SSOServiceException extends smithy_client_1.ServiceException { | ||
constructor(options) { | ||
super(options); | ||
Object.setPrototypeOf(this, SSOServiceException.prototype); | ||
} | ||
} | ||
exports.SSOServiceException = SSOServiceException; | ||
module.exports = require("../index.js"); |
@@ -1,6 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Interfaces"), exports); | ||
tslib_1.__exportStar(require("./ListAccountRolesPaginator"), exports); | ||
tslib_1.__exportStar(require("./ListAccountsPaginator"), exports); | ||
module.exports = require("../index.js"); |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
module.exports = require("../index.js"); |
@@ -1,7 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.paginateListAccountRoles = void 0; | ||
const core_1 = require("@smithy/core"); | ||
const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand"); | ||
const SSOClient_1 = require("../SSOClient"); | ||
exports.paginateListAccountRoles = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountRolesCommand_1.ListAccountRolesCommand, "nextToken", "nextToken", "maxResults"); | ||
module.exports = require("../index.js"); |
@@ -1,7 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.paginateListAccounts = void 0; | ||
const core_1 = require("@smithy/core"); | ||
const ListAccountsCommand_1 = require("../commands/ListAccountsCommand"); | ||
const SSOClient_1 = require("../SSOClient"); | ||
exports.paginateListAccounts = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountsCommand_1.ListAccountsCommand, "nextToken", "nextToken", "maxResults"); | ||
module.exports = require("../index.js"); |
@@ -1,346 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; | ||
const core_1 = require("@smithy/core"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
const models_0_1 = require("../models/models_0"); | ||
const SSOServiceException_1 = require("../models/SSOServiceException"); | ||
const se_GetRoleCredentialsCommand = async (input, context) => { | ||
const b = (0, core_1.requestBuilder)(input, context); | ||
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { | ||
[_xasbt]: input[_aT], | ||
}); | ||
b.bp("/federation/credentials"); | ||
const query = (0, smithy_client_1.map)({ | ||
[_rn]: [, (0, smithy_client_1.expectNonNull)(input[_rN], `roleName`)], | ||
[_ai]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `accountId`)], | ||
}); | ||
let body; | ||
b.m("GET").h(headers).q(query).b(body); | ||
return b.build(); | ||
}; | ||
exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; | ||
const se_ListAccountRolesCommand = async (input, context) => { | ||
const b = (0, core_1.requestBuilder)(input, context); | ||
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { | ||
[_xasbt]: input[_aT], | ||
}); | ||
b.bp("/assignment/roles"); | ||
const query = (0, smithy_client_1.map)({ | ||
[_nt]: [, input[_nT]], | ||
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()], | ||
[_ai]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `accountId`)], | ||
}); | ||
let body; | ||
b.m("GET").h(headers).q(query).b(body); | ||
return b.build(); | ||
}; | ||
exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand; | ||
const se_ListAccountsCommand = async (input, context) => { | ||
const b = (0, core_1.requestBuilder)(input, context); | ||
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { | ||
[_xasbt]: input[_aT], | ||
}); | ||
b.bp("/assignment/accounts"); | ||
const query = (0, smithy_client_1.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(); | ||
}; | ||
exports.se_ListAccountsCommand = se_ListAccountsCommand; | ||
const se_LogoutCommand = async (input, context) => { | ||
const b = (0, core_1.requestBuilder)(input, context); | ||
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { | ||
[_xasbt]: input[_aT], | ||
}); | ||
b.bp("/logout"); | ||
let body; | ||
b.m("POST").h(headers).b(body); | ||
return b.build(); | ||
}; | ||
exports.se_LogoutCommand = se_LogoutCommand; | ||
const de_GetRoleCredentialsCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_GetRoleCredentialsCommandError(output, context); | ||
} | ||
const contents = (0, smithy_client_1.map)({ | ||
$metadata: deserializeMetadata(output), | ||
}); | ||
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); | ||
const doc = (0, smithy_client_1.take)(data, { | ||
roleCredentials: smithy_client_1._json, | ||
}); | ||
Object.assign(contents, doc); | ||
return contents; | ||
}; | ||
exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; | ||
const de_GetRoleCredentialsCommandError = 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 de_ListAccountRolesCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListAccountRolesCommandError(output, context); | ||
} | ||
const contents = (0, smithy_client_1.map)({ | ||
$metadata: deserializeMetadata(output), | ||
}); | ||
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); | ||
const doc = (0, smithy_client_1.take)(data, { | ||
nextToken: smithy_client_1.expectString, | ||
roleList: smithy_client_1._json, | ||
}); | ||
Object.assign(contents, doc); | ||
return contents; | ||
}; | ||
exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand; | ||
const de_ListAccountRolesCommandError = 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 de_ListAccountsCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_ListAccountsCommandError(output, context); | ||
} | ||
const contents = (0, smithy_client_1.map)({ | ||
$metadata: deserializeMetadata(output), | ||
}); | ||
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); | ||
const doc = (0, smithy_client_1.take)(data, { | ||
accountList: smithy_client_1._json, | ||
nextToken: smithy_client_1.expectString, | ||
}); | ||
Object.assign(contents, doc); | ||
return contents; | ||
}; | ||
exports.de_ListAccountsCommand = de_ListAccountsCommand; | ||
const de_ListAccountsCommandError = 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 de_LogoutCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 300) { | ||
return de_LogoutCommandError(output, context); | ||
} | ||
const contents = (0, smithy_client_1.map)({ | ||
$metadata: deserializeMetadata(output), | ||
}); | ||
await (0, smithy_client_1.collectBody)(output.body, context); | ||
return contents; | ||
}; | ||
exports.de_LogoutCommand = de_LogoutCommand; | ||
const de_LogoutCommandError = 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 "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 = (0, smithy_client_1.withBaseException)(SSOServiceException_1.SSOServiceException); | ||
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => { | ||
const contents = (0, smithy_client_1.map)({}); | ||
const data = parsedOutput.body; | ||
const doc = (0, smithy_client_1.take)(data, { | ||
message: smithy_client_1.expectString, | ||
}); | ||
Object.assign(contents, doc); | ||
const exception = new models_0_1.InvalidRequestException({ | ||
$metadata: deserializeMetadata(parsedOutput), | ||
...contents, | ||
}); | ||
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); | ||
}; | ||
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { | ||
const contents = (0, smithy_client_1.map)({}); | ||
const data = parsedOutput.body; | ||
const doc = (0, smithy_client_1.take)(data, { | ||
message: smithy_client_1.expectString, | ||
}); | ||
Object.assign(contents, doc); | ||
const exception = new models_0_1.ResourceNotFoundException({ | ||
$metadata: deserializeMetadata(parsedOutput), | ||
...contents, | ||
}); | ||
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); | ||
}; | ||
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => { | ||
const contents = (0, smithy_client_1.map)({}); | ||
const data = parsedOutput.body; | ||
const doc = (0, smithy_client_1.take)(data, { | ||
message: smithy_client_1.expectString, | ||
}); | ||
Object.assign(contents, doc); | ||
const exception = new models_0_1.TooManyRequestsException({ | ||
$metadata: deserializeMetadata(parsedOutput), | ||
...contents, | ||
}); | ||
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); | ||
}; | ||
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => { | ||
const contents = (0, smithy_client_1.map)({}); | ||
const data = parsedOutput.body; | ||
const doc = (0, smithy_client_1.take)(data, { | ||
message: smithy_client_1.expectString, | ||
}); | ||
Object.assign(contents, doc); | ||
const exception = new models_0_1.UnauthorizedException({ | ||
$metadata: deserializeMetadata(parsedOutput), | ||
...contents, | ||
}); | ||
return (0, smithy_client_1.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) => (0, smithy_client_1.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"; | ||
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { | ||
if (encoded.length) { | ||
return JSON.parse(encoded); | ||
} | ||
return {}; | ||
}); | ||
const parseErrorBody = async (errorBody, context) => { | ||
const value = await parseBody(errorBody, context); | ||
value.message = value.message ?? value.Message; | ||
return value; | ||
}; | ||
const loadRestJsonErrorCode = (output, data) => { | ||
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); | ||
const sanitizeErrorCode = (rawValue) => { | ||
let cleanValue = rawValue; | ||
if (typeof cleanValue === "number") { | ||
cleanValue = cleanValue.toString(); | ||
} | ||
if (cleanValue.indexOf(",") >= 0) { | ||
cleanValue = cleanValue.split(",")[0]; | ||
} | ||
if (cleanValue.indexOf(":") >= 0) { | ||
cleanValue = cleanValue.split(":")[0]; | ||
} | ||
if (cleanValue.indexOf("#") >= 0) { | ||
cleanValue = cleanValue.split("#")[1]; | ||
} | ||
return cleanValue; | ||
}; | ||
const headerKey = findKey(output.headers, "x-amzn-errortype"); | ||
if (headerKey !== undefined) { | ||
return sanitizeErrorCode(output.headers[headerKey]); | ||
} | ||
if (data.code !== undefined) { | ||
return sanitizeErrorCode(data.code); | ||
} | ||
if (data["__type"] !== undefined) { | ||
return sanitizeErrorCode(data["__type"]); | ||
} | ||
}; | ||
module.exports = require("../index.js"); |
@@ -1,22 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveRuntimeExtensions = void 0; | ||
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); | ||
const protocol_http_1 = require("@smithy/protocol-http"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
const asPartial = (t) => t; | ||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
const extensionConfiguration = { | ||
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), | ||
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), | ||
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), | ||
}; | ||
extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
return { | ||
...runtimeConfig, | ||
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), | ||
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), | ||
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), | ||
}; | ||
}; | ||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions; | ||
module.exports = require("./index.js"); |
@@ -1,19 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SSO = void 0; | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
const GetRoleCredentialsCommand_1 = require("./commands/GetRoleCredentialsCommand"); | ||
const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand"); | ||
const ListAccountsCommand_1 = require("./commands/ListAccountsCommand"); | ||
const LogoutCommand_1 = require("./commands/LogoutCommand"); | ||
const SSOClient_1 = require("./SSOClient"); | ||
const commands = { | ||
GetRoleCredentialsCommand: GetRoleCredentialsCommand_1.GetRoleCredentialsCommand, | ||
ListAccountRolesCommand: ListAccountRolesCommand_1.ListAccountRolesCommand, | ||
ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand, | ||
LogoutCommand: LogoutCommand_1.LogoutCommand, | ||
}; | ||
class SSO extends SSOClient_1.SSOClient { | ||
} | ||
exports.SSO = SSO; | ||
(0, smithy_client_1.createAggregatedClient)(commands, SSO); | ||
module.exports = require("./index.js"); |
@@ -1,40 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SSOClient = exports.__Client = void 0; | ||
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); | ||
const middleware_logger_1 = require("@aws-sdk/middleware-logger"); | ||
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); | ||
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); | ||
const config_resolver_1 = require("@smithy/config-resolver"); | ||
const middleware_content_length_1 = require("@smithy/middleware-content-length"); | ||
const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); | ||
const middleware_retry_1 = require("@smithy/middleware-retry"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } }); | ||
const EndpointParameters_1 = require("./endpoint/EndpointParameters"); | ||
const runtimeConfig_1 = require("./runtimeConfig"); | ||
const runtimeExtensions_1 = require("./runtimeExtensions"); | ||
class SSOClient extends smithy_client_1.Client { | ||
constructor(...[configuration]) { | ||
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); | ||
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); | ||
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); | ||
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); | ||
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); | ||
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); | ||
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); | ||
const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []); | ||
super(_config_7); | ||
this.config = _config_7; | ||
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); | ||
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); | ||
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); | ||
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); | ||
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); | ||
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); | ||
} | ||
destroy() { | ||
super.destroy(); | ||
} | ||
} | ||
exports.SSOClient = SSOClient; | ||
module.exports = require("./index.js"); |
{ | ||
"name": "@aws-sdk/client-sso", | ||
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", | ||
"version": "3.490.0", | ||
"version": "3.495.0", | ||
"scripts": { | ||
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:cjs": "node ../../scripts/compilation/inline client-sso", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
@@ -23,40 +23,40 @@ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/core": "3.490.0", | ||
"@aws-sdk/middleware-host-header": "3.489.0", | ||
"@aws-sdk/middleware-logger": "3.489.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.489.0", | ||
"@aws-sdk/middleware-user-agent": "3.489.0", | ||
"@aws-sdk/region-config-resolver": "3.489.0", | ||
"@aws-sdk/types": "3.489.0", | ||
"@aws-sdk/util-endpoints": "3.489.0", | ||
"@aws-sdk/util-user-agent-browser": "3.489.0", | ||
"@aws-sdk/util-user-agent-node": "3.489.0", | ||
"@smithy/config-resolver": "^2.0.23", | ||
"@smithy/core": "^1.2.2", | ||
"@smithy/fetch-http-handler": "^2.3.2", | ||
"@smithy/hash-node": "^2.0.18", | ||
"@smithy/invalid-dependency": "^2.0.16", | ||
"@smithy/middleware-content-length": "^2.0.18", | ||
"@smithy/middleware-endpoint": "^2.3.0", | ||
"@smithy/middleware-retry": "^2.0.26", | ||
"@smithy/middleware-serde": "^2.0.16", | ||
"@smithy/middleware-stack": "^2.0.10", | ||
"@smithy/node-config-provider": "^2.1.9", | ||
"@smithy/node-http-handler": "^2.2.2", | ||
"@smithy/protocol-http": "^3.0.12", | ||
"@smithy/smithy-client": "^2.2.1", | ||
"@smithy/types": "^2.8.0", | ||
"@smithy/url-parser": "^2.0.16", | ||
"@smithy/util-base64": "^2.0.1", | ||
"@smithy/util-body-length-browser": "^2.0.1", | ||
"@smithy/util-body-length-node": "^2.1.0", | ||
"@smithy/util-defaults-mode-browser": "^2.0.24", | ||
"@smithy/util-defaults-mode-node": "^2.0.32", | ||
"@smithy/util-endpoints": "^1.0.8", | ||
"@smithy/util-retry": "^2.0.9", | ||
"@smithy/util-utf8": "^2.0.2", | ||
"@aws-sdk/core": "3.495.0", | ||
"@aws-sdk/middleware-host-header": "3.495.0", | ||
"@aws-sdk/middleware-logger": "3.495.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.495.0", | ||
"@aws-sdk/middleware-user-agent": "3.495.0", | ||
"@aws-sdk/region-config-resolver": "3.495.0", | ||
"@aws-sdk/types": "3.495.0", | ||
"@aws-sdk/util-endpoints": "3.495.0", | ||
"@aws-sdk/util-user-agent-browser": "3.495.0", | ||
"@aws-sdk/util-user-agent-node": "3.495.0", | ||
"@smithy/config-resolver": "^2.1.0", | ||
"@smithy/core": "^1.3.0", | ||
"@smithy/fetch-http-handler": "^2.4.0", | ||
"@smithy/hash-node": "^2.1.0", | ||
"@smithy/invalid-dependency": "^2.1.0", | ||
"@smithy/middleware-content-length": "^2.1.0", | ||
"@smithy/middleware-endpoint": "^2.4.0", | ||
"@smithy/middleware-retry": "^2.1.0", | ||
"@smithy/middleware-serde": "^2.1.0", | ||
"@smithy/middleware-stack": "^2.1.0", | ||
"@smithy/node-config-provider": "^2.2.0", | ||
"@smithy/node-http-handler": "^2.3.0", | ||
"@smithy/protocol-http": "^3.1.0", | ||
"@smithy/smithy-client": "^2.3.0", | ||
"@smithy/types": "^2.9.0", | ||
"@smithy/url-parser": "^2.1.0", | ||
"@smithy/util-base64": "^2.1.0", | ||
"@smithy/util-body-length-browser": "^2.1.0", | ||
"@smithy/util-body-length-node": "^2.2.0", | ||
"@smithy/util-defaults-mode-browser": "^2.1.0", | ||
"@smithy/util-defaults-mode-node": "^2.1.0", | ||
"@smithy/util-endpoints": "^1.1.0", | ||
"@smithy/util-retry": "^2.1.0", | ||
"@smithy/util-utf8": "^2.1.0", | ||
"tslib": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@smithy/service-client-documentation-generator": "^2.0.0", | ||
"@smithy/service-client-documentation-generator": "^2.1.0", | ||
"@tsconfig/node14": "1.0.3", | ||
@@ -63,0 +63,0 @@ "@types/node": "^14.14.31", |
179447
3523
+ Added@aws-sdk/core@3.495.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.495.0(transitive)
+ Added@aws-sdk/middleware-logger@3.495.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.495.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.495.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.495.0(transitive)
+ Added@aws-sdk/types@3.495.0(transitive)
+ Added@aws-sdk/util-endpoints@3.495.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.495.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.495.0(transitive)
- Removed@aws-sdk/core@3.490.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.489.0(transitive)
- Removed@aws-sdk/middleware-logger@3.489.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.489.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.489.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.489.0(transitive)
- Removed@aws-sdk/types@3.489.0(transitive)
- Removed@aws-sdk/util-endpoints@3.489.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.489.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.489.0(transitive)
Updated@aws-sdk/core@3.495.0
Updated@aws-sdk/types@3.495.0
Updated@smithy/core@^1.3.0
Updated@smithy/hash-node@^2.1.0
Updated@smithy/protocol-http@^3.1.0
Updated@smithy/smithy-client@^2.3.0
Updated@smithy/types@^2.9.0
Updated@smithy/url-parser@^2.1.0
Updated@smithy/util-base64@^2.1.0
Updated@smithy/util-retry@^2.1.0
Updated@smithy/util-utf8@^2.1.0