{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-invited-member-schema.json",
  "title": "InvitedMember",
  "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/InvitedMember",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "invited"
      ],
      "description": "Discriminator for pending invitations — the invitee hasn't accepted yet, so no user record exists."
    },
    "id": {
      "type": "string",
      "description": "Stable invitation identifier. Distinct from membership ids."
    },
    "organizationId": {
      "type": "string",
      "description": "Organization the invitation grants access to."
    },
    "userId": {
      "nullable": true,
      "description": "Always `null` — no user record exists until the invitation is accepted."
    },
    "role": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "owner",
        "admin",
        "member",
        null
      ],
      "description": "Role the invitee will get once they accept. `null` means the default (`member`)."
    },
    "name": {
      "nullable": true,
      "description": "Always `null` — no user record exists yet."
    },
    "email": {
      "type": "string",
      "description": "Email address the invitation was sent to."
    },
    "image": {
      "nullable": true,
      "description": "Always `null` — no user record exists yet."
    },
    "invitedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp at which the invitation was created."
    },
    "expiresAt": {
      "type": "string",
      "description": "ISO-8601 timestamp at which the invitation expires."
    },
    "inviterId": {
      "type": "string",
      "description": "User id of the member who issued the invitation."
    }
  },
  "required": [
    "status",
    "id",
    "organizationId",
    "userId",
    "role",
    "name",
    "email",
    "image",
    "invitedAt",
    "expiresAt",
    "inviterId"
  ]
}