{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-contact-folder-response-schema.json",
  "title": "ContactFolderResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-contact-folders-api-openapi.yml#/components/schemas/ContactFolderResponse",
  "type": "object",
  "required": [
    "folder"
  ],
  "properties": {
    "folder": {
      "$ref": "#/$defs/ContactFolder"
    }
  },
  "$defs": {
    "ContactFolder": {
      "type": "object",
      "description": "Contact folder/tag returned by the Connections Developer API.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "icon": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "manual",
            "auto_event",
            "auto_company",
            "auto_location"
          ]
        },
        "sort_order": {
          "type": "integer"
        },
        "contact_count": {
          "type": "integer"
        },
        "average_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      }
    }
  }
}