{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fractionalteams-com/json-schema/fractionalteams-com-lead-status-schema.json",
  "title": "LeadStatus",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fractionalteams-com-api-openapi.json#/components/schemas/LeadStatus",
  "type": "object",
  "required": [
    "conversation_id",
    "status",
    "owner"
  ],
  "properties": {
    "conversation_id": {
      "type": "string"
    },
    "contact_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "awaiting",
        "replied_outside"
      ]
    },
    "owner": {
      "type": [
        "string",
        "null"
      ],
      "description": "Salesperson slug the lead is attributed to; null if unattributed"
    },
    "changed_by_side": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who last changed the status: \"client\" or \"admin\""
    },
    "changed_by_user_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "changed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}