{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ymove-app/json-schema/ymove-app-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ymove-app-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "Account status (e.g. \"active\", \"trial\")"
    },
    "minutesUsed": {
      "type": "integer"
    },
    "minutesLimit": {
      "type": "integer"
    },
    "minutesRemaining": {
      "type": "integer"
    },
    "percentUsed": {
      "type": "integer"
    },
    "rateLimit": {
      "type": "integer",
      "description": "Requests per minute allowed for your plan"
    },
    "monthlyExercisesUsed": {
      "type": "integer",
      "description": "Distinct exercises accessed with video in the rolling window (see exerciseLimitWindowDays)"
    },
    "monthlyExerciseLimit": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string",
          "enum": [
            "unlimited"
          ]
        }
      ],
      "description": "Max unique exercises with video in the rolling window for your plan (see exerciseLimitWindowDays). Starter 250 / Pro 350 per 30 days on monthly billing, Starter 500 / Pro 800 per 365 days on yearly billing. \"unlimited\" on Scale, Growth and Enterprise. The name predates yearly limits and is kept for compatibility."
    },
    "exerciseLimitWindowDays": {
      "type": "integer",
      "enum": [
        30,
        365
      ],
      "description": "Length of the rolling window monthlyExercisesUsed and monthlyExerciseLimit are counted over: 365 on yearly Starter and Pro, otherwise 30."
    },
    "postureAnalyses": {
      "type": "object",
      "properties": {
        "used": {
          "type": "integer"
        },
        "included": {
          "type": "integer"
        },
        "remaining_free": {
          "type": "integer"
        },
        "overage_count": {
          "type": "integer"
        },
        "overage_charge": {
          "type": "number"
        },
        "price_per_extra": {
          "type": "number"
        }
      }
    },
    "whiteVideoAccess": {
      "type": "boolean"
    },
    "premiumVideoAccess": {
      "type": "boolean"
    },
    "trialEndsAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "ISO 8601 timestamp when trial expires (null for non-trial accounts)"
    }
  }
}