import { ScheduledVoiceProvisioning } from '../scheduled-voice-provisioning'; /** * The current voice configuration for this number. */ export type VoiceConfiguration = VoiceConfigurationRtc | VoiceConfigurationFax | VoiceConfigurationEst; export interface VoiceConfigurationRtc { /** The voice application type. */ type?: 'RTC'; /** Your app ID for the Voice API. The `appId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/voice/apps). */ appId?: string; } export interface VoiceConfigurationFax { /** The voice application type. */ type: 'FAX'; /** The service ID for the FAX configuration. The `serviceId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/fax/services).*/ serviceId?: string; } export interface VoiceConfigurationEst { /** The voice application type. */ type: 'EST'; /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/trunks/your-trunks). */ trunkId?: string; } /** * The current voice configuration for this number. During scheduled provisioning, the app ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a `scheduledVoiceProvisioning` object if it\'s still running. Once processed successfully, the `appId` sent will appear directly under the `voiceConfiguration` object. */ export interface VoiceConfigurationResponse { /** Your app ID for the Voice API. The `appId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/voice/apps). */ appId?: string; /** Timestamp when the status was last updated. */ lastUpdatedTime?: Date | null; /** @see ScheduledVoiceProvisioning */ scheduledVoiceProvisioning?: ScheduledVoiceProvisioning | null; /** The type of voice configuration. Default is `RTC`. */ type: 'RTC' | 'EST' | 'FAX'; /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/trunks/your-trunks). */ trunkId?: string; /** The service ID for the FAX configuration. The `serviceId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/fax/services). */ serviceId?: string; }