/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-schemas/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 SchemasServiceException = require('./models/SchemasServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "schemas", });};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 SchemasClient 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.defaultSchemasHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class CreateDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "CreateDiscoverer", {}) .n("SchemasClient", "CreateDiscovererCommand") .sc(schemas_0.CreateDiscoverer$) .build() {} class CreateRegistryCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "CreateRegistry", {}) .n("SchemasClient", "CreateRegistryCommand") .sc(schemas_0.CreateRegistry$) .build() {} class CreateSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "CreateSchema", {}) .n("SchemasClient", "CreateSchemaCommand") .sc(schemas_0.CreateSchema$) .build() {} class DeleteDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DeleteDiscoverer", {}) .n("SchemasClient", "DeleteDiscovererCommand") .sc(schemas_0.DeleteDiscoverer$) .build() {} class DeleteRegistryCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DeleteRegistry", {}) .n("SchemasClient", "DeleteRegistryCommand") .sc(schemas_0.DeleteRegistry$) .build() {} class DeleteResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DeleteResourcePolicy", {}) .n("SchemasClient", "DeleteResourcePolicyCommand") .sc(schemas_0.DeleteResourcePolicy$) .build() {} class DeleteSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DeleteSchema", {}) .n("SchemasClient", "DeleteSchemaCommand") .sc(schemas_0.DeleteSchema$) .build() {} class DeleteSchemaVersionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DeleteSchemaVersion", {}) .n("SchemasClient", "DeleteSchemaVersionCommand") .sc(schemas_0.DeleteSchemaVersion$) .build() {} class DescribeCodeBindingCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DescribeCodeBinding", {}) .n("SchemasClient", "DescribeCodeBindingCommand") .sc(schemas_0.DescribeCodeBinding$) .build() {} class DescribeDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DescribeDiscoverer", {}) .n("SchemasClient", "DescribeDiscovererCommand") .sc(schemas_0.DescribeDiscoverer$) .build() {} class DescribeRegistryCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DescribeRegistry", {}) .n("SchemasClient", "DescribeRegistryCommand") .sc(schemas_0.DescribeRegistry$) .build() {} class DescribeSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "DescribeSchema", {}) .n("SchemasClient", "DescribeSchemaCommand") .sc(schemas_0.DescribeSchema$) .build() {} class ExportSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ExportSchema", {}) .n("SchemasClient", "ExportSchemaCommand") .sc(schemas_0.ExportSchema$) .build() {} class GetCodeBindingSourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "GetCodeBindingSource", {}) .n("SchemasClient", "GetCodeBindingSourceCommand") .sc(schemas_0.GetCodeBindingSource$) .build() {} class GetDiscoveredSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "GetDiscoveredSchema", {}) .n("SchemasClient", "GetDiscoveredSchemaCommand") .sc(schemas_0.GetDiscoveredSchema$) .build() {} class GetResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "GetResourcePolicy", {}) .n("SchemasClient", "GetResourcePolicyCommand") .sc(schemas_0.GetResourcePolicy$) .build() {} class ListDiscoverersCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ListDiscoverers", {}) .n("SchemasClient", "ListDiscoverersCommand") .sc(schemas_0.ListDiscoverers$) .build() {} class ListRegistriesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ListRegistries", {}) .n("SchemasClient", "ListRegistriesCommand") .sc(schemas_0.ListRegistries$) .build() {} class ListSchemasCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ListSchemas", {}) .n("SchemasClient", "ListSchemasCommand") .sc(schemas_0.ListSchemas$) .build() {} class ListSchemaVersionsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ListSchemaVersions", {}) .n("SchemasClient", "ListSchemaVersionsCommand") .sc(schemas_0.ListSchemaVersions$) .build() {} class ListTagsForResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "ListTagsForResource", {}) .n("SchemasClient", "ListTagsForResourceCommand") .sc(schemas_0.ListTagsForResource$) .build() {} class PutCodeBindingCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "PutCodeBinding", {}) .n("SchemasClient", "PutCodeBindingCommand") .sc(schemas_0.PutCodeBinding$) .build() {} class PutResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "PutResourcePolicy", {}) .n("SchemasClient", "PutResourcePolicyCommand") .sc(schemas_0.PutResourcePolicy$) .build() {} class SearchSchemasCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "SearchSchemas", {}) .n("SchemasClient", "SearchSchemasCommand") .sc(schemas_0.SearchSchemas$) .build() {} class StartDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "StartDiscoverer", {}) .n("SchemasClient", "StartDiscovererCommand") .sc(schemas_0.StartDiscoverer$) .build() {} class StopDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "StopDiscoverer", {}) .n("SchemasClient", "StopDiscovererCommand") .sc(schemas_0.StopDiscoverer$) .build() {} class TagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "TagResource", {}) .n("SchemasClient", "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("schemas", "UntagResource", {}) .n("SchemasClient", "UntagResourceCommand") .sc(schemas_0.UntagResource$) .build() {} class UpdateDiscovererCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "UpdateDiscoverer", {}) .n("SchemasClient", "UpdateDiscovererCommand") .sc(schemas_0.UpdateDiscoverer$) .build() {} class UpdateRegistryCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "UpdateRegistry", {}) .n("SchemasClient", "UpdateRegistryCommand") .sc(schemas_0.UpdateRegistry$) .build() {} class UpdateSchemaCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("schemas", "UpdateSchema", {}) .n("SchemasClient", "UpdateSchemaCommand") .sc(schemas_0.UpdateSchema$) .build() {} const paginateListDiscoverers = core.createPaginator(SchemasClient, ListDiscoverersCommand, "NextToken", "NextToken", "Limit"); const paginateListRegistries = core.createPaginator(SchemasClient, ListRegistriesCommand, "NextToken", "NextToken", "Limit"); const paginateListSchemas = core.createPaginator(SchemasClient, ListSchemasCommand, "NextToken", "NextToken", "Limit"); const paginateListSchemaVersions = core.createPaginator(SchemasClient, ListSchemaVersionsCommand, "NextToken", "NextToken", "Limit"); const paginateSearchSchemas = core.createPaginator(SchemasClient, SearchSchemasCommand, "NextToken", "NextToken", "Limit"); const checkState = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeCodeBindingCommand(input)); reason = result; try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_COMPLETE") { return { state: client.WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_IN_PROGRESS") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_FAILED") { return { state: client.WaiterState.FAILURE, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "NotFoundException") { return { state: client.WaiterState.FAILURE, reason }; } } return { state: client.WaiterState.RETRY, reason };};const waitForCodeBindingExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilCodeBindingExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState); return client.checkExceptions(result);}; const commands = { CreateDiscovererCommand, CreateRegistryCommand, CreateSchemaCommand, DeleteDiscovererCommand, DeleteRegistryCommand, DeleteResourcePolicyCommand, DeleteSchemaCommand, DeleteSchemaVersionCommand, DescribeCodeBindingCommand, DescribeDiscovererCommand, DescribeRegistryCommand, DescribeSchemaCommand, ExportSchemaCommand, GetCodeBindingSourceCommand, GetDiscoveredSchemaCommand, GetResourcePolicyCommand, ListDiscoverersCommand, ListRegistriesCommand, ListSchemasCommand, ListSchemaVersionsCommand, ListTagsForResourceCommand, PutCodeBindingCommand, PutResourcePolicyCommand, SearchSchemasCommand, StartDiscovererCommand, StopDiscovererCommand, TagResourceCommand, UntagResourceCommand, UpdateDiscovererCommand, UpdateRegistryCommand, UpdateSchemaCommand,};const paginators = { paginateListDiscoverers, paginateListRegistries, paginateListSchemas, paginateListSchemaVersions, paginateSearchSchemas,};const waiters = { waitUntilCodeBindingExists,};class Schemas extends SchemasClient {}client.createAggregatedClient(commands, Schemas, { paginators, waiters }); const DiscovererState = { STARTED: "STARTED", STOPPED: "STOPPED",};const Type = { JSONSchemaDraft4: "JSONSchemaDraft4", OpenApi3: "OpenApi3",};const CodeGenerationStatus = { CREATE_COMPLETE: "CREATE_COMPLETE", CREATE_FAILED: "CREATE_FAILED", CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.SchemasServiceException = SchemasServiceException.SchemasServiceException;exports.CodeGenerationStatus = CodeGenerationStatus;exports.CreateDiscovererCommand = CreateDiscovererCommand;exports.CreateRegistryCommand = CreateRegistryCommand;exports.CreateSchemaCommand = CreateSchemaCommand;exports.DeleteDiscovererCommand = DeleteDiscovererCommand;exports.DeleteRegistryCommand = DeleteRegistryCommand;exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;exports.DeleteSchemaCommand = DeleteSchemaCommand;exports.DeleteSchemaVersionCommand = DeleteSchemaVersionCommand;exports.DescribeCodeBindingCommand = DescribeCodeBindingCommand;exports.DescribeDiscovererCommand = DescribeDiscovererCommand;exports.DescribeRegistryCommand = DescribeRegistryCommand;exports.DescribeSchemaCommand = DescribeSchemaCommand;exports.DiscovererState = DiscovererState;exports.ExportSchemaCommand = ExportSchemaCommand;exports.GetCodeBindingSourceCommand = GetCodeBindingSourceCommand;exports.GetDiscoveredSchemaCommand = GetDiscoveredSchemaCommand;exports.GetResourcePolicyCommand = GetResourcePolicyCommand;exports.ListDiscoverersCommand = ListDiscoverersCommand;exports.ListRegistriesCommand = ListRegistriesCommand;exports.ListSchemaVersionsCommand = ListSchemaVersionsCommand;exports.ListSchemasCommand = ListSchemasCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.PutCodeBindingCommand = PutCodeBindingCommand;exports.PutResourcePolicyCommand = PutResourcePolicyCommand;exports.Schemas = Schemas;exports.SchemasClient = SchemasClient;exports.SearchSchemasCommand = SearchSchemasCommand;exports.StartDiscovererCommand = StartDiscovererCommand;exports.StopDiscovererCommand = StopDiscovererCommand;exports.TagResourceCommand = TagResourceCommand;exports.Type = Type;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateDiscovererCommand = UpdateDiscovererCommand;exports.UpdateRegistryCommand = UpdateRegistryCommand;exports.UpdateSchemaCommand = UpdateSchemaCommand;exports.paginateListDiscoverers = paginateListDiscoverers;exports.paginateListRegistries = paginateListRegistries;exports.paginateListSchemaVersions = paginateListSchemaVersions;exports.paginateListSchemas = paginateListSchemas;exports.paginateSearchSchemas = paginateSearchSchemas;exports.waitForCodeBindingExists = waitForCodeBindingExists;exports.waitUntilCodeBindingExists = waitUntilCodeBindingExists;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];});