{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/altoviz-com/json-schema/altoviz-com-colleague-schema.json",
  "title": "Colleague",
  "description": "Colleague",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/altoviz-com-colleagues-api-openapi.yml#/components/schemas/Colleague",
  "type": "object",
  "properties": {
    "cellPhone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cell phone number"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Email"
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ],
      "description": "First name"
    },
    "homecareServiceNumber": {
      "type": [
        "string",
        "null"
      ],
      "description": "Homecare service number associated with the colleague"
    },
    "id": {
      "type": "integer",
      "description": "Colleague Id",
      "format": "int32"
    },
    "initialPartnerBalance": {
      "type": "number",
      "description": "Initial balance for the partner",
      "format": "double"
    },
    "internalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Internal identifier for the colleague"
    },
    "isPartner": {
      "type": "boolean",
      "description": "Indicates if the colleague is a partner"
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last name"
    },
    "metadatas": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Metadata: free-form key/value pairs carried with the colleague, for an integration to keep\nits own identifiers and flags against it.\n\nSent as a PATCH, not a replacement: keys you send are added or updated, keys you leave out\nkeep whatever they held, and a key is removed only when you send it as `null`. Omitting\nthe property entirely leaves the whole bag untouched, and `\"\"` stores an empty value\nrather than removing the key."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Colleague Name"
    },
    "number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Colleague Number"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Title"
    },
    "userId": {
      "type": [
        "string",
        "null"
      ],
      "description": "User identifier associated with the colleague"
    }
  },
  "additionalProperties": false
}