changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "capabilities": {
- "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both.",
- "items": {
- "type": "string"
- },
- "title": "Capabilities",
- "type": "array"
- },
- "country_code": {
- "description": "ISO alpha-2 country code this number belongs to.",
- "title": "Country Code",
- "type": "string"
- },
- "e164": {
- "description": "The phone number, E.164 format.",
- "title": "E164",
- "type": "string"
- },
- "id": {
- "description": "Unique identifier for this number.",
- "format": "uuid",
- "title": "Id",
- "type": "string"
- },
- "idempotency_key": {
- "description": "Key that identifies this exact request when retrying.",
- "type": "string"
- },
- "inbound_registered": {
- "default": false,
- "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set.",
- "title": "Inbound Registered",
- "type": "boolean"
- },
- "is_dedicated": {
- "description": "True if this number is owned by the organization. False for shared-pool numbers.",
- "title": "Is Dedicated",
- "type": "boolean"
- },
- "number_type": {
- "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
- "title": "Number Type",
- "type": "string"
- },
- "provisioning_state": {
- "description": "'pending', 'active', 'failed', or 'released'.",
- "title": "Provisioning State",
- "type": "string"
- },
- "sms_agent_id": {
- "anyOf": [
- {
- "format": "uuid",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Agent that answers texts to this number. Null: texts only reach your webhooks.",
- "title": "Sms Agent Id"
- },
- "subject_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown.",
- "title": "Subject Name"
- },
- "subject_type": {
- "anyOf": [
- {
- "enum": [
- "person",
- "business"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used.",
- "title": "Subject Type"
- },
- "verification_id": {
- "anyOf": [
- {
- "format": "uuid",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Hail id of the verification used to buy this number. Null when no verification was used.",
- "title": "Verification Id"
- },
- "voice_agent_id": {
- "anyOf": [
- {
- "format": "uuid",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Agent that answers calls to this number. Null: calls ring out.",
- "title": "Voice Agent Id"
- }
- },
- "required": [
- "id",
- "e164",
- "country_code",
- "number_type",
- "capabilities",
- "provisioning_state",
- "is_dedicated",
- "voice_agent_id",
- "sms_agent_id",
- "inbound_registered",
- "subject_type",
- "verification_id",
- "subject_name",
- "idempotency_key"
- ],
- "title": "PhoneNumberResponse",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- },
- "idempotency_key": {
- "description": "Key that identifies this exact request when retrying.",
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "capabilities": {
+ "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Capabilities",
+ "type": "array"
+ },
+ "country_code": {
+ "description": "ISO alpha-2 country code this number belongs to.",
+ "title": "Country Code",
+ "type": "string"
+ },
+ "e164": {
+ "description": "The phone number, E.164 format.",
+ "title": "E164",
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier for this number.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "idempotency_key": {
+ "description": "Key that identifies this exact request when retrying.",
+ "type": "string"
+ },
+ "inbound_registered": {
+ "default": false,
+ "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set.",
+ "title": "Inbound Registered",
+ "type": "boolean"
+ },
+ "is_dedicated": {
+ "description": "True if this number is owned by the organization. False for shared-pool numbers.",
+ "title": "Is Dedicated",
+ "type": "boolean"
+ },
+ "number_type": {
+ "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
+ "title": "Number Type",
+ "type": "string"
+ },
+ "provisioning_state": {
+ "description": "'pending', 'active', 'failed', or 'released'. A connected number is 'unverified' until it passes its ownership check (POST /sip-connections/{id}/numbers/{number_id}/verify).",
+ "title": "Provisioning State",
+ "type": "string"
+ },
+ "sip_connection_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The phone system connection of a connected number. Null for a purchased number.",
+ "title": "Sip Connection Id"
+ },
+ "sms_agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Agent that answers texts to this number. Null: texts only reach your webhooks.",
+ "title": "Sms Agent Id"
+ },
+ "source": {
+ "default": "purchased",
+ "description": "'purchased': bought through Hail. 'connected': a number on your own phone system, connected with POST /sip-connections/{id}/numbers. Removing a connected number takes it off Hail only; it stays with your phone system and provider.",
+ "enum": [
+ "purchased",
+ "connected"
+ ],
+ "title": "Source",
+ "type": "string"
+ },
+ "subject_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown.",
+ "title": "Subject Name"
+ },
+ "subject_type": {
+ "anyOf": [
+ {
+ "enum": [
+ "person",
+ "business"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used.",
+ "title": "Subject Type"
+ },
+ "verification_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Hail id of the verification used to buy this number. Null when no verification was used.",
+ "title": "Verification Id"
+ },
+ "voice_agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Agent that answers calls to this number. Null: calls ring out.",
+ "title": "Voice Agent Id"
+ }
+ },
+ "required": [
+ "id",
+ "e164",
+ "country_code",
+ "number_type",
+ "capabilities",
+ "provisioning_state",
+ "source",
+ "sip_connection_id",
+ "is_dedicated",
+ "voice_agent_id",
+ "sms_agent_id",
+ "inbound_registered",
+ "subject_type",
+ "verification_id",
+ "subject_name",
+ "idempotency_key"
+ ],
+ "title": "PhoneNumberResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "idempotency_key": {
+ "description": "Key that identifies this exact request when retrying.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]