{"version":3,"file":"openapi.cjs","names":[],"sources":["../../../../src/rest/commands/server/openapi.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n// TODO can we type this?\nexport type OpenApiSpecOutput = Record<string, any>;\n\n/**\n * Retrieve the OpenAPI spec for the current project.\n * @returns Object conforming to the OpenAPI Specification\n */\nexport const readOpenApiSpec =\n\t<Schema>(): RestCommand<OpenApiSpecOutput, Schema> =>\n\t() => ({\n\t\tmethod: 'GET',\n\t\tpath: '/server/specs/oas',\n\t});\n"],"mappings":"AASA,MAAa,WAEL,CACN,OAAQ,MACR,KAAM,oBACN"}