{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringover/json-schema/ringover-contact-list-schema.json",
  "title": "contact_list",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringover-contacts-api-openapi.yml#/components/schemas/contact_list",
  "type": "object",
  "properties": {
    "list_count": {
      "type": "integer",
      "format": "int64"
    },
    "user_id": {
      "type": "integer",
      "format": "int64"
    },
    "team_id": {
      "type": "integer",
      "format": "int64"
    },
    "limit_count_setted": {
      "type": "integer",
      "format": "int64"
    },
    "limit_offset_setted": {
      "type": "integer",
      "format": "int64"
    },
    "total_contact_count": {
      "type": "integer",
      "format": "int64",
      "description": "This field is not used anymore."
    },
    "contact_list_count": {
      "type": "integer",
      "format": "int64"
    },
    "contact_list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/contact_full"
      }
    }
  },
  "$defs": {
    "contact_full": {
      "type": "object",
      "properties": {
        "contact_id": {
          "type": "integer",
          "format": "int64"
        },
        "is_shared": {
          "type": "boolean"
        },
        "im_owner": {
          "type": "boolean"
        },
        "social_service": {
          "type": [
            "string",
            "null"
          ]
        },
        "social_service_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "social_profile_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "social_data": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstname": {
          "type": "string"
        },
        "lastname": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "concat_name": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "initial": {
          "type": "string"
        },
        "profile_picture": {
          "type": "string"
        },
        "creation_date": {
          "type": "string",
          "format": "date-time"
        },
        "emails": {
          "type": [
            "array",
            "null"
          ],
          "description": "Email addresses stored on the contact. Null when none are set.",
          "items": {
            "type": "string",
            "format": "email"
          }
        },
        "numbers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/number_light_with_format"
          }
        }
      }
    },
    "format_number": {
      "type": "object",
      "properties": {
        "raw": {
          "type": "integer",
          "format": "int64"
        },
        "country_code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "e164": {
          "type": "string"
        },
        "international": {
          "type": "string"
        },
        "international_alt": {
          "type": "string"
        },
        "national": {
          "type": "string"
        },
        "national_alt": {
          "type": "string"
        },
        "rfc3966": {
          "type": "string"
        },
        "is_short_code": {
          "type": "boolean"
        }
      }
    },
    "number_light": {
      "type": "object",
      "properties": {
        "number": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "number_light_with_format": {
      "allOf": [
        {
          "$ref": "#/$defs/number_light"
        },
        {
          "type": "object",
          "properties": {
            "format": {
              "$ref": "#/$defs/format_number"
            }
          }
        }
      ]
    }
  }
}