{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-credits-balance-out-schema.json",
  "title": "CreditsBalanceOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-credits-api-openapi.yml#/components/schemas/CreditsBalanceOut",
  "properties": {
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "expiringSoon": {
      "items": {
        "$ref": "#/$defs/ExpiringCreditsItem"
      },
      "type": "array",
      "title": "Expiringsoon"
    },
    "nextDailyGrantAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nextdailygrantat"
    },
    "nextMonthlyGrantAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nextmonthlygrantat"
    }
  },
  "type": "object",
  "required": [
    "total"
  ],
  "$defs": {
    "ExpiringCreditsItem": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source"
        },
        "expiresAt": {
          "type": "string",
          "title": "Expiresat"
        },
        "amount": {
          "type": "integer",
          "title": "Amount"
        }
      },
      "type": "object",
      "required": [
        "source",
        "expiresAt",
        "amount"
      ],
      "title": "ExpiringCreditsItem"
    }
  }
}