{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xfa-tech/json-schema/xfa-tech-policies-schema.json",
  "title": "Policies",
  "description": "Shared policy representation. On PUT, each OS-specific override\n(`windows_os`, `macos_os`, `linux_os`, `android_os`, `ios_os`, and\n`ipados_os`) uses\npresence-aware update semantics: an omitted key preserves the stored\noverride, `null` removes it and resumes inheritance from `os`, `{}` stores\nan explicitly disabled override without falling back, and a non-empty\nobject replaces it with a custom version policy.\n\nThese rules apply both to the policy PUT request body and to the same\npolicy object when it is nested under `Application.Policies` in an\napplication PUT request. For example, use\n`{\"Policies\":{\"windows_os\":null}}` to clear an inline Windows override.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xfa-tech-openapi.yml#/components/schemas/Policies",
  "properties": {
    "policy_id": {
      "description": "Unique identifier for the policy",
      "type": "string"
    },
    "organization_id": {
      "description": "Organization identifier",
      "type": "string"
    },
    "created_by_email": {
      "description": "Email of the user who created the policy",
      "type": "string"
    },
    "created_at_epoch_seconds": {
      "description": "Unix epoch seconds when the policy was created",
      "format": "int64",
      "type": "integer"
    },
    "updated_by_email": {
      "description": "Email of the user who last updated the policy",
      "type": "string"
    },
    "updated_at_epoch_seconds": {
      "description": "Unix epoch seconds when the policy was last updated",
      "format": "int64",
      "type": "integer"
    },
    "name": {
      "description": "Policy name",
      "type": "string"
    },
    "installed": {
      "description": "Require the native application to be installed",
      "type": "boolean"
    },
    "unsupported": {
      "description": "Skip unsupported devices automatically",
      "type": "boolean"
    },
    "skip": {
      "description": "Allow users to skip the token flow",
      "type": "boolean"
    },
    "skip_limit": {
      "allOf": [
        {
          "$ref": "#/$defs/SkipLimit"
        }
      ],
      "nullable": true
    },
    "skip_mobile": {
      "description": "Allow users to skip the token flow on mobile",
      "type": "boolean"
    },
    "skip_desktop": {
      "description": "Allow users to skip the token flow on desktop",
      "type": "boolean"
    },
    "agentless_allowed": {
      "description": "Allow agentless providing of posture",
      "type": "boolean"
    },
    "os": {
      "$ref": "#/$defs/VersionPolicy"
    },
    "windows_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional Windows-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the Windows version check.",
      "nullable": true
    },
    "macos_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional macOS-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the macOS version check.",
      "nullable": true
    },
    "linux_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional Linux and UNIX-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the Linux version check.",
      "nullable": true
    },
    "android_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional Android-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the Android version check.",
      "nullable": true
    },
    "ios_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional iOS-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the iOS version check.",
      "nullable": true
    },
    "ipados_os": {
      "allOf": [
        {
          "$ref": "#/$defs/VersionPolicy"
        }
      ],
      "description": "Optional iPadOS-specific OS version override. Omit to preserve or inherit the generic OS policy, send null on PUT to clear the override, or send an empty object to explicitly disable the iPadOS version check.",
      "nullable": true
    },
    "os_autoupdate": {
      "properties": {
        "warn": {
          "description": "Warn users if OS auto-update is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if OS auto-update is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether OS auto-update should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "browser": {
      "$ref": "#/$defs/VersionPolicy"
    },
    "pdf_readers": {
      "$ref": "#/$defs/VersionPolicy"
    },
    "disk_encryption": {
      "properties": {
        "warn": {
          "description": "Warn users if disk is not encrypted",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if disk is not encrypted",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether disk encryption should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "screen_lock": {
      "properties": {
        "warn": {
          "description": "Warn users if screen lock is not enabled or timeout exceeds max_timeout",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if screen lock is not enabled or timeout exceeds max_timeout",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether screen lock should be enabled",
          "type": "boolean"
        },
        "max_timeout": {
          "description": "Maximum allowed screen lock timeout in seconds",
          "type": "integer"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "antivirus": {
      "$ref": "#/$defs/AntivirusPolicy"
    },
    "password_manager": {
      "properties": {
        "warn": {
          "description": "Warn users if password manager is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if password manager is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether password manager should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "biometrics": {
      "properties": {
        "warn": {
          "description": "Warn users if biometric is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if biometric is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether biometric should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "reboot": {
      "properties": {
        "WarnTimeInDays": {
          "description": "Warn users if they have not reboot their device more than this many days",
          "type": "integer"
        },
        "WarnTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "BlockTimeInDays": {
          "description": "Block users if they have not reboot their device more than this many days",
          "type": "integer"
        },
        "BlockTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "GoalTimeInDays": {
          "description": "Goal - days that devices are allowed to be without rebooting",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "windows_recall": {
      "properties": {
        "warn": {
          "description": "Warn users if they have not disabled windows recall",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if they have not disabled windows recall",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether windows recall should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "xfa_version": {
      "$ref": "#/$defs/VersionPolicyInDays"
    },
    "firewall": {
      "properties": {
        "warn": {
          "description": "Warn users if firewall is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if firewall is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether firewall should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "dns": {
      "properties": {
        "dns_servers": {
          "description": "List of required DNS servers",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "validation_mode": {
          "description": "How to validate DNS server configuration",
          "enum": [
            "exact_match",
            "exact_with_extra",
            "contains"
          ],
          "type": "string"
        },
        "warn": {
          "description": "Warn users if requirement is not configured properly",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if requirement is not configured properly",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether dns should be configured properly",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "dns_servers",
        "validation_mode",
        "warn"
      ],
      "type": "object"
    },
    "screen_sharing": {
      "properties": {
        "warn": {
          "description": "Warn users if screen sharing is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if screen sharing is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether screen sharing should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "remote_login": {
      "properties": {
        "warn": {
          "description": "Warn users if remote login is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if remote login is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether remote login should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "remote_management": {
      "properties": {
        "warn": {
          "description": "Warn users if remote management is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if remote management is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether remote management should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "remote_scripting": {
      "properties": {
        "warn": {
          "description": "Warn users if remote scripting is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if remote scripting is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether remote scripting should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "jailbroken": {
      "properties": {
        "warn": {
          "description": "Warn users if device is jailbroken",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if device is jailbroken",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether device should not be jailbroken",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "rooted": {
      "properties": {
        "warn": {
          "description": "Warn users if device is rooted",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if device is rooted",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether device should not be rooted",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "developer_mode": {
      "properties": {
        "warn": {
          "description": "Warn users if developer mode is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if developer mode is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether developer mode should be disabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "secure_boot": {
      "properties": {
        "warn": {
          "description": "Warn users if secure boot is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if secure boot is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether secure boot should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "integrity_protection": {
      "properties": {
        "warn": {
          "description": "Warn users if integrity protection is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if integrity protection is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether integrity protection should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "find_my_device": {
      "properties": {
        "warn": {
          "description": "Warn users if find my device is enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if find my device is enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether find my device should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "vanta": {
      "properties": {
        "warn": {
          "description": "Warn users if vanta is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if vanta is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether vanta should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "intune": {
      "properties": {
        "tenant_ids": {
          "description": "List of allowed Intune tenant IDs",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "external_enrollment_allowed": {
          "description": "Allow devices to be enrolled with an external organisation",
          "type": "boolean"
        },
        "warn": {
          "description": "Warn users if intune is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if intune is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether intune should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "tenant_ids",
        "warn"
      ],
      "type": "object"
    },
    "aikido_safe_chain": {
      "properties": {
        "warn": {
          "description": "Warn users if Aikido Safe Chain is not installed and active",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Aikido Safe Chain is not installed and active",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Aikido Safe Chain should be installed and active",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "aikido_endpoint": {
      "properties": {
        "endpoint_token": {
          "description": "Aikido registration token for Noon Device Protection, used for self-installation and tenant association",
          "type": "string"
        },
        "warn": {
          "description": "Warn users if Noon Device Protection is not installed and active",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Noon Device Protection is not installed and active",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Noon Device Protection should be installed and active",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "secrets_in_environment": {
      "properties": {
        "warn": {
          "description": "Warn users if secrets are detected in environment",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if secrets are detected in environment",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether secrets should not be in environment",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "autonomous_agents_present": {
      "properties": {
        "warn": {
          "description": "Warn users if autonomous agents are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if autonomous agents are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether autonomous agents should not be present",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "unsafe_ai_mode": {
      "properties": {
        "warn": {
          "description": "Warn users if unsafe AI configurations are detected",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if unsafe AI configurations are detected",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether unsafe AI configurations should not be present",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "unguarded_elevation": {
      "properties": {
        "warn": {
          "description": "Warn users if unguarded elevation is detected",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if unguarded elevation is detected",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether unguarded elevation should not be present",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "chrome_safebrowsing_enabled": {
      "properties": {
        "warn": {
          "description": "Warn users if Chrome Safe Browsing is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Chrome Safe Browsing is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Chrome Safe Browsing should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "chrome_safebrowsing_enhanced": {
      "properties": {
        "warn": {
          "description": "Warn users if Chrome Enhanced Safe Browsing is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Chrome Enhanced Safe Browsing is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Chrome Enhanced Safe Browsing should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "chrome_do_not_track": {
      "properties": {
        "warn": {
          "description": "Warn users if Chrome Do Not Track is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Chrome Do Not Track is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Chrome Do Not Track should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "chrome_dns_over_https": {
      "properties": {
        "warn": {
          "description": "Warn users if Chrome DNS over HTTPS is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Chrome DNS over HTTPS is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Chrome DNS over HTTPS should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "firefox_https_only": {
      "properties": {
        "warn": {
          "description": "Warn users if Firefox HTTPS-Only mode is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Firefox HTTPS-Only mode is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Firefox HTTPS-Only mode should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "firefox_dns_over_https": {
      "properties": {
        "warn": {
          "description": "Warn users if Firefox DNS over HTTPS is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Firefox DNS over HTTPS is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Firefox DNS over HTTPS should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "firefox_enhanced_tracking_protection": {
      "properties": {
        "warn": {
          "description": "Warn users if Firefox Enhanced Tracking Protection is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Firefox Enhanced Tracking Protection is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Firefox Enhanced Tracking Protection should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "firefox_enhanced_tracking_protection_strict": {
      "properties": {
        "warn": {
          "description": "Warn users if Firefox Enhanced Tracking Protection strict mode is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if Firefox Enhanced Tracking Protection strict mode is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether Firefox Enhanced Tracking Protection strict mode should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "unattended_remote_access": {
      "properties": {
        "warn": {
          "description": "Warn users if unattended remote access tools are configured",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if unattended remote access tools are configured",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether unattended remote access tools should not be configured",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "install_protection": {
      "description": "Policy for the OS-level install protection guardrail (Gatekeeper on macOS, SmartScreen / Defender PUA on Windows).",
      "properties": {
        "warn": {
          "description": "Warn users if install protection is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if install protection is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether install protection should be enabled",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_revoked_signature_apps": {
      "description": "Policy for apps whose code-signing certificate has been revoked by the OS.",
      "properties": {
        "warn": {
          "description": "Warn users if apps with revoked signatures are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if apps with revoked signatures are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether apps with revoked signatures should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_tampered_apps": {
      "description": "Policy for apps whose binary does not match its code signature.",
      "properties": {
        "warn": {
          "description": "Warn users if tampered apps are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if tampered apps are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether tampered apps should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_untrusted_signer_apps": {
      "description": "Policy for apps signed by an untrusted or unknown developer.",
      "properties": {
        "warn": {
          "description": "Warn users if apps from untrusted signers are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if apps from untrusted signers are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether apps from untrusted signers should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_unsigned_apps": {
      "description": "Policy for apps that carry no code signature at all.",
      "properties": {
        "warn": {
          "description": "Warn users if unsigned apps are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if unsigned apps are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether unsigned apps should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_adhoc_signed_apps": {
      "description": "Policy for apps that carry only an ad-hoc (self-issued) signature.",
      "properties": {
        "warn": {
          "description": "Warn users if ad-hoc signed apps are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if ad-hoc signed apps are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether ad-hoc signed apps should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_unnotarized_apps": {
      "description": "Policy for macOS apps signed with a Developer ID but without Apple notarization.",
      "properties": {
        "warn": {
          "description": "Warn users if apps without notarization are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if apps without notarization are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether apps without notarization should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_cryptominers": {
      "description": "Policy for cryptominer applications.",
      "properties": {
        "warn": {
          "description": "Warn users if cryptominer applications are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if cryptominer applications are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether cryptominer applications should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_hacking_pentest": {
      "description": "Policy for hacking and pentest tools.",
      "properties": {
        "warn": {
          "description": "Warn users if hacking and pentest tools are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if hacking and pentest tools are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether hacking and pentest tools should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_piracy_p2p": {
      "description": "Policy for piracy and peer-to-peer applications.",
      "properties": {
        "warn": {
          "description": "Warn users if piracy and P2P applications are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if piracy and P2P applications are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether piracy and P2P applications should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_jailbreak_rooting": {
      "description": "Policy for jailbreak and rooting tools.",
      "properties": {
        "warn": {
          "description": "Warn users if jailbreak and rooting tools are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if jailbreak and rooting tools are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether jailbreak and rooting tools should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_vpn_clients": {
      "description": "Policy for VPN clients.",
      "properties": {
        "warn": {
          "description": "Warn users if VPN clients are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if VPN clients are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether VPN clients should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_third_party_ai_coding": {
      "description": "Policy for third-party AI coding tools.",
      "properties": {
        "warn": {
          "description": "Warn users if third-party AI coding tools are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if third-party AI coding tools are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether third-party AI coding tools should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_experimental_browsers": {
      "description": "Policy for experimental browsers.",
      "properties": {
        "warn": {
          "description": "Warn users if experimental browsers are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if experimental browsers are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether experimental browsers should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_virtualization": {
      "description": "Policy for virtualization software.",
      "properties": {
        "warn": {
          "description": "Warn users if virtualization software is present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if virtualization software is present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether virtualization software should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_games": {
      "description": "Policy for games and gaming tools.",
      "properties": {
        "warn": {
          "description": "Warn users if games or gaming tools are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if games or gaming tools are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether games and gaming tools should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "no_permission_hungry": {
      "description": "Policy for applications that request unusually broad system permissions.",
      "properties": {
        "warn": {
          "description": "Warn users if permission-hungry applications are present",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if permission-hungry applications are present",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether permission-hungry applications should be absent",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "security_training": {
      "description": "Policy requiring the person's security trainings to be done, as reported by the organization's training sources (Vanta). About the person, not the device.",
      "properties": {
        "warn": {
          "description": "Warn users whose trainings are due soon or overdue",
          "type": "boolean"
        },
        "block": {
          "description": "Block users whose trainings are overdue",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether the trainings should be done",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        },
        "source_ids": {
          "description": "TrainingSource application IDs to read. Empty means all connected sources.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "policy_acceptance": {
      "description": "Policy requiring the person to have accepted the policies assigned to them, as reported by the organization's training sources (Vanta). About the person, not the device.",
      "properties": {
        "warn": {
          "description": "Warn users whose policy acceptance is due soon or overdue",
          "type": "boolean"
        },
        "block": {
          "description": "Block users whose policy acceptance is overdue",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether the policies should be accepted",
          "type": "boolean"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        },
        "source_ids": {
          "description": "TrainingSource application IDs to read. Empty means all connected sources.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    }
  },
  "required": [
    "name",
    "organization_id",
    "policy_id"
  ],
  "type": "object",
  "$defs": {
    "AntivirusPolicy": {
      "properties": {
        "warn": {
          "description": "Warn users if antivirus is not enabled",
          "type": "boolean"
        },
        "block": {
          "description": "Block users if antivirus is not enabled",
          "type": "boolean"
        },
        "goal": {
          "description": "Goal - whether antivirus should be enabled",
          "type": "boolean"
        },
        "requirements": {
          "$ref": "#/$defs/AntivirusRequirements"
        },
        "escalation": {
          "$ref": "#/$defs/CheckEscalation"
        }
      },
      "required": [
        "block",
        "warn"
      ],
      "type": "object"
    },
    "AntivirusProductRequirement": {
      "properties": {
        "allowed_products": {
          "description": "One healthy listed product suffices. An empty list allows any supported healthy product. Windows accepts microsoft_defender or wsc followed by a colon and a normalized full registration name; Linux accepts clamav or microsoft_defender_endpoint; macOS accepts apple_xprotect.",
          "items": {
            "maxLength": 260,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 16,
          "type": "array",
          "uniqueItems": true,
          "x-oapi-codegen-extra-tags": {
            "dynamodbav": "allowedProducts"
          }
        }
      },
      "required": [
        "allowed_products"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "AntivirusRequirements": {
      "description": "Missing requirements preserve stored rules on update; null clears all rules. Missing OS fields preserve their rule; null clears it.",
      "properties": {
        "windows": {
          "$ref": "#/$defs/AntivirusProductRequirement"
        },
        "linux": {
          "$ref": "#/$defs/AntivirusProductRequirement"
        },
        "macos": {
          "$ref": "#/$defs/AntivirusProductRequirement"
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "BetaVersionsPolicy": {
      "properties": {
        "dont_warn": {
          "description": "Do not warn users if on beta version",
          "type": "boolean"
        },
        "dont_block": {
          "description": "Do not block users if on beta version",
          "type": "boolean"
        }
      },
      "required": [
        "dont_block",
        "dont_warn"
      ],
      "type": "object"
    },
    "CheckEscalation": {
      "properties": {
        "mode": {
          "enum": [
            "grace_days"
          ],
          "type": "string"
        },
        "block_after_days": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "mode"
      ],
      "type": "object"
    },
    "MajorVersionsPolicy": {
      "properties": {
        "dont_warn": {
          "description": "Do not warn users if on older, but supported major version",
          "type": "boolean"
        },
        "dont_block": {
          "description": "Do not block users if on older, but supported major version",
          "type": "boolean"
        }
      },
      "required": [
        "dont_block",
        "dont_warn"
      ],
      "type": "object"
    },
    "PolicyThresholdTimeOption": {
      "description": "Optional dropdown option for policy threshold timing. Missing means the client should use legacy goal-relative fallback.",
      "enum": [
        "direct"
      ],
      "type": "string"
    },
    "SkipLimit": {
      "properties": {
        "max_skips": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "max_skips"
      ],
      "type": "object"
    },
    "VersionPolicy": {
      "properties": {
        "WarnTime": {
          "description": "Warn users if their version is older than this many seconds",
          "type": "integer"
        },
        "WarnTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "BlockTime": {
          "description": "Block users if their version is older than this many seconds",
          "type": "integer"
        },
        "BlockTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "GoalTime": {
          "description": "Goal - time in seconds that devices are allowed to be outdated with security updates",
          "type": "integer"
        },
        "older_supported_major_versions": {
          "$ref": "#/$defs/MajorVersionsPolicy"
        },
        "beta_versions": {
          "$ref": "#/$defs/BetaVersionsPolicy"
        }
      },
      "type": "object"
    },
    "VersionPolicyInDays": {
      "properties": {
        "WarnTimeInDays": {
          "description": "Warn users if their version is older than this many days",
          "type": "integer"
        },
        "WarnTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "BlockTimeInDays": {
          "description": "Block users if their version is older than this many days",
          "type": "integer"
        },
        "BlockTimeOption": {
          "$ref": "#/$defs/PolicyThresholdTimeOption"
        },
        "GoalTimeInDays": {
          "description": "Goal - days that devices are allowed to be outdated with security updates",
          "type": "integer"
        },
        "older_supported_major_versions": {
          "$ref": "#/$defs/MajorVersionsPolicy"
        },
        "beta_versions": {
          "$ref": "#/$defs/BetaVersionsPolicy"
        }
      },
      "type": "object"
    }
  }
}