{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carhunt-fr/json-schema/carhunt-fr-usage-out-schema.json",
  "title": "UsageOut",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carhunt-fr-pro-openapi.json#/components/schemas/UsageOut",
  "properties": {
    "plan": {
      "type": "string",
      "title": "Plan"
    },
    "period_start": {
      "type": "string",
      "format": "date",
      "title": "Period Start"
    },
    "quota": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quota",
      "description": "Quota mensuel de VÉHICULES inclus (null = illimité)"
    },
    "used": {
      "type": "integer",
      "title": "Used",
      "description": "Véhicules consommés ce mois"
    },
    "remaining": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Remaining",
      "description": "Véhicules restants ce mois (quota + crédits achetés)"
    },
    "extra_credits": {
      "type": "integer",
      "title": "Extra Credits",
      "description": "Solde permanent de véhicules achetés (packs), pris après le quota mensuel",
      "default": 0
    },
    "analyses": {
      "type": "object",
      "title": "Analyses",
      "description": "Quota mensuel, consommation et crédits d'analyses prépayés"
    }
  },
  "type": "object",
  "required": [
    "plan",
    "period_start",
    "used",
    "analyses"
  ]
}