{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cleat-so/json-schema/cleat-so-line-schema.json",
  "title": "Line",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cleat-so-openapi.yml#/components/schemas/Line",
  "type": "object",
  "required": [
    "id",
    "phone",
    "label",
    "status",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "phone": {
      "type": "string",
      "description": "E.164 without the plus, e.g. 13055550100."
    },
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "grace",
        "released"
      ],
      "description": "active: receiving. grace: unpaid, texts held and not readable. released: the number is gone."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}