{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-public-invite-schema.json",
  "title": "PublicInvite",
  "description": "Minimal-PII invite descriptor returned by the PUBLIC `GET /invites/{token}` endpoint.\nIntentionally excludes the `invitedBy`, `createdAt`, and `id` fields to reduce\nunauthenticated information disclosure (T-73-05-01 mitigation). `email` is included\nbecause the recipient already knows it (it's the address that received the invite\nlink).\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-workspaces-api-openapi.yml#/components/schemas/PublicInvite",
  "type": "object",
  "required": [
    "workspaceId",
    "workspaceName",
    "email",
    "role",
    "expiresAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid"
    },
    "workspaceName": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "role": {
      "type": "string",
      "enum": [
        "admin",
        "member",
        "viewer"
      ]
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}