/proc/self/root/var/runtime/node_modules/@aws-sdk/client-signer/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
'use strict'; var client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var SignerServiceException = require('./models/SignerServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "signer", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; 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; }, };};const resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials(), };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class SignerClient extends client.Client { config; constructor(...[configuration]) { const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = client$1.resolveUserAgentConfig(_config_1); const _config_3 = retry.resolveRetryConfig(_config_2); const _config_4 = config.resolveRegionConfig(_config_3); const _config_5 = client$1.resolveHostHeaderConfig(_config_4); const _config_6 = endpoints.resolveEndpointConfig(_config_5); const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); this.middlewareStack.use(retry.getRetryPlugin(this.config)); this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSignerHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class AddProfilePermissionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "AddProfilePermission", {}) .n("SignerClient", "AddProfilePermissionCommand") .sc(schemas_0.AddProfilePermission$) .build() {} class CancelSigningProfileCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "CancelSigningProfile", {}) .n("SignerClient", "CancelSigningProfileCommand") .sc(schemas_0.CancelSigningProfile$) .build() {} class DescribeSigningJobCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "DescribeSigningJob", {}) .n("SignerClient", "DescribeSigningJobCommand") .sc(schemas_0.DescribeSigningJob$) .build() {} class GetRevocationStatusCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "GetRevocationStatus", {}) .n("SignerClient", "GetRevocationStatusCommand") .sc(schemas_0.GetRevocationStatus$) .build() {} class GetSigningPlatformCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "GetSigningPlatform", {}) .n("SignerClient", "GetSigningPlatformCommand") .sc(schemas_0.GetSigningPlatform$) .build() {} class GetSigningProfileCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "GetSigningProfile", {}) .n("SignerClient", "GetSigningProfileCommand") .sc(schemas_0.GetSigningProfile$) .build() {} class ListProfilePermissionsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "ListProfilePermissions", {}) .n("SignerClient", "ListProfilePermissionsCommand") .sc(schemas_0.ListProfilePermissions$) .build() {} class ListSigningJobsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "ListSigningJobs", {}) .n("SignerClient", "ListSigningJobsCommand") .sc(schemas_0.ListSigningJobs$) .build() {} class ListSigningPlatformsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "ListSigningPlatforms", {}) .n("SignerClient", "ListSigningPlatformsCommand") .sc(schemas_0.ListSigningPlatforms$) .build() {} class ListSigningProfilesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "ListSigningProfiles", {}) .n("SignerClient", "ListSigningProfilesCommand") .sc(schemas_0.ListSigningProfiles$) .build() {} class ListTagsForResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "ListTagsForResource", {}) .n("SignerClient", "ListTagsForResourceCommand") .sc(schemas_0.ListTagsForResource$) .build() {} class PutSigningProfileCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "PutSigningProfile", {}) .n("SignerClient", "PutSigningProfileCommand") .sc(schemas_0.PutSigningProfile$) .build() {} class RemoveProfilePermissionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "RemoveProfilePermission", {}) .n("SignerClient", "RemoveProfilePermissionCommand") .sc(schemas_0.RemoveProfilePermission$) .build() {} class RevokeSignatureCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "RevokeSignature", {}) .n("SignerClient", "RevokeSignatureCommand") .sc(schemas_0.RevokeSignature$) .build() {} class RevokeSigningProfileCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "RevokeSigningProfile", {}) .n("SignerClient", "RevokeSigningProfileCommand") .sc(schemas_0.RevokeSigningProfile$) .build() {} class SignPayloadCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "SignPayload", {}) .n("SignerClient", "SignPayloadCommand") .sc(schemas_0.SignPayload$) .build() {} class StartSigningJobCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "StartSigningJob", {}) .n("SignerClient", "StartSigningJobCommand") .sc(schemas_0.StartSigningJob$) .build() {} class TagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "TagResource", {}) .n("SignerClient", "TagResourceCommand") .sc(schemas_0.TagResource$) .build() {} class UntagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("WallabyService", "UntagResource", {}) .n("SignerClient", "UntagResourceCommand") .sc(schemas_0.UntagResource$) .build() {} const paginateListSigningJobs = core.createPaginator(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults"); const paginateListSigningPlatforms = core.createPaginator(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults"); const paginateListSigningProfiles = core.createPaginator(SignerClient, ListSigningProfilesCommand, "nextToken", "nextToken", "maxResults"); const checkState = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeSigningJobCommand(input)); reason = result; try { const returnComparator = () => { return result.status; }; if (returnComparator() === "Succeeded") { return { state: client.WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.status; }; if (returnComparator() === "Failed") { return { state: client.WaiterState.FAILURE, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: client.WaiterState.FAILURE, reason }; } } return { state: client.WaiterState.RETRY, reason };};const waitForSuccessfulSigningJob = async (params, input) => { const serviceDefaults = { minDelay: 20, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilSuccessfulSigningJob = async (params, input) => { const serviceDefaults = { minDelay: 20, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState); return client.checkExceptions(result);}; const commands = { AddProfilePermissionCommand, CancelSigningProfileCommand, DescribeSigningJobCommand, GetRevocationStatusCommand, GetSigningPlatformCommand, GetSigningProfileCommand, ListProfilePermissionsCommand, ListSigningJobsCommand, ListSigningPlatformsCommand, ListSigningProfilesCommand, ListTagsForResourceCommand, PutSigningProfileCommand, RemoveProfilePermissionCommand, RevokeSignatureCommand, RevokeSigningProfileCommand, SignPayloadCommand, StartSigningJobCommand, TagResourceCommand, UntagResourceCommand,};const paginators = { paginateListSigningJobs, paginateListSigningPlatforms, paginateListSigningProfiles,};const waiters = { waitUntilSuccessfulSigningJob,};class Signer extends SignerClient {}client.createAggregatedClient(commands, Signer, { paginators, waiters }); const Category = { AWSIoT: "AWSIoT",};const EncryptionAlgorithm = { ECDSA: "ECDSA", RSA: "RSA",};const HashAlgorithm = { SHA1: "SHA1", SHA256: "SHA256",};const ImageFormat = { JSON: "JSON", JSONDetached: "JSONDetached", JSONEmbedded: "JSONEmbedded",};const SigningStatus = { Failed: "Failed", InProgress: "InProgress", Succeeded: "Succeeded",};const ValidityType = { DAYS: "DAYS", MONTHS: "MONTHS", YEARS: "YEARS",};const SigningProfileStatus = { Active: "Active", Canceled: "Canceled", Revoked: "Revoked",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.SignerServiceException = SignerServiceException.SignerServiceException;exports.AddProfilePermissionCommand = AddProfilePermissionCommand;exports.CancelSigningProfileCommand = CancelSigningProfileCommand;exports.Category = Category;exports.DescribeSigningJobCommand = DescribeSigningJobCommand;exports.EncryptionAlgorithm = EncryptionAlgorithm;exports.GetRevocationStatusCommand = GetRevocationStatusCommand;exports.GetSigningPlatformCommand = GetSigningPlatformCommand;exports.GetSigningProfileCommand = GetSigningProfileCommand;exports.HashAlgorithm = HashAlgorithm;exports.ImageFormat = ImageFormat;exports.ListProfilePermissionsCommand = ListProfilePermissionsCommand;exports.ListSigningJobsCommand = ListSigningJobsCommand;exports.ListSigningPlatformsCommand = ListSigningPlatformsCommand;exports.ListSigningProfilesCommand = ListSigningProfilesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.PutSigningProfileCommand = PutSigningProfileCommand;exports.RemoveProfilePermissionCommand = RemoveProfilePermissionCommand;exports.RevokeSignatureCommand = RevokeSignatureCommand;exports.RevokeSigningProfileCommand = RevokeSigningProfileCommand;exports.SignPayloadCommand = SignPayloadCommand;exports.Signer = Signer;exports.SignerClient = SignerClient;exports.SigningProfileStatus = SigningProfileStatus;exports.SigningStatus = SigningStatus;exports.StartSigningJobCommand = StartSigningJobCommand;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.ValidityType = ValidityType;exports.paginateListSigningJobs = paginateListSigningJobs;exports.paginateListSigningPlatforms = paginateListSigningPlatforms;exports.paginateListSigningProfiles = paginateListSigningProfiles;exports.waitForSuccessfulSigningJob = waitForSuccessfulSigningJob;exports.waitUntilSuccessfulSigningJob = waitUntilSuccessfulSigningJob;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') && !Object.prototype.hasOwnProperty.call(exports, '__proto__') && Object.defineProperty(exports, '__proto__', { enumerable: true, value: schemas_0['__proto__'] }); Object.keys(schemas_0).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') && !Object.prototype.hasOwnProperty.call(exports, '__proto__') && Object.defineProperty(exports, '__proto__', { enumerable: true, value: errors['__proto__'] }); Object.keys(errors).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});