{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/advisorppc-com/json-schema/advisorppc-com-user-out-schema.json",
  "title": "UserOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/advisorppc-com-auth-api-openapi.yml#/components/schemas/UserOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "picture": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Picture"
    },
    "tenant_id": {
      "type": "integer",
      "title": "Tenant Id"
    },
    "tenant_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tenant Name"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "can_manage": {
      "type": "boolean",
      "title": "Can Manage"
    },
    "is_superuser": {
      "type": "boolean",
      "title": "Is Superuser"
    },
    "acting_as": {
      "type": "boolean",
      "title": "Acting As",
      "default": false
    },
    "auto_model_bias": {
      "type": "string",
      "title": "Auto Model Bias"
    },
    "free_models": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Free Models",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "tenant_id",
    "role",
    "can_manage",
    "is_superuser",
    "auto_model_bias"
  ]
}