{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pageaudit/json-schema/pageaudit-trial-schema.json",
  "title": "Trial",
  "description": "The paywall-free period that confirming the e-mail grants. It is the alternative to paying.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pageaudit-auth-api-openapi.yml#/components/schemas/Trial",
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "description": "Trial length in days."
    },
    "active": {
      "type": "boolean",
      "description": "Whether it is in force now."
    },
    "days_left": {
      "type": "integer",
      "description": "How many days remain."
    },
    "ends_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "When it ends (UTC)."
    },
    "granted": {
      "type": "boolean",
      "description": "`true` when THIS call granted the trial."
    }
  },
  "required": [
    "days",
    "active",
    "ends_at"
  ]
}