{
  "info": {
    "description": "Geometric verification only. Not structural or safety certification. Provided as-is without warranty.",
    "title": "CAD Oracle",
    "version": "0.2.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/check/assembly-fit": {
      "post": {
        "description": "Verify CSG assembly interference, pairwise clearances with closest-point witnesses, and axis-aligned insertion sweeps. Minimal example: {\"parts\":[{\"name\":\"a\",\"model\":{\"type\":\"box\",\"size\":[10,10,10]}},{\"name\":\"b\",\"model\":{\"type\":\"translate\",\"vector\":[12,0,0],\"child\":{\"type\":\"box\",\"size\":[10,10,10]}}}]}",
        "operationId": "check_assembly_fit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://cad.burgeonads.com/schemas/check_assembly_fit.input.json"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://cad.burgeonads.com/schemas/check_assembly_fit.output.json"
                }
              }
            },
            "description": "Result"
          }
        },
        "summary": "Check assembly fit"
      }
    },
    "/v1/compile/parametric": {
      "post": {
        "description": "Compile a declarative CSG tree into a verified manifold mesh with exact metrics, orthographic blueprint SVG, optional section, and optional 3MF/STL base64 export. Units: mm, deg, +Z up. Minimal example: {\"model\":{\"type\":\"box\",\"size\":[20,10,5]}}",
        "operationId": "compile_parametric_part",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://cad.burgeonads.com/schemas/compile_parametric_part.input.json"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://cad.burgeonads.com/schemas/compile_parametric_part.output.json"
                }
              }
            },
            "description": "Result"
          }
        },
        "summary": "Compile parametric part"
      }
    },
    "/v1/feedback": {
      "post": {
        "description": "Opt-in: send a bug report, schema friction note, feature request or praise about this service. Call only when you or your user explicitly choose to send feedback. Not read-only: each call stores one entry. message: 1..1000 characters of plain text. no_sensitive_data must be true. Do not include personal data, secrets, credentials or proprietary inputs. Global limits: 10 per UTC hour, 50 per UTC day; RATE_LIMITED otherwise.",
        "operationId": "submit_feedback",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://cad.burgeonads.com/schemas/submit_feedback.input.json"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Received"
          }
        },
        "summary": "Submit Feedback"
      }
    },
    "/v1/optimize/sheet-layout": {
      "post": {
        "description": "Nest 2D polygons with holes onto cut sheets with margin, kerf, and rotation step; returns verified placements and a 1:1 mm SVG cut sheet. Minimal example: {\"sheet_mm\":[100,100],\"parts\":[{\"id\":\"p\",\"polygon\":[[0,0],[20,0],[20,10],[0,10]],\"quantity\":2}]}",
        "operationId": "optimize_sheet_layout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://cad.burgeonads.com/schemas/optimize_sheet_layout.input.json"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://cad.burgeonads.com/schemas/optimize_sheet_layout.output.json"
                }
              }
            },
            "description": "Result"
          }
        },
        "summary": "Optimize sheet layout"
      }
    },
    "/v1/verify/mesh": {
      "post": {
        "description": "Maximum bytes: 4194304.",
        "operationId": "verify_printability_upload_mesh",
        "parameters": [
          {
            "in": "query",
            "name": "bed_mm",
            "required": false,
            "schema": {
              "description": "Comma-separated x,y,z in mm.",
              "items": {
                "maximum": 10000,
                "minimum": 1,
                "type": "number"
              },
              "maxItems": 3,
              "minItems": 3,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "min_wall_mm",
            "required": false,
            "schema": {
              "maximum": 50,
              "minimum": 0.1,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "max_overhang_deg",
            "required": false,
            "schema": {
              "maximum": 85,
              "minimum": 5,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "auto_drop_to_bed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "check_orientations",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "timeout_ms",
            "required": false,
            "schema": {
              "maximum": 8000,
              "minimum": 100,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "model/3mf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "model/obj": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "model/stl": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://cad.burgeonads.com/schemas/verify_printability.output.json"
                }
              }
            },
            "description": "Result"
          }
        },
        "summary": "Verify a binary or ASCII STL, OBJ, or 3MF body (max 4 MiB, 100000 triangles) against printability tolerances given as query parameters."
      }
    },
    "/v1/verify/printability": {
      "post": {
        "description": "Verify a CSG part or inline mesh against bed size, topology, wall thickness, overhang, and stability tolerances with exact (x,y,z) failure witnesses. STL/3MF/OBJ files up to 4 MiB: POST /v1/verify/mesh. Minimal example: {\"model\":{\"type\":\"box\",\"size\":[20,20,10]}}",
        "operationId": "verify_printability",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "https://cad.burgeonads.com/schemas/verify_printability.input.json"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://cad.burgeonads.com/schemas/verify_printability.output.json"
                }
              }
            },
            "description": "Result"
          }
        },
        "summary": "Verify printability"
      }
    }
  },
  "servers": [
    {
      "url": "https://cad.burgeonads.com"
    }
  ]
}
