{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asoskill-com/json-schema/asoskill-com-credits-response-schema.json",
  "title": "CreditsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asoskill-com-credits-api-openapi.yml#/components/schemas/CreditsResponse",
  "type": "object",
  "required": [
    "credits",
    "topUp",
    "requestId"
  ],
  "properties": {
    "credits": {
      "$ref": "#/$defs/CreditBalance"
    },
    "topUp": {
      "type": "object",
      "required": [
        "method",
        "path"
      ],
      "properties": {
        "method": {
          "type": "string",
          "const": "GET"
        },
        "path": {
          "type": "string",
          "const": "/v1/billing/packs"
        }
      }
    },
    "requestId": {
      "type": "string"
    }
  },
  "$defs": {
    "CreditBalance": {
      "type": "object",
      "required": [
        "paid",
        "promotional",
        "dailyFree",
        "total",
        "used",
        "dailyFreeResetsAt"
      ],
      "properties": {
        "paid": {
          "type": "integer",
          "minimum": 0
        },
        "promotional": {
          "type": "integer",
          "minimum": 0
        },
        "dailyFree": {
          "type": "integer",
          "minimum": 0
        },
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "used": {
          "type": "integer",
          "minimum": 0
        },
        "dailyFreeResetsAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}