{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/temporevenue-com/json-schema/temporevenue-com-credits-schema.json",
  "title": "Credits",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/temporevenue-com-openapi.json#/components/schemas/Credits",
  "type": "object",
  "required": [
    "credits_remaining",
    "plan"
  ],
  "properties": {
    "credits_remaining": {
      "type": "integer",
      "description": "Older accounts: included quota remaining plus purchased credits. Newer accounts: publication credits remaining (drafts do not use credits)."
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "trial",
        "pro",
        "credits"
      ],
      "description": "Accounts created before the credit-pack offer: free, trial or pro. Newer accounts: credits (no monthly publication quota; optional Pro tools are separate; credits_remaining counts publication credits)."
    }
  }
}