{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-artifact-invite-schema.json",
  "title": "ArtifactInvite",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-sharing-api-openapi.yml#/components/schemas/ArtifactInvite",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "description": "The invitee's email (share-capable callers only)."
    },
    "role": {
      "type": "string",
      "enum": [
        "viewer",
        "commenter",
        "editor",
        "owner"
      ],
      "description": "The role accepting will grant."
    },
    "created_at": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "description": "When the invite expires (7-day TTL)."
    }
  },
  "required": [
    "id",
    "email",
    "role",
    "created_at",
    "expires_at"
  ]
}