{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sitegpt-ai/json-schema/sitegpt-ai-account-user-schema.json",
  "title": "AccountUser",
  "description": "The authenticated SiteGPT user.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sitegpt-ai-account-api-openapi.yml#/components/schemas/AccountUser",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "profilePicSrcId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Absent from the /api/v2/me variant."
    },
    "globalRole": {
      "type": "string"
    },
    "brandId": {
      "type": "string"
    },
    "verified": {
      "type": "boolean"
    },
    "features": {
      "$ref": "#/$defs/GenericObject",
      "description": "Feature flags enabled for this account."
    },
    "quotas": {
      "$ref": "#/$defs/AccountQuotas"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "AccountQuotas": {
      "type": "object",
      "description": "Account-level quota ceilings.",
      "additionalProperties": true,
      "properties": {
        "chatbotsQuota": {
          "type": "integer"
        },
        "docsQuota": {
          "type": "integer"
        },
        "filesQuota": {
          "type": "integer"
        },
        "pagesQuota": {
          "type": "integer"
        },
        "maxFileSize": {
          "type": "integer"
        },
        "combinedMessagesQuota": {
          "type": "integer"
        },
        "normalMessagesQuota": {
          "type": "integer",
          "description": "Derived; absent from the /api/v2/me variant."
        },
        "gpt4MessagesQuota": {
          "type": "integer",
          "description": "Derived; absent from the /api/v2/me variant."
        },
        "gpt4Share": {
          "type": "number"
        },
        "membersQuota": {
          "type": "integer"
        }
      }
    },
    "GenericObject": {
      "type": "object",
      "additionalProperties": true
    }
  }
}