@webex/contact-center 3.11.0 → 3.12.0-mobius-socket.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cc.js +121 -28
- package/dist/cc.js.map +1 -1
- package/dist/constants.js +5 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/metrics/behavioral-events.js +13 -0
- package/dist/metrics/behavioral-events.js.map +1 -1
- package/dist/metrics/constants.js +9 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/services/ApiAiAssistant.js +173 -0
- package/dist/services/ApiAiAssistant.js.map +1 -0
- package/dist/services/agent/types.js.map +1 -1
- package/dist/services/config/Util.js +6 -2
- package/dist/services/config/Util.js.map +1 -1
- package/dist/services/config/constants.js +12 -0
- package/dist/services/config/constants.js.map +1 -1
- package/dist/services/config/index.js +41 -2
- package/dist/services/config/index.js.map +1 -1
- package/dist/services/config/types.js +19 -1
- package/dist/services/config/types.js.map +1 -1
- package/dist/services/constants.js +27 -1
- package/dist/services/constants.js.map +1 -1
- package/dist/services/core/Err.js.map +1 -1
- package/dist/services/core/Utils.js +28 -6
- package/dist/services/core/Utils.js.map +1 -1
- package/dist/services/core/aqm-reqs.js +92 -17
- package/dist/services/core/aqm-reqs.js.map +1 -1
- package/dist/services/core/websocket/WebSocketManager.js +20 -5
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
- package/dist/services/core/websocket/connection-service.js +3 -1
- package/dist/services/core/websocket/connection-service.js.map +1 -1
- package/dist/services/index.js +6 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/task/TaskManager.js +117 -24
- package/dist/services/task/TaskManager.js.map +1 -1
- package/dist/services/task/TaskUtils.js +16 -3
- package/dist/services/task/TaskUtils.js.map +1 -1
- package/dist/services/task/constants.js +15 -1
- package/dist/services/task/constants.js.map +1 -1
- package/dist/services/task/dialer.js +51 -0
- package/dist/services/task/dialer.js.map +1 -1
- package/dist/services/task/types.js +15 -0
- package/dist/services/task/types.js.map +1 -1
- package/dist/types/cc.d.ts +801 -0
- package/dist/types/config.d.ts +66 -0
- package/dist/types/constants.d.ts +50 -0
- package/dist/types/index.d.ts +184 -0
- package/dist/types/logger-proxy.d.ts +71 -0
- package/dist/types/metrics/MetricsManager.d.ts +223 -0
- package/dist/types/metrics/behavioral-events.d.ts +29 -0
- package/dist/types/metrics/constants.d.ts +161 -0
- package/dist/types/services/AddressBook.d.ts +74 -0
- package/dist/types/services/ApiAiAssistant.d.ts +31 -0
- package/dist/types/services/EntryPoint.d.ts +67 -0
- package/dist/types/services/Queue.d.ts +76 -0
- package/dist/types/services/WebCallingService.d.ts +1 -0
- package/dist/types/services/agent/index.d.ts +46 -0
- package/dist/types/services/agent/types.d.ts +413 -0
- package/dist/types/services/config/Util.d.ts +20 -0
- package/dist/types/services/config/constants.d.ts +249 -0
- package/dist/types/services/config/index.d.ts +177 -0
- package/dist/types/services/config/types.d.ts +1207 -0
- package/dist/types/services/constants.d.ts +110 -0
- package/dist/types/services/core/Err.d.ts +121 -0
- package/dist/types/services/core/GlobalTypes.d.ts +58 -0
- package/dist/types/services/core/Utils.d.ts +101 -0
- package/dist/types/services/core/WebexRequest.d.ts +22 -0
- package/dist/types/services/core/aqm-reqs.d.ts +65 -0
- package/dist/types/services/core/constants.d.ts +99 -0
- package/dist/types/services/core/types.d.ts +47 -0
- package/dist/types/services/core/websocket/WebSocketManager.d.ts +35 -0
- package/dist/types/services/core/websocket/connection-service.d.ts +27 -0
- package/dist/types/services/core/websocket/keepalive.worker.d.ts +2 -0
- package/dist/types/services/core/websocket/types.d.ts +37 -0
- package/dist/types/services/index.d.ts +54 -0
- package/dist/types/services/task/AutoWrapup.d.ts +40 -0
- package/dist/types/services/task/TaskManager.d.ts +1 -0
- package/dist/types/services/task/TaskUtils.d.ts +92 -0
- package/dist/types/services/task/constants.d.ts +84 -0
- package/dist/types/services/task/contact.d.ts +69 -0
- package/dist/types/services/task/dialer.d.ts +43 -0
- package/dist/types/services/task/index.d.ts +650 -0
- package/dist/types/services/task/types.d.ts +1319 -0
- package/dist/types/types.d.ts +643 -0
- package/dist/types/utils/PageCache.d.ts +173 -0
- package/dist/types/webex-config.d.ts +53 -0
- package/dist/types/webex.d.ts +7 -0
- package/dist/types.js +14 -1
- package/dist/types.js.map +1 -1
- package/dist/webex.js +1 -1
- package/package.json +9 -9
- package/src/cc.ts +157 -30
- package/src/constants.ts +4 -0
- package/src/index.ts +1 -0
- package/src/metrics/behavioral-events.ts +14 -0
- package/src/metrics/constants.ts +11 -0
- package/src/services/ApiAiAssistant.ts +217 -0
- package/src/services/agent/types.ts +1 -1
- package/src/services/config/Util.ts +8 -0
- package/src/services/config/constants.ts +12 -0
- package/src/services/config/index.ts +45 -1
- package/src/services/config/types.ts +67 -0
- package/src/services/constants.ts +29 -0
- package/src/services/core/Err.ts +1 -0
- package/src/services/core/Utils.ts +32 -5
- package/src/services/core/aqm-reqs.ts +100 -22
- package/src/services/core/websocket/WebSocketManager.ts +21 -6
- package/src/services/core/websocket/connection-service.ts +5 -1
- package/src/services/index.ts +4 -0
- package/src/services/task/TaskManager.ts +174 -27
- package/src/services/task/TaskUtils.ts +12 -0
- package/src/services/task/constants.ts +16 -0
- package/src/services/task/dialer.ts +56 -1
- package/src/services/task/types.ts +24 -0
- package/src/types.ts +40 -1
- package/test/unit/spec/cc.ts +163 -23
- package/test/unit/spec/services/ApiAiAssistant.ts +115 -0
- package/test/unit/spec/services/config/index.ts +56 -0
- package/test/unit/spec/services/core/Utils.ts +63 -1
- package/test/unit/spec/services/core/websocket/WebSocketManager.ts +82 -12
- package/test/unit/spec/services/core/websocket/connection-service.ts +3 -1
- package/test/unit/spec/services/task/TaskManager.ts +1119 -251
- package/test/unit/spec/services/task/dialer.ts +198 -112
- package/umd/contact-center.min.js +2 -2
- package/umd/contact-center.min.js.map +1 -1
|
@@ -0,0 +1,1207 @@
|
|
|
1
|
+
import * as Agent from '../agent/types';
|
|
2
|
+
/**
|
|
3
|
+
* Events emitted on task objects
|
|
4
|
+
* @enum {string}
|
|
5
|
+
* @private
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
export declare const CC_TASK_EVENTS: {
|
|
9
|
+
/** Event emitted when assigning contact to agent fails */
|
|
10
|
+
readonly AGENT_CONTACT_ASSIGN_FAILED: "AgentContactAssignFailed";
|
|
11
|
+
/** Event emitted when agent does not respond to contact offer */
|
|
12
|
+
readonly AGENT_CONTACT_OFFER_RONA: "AgentOfferContactRona";
|
|
13
|
+
/** Event emitted when contact is put on hold */
|
|
14
|
+
readonly AGENT_CONTACT_HELD: "AgentContactHeld";
|
|
15
|
+
/** Event emitted when putting contact on hold fails */
|
|
16
|
+
readonly AGENT_CONTACT_HOLD_FAILED: "AgentContactHoldFailed";
|
|
17
|
+
/** Event emitted when contact is taken off hold */
|
|
18
|
+
readonly AGENT_CONTACT_UNHELD: "AgentContactUnheld";
|
|
19
|
+
/** Event emitted when taking contact off hold fails */
|
|
20
|
+
readonly AGENT_CONTACT_UNHOLD_FAILED: "AgentContactUnHoldFailed";
|
|
21
|
+
/** Event emitted when consultation is created */
|
|
22
|
+
readonly AGENT_CONSULT_CREATED: "AgentConsultCreated";
|
|
23
|
+
/** Event emitted when consultation is offered */
|
|
24
|
+
readonly AGENT_OFFER_CONSULT: "AgentOfferConsult";
|
|
25
|
+
/** Event emitted when agent is consulting */
|
|
26
|
+
readonly AGENT_CONSULTING: "AgentConsulting";
|
|
27
|
+
/** Event emitted when consultation fails */
|
|
28
|
+
readonly AGENT_CONSULT_FAILED: "AgentConsultFailed";
|
|
29
|
+
/** Event emitted when consulting to queue (CTQ) fails */
|
|
30
|
+
readonly AGENT_CTQ_FAILED: "AgentCtqFailed";
|
|
31
|
+
/** Event emitted when CTQ is cancelled */
|
|
32
|
+
readonly AGENT_CTQ_CANCELLED: "AgentCtqCancelled";
|
|
33
|
+
/** Event emitted when CTQ cancellation fails */
|
|
34
|
+
readonly AGENT_CTQ_CANCEL_FAILED: "AgentCtqCancelFailed";
|
|
35
|
+
/** Event emitted when consultation ends */
|
|
36
|
+
readonly AGENT_CONSULT_ENDED: "AgentConsultEnded";
|
|
37
|
+
/** Event emitted when ending consultation fails */
|
|
38
|
+
readonly AGENT_CONSULT_END_FAILED: "AgentConsultEndFailed";
|
|
39
|
+
/** Event emitted when consultation conference ends */
|
|
40
|
+
readonly AGENT_CONSULT_CONFERENCE_ENDED: "AgentConsultConferenceEnded";
|
|
41
|
+
/** Event emitted when consultation conference is in progress */
|
|
42
|
+
readonly AGENT_CONSULT_CONFERENCING: "AgentConsultConferencing";
|
|
43
|
+
/** Event emitted when consultation conference starts */
|
|
44
|
+
readonly AGENT_CONSULT_CONFERENCED: "AgentConsultConferenced";
|
|
45
|
+
/** Event emitted when consultation conference fails */
|
|
46
|
+
readonly AGENT_CONSULT_CONFERENCE_FAILED: "AgentConsultConferenceFailed";
|
|
47
|
+
/** Event emitted when participant joins conference */
|
|
48
|
+
readonly PARTICIPANT_JOINED_CONFERENCE: "ParticipantJoinedConference";
|
|
49
|
+
/** Event emitted when participant leaves conference */
|
|
50
|
+
readonly PARTICIPANT_LEFT_CONFERENCE: "ParticipantLeftConference";
|
|
51
|
+
/** Event emitted when participant leaving conference fails */
|
|
52
|
+
readonly PARTICIPANT_LEFT_CONFERENCE_FAILED: "ParticipantLeftConferenceFailed";
|
|
53
|
+
/** Event emitted when consultation conference end fails */
|
|
54
|
+
readonly AGENT_CONSULT_CONFERENCE_END_FAILED: "AgentConsultConferenceEndFailed";
|
|
55
|
+
/** Event emitted when conference is successfully transferred */
|
|
56
|
+
readonly AGENT_CONFERENCE_TRANSFERRED: "AgentConferenceTransferred";
|
|
57
|
+
/** Event emitted when conference transfer fails */
|
|
58
|
+
readonly AGENT_CONFERENCE_TRANSFER_FAILED: "AgentConferenceTransferFailed";
|
|
59
|
+
/** Event emitted for post-call activity by participant */
|
|
60
|
+
readonly PARTICIPANT_POST_CALL_ACTIVITY: "ParticipantPostCallActivity";
|
|
61
|
+
/** Event emitted when contact is blind transferred */
|
|
62
|
+
readonly AGENT_BLIND_TRANSFERRED: "AgentBlindTransferred";
|
|
63
|
+
/** Event emitted when blind transfer fails */
|
|
64
|
+
readonly AGENT_BLIND_TRANSFER_FAILED: "AgentBlindTransferFailed";
|
|
65
|
+
/** Event emitted when contact is transferred to virtual team */
|
|
66
|
+
readonly AGENT_VTEAM_TRANSFERRED: "AgentVteamTransferred";
|
|
67
|
+
/** Event emitted when virtual team transfer fails */
|
|
68
|
+
readonly AGENT_VTEAM_TRANSFER_FAILED: "AgentVteamTransferFailed";
|
|
69
|
+
/** Event emitted when consultation transfer is in progress */
|
|
70
|
+
readonly AGENT_CONSULT_TRANSFERRING: "AgentConsultTransferring";
|
|
71
|
+
/** Event emitted when consultation transfer completes */
|
|
72
|
+
readonly AGENT_CONSULT_TRANSFERRED: "AgentConsultTransferred";
|
|
73
|
+
/** Event emitted when consultation transfer fails */
|
|
74
|
+
readonly AGENT_CONSULT_TRANSFER_FAILED: "AgentConsultTransferFailed";
|
|
75
|
+
/** Event emitted when contact recording is paused */
|
|
76
|
+
readonly CONTACT_RECORDING_PAUSED: "ContactRecordingPaused";
|
|
77
|
+
/** Event emitted when pausing contact recording fails */
|
|
78
|
+
readonly CONTACT_RECORDING_PAUSE_FAILED: "ContactRecordingPauseFailed";
|
|
79
|
+
/** Event emitted when contact recording is resumed */
|
|
80
|
+
readonly CONTACT_RECORDING_RESUMED: "ContactRecordingResumed";
|
|
81
|
+
/** Event emitted when resuming contact recording fails */
|
|
82
|
+
readonly CONTACT_RECORDING_RESUME_FAILED: "ContactRecordingResumeFailed";
|
|
83
|
+
/** Event emitted when contact ends */
|
|
84
|
+
readonly CONTACT_ENDED: "ContactEnded";
|
|
85
|
+
/** Event emitted when contact is merged */
|
|
86
|
+
readonly CONTACT_MERGED: "ContactMerged";
|
|
87
|
+
/** Event emitted when ending contact fails */
|
|
88
|
+
readonly AGENT_CONTACT_END_FAILED: "AgentContactEndFailed";
|
|
89
|
+
/** Event emitted when agent enters wrap-up state */
|
|
90
|
+
readonly AGENT_WRAPUP: "AgentWrapup";
|
|
91
|
+
/** Event emitted when agent completes wrap-up */
|
|
92
|
+
readonly AGENT_WRAPPEDUP: "AgentWrappedUp";
|
|
93
|
+
/** Event emitted when wrap-up fails */
|
|
94
|
+
readonly AGENT_WRAPUP_FAILED: "AgentWrapupFailed";
|
|
95
|
+
/** Event emitted when outbound call fails */
|
|
96
|
+
readonly AGENT_OUTBOUND_FAILED: "AgentOutboundFailed";
|
|
97
|
+
/** Event emitted for general agent contact events */
|
|
98
|
+
readonly AGENT_CONTACT: "AgentContact";
|
|
99
|
+
/** Event emitted when contact is offered to agent */
|
|
100
|
+
readonly AGENT_OFFER_CONTACT: "AgentOfferContact";
|
|
101
|
+
/** Event emitted when contact is assigned to agent */
|
|
102
|
+
readonly AGENT_CONTACT_ASSIGNED: "AgentContactAssigned";
|
|
103
|
+
/** Event emitted when contact is unassigned from agent */
|
|
104
|
+
readonly AGENT_CONTACT_UNASSIGNED: "AgentContactUnassigned";
|
|
105
|
+
/** Event emitted when inviting agent fails */
|
|
106
|
+
readonly AGENT_INVITE_FAILED: "AgentInviteFailed";
|
|
107
|
+
/** Event emitted when a campaign preview contact is offered to the agent */
|
|
108
|
+
readonly AGENT_OFFER_CAMPAIGN_RESERVATION: "AgentOfferCampaignReservation";
|
|
109
|
+
/** Event emitted when campaign contact is updated */
|
|
110
|
+
readonly CAMPAIGN_CONTACT_UPDATED: "CampaignContactUpdated";
|
|
111
|
+
/** Event emitted when accepting a campaign preview contact fails */
|
|
112
|
+
readonly CAMPAIGN_PREVIEW_ACCEPT_FAILED: "CampaignPreviewAcceptFailed";
|
|
113
|
+
/** Event emitted when a real-time transcript chunk is received */
|
|
114
|
+
readonly REAL_TIME_TRANSCRIPTION: "REAL_TIME_TRANSCRIPTION";
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Events emitted on Contact Center agent operations
|
|
118
|
+
* @enum {string}
|
|
119
|
+
* @private
|
|
120
|
+
* @ignore
|
|
121
|
+
*/
|
|
122
|
+
export declare const CC_AGENT_EVENTS: {
|
|
123
|
+
/** Welcome event when agent connects to websocket/backend */
|
|
124
|
+
readonly WELCOME: "Welcome";
|
|
125
|
+
/** Event emitted when agent re-login is successful */
|
|
126
|
+
readonly AGENT_RELOGIN_SUCCESS: "AgentReloginSuccess";
|
|
127
|
+
/** Event emitted when agent re-login fails */
|
|
128
|
+
readonly AGENT_RELOGIN_FAILED: "AgentReloginFailed";
|
|
129
|
+
/** Event emitted when agent DN registration completes */
|
|
130
|
+
readonly AGENT_DN_REGISTERED: "AgentDNRegistered";
|
|
131
|
+
/** Event emitted when agent initiates logout */
|
|
132
|
+
readonly AGENT_LOGOUT: "Logout";
|
|
133
|
+
/** Event emitted when agent logout is successful */
|
|
134
|
+
readonly AGENT_LOGOUT_SUCCESS: "AgentLogoutSuccess";
|
|
135
|
+
/** Event emitted when agent logout fails */
|
|
136
|
+
readonly AGENT_LOGOUT_FAILED: "AgentLogoutFailed";
|
|
137
|
+
/** Event emitted when agent initiates station login */
|
|
138
|
+
readonly AGENT_STATION_LOGIN: "StationLogin";
|
|
139
|
+
/** Event emitted when agent station login is successful */
|
|
140
|
+
readonly AGENT_STATION_LOGIN_SUCCESS: "AgentStationLoginSuccess";
|
|
141
|
+
/** Event emitted when agent station login fails */
|
|
142
|
+
readonly AGENT_STATION_LOGIN_FAILED: "AgentStationLoginFailed";
|
|
143
|
+
/** Event emitted when agent's state changes */
|
|
144
|
+
readonly AGENT_STATE_CHANGE: "AgentStateChange";
|
|
145
|
+
/** Event emitted when multiple logins detected for same agent */
|
|
146
|
+
readonly AGENT_MULTI_LOGIN: "AGENT_MULTI_LOGIN";
|
|
147
|
+
/** Event emitted when agent state change is successful */
|
|
148
|
+
readonly AGENT_STATE_CHANGE_SUCCESS: "AgentStateChangeSuccess";
|
|
149
|
+
/** Event emitted when agent state change fails */
|
|
150
|
+
readonly AGENT_STATE_CHANGE_FAILED: "AgentStateChangeFailed";
|
|
151
|
+
/** Event emitted when requesting buddy agents list */
|
|
152
|
+
readonly AGENT_BUDDY_AGENTS: "BuddyAgents";
|
|
153
|
+
/** Event emitted when buddy agents list is successfully retrieved */
|
|
154
|
+
readonly AGENT_BUDDY_AGENTS_SUCCESS: "BuddyAgents";
|
|
155
|
+
/** Event emitted when retrieving buddy agents list fails */
|
|
156
|
+
readonly AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: "BuddyAgentsRetrieveFailed";
|
|
157
|
+
/** Event emitted when contact is reserved for agent */
|
|
158
|
+
readonly AGENT_CONTACT_RESERVED: "AgentContactReserved";
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Combined Contact Center events including both agent and task events
|
|
162
|
+
* @enum {string}
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
export declare const CC_EVENTS: {
|
|
166
|
+
/** Event emitted when assigning contact to agent fails */
|
|
167
|
+
readonly AGENT_CONTACT_ASSIGN_FAILED: "AgentContactAssignFailed";
|
|
168
|
+
/** Event emitted when agent does not respond to contact offer */
|
|
169
|
+
readonly AGENT_CONTACT_OFFER_RONA: "AgentOfferContactRona";
|
|
170
|
+
/** Event emitted when contact is put on hold */
|
|
171
|
+
readonly AGENT_CONTACT_HELD: "AgentContactHeld";
|
|
172
|
+
/** Event emitted when putting contact on hold fails */
|
|
173
|
+
readonly AGENT_CONTACT_HOLD_FAILED: "AgentContactHoldFailed";
|
|
174
|
+
/** Event emitted when contact is taken off hold */
|
|
175
|
+
readonly AGENT_CONTACT_UNHELD: "AgentContactUnheld";
|
|
176
|
+
/** Event emitted when taking contact off hold fails */
|
|
177
|
+
readonly AGENT_CONTACT_UNHOLD_FAILED: "AgentContactUnHoldFailed";
|
|
178
|
+
/** Event emitted when consultation is created */
|
|
179
|
+
readonly AGENT_CONSULT_CREATED: "AgentConsultCreated";
|
|
180
|
+
/** Event emitted when consultation is offered */
|
|
181
|
+
readonly AGENT_OFFER_CONSULT: "AgentOfferConsult";
|
|
182
|
+
/** Event emitted when agent is consulting */
|
|
183
|
+
readonly AGENT_CONSULTING: "AgentConsulting";
|
|
184
|
+
/** Event emitted when consultation fails */
|
|
185
|
+
readonly AGENT_CONSULT_FAILED: "AgentConsultFailed";
|
|
186
|
+
/** Event emitted when consulting to queue (CTQ) fails */
|
|
187
|
+
readonly AGENT_CTQ_FAILED: "AgentCtqFailed";
|
|
188
|
+
/** Event emitted when CTQ is cancelled */
|
|
189
|
+
readonly AGENT_CTQ_CANCELLED: "AgentCtqCancelled";
|
|
190
|
+
/** Event emitted when CTQ cancellation fails */
|
|
191
|
+
readonly AGENT_CTQ_CANCEL_FAILED: "AgentCtqCancelFailed";
|
|
192
|
+
/** Event emitted when consultation ends */
|
|
193
|
+
readonly AGENT_CONSULT_ENDED: "AgentConsultEnded";
|
|
194
|
+
/** Event emitted when ending consultation fails */
|
|
195
|
+
readonly AGENT_CONSULT_END_FAILED: "AgentConsultEndFailed";
|
|
196
|
+
/** Event emitted when consultation conference ends */
|
|
197
|
+
readonly AGENT_CONSULT_CONFERENCE_ENDED: "AgentConsultConferenceEnded";
|
|
198
|
+
/** Event emitted when consultation conference is in progress */
|
|
199
|
+
readonly AGENT_CONSULT_CONFERENCING: "AgentConsultConferencing";
|
|
200
|
+
/** Event emitted when consultation conference starts */
|
|
201
|
+
readonly AGENT_CONSULT_CONFERENCED: "AgentConsultConferenced";
|
|
202
|
+
/** Event emitted when consultation conference fails */
|
|
203
|
+
readonly AGENT_CONSULT_CONFERENCE_FAILED: "AgentConsultConferenceFailed";
|
|
204
|
+
/** Event emitted when participant joins conference */
|
|
205
|
+
readonly PARTICIPANT_JOINED_CONFERENCE: "ParticipantJoinedConference";
|
|
206
|
+
/** Event emitted when participant leaves conference */
|
|
207
|
+
readonly PARTICIPANT_LEFT_CONFERENCE: "ParticipantLeftConference";
|
|
208
|
+
/** Event emitted when participant leaving conference fails */
|
|
209
|
+
readonly PARTICIPANT_LEFT_CONFERENCE_FAILED: "ParticipantLeftConferenceFailed";
|
|
210
|
+
/** Event emitted when consultation conference end fails */
|
|
211
|
+
readonly AGENT_CONSULT_CONFERENCE_END_FAILED: "AgentConsultConferenceEndFailed";
|
|
212
|
+
/** Event emitted when conference is successfully transferred */
|
|
213
|
+
readonly AGENT_CONFERENCE_TRANSFERRED: "AgentConferenceTransferred";
|
|
214
|
+
/** Event emitted when conference transfer fails */
|
|
215
|
+
readonly AGENT_CONFERENCE_TRANSFER_FAILED: "AgentConferenceTransferFailed";
|
|
216
|
+
/** Event emitted for post-call activity by participant */
|
|
217
|
+
readonly PARTICIPANT_POST_CALL_ACTIVITY: "ParticipantPostCallActivity";
|
|
218
|
+
/** Event emitted when contact is blind transferred */
|
|
219
|
+
readonly AGENT_BLIND_TRANSFERRED: "AgentBlindTransferred";
|
|
220
|
+
/** Event emitted when blind transfer fails */
|
|
221
|
+
readonly AGENT_BLIND_TRANSFER_FAILED: "AgentBlindTransferFailed";
|
|
222
|
+
/** Event emitted when contact is transferred to virtual team */
|
|
223
|
+
readonly AGENT_VTEAM_TRANSFERRED: "AgentVteamTransferred";
|
|
224
|
+
/** Event emitted when virtual team transfer fails */
|
|
225
|
+
readonly AGENT_VTEAM_TRANSFER_FAILED: "AgentVteamTransferFailed";
|
|
226
|
+
/** Event emitted when consultation transfer is in progress */
|
|
227
|
+
readonly AGENT_CONSULT_TRANSFERRING: "AgentConsultTransferring";
|
|
228
|
+
/** Event emitted when consultation transfer completes */
|
|
229
|
+
readonly AGENT_CONSULT_TRANSFERRED: "AgentConsultTransferred";
|
|
230
|
+
/** Event emitted when consultation transfer fails */
|
|
231
|
+
readonly AGENT_CONSULT_TRANSFER_FAILED: "AgentConsultTransferFailed";
|
|
232
|
+
/** Event emitted when contact recording is paused */
|
|
233
|
+
readonly CONTACT_RECORDING_PAUSED: "ContactRecordingPaused";
|
|
234
|
+
/** Event emitted when pausing contact recording fails */
|
|
235
|
+
readonly CONTACT_RECORDING_PAUSE_FAILED: "ContactRecordingPauseFailed";
|
|
236
|
+
/** Event emitted when contact recording is resumed */
|
|
237
|
+
readonly CONTACT_RECORDING_RESUMED: "ContactRecordingResumed";
|
|
238
|
+
/** Event emitted when resuming contact recording fails */
|
|
239
|
+
readonly CONTACT_RECORDING_RESUME_FAILED: "ContactRecordingResumeFailed";
|
|
240
|
+
/** Event emitted when contact ends */
|
|
241
|
+
readonly CONTACT_ENDED: "ContactEnded";
|
|
242
|
+
/** Event emitted when contact is merged */
|
|
243
|
+
readonly CONTACT_MERGED: "ContactMerged";
|
|
244
|
+
/** Event emitted when ending contact fails */
|
|
245
|
+
readonly AGENT_CONTACT_END_FAILED: "AgentContactEndFailed";
|
|
246
|
+
/** Event emitted when agent enters wrap-up state */
|
|
247
|
+
readonly AGENT_WRAPUP: "AgentWrapup";
|
|
248
|
+
/** Event emitted when agent completes wrap-up */
|
|
249
|
+
readonly AGENT_WRAPPEDUP: "AgentWrappedUp";
|
|
250
|
+
/** Event emitted when wrap-up fails */
|
|
251
|
+
readonly AGENT_WRAPUP_FAILED: "AgentWrapupFailed";
|
|
252
|
+
/** Event emitted when outbound call fails */
|
|
253
|
+
readonly AGENT_OUTBOUND_FAILED: "AgentOutboundFailed";
|
|
254
|
+
/** Event emitted for general agent contact events */
|
|
255
|
+
readonly AGENT_CONTACT: "AgentContact";
|
|
256
|
+
/** Event emitted when contact is offered to agent */
|
|
257
|
+
readonly AGENT_OFFER_CONTACT: "AgentOfferContact";
|
|
258
|
+
/** Event emitted when contact is assigned to agent */
|
|
259
|
+
readonly AGENT_CONTACT_ASSIGNED: "AgentContactAssigned";
|
|
260
|
+
/** Event emitted when contact is unassigned from agent */
|
|
261
|
+
readonly AGENT_CONTACT_UNASSIGNED: "AgentContactUnassigned";
|
|
262
|
+
/** Event emitted when inviting agent fails */
|
|
263
|
+
readonly AGENT_INVITE_FAILED: "AgentInviteFailed";
|
|
264
|
+
/** Event emitted when a campaign preview contact is offered to the agent */
|
|
265
|
+
readonly AGENT_OFFER_CAMPAIGN_RESERVATION: "AgentOfferCampaignReservation";
|
|
266
|
+
/** Event emitted when campaign contact is updated */
|
|
267
|
+
readonly CAMPAIGN_CONTACT_UPDATED: "CampaignContactUpdated";
|
|
268
|
+
/** Event emitted when accepting a campaign preview contact fails */
|
|
269
|
+
readonly CAMPAIGN_PREVIEW_ACCEPT_FAILED: "CampaignPreviewAcceptFailed";
|
|
270
|
+
/** Event emitted when a real-time transcript chunk is received */
|
|
271
|
+
readonly REAL_TIME_TRANSCRIPTION: "REAL_TIME_TRANSCRIPTION";
|
|
272
|
+
/** Welcome event when agent connects to websocket/backend */
|
|
273
|
+
readonly WELCOME: "Welcome";
|
|
274
|
+
/** Event emitted when agent re-login is successful */
|
|
275
|
+
readonly AGENT_RELOGIN_SUCCESS: "AgentReloginSuccess";
|
|
276
|
+
/** Event emitted when agent re-login fails */
|
|
277
|
+
readonly AGENT_RELOGIN_FAILED: "AgentReloginFailed";
|
|
278
|
+
/** Event emitted when agent DN registration completes */
|
|
279
|
+
readonly AGENT_DN_REGISTERED: "AgentDNRegistered";
|
|
280
|
+
/** Event emitted when agent initiates logout */
|
|
281
|
+
readonly AGENT_LOGOUT: "Logout";
|
|
282
|
+
/** Event emitted when agent logout is successful */
|
|
283
|
+
readonly AGENT_LOGOUT_SUCCESS: "AgentLogoutSuccess";
|
|
284
|
+
/** Event emitted when agent logout fails */
|
|
285
|
+
readonly AGENT_LOGOUT_FAILED: "AgentLogoutFailed";
|
|
286
|
+
/** Event emitted when agent initiates station login */
|
|
287
|
+
readonly AGENT_STATION_LOGIN: "StationLogin";
|
|
288
|
+
/** Event emitted when agent station login is successful */
|
|
289
|
+
readonly AGENT_STATION_LOGIN_SUCCESS: "AgentStationLoginSuccess";
|
|
290
|
+
/** Event emitted when agent station login fails */
|
|
291
|
+
readonly AGENT_STATION_LOGIN_FAILED: "AgentStationLoginFailed";
|
|
292
|
+
/** Event emitted when agent's state changes */
|
|
293
|
+
readonly AGENT_STATE_CHANGE: "AgentStateChange";
|
|
294
|
+
/** Event emitted when multiple logins detected for same agent */
|
|
295
|
+
readonly AGENT_MULTI_LOGIN: "AGENT_MULTI_LOGIN";
|
|
296
|
+
/** Event emitted when agent state change is successful */
|
|
297
|
+
readonly AGENT_STATE_CHANGE_SUCCESS: "AgentStateChangeSuccess";
|
|
298
|
+
/** Event emitted when agent state change fails */
|
|
299
|
+
readonly AGENT_STATE_CHANGE_FAILED: "AgentStateChangeFailed";
|
|
300
|
+
/** Event emitted when requesting buddy agents list */
|
|
301
|
+
readonly AGENT_BUDDY_AGENTS: "BuddyAgents";
|
|
302
|
+
/** Event emitted when buddy agents list is successfully retrieved */
|
|
303
|
+
readonly AGENT_BUDDY_AGENTS_SUCCESS: "BuddyAgents";
|
|
304
|
+
/** Event emitted when retrieving buddy agents list fails */
|
|
305
|
+
readonly AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: "BuddyAgentsRetrieveFailed";
|
|
306
|
+
/** Event emitted when contact is reserved for agent */
|
|
307
|
+
readonly AGENT_CONTACT_RESERVED: "AgentContactReserved";
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Event data received when agent connects to the system
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
export type WelcomeEvent = {
|
|
314
|
+
/** ID of the agent that connected */
|
|
315
|
+
agentId: string;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Response type for welcome events which can be either success or error
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
export type WelcomeResponse = WelcomeEvent | Error;
|
|
322
|
+
/**
|
|
323
|
+
* Type representing the union of all possible Contact Center events
|
|
324
|
+
* @public
|
|
325
|
+
*/
|
|
326
|
+
export type CC_EVENTS = Enum<typeof CC_EVENTS>;
|
|
327
|
+
/**
|
|
328
|
+
* WebSocket event structure for Contact Center events
|
|
329
|
+
* @public
|
|
330
|
+
*/
|
|
331
|
+
export type WebSocketEvent = {
|
|
332
|
+
/** Type of the event */
|
|
333
|
+
type: CC_EVENTS;
|
|
334
|
+
/** Event payload data */
|
|
335
|
+
data: WelcomeEvent | Agent.StationLoginSuccess | Agent.LogoutSuccess | Agent.ReloginSuccess | Agent.StateChangeSuccess | Agent.BuddyAgentsSuccess;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Represents the response from getUserUsingCI method.
|
|
339
|
+
*/
|
|
340
|
+
export type AgentResponse = {
|
|
341
|
+
/**
|
|
342
|
+
* ID of the agent.
|
|
343
|
+
*/
|
|
344
|
+
id: string;
|
|
345
|
+
/**
|
|
346
|
+
* The ciUserId of the agent.
|
|
347
|
+
*/
|
|
348
|
+
ciUserId: string;
|
|
349
|
+
/**
|
|
350
|
+
* The first name of the agent.
|
|
351
|
+
*/
|
|
352
|
+
firstName: string;
|
|
353
|
+
/**
|
|
354
|
+
* The last name of the agent.
|
|
355
|
+
*/
|
|
356
|
+
lastName: string;
|
|
357
|
+
/**
|
|
358
|
+
* Identifier for a Desktop Profile.
|
|
359
|
+
*/
|
|
360
|
+
agentProfileId: string;
|
|
361
|
+
/**
|
|
362
|
+
* The email address of the agent.
|
|
363
|
+
*/
|
|
364
|
+
email: string;
|
|
365
|
+
/**
|
|
366
|
+
* Team IDs assigned to the agent.
|
|
367
|
+
*/
|
|
368
|
+
teamIds: string[];
|
|
369
|
+
/**
|
|
370
|
+
* Multimedia profile ID associated with the agent.
|
|
371
|
+
*/
|
|
372
|
+
multimediaProfileId: string;
|
|
373
|
+
/**
|
|
374
|
+
* Skill profile ID of the agent.
|
|
375
|
+
*/
|
|
376
|
+
skillProfileId: string;
|
|
377
|
+
/**
|
|
378
|
+
* Site ID of the agent.
|
|
379
|
+
*/
|
|
380
|
+
siteId: string;
|
|
381
|
+
/**
|
|
382
|
+
* Database ID of the agent.
|
|
383
|
+
*/
|
|
384
|
+
dbId?: string;
|
|
385
|
+
/**
|
|
386
|
+
* The default dialed number of the agent.
|
|
387
|
+
*/
|
|
388
|
+
defaultDialledNumber?: string;
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Represents the response from getDesktopProfileById method.
|
|
392
|
+
*/
|
|
393
|
+
export type DesktopProfileResponse = {
|
|
394
|
+
/**
|
|
395
|
+
* Represents the voice options of an agent.
|
|
396
|
+
*/
|
|
397
|
+
loginVoiceOptions: LoginOption[];
|
|
398
|
+
/**
|
|
399
|
+
* Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.
|
|
400
|
+
*/
|
|
401
|
+
accessWrapUpCode: string;
|
|
402
|
+
/**
|
|
403
|
+
* Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.
|
|
404
|
+
*/
|
|
405
|
+
accessIdleCode: string;
|
|
406
|
+
/**
|
|
407
|
+
* Wrap-up codes list that the agents can select when they wrap up a contact.
|
|
408
|
+
*/
|
|
409
|
+
wrapUpCodes: string[];
|
|
410
|
+
/**
|
|
411
|
+
* Idle codes list that the agents can select in Agent Desktop.
|
|
412
|
+
*/
|
|
413
|
+
idleCodes: string[];
|
|
414
|
+
/**
|
|
415
|
+
* Dial plan enabled for the agent.
|
|
416
|
+
*/
|
|
417
|
+
dialPlanEnabled: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Last agent routing enabled for the agent.
|
|
420
|
+
*/
|
|
421
|
+
lastAgentRouting: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Auto wrap-up allowed.
|
|
424
|
+
*/
|
|
425
|
+
autoWrapUp: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Auto answer allowed.
|
|
428
|
+
*/
|
|
429
|
+
autoAnswer: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* Auto wrap-up after seconds.
|
|
432
|
+
*/
|
|
433
|
+
autoWrapAfterSeconds: number;
|
|
434
|
+
/**
|
|
435
|
+
* Agent available after outdial.
|
|
436
|
+
*/
|
|
437
|
+
agentAvailableAfterOutdial: boolean;
|
|
438
|
+
/**
|
|
439
|
+
* Allow auto wrap-up extension.
|
|
440
|
+
*/
|
|
441
|
+
allowAutoWrapUpExtension: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Outdial enabled for the agent.
|
|
444
|
+
*/
|
|
445
|
+
outdialEnabled: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* Outdial entry point ID of the agent.
|
|
448
|
+
*/
|
|
449
|
+
outdialEntryPointId: string;
|
|
450
|
+
/**
|
|
451
|
+
* Outdial ANI ID of the agent.
|
|
452
|
+
*/
|
|
453
|
+
outdialANIId: string;
|
|
454
|
+
/**
|
|
455
|
+
* Consult to queue allowed.
|
|
456
|
+
*/
|
|
457
|
+
consultToQueue: boolean;
|
|
458
|
+
/**
|
|
459
|
+
* Address book ID of the agent.
|
|
460
|
+
*/
|
|
461
|
+
addressBookId: string;
|
|
462
|
+
/**
|
|
463
|
+
* Viewable statistics of the agent.
|
|
464
|
+
*/
|
|
465
|
+
viewableStatistics: {
|
|
466
|
+
id: string;
|
|
467
|
+
agentStats: boolean;
|
|
468
|
+
accessQueueStats: string;
|
|
469
|
+
contactServiceQueues: string[];
|
|
470
|
+
loggedInTeamStats: boolean;
|
|
471
|
+
accessTeamStats: string;
|
|
472
|
+
teams: string[];
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Agent DN validation of the agent.
|
|
476
|
+
*/
|
|
477
|
+
agentDNValidation: string;
|
|
478
|
+
/**
|
|
479
|
+
* Dial plans of the agent.
|
|
480
|
+
*/
|
|
481
|
+
dialPlans: string[];
|
|
482
|
+
/**
|
|
483
|
+
* Timeout desktop inactivity custom enabled.
|
|
484
|
+
*/
|
|
485
|
+
timeoutDesktopInactivityCustomEnabled: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* Timeout desktop inactivity minutes.
|
|
488
|
+
*/
|
|
489
|
+
timeoutDesktopInactivityMins: number;
|
|
490
|
+
/**
|
|
491
|
+
* Show user details in Microsoft enabled or not.
|
|
492
|
+
*/
|
|
493
|
+
showUserDetailsMS: boolean;
|
|
494
|
+
/**
|
|
495
|
+
* State synchronization in Microsoft enabled or not.
|
|
496
|
+
*/
|
|
497
|
+
stateSynchronizationMS: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Show user details in Webex enabled or not.
|
|
500
|
+
*/
|
|
501
|
+
showUserDetailsWebex: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* State synchronization in Webex enabled or not.
|
|
504
|
+
*/
|
|
505
|
+
stateSynchronizationWebex: boolean;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Response containing multimedia profile configuration for an agent
|
|
509
|
+
* Defines capabilities across different communication channels
|
|
510
|
+
* @private
|
|
511
|
+
*/
|
|
512
|
+
export type MultimediaProfileResponse = {
|
|
513
|
+
/** Organization identifier */
|
|
514
|
+
organizationId: string;
|
|
515
|
+
/** Profile identifier */
|
|
516
|
+
id: string;
|
|
517
|
+
/** Version number of the profile */
|
|
518
|
+
version: number;
|
|
519
|
+
/** Profile name */
|
|
520
|
+
name: string;
|
|
521
|
+
/** Profile description */
|
|
522
|
+
description: string;
|
|
523
|
+
/** Maximum number of concurrent chat interactions */
|
|
524
|
+
chat: number;
|
|
525
|
+
/** Maximum number of concurrent email interactions */
|
|
526
|
+
email: number;
|
|
527
|
+
/** Maximum number of concurrent voice interactions */
|
|
528
|
+
telephony: number;
|
|
529
|
+
/** Maximum number of concurrent social media interactions */
|
|
530
|
+
social: number;
|
|
531
|
+
/** Whether the profile is active */
|
|
532
|
+
active: boolean;
|
|
533
|
+
/** Whether channel blending is enabled */
|
|
534
|
+
blendingModeEnabled: boolean;
|
|
535
|
+
/** Type of blending mode configuration */
|
|
536
|
+
blendingMode: string;
|
|
537
|
+
/** Whether this is the system default profile */
|
|
538
|
+
systemDefault: boolean;
|
|
539
|
+
/** Timestamp when profile was created */
|
|
540
|
+
createdTime: number;
|
|
541
|
+
/** Timestamp when profile was last updated */
|
|
542
|
+
lastUpdatedTime: number;
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Response from subscription requests containing WebSocket connection details
|
|
546
|
+
* @public
|
|
547
|
+
*/
|
|
548
|
+
export type SubscribeResponse = {
|
|
549
|
+
/** HTTP status code of the response */
|
|
550
|
+
statusCode: number;
|
|
551
|
+
/** Response body containing connection details */
|
|
552
|
+
body: {
|
|
553
|
+
/** WebSocket URL for real-time updates */
|
|
554
|
+
webSocketUrl?: string;
|
|
555
|
+
/** Unique subscription identifier */
|
|
556
|
+
subscriptionId?: string;
|
|
557
|
+
};
|
|
558
|
+
/** Optional status or error message */
|
|
559
|
+
message: string | null;
|
|
560
|
+
};
|
|
561
|
+
export type AuxCode = {
|
|
562
|
+
/**
|
|
563
|
+
* ID of the Auxiliary Code.
|
|
564
|
+
*/
|
|
565
|
+
id: string;
|
|
566
|
+
/**
|
|
567
|
+
* Indicates whether the auxiliary code is active or not.
|
|
568
|
+
*/
|
|
569
|
+
active: boolean;
|
|
570
|
+
/**
|
|
571
|
+
* Indicates whether this is the default code (true) or not (false).
|
|
572
|
+
*/
|
|
573
|
+
defaultCode: boolean;
|
|
574
|
+
/**
|
|
575
|
+
* Indicates whether this is the system default code (true) or not (false).
|
|
576
|
+
*/
|
|
577
|
+
isSystemCode: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* A short description indicating the context of the code.
|
|
580
|
+
*/
|
|
581
|
+
description: string;
|
|
582
|
+
/**
|
|
583
|
+
* Name of the Auxiliary Code.
|
|
584
|
+
*/
|
|
585
|
+
name: string;
|
|
586
|
+
/**
|
|
587
|
+
* Indicates the work type associated with this code.
|
|
588
|
+
*/
|
|
589
|
+
workTypeCode: string;
|
|
590
|
+
};
|
|
591
|
+
export type ListAuxCodesResponse = {
|
|
592
|
+
data: AuxCode[];
|
|
593
|
+
meta: {
|
|
594
|
+
page: number;
|
|
595
|
+
pageSize: number;
|
|
596
|
+
totalPages: number;
|
|
597
|
+
totalRecords: number;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Configuration for a team in the contact center system
|
|
602
|
+
* @private
|
|
603
|
+
*/
|
|
604
|
+
export type TeamList = {
|
|
605
|
+
/** Unique identifier for the team */
|
|
606
|
+
id: string;
|
|
607
|
+
/** Team name */
|
|
608
|
+
name: string;
|
|
609
|
+
/** Type of team (e.g., 'AGENT_BASED') */
|
|
610
|
+
teamType: string;
|
|
611
|
+
/** Current status of the team */
|
|
612
|
+
teamStatus: string;
|
|
613
|
+
/** Whether the team is active */
|
|
614
|
+
active: boolean;
|
|
615
|
+
/** Site identifier where team is located */
|
|
616
|
+
siteId: string;
|
|
617
|
+
/** Name of the site */
|
|
618
|
+
siteName: string;
|
|
619
|
+
/** Optional multimedia profile ID for team */
|
|
620
|
+
multiMediaProfileId?: string;
|
|
621
|
+
/** List of user IDs belonging to team */
|
|
622
|
+
userIds: string[];
|
|
623
|
+
/** Whether queue rankings are enabled for team */
|
|
624
|
+
rankQueuesForTeam: boolean;
|
|
625
|
+
/** Ordered list of queue rankings */
|
|
626
|
+
queueRankings: string[];
|
|
627
|
+
/** Optional database identifier */
|
|
628
|
+
dbId?: string;
|
|
629
|
+
/** Optional desktop layout identifier */
|
|
630
|
+
desktopLayoutId?: string;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* Response type for listing teams with pagination metadata
|
|
634
|
+
* @private
|
|
635
|
+
*/
|
|
636
|
+
export type ListTeamsResponse = {
|
|
637
|
+
/** Array of team configurations */
|
|
638
|
+
data: TeamList[];
|
|
639
|
+
/** Pagination metadata */
|
|
640
|
+
meta: {
|
|
641
|
+
/** Current page number */
|
|
642
|
+
page: number;
|
|
643
|
+
/** Number of items per page */
|
|
644
|
+
pageSize: number;
|
|
645
|
+
/** Total number of pages */
|
|
646
|
+
totalPages: number;
|
|
647
|
+
/** Total number of records */
|
|
648
|
+
totalRecords: number;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Basic organization information in the contact center system
|
|
653
|
+
* @private
|
|
654
|
+
* @ignore
|
|
655
|
+
*/
|
|
656
|
+
export type OrgInfo = {
|
|
657
|
+
/** Tenant identifier */
|
|
658
|
+
tenantId: string;
|
|
659
|
+
/** Organization timezone */
|
|
660
|
+
timezone: string;
|
|
661
|
+
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
662
|
+
environment: string;
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* Organization-wide feature settings and configurations
|
|
666
|
+
* @private
|
|
667
|
+
*/
|
|
668
|
+
export type OrgSettings = {
|
|
669
|
+
/** Whether WebRTC functionality is enabled */
|
|
670
|
+
webRtcEnabled: boolean;
|
|
671
|
+
/** Whether sensitive data masking is enabled */
|
|
672
|
+
maskSensitiveData: boolean;
|
|
673
|
+
/** Whether campaign manager features are enabled */
|
|
674
|
+
campaignManagerEnabled: boolean;
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* Contact center site configuration information
|
|
678
|
+
* @private
|
|
679
|
+
*/
|
|
680
|
+
export type SiteInfo = {
|
|
681
|
+
/** Unique site identifier */
|
|
682
|
+
id: string;
|
|
683
|
+
/** Site name */
|
|
684
|
+
name: string;
|
|
685
|
+
/** Whether site is active */
|
|
686
|
+
active: boolean;
|
|
687
|
+
/** Multimedia profile ID for site */
|
|
688
|
+
multimediaProfileId: string;
|
|
689
|
+
/** Whether this is the system default site */
|
|
690
|
+
systemDefault: boolean;
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* Tenant-level configuration data and settings
|
|
694
|
+
* @private
|
|
695
|
+
*/
|
|
696
|
+
export type TenantData = {
|
|
697
|
+
/** Desktop inactivity timeout in minutes */
|
|
698
|
+
timeoutDesktopInactivityMins: number;
|
|
699
|
+
/** Whether default DN is enforced */
|
|
700
|
+
forceDefaultDn: boolean;
|
|
701
|
+
/** Regex pattern for default DN validation */
|
|
702
|
+
dnDefaultRegex: string;
|
|
703
|
+
/** Regex pattern for other DN validation */
|
|
704
|
+
dnOtherRegex: string;
|
|
705
|
+
/** Whether privacy shield feature is visible */
|
|
706
|
+
privacyShieldVisible: boolean;
|
|
707
|
+
/** Whether outbound dialing is enabled */
|
|
708
|
+
outdialEnabled: boolean;
|
|
709
|
+
/** Whether ending calls is enabled */
|
|
710
|
+
endCallEnabled: boolean;
|
|
711
|
+
/** Whether ending consultations is enabled */
|
|
712
|
+
endConsultEnabled: boolean;
|
|
713
|
+
/** Whether call variables are suppressed */
|
|
714
|
+
callVariablesSuppressed: boolean;
|
|
715
|
+
/** Whether desktop inactivity timeout is enabled */
|
|
716
|
+
timeoutDesktopInactivityEnabled: boolean;
|
|
717
|
+
/** Lost connection recovery timeout in seconds */
|
|
718
|
+
lostConnectionRecoveryTimeout: number;
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* URL mapping configuration for external integrations
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
export type URLMapping = {
|
|
725
|
+
id: string;
|
|
726
|
+
name: string;
|
|
727
|
+
url: string;
|
|
728
|
+
links: string[];
|
|
729
|
+
createdTime: number;
|
|
730
|
+
lastUpdatedTime: number;
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* Constant representing idle code
|
|
734
|
+
* @public
|
|
735
|
+
* @ignore
|
|
736
|
+
*/
|
|
737
|
+
export declare const IDLE_CODE = "IDLE_CODE";
|
|
738
|
+
/**
|
|
739
|
+
* Constant representing wrap up code
|
|
740
|
+
* @public
|
|
741
|
+
* @ignore
|
|
742
|
+
*/
|
|
743
|
+
export declare const WRAP_UP_CODE = "WRAP_UP_CODE";
|
|
744
|
+
/**
|
|
745
|
+
* Type representing the possible auxiliary code types
|
|
746
|
+
* @public
|
|
747
|
+
*/
|
|
748
|
+
export type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;
|
|
749
|
+
/**
|
|
750
|
+
* Parameters for querying Contact Center resources
|
|
751
|
+
* @public
|
|
752
|
+
*/
|
|
753
|
+
export type QueryParams = {
|
|
754
|
+
/** Page number for pagination */
|
|
755
|
+
pageNumber?: number;
|
|
756
|
+
pageSize?: number;
|
|
757
|
+
attributes?: Array<string>;
|
|
758
|
+
ids?: Array<string>;
|
|
759
|
+
queueType?: string;
|
|
760
|
+
entryPointType?: string;
|
|
761
|
+
channelType?: string;
|
|
762
|
+
isActive?: boolean;
|
|
763
|
+
workTypeCode?: AuxCodeType;
|
|
764
|
+
names?: Array<string>;
|
|
765
|
+
sortOrder?: SortOrder;
|
|
766
|
+
searchQuery?: SearchQuery;
|
|
767
|
+
defaultCode?: boolean;
|
|
768
|
+
search?: string;
|
|
769
|
+
desktopProfileFilter?: boolean;
|
|
770
|
+
};
|
|
771
|
+
/**
|
|
772
|
+
* Basic entity information used throughout the system
|
|
773
|
+
* @public
|
|
774
|
+
*/
|
|
775
|
+
export type Entity = {
|
|
776
|
+
/** Whether this is a system entity */
|
|
777
|
+
isSystem: boolean;
|
|
778
|
+
/** Entity name */
|
|
779
|
+
name: string;
|
|
780
|
+
/** Unique entity identifier */
|
|
781
|
+
id: string;
|
|
782
|
+
/** Whether this is the default entity */
|
|
783
|
+
isDefault: boolean;
|
|
784
|
+
};
|
|
785
|
+
/**
|
|
786
|
+
* Dial plan entity definition containing number manipulation rules
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
export type DialPlanEntity = {
|
|
790
|
+
/** Unique identifier for the dial plan */
|
|
791
|
+
id: string;
|
|
792
|
+
/** Regular expression pattern for matching numbers */
|
|
793
|
+
regularExpression: string;
|
|
794
|
+
/** Prefix to add to matched numbers */
|
|
795
|
+
prefix: string;
|
|
796
|
+
/** Characters to strip from matched numbers */
|
|
797
|
+
strippedChars: string;
|
|
798
|
+
/** Name of the dial plan */
|
|
799
|
+
name: string;
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* Complete dial plan configuration for number handling
|
|
803
|
+
* @public
|
|
804
|
+
*/
|
|
805
|
+
export type DialPlan = {
|
|
806
|
+
/** Type of dial plan (e.g., 'adhocDial') */
|
|
807
|
+
type: string;
|
|
808
|
+
/** List of dial plan entities with transformation rules */
|
|
809
|
+
dialPlanEntity: {
|
|
810
|
+
/** Regular expression pattern */
|
|
811
|
+
regex: string;
|
|
812
|
+
/** Number prefix */
|
|
813
|
+
prefix: string;
|
|
814
|
+
/** Characters to strip */
|
|
815
|
+
strippedChars: string;
|
|
816
|
+
/** Entity name */
|
|
817
|
+
name: string;
|
|
818
|
+
}[];
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* Agent wrap-up codes configuration with pagination metadata
|
|
822
|
+
* @public
|
|
823
|
+
*/
|
|
824
|
+
export type agentWrapUpCodes = {
|
|
825
|
+
/** Array of wrap-up code entities */
|
|
826
|
+
data: Entity[];
|
|
827
|
+
/** Pagination and navigation metadata */
|
|
828
|
+
meta: {
|
|
829
|
+
/** Navigation URLs for pagination */
|
|
830
|
+
links: {
|
|
831
|
+
/** URL for first page */
|
|
832
|
+
first: string;
|
|
833
|
+
/** URL for last page */
|
|
834
|
+
last: string;
|
|
835
|
+
/** URL for next page */
|
|
836
|
+
next: string;
|
|
837
|
+
/** URL for current page */
|
|
838
|
+
self: string;
|
|
839
|
+
};
|
|
840
|
+
/** Organization identifier */
|
|
841
|
+
orgid: string;
|
|
842
|
+
/** Current page number */
|
|
843
|
+
page: number;
|
|
844
|
+
/** Number of items per page */
|
|
845
|
+
pageSize: number;
|
|
846
|
+
/** Total number of pages */
|
|
847
|
+
totalPages: number;
|
|
848
|
+
/** Total number of records */
|
|
849
|
+
totalRecords: number;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
/**
|
|
853
|
+
* Default wrap-up code configuration for an agent
|
|
854
|
+
* @public
|
|
855
|
+
*/
|
|
856
|
+
export type agentDefaultWrapupCode = {
|
|
857
|
+
/** Unique identifier for the wrap-up code */
|
|
858
|
+
id: string;
|
|
859
|
+
/** Display name of the wrap-up code */
|
|
860
|
+
name: string;
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Wrap-up reason configuration used to classify completed interactions
|
|
864
|
+
* @public
|
|
865
|
+
*/
|
|
866
|
+
export type WrapUpReason = {
|
|
867
|
+
/** Whether this is a system-defined reason */
|
|
868
|
+
isSystem: boolean;
|
|
869
|
+
/** Display name of the reason */
|
|
870
|
+
name: string;
|
|
871
|
+
/** Unique identifier */
|
|
872
|
+
id: string;
|
|
873
|
+
/** Whether this is the default reason */
|
|
874
|
+
isDefault: boolean;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Wrap-up configuration data containing settings and available options
|
|
878
|
+
* @public
|
|
879
|
+
*/
|
|
880
|
+
export type WrapupData = {
|
|
881
|
+
/** Wrap-up configuration properties */
|
|
882
|
+
wrapUpProps: {
|
|
883
|
+
/** Whether automatic wrap-up is enabled */
|
|
884
|
+
autoWrapup?: boolean;
|
|
885
|
+
/** Time in seconds before auto wrap-up triggers */
|
|
886
|
+
autoWrapupInterval?: number;
|
|
887
|
+
/** Whether last agent routing is enabled */
|
|
888
|
+
lastAgentRoute?: boolean;
|
|
889
|
+
/** List of available wrap-up reasons */
|
|
890
|
+
wrapUpReasonList: Array<WrapUpReason>;
|
|
891
|
+
/** List of available wrap-up codes */
|
|
892
|
+
wrapUpCodesList?: Array<string>;
|
|
893
|
+
/** Access control for idle codes ('ALL' or 'SPECIFIC') */
|
|
894
|
+
idleCodesAccess?: 'ALL' | 'SPECIFIC';
|
|
895
|
+
/** Associated interaction identifier */
|
|
896
|
+
interactionId?: string;
|
|
897
|
+
/** Whether cancelling auto wrap-up is allowed */
|
|
898
|
+
allowCancelAutoWrapup?: boolean;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
/**
|
|
902
|
+
* Available login options for voice channel access
|
|
903
|
+
* 'AGENT_DN' - Login using agent's DN
|
|
904
|
+
* 'EXTENSION' - Login using extension number
|
|
905
|
+
* 'BROWSER' - Login using browser-based WebRTC
|
|
906
|
+
* @public
|
|
907
|
+
*/
|
|
908
|
+
export type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';
|
|
909
|
+
/**
|
|
910
|
+
* Team configuration information
|
|
911
|
+
* @public
|
|
912
|
+
*/
|
|
913
|
+
export type Team = {
|
|
914
|
+
/** Unique team identifier */
|
|
915
|
+
teamId: string;
|
|
916
|
+
/** Team display name */
|
|
917
|
+
teamName: string;
|
|
918
|
+
/** Optional desktop layout configuration identifier */
|
|
919
|
+
desktopLayoutId?: string;
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* Basic queue configuration information
|
|
923
|
+
* @public
|
|
924
|
+
*/
|
|
925
|
+
export type Queue = {
|
|
926
|
+
/** Queue identifier */
|
|
927
|
+
queueId: string;
|
|
928
|
+
/** Queue display name */
|
|
929
|
+
queueName: string;
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* URL mappings for external system integrations
|
|
933
|
+
* @public
|
|
934
|
+
*/
|
|
935
|
+
export type URLMappings = {
|
|
936
|
+
/** Acqueon API endpoint URL */
|
|
937
|
+
acqueonApiUrl: string;
|
|
938
|
+
/** Acqueon console URL */
|
|
939
|
+
acqueonConsoleUrl: string;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* AI feature resource row returned by /v2/ai-feature API.
|
|
943
|
+
* @public
|
|
944
|
+
*/
|
|
945
|
+
export type AIFeatureFlags = {
|
|
946
|
+
id: string;
|
|
947
|
+
realtimeTranscripts?: {
|
|
948
|
+
enable?: boolean;
|
|
949
|
+
agentInclusionType?: string;
|
|
950
|
+
};
|
|
951
|
+
suggestedResponses?: {
|
|
952
|
+
enable?: boolean;
|
|
953
|
+
};
|
|
954
|
+
generatedSummaries?: {
|
|
955
|
+
callDropSummariesEnabled?: boolean;
|
|
956
|
+
virtualAgentTransferSummariesEnabled?: boolean;
|
|
957
|
+
consultTransferSummariesEnabled?: boolean;
|
|
958
|
+
wrapUpSummariesEnabled?: boolean;
|
|
959
|
+
queuesInclusionType?: string;
|
|
960
|
+
};
|
|
961
|
+
agentWellbeing?: {
|
|
962
|
+
enable?: boolean;
|
|
963
|
+
agentInclusionType?: string;
|
|
964
|
+
wellnessBreakReminders?: string;
|
|
965
|
+
};
|
|
966
|
+
autoCSAT?: {
|
|
967
|
+
enable?: boolean;
|
|
968
|
+
queuesInclusionType?: string;
|
|
969
|
+
surveyDataSource?: string;
|
|
970
|
+
};
|
|
971
|
+
links?: string[];
|
|
972
|
+
createdTime?: number;
|
|
973
|
+
lastUpdatedTime?: number;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* Response type for list AI feature resources API.
|
|
977
|
+
* @public
|
|
978
|
+
*/
|
|
979
|
+
export type AIFeatureFlagsResponse = {
|
|
980
|
+
meta?: {
|
|
981
|
+
orgid?: string;
|
|
982
|
+
page?: number;
|
|
983
|
+
pageSize?: number;
|
|
984
|
+
totalPages?: number;
|
|
985
|
+
totalRecords?: number;
|
|
986
|
+
links?: {
|
|
987
|
+
self?: string;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
data: AIFeatureFlags[];
|
|
991
|
+
};
|
|
992
|
+
/**
|
|
993
|
+
* Comprehensive agent profile configuration in the contact center system
|
|
994
|
+
* Contains all settings and capabilities for an agent
|
|
995
|
+
* @public
|
|
996
|
+
*/
|
|
997
|
+
export type Profile = {
|
|
998
|
+
/** Microsoft Teams integration configuration */
|
|
999
|
+
microsoftConfig?: {
|
|
1000
|
+
/** Whether to show user details in Teams */
|
|
1001
|
+
showUserDetailsMS?: boolean;
|
|
1002
|
+
/** Whether to sync agent state with Teams */
|
|
1003
|
+
stateSynchronizationMS?: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
/** Webex integration configuration */
|
|
1006
|
+
webexConfig?: {
|
|
1007
|
+
/** Whether to show user details in Webex */
|
|
1008
|
+
showUserDetailsWebex?: boolean;
|
|
1009
|
+
/** Whether to sync agent state with Webex */
|
|
1010
|
+
stateSynchronizationWebex?: boolean;
|
|
1011
|
+
};
|
|
1012
|
+
/** List of teams the agent belongs to */
|
|
1013
|
+
teams: Team[];
|
|
1014
|
+
/** Agent's default dial number */
|
|
1015
|
+
defaultDn: string;
|
|
1016
|
+
dn?: string;
|
|
1017
|
+
/** Whether default DN is enforced at tenant level */
|
|
1018
|
+
forceDefaultDn: boolean;
|
|
1019
|
+
/** Whether default DN is enforced for this agent */
|
|
1020
|
+
forceDefaultDnForAgent: boolean;
|
|
1021
|
+
/** Regex pattern for US phone number validation */
|
|
1022
|
+
regexUS: RegExp | string;
|
|
1023
|
+
/** Regex pattern for international phone number validation */
|
|
1024
|
+
regexOther: RegExp | string;
|
|
1025
|
+
/** Unique identifier for the agent */
|
|
1026
|
+
agentId: string;
|
|
1027
|
+
/** Display name for the agent */
|
|
1028
|
+
agentName: string;
|
|
1029
|
+
/** Email address for the agent */
|
|
1030
|
+
agentMailId: string;
|
|
1031
|
+
/** Agent's profile configuration ID */
|
|
1032
|
+
agentProfileID: string;
|
|
1033
|
+
/** Dial plan configuration for number handling */
|
|
1034
|
+
dialPlan: DialPlan;
|
|
1035
|
+
/** Multimedia profile defining channel capabilities */
|
|
1036
|
+
multimediaProfileId: string;
|
|
1037
|
+
/** Skill profile defining agent competencies */
|
|
1038
|
+
skillProfileId: string;
|
|
1039
|
+
/** Site where agent is located */
|
|
1040
|
+
siteId: string;
|
|
1041
|
+
/** Enterprise-wide identifier */
|
|
1042
|
+
enterpriseId: string;
|
|
1043
|
+
/** Whether privacy shield feature is visible */
|
|
1044
|
+
privacyShieldVisible: boolean;
|
|
1045
|
+
/** Available idle codes */
|
|
1046
|
+
idleCodes: Entity[];
|
|
1047
|
+
/** List of specific idle codes */
|
|
1048
|
+
idleCodesList?: Array<string>;
|
|
1049
|
+
/** Access control for idle codes */
|
|
1050
|
+
idleCodesAccess?: 'ALL' | 'SPECIFIC';
|
|
1051
|
+
/** Available wrap-up codes */
|
|
1052
|
+
wrapupCodes: Entity[];
|
|
1053
|
+
/** Agent-specific wrap-up codes */
|
|
1054
|
+
agentWrapUpCodes?: agentWrapUpCodes;
|
|
1055
|
+
/** Default wrap-up code for agent */
|
|
1056
|
+
agentDefaultWrapUpCode?: agentDefaultWrapupCode;
|
|
1057
|
+
/** Default wrap-up code identifier */
|
|
1058
|
+
defaultWrapupCode: string;
|
|
1059
|
+
/** Wrap-up configuration data */
|
|
1060
|
+
wrapUpData: WrapupData;
|
|
1061
|
+
/** Organization identifier */
|
|
1062
|
+
orgId?: string;
|
|
1063
|
+
/** Whether outbound is enabled at tenant level */
|
|
1064
|
+
isOutboundEnabledForTenant: boolean;
|
|
1065
|
+
/** Whether outbound is enabled for this agent */
|
|
1066
|
+
isOutboundEnabledForAgent: boolean;
|
|
1067
|
+
/** Whether ad-hoc dialing is enabled */
|
|
1068
|
+
isAdhocDialingEnabled: boolean;
|
|
1069
|
+
/** Whether agent becomes available after outdial */
|
|
1070
|
+
isAgentAvailableAfterOutdial: boolean;
|
|
1071
|
+
/** Whether campaign management is enabled */
|
|
1072
|
+
isCampaignManagementEnabled: boolean;
|
|
1073
|
+
/** Outbound entry point */
|
|
1074
|
+
outDialEp: string;
|
|
1075
|
+
/** Whether ending calls is enabled */
|
|
1076
|
+
isEndCallEnabled: boolean;
|
|
1077
|
+
/** Whether ending consultations is enabled */
|
|
1078
|
+
isEndConsultEnabled: boolean;
|
|
1079
|
+
/** Optional lifecycle manager URL */
|
|
1080
|
+
lcmUrl?: string;
|
|
1081
|
+
/** Database identifier for agent */
|
|
1082
|
+
agentDbId: string;
|
|
1083
|
+
/** Optional analyzer identifier for agent */
|
|
1084
|
+
agentAnalyzerId?: string;
|
|
1085
|
+
/** Whether consult to queue is allowed */
|
|
1086
|
+
allowConsultToQueue: boolean;
|
|
1087
|
+
/** Additional campaign manager information */
|
|
1088
|
+
campaignManagerAdditionalInfo?: string;
|
|
1089
|
+
/** Whether personal statistics are enabled */
|
|
1090
|
+
agentPersonalStatsEnabled: boolean;
|
|
1091
|
+
/** Optional address book identifier */
|
|
1092
|
+
addressBookId?: string;
|
|
1093
|
+
/** Optional outbound ANI identifier */
|
|
1094
|
+
outdialANIId?: string;
|
|
1095
|
+
/** Optional analyzer user identifier */
|
|
1096
|
+
analyserUserId?: string;
|
|
1097
|
+
/** Whether call monitoring is enabled */
|
|
1098
|
+
isCallMonitoringEnabled?: boolean;
|
|
1099
|
+
/** Whether mid-call monitoring is enabled */
|
|
1100
|
+
isMidCallMonitoringEnabled?: boolean;
|
|
1101
|
+
/** Whether barge-in functionality is enabled */
|
|
1102
|
+
isBargeInEnabled?: boolean;
|
|
1103
|
+
/** Whether managed teams feature is enabled */
|
|
1104
|
+
isManagedTeamsEnabled?: boolean;
|
|
1105
|
+
/** Whether managed queues feature is enabled */
|
|
1106
|
+
isManagedQueuesEnabled?: boolean;
|
|
1107
|
+
/** Whether sending messages is enabled */
|
|
1108
|
+
isSendMessageEnabled?: boolean;
|
|
1109
|
+
/** Whether agent state changes are enabled */
|
|
1110
|
+
isAgentStateChangeEnabled?: boolean;
|
|
1111
|
+
/** Whether signing out agents is enabled */
|
|
1112
|
+
isSignOutAgentsEnabled?: boolean;
|
|
1113
|
+
/** Integration URL mappings */
|
|
1114
|
+
urlMappings?: URLMappings;
|
|
1115
|
+
/** Whether desktop inactivity timeout is enabled */
|
|
1116
|
+
isTimeoutDesktopInactivityEnabled: boolean;
|
|
1117
|
+
/** Desktop inactivity timeout in minutes */
|
|
1118
|
+
timeoutDesktopInactivityMins?: number;
|
|
1119
|
+
/** Whether analyzer features are enabled */
|
|
1120
|
+
isAnalyzerEnabled?: boolean;
|
|
1121
|
+
/** Tenant timezone */
|
|
1122
|
+
tenantTimezone?: string;
|
|
1123
|
+
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
1124
|
+
environment?: string;
|
|
1125
|
+
/** Available voice login options */
|
|
1126
|
+
loginVoiceOptions?: LoginOption[];
|
|
1127
|
+
/** Current login device type */
|
|
1128
|
+
deviceType?: LoginOption;
|
|
1129
|
+
/** Current team identifier */
|
|
1130
|
+
currentTeamId?: string;
|
|
1131
|
+
/** Whether WebRTC is enabled */
|
|
1132
|
+
webRtcEnabled: boolean;
|
|
1133
|
+
/** Organization-wide idle codes */
|
|
1134
|
+
organizationIdleCodes?: Entity[];
|
|
1135
|
+
/** Whether recording management is enabled */
|
|
1136
|
+
isRecordingManagementEnabled?: boolean;
|
|
1137
|
+
/** Connection recovery timeout in milliseconds */
|
|
1138
|
+
lostConnectionRecoveryTimeout: number;
|
|
1139
|
+
/** Whether sensitive data masking is enabled */
|
|
1140
|
+
maskSensitiveData?: boolean;
|
|
1141
|
+
/** Whether agent is currently logged in */
|
|
1142
|
+
isAgentLoggedIn?: boolean;
|
|
1143
|
+
/** Last auxiliary code ID used for state change */
|
|
1144
|
+
lastStateAuxCodeId?: string;
|
|
1145
|
+
/** Timestamp of last state change */
|
|
1146
|
+
lastStateChangeTimestamp?: number;
|
|
1147
|
+
/** Timestamp of last idle code change */
|
|
1148
|
+
lastIdleCodeChangeTimestamp?: number;
|
|
1149
|
+
/** AI feature flags resolved from organization config */
|
|
1150
|
+
aiFeature?: AIFeatureFlags;
|
|
1151
|
+
};
|
|
1152
|
+
/**
|
|
1153
|
+
* Contact distribution group configuration for routing logic
|
|
1154
|
+
* @public
|
|
1155
|
+
*/
|
|
1156
|
+
export type CallDistributionGroup = {
|
|
1157
|
+
/** List of agent groups in this distribution group */
|
|
1158
|
+
agentGroups: {
|
|
1159
|
+
/** Team identifier */
|
|
1160
|
+
teamId: string;
|
|
1161
|
+
}[];
|
|
1162
|
+
/** Distribution order priority */
|
|
1163
|
+
order: number;
|
|
1164
|
+
/** Distribution time duration in seconds */
|
|
1165
|
+
duration: number;
|
|
1166
|
+
};
|
|
1167
|
+
/**
|
|
1168
|
+
* Represents a single outdial ANI (Automatic Number Identification) entry
|
|
1169
|
+
* @public
|
|
1170
|
+
*/
|
|
1171
|
+
export type OutdialAniEntry = {
|
|
1172
|
+
/** Unique identifier for the ANI entry */
|
|
1173
|
+
id: string;
|
|
1174
|
+
/** Display name for the ANI entry */
|
|
1175
|
+
name: string;
|
|
1176
|
+
/** Phone number associated with this ANI entry */
|
|
1177
|
+
number: string;
|
|
1178
|
+
/** Related links for this ANI entry */
|
|
1179
|
+
links: string[];
|
|
1180
|
+
/** Timestamp when this entry was created (Unix timestamp in milliseconds) */
|
|
1181
|
+
createdTime: number;
|
|
1182
|
+
/** Timestamp when this entry was last updated (Unix timestamp in milliseconds) */
|
|
1183
|
+
lastUpdatedTime: number;
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
* Response structure for outdial ANI entries API call
|
|
1187
|
+
* @public
|
|
1188
|
+
*/
|
|
1189
|
+
export type OutdialAniEntriesResponse = OutdialAniEntry[];
|
|
1190
|
+
/**
|
|
1191
|
+
* Parameters for fetching outdial ANI entries
|
|
1192
|
+
* @public
|
|
1193
|
+
*/
|
|
1194
|
+
export type OutdialAniParams = {
|
|
1195
|
+
/** Outdial ANI ID from agent profile */
|
|
1196
|
+
outdialANI: string;
|
|
1197
|
+
/** Page number for pagination (optional) */
|
|
1198
|
+
page?: number;
|
|
1199
|
+
/** Number of entries per page (optional) */
|
|
1200
|
+
pageSize?: number;
|
|
1201
|
+
/** Search string to filter entries (optional) */
|
|
1202
|
+
search?: string;
|
|
1203
|
+
/** Filter expression for advanced filtering (optional) */
|
|
1204
|
+
filter?: string;
|
|
1205
|
+
/** Comma-separated list of attributes to include in response (optional) */
|
|
1206
|
+
attributes?: string;
|
|
1207
|
+
};
|