{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-client-schema.json",
  "title": "Client",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-client-api-openapi.yml#/components/schemas/Client",
  "properties": {
    "is_delete_protected": {
      "type": "boolean",
      "description": "Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of entity.",
      "readOnly": true
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Specifies if the entity is considered deleted.",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "default_unit": {
      "type": "string",
      "format": "uri",
      "description": "Default sales unit for the user. New records the user creates are assigned to this unit by default.\n\nRelation to SalesUnit. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'SalesUnit' object for properties."
    },
    "master_right": {
      "type": "string",
      "format": "uri",
      "description": "User role assigned to the user. Determines what features and entities the user can access.\n\nRelation to MasterRight. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'MasterRight' object for properties."
    },
    "default_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the default sales unit."
    },
    "email": {
      "type": "string",
      "description": "Email. Readonly information from UserProfile."
    },
    "first_name": {
      "type": "string",
      "description": "First name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "last_active": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the user's most recent login or API request.",
      "readOnly": true
    },
    "last_name": {
      "type": "string",
      "description": "Last name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "master_right_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the assigned user role."
    },
    "middle_name": {
      "type": "string",
      "description": "Middle name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "phone": {
      "type": "string",
      "description": "Phone number. Readonly information from UserProfile.",
      "readOnly": true
    },
    "picture_url": {
      "type": "string",
      "description": "Picture name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "position": {
      "type": "string",
      "description": "Job title or position of the user."
    },
    "region": {
      "type": "string",
      "description": "Region. Readonly information from UserProfile.",
      "readOnly": true
    },
    "timezone": {
      "type": "string",
      "description": "Timezone offset (DEPRECATED)Readonly information from UserProfile.",
      "readOnly": true
    },
    "type": {
      "type": "integer",
      "description": "Field whose values are strictly defined with an enumeration of values.\n\nInteger enum value: 0 - Customer, 1 - Support",
      "enum": [
        0,
        1
      ]
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "default_idp": {
      "type": "integer",
      "format": "int32",
      "description": "default_idp retrieved from user, if enabled [HEAVY]"
    },
    "user_profile_id": {
      "type": "integer",
      "format": "int32",
      "description": "ID of the associated user account [HEAVY]"
    },
    "unit_membership": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to SalesUnitClientRelation. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'SalesUnitClientRelation' object for properties."
      },
      "description": "Sales units the user belongs to (as member or manager)."
    },
    "appointment_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Appointments marked as favorite by the user."
    },
    "task_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Tasks marked as favorite by the user."
    },
    "account_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Accounts marked as favorite by the user."
    },
    "contact_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Contacts marked as favorite by the user."
    },
    "profile_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Screen profiles marked as favorite by the user."
    },
    "report_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Reports marked as favorite by the user."
    },
    "lead_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Leads marked as favorite by the user."
    },
    "opportunity_favorite": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to ClientFavorite. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'ClientFavorite' object for properties."
      },
      "description": "Opportunities marked as favorite by the user."
    },
    "timezone_name": {
      "type": "string",
      "description": "IANA timezone name from UserProfile"
    },
    "name": {
      "type": "string",
      "description": "Display name of the user, formatted according to the user's name format preference."
    },
    "formatted_name": {
      "type": "string",
      "description": "Display name of the user (alias of name)."
    },
    "unit_manager_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Ids of all sales units the user manages, expanded to include all descendant units in each managed subtree."
    },
    "unit_member_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Ids of sales units the user belongs to as a member only (not as a manager)."
    },
    "user_recalculation_state": {
      "type": "string",
      "enum": [
        "InProgress",
        "NoRecalculation",
        "Pending"
      ],
      "description": "State of the user's row-level access recalculation: NoRecalculation (up to date), Pending (queued), or InProgress."
    }
  },
  "required": [
    "is_delete_protected",
    "id",
    "default_unit",
    "master_right",
    "default_unit_id",
    "email",
    "master_right_id",
    "unit_membership",
    "formatted_name",
    "unit_manager_ids",
    "unit_member_ids"
  ]
}