{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foxform-app/json-schema/foxform-app-get-user-profile-response-schema.json",
  "title": "GetUserProfileResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foxform-app-users-api-openapi.yml#/components/schemas/GetUserProfileResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "$ref": "#/$defs/UserProfile"
    }
  },
  "$defs": {
    "Organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "vat_number": {
          "type": "string"
        },
        "address_line1": {
          "type": "string"
        },
        "address_line2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "postal_code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "logo_url": {
          "type": "string"
        },
        "owner_id": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "UserProfile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "full_name": {
          "type": "string"
        },
        "avatar_url": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "organization_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "organization": {
          "allOf": [
            {
              "$ref": "#/$defs/Organization"
            }
          ]
        },
        "account_status": {
          "type": "string",
          "enum": [
            "active",
            "blocked"
          ]
        },
        "source": {
          "type": "string",
          "description": "Partnership source, e.g. 'panda'."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}