{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-thread-member-schema.json",
  "title": "ThreadMember",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-thread-members-api-openapi.yml#/components/schemas/ThreadMember",
  "properties": {
    "ack_time": {
      "description": "The time at which the member acknowledged the message thread.",
      "format": "date-time",
      "type": "string"
    },
    "group": {
      "description": "The id of the group referenced by this thread member. Should only ever be one of either a user or group set for the thread member.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "id": {
      "readOnly": true,
      "type": "integer"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/ThreadMemberStatusEnum"
        }
      ],
      "description": "Whether this member has acknowledged the message thread."
    },
    "thread": {
      "description": "The id of the thread this thread member is a member of.",
      "format": "int64",
      "type": "integer"
    },
    "user": {
      "description": "The id of the user referenced by this thread member. Should only ever be one of either a user or group set for the thread member.",
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "status"
  ],
  "type": "object",
  "$defs": {
    "ThreadMemberStatusEnum": {
      "enum": [
        "Addressed",
        "Requiring Action"
      ],
      "type": "string"
    }
  }
}