{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-account-usage-response-schema.json",
  "title": "AccountUsageResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-account-api-openapi.yml#/components/schemas/AccountUsageResponse",
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string"
    },
    "apiCredits": {
      "$ref": "#/$defs/ApiCredits"
    },
    "apiSubscription": {
      "$ref": "#/$defs/ApiSubscription"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "ApiCredits": {
      "type": "object",
      "properties": {
        "totalCredits": {
          "type": "integer"
        },
        "servedRequest": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "ApiSubscription": {
      "type": "object",
      "properties": {
        "requestLimit": {
          "type": "integer"
        },
        "servedRequests": {
          "type": "integer"
        },
        "subscriptionStatus": {
          "type": "string"
        },
        "surchargeRequestLimit": {
          "type": "integer"
        },
        "servedSurchargeRequests": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    }
  }
}