{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xfa-tech/json-schema/xfa-tech-application-schema.json",
  "title": "Application",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xfa-tech-openapi.yml#/components/schemas/Application",
  "type": "object",
  "properties": {
    "organizationID": {
      "type": "string",
      "description": "ID of the organization"
    },
    "applicationID": {
      "type": "string",
      "description": "ID of the application"
    },
    "policyID": {
      "type": "string",
      "description": "ID of the policy"
    },
    "type": {
      "$ref": "#/$defs/Type"
    },
    "testKey": {
      "type": "string",
      "description": "Test key"
    },
    "name": {
      "type": "string",
      "description": "Name of the application"
    },
    "iconUrl": {
      "type": "string",
      "description": "Icon URL of the application"
    },
    "policies": {
      "$ref": "#/$defs/Policies"
    },
    "allowedApplicationDomainRegexes": {
      "type": "array",
      "description": "Allowed application domain regexes",
      "items": {
        "type": "string"
      }
    },
    "publicCerts": {
      "type": "array",
      "description": "Public certificates",
      "items": {
        "type": "string"
      }
    },
    "SAMLMetadataUrl": {
      "type": "string",
      "description": "SAML Metadata URL"
    },
    "SAMLConfiguration": {
      "$ref": "#/$defs/SAMLConfiguration"
    },
    "OAuthConfiguration": {
      "$ref": "#/$defs/OAuthConfiguration"
    },
    "MFAConfiguration": {
      "$ref": "#/$defs/MFAConfiguration"
    },
    "clientSecret": {
      "type": "string",
      "description": "Client secret"
    },
    "SSOUrl": {
      "type": "string",
      "description": "SSO URL"
    },
    "issuer": {
      "type": "string",
      "description": "Issuer"
    },
    "customSessionDurationInHours": {
      "type": "integer",
      "description": "Custom session duration in hours"
    },
    "filteredEmail": {
      "type": "array",
      "description": "Filtered email addresses",
      "items": {
        "type": "string"
      }
    },
    "filterMobile": {
      "type": "boolean",
      "description": "Filter mobile devices"
    },
    "filterDesktop": {
      "type": "boolean",
      "description": "Filter desktop devices"
    },
    "filteredOS": {
      "type": "array",
      "description": "Filtered operating systems",
      "items": {
        "type": "string"
      }
    },
    "enableMfa": {
      "type": "boolean",
      "description": "Enable MFA"
    },
    "enableMfaAutoApproveFirstDevice": {
      "type": "boolean",
      "description": "Enable MFA auto-approve first device"
    },
    "alwaysVerifyMfa": {
      "type": "boolean",
      "description": "Double Identity Verification"
    },
    "uniquePurpose": {
      "type": "string",
      "description": "Unique purpose of the application",
      "enum": [
        "DashboardDemo",
        "Account"
      ]
    },
    "enabled": {
      "type": "boolean",
      "description": "Enabled"
    },
    "allowedEmailDomains": {
      "type": "array",
      "description": "Allowed email-domain allow-list for the IdP connection",
      "items": {
        "type": "string"
      }
    },
    "mfaFirst": {
      "type": "boolean",
      "description": "Run passkey/MFA before device posture (IdP connection)"
    },
    "requireEmailVerification": {
      "type": "boolean",
      "description": "Require recovery-email proof at onboarding (IdP connection)"
    },
    "restrictToOrganizationDomains": {
      "type": "boolean",
      "description": "Only accept emails on the organization's email domains. For a factor-only application such as the Okta factor; IdP connections are always restricted. Omitted or false: no restriction."
    },
    "IdPProvider": {
      "type": "string",
      "description": "Branded provider of an IdP connection, such as a Google Workspace or Proton connection. Only valid when type is IdP; unrelated to the Google type (Workspace device discovery). Cannot be cleared once set.",
      "enum": [
        "Google",
        "Proton"
      ],
      "x-enum-varnames": [
        "IdPProviderGoogle",
        "IdPProviderProton"
      ]
    },
    "IdPProtocol": {
      "type": "string",
      "description": "Protocol an IdP connection speaks towards the application (XFA-4262): SAML, the default when absent, or OIDC, where XFA is the application's OpenID provider. Only valid when type is IdP; cannot change once set.",
      "enum": [
        "SAML",
        "OIDC"
      ],
      "x-enum-varnames": [
        "IdPProtocolSAML",
        "IdPProtocolOIDC"
      ]
    },
    "OIDCConfiguration": {
      "type": "object",
      "description": "Relying-party values of an IdP connection with IdPProtocol OIDC (XFA-4262). The client ID is the application ID and the client secret the application's clientSecret; the relying party discovers the rest at https://device-api.xfa.tech/{applicationID}/.well-known/openid-configuration. Only valid on an IdP connection with IdPProtocol OIDC.",
      "properties": {
        "RedirectURIs": {
          "type": "array",
          "description": "The relying party's registered redirect URIs: absolute https URLs without user info or fragment, each at most once, at most 20. An authorization request whose redirect_uri is not exactly one of them is refused before anything is stored. Read as [] when none is registered. On update, an omitted OIDCConfiguration keeps the stored list and an empty list clears it; a connection without redirect URIs admits no relying party.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "RedirectURIs"
      ]
    },
    "GoogleDirectorySync": {
      "type": "object",
      "description": "Explicit Google Directory setup, independent of SAML and Discovery device filters",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Synchronizes the Google directory every hour and onboards new users. Off stops both."
        },
        "ConnectionApplicationID": {
          "type": "string"
        },
        "CustomerID": {
          "type": "string",
          "readOnly": true
        },
        "InviteExistingUsers": {
          "type": "boolean",
          "default": false,
          "description": "Initial existing-user mailing choice, preserved across reconnects"
        },
        "ConfiguredAt": {
          "type": "string",
          "readOnly": true
        },
        "Revision": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "LastSync": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "LastSuccessfulSync": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        },
        "LastError": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "googleConnection": {
      "$ref": "#/$defs/GoogleConnection"
    },
    "microsoftConnection": {
      "$ref": "#/$defs/MicrosoftConnection"
    },
    "oktaConnection": {
      "$ref": "#/$defs/OktaConnection"
    },
    "TrainingSourceConnection": {
      "$ref": "#/$defs/TrainingSourceConnection"
    }
  },
  "required": [
    "organizationID",
    "applicationID",
    "name",
    "allowedApplicationDomainRegexes",
    "publicCerts",
    "SAMLMetadataUrl",
    "SSOUrl",
    "issuer",
    "filteredEmail"
  ],
  "$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"
    },
    "GoogleConnection": {
      "type": "object",
      "properties": {
        "CustomerID": {
          "type": "string",
          "readOnly": true,
          "description": "Verified immutable Google customer of the authorized connection"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "error_mobile_devices_api": {
          "type": "string",
          "description": "Error message for mobile devices API"
        },
        "email": {
          "type": "string",
          "description": "Email of the Google connection"
        },
        "error_cloud_identity_api": {
          "type": "string",
          "description": "Error message for Cloud Identity API"
        },
        "only_unmanaged": {
          "type": "boolean",
          "description": "Only unmanaged devices"
        },
        "only_groups": {
          "type": "array",
          "description": "only discover devices in these groups (empty means all groups)",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            }
          }
        },
        "exclude_desktop": {
          "type": "boolean",
          "description": "Exclude desktop devices"
        },
        "exclude_mobile": {
          "type": "boolean",
          "description": "Exclude mobile devices"
        },
        "last_error": {
          "type": "string",
          "description": "Last error message"
        },
        "first_full_read_done": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether the first full discovery read completed successfully"
        }
      },
      "required": [
        "scopes",
        "only_groups"
      ]
    },
    "MFAConfiguration": {
      "type": "object",
      "description": "MFA methods the application accepts and how they behave. On update, an omitted allow_security_keys_without_pin or built_in_passkey_zero_touch keeps its stored value; enabled_types does not (see there).",
      "properties": {
        "enabled_types": {
          "type": "array",
          "description": "Enabled MFA methods: silentMFA, TOTP and/or Passkey. Replaced on every update that sends MFAConfiguration, so always send the full list: omitting it, or sending an empty list, stores no methods and leaves an MFA-enabled application with no method that can satisfy it.",
          "items": {
            "type": "string"
          }
        },
        "allow_security_keys_without_pin": {
          "type": "boolean",
          "description": "Allow roaming security keys (such as a YubiKey) with touch only instead of a PIN. Platform passkeys are unaffected. Only meaningful while Passkey is enabled. Omitted means off."
        },
        "built_in_passkey_zero_touch": {
          "type": "boolean",
          "description": "Whether the XFA app or agent signs with its built-in passkey (silentMFA) without asking anything. false requires the person to confirm it is them on the device (biometric or device password) first. Only takes effect for organizations with the built_in_passkey_verification feature. On read, absent means zero-touch (true); on update, omitted keeps the stored value. On create, omitted is stored as false in organizations with the built_in_passkey_verification feature, and left absent (zero-touch) otherwise."
        }
      }
    },
    "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"
    },
    "MicrosoftConnection": {
      "type": "object",
      "properties": {
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of scopes for the Microsoft connection"
        },
        "last_error": {
          "type": "string",
          "description": "Last error message"
        },
        "only_unmanaged": {
          "type": "boolean",
          "description": "Only discover unmanaged devices"
        },
        "only_groups": {
          "type": "array",
          "description": "Only discover devices from users in these groups (no groups means all groups)",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of the group"
              },
              "id": {
                "type": "string",
                "description": "ID of the group"
              }
            }
          }
        },
        "exclude_desktop": {
          "type": "boolean",
          "description": "Exclude desktop devices"
        },
        "exclude_mobile": {
          "type": "boolean",
          "description": "Exclude mobile devices"
        },
        "last_sync": {
          "type": "integer",
          "description": "Last time the devices were discovered"
        },
        "discovered_until": {
          "type": "integer",
          "description": "Unix time up until which devices have been discovered (for pagination)"
        },
        "first_full_read_done": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether the first full discovery read completed successfully"
        }
      },
      "required": [
        "scopes",
        "only_groups"
      ]
    },
    "OAuthConfiguration": {
      "type": "object",
      "description": "OAuth2 / OpenID Connect settings of the application. The property names are PascalCase on the wire, as the dashboard sends them; snake_case is ignored. On update, an omitted or null AuthorizeEndpointOfProvider keeps its stored value, and \"\" clears it.",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Indicates if OAuth is enabled"
        },
        "RedirectURLToClient": {
          "type": "string",
          "description": "URL to redirect to the client. Always equals the first entry of RedirectURLsToClient. Sent without RedirectURLsToClient, it replaces the first entry and keeps the other stored entries."
        },
        "RedirectURLsToClient": {
          "type": "array",
          "maxItems": 20,
          "description": "The redirect URIs the client may ask for, matched exactly; at most 20, none repeated. Each is https, http on localhost, 127.0.0.1 or [::1], or a custom app scheme such as onepassword://, with a lowercase scheme and host and without whitespace, fragment or user info. RedirectURLToClient is set to the first entry. On update, an omitted or null RedirectURLsToClient keeps the stored entries after the first and RedirectURLToClient sets the first (an omitted or empty RedirectURLToClient clears the list, as before); [] clears it.",
          "items": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "TokenEndpointOfProvider": {
          "type": "string",
          "description": "Token endpoint of the provider"
        },
        "AuthorizeEndpointOfProvider": {
          "type": "string",
          "description": "The provider's OAuth2 authorization endpoint. When set, XFA performs the device check before redirecting the user to the provider's authorize endpoint, so the provider's authorization code is minted after the device check rather than before it (which prevents the code expiring during the check). When omitted, the existing flow is used unchanged."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "OktaConnection": {
      "type": "object",
      "properties": {
        "okta_domain": {
          "type": "string",
          "description": "Domain of the Okta connection"
        },
        "client_id": {
          "type": "string",
          "description": "Client ID for the Okta connection"
        },
        "client_secret": {
          "type": "string",
          "description": "Client secret for the Okta connection"
        },
        "last_error": {
          "type": "string",
          "description": "Last error message"
        },
        "last_sync": {
          "type": "integer",
          "description": "Last time the devices were discovered"
        },
        "discovered_until": {
          "type": "integer",
          "description": "Unix time up until which devices have been discovered (for pagination)"
        },
        "first_full_read_done": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether the first full discovery read completed successfully"
        }
      },
      "required": [
        "okta_domain",
        "client_id",
        "client_secret"
      ]
    },
    "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",
      "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"
    },
    "PolicyThresholdTimeOption": {
      "description": "Optional dropdown option for policy threshold timing. Missing means the client should use legacy goal-relative fallback.",
      "enum": [
        "direct"
      ],
      "type": "string"
    },
    "SAMLConfiguration": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates if SAML is enabled"
        },
        "service_provider_assertion_consumer_service_url": {
          "type": "string",
          "description": "URL for the service provider's assertion consumer service"
        },
        "identity_provider_sso_url": {
          "type": "string",
          "description": "URL for the identity provider's SSO"
        },
        "identity_provider_issuer": {
          "type": "string",
          "description": "Issuer for the identity provider"
        },
        "identity_provider_public_certificate": {
          "type": "string",
          "description": "Public certificate for the identity provider"
        },
        "sign_response": {
          "type": "boolean",
          "description": "Indicates if the response should be signed"
        },
        "factor_only": {
          "type": "boolean",
          "description": "Indicates if only factor authentication is used"
        },
        "factor_only_audience": {
          "type": "string",
          "description": "Audience for factor-only authentication"
        },
        "force_reauthentication": {
          "type": "boolean",
          "description": "Indicates if reauthentication is forced"
        },
        "prevent_passive_login": {
          "type": "boolean",
          "description": "Indicates if passive login is prevented"
        },
        "azure_force_account_chooser": {
          "type": "boolean",
          "description": "Indicates if Azure account chooser is forced"
        },
        "google_force_account_chooser": {
          "type": "boolean",
          "description": "Indicates if Google account chooser is forced"
        },
        "service_provider_signing_certificate": {
          "type": "string",
          "description": "Service provider's signing certificate (PEM) used to verify signed SP requests"
        },
        "service_provider_entity_id": {
          "type": "string",
          "description": "Service provider's entity ID used to verify signed SP requests"
        },
        "service_provider_metadata_url": {
          "type": "string",
          "description": "https URL the service provider metadata was imported from; kept so the metadata can be re-fetched for certificate rotation"
        }
      },
      "required": [
        "enabled",
        "service_provider_assertion_consumer_service_url",
        "identity_provider_sso_url",
        "identity_provider_issuer",
        "identity_provider_public_certificate",
        "sign_response"
      ]
    },
    "SkipLimit": {
      "properties": {
        "max_skips": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "max_skips"
      ],
      "type": "object"
    },
    "TrainingSourceConnection": {
      "type": "object",
      "description": "Connection of a TrainingSource application, which reads each person's security training and policy acceptance status from Vanta or Drata, or only the training status from Phished or Noon (the security_training and policy_acceptance policy checks). Required on create when type is TrainingSource; ignored on any other type. The provider cannot change after create. Creating or changing one needs the organization's training_checks plan feature.",
      "properties": {
        "Provider": {
          "type": "string",
          "enum": [
            "vanta",
            "phished",
            "noon",
            "drata"
          ],
          "x-enum-varnames": [
            "TrainingSourceProviderVanta",
            "TrainingSourceProviderPhished",
            "TrainingSourceProviderNoon",
            "TrainingSourceProviderDrata"
          ]
        },
        "VantaClientID": {
          "type": "string",
          "description": "Client ID of the read-only Manage Vanta app the customer created. Vanta only; required."
        },
        "VantaClientSecret": {
          "type": "string",
          "writeOnly": true,
          "description": "Client secret of that Vanta app. Write-only: required on create, never returned. An update without it keeps the stored secret; changing VantaClientID needs a new one."
        },
        "HasVantaClientSecret": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether a Vanta client secret is stored."
        },
        "PhishedAPIToken": {
          "type": "string",
          "writeOnly": true,
          "description": "Organisation Token of the customer's Phished account. Phished only. Write-only: required on create, never returned. An update without it keeps the stored token."
        },
        "HasPhishedAPIToken": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether a Phished API token is stored."
        },
        "NoonClientID": {
          "type": "string",
          "description": "Client ID of the Noon API client the customer created. Noon only; required."
        },
        "NoonClientSecret": {
          "type": "string",
          "writeOnly": true,
          "description": "Client secret of that Noon API client. Write-only: required on create, never returned. An update without it keeps the stored secret; changing NoonClientID needs a new one."
        },
        "HasNoonClientSecret": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether a Noon client secret is stored."
        },
        "DrataRegion": {
          "type": "string",
          "enum": [
            "us",
            "eu",
            "apac"
          ],
          "x-enum-varnames": [
            "DrataRegionUS",
            "DrataRegionEU",
            "DrataRegionAPAC"
          ],
          "description": "Region of the customer's Drata account. Drata only; required. Picks Drata's API host for that region; changing it needs a new DrataAPIKey."
        },
        "DrataAPIKey": {
          "type": "string",
          "writeOnly": true,
          "description": "Drata API key with the Personnel & Users \"Get Personnel Details\" permission. Drata only. Write-only: required on create, never returned. An update without it keeps the stored key; changing DrataRegion needs a new one."
        },
        "HasDrataAPIKey": {
          "type": "boolean",
          "readOnly": true,
          "description": "Whether a Drata API key is stored."
        },
        "LastSync": {
          "type": "integer",
          "format": "int64",
          "readOnly": true,
          "description": "Unix time of the last successful read."
        },
        "LastError": {
          "type": "string",
          "readOnly": true,
          "description": "Error of the last failed read, for example a revoked key, or not_checked when the credentials were saved but the source did not answer the check, or missing_scope when the provider accepted the credentials but they lack the scopes in MissingScopes (cleared by the first successful read)."
        },
        "MissingScopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "description": "The provider's names of the scopes XFA needs that the saved credentials lack, for example training:read (Noon only today). Set by the check on save; absent when none are known to be missing; cleared by new credentials and by the first successful read."
        }
      },
      "required": [
        "Provider"
      ]
    },
    "Type": {
      "type": "string",
      "description": "Type of the application",
      "enum": [
        "MicrosoftEAM",
        "Okta",
        "Onelogin",
        "Google",
        "Microsoft",
        "OktaDiscovery",
        "IdP",
        "TrainingSource"
      ],
      "x-enum-varnames": [
        "TypeMicrosoftEAM",
        "TypeOkta",
        "TypeOnelogin",
        "TypeGoogle",
        "TypeMicrosoft",
        "TypeOktaDiscovery",
        "TypeIdP",
        "TypeTrainingSource"
      ]
    },
    "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"
    }
  }
}