{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corapilot-com/json-schema/corapilot-com-user-out-schema.json",
  "title": "UserOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corapilot-com-auth-api-openapi.yml#/components/schemas/UserOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "full_name": {
      "type": "string",
      "title": "Full Name"
    },
    "role": {
      "$ref": "#/$defs/RoleEnum"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "two_factor_enabled": {
      "type": "boolean",
      "title": "Two Factor Enabled",
      "default": false
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "full_name",
    "role",
    "is_active",
    "created_at"
  ],
  "$defs": {
    "RoleEnum": {
      "type": "string",
      "enum": [
        "admin",
        "customer"
      ],
      "title": "RoleEnum",
      "description": "User role types."
    }
  }
}