{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argyle/refs/heads/main/json-schema/invitedelivery.json",
  "title": "InviteDelivery",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique ID of the invite delivery."
    },
    "method": {
      "type": "string",
      "enum": [
        "email",
        "sms"
      ],
      "description": "Invite delivery method."
    },
    "status": {
      "type": "string",
      "enum": [
        "sent",
        "delivered",
        "undelivered",
        "opened"
      ],
      "description": "Status of the invite delivery."
    },
    "sent_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when the invite was sent."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when the delivery status was last updated."
    }
  }
}