File Explorer

/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 /.

2 dirs
3 files
index.js93.4 KB · 2379 lines
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => {  for (var name in all)    __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => {  if (from && typeof from === "object" || typeof from === "function") {    for (let key of __getOwnPropNames(from))      if (!__hasOwnProp.call(to, key) && key !== except)        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });  }  return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, {  BadRequestException: () => BadRequestException,  CodeGenerationStatus: () => CodeGenerationStatus,  ConflictException: () => ConflictException,  CreateDiscovererCommand: () => CreateDiscovererCommand,  CreateRegistryCommand: () => CreateRegistryCommand,  CreateSchemaCommand: () => CreateSchemaCommand,  DeleteDiscovererCommand: () => DeleteDiscovererCommand,  DeleteRegistryCommand: () => DeleteRegistryCommand,  DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,  DeleteSchemaCommand: () => DeleteSchemaCommand,  DeleteSchemaVersionCommand: () => DeleteSchemaVersionCommand,  DescribeCodeBindingCommand: () => DescribeCodeBindingCommand,  DescribeDiscovererCommand: () => DescribeDiscovererCommand,  DescribeRegistryCommand: () => DescribeRegistryCommand,  DescribeSchemaCommand: () => DescribeSchemaCommand,  DiscovererState: () => DiscovererState,  ExportSchemaCommand: () => ExportSchemaCommand,  ForbiddenException: () => ForbiddenException,  GetCodeBindingSourceCommand: () => GetCodeBindingSourceCommand,  GetDiscoveredSchemaCommand: () => GetDiscoveredSchemaCommand,  GetResourcePolicyCommand: () => GetResourcePolicyCommand,  GoneException: () => GoneException,  InternalServerErrorException: () => InternalServerErrorException,  ListDiscoverersCommand: () => ListDiscoverersCommand,  ListRegistriesCommand: () => ListRegistriesCommand,  ListSchemaVersionsCommand: () => ListSchemaVersionsCommand,  ListSchemasCommand: () => ListSchemasCommand,  ListTagsForResourceCommand: () => ListTagsForResourceCommand,  NotFoundException: () => NotFoundException,  PreconditionFailedException: () => PreconditionFailedException,  PutCodeBindingCommand: () => PutCodeBindingCommand,  PutResourcePolicyCommand: () => PutResourcePolicyCommand,  Schemas: () => Schemas,  SchemasClient: () => SchemasClient,  SchemasServiceException: () => SchemasServiceException,  SearchSchemasCommand: () => SearchSchemasCommand,  ServiceUnavailableException: () => ServiceUnavailableException,  StartDiscovererCommand: () => StartDiscovererCommand,  StopDiscovererCommand: () => StopDiscovererCommand,  TagResourceCommand: () => TagResourceCommand,  TooManyRequestsException: () => TooManyRequestsException,  Type: () => Type,  UnauthorizedException: () => UnauthorizedException,  UntagResourceCommand: () => UntagResourceCommand,  UpdateDiscovererCommand: () => UpdateDiscovererCommand,  UpdateRegistryCommand: () => UpdateRegistryCommand,  UpdateSchemaCommand: () => UpdateSchemaCommand,  __Client: () => import_smithy_client.Client,  paginateListDiscoverers: () => paginateListDiscoverers,  paginateListRegistries: () => paginateListRegistries,  paginateListSchemaVersions: () => paginateListSchemaVersions,  paginateListSchemas: () => paginateListSchemas,  paginateSearchSchemas: () => paginateSearchSchemas,  waitForCodeBindingExists: () => waitForCodeBindingExists,  waitUntilCodeBindingExists: () => waitUntilCodeBindingExists});module.exports = __toCommonJS(index_exports); // src/SchemasClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {  return Object.assign(options, {    useDualstackEndpoint: options.useDualstackEndpoint ?? false,    useFipsEndpoint: options.useFipsEndpoint ?? false,    defaultSigningName: "schemas"  });}, "resolveClientEndpointParameters");var commonParams = {  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },  Endpoint: { type: "builtInParams", name: "endpoint" },  Region: { type: "builtInParams", name: "region" },  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/SchemasClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;  let _credentials = runtimeConfig.credentials;  return {    setHttpAuthScheme(httpAuthScheme) {      const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);      if (index === -1) {        _httpAuthSchemes.push(httpAuthScheme);      } else {        _httpAuthSchemes.splice(index, 1, httpAuthScheme);      }    },    httpAuthSchemes() {      return _httpAuthSchemes;    },    setHttpAuthSchemeProvider(httpAuthSchemeProvider) {      _httpAuthSchemeProvider = httpAuthSchemeProvider;    },    httpAuthSchemeProvider() {      return _httpAuthSchemeProvider;    },    setCredentials(credentials) {      _credentials = credentials;    },    credentials() {      return _credentials;    }  };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {  return {    httpAuthSchemes: config.httpAuthSchemes(),    httpAuthSchemeProvider: config.httpAuthSchemeProvider(),    credentials: config.credentials()  };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {  const extensionConfiguration = Object.assign(    (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),    (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),    (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),    getHttpAuthExtensionConfiguration(runtimeConfig)  );  extensions.forEach((extension) => extension.configure(extensionConfiguration));  return Object.assign(    runtimeConfig,    (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),    (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),    (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),    resolveHttpAuthRuntimeConfig(extensionConfiguration)  );}, "resolveRuntimeExtensions"); // src/SchemasClient.tsvar SchemasClient = class extends import_smithy_client.Client {  static {    __name(this, "SchemasClient");  }  /**   * The resolved configuration of SchemasClient class. This is resolved and normalized from the {@link SchemasClientConfig | constructor configuration interface}.   */  config;  constructor(...[configuration]) {    const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});    super(_config_0);    this.initConfig = _config_0;    const _config_1 = resolveClientEndpointParameters(_config_0);    const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);    const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);    const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);    const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);    const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);    const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);    const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);    this.config = _config_8;    this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));    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_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {        httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSchemasHttpAuthSchemeParametersProvider,        identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({          "aws.auth#sigv4": config.credentials        }), "identityProviderConfigProvider")      })    );    this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));  }  /**   * Destroy underlying resources, like sockets. It's usually not necessary to do this.   * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.   * Otherwise, sockets might stay open for quite a long time before the server terminates them.   */  destroy() {    super.destroy();  }}; // src/Schemas.ts  // src/commands/CreateDiscovererCommand.ts var import_middleware_serde = require("@smithy/middleware-serde");  // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core");  var import_uuid = require("uuid"); // src/models/SchemasServiceException.ts var SchemasServiceException = class _SchemasServiceException extends import_smithy_client.ServiceException {  static {    __name(this, "SchemasServiceException");  }  /**   * @internal   */  constructor(options) {    super(options);    Object.setPrototypeOf(this, _SchemasServiceException.prototype);  }}; // src/models/models_0.tsvar DiscovererState = {  STARTED: "STARTED",  STOPPED: "STOPPED"};var Type = {  JSONSchemaDraft4: "JSONSchemaDraft4",  OpenApi3: "OpenApi3"};var BadRequestException = class _BadRequestException extends SchemasServiceException {  static {    __name(this, "BadRequestException");  }  name = "BadRequestException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "BadRequestException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _BadRequestException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var CodeGenerationStatus = {  CREATE_COMPLETE: "CREATE_COMPLETE",  CREATE_FAILED: "CREATE_FAILED",  CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS"};var ConflictException = class _ConflictException extends SchemasServiceException {  static {    __name(this, "ConflictException");  }  name = "ConflictException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "ConflictException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ConflictException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var ForbiddenException = class _ForbiddenException extends SchemasServiceException {  static {    __name(this, "ForbiddenException");  }  name = "ForbiddenException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "ForbiddenException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ForbiddenException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var InternalServerErrorException = class _InternalServerErrorException extends SchemasServiceException {  static {    __name(this, "InternalServerErrorException");  }  name = "InternalServerErrorException";  $fault = "server";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "InternalServerErrorException",      $fault: "server",      ...opts    });    Object.setPrototypeOf(this, _InternalServerErrorException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var ServiceUnavailableException = class _ServiceUnavailableException extends SchemasServiceException {  static {    __name(this, "ServiceUnavailableException");  }  name = "ServiceUnavailableException";  $fault = "server";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "ServiceUnavailableException",      $fault: "server",      ...opts    });    Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var UnauthorizedException = class _UnauthorizedException extends SchemasServiceException {  static {    __name(this, "UnauthorizedException");  }  name = "UnauthorizedException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "UnauthorizedException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _UnauthorizedException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var NotFoundException = class _NotFoundException extends SchemasServiceException {  static {    __name(this, "NotFoundException");  }  name = "NotFoundException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "NotFoundException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _NotFoundException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var TooManyRequestsException = class _TooManyRequestsException extends SchemasServiceException {  static {    __name(this, "TooManyRequestsException");  }  name = "TooManyRequestsException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "TooManyRequestsException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _TooManyRequestsException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var GoneException = class _GoneException extends SchemasServiceException {  static {    __name(this, "GoneException");  }  name = "GoneException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "GoneException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _GoneException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }};var PreconditionFailedException = class _PreconditionFailedException extends SchemasServiceException {  static {    __name(this, "PreconditionFailedException");  }  name = "PreconditionFailedException";  $fault = "client";  /**   * <p>The error code.</p>   * @public   */  Code;  /**   * <p>The message string of the error output.</p>   * @public   */  Message;  /**   * @internal   */  constructor(opts) {    super({      name: "PreconditionFailedException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _PreconditionFailedException.prototype);    this.Code = opts.Code;    this.Message = opts.Message;  }}; // src/protocols/Aws_restJson1.tsvar se_CreateDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/discoverers");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      CrossAccount: [],      Description: [],      SourceArn: [],      tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateDiscovererCommand");var se_CreateRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/registries/name/{RegistryName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Description: [],      tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateRegistryCommand");var se_CreateSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Content: [],      Description: [],      tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`],      Type: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CreateSchemaCommand");var se_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/discoverers/id/{DiscovererId}");  b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeleteDiscovererCommand");var se_DeleteRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeleteRegistryCommand");var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/policy");  const query = (0, import_smithy_client.map)({    [_rN]: [, input[_RN]]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_DeleteResourcePolicyCommand");var se_DeleteSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeleteSchemaCommand");var se_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  b.p("SchemaVersion", () => input.SchemaVersion, "{SchemaVersion}", false);  let body;  b.m("DELETE").h(headers).b(body);  return b.build();}, "se_DeleteSchemaVersionCommand");var se_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");  b.p("Language", () => input.Language, "{Language}", false);  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_sV]: [, input[_SV]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_DescribeCodeBindingCommand");var se_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/discoverers/id/{DiscovererId}");  b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_DescribeDiscovererCommand");var se_DescribeRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_DescribeRegistryCommand");var se_DescribeSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_sV]: [, input[_SV]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_DescribeSchemaCommand");var se_ExportSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_sV]: [, input[_SV]],    [_t]: [, (0, import_smithy_client.expectNonNull)(input[_T], `Type`)]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ExportSchemaCommand");var se_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source");  b.p("Language", () => input.Language, "{Language}", false);  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_sV]: [, input[_SV]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetCodeBindingSourceCommand");var se_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/discover");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Events: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Events"),      Type: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_GetDiscoveredSchemaCommand");var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/policy");  const query = (0, import_smithy_client.map)({    [_rN]: [, input[_RN]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetResourcePolicyCommand");var se_ListDiscoverersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/discoverers");  const query = (0, import_smithy_client.map)({    [_dIP]: [, input[_DIP]],    [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],    [_nT]: [, input[_NT]],    [_sAP]: [, input[_SAP]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListDiscoverersCommand");var se_ListRegistriesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries");  const query = (0, import_smithy_client.map)({    [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],    [_nT]: [, input[_NT]],    [_rNP]: [, input[_RNP]],    [_s]: [, input[_S]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListRegistriesCommand");var se_ListSchemasCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  const query = (0, import_smithy_client.map)({    [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],    [_nT]: [, input[_NT]],    [_sNP]: [, input[_SNP]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListSchemasCommand");var se_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],    [_nT]: [, input[_NT]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListSchemaVersionsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_ListTagsForResourceCommand");var se_PutCodeBindingCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");  b.p("Language", () => input.Language, "{Language}", false);  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  const query = (0, import_smithy_client.map)({    [_sV]: [, input[_SV]]  });  let body;  b.m("POST").h(headers).q(query).b(body);  return b.build();}, "se_PutCodeBindingCommand");var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/policy");  const query = (0, import_smithy_client.map)({    [_rN]: [, input[_RN]]  });  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Policy: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "Policy"),      RevisionId: []    })  );  b.m("PUT").h(headers).q(query).b(body);  return b.build();}, "se_PutResourcePolicyCommand");var se_SearchSchemasCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/registries/name/{RegistryName}/schemas/search");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  const query = (0, import_smithy_client.map)({    [_k]: [, (0, import_smithy_client.expectNonNull)(input[_K], `Keywords`)],    [_l]: [() => input.Limit !== void 0, () => input[_L].toString()],    [_nT]: [, input[_NT]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_SearchSchemasCommand");var se_StartDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/discoverers/id/{DiscovererId}/start");  b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);  let body;  b.m("POST").h(headers).b(body);  return b.build();}, "se_StartDiscovererCommand");var se_StopDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/v1/discoverers/id/{DiscovererId}/stop");  b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);  let body;  b.m("POST").h(headers).b(body);  return b.build();}, "se_StopDiscovererCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{ResourceArn}");  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);  const query = (0, import_smithy_client.map)({    [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_UntagResourceCommand");var se_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/discoverers/id/{DiscovererId}");  b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      CrossAccount: [],      Description: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateDiscovererCommand");var se_UpdateRegistryCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/registries/name/{RegistryName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      Description: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateRegistryCommand");var se_UpdateSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");  b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);  b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      ClientTokenId: [true, (_) => _ ?? (0, import_uuid.v4)()],      Content: [],      Description: [],      Type: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateSchemaCommand");var de_CreateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 201 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CrossAccount: import_smithy_client.expectBoolean,    Description: import_smithy_client.expectString,    DiscovererArn: import_smithy_client.expectString,    DiscovererId: import_smithy_client.expectString,    SourceArn: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_CreateDiscovererCommand");var de_CreateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 201 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Description: import_smithy_client.expectString,    RegistryArn: import_smithy_client.expectString,    RegistryName: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_CreateRegistryCommand");var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 201 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Description: import_smithy_client.expectString,    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    SchemaVersion: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`],    Type: import_smithy_client.expectString,    VersionCreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VersionCreatedDate")  });  Object.assign(contents, doc);  return contents;}, "de_CreateSchemaCommand");var de_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteDiscovererCommand");var de_DeleteRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteRegistryCommand");var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteResourcePolicyCommand");var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteSchemaCommand");var de_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteSchemaVersionCommand");var de_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaVersion: import_smithy_client.expectString,    Status: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_DescribeCodeBindingCommand");var de_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CrossAccount: import_smithy_client.expectBoolean,    Description: import_smithy_client.expectString,    DiscovererArn: import_smithy_client.expectString,    DiscovererId: import_smithy_client.expectString,    SourceArn: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_DescribeDiscovererCommand");var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Description: import_smithy_client.expectString,    RegistryArn: import_smithy_client.expectString,    RegistryName: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_DescribeRegistryCommand");var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Content: import_smithy_client.expectString,    Description: import_smithy_client.expectString,    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    SchemaVersion: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`],    Type: import_smithy_client.expectString,    VersionCreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VersionCreatedDate")  });  Object.assign(contents, doc);  return contents;}, "de_DescribeSchemaCommand");var de_ExportSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Content: import_smithy_client.expectString,    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    SchemaVersion: import_smithy_client.expectString,    Type: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ExportSchemaCommand");var de_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = await (0, import_smithy_client.collectBody)(output.body, context);  contents.Body = data;  return contents;}, "de_GetCodeBindingSourceCommand");var de_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Content: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetDiscoveredSchemaCommand");var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Policy: import_smithy_client.LazyJsonString.from,    RevisionId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetResourcePolicyCommand");var de_ListDiscoverersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Discoverers: /* @__PURE__ */ __name((_) => de___listOfDiscovererSummary(_, context), "Discoverers"),    NextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListDiscoverersCommand");var de_ListRegistriesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    NextToken: import_smithy_client.expectString,    Registries: /* @__PURE__ */ __name((_) => de___listOfRegistrySummary(_, context), "Registries")  });  Object.assign(contents, doc);  return contents;}, "de_ListRegistriesCommand");var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    NextToken: import_smithy_client.expectString,    Schemas: /* @__PURE__ */ __name((_) => de___listOfSchemaSummary(_, context), "Schemas")  });  Object.assign(contents, doc);  return contents;}, "de_ListSchemasCommand");var de_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    NextToken: import_smithy_client.expectString,    SchemaVersions: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_ListSchemaVersionsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_ListTagsForResourceCommand");var de_PutCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 202 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaVersion: import_smithy_client.expectString,    Status: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_PutCodeBindingCommand");var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Policy: import_smithy_client.LazyJsonString.from,    RevisionId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_PutResourcePolicyCommand");var de_SearchSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    NextToken: import_smithy_client.expectString,    Schemas: /* @__PURE__ */ __name((_) => de___listOfSearchSchemaSummary(_, context), "Schemas")  });  Object.assign(contents, doc);  return contents;}, "de_SearchSchemasCommand");var de_StartDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    DiscovererId: import_smithy_client.expectString,    State: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_StartDiscovererCommand");var de_StopDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    DiscovererId: import_smithy_client.expectString,    State: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_StopDiscovererCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 204 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UntagResourceCommand");var de_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    CrossAccount: import_smithy_client.expectBoolean,    Description: import_smithy_client.expectString,    DiscovererArn: import_smithy_client.expectString,    DiscovererId: import_smithy_client.expectString,    SourceArn: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_UpdateDiscovererCommand");var de_UpdateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Description: import_smithy_client.expectString,    RegistryArn: import_smithy_client.expectString,    RegistryName: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });  Object.assign(contents, doc);  return contents;}, "de_UpdateRegistryCommand");var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    Description: import_smithy_client.expectString,    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    SchemaVersion: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`],    Type: import_smithy_client.expectString,    VersionCreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VersionCreatedDate")  });  Object.assign(contents, doc);  return contents;}, "de_UpdateSchemaCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {  const parsedOutput = {    ...output,    body: await (0, import_core2.parseJsonErrorBody)(output.body, context)  };  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);  switch (errorCode) {    case "BadRequestException":    case "com.amazonaws.schemas#BadRequestException":      throw await de_BadRequestExceptionRes(parsedOutput, context);    case "ConflictException":    case "com.amazonaws.schemas#ConflictException":      throw await de_ConflictExceptionRes(parsedOutput, context);    case "ForbiddenException":    case "com.amazonaws.schemas#ForbiddenException":      throw await de_ForbiddenExceptionRes(parsedOutput, context);    case "InternalServerErrorException":    case "com.amazonaws.schemas#InternalServerErrorException":      throw await de_InternalServerErrorExceptionRes(parsedOutput, context);    case "ServiceUnavailableException":    case "com.amazonaws.schemas#ServiceUnavailableException":      throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);    case "UnauthorizedException":    case "com.amazonaws.schemas#UnauthorizedException":      throw await de_UnauthorizedExceptionRes(parsedOutput, context);    case "NotFoundException":    case "com.amazonaws.schemas#NotFoundException":      throw await de_NotFoundExceptionRes(parsedOutput, context);    case "TooManyRequestsException":    case "com.amazonaws.schemas#TooManyRequestsException":      throw await de_TooManyRequestsExceptionRes(parsedOutput, context);    case "GoneException":    case "com.amazonaws.schemas#GoneException":      throw await de_GoneExceptionRes(parsedOutput, context);    case "PreconditionFailedException":    case "com.amazonaws.schemas#PreconditionFailedException":      throw await de_PreconditionFailedExceptionRes(parsedOutput, context);    default:      const parsedBody = parsedOutput.body;      return throwDefaultError({        output,        parsedBody,        errorCode      });  }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(SchemasServiceException);var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new BadRequestException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_BadRequestExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ConflictException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ForbiddenException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ForbiddenExceptionRes");var de_GoneExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new GoneException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_GoneExceptionRes");var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new InternalServerErrorException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerErrorExceptionRes");var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new NotFoundException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_NotFoundExceptionRes");var de_PreconditionFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new PreconditionFailedException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_PreconditionFailedExceptionRes");var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    Code: import_smithy_client.expectString,    Message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ServiceUnavailableException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceUnavailableExceptionRes");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, {    Code: import_smithy_client.expectString,    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, {    Code: import_smithy_client.expectString,    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 de___listOfDiscovererSummary = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_DiscovererSummary(entry, context);  });  return retVal;}, "de___listOfDiscovererSummary");var de___listOfRegistrySummary = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_RegistrySummary(entry, context);  });  return retVal;}, "de___listOfRegistrySummary");var de___listOfSchemaSummary = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_SchemaSummary(entry, context);  });  return retVal;}, "de___listOfSchemaSummary");var de___listOfSearchSchemaSummary = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_SearchSchemaSummary(entry, context);  });  return retVal;}, "de___listOfSearchSchemaSummary");var de___listOfSearchSchemaVersionSummary = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_SearchSchemaVersionSummary(entry, context);  });  return retVal;}, "de___listOfSearchSchemaVersionSummary");var de_DiscovererSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    CrossAccount: import_smithy_client.expectBoolean,    DiscovererArn: import_smithy_client.expectString,    DiscovererId: import_smithy_client.expectString,    SourceArn: import_smithy_client.expectString,    State: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });}, "de_DiscovererSummary");var de_RegistrySummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    RegistryArn: import_smithy_client.expectString,    RegistryName: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`]  });}, "de_RegistrySummary");var de_SchemaSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastModified"),    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    Tags: [, import_smithy_client._json, `tags`],    VersionCount: import_smithy_client.expectLong  });}, "de_SchemaSummary");var de_SearchSchemaSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    RegistryName: import_smithy_client.expectString,    SchemaArn: import_smithy_client.expectString,    SchemaName: import_smithy_client.expectString,    SchemaVersions: /* @__PURE__ */ __name((_) => de___listOfSearchSchemaVersionSummary(_, context), "SchemaVersions")  });}, "de_SearchSchemaSummary");var de_SearchSchemaVersionSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedDate"),    SchemaVersion: import_smithy_client.expectString,    Type: import_smithy_client.expectString  });}, "de_SearchSchemaVersionSummary");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 _DIP = "DiscovererIdPrefix";var _K = "Keywords";var _L = "Limit";var _NT = "NextToken";var _RN = "RegistryName";var _RNP = "RegistryNamePrefix";var _S = "Scope";var _SAP = "SourceArnPrefix";var _SNP = "SchemaNamePrefix";var _SV = "SchemaVersion";var _T = "Type";var _TK = "TagKeys";var _dIP = "discovererIdPrefix";var _k = "keywords";var _l = "limit";var _nT = "nextToken";var _rN = "registryName";var _rNP = "registryNamePrefix";var _s = "scope";var _sAP = "sourceArnPrefix";var _sNP = "schemaNamePrefix";var _sV = "schemaVersion";var _t = "type";var _tK = "tagKeys"; // src/commands/CreateDiscovererCommand.tsvar CreateDiscovererCommand = class 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("schemas", "CreateDiscoverer", {}).n("SchemasClient", "CreateDiscovererCommand").f(void 0, void 0).ser(se_CreateDiscovererCommand).de(de_CreateDiscovererCommand).build() {  static {    __name(this, "CreateDiscovererCommand");  }}; // src/commands/CreateRegistryCommand.ts   var CreateRegistryCommand = class 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("schemas", "CreateRegistry", {}).n("SchemasClient", "CreateRegistryCommand").f(void 0, void 0).ser(se_CreateRegistryCommand).de(de_CreateRegistryCommand).build() {  static {    __name(this, "CreateRegistryCommand");  }}; // src/commands/CreateSchemaCommand.ts   var CreateSchemaCommand = class 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("schemas", "CreateSchema", {}).n("SchemasClient", "CreateSchemaCommand").f(void 0, void 0).ser(se_CreateSchemaCommand).de(de_CreateSchemaCommand).build() {  static {    __name(this, "CreateSchemaCommand");  }}; // src/commands/DeleteDiscovererCommand.ts   var DeleteDiscovererCommand = class 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("schemas", "DeleteDiscoverer", {}).n("SchemasClient", "DeleteDiscovererCommand").f(void 0, void 0).ser(se_DeleteDiscovererCommand).de(de_DeleteDiscovererCommand).build() {  static {    __name(this, "DeleteDiscovererCommand");  }}; // src/commands/DeleteRegistryCommand.ts   var DeleteRegistryCommand = class 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("schemas", "DeleteRegistry", {}).n("SchemasClient", "DeleteRegistryCommand").f(void 0, void 0).ser(se_DeleteRegistryCommand).de(de_DeleteRegistryCommand).build() {  static {    __name(this, "DeleteRegistryCommand");  }}; // src/commands/DeleteResourcePolicyCommand.ts   var DeleteResourcePolicyCommand = class 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("schemas", "DeleteResourcePolicy", {}).n("SchemasClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {  static {    __name(this, "DeleteResourcePolicyCommand");  }}; // src/commands/DeleteSchemaCommand.ts   var DeleteSchemaCommand = class 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("schemas", "DeleteSchema", {}).n("SchemasClient", "DeleteSchemaCommand").f(void 0, void 0).ser(se_DeleteSchemaCommand).de(de_DeleteSchemaCommand).build() {  static {    __name(this, "DeleteSchemaCommand");  }}; // src/commands/DeleteSchemaVersionCommand.ts   var DeleteSchemaVersionCommand = class 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("schemas", "DeleteSchemaVersion", {}).n("SchemasClient", "DeleteSchemaVersionCommand").f(void 0, void 0).ser(se_DeleteSchemaVersionCommand).de(de_DeleteSchemaVersionCommand).build() {  static {    __name(this, "DeleteSchemaVersionCommand");  }}; // src/commands/DescribeCodeBindingCommand.ts   var DescribeCodeBindingCommand = class 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("schemas", "DescribeCodeBinding", {}).n("SchemasClient", "DescribeCodeBindingCommand").f(void 0, void 0).ser(se_DescribeCodeBindingCommand).de(de_DescribeCodeBindingCommand).build() {  static {    __name(this, "DescribeCodeBindingCommand");  }}; // src/commands/DescribeDiscovererCommand.ts   var DescribeDiscovererCommand = class 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("schemas", "DescribeDiscoverer", {}).n("SchemasClient", "DescribeDiscovererCommand").f(void 0, void 0).ser(se_DescribeDiscovererCommand).de(de_DescribeDiscovererCommand).build() {  static {    __name(this, "DescribeDiscovererCommand");  }}; // src/commands/DescribeRegistryCommand.ts   var DescribeRegistryCommand = class 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("schemas", "DescribeRegistry", {}).n("SchemasClient", "DescribeRegistryCommand").f(void 0, void 0).ser(se_DescribeRegistryCommand).de(de_DescribeRegistryCommand).build() {  static {    __name(this, "DescribeRegistryCommand");  }}; // src/commands/DescribeSchemaCommand.ts   var DescribeSchemaCommand = class 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("schemas", "DescribeSchema", {}).n("SchemasClient", "DescribeSchemaCommand").f(void 0, void 0).ser(se_DescribeSchemaCommand).de(de_DescribeSchemaCommand).build() {  static {    __name(this, "DescribeSchemaCommand");  }}; // src/commands/ExportSchemaCommand.ts   var ExportSchemaCommand = class 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("schemas", "ExportSchema", {}).n("SchemasClient", "ExportSchemaCommand").f(void 0, void 0).ser(se_ExportSchemaCommand).de(de_ExportSchemaCommand).build() {  static {    __name(this, "ExportSchemaCommand");  }}; // src/commands/GetCodeBindingSourceCommand.ts   var GetCodeBindingSourceCommand = class 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("schemas", "GetCodeBindingSource", {}).n("SchemasClient", "GetCodeBindingSourceCommand").f(void 0, void 0).ser(se_GetCodeBindingSourceCommand).de(de_GetCodeBindingSourceCommand).build() {  static {    __name(this, "GetCodeBindingSourceCommand");  }}; // src/commands/GetDiscoveredSchemaCommand.ts   var GetDiscoveredSchemaCommand = class 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("schemas", "GetDiscoveredSchema", {}).n("SchemasClient", "GetDiscoveredSchemaCommand").f(void 0, void 0).ser(se_GetDiscoveredSchemaCommand).de(de_GetDiscoveredSchemaCommand).build() {  static {    __name(this, "GetDiscoveredSchemaCommand");  }}; // src/commands/GetResourcePolicyCommand.ts   var GetResourcePolicyCommand = class 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("schemas", "GetResourcePolicy", {}).n("SchemasClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {  static {    __name(this, "GetResourcePolicyCommand");  }}; // src/commands/ListDiscoverersCommand.ts   var ListDiscoverersCommand = class 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("schemas", "ListDiscoverers", {}).n("SchemasClient", "ListDiscoverersCommand").f(void 0, void 0).ser(se_ListDiscoverersCommand).de(de_ListDiscoverersCommand).build() {  static {    __name(this, "ListDiscoverersCommand");  }}; // src/commands/ListRegistriesCommand.ts   var ListRegistriesCommand = class 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("schemas", "ListRegistries", {}).n("SchemasClient", "ListRegistriesCommand").f(void 0, void 0).ser(se_ListRegistriesCommand).de(de_ListRegistriesCommand).build() {  static {    __name(this, "ListRegistriesCommand");  }}; // src/commands/ListSchemasCommand.ts   var ListSchemasCommand = class 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("schemas", "ListSchemas", {}).n("SchemasClient", "ListSchemasCommand").f(void 0, void 0).ser(se_ListSchemasCommand).de(de_ListSchemasCommand).build() {  static {    __name(this, "ListSchemasCommand");  }}; // src/commands/ListSchemaVersionsCommand.ts   var ListSchemaVersionsCommand = class 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("schemas", "ListSchemaVersions", {}).n("SchemasClient", "ListSchemaVersionsCommand").f(void 0, void 0).ser(se_ListSchemaVersionsCommand).de(de_ListSchemaVersionsCommand).build() {  static {    __name(this, "ListSchemaVersionsCommand");  }}; // src/commands/ListTagsForResourceCommand.ts   var ListTagsForResourceCommand = class 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("schemas", "ListTagsForResource", {}).n("SchemasClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {  static {    __name(this, "ListTagsForResourceCommand");  }}; // src/commands/PutCodeBindingCommand.ts   var PutCodeBindingCommand = class 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("schemas", "PutCodeBinding", {}).n("SchemasClient", "PutCodeBindingCommand").f(void 0, void 0).ser(se_PutCodeBindingCommand).de(de_PutCodeBindingCommand).build() {  static {    __name(this, "PutCodeBindingCommand");  }}; // src/commands/PutResourcePolicyCommand.ts   var PutResourcePolicyCommand = class 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("schemas", "PutResourcePolicy", {}).n("SchemasClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {  static {    __name(this, "PutResourcePolicyCommand");  }}; // src/commands/SearchSchemasCommand.ts   var SearchSchemasCommand = class 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("schemas", "SearchSchemas", {}).n("SchemasClient", "SearchSchemasCommand").f(void 0, void 0).ser(se_SearchSchemasCommand).de(de_SearchSchemasCommand).build() {  static {    __name(this, "SearchSchemasCommand");  }}; // src/commands/StartDiscovererCommand.ts   var StartDiscovererCommand = class 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("schemas", "StartDiscoverer", {}).n("SchemasClient", "StartDiscovererCommand").f(void 0, void 0).ser(se_StartDiscovererCommand).de(de_StartDiscovererCommand).build() {  static {    __name(this, "StartDiscovererCommand");  }}; // src/commands/StopDiscovererCommand.ts   var StopDiscovererCommand = class 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("schemas", "StopDiscoverer", {}).n("SchemasClient", "StopDiscovererCommand").f(void 0, void 0).ser(se_StopDiscovererCommand).de(de_StopDiscovererCommand).build() {  static {    __name(this, "StopDiscovererCommand");  }}; // src/commands/TagResourceCommand.ts   var TagResourceCommand = class 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("schemas", "TagResource", {}).n("SchemasClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {  static {    __name(this, "TagResourceCommand");  }}; // src/commands/UntagResourceCommand.ts   var UntagResourceCommand = class 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("schemas", "UntagResource", {}).n("SchemasClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {  static {    __name(this, "UntagResourceCommand");  }}; // src/commands/UpdateDiscovererCommand.ts   var UpdateDiscovererCommand = class 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("schemas", "UpdateDiscoverer", {}).n("SchemasClient", "UpdateDiscovererCommand").f(void 0, void 0).ser(se_UpdateDiscovererCommand).de(de_UpdateDiscovererCommand).build() {  static {    __name(this, "UpdateDiscovererCommand");  }}; // src/commands/UpdateRegistryCommand.ts   var UpdateRegistryCommand = class 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("schemas", "UpdateRegistry", {}).n("SchemasClient", "UpdateRegistryCommand").f(void 0, void 0).ser(se_UpdateRegistryCommand).de(de_UpdateRegistryCommand).build() {  static {    __name(this, "UpdateRegistryCommand");  }}; // src/commands/UpdateSchemaCommand.ts   var UpdateSchemaCommand = class 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("schemas", "UpdateSchema", {}).n("SchemasClient", "UpdateSchemaCommand").f(void 0, void 0).ser(se_UpdateSchemaCommand).de(de_UpdateSchemaCommand).build() {  static {    __name(this, "UpdateSchemaCommand");  }}; // src/Schemas.tsvar 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};var Schemas = class extends SchemasClient {  static {    __name(this, "Schemas");  }};(0, import_smithy_client.createAggregatedClient)(commands, Schemas); // src/pagination/ListDiscoverersPaginator.ts var paginateListDiscoverers = (0, import_core.createPaginator)(SchemasClient, ListDiscoverersCommand, "NextToken", "NextToken", "Limit"); // src/pagination/ListRegistriesPaginator.ts var paginateListRegistries = (0, import_core.createPaginator)(SchemasClient, ListRegistriesCommand, "NextToken", "NextToken", "Limit"); // src/pagination/ListSchemaVersionsPaginator.ts var paginateListSchemaVersions = (0, import_core.createPaginator)(SchemasClient, ListSchemaVersionsCommand, "NextToken", "NextToken", "Limit"); // src/pagination/ListSchemasPaginator.ts var paginateListSchemas = (0, import_core.createPaginator)(SchemasClient, ListSchemasCommand, "NextToken", "NextToken", "Limit"); // src/pagination/SearchSchemasPaginator.ts var paginateSearchSchemas = (0, import_core.createPaginator)(SchemasClient, SearchSchemasCommand, "NextToken", "NextToken", "Limit"); // src/waiters/waitForCodeBindingExists.tsvar import_util_waiter = require("@smithy/util-waiter");var checkState = /* @__PURE__ */ __name(async (client, input) => {  let reason;  try {    const result = await client.send(new DescribeCodeBindingCommand(input));    reason = result;    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.Status;      }, "returnComparator");      if (returnComparator() === "CREATE_COMPLETE") {        return { state: import_util_waiter.WaiterState.SUCCESS, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.Status;      }, "returnComparator");      if (returnComparator() === "CREATE_IN_PROGRESS") {        return { state: import_util_waiter.WaiterState.RETRY, reason };      }    } catch (e) {    }    try {      const returnComparator = /* @__PURE__ */ __name(() => {        return result.Status;      }, "returnComparator");      if (returnComparator() === "CREATE_FAILED") {        return { state: import_util_waiter.WaiterState.FAILURE, reason };      }    } catch (e) {    }  } catch (exception) {    reason = exception;    if (exception.name && exception.name == "NotFoundException") {      return { state: import_util_waiter.WaiterState.FAILURE, reason };    }  }  return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForCodeBindingExists = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);}, "waitForCodeBindingExists");var waitUntilCodeBindingExists = /* @__PURE__ */ __name(async (params, input) => {  const serviceDefaults = { minDelay: 2, maxDelay: 120 };  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);  return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilCodeBindingExists");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {  SchemasServiceException,  __Client,  SchemasClient,  Schemas,  $Command,  CreateDiscovererCommand,  CreateRegistryCommand,  CreateSchemaCommand,  DeleteDiscovererCommand,  DeleteRegistryCommand,  DeleteResourcePolicyCommand,  DeleteSchemaCommand,  DeleteSchemaVersionCommand,  DescribeCodeBindingCommand,  DescribeDiscovererCommand,  DescribeRegistryCommand,  DescribeSchemaCommand,  ExportSchemaCommand,  GetCodeBindingSourceCommand,  GetDiscoveredSchemaCommand,  GetResourcePolicyCommand,  ListDiscoverersCommand,  ListRegistriesCommand,  ListSchemaVersionsCommand,  ListSchemasCommand,  ListTagsForResourceCommand,  PutCodeBindingCommand,  PutResourcePolicyCommand,  SearchSchemasCommand,  StartDiscovererCommand,  StopDiscovererCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateDiscovererCommand,  UpdateRegistryCommand,  UpdateSchemaCommand,  paginateListDiscoverers,  paginateListRegistries,  paginateListSchemaVersions,  paginateListSchemas,  paginateSearchSchemas,  waitForCodeBindingExists,  waitUntilCodeBindingExists,  DiscovererState,  Type,  BadRequestException,  CodeGenerationStatus,  ConflictException,  ForbiddenException,  InternalServerErrorException,  ServiceUnavailableException,  UnauthorizedException,  NotFoundException,  TooManyRequestsException,  GoneException,  PreconditionFailedException});