{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-person-callback-number-object-schema.json",
  "title": "GetPersonCallbackNumberObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-emergency-services-settings-api-openapi.yml#/components/schemas/GetPersonCallbackNumberObject",
  "type": "object",
  "properties": {
    "selected": {
      "$ref": "#/$defs/ECBNSelectionType",
      "description": "Selected number type to configure emergency callback."
    },
    "directLineInfo": {
      "type": "object",
      "properties": {
        "phoneNumber": {
          "type": "string",
          "description": "The callback phone number that is associated with the direct line."
        },
        "firstName": {
          "type": "string",
          "description": "The first name of the user."
        },
        "lastName": {
          "type": "string",
          "description": "The last name of the user."
        },
        "effectiveLevel": {
          "$ref": "#/$defs/ECBNDirectLineEffectiveLevelType",
          "description": "The source from which the emergency calling line ID (CLID) is selected for an actual emergency call, applying fallback rules as necessary."
        },
        "effectiveValue": {
          "type": "string",
          "description": "The field contains the valid ECBN number at the location level, or the user's main number if valid, defaulting to the location's main number if both are unavailable."
        },
        "quality": {
          "$ref": "#/$defs/ECBNQualityType",
          "description": "Used to represent whether a number is a recommended ECBN."
        }
      },
      "description": "Data relevant to the ECBN for this user/location/virtual line/hunt group."
    },
    "locationECBNInfo": {
      "type": "object",
      "properties": {
        "firstName": {
          "type": "string",
          "description": "The first name of the user, location member, or group name."
        },
        "lastName": {
          "type": "string",
          "description": "The last name of the user or location member."
        },
        "phoneNumber": {
          "type": "string",
          "description": "The callback phone number that is associated with the location's ECBN configuration."
        },
        "effectiveLevel": {
          "$ref": "#/$defs/ECBNDirectLineEffectiveLevelType",
          "description": "The source from which the emergency calling line ID (CLID) is selected for an actual emergency call, applying fallback rules as necessary."
        },
        "effectiveValue": {
          "type": "string",
          "description": "The field contains the valid ECBN number at the location level, or the user's main number if valid, defaulting to the location's main number if both are unavailable."
        },
        "quality": {
          "$ref": "#/$defs/ECBNQualityType",
          "description": "Used to represent whether a number is a recommended ECBN."
        }
      },
      "description": "Data relevant to the ECBN for this user/location/virtual line/hunt group."
    },
    "locationMemberInfo": {
      "type": "object",
      "properties": {
        "phoneNumber": {
          "type": "string",
          "description": "The callback phone number that is associated with member configured for the location ECBN."
        },
        "firstName": {
          "type": "string",
          "description": "The first name of the user."
        },
        "lastName": {
          "type": "string",
          "description": "The last name of the user."
        },
        "memberId": {
          "type": "string",
          "description": "Member ID of user/place/virtual line/hunt group within the location"
        },
        "memberType": {
          "$ref": "#/$defs/MemberType",
          "description": "Type of the member."
        },
        "effectiveLevel": {
          "$ref": "#/$defs/LocationMemberInfoEffectiveLevelType",
          "description": "The source from which the emergency calling line ID (CLID) is selected for an actual emergency call, applying fallback rules as necessary."
        },
        "effectiveValue": {
          "type": "string",
          "description": "The field contains the valid ECBN number at the location level, or the user's main number if valid, defaulting to the location's main number if both are unavailable."
        },
        "quality": {
          "$ref": "#/$defs/ECBNQualityType",
          "description": "Used to represent whether a number is a recommended ECBN."
        }
      },
      "description": "Data relevant to the ECBN for this user/location/virtual line/hunt group."
    },
    "defaultInfo": {
      "type": "object",
      "properties": {
        "effectiveValue": {
          "type": "string",
          "description": "The field contains the ECBN number."
        },
        "quality": {
          "$ref": "#/$defs/ECBNQualityType",
          "description": "Used to represent whether a number is a recommended ECBN."
        }
      },
      "description": "Gives Emergency Callback Number effective value when none of the above is assigned or some other value is set behind the scene."
    },
    "elinEnabled": {
      "type": "boolean",
      "description": "Indicates whether this person is allowed to use an Emergency Location Identification Number (ELIN) for emergency calls made from one of their devices."
    },
    "elinForWebexAppEnabled": {
      "type": "boolean",
      "description": "Indicates whether this person is allowed to use an Emergency Location Identification Number (ELIN) for emergency calls made using Webex App."
    }
  },
  "$defs": {
    "ECBNDirectLineEffectiveLevelType": {
      "type": "string",
      "enum": [
        "DIRECT_LINE",
        "LOCATION_ECBN",
        "LOCATION_NUMBER",
        "NONE"
      ],
      "description": " * `DIRECT_LINE` - Returned calls from the Public Safety Answering Point go directly to the member. The Emergency Service Address configured by the PSTN to the member's phone is specific to the member’s location.\n * `LOCATION_ECBN` - Each location can have an ECBN configured that is different from the location’s main number. Location Default ECBN is typically configured for users without dedicated telephone numbers or with only an extension.\n * `LOCATION_NUMBER` - A location’s main number that is suitable for when the location has a single building with a single floor.\n * `NONE` - There is no effective level type selected.\n"
    },
    "ECBNQualityType": {
      "type": "string",
      "enum": [
        "RECOMMENDED",
        "NOT_RECOMMENDED",
        "INVALID"
      ],
      "description": " * `RECOMMENDED` - An activated number, associated with a User or Workspace.\n * `NOT_RECOMMENDED` - An activated number, associated with anything else, like Auto Attendant or Hunt Group.\n * `INVALID` - An inactive or non-existent number.\n"
    },
    "ECBNSelectionType": {
      "type": "string",
      "enum": [
        "DIRECT_LINE",
        "LOCATION_ECBN",
        "LOCATION_MEMBER_NUMBER",
        "NONE"
      ],
      "description": " * `DIRECT_LINE` - Returned calls from the Public Safety Answering Point go directly to the member. The Emergency Service Address configured by the PSTN to the member's phone is specific to the member’s location.\n * `LOCATION_ECBN` - Each location can have an ECBN configured that is different from the location’s main number. Location Default ECBN is typically configured for users without dedicated telephone numbers or with only an extension.\n * `LOCATION_MEMBER_NUMBER` - Configure one user with another user’s telephone number as an ECBN. This option is used in place of a location’s main number when the location has multiple floors or buildings. This allows the ECBN assigned to have a more accurate Emergency Service Address associated with it.\n * `NONE` - When no other option is selected.\n"
    },
    "LocationMemberInfoEffectiveLevelType": {
      "type": "string",
      "enum": [
        "DIRECT_LINE",
        "LOCATION_ECBN",
        "LOCATION_NUMBER",
        "LOCATION_MEMBER_NUMBER",
        "NONE"
      ],
      "description": " * `DIRECT_LINE` - Returned calls from the Public Safety Answering Point go directly to the member. The Emergency Service Address configured by the PSTN to the member's phone is specific to the member’s location.\n * `LOCATION_ECBN` - Each location can have an ECBN configured that is different from the location’s main number. Location Default ECBN is typically configured for users without dedicated telephone numbers or with only an extension.\n * `LOCATION_NUMBER` - A location’s main number that is suitable for when the location has a single building with a single floor.\n * `LOCATION_MEMBER_NUMBER` - Configure one user with another user’s telephone number as an ECBN. This option is used in place of a location’s main number when the location has multiple floors or buildings. This allows the ECBN assigned to have a more accurate Emergency Service Address associated with it.\n * `NONE` - When no other option is selected.\n"
    },
    "MemberType": {
      "type": "string",
      "enum": [
        "PEOPLE",
        "PLACE"
      ],
      "description": " * `PEOPLE` - Indicates the associated member is a person.\n * `PLACE` - Indicates the associated member is a workspace.\n"
    }
  }
}