{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/superdocs-app/json-schema/superdocs-app-user-profile-response-schema.json",
  "title": "UserProfileResponse",
  "description": "User profile with subscription and usage information.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/superdocs-app-openapi.json#/components/schemas/UserProfileResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Unique user identifier (UUID)."
    },
    "email": {
      "type": "string",
      "title": "Email",
      "description": "User's email address."
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name",
      "description": "User's display name."
    },
    "photo_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Photo Url",
      "description": "URL to user's profile photo."
    },
    "email_verified": {
      "type": "boolean",
      "title": "Email Verified",
      "description": "Whether the user's email has been verified."
    },
    "auth_provider": {
      "type": "string",
      "title": "Auth Provider",
      "description": "Authentication method: 'email' or 'google'."
    },
    "subscription_tier": {
      "type": "string",
      "title": "Subscription Tier",
      "description": "Current plan: 'free', 'plus', 'pro', or 'enterprise'."
    },
    "subscription_status": {
      "type": "string",
      "title": "Subscription Status",
      "description": "Subscription status: 'active', 'canceled', or 'past_due'."
    },
    "monthly_operation_limit": {
      "type": "integer",
      "title": "Monthly Operation Limit",
      "description": "Maximum operations allowed per month. -1 means unlimited."
    },
    "monthly_operations_used": {
      "type": "integer",
      "title": "Monthly Operations Used",
      "description": "Operations used this billing cycle."
    },
    "monthly_remaining": {
      "type": "integer",
      "title": "Monthly Remaining",
      "description": "Operations remaining this cycle."
    },
    "preferences": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Preferences",
      "description": "User preferences (e.g., approval_mode, model_tier)."
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At",
      "description": "ISO 8601 timestamp when the account was created."
    },
    "last_login_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Login At",
      "description": "ISO 8601 timestamp of the last login."
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "email_verified",
    "auth_provider",
    "subscription_tier",
    "subscription_status",
    "monthly_operation_limit",
    "monthly_operations_used",
    "monthly_remaining"
  ]
}