{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/itsconvo-com/json-schema/itsconvo-com-user-profile-schema.json",
  "title": "UserProfile",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/itsconvo-com-openapi.json#/components/schemas/UserProfile",
  "type": "object",
  "properties": {
    "profile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "profilePictureUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "subscription": {
      "type": "object",
      "properties": {
        "tier": {
          "type": "string",
          "enum": [
            "starter",
            "professional",
            "enterprise"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "currentPeriodEnd": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "apiUsage": {
      "type": "object",
      "properties": {
        "aiGenerations": {
          "type": "object",
          "properties": {
            "used": {
              "type": "integer",
              "description": "AI credits used this month (UTC), including by the desktop app"
            },
            "limit": {
              "type": "integer",
              "description": "AI credits per month on your plan"
            },
            "remaining": {
              "type": "integer",
              "description": "`limit` minus `used`. A daily cap of a third of `limit`, or the monthly spending cap, can stop generation earlier."
            },
            "resetsAt": {
              "type": "string",
              "format": "date-time",
              "description": "The first day of next month, 00:00 UTC"
            }
          }
        }
      }
    }
  }
}