{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-invite-preview-schema.json",
  "title": "InvitePreview",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-members-api-openapi.yml#/components/schemas/InvitePreview",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean",
      "description": "True when the invite can still be accepted."
    },
    "expired": {
      "type": "boolean"
    },
    "alreadyAccepted": {
      "type": "boolean"
    },
    "siteSlug": {
      "type": [
        "string",
        "null"
      ]
    },
    "siteTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "workspaceName": {
      "type": [
        "string",
        "null"
      ]
    },
    "role": {
      "type": "string",
      "enum": [
        "editor",
        "content_editor",
        "viewer"
      ]
    },
    "invitedBy": {
      "type": [
        "string",
        "null"
      ],
      "description": "The inviter's name, or their email when they have no name."
    },
    "expiresAt": {
      "type": "number",
      "description": "Unix ms."
    }
  },
  "required": [
    "valid",
    "expired",
    "alreadyAccepted",
    "siteSlug",
    "siteTitle",
    "workspaceName",
    "role",
    "invitedBy",
    "expiresAt"
  ]
}