{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cursor/refs/heads/main/json-schema/cursor-member-schema.json",
  "title": "Cursor Team Member",
  "description": "Schema for a team member returned by the Cursor Admin API.",
  "type": "object",
  "required": ["id", "email"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the team member."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Member's email address."
    },
    "name": {
      "type": "string",
      "description": "Display name of the member."
    },
    "role": {
      "type": "string",
      "enum": ["member", "admin", "owner"],
      "description": "Role assigned to the member within the team."
    },
    "isRemoved": {
      "type": "boolean",
      "description": "Whether the member has been removed from the team."
    }
  }
}
