{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-viewer-schema.json",
  "title": "Viewer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-realtime-api-openapi.yml#/components/schemas/Viewer",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The viewer's id: a signed-in user's id, or a stable anonymous viewer id"
    },
    "name": {
      "type": "string",
      "description": "Display name: a user's @handle, or a friendly handle for anonymous viewers"
    },
    "role": {
      "type": [
        "string",
        "null"
      ],
      "description": "The viewer's effective role on this artifact, or null if they have none"
    }
  },
  "required": [
    "id",
    "name",
    "role"
  ]
}