{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-list-pending-invite-for-user-schema.json",
  "title": "ListPendingInviteForUser",
  "description": "Enriched invite record returned by `GET /invites/pending` — includes resolved\nworkspace name so the UI doesn't need a follow-up fetch.\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/ListPendingInviteForUser",
  "type": "object",
  "required": [
    "id",
    "workspaceId",
    "workspaceName",
    "email",
    "role",
    "token",
    "expiresAt",
    "createdAt"
  ],
  "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"
      ]
    },
    "token": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}