{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/superdocs-app/json-schema/superdocs-app-agent-whoami-response-schema.json",
  "title": "AgentWhoamiResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/superdocs-app-agents-api-openapi.yml#/components/schemas/AgentWhoamiResponse",
  "properties": {
    "account_id": {
      "type": "string",
      "title": "Account Id"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "quota": {
      "$ref": "#/$defs/AgentQuota"
    },
    "is_agent_account": {
      "type": "boolean",
      "title": "Is Agent Account"
    },
    "adopted": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Adopted",
      "description": "For agent accounts: whether a human has adopted it yet. Null for regular accounts."
    },
    "hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hint"
    }
  },
  "type": "object",
  "required": [
    "account_id",
    "tier",
    "quota",
    "is_agent_account"
  ],
  "$defs": {
    "AgentQuota": {
      "properties": {
        "tier": {
          "type": "string",
          "title": "Tier"
        },
        "monthly_limit": {
          "type": "integer",
          "title": "Monthly Limit"
        },
        "used": {
          "type": "integer",
          "title": "Used"
        },
        "remaining": {
          "type": "integer",
          "title": "Remaining"
        },
        "resets_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resets At"
        }
      },
      "type": "object",
      "required": [
        "tier",
        "monthly_limit",
        "used",
        "remaining"
      ],
      "title": "AgentQuota"
    }
  }
}