/** * `@docspack/openapi` — what docspack does with an OpenAPI document. * * The model, the parser and the LAPIS notation live in `@docspack/lapis`, which is publishable on * its own because converting OpenAPI to LAPIS is useful to people who will never touch docspack. * They are re-exported here so a consumer of this package needs one import rather than two, and so * that moving them cost nothing downstream. * * What is actually *in* this package is the part that is docspack's: the per-operation digest an * agent is answered with, the request builder, the code samples, and the markup contract for the * try-it console. * * The browser console's behaviour is deliberately **not** re-exported here. It is the one module * in this package that touches the DOM, and a CLI that imports this index should not be loading * it: `import { mountApiConsoles } from "@docspack/openapi/console"`. */ export { API_DOCUMENT_VERSION, type ApiBody, type ApiDocument, type ApiField, type ApiGroup, type ApiOperation, type ApiParameter, type ApiResponse, type ApiSchema, type ApiSecurityScheme, type ApiServer, type ApiTag, type ApiType, authNotation, DEFAULT_TYPE_TOKENS, documentErrorBlock, endpoint, errorBlock, failureResponses, findType, HTTP_METHODS, type HttpMethod, LAPIS_MEDIA_TYPE, metaBlock, OpenApiError, operationBlock, operationId, type ParameterLocation, parseOpenApi, type RenderOptions, referencedTypes, requiredSchemes, type SchemaKind, type TypeClosure, toGroups, toLapis, typeBlock, typeNotation, } from "@docspack/lapis"; export { CONSOLE_ATTRIBUTES, SAMPLE_ATTRIBUTES, SAMPLE_LANGUAGE_CHOICE, SAMPLE_LANGUAGE_KEY, } from "./contract.js"; export { type DigestOptions, operationDigest, operationEntities, operationTags, operationTitle, } from "./digest.js"; export { type BuiltRequest, buildRequest, credentialName, exampleBody, exampleResponse, exampleValues, type RequestTarget, type RequestValues, requestTarget, } from "./request.js"; export { type CodeSample, codeSamples, SAMPLE_LANGUAGES, type SampleLanguage, samplesFor, } from "./samples.js";