{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pageweave-dev/json-schema/pageweave-dev-website-detail-schema.json",
  "title": "WebsiteDetail",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pageweave-dev-openapi.json#/components/schemas/WebsiteDetail",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "subdomain",
    "url",
    "plan",
    "indexable",
    "suspended",
    "workspace_id",
    "created_at",
    "updated_at",
    "agenticweb_md",
    "agents_md",
    "language",
    "llms_txt",
    "pwa_manifest",
    "pwa_service_worker",
    "show_watermark",
    "release_protected",
    "spam_protection",
    "workspace",
    "feedback_recipient_summary"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "subdomain": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro"
      ]
    },
    "indexable": {
      "type": "boolean"
    },
    "suspended": {
      "type": "boolean"
    },
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "agenticweb_md": {
      "type": [
        "string",
        "null"
      ]
    },
    "agents_md": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "The site's BCP 47 language tag, or null when unset. Create/update accept de or en."
    },
    "llms_txt": {
      "type": [
        "string",
        "null"
      ]
    },
    "pwa_manifest": {
      "type": [
        "string",
        "null"
      ]
    },
    "pwa_service_worker": {
      "type": [
        "string",
        "null"
      ]
    },
    "show_watermark": {
      "type": "boolean"
    },
    "release_protected": {
      "type": "boolean"
    },
    "spam_protection": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "standard",
        "code",
        "strict",
        null
      ]
    },
    "feedback_recipient_summary": {
      "$ref": "#/$defs/FeedbackRecipientSummary"
    },
    "workspace": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "slug"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "slug": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "FeedbackRecipientSummary": {
      "type": "object",
      "additionalProperties": false,
      "description": "Feedback digest recipient health for the website: recipient counts and\nthe digest window state the dashboard's website card reports.\n",
      "required": [
        "recipient_count",
        "pending_count",
        "deliverable_count",
        "blocked_count",
        "digest_open",
        "next_digest_at",
        "last_digested_at"
      ],
      "properties": {
        "recipient_count": {
          "type": "integer",
          "minimum": 0
        },
        "pending_count": {
          "type": "integer",
          "minimum": 0
        },
        "deliverable_count": {
          "type": "integer",
          "minimum": 0
        },
        "blocked_count": {
          "type": "integer",
          "minimum": 0
        },
        "digest_open": {
          "type": "boolean"
        },
        "next_digest_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "last_digested_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}