VoiceAgentsTelephonyOperations interface
負責管理語音代理電話的營運。
屬性
| cancel |
要求取消持久性外撥通話作業。 已連接的通話被允許結束。 |
| create |
為路徑中指定的語音代理建立電話綁定。 |
| create |
建立一個持久的外撥 CallJob。 每次嘗試都會將代理端點的執行版本固定以供驗證,並進入語音會話。 |
| delete |
刪除路徑中語音代理所擁有的電話綁定。 |
| delete |
刪除終端機、已對帳的工作(否則為 409),但不取消通話或移除活動結果/通話記錄。 之後 GET 回傳 404;重複 DELETE 回傳 204。 刪除 SIP 呼叫工作需要先完成 |
| end |
結束在路徑中指定的語音代理所擁有的一個正在進行的入線通話。 |
| get |
取回路徑中語音代理人擁有的電話綁定。 |
| get |
取得路徑中指定的語音客服專員所擁有的持久入線通話記錄。 |
| get |
取得持久的直接或活動產生的外撥通話工作。 |
| get |
回傳路徑中指定的語音代理程式所設定的所有轉接目標。 |
| list |
返回路徑中所命名語音代理所擁有的電話綁定。 |
| list |
列出目前的直接/戰役任務,不包括已刪除或被取代的回合。 頁面已上線。 活動游標會存活於邊界刪除/取消,但無法被替換或名稱重複使用(400 invalid_cursor)。 |
| list |
回傳路徑中指定的語音代理的持久入線通話歷史。 |
| replace |
替換路徑中指定的語音專員所設定的所有轉接目標。 |
| transfer |
將一個目前進行中的入站通話轉接到路徑中指定的語音代理的已設定目標。 |
| update |
更新路徑中語音代理所擁有的電話綁定。 |
屬性詳細資料
cancelCallJob
要求取消持久性外撥通話作業。 已連接的通話被允許結束。
cancelCallJob: (agentName: string, callJobId: string, ifMatch: string, options?: VoiceAgentsTelephonyCancelCallJobOptionalParams) => Promise<TelephonyCallJob>
屬性值
(agentName: string, callJobId: string, ifMatch: string, options?: VoiceAgentsTelephonyCancelCallJobOptionalParams) => Promise<TelephonyCallJob>
createBinding
為路徑中指定的語音代理建立電話綁定。
createBinding: (agentName: string, binding: TelephonyBindingCreateUnion, options?: VoiceAgentsTelephonyCreateBindingOptionalParams) => Promise<TelephonyBindingUnion>
屬性值
(agentName: string, binding: TelephonyBindingCreateUnion, options?: VoiceAgentsTelephonyCreateBindingOptionalParams) => Promise<TelephonyBindingUnion>
createCallJob
建立一個持久的外撥 CallJob。 每次嘗試都會將代理端點的執行版本固定以供驗證,並進入語音會話。
createCallJob: (agentName: string, idempotencyKey: string, job: TelephonyCallJobCreate, options?: VoiceAgentsTelephonyCreateCallJobOptionalParams) => Promise<TelephonyCallJob>
屬性值
(agentName: string, idempotencyKey: string, job: TelephonyCallJobCreate, options?: VoiceAgentsTelephonyCreateCallJobOptionalParams) => Promise<TelephonyCallJob>
deleteBinding
刪除路徑中語音代理所擁有的電話綁定。
deleteBinding: (agentName: string, bindingId: string, ifMatch: string, options?: VoiceAgentsTelephonyDeleteBindingOptionalParams) => Promise<void>
屬性值
(agentName: string, bindingId: string, ifMatch: string, options?: VoiceAgentsTelephonyDeleteBindingOptionalParams) => Promise<void>
deleteCallJob
刪除終端機、已對帳的工作(否則為 409),但不取消通話或移除活動結果/通話記錄。 之後 GET 回傳 404;重複 DELETE 回傳 204。 刪除 SIP 呼叫工作需要先完成 VoiceAgents=V1Preview 同意。
deleteCallJob: (agentName: string, callJobId: string, options?: VoiceAgentsTelephonyDeleteCallJobOptionalParams) => Promise<void>
屬性值
(agentName: string, callJobId: string, options?: VoiceAgentsTelephonyDeleteCallJobOptionalParams) => Promise<void>
endCall
結束在路徑中指定的語音代理所擁有的一個正在進行的入線通話。
endCall: (agentName: string, callId: string, options?: VoiceAgentsTelephonyEndCallOptionalParams) => Promise<TelephonyCallRecord>
屬性值
(agentName: string, callId: string, options?: VoiceAgentsTelephonyEndCallOptionalParams) => Promise<TelephonyCallRecord>
getBinding
取回路徑中語音代理人擁有的電話綁定。
getBinding: (agentName: string, bindingId: string, options?: VoiceAgentsTelephonyGetBindingOptionalParams) => Promise<TelephonyBindingUnion>
屬性值
(agentName: string, bindingId: string, options?: VoiceAgentsTelephonyGetBindingOptionalParams) => Promise<TelephonyBindingUnion>
getCall
取得路徑中指定的語音客服專員所擁有的持久入線通話記錄。
getCall: (agentName: string, callId: string, options?: VoiceAgentsTelephonyGetCallOptionalParams) => Promise<TelephonyCallRecord>
屬性值
(agentName: string, callId: string, options?: VoiceAgentsTelephonyGetCallOptionalParams) => Promise<TelephonyCallRecord>
getCallJob
取得持久的直接或活動產生的外撥通話工作。
getCallJob: (agentName: string, callJobId: string, options?: VoiceAgentsTelephonyGetCallJobOptionalParams) => Promise<TelephonyCallJob>
屬性值
(agentName: string, callJobId: string, options?: VoiceAgentsTelephonyGetCallJobOptionalParams) => Promise<TelephonyCallJob>
getTransferTargets
回傳路徑中指定的語音代理程式所設定的所有轉接目標。
getTransferTargets: (agentName: string, options?: VoiceAgentsTelephonyGetTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>
屬性值
(agentName: string, options?: VoiceAgentsTelephonyGetTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>
listBindings
返回路徑中所命名語音代理所擁有的電話綁定。
listBindings: (agentName: string, options?: VoiceAgentsTelephonyListBindingsOptionalParams) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion, TelephonyBindingListItemUnion[], PageSettings>
屬性值
(agentName: string, options?: VoiceAgentsTelephonyListBindingsOptionalParams) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion, TelephonyBindingListItemUnion[], PageSettings>
listCallJobs
列出目前的直接/戰役任務,不包括已刪除或被取代的回合。 頁面已上線。 活動游標會存活於邊界刪除/取消,但無法被替換或名稱重複使用(400 invalid_cursor)。
listCallJobs: (agentName: string, options?: VoiceAgentsTelephonyListCallJobsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallJob, TelephonyCallJob[], PageSettings>
屬性值
(agentName: string, options?: VoiceAgentsTelephonyListCallJobsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallJob, TelephonyCallJob[], PageSettings>
listCalls
回傳路徑中指定的語音代理的持久入線通話歷史。
listCalls: (agentName: string, options?: VoiceAgentsTelephonyListCallsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallSummary, TelephonyCallSummary[], PageSettings>
屬性值
(agentName: string, options?: VoiceAgentsTelephonyListCallsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallSummary, TelephonyCallSummary[], PageSettings>
replaceTransferTargets
替換路徑中指定的語音專員所設定的所有轉接目標。
replaceTransferTargets: (agentName: string, ifMatch: string, transferTargets: TelephonyTransferTarget[], options?: VoiceAgentsTelephonyReplaceTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>
屬性值
(agentName: string, ifMatch: string, transferTargets: TelephonyTransferTarget[], options?: VoiceAgentsTelephonyReplaceTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>
transferCall
將一個目前進行中的入站通話轉接到路徑中指定的語音代理的已設定目標。
transferCall: (agentName: string, callId: string, target: string, options?: VoiceAgentsTelephonyTransferCallOptionalParams) => Promise<TelephonyCallRecord>
屬性值
(agentName: string, callId: string, target: string, options?: VoiceAgentsTelephonyTransferCallOptionalParams) => Promise<TelephonyCallRecord>
updateBinding
更新路徑中語音代理所擁有的電話綁定。
updateBinding: (agentName: string, bindingId: string, ifMatch: string, body: UpdateTelephonyBindingRequest, options?: VoiceAgentsTelephonyUpdateBindingOptionalParams) => Promise<TelephonyBindingUnion>
屬性值
(agentName: string, bindingId: string, ifMatch: string, body: UpdateTelephonyBindingRequest, options?: VoiceAgentsTelephonyUpdateBindingOptionalParams) => Promise<TelephonyBindingUnion>