Commands
Installation
- npm
- Yarn
- pnpm
- Bun
npm install @wildix/wda-history-client
yarn add @wildix/wda-history-client
pnpm add @wildix/wda-history-client
bun add @wildix/wda-history-client
Commands
GetCallCommand
Gets a call by callId and flowIndex.
### Allowed Auth Scopes
- history:GetCall
- history:read
UpdateCallCommand
Updates a call by callId and flowIndex. Allows modifying call metadata such as tags.
### Allowed Auth Scopes
- history:UpdateCall
GetCallAnnotationsCommand
Gets annotations for a call by callId and flowIndex.
### Allowed Auth Scopes
- history:GetCallAnnotations
- history:read
GetCallTranscriptionCommand
Gets the transcription for a call by callId and flowIndex.
### Allowed Auth Scopes
- history:GetCallTranscription
- history:read
GetCallTranscriptionTextCommand
Gets the transcription text and chunks for a call by callId and flowIndex.
### Allowed Auth Scopes
- history:GetCallTranscriptionText
- history:read
GetChatCommand
Gets a chat by chatId.
### Allowed Auth Scopes
- history:GetChat
- history:read
GetChatAnnotationsCommand
Gets annotations for a chat by chatId.
### Allowed Auth Scopes
- history:GetChatAnnotations
- history:read
GetChatTranscriptionCommand
Gets the transcription for a chat by chatId.
### Allowed Auth Scopes
- history:GetChatTranscription
- history:read
GetChatTranscriptionTextCommand
Gets the transcription text and chunks for a chat by chatId.
### Allowed Auth Scopes
- history:GetChatTranscriptionText
- history:read
GetConferenceCommand
Gets a conference by conferenceId.
### Allowed Auth Scopes
- history:GetConference
- history:read
GetConferenceAnnotationsCommand
Gets annotations for a conference by conferenceId.
### Allowed Auth Scopes
- history:GetConferenceAnnotations
- history:read
GetConferenceTranscriptionCommand
Gets the transcription for a conference by conferenceId.
### Allowed Auth Scopes
- history:GetConferenceTranscription
- history:read
GetConferenceTranscriptionTextCommand
Gets the transcription text and chunks for a conference by conferenceId.
### Allowed Auth Scopes
- history:GetConferenceTranscriptionText
- history:read
QueryConversationsCommand
Retrieves list of conversations using filters.
### Allowed Auth Scopes
- history:QueryConversations
- history:read
ListServiceConversationsCommand
The service conversations themselves: one row per stay of a conversation in one service, newest first, keyset-paginated. Cheap: one page read through an index, however long the window; pages are requested one at a time. A value that matches few conversations can read the whole window before a page fills. Conversations whose outcome could not be determined are listed with outcome unknown. A user token needs a premium licence.
### Allowed Auth Scopes
- history:ListServiceConversations
- history:read
ListServiceConversationsAggregationsCommand
Figures over the service conversations of one PBX: one metrics block for the whole filter, or one bucket per value of groupBy. Every bucket carries the filter that lists its conversations with ListServiceConversations. Cost: without groupBy, and with groupBy service (without a base) or period (except granularity hour), closed days come from pre-computed daily rows, and the individual conversations are read only for today, for yesterday until its daily rows exist (early each morning in the PBX's zone), and whenever the filter names extensions, outcomes, disconnect reasons, an hour range, days of week or a band of wait or of talk and hold; suitable for a page's first request. The other groupings read every conversation of the window on each request; request them when the user asks for them, not on page open. More than 1000 buckets is rejected with 400. A user token needs a premium licence; PBX, API-key and service tokens are not limited by licence.
### Allowed Auth Scopes
- history:ListServiceConversationsAggregations
- history:read
GetServiceConversationCommand
One service conversation, looked up by key: its row, and with includeEvents also the steps of its life (INIT, WAIT, RING, REJECT, CANCEL, ANSWER, END) in time order, whole, never paged, with the agents they name. A step that concerns several agents is one event naming them all. Cheap. 404 when the conversation does not exist for the company. A user token needs a premium licence.
### Allowed Auth Scopes
- history:GetServiceConversation
- history:read
QueryUserCallsCommand
Retrieves list of user calls using filters.
### Allowed Auth Scopes
- history:QueryUserCalls
- history:read