{
  "$id": "https://intentschema.org/intents/productivity/calendar/event/get/v1.json",
  "fqdn": "org.intentschema.productivity.calendar.event.get.v1",
  "title": "Get calendar event",
  "description": "Fetch a single calendar event by id, including attendees and conferencing.",
  "payload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "target"
    ],
    "properties": {
      "target": {
        "allOf": [
          {
            "$ref": "https://intentschema.org/common/target/v1.json"
          },
          {
            "required": [
              "external_id"
            ]
          }
        ]
      }
    }
  },
  "result": {
    "type": "object",
    "required": [
      "external_id"
    ],
    "properties": {
      "external_id": {
        "type": "string"
      },
      "object": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "timezone": {
            "type": "string"
          },
          "attendees": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "description": "RFC 5321 mailbox. Plain address (jane@example.com) or with display name (\"Jane Doe\" <jane@example.com>)."
            }
          },
          "recurrence": {
            "type": "string"
          }
        }
      },
      "etag": {
        "type": "string"
      }
    }
  },
  "examples": [
    {
      "name": "fetch by id",
      "value": {
        "target": {
          "system": "google_calendar",
          "external_id": "evt_abc123"
        }
      }
    }
  ]
}
