{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rombik-app/json-schema/rombik-app-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rombik-app-openapi.yml#/components/schemas/Me",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "student",
        "pro"
      ],
      "description": "Чинний тариф"
    },
    "planUntil": {
      "type": [
        "string",
        "null"
      ],
      "description": "RFC3339 — до коли діє тариф (null для безкоштовного)"
    },
    "exportsUsed": {
      "type": "integer",
      "description": "Експортів цього місяця"
    },
    "exportsLimit": {
      "type": "integer",
      "description": "Межа місяця для тарифу"
    },
    "exportsLeft": {
      "type": "integer"
    },
    "credits": {
      "type": "integer",
      "description": "= exportsLeft (сумісність зі старими клієнтами)"
    },
    "pro": {
      "type": "boolean"
    },
    "proUntil": {
      "type": "string",
      "description": "RFC3339 або \"\" якщо без Pro"
    }
  }
}