{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-active-member-schema.json",
  "title": "ActiveMember",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-members-api-openapi.yml#/components/schemas/ActiveMember",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "active"
      ],
      "description": "Discriminator for confirmed members — the user has accepted their invitation and joined the org."
    },
    "id": {
      "type": "string",
      "description": "Stable membership identifier. Use this to address the row in update/remove endpoints."
    },
    "organizationId": {
      "type": "string",
      "description": "Organization this membership belongs to."
    },
    "userId": {
      "type": "string",
      "description": "Identifier of the user the membership represents."
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "admin",
        "member"
      ],
      "description": "Member's role within the organization."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Display name of the user. `null` if the user hasn't completed onboarding."
    },
    "email": {
      "type": "string",
      "description": "User's email address, verified at signup."
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "description": "User's profile image URL, when set."
    },
    "joinedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp at which the user joined the organization."
    }
  },
  "required": [
    "status",
    "id",
    "organizationId",
    "userId",
    "role",
    "name",
    "email",
    "image",
    "joinedAt"
  ]
}