{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-user-response-schema.json",
  "title": "UserResponse",
  "description": "Schema for user response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-auth-api-openapi.yml#/components/schemas/UserResponse",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "language": {
      "type": "string",
      "pattern": "^(fr|en|es|zh|pt|it|ht|ro|vi|el|tl|ru|hi|ko|pa|pl|de)$",
      "title": "Language",
      "default": "fr"
    },
    "id": {
      "type": "string",
      "title": "Id"
    },
    "phone_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone Number"
    },
    "photo_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Photo Url"
    },
    "email_notifications_enabled": {
      "type": "boolean",
      "title": "Email Notifications Enabled"
    },
    "push_notifications_enabled": {
      "type": "boolean",
      "title": "Push Notifications Enabled"
    },
    "alerts_paused": {
      "type": "boolean",
      "title": "Alerts Paused"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "total_notifications": {
      "type": "integer",
      "title": "Total Notifications",
      "default": 0
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "email",
    "id",
    "email_notifications_enabled",
    "push_notifications_enabled",
    "alerts_paused",
    "is_active",
    "created_at",
    "updated_at"
  ]
}