{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usertold-ai/json-schema/usertold-ai-api-public-project-response-schema.json",
  "title": "ApiPublicProjectResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usertold-ai-openapi.json#/components/schemas/ApiPublicProjectResponse",
  "type": "object",
  "properties": {
    "project": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "org_handle": {
          "type": "string"
        },
        "project_handle": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "description",
        "org_handle",
        "project_handle"
      ]
    },
    "totals": {
      "type": "object",
      "properties": {
        "studies": {
          "type": "integer",
          "minimum": 0
        },
        "interviews": {
          "type": "integer",
          "minimum": 0
        },
        "evidence": {
          "type": "integer",
          "minimum": 0
        },
        "findings": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "studies",
        "interviews",
        "evidence",
        "findings"
      ]
    },
    "studies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "study_ref": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "goal_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "study_ref",
          "title",
          "description",
          "status",
          "goal_count"
        ]
      }
    },
    "interviews": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_label": {
            "type": "string"
          },
          "study_ref": {
            "type": [
              "string",
              "null"
            ]
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_seconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "analysis_summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "source_label",
          "study_ref",
          "completed_at",
          "duration_seconds",
          "analysis_summary",
          "evidence_count"
        ]
      }
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source_label": {
            "type": "string"
          },
          "signal_type": {
            "type": "string"
          },
          "quote": {
            "type": "string"
          },
          "headline": {
            "type": [
              "string",
              "null"
            ]
          },
          "claim": {
            "type": [
              "string",
              "null"
            ]
          },
          "observed_facts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "confidence": {
            "type": "number"
          },
          "page_title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "source_label",
          "signal_type",
          "quote",
          "headline",
          "claim",
          "observed_facts",
          "confidence",
          "page_title"
        ]
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "priority_label": {
            "type": "string"
          },
          "priority_score": {
            "type": "number"
          },
          "evidence_count": {
            "type": "integer",
            "minimum": 0
          },
          "interview_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "title",
          "description",
          "status",
          "priority_label",
          "priority_score",
          "evidence_count",
          "interview_count"
        ]
      }
    }
  },
  "required": [
    "project",
    "totals",
    "studies",
    "interviews",
    "evidence",
    "findings"
  ]
}