{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-terms-of-service-details-schema.json",
  "title": "TermsOfServiceDetails",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-terms-of-service-api-openapi.yml#/components/schemas/TermsOfServiceDetails",
  "required": [
    "isEnabled",
    "isGracePeriodEnabled",
    "currentVersion",
    "userAcceptedVersion"
  ],
  "type": "object",
  "properties": {
    "isEnabled": {
      "type": "boolean",
      "description": "true if terms of service is enforced in Sam"
    },
    "isGracePeriodEnabled": {
      "type": "boolean",
      "description": "true if there is currently a grace period enabled, letting users use the system without accepting the terms of service"
    },
    "currentVersion": {
      "type": "string",
      "description": "the current version of terms of service for the system"
    },
    "userAcceptedVersion": {
      "type": "string",
      "description": "the version of the terms of service the user has accepted"
    }
  }
}