{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-domain-schema.json",
  "title": "Domain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-domains-api-openapi.yml#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "enum": [
        "domain"
      ]
    },
    "domain": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "direct",
        "edge"
      ]
    },
    "connectionShape": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "cname",
        "apexRedirect",
        null
      ]
    },
    "servedBy": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "external",
        null
      ]
    },
    "statusReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "verificationToken": {
      "type": [
        "string",
        "null"
      ]
    },
    "verificationInstructions": {
      "$ref": "#/$defs/DomainVerificationInstructions"
    },
    "verifiedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "isPrimary": {
      "type": "boolean"
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "object",
    "domain",
    "status",
    "source",
    "mode",
    "connectionShape",
    "servedBy",
    "statusReason",
    "verificationToken",
    "verificationInstructions",
    "verifiedAt",
    "isPrimary",
    "createdAt"
  ],
  "$defs": {
    "DomainVerificationInstructions": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "txt"
          ]
        },
        "name": {
          "type": "string"
        },
        "expectedValue": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "method",
        "name",
        "expectedValue"
      ]
    }
  }
}