{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-voip-blacklist-schema.json",
  "title": "VoipBlacklist",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-blocked-calls-api-openapi.yml#/components/schemas/VoipBlacklist",
  "type": "object",
  "properties": {
    "start_date": {
      "type": "integer",
      "minimum": 0,
      "description": "Timestamp in UNIX format"
    },
    "type": {
      "type": "string",
      "enum": [
        "incoming",
        "outgoing"
      ],
      "description": "Can be 'incoming', 'outgoing'"
    },
    "pattern_type": {
      "type": "string",
      "enum": [
        "equals",
        "starts_with"
      ],
      "description": "Can be 'equals', 'starts_with'"
    },
    "pattern": {
      "type": "string",
      "minLength": 1,
      "maxLength": 14,
      "pattern": "\\+[0-9]+",
      "description": "Pattern of phone number. Starts with '+', followed by digits up to 14 characters"
    },
    "notes": {
      "type": "string",
      "minLength": 0,
      "maxLength": 80,
      "description": "Notes of black list, up to 80 characters"
    }
  },
  "required": [
    "pattern"
  ]
}