{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentio-dev/json-schema/mentio-dev-member-schema.json",
  "title": "Member",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentio-dev-members-api-openapi.yml#/components/schemas/Member",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Membership id (mem_...), what DELETE /v1/members/{id} takes."
    },
    "userId": {
      "type": "string",
      "description": "The person's user id, what assigneeId and ownerId take."
    },
    "email": {
      "type": "string",
      "description": "The account's email address."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name on the account; null when they never set one."
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "admin",
        "member"
      ],
      "description": "owner: everything, billing included. admin: manages the team. member: works the feed."
    },
    "joinedAt": {
      "type": "string",
      "description": "When the membership was created."
    }
  },
  "required": [
    "id",
    "userId",
    "email",
    "name",
    "role",
    "joinedAt"
  ]
}