{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-artefact-pdfrequest-schema.json",
  "title": "ArtefactPDFRequest",
  "description": "Compile a Casa Planner artefact (pre-DA letter, planning report,\nRFI response) into a Typst PDF using the matching v2 template.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-casa-daily-feasibility-api-openapi.yml#/components/schemas/ArtefactPDFRequest",
  "properties": {
    "artefact_type": {
      "type": "string",
      "title": "Artefact Type",
      "description": "One of: pre_da_letter | planning_report | rfi_response"
    },
    "title": {
      "type": "string",
      "maxLength": 300,
      "title": "Title"
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary"
    },
    "sections": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Sections"
    },
    "project_name": {
      "type": "string",
      "maxLength": 200,
      "title": "Project Name"
    },
    "user_full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Full Name"
    },
    "user_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Email"
    },
    "property": {
      "additionalProperties": true,
      "type": "object",
      "title": "Property"
    },
    "da_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Da Number"
    },
    "council_officer_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Council Officer Name"
    },
    "version": {
      "type": "integer",
      "title": "Version",
      "default": 1
    },
    "disclaimer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disclaimer"
    }
  },
  "type": "object",
  "required": [
    "artefact_type",
    "title",
    "project_name"
  ]
}