/** * OpenAPI 3.1 Spec Generator for Photon Beam * * Generates OpenAPI specification from Photon schemas. * Uses standard OpenAPI/JSON Schema where possible, * extends with x-* properties for UI-specific features. * * Standard Mappings: * - type, minimum, maximum, enum, format, description → native JSON Schema * * Extensions (x-*): * - x-accept: File type filter for file picker * - x-output-format: Rendering format (table, list, card, tree, etc.) * - x-layout-hints: Field mapping for smart rendering * - x-button-label: Custom submit button text * - x-icon: Method/field icon * - x-autorun: Auto-execute on selection */ interface OpenAPIDocument { openapi: '3.1.0'; info: { title: string; version: string; description?: string; }; servers?: Array<{ url: string; description?: string; }>; tags?: Array<{ name: string; description?: string; [key: string]: any; }>; paths: Record; [key: string]: any; } interface MethodInfo { name: string; description: string; icon?: string; params: any; returns: any; autorun?: boolean; outputFormat?: string; layoutHints?: Record; buttonLabel?: string; linkedUi?: string; } interface PhotonInfo { name: string; path: string; configured: boolean; methods?: MethodInfo[]; isApp?: boolean; requiredParams?: Array<{ name: string; envVar: string; type: string; isOptional: boolean; hasDefault: boolean; defaultValue?: any; }>; errorMessage?: string; } /** * Generate OpenAPI 3.1 specification from Photon schemas */ export declare function generateOpenAPISpec(photons: PhotonInfo[], serverUrl?: string): OpenAPIDocument; export {}; //# sourceMappingURL=openapi-generator.d.ts.map