{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-create-site-invite-response-schema.json",
  "title": "CreateSiteInviteResponse",
  "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/CreateSiteInviteResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "description": "Lowercased."
    },
    "role": {
      "type": "string",
      "enum": [
        "editor",
        "content_editor",
        "viewer"
      ]
    },
    "isInternal": {
      "type": "boolean"
    },
    "expiresAt": {
      "type": "number",
      "description": "Invites last 7 days. Unix ms."
    },
    "token": {
      "type": "string",
      "description": "The raw invite token. It is shown once and never stored."
    },
    "invitePath": {
      "type": "string",
      "description": "Dashboard path the invited person opens to accept."
    },
    "emailSent": {
      "type": "boolean",
      "description": "True when an email was sent. False when email is not configured on this server, so share `invitePath` yourself."
    }
  },
  "required": [
    "id",
    "email",
    "role",
    "isInternal",
    "expiresAt",
    "token",
    "invitePath",
    "emailSent"
  ]
}