{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transcript1-com/json-schema/transcript1-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transcript1-com-openapi.json#/components/schemas/Account",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "account"
      ]
    },
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "email"
      ]
    },
    "plan": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "minutes": {
      "type": "object",
      "properties": {
        "remaining": {
          "type": "number"
        },
        "cycle": {
          "type": "number"
        },
        "topup": {
          "type": "number"
        },
        "topup_usable": {
          "type": "boolean"
        },
        "resets_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "remaining",
        "cycle",
        "topup",
        "topup_usable",
        "resets_at"
      ]
    },
    "renews_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "limits": {
      "type": "object",
      "properties": {
        "requests_per_minute": {
          "type": "number"
        },
        "max_active_jobs": {
          "type": "number"
        }
      },
      "required": [
        "requests_per_minute",
        "max_active_jobs"
      ]
    }
  },
  "required": [
    "object",
    "user",
    "plan",
    "minutes",
    "renews_at",
    "limits"
  ]
}