{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UserExtensions",
  "title": "UserExtensions",
  "type": "object",
  "required": [
    "directNumber",
    "extension",
    "type",
    "lineOwnerType",
    "lineOwnerId",
    "preferredAnsweringEndPointId",
    "endpoints"
  ],
  "properties": {
    "directNumber": {
      "type": "string",
      "example": "+13374831550",
      "description": "Direct number of the user."
    },
    "extension": {
      "type": "string",
      "example": "1550",
      "description": "Extension of the user."
    },
    "type": {
      "type": "string",
      "$ref": "#/components/schemas/ExtensionType",
      "description": "Type of User Extension."
    },
    "lineOwnerType": {
      "type": "string",
      "$ref": "#/components/schemas/LineOwnerType",
      "description": "Type of the line owner. Indicates whether the line is owned by a person, workspace, or virtual line."
    },
    "lineOwnerId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL1ZJUlRVQUxfTElORS85NWM4MGY0My1mNjBlLTQzYTAtYTkwMy1iNWQ3ZDg0MThiNDU",
      "description": "Unique identifier of the line owner."
    },
    "preferredAnsweringEndPointId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0FQUExJQ0FUSU9OL2Q0OTE3ZWFiLTQ4Y2EtNGRlZC1iOTczLWQzNTFhOTU5OWZhZB",
      "description": "Unique identifier of the set preferred answering endpoint."
    },
    "endpoints": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserEndpointType"
      },
      "description": "List of user endpoints with type."
    }
  }
}