{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vpsnet-com/json-schema/vpsnet-com-dns-zone-verification-schema.json",
  "title": "DnsZoneVerification",
  "description": "What an unverified zone waits for - while pending_verification and while kept as verification_expired; null once the zone is verified. `record.value` (the exact TXT value) is present only in the owner's own view of the zone and only when it is known; it is never in audit rows, the admin API or the assistant's view.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vpsnet-com-openapi.yml#/components/schemas/DnsZoneVerification",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "record": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TXT"
          ]
        },
        "name": {
          "type": "string"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact TXT value; null for a zone created before it was kept - reissue a new one"
        }
      }
    },
    "value_prefix": {
      "type": "string"
    },
    "previous_nameservers": {
      "type": "array",
      "description": "Non-VPSnet nameservers the parent zone delegated the name to when last read",
      "items": {
        "type": "string"
      }
    },
    "previous_nameservers_observed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "parent_zone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set with next_step add_txt_in_parent_zone - the zone our nameservers serve that contains the name"
    },
    "delegated_to_platform": {
      "type": "boolean",
      "description": "The parent zone delegates the name itself to VPSnet nameservers"
    },
    "delegated_to_platform_since": {
      "type": [
        "string",
        "null"
      ]
    },
    "held": {
      "type": "boolean",
      "description": "Past its verification window but kept because the domain points at VPSnet"
    },
    "held_since": {
      "type": [
        "string",
        "null"
      ]
    },
    "expired": {
      "type": "boolean",
      "description": "The verification window closed; the zone's status is verification_expired and it is kept, not deleted"
    },
    "expired_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "UTC database timestamp of when the window closed"
    },
    "delete_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Earliest moment an expired zone is removed (expired_at + retention_days), and only after a final e-mail; null while the zone is held because the domain points at VPSnet"
    },
    "retention_days": {
      "type": "integer",
      "description": "How many days an expired zone is kept"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the verification window closes (UTC); then the zone becomes verification_expired. Null once expired, and while the domain points at VPSnet"
    },
    "auto_check_minutes": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A pending_verification zone is checked automatically this often and published as soon as the proof is found; null once the window closed (use verify)"
    },
    "last_checked_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "UTC database timestamp of the last automatic check"
    },
    "next_step": {
      "type": "string",
      "enum": [
        "add_txt",
        "add_txt_at_previous_provider",
        "add_txt_in_parent_zone",
        "contact_support"
      ]
    }
  }
}