{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fusehealth-com/json-schema/fusehealth-com-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fusehealth-com-openapi.json#/components/schemas/Contact",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "phoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "emailOptedOut": {
      "type": "boolean"
    },
    "smsOptedOut": {
      "type": "boolean"
    },
    "notifyProductNews": {
      "type": "boolean",
      "description": "The contact opted in to marketing email. Sequence emails are sent only to contacts where this is true."
    },
    "notifySmsUpdates": {
      "type": "boolean",
      "description": "The contact opted in to text messages. Sequence SMS steps are sent only when this is true."
    },
    "optOutDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastLoginAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastContactDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "clinicId": {
          "type": "string",
          "format": "uuid"
        },
        "isActive": {
          "type": "boolean"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}