{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/domain-sentinel-com/json-schema/domain-sentinel-com-domain-lookup-schema.json",
  "title": "DomainLookup",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/domain-sentinel-com-openapi.yml#/components/schemas/DomainLookup",
  "type": "object",
  "required": [
    "domain",
    "available",
    "entities",
    "nameservers",
    "statuses",
    "events"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "domain": {
      "type": "string"
    },
    "available": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "true = free, false = registered, null = unknown (see maybeAvailable)"
    },
    "checkMethod": {
      "type": "string",
      "enum": [
        "rdap",
        "whois43",
        "dns"
      ],
      "description": "Data source used for this answer"
    },
    "maybeAvailable": {
      "type": "boolean",
      "description": "Present and true when the DNS check found no delegation: the domain may be free but no registry source could confirm it"
    },
    "ldhName": {
      "type": [
        "string",
        "null"
      ]
    },
    "unicodeName": {
      "type": [
        "string",
        "null"
      ]
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "rdapServer": {
      "type": [
        "string",
        "null"
      ]
    },
    "secureDNS": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "delegationSigned": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "lookedUpAt": {
      "type": "string",
      "format": "date-time"
    },
    "registryBusy": {
      "type": "object",
      "description": "Present when the registry was busy (at its rate limit or refusing for a while): the answer is the last known one, from lookedUpAt, and the registry can be asked again after retryAt. Not billed.",
      "properties": {
        "retryAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Entity"
      }
    },
    "nameservers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Nameserver"
      }
    },
    "statuses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    }
  },
  "$defs": {
    "Entity": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string"
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "organization": {
          "type": [
            "string",
            "null"
          ]
        },
        "ianaId": {
          "type": [
            "string",
            "null"
          ]
        },
        "abuseEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "abusePhone": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Event": {
      "type": "object",
      "properties": {
        "eventAction": {
          "type": "string"
        },
        "eventDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Nameserver": {
      "type": "object",
      "properties": {
        "ldhName": {
          "type": "string"
        },
        "ipv4": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ipv6": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}