{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-fr/json-schema/tenderapi-fr-me-out-schema.json",
  "title": "MeOut",
  "description": "Authenticated key metadata enriched with quota + features for dashboards/integrators.\n\nMirrors the contractual limits documented in CGV art.2. Clients can read this\nto verify what their subscription actually grants (grandfather-friendly: a\ncustomer on a legacy tier sees their legacy limits here, not the v2 ones).",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-fr-openapi.json#/components/schemas/MeOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "key_prefix": {
      "type": "string",
      "title": "Key Prefix"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "last_used_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Used At"
    },
    "requests_today": {
      "type": "integer",
      "title": "Requests Today"
    },
    "requests_month": {
      "type": "integer",
      "title": "Requests Month"
    },
    "quota_day_limit": {
      "type": "integer",
      "title": "Quota Day Limit"
    },
    "quota_minute_limit": {
      "type": "integer",
      "title": "Quota Minute Limit"
    },
    "quota_remaining_today": {
      "type": "integer",
      "title": "Quota Remaining Today"
    },
    "max_page_size": {
      "type": "integer",
      "title": "Max Page Size"
    },
    "max_profiles": {
      "type": "integer",
      "title": "Max Profiles"
    },
    "features": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Features"
    }
  },
  "type": "object",
  "required": [
    "id",
    "key_prefix",
    "name",
    "email",
    "tier",
    "created_at",
    "last_used_at",
    "requests_today",
    "requests_month",
    "quota_day_limit",
    "quota_minute_limit",
    "quota_remaining_today",
    "max_page_size",
    "max_profiles",
    "features"
  ]
}