openapi: 3.1.0 info: # Do not change the title, if the title changes, the import paths will be broken title: Api version: 0.1.0 description: API specification servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: architecture description: AI hardware architecture planning paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check description: Returns server health status responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /architecture/plan: post: operationId: planArchitecture tags: [architecture] summary: Update a hardware architecture graph with Groq requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ArchitecturePlanInput" responses: "200": description: Updated architecture graph content: application/json: schema: $ref: "#/components/schemas/ArchitectureGraph" "400": description: Invalid request or model output content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "500": description: AI provider unavailable content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" components: schemas: HealthStatus: type: object properties: status: type: string required: - status ArchitecturePlanInput: type: object properties: request: type: string minLength: 1 graph: type: object additionalProperties: true required: [request, graph] ArchitectureGraph: type: object additionalProperties: true required: [project, summary, nodes, connections, dependencies, software, notes] properties: project: type: string summary: type: string nodes: type: array items: type: object additionalProperties: true connections: type: array items: type: object additionalProperties: true dependencies: type: array items: type: object additionalProperties: true software: type: array items: type: object additionalProperties: true notes: type: array items: type: string verification: $ref: "#/components/schemas/VerificationReport" VerificationReport: type: object additionalProperties: true required: [status, score, summary, checks, sources] properties: status: type: string enum: [verified, review, blocked, unavailable] score: type: number minimum: 0 maximum: 100 summary: type: string checks: type: array items: type: object additionalProperties: true sources: type: array items: type: object additionalProperties: true ErrorResponse: type: object properties: error: type: string required: [error]