{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forward-email/json-schema/forward-email-calendar-event-schema.json",
  "title": "CalendarEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forward-email-calendar-events-api-openapi.yml#/components/schemas/CalendarEvent",
  "type": "object",
  "required": [
    "id",
    "calendar_id",
    "ical",
    "created_at",
    "updated_at",
    "object"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Calendar event ID (eventId from CalDAV)"
    },
    "calendar_id": {
      "type": "string",
      "description": "ID of the calendar this event belongs to"
    },
    "ical": {
      "type": "string",
      "description": "iCalendar (RFC 5545) data for the event"
    },
    "summary": {
      "type": "string",
      "description": "Event title/summary (extracted from iCal data)"
    },
    "description": {
      "type": "string",
      "description": "Event description (extracted from iCal data)"
    },
    "location": {
      "type": "string",
      "description": "Event location (extracted from iCal data)"
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "description": "Event start date/time (extracted from iCal data)"
    },
    "end_date": {
      "type": "string",
      "format": "date-time",
      "description": "Event end date/time (extracted from iCal data)"
    },
    "uid": {
      "type": "string",
      "description": "Unique identifier from iCal data"
    },
    "status": {
      "type": "string",
      "description": "Event status (extracted from iCal data)"
    },
    "organizer": {
      "type": "string",
      "description": "Event organizer (extracted from iCal data)"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Soft deletion timestamp"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "object": {
      "type": "string",
      "enum": [
        "calendar_event"
      ]
    }
  }
}