{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hootlens-com/json-schema/hootlens-com-project-update-schema.json",
  "title": "ProjectUpdate",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hootlens-com-openapi.json#/components/schemas/ProjectUpdate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "origins": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "previewOrigins": {
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 300
      }
    },
    "privacy": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "enum": [
            "full",
            "balanced",
            "strict"
          ]
        },
        "maskTextSelectors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "blockSelectors": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "unmaskInputSelectors": {
          "default": [],
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "captureQueryStrings": {
          "default": false,
          "type": "boolean"
        },
        "keepCampaignDigits": {
          "type": "boolean"
        }
      },
      "required": [
        "preset"
      ]
    },
    "replayAssets": {
      "type": "object",
      "properties": {
        "preserve": {
          "default": true,
          "type": "boolean"
        },
        "origins": {
          "default": [],
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 300
          }
        }
      },
      "additionalProperties": false
    },
    "consent": {
      "type": "string",
      "enum": [
        "implied",
        "required",
        "regional"
      ]
    },
    "consentRegions": {
      "maxItems": 60,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 8
      }
    },
    "sampleRate": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "targeting": {
      "type": "object",
      "properties": {
        "include": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "exclude": {
          "default": [],
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "pathPresets": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "match": {
            "type": "string"
          },
          "preset": {
            "type": "string",
            "enum": [
              "safe-form",
              "balanced",
              "strict"
            ]
          }
        },
        "required": [
          "match",
          "preset"
        ]
      }
    },
    "pageGroups": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "match": {
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "match"
        ]
      }
    },
    "grouping": {
      "type": "object",
      "properties": {
        "localePrefixes": {
          "maxItems": 300,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z]{2,3}(?:-[a-z]{2,4})?$"
          }
        },
        "variantParams": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,40}$"
          }
        },
        "pageVersionMode": {
          "type": "string",
          "enum": [
            "release",
            "content"
          ]
        }
      }
    },
    "retentionDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 90
    },
    "ai": {
      "type": "object",
      "properties": {
        "explanations": {
          "type": "boolean"
        }
      },
      "required": [
        "explanations"
      ]
    },
    "internalTraffic": {
      "type": "object",
      "properties": {
        "browser": {
          "type": "boolean"
        },
        "ips": {
          "default": [],
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 60
          }
        }
      },
      "required": [
        "browser"
      ]
    },
    "errorCapture": {
      "type": "boolean"
    }
  }
}