{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openpo-st/json-schema/openpo-st-user-profile-schema.json",
  "title": "UserProfile",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openpo-st-openapi.json#/components/schemas/UserProfile",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "avatar_url": {
      "description": "Profile avatar URL",
      "type": "string"
    },
    "composer_experience": {
      "description": "Preferred composer experience",
      "enum": [
        "specialized",
        "unified"
      ],
      "type": "string"
    },
    "created_at": {
      "description": "Account creation time",
      "format": "date-time",
      "type": "string"
    },
    "display_name": {
      "description": "User display name",
      "type": "string"
    },
    "email": {
      "description": "User email address",
      "type": "string"
    },
    "email_verified": {
      "description": "Whether the account email address is verified",
      "type": "boolean"
    },
    "has_password": {
      "description": "Whether this account has a local password credential",
      "type": "boolean"
    },
    "id": {
      "description": "User ID",
      "type": "string"
    },
    "is_admin": {
      "description": "Whether this user can manage instance-level settings",
      "type": "boolean"
    },
    "is_managed": {
      "description": "Whether this account was provisioned by an organization identity provider",
      "type": "boolean"
    },
    "legal_acceptance_required": {
      "description": "Whether the current hosted policy still needs acceptance",
      "type": "boolean"
    },
    "legal_accepted_at": {
      "description": "When the current account policy was accepted",
      "format": "date-time",
      "type": "string"
    },
    "managed_organization_name": {
      "description": "Organization managing this account",
      "type": "string"
    },
    "password_usable": {
      "description": "Whether the local password can currently be used for sign-in and sensitive-action reauthentication",
      "type": "boolean"
    },
    "privacy_version": {
      "description": "Privacy version acknowledged by the user",
      "type": "string"
    },
    "public_profile_enabled": {
      "description": "Whether the public activity profile is visible",
      "type": "boolean"
    },
    "public_profile_visible_fields": {
      "description": "Optional account fields visible while the public profile is enabled",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "terms_version": {
      "description": "Terms version accepted by the user",
      "type": "string"
    },
    "username": {
      "description": "Unique public username",
      "type": "string"
    }
  },
  "required": [
    "id",
    "email",
    "username",
    "display_name",
    "avatar_url",
    "public_profile_enabled",
    "public_profile_visible_fields",
    "composer_experience",
    "is_admin",
    "legal_acceptance_required",
    "created_at",
    "email_verified",
    "has_password",
    "password_usable",
    "is_managed"
  ],
  "type": "object"
}