{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/johnsessentials-com/json-schema/johnsessentials-com-organization-member-public-schema.json",
  "title": "OrganizationMemberPublic",
  "description": "A curated, secret-free view of one team member. Never includes Stripe ids or other account internals.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/johnsessentials-com-openapi.json#/components/schemas/OrganizationMemberPublic",
  "properties": {
    "email": {
      "description": "Member's email, or the invited email for a pending seat.",
      "format": "email",
      "type": "string"
    },
    "id": {
      "description": "Membership id (not the user id).",
      "format": "uuid",
      "type": "string"
    },
    "joined_at": {
      "description": "When the member accepted; absent while pending.",
      "format": "date-time",
      "type": "string"
    },
    "role": {
      "enum": [
        "owner",
        "admin",
        "member",
        "viewer"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "pending",
        "active",
        "suspended"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "email",
    "role",
    "status"
  ],
  "type": "object"
}