BetaVoiceAgentsTelephonyOperations interface

Preview operations for managing voice-agent telephony campaigns.

Properties

cancel

Cancels a validating or running Campaign using If-Match. Stops new calls and retries; connected calls finish naturally. Returns 202 with an operation monitor to track completion.

create

Creates a Campaign or fully replaces failed preparation; no PATCH. All recipients must validate and have CallJobs before dialing. Immediate calls may begin before the preparation poller returns.

deleteCampaign

Deletes a terminal Campaign and its recipient/task data asynchronously. Returns bodyless 202 with a monitor, not a tombstone; completion makes GET return 404 and lists omit it. Dataset, connections, Agent, independent jobs and call history are preserved.

deleteTelephony

Compatibility alias for campaign deletion.

get

Gets Campaign configuration and execution state without inline recipients. Absent or deleted Campaigns return 404.

getOperation

Gets the initiating operation's status. PUT/cancel pollers finish with a guarded Campaign GET; deletion completes without a resource result.

list

Lists the Agent's Campaigns without inline recipients. Filters are live views, not snapshots.

listValidationErrors

Lists current-round row validation errors. Results may be partial during preparation; an empty page does not establish success. Execution errors are in CallJobs; non-row failures are in Campaign.error.

Property Details

cancel

Cancels a validating or running Campaign using If-Match. Stops new calls and retries; connected calls finish naturally. Returns 202 with an operation monitor to track completion.

cancel: (agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyCancelOptionalParams) => PollerLike<OperationState<TelephonyCampaign>, TelephonyCampaign>

Property Value

(agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyCancelOptionalParams) => PollerLike<OperationState<TelephonyCampaign>, TelephonyCampaign>

create

Creates a Campaign or fully replaces failed preparation; no PATCH. All recipients must validate and have CallJobs before dialing. Immediate calls may begin before the preparation poller returns.

create: (agentName: string, campaignName: string, campaign: TelephonyCampaignCreate, options?: BetaVoiceAgentsTelephonyCreateOptionalParams) => PollerLike<OperationState<TelephonyCampaign>, TelephonyCampaign>

Property Value

(agentName: string, campaignName: string, campaign: TelephonyCampaignCreate, options?: BetaVoiceAgentsTelephonyCreateOptionalParams) => PollerLike<OperationState<TelephonyCampaign>, TelephonyCampaign>

deleteCampaign

Deletes a terminal Campaign and its recipient/task data asynchronously. Returns bodyless 202 with a monitor, not a tombstone; completion makes GET return 404 and lists omit it. Dataset, connections, Agent, independent jobs and call history are preserved.

deleteCampaign: (agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyDeleteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyDeleteOptionalParams) => PollerLike<OperationState<void>, void>

deleteTelephony

Warning

This API is now deprecated.

Use deleteCampaign instead.

Compatibility alias for campaign deletion.

deleteTelephony: (agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyDeleteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(agentName: string, campaignName: string, ifMatch: string, options?: BetaVoiceAgentsTelephonyDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

Gets Campaign configuration and execution state without inline recipients. Absent or deleted Campaigns return 404.

get: (agentName: string, campaignName: string, options?: BetaVoiceAgentsTelephonyGetOptionalParams) => Promise<TelephonyCampaign>

Property Value

(agentName: string, campaignName: string, options?: BetaVoiceAgentsTelephonyGetOptionalParams) => Promise<TelephonyCampaign>

getOperation

Gets the initiating operation's status. PUT/cancel pollers finish with a guarded Campaign GET; deletion completes without a resource result.

getOperation: (agentName: string, campaignName: string, operationId: string, options?: BetaVoiceAgentsTelephonyGetOperationOptionalParams) => Promise<TelephonyCampaignOperation>

Property Value

(agentName: string, campaignName: string, operationId: string, options?: BetaVoiceAgentsTelephonyGetOperationOptionalParams) => Promise<TelephonyCampaignOperation>

list

Lists the Agent's Campaigns without inline recipients. Filters are live views, not snapshots.

list: (agentName: string, options?: BetaVoiceAgentsTelephonyListOptionalParams) => PagedAsyncIterableIterator<TelephonyCampaign, TelephonyCampaign[], PageSettings>

Property Value

(agentName: string, options?: BetaVoiceAgentsTelephonyListOptionalParams) => PagedAsyncIterableIterator<TelephonyCampaign, TelephonyCampaign[], PageSettings>

listValidationErrors

Lists current-round row validation errors. Results may be partial during preparation; an empty page does not establish success. Execution errors are in CallJobs; non-row failures are in Campaign.error.

listValidationErrors: (agentName: string, campaignName: string, options?: BetaVoiceAgentsTelephonyListValidationErrorsOptionalParams) => PagedAsyncIterableIterator<TelephonyCampaignValidationError, TelephonyCampaignValidationError[], PageSettings>

Property Value

(agentName: string, campaignName: string, options?: BetaVoiceAgentsTelephonyListValidationErrorsOptionalParams) => PagedAsyncIterableIterator<TelephonyCampaignValidationError, TelephonyCampaignValidationError[], PageSettings>