/proc/2/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 /.
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultSchemasHttpAuthSchemeParametersProvider = async (config, context, input) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })(), };};function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "schemas", region: authParameters.region, }, propertiesExtractor: (config, context) => ({ signingProperties: { config, context, }, }), };}const defaultSchemasHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options;};const resolveHttpAuthSchemeConfig = (config) => { const config_0 = resolveAwsSdkSigV4Config(config); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), });}; 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" },}; var version = "3.1104.0";var packageInfo = { version: version}; const k = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];const _data = { conditions: [ [c, [g]], [c, j], ["aws.partition", j, d], [e, [{ [k]: "UseFIPS" }, b]], [e, [{ [k]: "UseDualStack" }, b]], [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]] ], results: [ [a], [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [g, i], ["https://schemas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://schemas-fips.{Region}.{PartitionResult#dnsSuffix}", i], [a, "FIPS is enabled but this partition does not support FIPS"], ["https://schemas.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "DualStack is enabled but this partition does not support DualStack"], ["https://schemas.{Region}.{PartitionResult#dnsSuffix}", i], [a, "Invalid Configuration: Missing Region"] ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([ -1, 1, -1, 0, 12, 3, 1, 4, r + 11, 2, 5, r + 11, 3, 8, 6, 4, 7, r + 10, 5, r + 8, r + 9, 4, 10, 9, 6, r + 6, r + 7, 5, 11, r + 5, 6, r + 4, r + 5, 3, r + 1, 13, 4, r + 2, r + 3,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => { return cache.get(endpointParams, () => decideEndpoint(bdd, { endpointParams: endpointParams, logger: context.logger, }));};customEndpointFunctions.aws = awsEndpointFunctions; class SchemasServiceException extends ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SchemasServiceException.prototype); }} class BadRequestException extends SchemasServiceException { name = "BadRequestException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "BadRequestException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, BadRequestException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class ConflictException extends SchemasServiceException { name = "ConflictException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConflictException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class ForbiddenException extends SchemasServiceException { name = "ForbiddenException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "ForbiddenException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ForbiddenException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class InternalServerErrorException extends SchemasServiceException { name = "InternalServerErrorException"; $fault = "server"; Code; Message; constructor(opts) { super({ name: "InternalServerErrorException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerErrorException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class ServiceUnavailableException extends SchemasServiceException { name = "ServiceUnavailableException"; $fault = "server"; Code; Message; constructor(opts) { super({ name: "ServiceUnavailableException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, ServiceUnavailableException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class UnauthorizedException extends SchemasServiceException { name = "UnauthorizedException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "UnauthorizedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnauthorizedException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class NotFoundException extends SchemasServiceException { name = "NotFoundException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "NotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, NotFoundException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class TooManyRequestsException extends SchemasServiceException { name = "TooManyRequestsException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "TooManyRequestsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TooManyRequestsException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class GoneException extends SchemasServiceException { name = "GoneException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "GoneException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, GoneException.prototype); this.Code = opts.Code; this.Message = opts.Message; }}class PreconditionFailedException extends SchemasServiceException { name = "PreconditionFailedException"; $fault = "client"; Code; Message; constructor(opts) { super({ name: "PreconditionFailedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PreconditionFailedException.prototype); this.Code = opts.Code; this.Message = opts.Message; }} const _B = "Body";const _BRE = "BadRequestException";const _C = "Code";const _CA = "CrossAccount";const _CD = "CreationDate";const _CDR = "CreateDiscovererRequest";const _CDRr = "CreateDiscovererResponse";const _CDr = "CreatedDate";const _CDre = "CreateDiscoverer";const _CE = "ConflictException";const _CR = "CreateRegistry";const _CRR = "CreateRegistryRequest";const _CRRr = "CreateRegistryResponse";const _CS = "CreateSchema";const _CSR = "CreateSchemaRequest";const _CSRr = "CreateSchemaResponse";const _CTI = "ClientTokenId";const _Co = "Content";const _D = "Description";const _DA = "DiscovererArn";const _DCB = "DescribeCodeBinding";const _DCBR = "DescribeCodeBindingRequest";const _DCBRe = "DescribeCodeBindingResponse";const _DD = "DeleteDiscoverer";const _DDR = "DeleteDiscovererRequest";const _DDRe = "DescribeDiscovererRequest";const _DDRes = "DescribeDiscovererResponse";const _DDe = "DescribeDiscoverer";const _DI = "DiscovererId";const _DIP = "DiscovererIdPrefix";const _DR = "DeleteRegistry";const _DRP = "DeleteResourcePolicy";const _DRPR = "DeleteResourcePolicyRequest";const _DRR = "DeleteRegistryRequest";const _DRRe = "DescribeRegistryRequest";const _DRRes = "DescribeRegistryResponse";const _DRe = "DescribeRegistry";const _DS = "DiscovererSummary";const _DSR = "DeleteSchemaRequest";const _DSRe = "DescribeSchemaRequest";const _DSRes = "DescribeSchemaResponse";const _DSV = "DeleteSchemaVersion";const _DSVR = "DeleteSchemaVersionRequest";const _DSe = "DeleteSchema";const _DSes = "DescribeSchema";const _Di = "Discoverers";const _E = "Events";const _ES = "ExportSchema";const _ESR = "ExportSchemaRequest";const _ESRx = "ExportSchemaResponse";const _FE = "ForbiddenException";const _GCBS = "GetCodeBindingSource";const _GCBSR = "GetCodeBindingSourceRequest";const _GCBSRe = "GetCodeBindingSourceResponse";const _GDS = "GetDiscoveredSchema";const _GDSR = "GetDiscoveredSchemaRequest";const _GDSRe = "GetDiscoveredSchemaResponse";const _GE = "GoneException";const _GRP = "GetResourcePolicy";const _GRPR = "GetResourcePolicyRequest";const _GRPRe = "GetResourcePolicyResponse";const _ISEE = "InternalServerErrorException";const _K = "Keywords";const _L = "Language";const _LD = "ListDiscoverers";const _LDR = "ListDiscoverersRequest";const _LDRi = "ListDiscoverersResponse";const _LM = "LastModified";const _LR = "ListRegistries";const _LRR = "ListRegistriesRequest";const _LRRi = "ListRegistriesResponse";const _LS = "ListSchemas";const _LSR = "ListSchemasRequest";const _LSRi = "ListSchemasResponse";const _LSV = "ListSchemaVersions";const _LSVR = "ListSchemaVersionsRequest";const _LSVRi = "ListSchemaVersionsResponse";const _LTFR = "ListTagsForResource";const _LTFRR = "ListTagsForResourceRequest";const _LTFRRi = "ListTagsForResourceResponse";const _Li = "Limit";const _M = "Message";const _NFE = "NotFoundException";const _NT = "NextToken";const _P = "Policy";const _PCB = "PutCodeBinding";const _PCBR = "PutCodeBindingRequest";const _PCBRu = "PutCodeBindingResponse";const _PFE = "PreconditionFailedException";const _PRP = "PutResourcePolicy";const _PRPR = "PutResourcePolicyRequest";const _PRPRu = "PutResourcePolicyResponse";const _R = "Registries";const _RA = "RegistryArn";const _RAe = "ResourceArn";const _RI = "RevisionId";const _RN = "RegistryName";const _RNP = "RegistryNamePrefix";const _RS = "RegistrySummary";const _S = "State";const _SA = "SourceArn";const _SAP = "SourceArnPrefix";const _SAc = "SchemaArn";const _SD = "StartDiscoverer";const _SDR = "StartDiscovererRequest";const _SDRt = "StartDiscovererResponse";const _SDRto = "StopDiscovererRequest";const _SDRtop = "StopDiscovererResponse";const _SDt = "StopDiscoverer";const _SN = "SchemaName";const _SNP = "SchemaNamePrefix";const _SS = "SchemaSummary";const _SSR = "SearchSchemasRequest";const _SSRe = "SearchSchemasResponse";const _SSS = "SearchSchemaSummary";const _SSVS = "SearchSchemaVersionSummary";const _SSe = "SearchSchemas";const _SUE = "ServiceUnavailableException";const _SV = "SchemaVersion";const _SVS = "SchemaVersionSummary";const _SVc = "SchemaVersions";const _Sc = "Scope";const _Sch = "Schemas";const _Ss = "SynthesizedJson__string";const _St = "Status";const _T = "Tags";const _TK = "TagKeys";const _TMRE = "TooManyRequestsException";const _TR = "TagResource";const _TRR = "TagResourceRequest";const _Ty = "Type";const _UD = "UpdateDiscoverer";const _UDR = "UpdateDiscovererRequest";const _UDRp = "UpdateDiscovererResponse";const _UE = "UnauthorizedException";const _UR = "UntagResource";const _URR = "UntagResourceRequest";const _URRp = "UpdateRegistryRequest";const _URRpd = "UpdateRegistryResponse";const _URp = "UpdateRegistry";const _US = "UpdateSchema";const _USR = "UpdateSchemaRequest";const _USRp = "UpdateSchemaResponse";const _VC = "VersionCount";const _VCD = "VersionCreatedDate";const _a = "application/json";const _c = "client";const _dIP = "discovererIdPrefix";const _e = "error";const _h = "http";const _hE = "httpError";const _hQ = "httpQuery";const _jN = "jsonName";const _k = "keywords";const _l = "limit";const _lODS = "__listOfDiscovererSummary";const _lORS = "__listOfRegistrySummary";const _lOSS = "__listOfSchemaSummary";const _lOSSS = "__listOfSearchSchemaSummary";const _lOSSVS = "__listOfSearchSchemaVersionSummary";const _lOSVS = "__listOfSchemaVersionSummary";const _mT = "mediaType";const _nT = "nextToken";const _rN = "registryName";const _rNP = "registryNamePrefix";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.schemas";const _sAP = "sourceArnPrefix";const _sNP = "schemaNamePrefix";const _sV = "schemaVersion";const _sc = "scope";const _se = "server";const _t = "tags";const _tK = "tagKeys";const _ty = "type";const n0 = "com.amazonaws.schemas";const _s_registry = TypeRegistry.for(_s);var SchemasServiceException$ = [-3, _s, "SchemasServiceException", 0, [], []];_s_registry.registerError(SchemasServiceException$, SchemasServiceException);const n0_registry = TypeRegistry.for(n0);var BadRequestException$ = [-3, n0, _BRE, { [_e]: _c, [_hE]: 400 }, [_C, _M], [0, 0], 2];n0_registry.registerError(BadRequestException$, BadRequestException);var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_C, _M], [0, 0], 2];n0_registry.registerError(ConflictException$, ConflictException);var ForbiddenException$ = [-3, n0, _FE, { [_e]: _c, [_hE]: 403 }, [_C, _M], [0, 0], 2];n0_registry.registerError(ForbiddenException$, ForbiddenException);var GoneException$ = [-3, n0, _GE, { [_e]: _c, [_hE]: 410 }, [_C, _M], [0, 0], 2];n0_registry.registerError(GoneException$, GoneException);var InternalServerErrorException$ = [-3, n0, _ISEE, { [_e]: _se, [_hE]: 500 }, [_C, _M], [0, 0], 2];n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);var NotFoundException$ = [-3, n0, _NFE, { [_e]: _c, [_hE]: 404 }, [_C, _M], [0, 0], 2];n0_registry.registerError(NotFoundException$, NotFoundException);var PreconditionFailedException$ = [-3, n0, _PFE, { [_e]: _c, [_hE]: 412 }, [_C, _M], [0, 0], 2];n0_registry.registerError(PreconditionFailedException$, PreconditionFailedException);var ServiceUnavailableException$ = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [_C, _M], [0, 0], 2];n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_C, _M], [0, 0], 2];n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_C, _M], [0, 0], 2];n0_registry.registerError(UnauthorizedException$, UnauthorizedException);const errorTypeRegistries = [ _s_registry, n0_registry,];var SynthesizedJson__string = [0, n0, _Ss, { [_mT]: _a }, 0];var CreateDiscovererRequest$ = [3, n0, _CDR, 0, [_SA, _D, _CA, _T], [0, 0, 2, [128 | 0, { [_jN]: _t }]], 1];var CreateDiscovererResponse$ = [3, n0, _CDRr, 0, [_D, _DA, _DI, _SA, _S, _CA, _T], [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]];var CreateRegistryRequest$ = [3, n0, _CRR, 0, [_RN, _D, _T], [[0, 1], 0, [128 | 0, { [_jN]: _t }]], 1];var CreateRegistryResponse$ = [3, n0, _CRRr, 0, [_D, _RA, _RN, _T], [0, 0, 0, [128 | 0, { [_jN]: _t }]]];var CreateSchemaRequest$ = [3, n0, _CSR, 0, [_Co, _RN, _SN, _Ty, _D, _T], [0, [0, 1], [0, 1], 0, 0, [128 | 0, { [_jN]: _t }]], 4];var CreateSchemaResponse$ = [3, n0, _CSRr, 0, [_D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD], [0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]];var DeleteDiscovererRequest$ = [3, n0, _DDR, 0, [_DI], [[0, 1]], 1];var DeleteRegistryRequest$ = [3, n0, _DRR, 0, [_RN], [[0, 1]], 1];var DeleteResourcePolicyRequest$ = [3, n0, _DRPR, 0, [_RN], [[0, { [_hQ]: _rN }]]];var DeleteSchemaRequest$ = [3, n0, _DSR, 0, [_RN, _SN], [[0, 1], [0, 1]], 2];var DeleteSchemaVersionRequest$ = [3, n0, _DSVR, 0, [_RN, _SN, _SV], [[0, 1], [0, 1], [0, 1]], 3];var DescribeCodeBindingRequest$ = [3, n0, _DCBR, 0, [_L, _RN, _SN, _SV], [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3];var DescribeCodeBindingResponse$ = [3, n0, _DCBRe, 0, [_CD, _LM, _SV, _St], [5, 5, 0, 0]];var DescribeDiscovererRequest$ = [3, n0, _DDRe, 0, [_DI], [[0, 1]], 1];var DescribeDiscovererResponse$ = [3, n0, _DDRes, 0, [_D, _DA, _DI, _SA, _S, _CA, _T], [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]];var DescribeRegistryRequest$ = [3, n0, _DRRe, 0, [_RN], [[0, 1]], 1];var DescribeRegistryResponse$ = [3, n0, _DRRes, 0, [_D, _RA, _RN, _T], [0, 0, 0, [128 | 0, { [_jN]: _t }]]];var DescribeSchemaRequest$ = [3, n0, _DSRe, 0, [_RN, _SN, _SV], [[0, 1], [0, 1], [0, { [_hQ]: _sV }]], 2];var DescribeSchemaResponse$ = [3, n0, _DSRes, 0, [_Co, _D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD], [0, 0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]];var DiscovererSummary$ = [3, n0, _DS, 0, [_DA, _DI, _SA, _S, _CA, _T], [0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]];var ExportSchemaRequest$ = [3, n0, _ESR, 0, [_RN, _SN, _Ty, _SV], [[0, 1], [0, 1], [0, { [_hQ]: _ty }], [0, { [_hQ]: _sV }]], 3];var ExportSchemaResponse$ = [3, n0, _ESRx, 0, [_Co, _SAc, _SN, _SV, _Ty], [0, 0, 0, 0, 0]];var GetCodeBindingSourceRequest$ = [3, n0, _GCBSR, 0, [_L, _RN, _SN, _SV], [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3];var GetCodeBindingSourceResponse$ = [3, n0, _GCBSRe, 0, [_B], [[21, 16]]];var GetDiscoveredSchemaRequest$ = [3, n0, _GDSR, 0, [_E, _Ty], [64 | 0, 0], 2];var GetDiscoveredSchemaResponse$ = [3, n0, _GDSRe, 0, [_Co], [0]];var GetResourcePolicyRequest$ = [3, n0, _GRPR, 0, [_RN], [[0, { [_hQ]: _rN }]]];var GetResourcePolicyResponse$ = [3, n0, _GRPRe, 0, [_P, _RI], [[() => SynthesizedJson__string, 0], 0]];var ListDiscoverersRequest$ = [3, n0, _LDR, 0, [_DIP, _Li, _NT, _SAP], [[0, { [_hQ]: _dIP }], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sAP }]]];var ListDiscoverersResponse$ = [3, n0, _LDRi, 0, [_Di, _NT], [[() => __listOfDiscovererSummary, 0], 0]];var ListRegistriesRequest$ = [3, n0, _LRR, 0, [_Li, _NT, _RNP, _Sc], [[1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _rNP }], [0, { [_hQ]: _sc }]]];var ListRegistriesResponse$ = [3, n0, _LRRi, 0, [_NT, _R], [0, [() => __listOfRegistrySummary, 0]]];var ListSchemasRequest$ = [3, n0, _LSR, 0, [_RN, _Li, _NT, _SNP], [[0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sNP }]], 1];var ListSchemasResponse$ = [3, n0, _LSRi, 0, [_NT, _Sch], [0, [() => __listOfSchemaSummary, 0]]];var ListSchemaVersionsRequest$ = [3, n0, _LSVR, 0, [_RN, _SN, _Li, _NT], [[0, 1], [0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }]], 2];var ListSchemaVersionsResponse$ = [3, n0, _LSVRi, 0, [_NT, _SVc], [0, () => __listOfSchemaVersionSummary]];var ListTagsForResourceRequest$ = [3, n0, _LTFRR, 0, [_RAe], [[0, 1]], 1];var ListTagsForResourceResponse$ = [3, n0, _LTFRRi, 0, [_T], [[128 | 0, { [_jN]: _t }]]];var PutCodeBindingRequest$ = [3, n0, _PCBR, 0, [_L, _RN, _SN, _SV], [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3];var PutCodeBindingResponse$ = [3, n0, _PCBRu, 0, [_CD, _LM, _SV, _St], [5, 5, 0, 0]];var PutResourcePolicyRequest$ = [3, n0, _PRPR, 0, [_P, _RN, _RI], [[() => SynthesizedJson__string, 0], [0, { [_hQ]: _rN }], 0], 1];var PutResourcePolicyResponse$ = [3, n0, _PRPRu, 0, [_P, _RI], [[() => SynthesizedJson__string, 0], 0]];var RegistrySummary$ = [3, n0, _RS, 0, [_RA, _RN, _T], [0, 0, [128 | 0, { [_jN]: _t }]]];var SchemaSummary$ = [3, n0, _SS, 0, [_LM, _SAc, _SN, _T, _VC], [5, 0, 0, [128 | 0, { [_jN]: _t }], 1]];var SchemaVersionSummary$ = [3, n0, _SVS, 0, [_SAc, _SN, _SV, _Ty], [0, 0, 0, 0]];var SearchSchemasRequest$ = [3, n0, _SSR, 0, [_K, _RN, _Li, _NT], [[0, { [_hQ]: _k }], [0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }]], 2];var SearchSchemasResponse$ = [3, n0, _SSRe, 0, [_NT, _Sch], [0, () => __listOfSearchSchemaSummary]];var SearchSchemaSummary$ = [3, n0, _SSS, 0, [_RN, _SAc, _SN, _SVc], [0, 0, 0, () => __listOfSearchSchemaVersionSummary]];var SearchSchemaVersionSummary$ = [3, n0, _SSVS, 0, [_CDr, _SV, _Ty], [5, 0, 0]];var StartDiscovererRequest$ = [3, n0, _SDR, 0, [_DI], [[0, 1]], 1];var StartDiscovererResponse$ = [3, n0, _SDRt, 0, [_DI, _S], [0, 0]];var StopDiscovererRequest$ = [3, n0, _SDRto, 0, [_DI], [[0, 1]], 1];var StopDiscovererResponse$ = [3, n0, _SDRtop, 0, [_DI, _S], [0, 0]];var TagResourceRequest$ = [3, n0, _TRR, 0, [_RAe, _T], [[0, 1], [128 | 0, { [_jN]: _t }]], 2];var UntagResourceRequest$ = [3, n0, _URR, 0, [_RAe, _TK], [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UpdateDiscovererRequest$ = [3, n0, _UDR, 0, [_DI, _D, _CA], [[0, 1], 0, 2], 1];var UpdateDiscovererResponse$ = [3, n0, _UDRp, 0, [_D, _DA, _DI, _SA, _S, _CA, _T], [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]];var UpdateRegistryRequest$ = [3, n0, _URRp, 0, [_RN, _D], [[0, 1], 0], 1];var UpdateRegistryResponse$ = [3, n0, _URRpd, 0, [_D, _RA, _RN, _T], [0, 0, 0, [128 | 0, { [_jN]: _t }]]];var UpdateSchemaRequest$ = [3, n0, _USR, 0, [_RN, _SN, _CTI, _Co, _D, _Ty], [[0, 1], [0, 1], [0, 4], 0, 0, 0], 2];var UpdateSchemaResponse$ = [3, n0, _USRp, 0, [_D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD], [0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]];var __Unit = "unit";var __listOfDiscovererSummary = [1, n0, _lODS, 0, [() => DiscovererSummary$, 0]];var __listOfRegistrySummary = [1, n0, _lORS, 0, [() => RegistrySummary$, 0]];var __listOfSchemaSummary = [1, n0, _lOSS, 0, [() => SchemaSummary$, 0]];var __listOfSchemaVersionSummary = [1, n0, _lOSVS, 0, () => SchemaVersionSummary$];var __listOfSearchSchemaSummary = [1, n0, _lOSSS, 0, () => SearchSchemaSummary$];var __listOfSearchSchemaVersionSummary = [1, n0, _lOSSVS, 0, () => SearchSchemaVersionSummary$];var CreateDiscoverer$ = [9, n0, _CDre, { [_h]: ["POST", "/v1/discoverers", 201] }, () => CreateDiscovererRequest$, () => CreateDiscovererResponse$];var CreateRegistry$ = [9, n0, _CR, { [_h]: ["POST", "/v1/registries/name/{RegistryName}", 201] }, () => CreateRegistryRequest$, () => CreateRegistryResponse$];var CreateSchema$ = [9, n0, _CS, { [_h]: ["POST", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 201] }, () => CreateSchemaRequest$, () => CreateSchemaResponse$];var DeleteDiscoverer$ = [9, n0, _DD, { [_h]: ["DELETE", "/v1/discoverers/id/{DiscovererId}", 204] }, () => DeleteDiscovererRequest$, () => __Unit];var DeleteRegistry$ = [9, n0, _DR, { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}", 204] }, () => DeleteRegistryRequest$, () => __Unit];var DeleteResourcePolicy$ = [9, n0, _DRP, { [_h]: ["DELETE", "/v1/policy", 204] }, () => DeleteResourcePolicyRequest$, () => __Unit];var DeleteSchema$ = [9, n0, _DSe, { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 204] }, () => DeleteSchemaRequest$, () => __Unit];var DeleteSchemaVersion$ = [9, n0, _DSV, { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}", 204] }, () => DeleteSchemaVersionRequest$, () => __Unit];var DescribeCodeBinding$ = [9, n0, _DCB, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}", 200] }, () => DescribeCodeBindingRequest$, () => DescribeCodeBindingResponse$];var DescribeDiscoverer$ = [9, n0, _DDe, { [_h]: ["GET", "/v1/discoverers/id/{DiscovererId}", 200] }, () => DescribeDiscovererRequest$, () => DescribeDiscovererResponse$];var DescribeRegistry$ = [9, n0, _DRe, { [_h]: ["GET", "/v1/registries/name/{RegistryName}", 200] }, () => DescribeRegistryRequest$, () => DescribeRegistryResponse$];var DescribeSchema$ = [9, n0, _DSes, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 200] }, () => DescribeSchemaRequest$, () => DescribeSchemaResponse$];var ExportSchema$ = [9, n0, _ES, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export", 200] }, () => ExportSchemaRequest$, () => ExportSchemaResponse$];var GetCodeBindingSource$ = [9, n0, _GCBS, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source", 200] }, () => GetCodeBindingSourceRequest$, () => GetCodeBindingSourceResponse$];var GetDiscoveredSchema$ = [9, n0, _GDS, { [_h]: ["POST", "/v1/discover", 200] }, () => GetDiscoveredSchemaRequest$, () => GetDiscoveredSchemaResponse$];var GetResourcePolicy$ = [9, n0, _GRP, { [_h]: ["GET", "/v1/policy", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$];var ListDiscoverers$ = [9, n0, _LD, { [_h]: ["GET", "/v1/discoverers", 200] }, () => ListDiscoverersRequest$, () => ListDiscoverersResponse$];var ListRegistries$ = [9, n0, _LR, { [_h]: ["GET", "/v1/registries", 200] }, () => ListRegistriesRequest$, () => ListRegistriesResponse$];var ListSchemas$ = [9, n0, _LS, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas", 200] }, () => ListSchemasRequest$, () => ListSchemasResponse$];var ListSchemaVersions$ = [9, n0, _LSV, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions", 200] }, () => ListSchemaVersionsRequest$, () => ListSchemaVersionsResponse$];var ListTagsForResource$ = [9, n0, _LTFR, { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$];var PutCodeBinding$ = [9, n0, _PCB, { [_h]: ["POST", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}", 202] }, () => PutCodeBindingRequest$, () => PutCodeBindingResponse$];var PutResourcePolicy$ = [9, n0, _PRP, { [_h]: ["PUT", "/v1/policy", 200] }, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$];var SearchSchemas$ = [9, n0, _SSe, { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/search", 200] }, () => SearchSchemasRequest$, () => SearchSchemasResponse$];var StartDiscoverer$ = [9, n0, _SD, { [_h]: ["POST", "/v1/discoverers/id/{DiscovererId}/start", 200] }, () => StartDiscovererRequest$, () => StartDiscovererResponse$];var StopDiscoverer$ = [9, n0, _SDt, { [_h]: ["POST", "/v1/discoverers/id/{DiscovererId}/stop", 200] }, () => StopDiscovererRequest$, () => StopDiscovererResponse$];var TagResource$ = [9, n0, _TR, { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => __Unit];var UntagResource$ = [9, n0, _UR, { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit];var UpdateDiscoverer$ = [9, n0, _UD, { [_h]: ["PUT", "/v1/discoverers/id/{DiscovererId}", 200] }, () => UpdateDiscovererRequest$, () => UpdateDiscovererResponse$];var UpdateRegistry$ = [9, n0, _URp, { [_h]: ["PUT", "/v1/registries/name/{RegistryName}", 200] }, () => UpdateRegistryRequest$, () => UpdateRegistryResponse$];var UpdateSchema$ = [9, n0, _US, { [_h]: ["PUT", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 200] }, () => UpdateSchemaRequest$, () => UpdateSchemaResponse$]; const getRuntimeConfig$1 = (config) => { return { apiVersion: "2019-12-02", base64Decoder: config?.base64Decoder ?? fromBase64, base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, extensions: config?.extensions ?? [], httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSchemasHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), signer: new AwsSdkSigV4Signer(), }, ], logger: config?.logger ?? new NoOpLogger(), protocol: config?.protocol ?? AwsRestJsonProtocol, protocolSettings: config?.protocolSettings ?? { defaultNamespace: "com.amazonaws.schemas", errorTypeRegistries, version: "2019-12-02", serviceTarget: "schemas", }, serviceId: config?.serviceId ?? "schemas", sha256: config?.sha256 ?? Sha256, urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, utf8Encoder: config?.utf8Encoder ?? toUtf8, };}; const getRuntimeConfig = (config) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getRuntimeConfig$1(config); emitWarningIfUnsupportedVersion$1(process.version); const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger, }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config), streamCollector: config?.streamCollector ?? streamCollector, useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), };}; 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(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class SchemasClient extends Client { config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultSchemasHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} const command = makeBuilder(commonParams, "schemas", "SchemasClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateDiscovererCommand extends command(_ep0, _mw0, "CreateDiscoverer", CreateDiscoverer$) {} class CreateRegistryCommand extends command(_ep0, _mw0, "CreateRegistry", CreateRegistry$) {} class CreateSchemaCommand extends command(_ep0, _mw0, "CreateSchema", CreateSchema$) {} class DeleteDiscovererCommand extends command(_ep0, _mw0, "DeleteDiscoverer", DeleteDiscoverer$) {} class DeleteRegistryCommand extends command(_ep0, _mw0, "DeleteRegistry", DeleteRegistry$) {} class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {} class DeleteSchemaCommand extends command(_ep0, _mw0, "DeleteSchema", DeleteSchema$) {} class DeleteSchemaVersionCommand extends command(_ep0, _mw0, "DeleteSchemaVersion", DeleteSchemaVersion$) {} class DescribeCodeBindingCommand extends command(_ep0, _mw0, "DescribeCodeBinding", DescribeCodeBinding$) {} class DescribeDiscovererCommand extends command(_ep0, _mw0, "DescribeDiscoverer", DescribeDiscoverer$) {} class DescribeRegistryCommand extends command(_ep0, _mw0, "DescribeRegistry", DescribeRegistry$) {} class DescribeSchemaCommand extends command(_ep0, _mw0, "DescribeSchema", DescribeSchema$) {} class ExportSchemaCommand extends command(_ep0, _mw0, "ExportSchema", ExportSchema$) {} class GetCodeBindingSourceCommand extends command(_ep0, _mw0, "GetCodeBindingSource", GetCodeBindingSource$) {} class GetDiscoveredSchemaCommand extends command(_ep0, _mw0, "GetDiscoveredSchema", GetDiscoveredSchema$) {} class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {} class ListDiscoverersCommand extends command(_ep0, _mw0, "ListDiscoverers", ListDiscoverers$) {} class ListRegistriesCommand extends command(_ep0, _mw0, "ListRegistries", ListRegistries$) {} class ListSchemasCommand extends command(_ep0, _mw0, "ListSchemas", ListSchemas$) {} class ListSchemaVersionsCommand extends command(_ep0, _mw0, "ListSchemaVersions", ListSchemaVersions$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class PutCodeBindingCommand extends command(_ep0, _mw0, "PutCodeBinding", PutCodeBinding$) {} class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {} class SearchSchemasCommand extends command(_ep0, _mw0, "SearchSchemas", SearchSchemas$) {} class StartDiscovererCommand extends command(_ep0, _mw0, "StartDiscoverer", StartDiscoverer$) {} class StopDiscovererCommand extends command(_ep0, _mw0, "StopDiscoverer", StopDiscoverer$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateDiscovererCommand extends command(_ep0, _mw0, "UpdateDiscoverer", UpdateDiscoverer$) {} class UpdateRegistryCommand extends command(_ep0, _mw0, "UpdateRegistry", UpdateRegistry$) {} class UpdateSchemaCommand extends command(_ep0, _mw0, "UpdateSchema", UpdateSchema$) {} const paginateListDiscoverers = createPaginator(SchemasClient, ListDiscoverersCommand, "NextToken", "NextToken", "Limit"); const paginateListRegistries = createPaginator(SchemasClient, ListRegistriesCommand, "NextToken", "NextToken", "Limit"); const paginateListSchemas = createPaginator(SchemasClient, ListSchemasCommand, "NextToken", "NextToken", "Limit"); const paginateListSchemaVersions = createPaginator(SchemasClient, ListSchemaVersionsCommand, "NextToken", "NextToken", "Limit"); const paginateSearchSchemas = createPaginator(SchemasClient, SearchSchemasCommand, "NextToken", "NextToken", "Limit"); const checkState = async (client, input) => { let reason; try { let result = await client.send(new DescribeCodeBindingCommand(input)); reason = result; try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_COMPLETE") { return { state: WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_IN_PROGRESS") { return { state: WaiterState.RETRY, reason }; } } catch (e) { } try { const returnComparator = () => { return result.Status; }; if (returnComparator() === "CREATE_FAILED") { return { state: WaiterState.FAILURE, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "NotFoundException") { return { state: WaiterState.FAILURE, reason }; } } return { state: WaiterState.RETRY, reason };};const waitForCodeBindingExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilCodeBindingExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState); return 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 {}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.BadRequestException = BadRequestException;exports.BadRequestException$ = BadRequestException$;exports.CodeGenerationStatus = CodeGenerationStatus;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateDiscoverer$ = CreateDiscoverer$;exports.CreateDiscovererCommand = CreateDiscovererCommand;exports.CreateDiscovererRequest$ = CreateDiscovererRequest$;exports.CreateDiscovererResponse$ = CreateDiscovererResponse$;exports.CreateRegistry$ = CreateRegistry$;exports.CreateRegistryCommand = CreateRegistryCommand;exports.CreateRegistryRequest$ = CreateRegistryRequest$;exports.CreateRegistryResponse$ = CreateRegistryResponse$;exports.CreateSchema$ = CreateSchema$;exports.CreateSchemaCommand = CreateSchemaCommand;exports.CreateSchemaRequest$ = CreateSchemaRequest$;exports.CreateSchemaResponse$ = CreateSchemaResponse$;exports.DeleteDiscoverer$ = DeleteDiscoverer$;exports.DeleteDiscovererCommand = DeleteDiscovererCommand;exports.DeleteDiscovererRequest$ = DeleteDiscovererRequest$;exports.DeleteRegistry$ = DeleteRegistry$;exports.DeleteRegistryCommand = DeleteRegistryCommand;exports.DeleteRegistryRequest$ = DeleteRegistryRequest$;exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;exports.DeleteSchema$ = DeleteSchema$;exports.DeleteSchemaCommand = DeleteSchemaCommand;exports.DeleteSchemaRequest$ = DeleteSchemaRequest$;exports.DeleteSchemaVersion$ = DeleteSchemaVersion$;exports.DeleteSchemaVersionCommand = DeleteSchemaVersionCommand;exports.DeleteSchemaVersionRequest$ = DeleteSchemaVersionRequest$;exports.DescribeCodeBinding$ = DescribeCodeBinding$;exports.DescribeCodeBindingCommand = DescribeCodeBindingCommand;exports.DescribeCodeBindingRequest$ = DescribeCodeBindingRequest$;exports.DescribeCodeBindingResponse$ = DescribeCodeBindingResponse$;exports.DescribeDiscoverer$ = DescribeDiscoverer$;exports.DescribeDiscovererCommand = DescribeDiscovererCommand;exports.DescribeDiscovererRequest$ = DescribeDiscovererRequest$;exports.DescribeDiscovererResponse$ = DescribeDiscovererResponse$;exports.DescribeRegistry$ = DescribeRegistry$;exports.DescribeRegistryCommand = DescribeRegistryCommand;exports.DescribeRegistryRequest$ = DescribeRegistryRequest$;exports.DescribeRegistryResponse$ = DescribeRegistryResponse$;exports.DescribeSchema$ = DescribeSchema$;exports.DescribeSchemaCommand = DescribeSchemaCommand;exports.DescribeSchemaRequest$ = DescribeSchemaRequest$;exports.DescribeSchemaResponse$ = DescribeSchemaResponse$;exports.DiscovererState = DiscovererState;exports.DiscovererSummary$ = DiscovererSummary$;exports.ExportSchema$ = ExportSchema$;exports.ExportSchemaCommand = ExportSchemaCommand;exports.ExportSchemaRequest$ = ExportSchemaRequest$;exports.ExportSchemaResponse$ = ExportSchemaResponse$;exports.ForbiddenException = ForbiddenException;exports.ForbiddenException$ = ForbiddenException$;exports.GetCodeBindingSource$ = GetCodeBindingSource$;exports.GetCodeBindingSourceCommand = GetCodeBindingSourceCommand;exports.GetCodeBindingSourceRequest$ = GetCodeBindingSourceRequest$;exports.GetCodeBindingSourceResponse$ = GetCodeBindingSourceResponse$;exports.GetDiscoveredSchema$ = GetDiscoveredSchema$;exports.GetDiscoveredSchemaCommand = GetDiscoveredSchemaCommand;exports.GetDiscoveredSchemaRequest$ = GetDiscoveredSchemaRequest$;exports.GetDiscoveredSchemaResponse$ = GetDiscoveredSchemaResponse$;exports.GetResourcePolicy$ = GetResourcePolicy$;exports.GetResourcePolicyCommand = GetResourcePolicyCommand;exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;exports.GoneException = GoneException;exports.GoneException$ = GoneException$;exports.InternalServerErrorException = InternalServerErrorException;exports.InternalServerErrorException$ = InternalServerErrorException$;exports.ListDiscoverers$ = ListDiscoverers$;exports.ListDiscoverersCommand = ListDiscoverersCommand;exports.ListDiscoverersRequest$ = ListDiscoverersRequest$;exports.ListDiscoverersResponse$ = ListDiscoverersResponse$;exports.ListRegistries$ = ListRegistries$;exports.ListRegistriesCommand = ListRegistriesCommand;exports.ListRegistriesRequest$ = ListRegistriesRequest$;exports.ListRegistriesResponse$ = ListRegistriesResponse$;exports.ListSchemaVersions$ = ListSchemaVersions$;exports.ListSchemaVersionsCommand = ListSchemaVersionsCommand;exports.ListSchemaVersionsRequest$ = ListSchemaVersionsRequest$;exports.ListSchemaVersionsResponse$ = ListSchemaVersionsResponse$;exports.ListSchemas$ = ListSchemas$;exports.ListSchemasCommand = ListSchemasCommand;exports.ListSchemasRequest$ = ListSchemasRequest$;exports.ListSchemasResponse$ = ListSchemasResponse$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;exports.NotFoundException = NotFoundException;exports.NotFoundException$ = NotFoundException$;exports.PreconditionFailedException = PreconditionFailedException;exports.PreconditionFailedException$ = PreconditionFailedException$;exports.PutCodeBinding$ = PutCodeBinding$;exports.PutCodeBindingCommand = PutCodeBindingCommand;exports.PutCodeBindingRequest$ = PutCodeBindingRequest$;exports.PutCodeBindingResponse$ = PutCodeBindingResponse$;exports.PutResourcePolicy$ = PutResourcePolicy$;exports.PutResourcePolicyCommand = PutResourcePolicyCommand;exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;exports.RegistrySummary$ = RegistrySummary$;exports.SchemaSummary$ = SchemaSummary$;exports.SchemaVersionSummary$ = SchemaVersionSummary$;exports.Schemas = Schemas;exports.SchemasClient = SchemasClient;exports.SchemasServiceException = SchemasServiceException;exports.SchemasServiceException$ = SchemasServiceException$;exports.SearchSchemaSummary$ = SearchSchemaSummary$;exports.SearchSchemaVersionSummary$ = SearchSchemaVersionSummary$;exports.SearchSchemas$ = SearchSchemas$;exports.SearchSchemasCommand = SearchSchemasCommand;exports.SearchSchemasRequest$ = SearchSchemasRequest$;exports.SearchSchemasResponse$ = SearchSchemasResponse$;exports.ServiceUnavailableException = ServiceUnavailableException;exports.ServiceUnavailableException$ = ServiceUnavailableException$;exports.StartDiscoverer$ = StartDiscoverer$;exports.StartDiscovererCommand = StartDiscovererCommand;exports.StartDiscovererRequest$ = StartDiscovererRequest$;exports.StartDiscovererResponse$ = StartDiscovererResponse$;exports.StopDiscoverer$ = StopDiscoverer$;exports.StopDiscovererCommand = StopDiscovererCommand;exports.StopDiscovererRequest$ = StopDiscovererRequest$;exports.StopDiscovererResponse$ = StopDiscovererResponse$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceRequest$ = TagResourceRequest$;exports.TooManyRequestsException = TooManyRequestsException;exports.TooManyRequestsException$ = TooManyRequestsException$;exports.Type = Type;exports.UnauthorizedException = UnauthorizedException;exports.UnauthorizedException$ = UnauthorizedException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceRequest$ = UntagResourceRequest$;exports.UpdateDiscoverer$ = UpdateDiscoverer$;exports.UpdateDiscovererCommand = UpdateDiscovererCommand;exports.UpdateDiscovererRequest$ = UpdateDiscovererRequest$;exports.UpdateDiscovererResponse$ = UpdateDiscovererResponse$;exports.UpdateRegistry$ = UpdateRegistry$;exports.UpdateRegistryCommand = UpdateRegistryCommand;exports.UpdateRegistryRequest$ = UpdateRegistryRequest$;exports.UpdateRegistryResponse$ = UpdateRegistryResponse$;exports.UpdateSchema$ = UpdateSchema$;exports.UpdateSchemaCommand = UpdateSchemaCommand;exports.UpdateSchemaRequest$ = UpdateSchemaRequest$;exports.UpdateSchemaResponse$ = UpdateSchemaResponse$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListDiscoverers = paginateListDiscoverers;exports.paginateListRegistries = paginateListRegistries;exports.paginateListSchemaVersions = paginateListSchemaVersions;exports.paginateListSchemas = paginateListSchemas;exports.paginateSearchSchemas = paginateSearchSchemas;exports.waitForCodeBindingExists = waitForCodeBindingExists;exports.waitUntilCodeBindingExists = waitUntilCodeBindingExists;