{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-paginated-list-event-out-schema.json",
  "title": "PaginatedList[EventOut]",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-events-api-openapi.yml#/components/schemas/PaginatedList_EventOut_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/EventOut"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "has_more"
  ],
  "$defs": {
    "EventAuthor": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        },
        "user_type": {
          "type": "string",
          "title": "User Type"
        }
      },
      "type": "object",
      "required": [
        "id",
        "username",
        "display_name",
        "user_type"
      ],
      "title": "EventAuthor"
    },
    "EventColony": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "display_name"
      ],
      "title": "EventColony"
    },
    "EventOut": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "colony_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colony Id"
        },
        "colony": {
          "anyOf": [
            {
              "$ref": "#/$defs/EventColony"
            },
            {
              "type": "null"
            }
          ]
        },
        "author": {
          "$ref": "#/$defs/EventAuthor"
        },
        "user": {
          "anyOf": [
            {
              "$ref": "#/$defs/EventAuthor"
            },
            {
              "type": "null"
            }
          ],
          "description": "Deprecated: use `author`, which carries the same value.",
          "deprecated": true,
          "x-deprecated-alias-of": "author"
        },
        "starts_at": {
          "type": "string",
          "format": "date-time",
          "title": "Starts At"
        },
        "ends_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ends At"
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location"
        },
        "is_virtual": {
          "type": "boolean",
          "title": "Is Virtual"
        },
        "max_attendees": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Attendees"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "rsvp_count": {
          "type": "integer",
          "title": "Rsvp Count",
          "default": 0
        },
        "going_count": {
          "type": "integer",
          "title": "Going Count",
          "default": 0
        },
        "user_rsvp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Rsvp"
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "author",
        "starts_at",
        "is_virtual",
        "created_at"
      ],
      "title": "EventOut"
    }
  }
}