{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autoshort-org/json-schema/autoshort-org-subscription-schema.json",
  "title": "Subscription",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autoshort-org-account-api-openapi.yml#/components/schemas/Subscription",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "hasActiveSubscription": {
      "type": "boolean"
    },
    "videosUsed": {
      "type": "integer"
    },
    "videosLimit": {
      "type": "integer"
    },
    "credits": {
      "type": "object",
      "properties": {
        "balance": {
          "type": "integer"
        },
        "monthlyAllocation": {
          "type": "integer"
        },
        "lastResetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}