{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/przypominamy-com/json-schema/przypominamy-com-hlr-result-schema.json",
  "title": "HlrResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/przypominamy-com-openapi.json#/components/schemas/HlrResult",
  "type": "object",
  "properties": {
    "msisdn": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "invalid",
        "unknown"
      ],
      "description": "`active` - numer w sieci; `inactive` - nieosiągalny lub nieistniejący; `invalid` - zły format; `unknown` - operator nie odpowiedział jednoznacznie"
    },
    "network": {
      "type": [
        "string",
        "null"
      ],
      "description": "Nazwa sieci (Plus, T-Mobile, Orange, Play…)"
    },
    "mcc": {
      "type": [
        "string",
        "null"
      ]
    },
    "mnc": {
      "type": [
        "string",
        "null"
      ]
    },
    "ported": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Czy numer został przeniesiony do innej sieci"
    },
    "cost_grosze": {
      "type": "integer",
      "description": "Pobrana opłata (0 dla wyniku z pamięci i na koncie testowym)"
    },
    "cached": {
      "type": "boolean",
      "description": "`true` - wynik z ostatnich 24 h, bez opłaty i bez pytania operatora"
    },
    "checked_at": {
      "type": "string",
      "format": "date-time",
      "description": "Kiedy operator sprawdził numer"
    }
  }
}