import type * as ElevenLabs from "../index"; /** * A phone number held by the workspace. */ export interface ReceptionPhoneAssignment { /** Phone number in E.164 format. */ phoneNumber?: ElevenLabs.PhoneNumber; /** True when the phone is bring-your-own: registered by the workspace using their own telephony provider (Twilio credentials or SIP trunk). BYO phones are never part of the shared pool, do not count against the plan's phone number limit, and are deleted (rather than returned to the pool) on release. */ isByo?: boolean; /** Telephony provider for this phone number. */ provider?: ElevenLabs.ReceptionPhoneProvider; /** US/Canada NANP area code (NPA) as an integer. */ nanpAreaCode?: number; /** The receptionist that answers this number. Null when the workspace holds the number but no receptionist answers it yet. */ customerFacingAgentId?: string; /** Unix timestamp when this number was deactivated; it is released 14 days later. Null when active. */ deactivatedAtUnix?: number; /** Why this number was deactivated. Null when active. */ deactivationReason?: ElevenLabs.ReceptionPhoneAssignmentDeactivationReason; /** Null for numbers that need no paperwork. `held` while the workspace's own application is under review, `approved` once it passed and the number is fully usable. */ regulatoryStatus?: ElevenLabs.ReceptionPhoneRegulatoryStatus; /** The regulated number type this number was issued as. Null for numbers that need no paperwork. */ regulatoryNumberType?: ElevenLabs.ApplicationNumberType; /** ISO country the regulated number was issued in. Null for numbers that need no paperwork. */ regulatoryCountry?: ElevenLabs.CountryCode; /** The phone number assignment's ID. */ id: string; /** When this was created, as a Unix timestamp in seconds. */ createdAtUnix?: ElevenLabs.UnixTimestamp; /** When this was last updated, as a Unix timestamp in seconds. */ updatedAtUnix?: ElevenLabs.UnixTimestamp; /** Whether the number is active; false during the 14 days before a deactivated number is released. */ isActive?: boolean; /** Whether inbound calls from the public may reach the receptionist. */ acceptsPublicCalls?: boolean; }