{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everypage-co/json-schema/everypage-co-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everypage-openapi.json#/components/schemas/User",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "subscription": {
      "type": "string",
      "enum": [
        "free",
        "basic",
        "pro"
      ]
    },
    "isAdmin": {
      "type": "boolean",
      "description": "Always false through the API: the internal admin flag is masked on every token-authenticated read, so third-party apps never see it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "hasDealLicense": {
      "type": "boolean",
      "description": "True for lifetime-deal holders with an active deal license (their entitlement comes from the license rather than a subscription)."
    },
    "trialEligible": {
      "type": "boolean",
      "description": "True when the account can still start its one free trial of a paid plan."
    },
    "trialEndsAt": {
      "type": "string",
      "format": "date-time",
      "description": "Present while the account is on a free trial it has not yet paid for; when the trial ends."
    },
    "storageLimited": {
      "type": "boolean",
      "description": "True during an unpaid free trial - upload size and active-file limits stay at the free plan's until the plan starts."
    }
  }
}