{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vpsnet-com/json-schema/vpsnet-com-public-tld-schema.json",
  "title": "PublicTld",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vpsnet-com-openapi.yml#/components/schemas/PublicTld",
  "type": "object",
  "required": [
    "tld",
    "register_price_eur",
    "transfer_enabled",
    "whois_privacy_supported",
    "whois_privacy_default",
    "min_years",
    "max_years",
    "period_step",
    "root_tld",
    "iana_url"
  ],
  "properties": {
    "tld": {
      "type": "string",
      "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$",
      "description": "Orderable DNS suffix without a leading dot. The suffix may contain multiple labels, for example co.uk."
    },
    "register_price_eur": {
      "type": "number"
    },
    "renew_price_eur": {
      "type": [
        "number",
        "null"
      ]
    },
    "transfer_enabled": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "transfer_price_eur": {
      "type": [
        "number",
        "null"
      ]
    },
    "restore_price_eur": {
      "type": [
        "number",
        "null"
      ]
    },
    "whois_privacy_supported": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "whois_privacy_default": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "premium_supported": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "dnssec_ds_auto_enabled": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "min_years": {
      "type": "integer"
    },
    "max_years": {
      "type": "integer"
    },
    "period_step": {
      "type": "integer",
      "minimum": 1,
      "description": "Registry period increment. A value of 2 means registration and renewal periods use even-year increments."
    },
    "kind": {
      "type": "string"
    },
    "search_group": {
      "type": "string"
    },
    "display_priority": {
      "type": "integer"
    },
    "root_tld": {
      "type": "string",
      "description": "IANA root-zone label containing the orderable suffix. For co.uk this is uk."
    },
    "iana_tld_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Root-zone type exactly as published in the IANA delegation record."
    },
    "iana_country_or_region_code": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[A-Z]{2}$",
      "description": "Uppercase label of an IANA country-code root, suitable for localized country or region display. For a multi-label suffix this identifies its containing root and does not define registration eligibility. Generic roots return null."
    },
    "iana_manager": {
      "type": [
        "string",
        "null"
      ],
      "description": "Manager or sponsoring organization in the IANA root-zone record. For a multi-label suffix this describes its root zone, not a separate eligibility policy."
    },
    "iana_registration_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Root-zone registration date published by IANA."
    },
    "iana_record_updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Last-update date shown in the IANA root-zone record."
    },
    "iana_nameserver_count": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Number of authoritative name-server hosts in the IANA root-zone delegation record. For a multi-label suffix this is the count for its containing root zone."
    },
    "iana_dnssec_ds_count": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Exact DS-record count in the reviewed authoritative root-zone file for the containing root. This does not describe customer-domain DS records."
    },
    "iana_dnssec_delegated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the reviewed authoritative root-zone file publishes at least one DS record for the containing root. This does not describe VPSnet automatic DS publication for a customer domain."
    },
    "iana_registry_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Registration-service URL published in the IANA root-zone record, when available. The source may publish an HTTP or HTTPS URL."
    },
    "iana_whois_server": {
      "type": [
        "string",
        "null"
      ],
      "description": "WHOIS server listed in the IANA root-zone record, when one is published."
    },
    "iana_rdap_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "RDAP service URL listed in the IANA root-zone record, when one is published."
    },
    "iana_url": {
      "type": "string",
      "format": "uri",
      "description": "Official IANA root-zone delegation record."
    },
    "iana_facts_checked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Date on which VPSnet regenerated the reviewed IANA fact dataset."
    },
    "registrant_requirements": {
      "type": "array",
      "description": "What this registry demands of a domain holder, generated from the same declarations the order path validates against, so the two cannot drift. Empty for a TLD with no extra requirements. Nothing here is a value and nothing here identifies a customer: it describes a registry's rules, which is why it is safe on an unauthenticated endpoint.",
      "items": {
        "$ref": "#/$defs/TldRegistrantRequirement"
      }
    }
  },
  "$defs": {
    "TldRegistrantRequirement": {
      "type": "object",
      "required": [
        "key",
        "label",
        "hint",
        "namespace",
        "source",
        "kinds",
        "operations"
      ],
      "properties": {
        "key": {
          "description": "Declaration key, and the field name the order form highlights on refusal.",
          "type": "string"
        },
        "label": {
          "description": "Translation key for the field label, inside namespace.",
          "type": "string"
        },
        "hint": {
          "description": "Translation key for the explanatory hint, inside namespace.",
          "type": "string"
        },
        "namespace": {
          "description": "Translation namespace holding label and hint.",
          "type": "string",
          "enum": [
            "uiDomains"
          ]
        },
        "source": {
          "description": "Where the value comes from. asked means the customer types it during checkout; from_contact means it is read from the domain contact named in contact_field; automatic means VPSnet sends a fixed value and never asks.",
          "type": "string",
          "enum": [
            "asked",
            "from_contact",
            "automatic"
          ]
        },
        "contact_field": {
          "description": "Domain-contact field the value is read from, when source is from_contact.",
          "type": [
            "string",
            "null"
          ]
        },
        "kinds": {
          "description": "Holder kinds the requirement applies to.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "individual",
              "business"
            ]
          }
        },
        "countries": {
          "description": "ISO 3166-1 alpha-2 holder countries the requirement is limited to. Empty means every country except those in except_countries.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "except_countries": {
          "description": "Holder countries the requirement does not apply to.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "operations": {
          "description": "Operations that ask for the value. A requirement listed for register only is not asked again on transfer.",
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "register",
              "transfer"
            ]
          }
        }
      }
    }
  }
}