{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://neverhold.co/ai/schema.json",
  "title": "NeverholdFamilyProductCatalog",
  "type": "object",
  "required": ["schemaVersion", "publisher", "updatedAt", "sla", "certifications", "products"],
  "properties": {
    "schemaVersion": { "type": "integer" },
    "publisher": {
      "type": "object",
      "required": ["name", "url"],
      "properties": {
        "name": { "type": "string" },
        "url": { "type": "string", "format": "uri" },
        "sameAs": { "type": "array", "items": { "type": "string", "format": "uri" } }
      }
    },
    "updatedAt": { "type": "string", "format": "date-time" },
    "sla": {
      "type": "object",
      "required": ["status"],
      "properties": {
        "status": { "enum": ["not_claimed", "published"] },
        "uptimePercent": { "type": ["number", "null"] },
        "notes": { "type": "string" }
      }
    },
    "certifications": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Empty when none claimed. Do not invent SOC2/ISO/HIPAA."
    },
    "complianceAlignment": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Frameworks mentioned in privacy policy as alignment, not certifications."
    },
    "products": {
      "type": "array",
      "items": { "$ref": "#/$defs/product" }
    }
  },
  "$defs": {
    "product": {
      "type": "object",
      "required": ["id", "name", "status", "summary", "does", "doesNot", "offers"],
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string" },
        "alternateNames": { "type": "array", "items": { "type": "string" } },
        "internalNames": { "type": "array", "items": { "type": "string" } },
        "packageId": { "type": ["string", "null"] },
        "category": { "type": "string" },
        "audience": { "type": "string" },
        "status": { "enum": ["shipping", "coming_soon", "entitlement", "add_on"] },
        "platforms": { "type": "array", "items": { "type": "string" } },
        "primaryUrl": { "type": "string", "format": "uri" },
        "downloadUrls": { "type": "array", "items": { "type": "string", "format": "uri" } },
        "summary": { "type": "string" },
        "does": { "type": "array", "items": { "type": "string" } },
        "doesNot": { "type": "array", "items": { "type": "string" } },
        "integrations": { "type": "array", "items": { "type": "string" } },
        "dataExport": {
          "type": "object",
          "properties": {
            "supports": { "type": "array", "items": { "type": "string" } },
            "doesNotSupport": { "type": "array", "items": { "type": "string" } }
          }
        },
        "security": { "type": "array", "items": { "type": "string" } },
        "offers": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "source", "priceCurrency"],
            "properties": {
              "id": { "type": "string" },
              "name": { "type": "string" },
              "source": { "enum": ["free", "play", "stripe_web", "paypal_web"] },
              "amount": { "type": ["number", "null"] },
              "priceCurrency": { "type": "string" },
              "billingPeriod": { "type": ["string", "null"] },
              "seats": { "type": ["integer", "null"] },
              "displayPrice": { "type": "string" },
              "notes": { "type": "string" }
            }
          }
        },
        "relatedProductIds": { "type": "array", "items": { "type": "string" } }
      }
    }
  }
}
