{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxterra-com/json-schema/faxterra-com-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxterra-com-openapi.json#/components/schemas/Contact",
  "type": "object",
  "properties": {
    "number": {
      "type": "string",
      "description": "E.164"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "nameSource": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "saved",
            "history",
            "curated"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "saved": {
      "type": "boolean"
    },
    "sent": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "attempts": {
              "type": "integer"
            },
            "delivered": {
              "type": "integer"
            },
            "lastDeliveredAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "attempts",
            "delivered",
            "lastDeliveredAt"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "number",
    "name",
    "nameSource",
    "saved",
    "sent"
  ]
}