{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-contact-search-response-schema.json",
  "title": "ContactSearchResponse",
  "description": "Result of GET /contacts/search.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-contacts-api-openapi.yml#/components/schemas/ContactSearchResponse",
  "type": "object",
  "required": [
    "query",
    "contacts"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "contacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "context": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The contact photo, when one is set."
          },
          "location_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_met_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_favorite": {
            "type": "boolean"
          },
          "needs_follow_up": {
            "type": "boolean"
          },
          "updated_at": {
            "type": "string"
          },
          "score": {
            "type": "number"
          }
        }
      }
    }
  }
}