{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aginera-ai/json-schema/aginera-ai-project-list-schema.json",
  "title": "ProjectList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aginera-ai-projects-api-openapi.yml#/components/schemas/ProjectList",
  "type": "object",
  "properties": {
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_more": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Project"
      }
    }
  },
  "required": [
    "next_cursor",
    "has_more",
    "data"
  ],
  "$defs": {
    "Project": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/ProjectId"
        },
        "name": {
          "type": "string"
        },
        "reference": {
          "type": [
            "string",
            "null"
          ]
        },
        "end_customer_ref": {
          "type": [
            "string",
            "null"
          ]
        },
        "external_ref": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "document_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "name",
        "reference",
        "end_customer_ref",
        "external_ref",
        "address",
        "metadata",
        "document_count",
        "created_at",
        "updated_at"
      ]
    },
    "ProjectId": {
      "type": "string",
      "pattern": "^prj_[0-9A-Za-z]{22}$"
    }
  }
}