{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-user-api-openapi.yml#/components/schemas/User",
  "type": "object",
  "properties": {
    "user_plan_id": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "description": "User plan (1 - basic, 2 - plus, 3 - pro)"
    },
    "first_name": {
      "type": "string",
      "minLength": 1,
      "description": "First name"
    },
    "last_name": {
      "type": "string",
      "minLength": 1,
      "description": "Last name"
    },
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Email"
    },
    "is_admin": {
      "type": "boolean",
      "default": false,
      "description": "Defines if account is administrative"
    },
    "status": {
      "type": "string",
      "enum": [
        "new",
        "invite_pending"
      ],
      "description": "User status (determines if invitation should be sent automatically)"
    }
  },
  "required": [
    "first_name",
    "last_name",
    "email"
  ]
}