{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-artifact-member-schema.json",
  "title": "ArtifactMember",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-sharing-api-openapi.yml#/components/schemas/ArtifactMember",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string"
    },
    "handle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public @handle; null when the user has none."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Display name; null when unset."
    },
    "profession": {
      "type": [
        "string",
        "null"
      ],
      "description": "Joined only on workspace-member payloads; absent on artifact/collection lists."
    },
    "role": {
      "type": "string",
      "enum": [
        "viewer",
        "commenter",
        "editor",
        "owner"
      ],
      "description": "Permission tier, ascending: viewer < commenter < editor < owner."
    }
  },
  "required": [
    "user_id",
    "handle",
    "name",
    "role"
  ]
}