@webex/contact-center 3.12.0-webex-services-ready.4 → 3.13.0
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/.sdd/manifest.json +24 -13
- package/ai-docs/ARCHITECTURE.md +1 -1
- package/ai-docs/CONTRACTS.md +19 -3
- package/ai-docs/SECURITY.md +1 -1
- package/ai-docs/SERVICE_STATE.md +4 -0
- package/ai-docs/contact-center-spec.md +50 -6
- package/ai-docs/features/consult-transfer-list-policy/spec/feature-spec.md +362 -0
- package/ai-docs/features/contact-owner-change-refactor.md +78 -0
- package/dist/cc.js +757 -22
- package/dist/cc.js.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.js +23 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.js +34 -12
- package/dist/index.js.map +1 -1
- package/dist/metrics/MetricsManager.js +16 -0
- package/dist/metrics/MetricsManager.js.map +1 -1
- package/dist/metrics/behavioral-events.js +110 -0
- package/dist/metrics/behavioral-events.js.map +1 -1
- package/dist/metrics/constants.js +33 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/services/AddressBook.js +18 -15
- package/dist/services/AddressBook.js.map +1 -1
- package/dist/services/AnswerCallOnWebexService.js +202 -0
- package/dist/services/AnswerCallOnWebexService.js.map +1 -0
- package/dist/services/ApiAiAssistant.js +221 -11
- package/dist/services/ApiAiAssistant.js.map +1 -1
- package/dist/services/EntryPoint.js +46 -68
- package/dist/services/EntryPoint.js.map +1 -1
- package/dist/services/Queue.js +27 -22
- package/dist/services/Queue.js.map +1 -1
- package/dist/services/WebCallingService.js +10 -2
- package/dist/services/WebCallingService.js.map +1 -1
- package/dist/services/WebexCrossClientService.js +225 -0
- package/dist/services/WebexCrossClientService.js.map +1 -0
- package/dist/services/WxAppTelephonyMercurySync.js +111 -0
- package/dist/services/WxAppTelephonyMercurySync.js.map +1 -0
- package/dist/services/config/Util.js +46 -46
- package/dist/services/config/Util.js.map +1 -1
- package/dist/services/config/constants.js +34 -77
- package/dist/services/config/constants.js.map +1 -1
- package/dist/services/config/index.js +100 -226
- package/dist/services/config/index.js.map +1 -1
- package/dist/services/config/types.js +51 -18
- package/dist/services/config/types.js.map +1 -1
- package/dist/services/constants.js +11 -1
- package/dist/services/constants.js.map +1 -1
- package/dist/services/core/Err.js.map +1 -1
- package/dist/services/core/Utils.js +25 -1
- package/dist/services/core/Utils.js.map +1 -1
- package/dist/services/core/WebexRequest.js +6 -2
- package/dist/services/core/WebexRequest.js.map +1 -1
- package/dist/services/core/aqm-reqs.js +17 -11
- package/dist/services/core/aqm-reqs.js.map +1 -1
- package/dist/services/core/constants.js +9 -1
- package/dist/services/core/constants.js.map +1 -1
- package/dist/services/core/types.js.map +1 -1
- package/dist/services/core/websocket/WebSocketManager.js +17 -1
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
- package/dist/services/task/Task.js +275 -8
- package/dist/services/task/Task.js.map +1 -1
- package/dist/services/task/TaskFactory.js +11 -6
- package/dist/services/task/TaskFactory.js.map +1 -1
- package/dist/services/task/TaskManager.js +590 -42
- package/dist/services/task/TaskManager.js.map +1 -1
- package/dist/services/task/TaskUtils.js +11 -1
- package/dist/services/task/TaskUtils.js.map +1 -1
- package/dist/services/task/WebexCallingUtils.js +70 -0
- package/dist/services/task/WebexCallingUtils.js.map +1 -0
- package/dist/services/task/constants.js +14 -2
- package/dist/services/task/constants.js.map +1 -1
- package/dist/services/task/contact.js +29 -0
- package/dist/services/task/contact.js.map +1 -1
- package/dist/services/task/digital/Digital.js +4 -3
- package/dist/services/task/digital/Digital.js.map +1 -1
- package/dist/services/task/state-machine/TaskStateMachine.js +162 -53
- package/dist/services/task/state-machine/TaskStateMachine.js.map +1 -1
- package/dist/services/task/state-machine/actions.js +6 -1
- package/dist/services/task/state-machine/actions.js.map +1 -1
- package/dist/services/task/state-machine/guards.js +7 -10
- package/dist/services/task/state-machine/guards.js.map +1 -1
- package/dist/services/task/state-machine/types.js.map +1 -1
- package/dist/services/task/state-machine/uiControlsComputer.js +118 -18
- package/dist/services/task/state-machine/uiControlsComputer.js.map +1 -1
- package/dist/services/task/types.js +47 -1
- package/dist/services/task/types.js.map +1 -1
- package/dist/services/task/voice/Voice.js +477 -17
- package/dist/services/task/voice/Voice.js.map +1 -1
- package/dist/services/task/voice/WebRTC.js +6 -3
- package/dist/services/task/voice/WebRTC.js.map +1 -1
- package/dist/services/task/voice/wxAppOfferObservability.js +145 -0
- package/dist/services/task/voice/wxAppOfferObservability.js.map +1 -0
- package/dist/services/task/voice/wxAppVoiceMethods.js +395 -0
- package/dist/services/task/voice/wxAppVoiceMethods.js.map +1 -0
- package/dist/services/wxAppDiagnosticLogging.js +159 -0
- package/dist/services/wxAppDiagnosticLogging.js.map +1 -0
- package/dist/services/wxAppTelephonyUtils.js +19 -0
- package/dist/services/wxAppTelephonyUtils.js.map +1 -0
- package/dist/types/cc.d.ts +102 -8
- package/dist/types/config.d.ts +7 -0
- package/dist/types/constants.d.ts +21 -0
- package/dist/types/index.d.ts +34 -15
- package/dist/types/metrics/MetricsManager.d.ts +6 -0
- package/dist/types/metrics/constants.d.ts +31 -0
- package/dist/types/services/AddressBook.d.ts +2 -1
- package/dist/types/services/AnswerCallOnWebexService.d.ts +38 -0
- package/dist/types/services/ApiAiAssistant.d.ts +48 -4
- package/dist/types/services/EntryPoint.d.ts +7 -5
- package/dist/types/services/Queue.d.ts +5 -3
- package/dist/types/services/WebexCrossClientService.d.ts +32 -0
- package/dist/types/services/WxAppTelephonyMercurySync.d.ts +28 -0
- package/dist/types/services/config/Util.d.ts +4 -8
- package/dist/types/services/config/constants.d.ts +28 -76
- package/dist/types/services/config/index.d.ts +16 -64
- package/dist/types/services/config/types.d.ts +146 -173
- package/dist/types/services/constants.d.ts +9 -0
- package/dist/types/services/core/Err.d.ts +2 -0
- package/dist/types/services/core/Utils.d.ts +10 -0
- package/dist/types/services/core/WebexRequest.d.ts +1 -0
- package/dist/types/services/core/constants.d.ts +7 -0
- package/dist/types/services/core/types.d.ts +2 -0
- package/dist/types/services/task/Task.d.ts +34 -5
- package/dist/types/services/task/TaskFactory.d.ts +4 -2
- package/dist/types/services/task/TaskUtils.d.ts +6 -0
- package/dist/types/services/task/WebexCallingUtils.d.ts +11 -0
- package/dist/types/services/task/constants.d.ts +12 -0
- package/dist/types/services/task/contact.d.ts +4 -0
- package/dist/types/services/task/digital/Digital.d.ts +4 -3
- package/dist/types/services/task/state-machine/TaskStateMachine.d.ts +304 -56
- package/dist/types/services/task/state-machine/guards.d.ts +6 -5
- package/dist/types/services/task/state-machine/types.d.ts +9 -1
- package/dist/types/services/task/types.d.ts +192 -5
- package/dist/types/services/task/voice/Voice.d.ts +68 -11
- package/dist/types/services/task/voice/WebRTC.d.ts +5 -4
- package/dist/types/services/task/voice/wxAppOfferObservability.d.ts +39 -0
- package/dist/types/services/task/voice/wxAppVoiceMethods.d.ts +68 -0
- package/dist/types/services/wxAppDiagnosticLogging.d.ts +63 -0
- package/dist/types/services/wxAppTelephonyUtils.d.ts +5 -0
- package/dist/types/types.d.ts +80 -13
- package/dist/types/utils/PageCache.d.ts +20 -3
- package/dist/types.js +54 -8
- package/dist/types.js.map +1 -1
- package/dist/utils/PageCache.js +19 -5
- package/dist/utils/PageCache.js.map +1 -1
- package/dist/webex.js +9 -1
- package/dist/webex.js.map +1 -1
- package/package.json +10 -9
- package/src/cc.ts +969 -38
- package/src/config.ts +7 -0
- package/src/constants.ts +24 -0
- package/src/index.ts +39 -10
- package/src/metrics/MetricsManager.ts +16 -0
- package/src/metrics/ai-docs/metrics-spec.md +138 -21
- package/src/metrics/behavioral-events.ts +112 -0
- package/src/metrics/constants.ts +36 -0
- package/src/services/AddressBook.ts +17 -6
- package/src/services/AnswerCallOnWebexService.ts +239 -0
- package/src/services/ApiAiAssistant.ts +297 -13
- package/src/services/EntryPoint.ts +59 -60
- package/src/services/Queue.ts +29 -12
- package/src/services/WebCallingService.ts +16 -2
- package/src/services/WebexCrossClientService.ts +298 -0
- package/src/services/WxAppTelephonyMercurySync.ts +142 -0
- package/src/services/agent/ai-docs/AGENTS.md +1 -1
- package/src/services/agent/ai-docs/agent-spec.md +1 -0
- package/src/services/ai-docs/AGENTS.md +10 -10
- package/src/services/ai-docs/services-spec.md +25 -5
- package/src/services/config/Util.ts +52 -82
- package/src/services/config/ai-docs/AGENTS.md +35 -40
- package/src/services/config/ai-docs/ARCHITECTURE.md +90 -103
- package/src/services/config/ai-docs/config-spec.md +132 -132
- package/src/services/config/constants.ts +39 -85
- package/src/services/config/index.ts +116 -277
- package/src/services/config/types.ts +140 -195
- package/src/services/constants.ts +10 -0
- package/src/services/core/Err.ts +1 -0
- package/src/services/core/Utils.ts +28 -0
- package/src/services/core/WebexRequest.ts +3 -1
- package/src/services/core/ai-docs/core-spec.md +25 -11
- package/src/services/core/aqm-reqs.ts +18 -12
- package/src/services/core/constants.ts +8 -0
- package/src/services/core/types.ts +33 -1
- package/src/services/core/websocket/WebSocketManager.ts +26 -2
- package/src/services/task/Task.ts +386 -12
- package/src/services/task/TaskFactory.ts +33 -6
- package/src/services/task/TaskManager.ts +857 -41
- package/src/services/task/TaskUtils.ts +13 -0
- package/src/services/task/WebexCallingUtils.ts +136 -0
- package/src/services/task/ai-docs/ARCHITECTURE.md +1 -0
- package/src/services/task/ai-docs/task-spec.md +190 -8
- package/src/services/task/constants.ts +13 -0
- package/src/services/task/contact.ts +30 -0
- package/src/services/task/digital/Digital.ts +11 -4
- package/src/services/task/state-machine/TaskStateMachine.ts +235 -81
- package/src/services/task/state-machine/actions.ts +5 -2
- package/src/services/task/state-machine/ai-docs/AGENTS.md +6 -4
- package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +35 -16
- package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +103 -33
- package/src/services/task/state-machine/guards.ts +7 -10
- package/src/services/task/state-machine/types.ts +16 -1
- package/src/services/task/state-machine/uiControlsComputer.ts +206 -32
- package/src/services/task/types.ts +269 -4
- package/src/services/task/voice/Voice.ts +625 -17
- package/src/services/task/voice/WebRTC.ts +11 -4
- package/src/services/task/voice/wxAppOfferObservability.ts +204 -0
- package/src/services/task/voice/wxAppVoiceMethods.ts +575 -0
- package/src/services/wxAppDiagnosticLogging.ts +286 -0
- package/src/services/wxAppTelephonyUtils.ts +14 -0
- package/src/types.ts +108 -13
- package/src/utils/AGENTS.md +21 -10
- package/src/utils/PageCache.ts +38 -5
- package/src/utils/ai-docs/utils-spec.md +21 -11
- package/src/webex.js +8 -0
- package/test/unit/fixtures/aiSummaryTestUtils.ts +40 -0
- package/test/unit/spec/cc.ts +3408 -152
- package/test/unit/spec/index.ts +885 -0
- package/test/unit/spec/metrics/MetricsManager.ts +25 -0
- package/test/unit/spec/metrics/behavioral-events.ts +60 -0
- package/test/unit/spec/services/AddressBook.ts +37 -6
- package/test/unit/spec/services/AnswerCallOnWebexService.ts +264 -0
- package/test/unit/spec/services/ApiAiAssistant.ts +269 -8
- package/test/unit/spec/services/EntryPoint.ts +87 -40
- package/test/unit/spec/services/Queue.ts +123 -12
- package/test/unit/spec/services/WebCallingService.ts +38 -0
- package/test/unit/spec/services/WebexCrossClientService.ts +509 -0
- package/test/unit/spec/services/WxAppTelephonyMercurySync.ts +136 -0
- package/test/unit/spec/services/config/Util.ts +501 -0
- package/test/unit/spec/services/config/index.ts +313 -543
- package/test/unit/spec/services/core/Utils.ts +22 -0
- package/test/unit/spec/services/core/WebexRequest.ts +8 -7
- package/test/unit/spec/services/core/aqm-reqs.ts +142 -1
- package/test/unit/spec/services/core/websocket/WebSocketManager.ts +64 -14
- package/test/unit/spec/services/task/Task.ts +2257 -11
- package/test/unit/spec/services/task/TaskFactory.ts +56 -2
- package/test/unit/spec/services/task/TaskManager.ts +5559 -1493
- package/test/unit/spec/services/task/TaskUtils.ts +72 -0
- package/test/unit/spec/services/task/WebexCallingUtils.ts +153 -0
- package/test/unit/spec/services/task/contact.ts +33 -0
- package/test/unit/spec/services/task/state-machine/TaskStateMachine.ts +1501 -92
- package/test/unit/spec/services/task/state-machine/guards.ts +210 -8
- package/test/unit/spec/services/task/state-machine/uiControlsComputer.ts +445 -7
- package/test/unit/spec/services/task/voice/Voice.ts +1710 -4
- package/test/unit/spec/services/task/voice/wxAppOfferObservability.ts +361 -0
- package/test/unit/spec/services/task/voice/wxAppVoiceMethods.ts +719 -0
- package/test/unit/spec/services/wxAppDiagnosticLogging.ts +179 -0
- package/test/unit/spec/wellnessSampleUtils.ts +288 -0
- package/typedoc.md +1 -1
- package/umd/contact-center.min.js +2 -2
- package/umd/contact-center.min.js.map +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as Agent from '../agent/types';
|
|
2
|
+
import { COLLABORATION_ACCESS } from './constants';
|
|
3
|
+
/** Desktop Profile access level for a collaboration destination category. */
|
|
4
|
+
export type CollaborationAccess = Enum<typeof COLLABORATION_ACCESS>;
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
6
|
+
* Contact Center backend and realtime event types.
|
|
7
|
+
*
|
|
8
|
+
* Includes task lifecycle, transcript, suggested-response, and AI summary events.
|
|
4
9
|
* @enum {string}
|
|
5
10
|
* @private
|
|
6
11
|
* @ignore
|
|
@@ -50,6 +55,8 @@ export declare const CC_TASK_EVENTS: {
|
|
|
50
55
|
readonly PARTICIPANT_LEFT_CONFERENCE: "ParticipantLeftConference";
|
|
51
56
|
/** Event emitted when participant leaving conference fails */
|
|
52
57
|
readonly PARTICIPANT_LEFT_CONFERENCE_FAILED: "ParticipantLeftConferenceFailed";
|
|
58
|
+
/** Event emitted when dropping another conference participant fails */
|
|
59
|
+
readonly PARTICIPANT_DROP_CONFERENCE_FAILED: "ParticipantDropConferenceFailed";
|
|
53
60
|
/** Event emitted when consultation conference end fails */
|
|
54
61
|
readonly AGENT_CONSULT_CONFERENCE_END_FAILED: "AgentConsultConferenceEndFailed";
|
|
55
62
|
/** Event emitted when conference is successfully transferred */
|
|
@@ -128,16 +135,19 @@ export declare const CC_TASK_EVENTS: {
|
|
|
128
135
|
readonly SUGGESTED_RESPONSE: "SUGGESTED_RESPONSE";
|
|
129
136
|
/** Event emitted when backend acknowledges it is listening for more context */
|
|
130
137
|
readonly SUGGESTED_RESPONSE_ACKNOWLEDGE: "SUGGESTED_RESPONSE_ACKNOWLEDGE";
|
|
131
|
-
/** Event
|
|
132
|
-
readonly MID_CALL_SUMMARY: "MID_CALL_SUMMARY";
|
|
133
|
-
/** Event emitted when a post-call summary is available */
|
|
138
|
+
/** Event received when a post-call summary is available through realtime delivery */
|
|
134
139
|
readonly POST_CALL_SUMMARY: "POST_CALL_SUMMARY";
|
|
140
|
+
/** Event received when a mid-call summary is available through realtime delivery */
|
|
141
|
+
readonly MID_CALL_SUMMARY: "MID_CALL_SUMMARY";
|
|
142
|
+
/** Event received when AI-summary feature enablement is available through realtime delivery */
|
|
143
|
+
readonly FEATURE_ENABLEMENT: "FEATURE_ENABLEMENT";
|
|
144
|
+
/** Event received when a subsequent agent receives a mid-call summary */
|
|
145
|
+
readonly MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT: "MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT";
|
|
135
146
|
};
|
|
136
147
|
/**
|
|
137
148
|
* Events emitted on Contact Center agent operations
|
|
138
149
|
* @enum {string}
|
|
139
|
-
* @
|
|
140
|
-
* @ignore
|
|
150
|
+
* @public
|
|
141
151
|
*/
|
|
142
152
|
export declare const CC_AGENT_EVENTS: {
|
|
143
153
|
/** Welcome event when agent connects to websocket/backend */
|
|
@@ -176,6 +186,8 @@ export declare const CC_AGENT_EVENTS: {
|
|
|
176
186
|
readonly AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: "BuddyAgentsRetrieveFailed";
|
|
177
187
|
/** Event emitted when contact is reserved for agent */
|
|
178
188
|
readonly AGENT_CONTACT_RESERVED: "AgentContactReserved";
|
|
189
|
+
/** Agent-level Agent Wellness Break notification */
|
|
190
|
+
readonly WELLNESS_BREAK: "WellnessBreak";
|
|
179
191
|
};
|
|
180
192
|
/**
|
|
181
193
|
* Combined Contact Center events including both agent and task events
|
|
@@ -227,6 +239,8 @@ export declare const CC_EVENTS: {
|
|
|
227
239
|
readonly PARTICIPANT_LEFT_CONFERENCE: "ParticipantLeftConference";
|
|
228
240
|
/** Event emitted when participant leaving conference fails */
|
|
229
241
|
readonly PARTICIPANT_LEFT_CONFERENCE_FAILED: "ParticipantLeftConferenceFailed";
|
|
242
|
+
/** Event emitted when dropping another conference participant fails */
|
|
243
|
+
readonly PARTICIPANT_DROP_CONFERENCE_FAILED: "ParticipantDropConferenceFailed";
|
|
230
244
|
/** Event emitted when consultation conference end fails */
|
|
231
245
|
readonly AGENT_CONSULT_CONFERENCE_END_FAILED: "AgentConsultConferenceEndFailed";
|
|
232
246
|
/** Event emitted when conference is successfully transferred */
|
|
@@ -305,10 +319,14 @@ export declare const CC_EVENTS: {
|
|
|
305
319
|
readonly SUGGESTED_RESPONSE: "SUGGESTED_RESPONSE";
|
|
306
320
|
/** Event emitted when backend acknowledges it is listening for more context */
|
|
307
321
|
readonly SUGGESTED_RESPONSE_ACKNOWLEDGE: "SUGGESTED_RESPONSE_ACKNOWLEDGE";
|
|
308
|
-
/** Event
|
|
309
|
-
readonly MID_CALL_SUMMARY: "MID_CALL_SUMMARY";
|
|
310
|
-
/** Event emitted when a post-call summary is available */
|
|
322
|
+
/** Event received when a post-call summary is available through realtime delivery */
|
|
311
323
|
readonly POST_CALL_SUMMARY: "POST_CALL_SUMMARY";
|
|
324
|
+
/** Event received when a mid-call summary is available through realtime delivery */
|
|
325
|
+
readonly MID_CALL_SUMMARY: "MID_CALL_SUMMARY";
|
|
326
|
+
/** Event received when AI-summary feature enablement is available through realtime delivery */
|
|
327
|
+
readonly FEATURE_ENABLEMENT: "FEATURE_ENABLEMENT";
|
|
328
|
+
/** Event received when a subsequent agent receives a mid-call summary */
|
|
329
|
+
readonly MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT: "MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT";
|
|
312
330
|
/** Welcome event when agent connects to websocket/backend */
|
|
313
331
|
readonly WELCOME: "Welcome";
|
|
314
332
|
/** Event emitted when agent re-login is successful */
|
|
@@ -345,6 +363,8 @@ export declare const CC_EVENTS: {
|
|
|
345
363
|
readonly AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: "BuddyAgentsRetrieveFailed";
|
|
346
364
|
/** Event emitted when contact is reserved for agent */
|
|
347
365
|
readonly AGENT_CONTACT_RESERVED: "AgentContactReserved";
|
|
366
|
+
/** Agent-level Agent Wellness Break notification */
|
|
367
|
+
readonly WELLNESS_BREAK: "WellnessBreak";
|
|
348
368
|
};
|
|
349
369
|
/**
|
|
350
370
|
* Event data received when agent connects to the system
|
|
@@ -383,7 +403,7 @@ export type WebSocketEvent = {
|
|
|
383
403
|
data: WelcomeEvent | Agent.StationLoginSuccess | Agent.LogoutSuccess | Agent.ReloginSuccess | Agent.StateChangeSuccess | Agent.BuddyAgentsSuccess;
|
|
384
404
|
};
|
|
385
405
|
/**
|
|
386
|
-
*
|
|
406
|
+
* Agent identity carried by the `user` section of the user desktop-login aggregate.
|
|
387
407
|
*/
|
|
388
408
|
export type AgentResponse = {
|
|
389
409
|
/**
|
|
@@ -410,14 +430,6 @@ export type AgentResponse = {
|
|
|
410
430
|
* The email address of the agent.
|
|
411
431
|
*/
|
|
412
432
|
email: string;
|
|
413
|
-
/**
|
|
414
|
-
* Team IDs assigned to the agent.
|
|
415
|
-
*/
|
|
416
|
-
teamIds: string[];
|
|
417
|
-
/**
|
|
418
|
-
* Multimedia profile ID associated with the agent.
|
|
419
|
-
*/
|
|
420
|
-
multimediaProfileId: string;
|
|
421
433
|
/**
|
|
422
434
|
* Skill profile ID of the agent.
|
|
423
435
|
*/
|
|
@@ -427,9 +439,10 @@ export type AgentResponse = {
|
|
|
427
439
|
*/
|
|
428
440
|
siteId: string;
|
|
429
441
|
/**
|
|
430
|
-
* Database ID of the agent
|
|
442
|
+
* Database ID of the agent, distinct from `ciUserId`. Passed as `userDbId` to the team lookup,
|
|
443
|
+
* which sends it as the backend's `filter=userId==` value.
|
|
431
444
|
*/
|
|
432
|
-
dbId
|
|
445
|
+
dbId: string;
|
|
433
446
|
/**
|
|
434
447
|
* The default dialed number of the agent.
|
|
435
448
|
* Note: The API returns this field as "deafultDialledNumber" (with typo).
|
|
@@ -437,31 +450,12 @@ export type AgentResponse = {
|
|
|
437
450
|
deafultDialledNumber?: string;
|
|
438
451
|
};
|
|
439
452
|
/**
|
|
440
|
-
*
|
|
453
|
+
* Desktop Profile settings carried by the `agentProfile` section of the user desktop-login
|
|
454
|
+
* aggregate.
|
|
441
455
|
*/
|
|
442
|
-
export type
|
|
443
|
-
/**
|
|
444
|
-
* Unique identifier of the agent profile configuration.
|
|
445
|
-
*/
|
|
446
|
-
id: string;
|
|
447
|
-
/**
|
|
448
|
-
* Display name for the agent profile.
|
|
449
|
-
*/
|
|
450
|
-
name: string;
|
|
451
|
-
/**
|
|
452
|
-
* Description of the agent profile.
|
|
453
|
-
*/
|
|
454
|
-
description: string;
|
|
455
|
-
/**
|
|
456
|
-
* Parent entity type for the profile (for example ORGANIZATION).
|
|
457
|
-
*/
|
|
458
|
-
parentType: string;
|
|
459
|
-
/**
|
|
460
|
-
* Indicates whether screen pop is enabled.
|
|
461
|
-
*/
|
|
462
|
-
screenPopup: boolean;
|
|
456
|
+
export type AgentProfile = {
|
|
463
457
|
/**
|
|
464
|
-
* Represents the voice options of an agent.
|
|
458
|
+
* Represents the voice options of an agent. The order is nondeterministic; treat as a set.
|
|
465
459
|
*/
|
|
466
460
|
loginVoiceOptions: LoginOption[];
|
|
467
461
|
/**
|
|
@@ -472,14 +466,6 @@ export type DesktopProfileResponse = {
|
|
|
472
466
|
* 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.
|
|
473
467
|
*/
|
|
474
468
|
accessIdleCode: string;
|
|
475
|
-
/**
|
|
476
|
-
* Wrap-up codes list that the agents can select when they wrap up a contact.
|
|
477
|
-
*/
|
|
478
|
-
wrapUpCodes: string[];
|
|
479
|
-
/**
|
|
480
|
-
* Idle codes list that the agents can select in Agent Desktop.
|
|
481
|
-
*/
|
|
482
|
-
idleCodes: string[];
|
|
483
469
|
/**
|
|
484
470
|
* Dial plan enabled for the agent.
|
|
485
471
|
*/
|
|
@@ -495,11 +481,7 @@ export type DesktopProfileResponse = {
|
|
|
495
481
|
/**
|
|
496
482
|
* Whether the agent personal greeting is enabled.
|
|
497
483
|
*/
|
|
498
|
-
agentPersonalGreeting
|
|
499
|
-
/**
|
|
500
|
-
* Auto answer allowed.
|
|
501
|
-
*/
|
|
502
|
-
autoAnswer: boolean;
|
|
484
|
+
agentPersonalGreeting?: boolean;
|
|
503
485
|
/**
|
|
504
486
|
* Auto wrap-up after seconds.
|
|
505
487
|
*/
|
|
@@ -513,29 +495,17 @@ export type DesktopProfileResponse = {
|
|
|
513
495
|
*/
|
|
514
496
|
allowAutoWrapUpExtension: boolean;
|
|
515
497
|
/**
|
|
516
|
-
* Access control for queues assigned to the agent (ALL or
|
|
498
|
+
* Access control for queues assigned to the agent (ALL, SPECIFIC, or NONE).
|
|
517
499
|
*/
|
|
518
|
-
accessQueue:
|
|
519
|
-
/**
|
|
520
|
-
* Queue identifiers available to the agent when access is SPECIFIC.
|
|
521
|
-
*/
|
|
522
|
-
queues: string[];
|
|
500
|
+
accessQueue: CollaborationAccess;
|
|
523
501
|
/**
|
|
524
502
|
* Access control for entry points assigned to the agent.
|
|
525
503
|
*/
|
|
526
|
-
accessEntryPoint:
|
|
527
|
-
/**
|
|
528
|
-
* Entry point identifiers available to the agent when access is SPECIFIC.
|
|
529
|
-
*/
|
|
530
|
-
entryPoints: string[];
|
|
504
|
+
accessEntryPoint: CollaborationAccess;
|
|
531
505
|
/**
|
|
532
506
|
* Access control for buddy teams assigned to the agent.
|
|
533
507
|
*/
|
|
534
|
-
accessBuddyTeam:
|
|
535
|
-
/**
|
|
536
|
-
* Buddy team identifiers available to the agent when access is SPECIFIC.
|
|
537
|
-
*/
|
|
538
|
-
buddyTeams: string[];
|
|
508
|
+
accessBuddyTeam: CollaborationAccess;
|
|
539
509
|
/**
|
|
540
510
|
* Outdial enabled for the agent.
|
|
541
511
|
*/
|
|
@@ -548,6 +518,10 @@ export type DesktopProfileResponse = {
|
|
|
548
518
|
* Outdial ANI ID of the agent.
|
|
549
519
|
*/
|
|
550
520
|
outdialANIId: string;
|
|
521
|
+
/**
|
|
522
|
+
* Whether the agent can schedule and manage callbacks.
|
|
523
|
+
*/
|
|
524
|
+
scheduleAndManageCallBack?: boolean;
|
|
551
525
|
/**
|
|
552
526
|
* Consult to queue allowed.
|
|
553
527
|
*/
|
|
@@ -555,31 +529,18 @@ export type DesktopProfileResponse = {
|
|
|
555
529
|
/**
|
|
556
530
|
* Address book ID of the agent.
|
|
557
531
|
*/
|
|
558
|
-
addressBookId
|
|
532
|
+
addressBookId?: string;
|
|
559
533
|
/**
|
|
560
534
|
* Viewable statistics of the agent.
|
|
561
535
|
*/
|
|
562
536
|
viewableStatistics: {
|
|
563
|
-
id: string;
|
|
564
537
|
agentStats: boolean;
|
|
565
|
-
|
|
566
|
-
contactServiceQueues: string[];
|
|
567
|
-
loggedInTeamStats: boolean;
|
|
568
|
-
accessTeamStats: string;
|
|
569
|
-
teams: string[];
|
|
538
|
+
aiAgentPerformance?: boolean;
|
|
570
539
|
};
|
|
571
540
|
/**
|
|
572
541
|
* Agent DN validation of the agent.
|
|
573
542
|
*/
|
|
574
543
|
agentDNValidation: string;
|
|
575
|
-
/**
|
|
576
|
-
* Additional DN validation criteria configured for the agent.
|
|
577
|
-
*/
|
|
578
|
-
agentDNValidationCriterions: string[];
|
|
579
|
-
/**
|
|
580
|
-
* Dial plans of the agent.
|
|
581
|
-
*/
|
|
582
|
-
dialPlans: string[];
|
|
583
544
|
/**
|
|
584
545
|
* Timeout desktop inactivity custom enabled.
|
|
585
546
|
*/
|
|
@@ -587,43 +548,7 @@ export type DesktopProfileResponse = {
|
|
|
587
548
|
/**
|
|
588
549
|
* Timeout desktop inactivity minutes.
|
|
589
550
|
*/
|
|
590
|
-
timeoutDesktopInactivityMins
|
|
591
|
-
/**
|
|
592
|
-
* Show user details in Microsoft enabled or not.
|
|
593
|
-
*/
|
|
594
|
-
showUserDetailsMS: boolean;
|
|
595
|
-
/**
|
|
596
|
-
* State synchronization in Microsoft enabled or not.
|
|
597
|
-
*/
|
|
598
|
-
stateSynchronizationMS: boolean;
|
|
599
|
-
/**
|
|
600
|
-
* Show user details in Webex enabled or not.
|
|
601
|
-
*/
|
|
602
|
-
showUserDetailsWebex: boolean;
|
|
603
|
-
/**
|
|
604
|
-
* State synchronization in Webex enabled or not.
|
|
605
|
-
*/
|
|
606
|
-
stateSynchronizationWebex: boolean;
|
|
607
|
-
/**
|
|
608
|
-
* Threshold rules configured for the agent profile.
|
|
609
|
-
*/
|
|
610
|
-
thresholdRules: Array<Record<string, string | number>>;
|
|
611
|
-
/**
|
|
612
|
-
* Whether the agent profile is currently active.
|
|
613
|
-
*/
|
|
614
|
-
active: boolean;
|
|
615
|
-
/**
|
|
616
|
-
* Whether this profile is the system default.
|
|
617
|
-
*/
|
|
618
|
-
systemDefault: boolean;
|
|
619
|
-
/**
|
|
620
|
-
* Timestamp when the profile was created.
|
|
621
|
-
*/
|
|
622
|
-
createdTime: number;
|
|
623
|
-
/**
|
|
624
|
-
* Timestamp when the profile was last updated.
|
|
625
|
-
*/
|
|
626
|
-
lastUpdatedTime: number;
|
|
551
|
+
timeoutDesktopInactivityMins?: number;
|
|
627
552
|
};
|
|
628
553
|
/**
|
|
629
554
|
* Response containing multimedia profile configuration for an agent
|
|
@@ -770,7 +695,8 @@ export type ListTeamsResponse = {
|
|
|
770
695
|
};
|
|
771
696
|
};
|
|
772
697
|
/**
|
|
773
|
-
* Basic organization information
|
|
698
|
+
* Basic organization information carried by the `organization` section of the org desktop-login
|
|
699
|
+
* aggregate.
|
|
774
700
|
* @private
|
|
775
701
|
* @ignore
|
|
776
702
|
*/
|
|
@@ -779,11 +705,10 @@ export type OrgInfo = {
|
|
|
779
705
|
tenantId: string;
|
|
780
706
|
/** Organization timezone */
|
|
781
707
|
timezone: string;
|
|
782
|
-
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
783
|
-
environment: string;
|
|
784
708
|
};
|
|
785
709
|
/**
|
|
786
|
-
* Organization-wide feature settings
|
|
710
|
+
* Organization-wide feature settings carried by the `organizationSetting` section of the org
|
|
711
|
+
* desktop-login aggregate.
|
|
787
712
|
* @private
|
|
788
713
|
*/
|
|
789
714
|
export type OrgSettings = {
|
|
@@ -793,6 +718,8 @@ export type OrgSettings = {
|
|
|
793
718
|
maskSensitiveData: boolean;
|
|
794
719
|
/** Whether campaign manager features are enabled */
|
|
795
720
|
campaignManagerEnabled: boolean;
|
|
721
|
+
/** Number of AI Assistant licenses assigned to the organization */
|
|
722
|
+
aiAssistantQuantity?: number | null;
|
|
796
723
|
};
|
|
797
724
|
/**
|
|
798
725
|
* Contact center site configuration information
|
|
@@ -811,12 +738,13 @@ export type SiteInfo = {
|
|
|
811
738
|
systemDefault: boolean;
|
|
812
739
|
};
|
|
813
740
|
/**
|
|
814
|
-
* Tenant-level configuration
|
|
741
|
+
* Tenant-level configuration carried by the `tenantConfiguration` section of the org
|
|
742
|
+
* desktop-login aggregate.
|
|
815
743
|
* @private
|
|
816
744
|
*/
|
|
817
745
|
export type TenantData = {
|
|
818
|
-
/** Desktop inactivity timeout in minutes */
|
|
819
|
-
timeoutDesktopInactivityMins
|
|
746
|
+
/** Desktop inactivity timeout in minutes. Omitted when the timeout is not enabled. */
|
|
747
|
+
timeoutDesktopInactivityMins?: number;
|
|
820
748
|
/** Whether default DN is enforced */
|
|
821
749
|
forceDefaultDn: boolean;
|
|
822
750
|
/** Regex pattern for default DN validation */
|
|
@@ -839,16 +767,44 @@ export type TenantData = {
|
|
|
839
767
|
lostConnectionRecoveryTimeout: number;
|
|
840
768
|
};
|
|
841
769
|
/**
|
|
842
|
-
* URL
|
|
770
|
+
* URL mappings carried by the `urlMappings` section of the org desktop-login aggregate, keyed by
|
|
771
|
+
* mapping name. The aggregate returns `{}` when the organization has no Acqueon configuration.
|
|
843
772
|
* @public
|
|
844
773
|
*/
|
|
845
|
-
export type
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
774
|
+
export type OrgUrlMappings = {
|
|
775
|
+
/** Acqueon API endpoint URL */
|
|
776
|
+
ACQUEON_API_URL?: string;
|
|
777
|
+
/** Acqueon console URL */
|
|
778
|
+
ACQUEON_CONSOLE_URL?: string;
|
|
779
|
+
};
|
|
780
|
+
/**
|
|
781
|
+
* Organization-level Microsoft Teams integration configuration carried by the `microsoftConfig`
|
|
782
|
+
* section of the org desktop-login aggregate. The whole section is absent when the organization
|
|
783
|
+
* has no Microsoft integration.
|
|
784
|
+
* @public
|
|
785
|
+
*/
|
|
786
|
+
export type MicrosoftConfig = {
|
|
787
|
+
/** Whether to show user details in Teams */
|
|
788
|
+
showUserDetails?: boolean;
|
|
789
|
+
/** Whether to sync agent state with Teams */
|
|
790
|
+
stateSynchronization?: boolean;
|
|
791
|
+
/** Whether the integration is enabled organization-wide */
|
|
792
|
+
active?: boolean;
|
|
793
|
+
/** Idle codes mapped to Teams presence states */
|
|
794
|
+
idleCodes?: Record<string, string>;
|
|
795
|
+
};
|
|
796
|
+
/**
|
|
797
|
+
* Organization-level Webex integration configuration carried by the `webexConfig` section of the
|
|
798
|
+
* org desktop-login aggregate.
|
|
799
|
+
* @public
|
|
800
|
+
*/
|
|
801
|
+
export type WebexConfig = {
|
|
802
|
+
/** Whether to show user details in Webex */
|
|
803
|
+
showUserDetails?: boolean;
|
|
804
|
+
/** Whether to sync agent state with Webex */
|
|
805
|
+
stateSynchronization?: boolean;
|
|
806
|
+
/** Idle codes mapped to Webex presence states */
|
|
807
|
+
idleCodes?: Record<string, string>;
|
|
852
808
|
};
|
|
853
809
|
/**
|
|
854
810
|
* Constant representing idle code
|
|
@@ -918,6 +874,8 @@ export type DialPlanEntity = {
|
|
|
918
874
|
strippedChars: string;
|
|
919
875
|
/** Name of the dial plan */
|
|
920
876
|
name: string;
|
|
877
|
+
/** Whether the dial plan is active */
|
|
878
|
+
active: boolean;
|
|
921
879
|
};
|
|
922
880
|
/**
|
|
923
881
|
* Complete dial plan configuration for number handling
|
|
@@ -1019,18 +977,6 @@ export type WrapupData = {
|
|
|
1019
977
|
allowCancelAutoWrapup?: boolean;
|
|
1020
978
|
};
|
|
1021
979
|
};
|
|
1022
|
-
/**
|
|
1023
|
-
* Team configuration information
|
|
1024
|
-
* @public
|
|
1025
|
-
*/
|
|
1026
|
-
export type Team = {
|
|
1027
|
-
/** Unique team identifier */
|
|
1028
|
-
teamId: string;
|
|
1029
|
-
/** Team display name */
|
|
1030
|
-
teamName: string;
|
|
1031
|
-
/** Optional desktop layout configuration identifier */
|
|
1032
|
-
desktopLayoutId?: string;
|
|
1033
|
-
};
|
|
1034
980
|
/**
|
|
1035
981
|
* Basic queue configuration information
|
|
1036
982
|
* @public
|
|
@@ -1052,11 +998,12 @@ export type URLMappings = {
|
|
|
1052
998
|
acqueonConsoleUrl: string;
|
|
1053
999
|
};
|
|
1054
1000
|
/**
|
|
1055
|
-
* AI feature
|
|
1001
|
+
* AI feature flags carried by the `aiFeature` section of the org desktop-login aggregate.
|
|
1056
1002
|
* @public
|
|
1057
1003
|
*/
|
|
1058
1004
|
export type AIFeatureFlags = {
|
|
1059
|
-
id
|
|
1005
|
+
/** Not carried by the aggregate; retained for responses that still supply a record id. */
|
|
1006
|
+
id?: string;
|
|
1060
1007
|
realtimeTranscripts?: {
|
|
1061
1008
|
enable?: boolean;
|
|
1062
1009
|
agentInclusionType?: string;
|
|
@@ -1081,26 +1028,40 @@ export type AIFeatureFlags = {
|
|
|
1081
1028
|
queuesInclusionType?: string;
|
|
1082
1029
|
surveyDataSource?: string;
|
|
1083
1030
|
};
|
|
1084
|
-
links?: string[];
|
|
1085
|
-
createdTime?: number;
|
|
1086
|
-
lastUpdatedTime?: number;
|
|
1087
1031
|
};
|
|
1088
1032
|
/**
|
|
1089
|
-
*
|
|
1033
|
+
* Aggregated organization configuration returned by `organization/{orgId}/desktop-login`.
|
|
1034
|
+
* Replaces the separate organization, organization-setting, tenant-configuration,
|
|
1035
|
+
* org-url-mapping and ai-feature calls.
|
|
1090
1036
|
* @public
|
|
1091
1037
|
*/
|
|
1092
|
-
export type
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1038
|
+
export type OrgDesktopLoginResponse = {
|
|
1039
|
+
/** Organization identity and timezone */
|
|
1040
|
+
organization: OrgInfo;
|
|
1041
|
+
/** Organization-wide feature settings */
|
|
1042
|
+
organizationSetting: OrgSettings;
|
|
1043
|
+
/** Tenant-level configuration */
|
|
1044
|
+
tenantConfiguration: TenantData;
|
|
1045
|
+
/** External integration URLs, keyed by mapping name */
|
|
1046
|
+
urlMappings?: OrgUrlMappings;
|
|
1047
|
+
/** AI feature flags */
|
|
1048
|
+
aiFeature?: AIFeatureFlags;
|
|
1049
|
+
/** Microsoft Teams integration configuration; absent when not configured */
|
|
1050
|
+
microsoftConfig?: MicrosoftConfig;
|
|
1051
|
+
/** Webex integration configuration */
|
|
1052
|
+
webexConfig?: WebexConfig;
|
|
1053
|
+
};
|
|
1054
|
+
/**
|
|
1055
|
+
* Aggregated user configuration returned by
|
|
1056
|
+
* `organization/{orgId}/v2/user/by-ci-user-id/{ciUserId}/desktop-login`.
|
|
1057
|
+
* Replaces the separate user and agent-profile calls.
|
|
1058
|
+
* @public
|
|
1059
|
+
*/
|
|
1060
|
+
export type UserDesktopLoginResponse = {
|
|
1061
|
+
/** Agent identity */
|
|
1062
|
+
user: AgentResponse;
|
|
1063
|
+
/** Desktop Profile settings for the agent */
|
|
1064
|
+
agentProfile: AgentProfile;
|
|
1104
1065
|
};
|
|
1105
1066
|
/**
|
|
1106
1067
|
* Comprehensive agent profile configuration in the contact center system
|
|
@@ -1122,8 +1083,8 @@ export type Profile = {
|
|
|
1122
1083
|
/** Whether to sync agent state with Webex */
|
|
1123
1084
|
stateSynchronizationWebex?: boolean;
|
|
1124
1085
|
};
|
|
1125
|
-
/** List of teams the agent belongs to */
|
|
1126
|
-
teams:
|
|
1086
|
+
/** List of teams the agent belongs to, as returned by the team API */
|
|
1087
|
+
teams: TeamList[];
|
|
1127
1088
|
/** Agent's default dial number */
|
|
1128
1089
|
defaultDn: string;
|
|
1129
1090
|
dn?: string;
|
|
@@ -1197,6 +1158,12 @@ export type Profile = {
|
|
|
1197
1158
|
agentAnalyzerId?: string;
|
|
1198
1159
|
/** Whether consult to queue is allowed */
|
|
1199
1160
|
allowConsultToQueue: boolean;
|
|
1161
|
+
/** Access control for queues on Desktop Profile Collaboration tab */
|
|
1162
|
+
accessQueue?: CollaborationAccess;
|
|
1163
|
+
/** Access control for entry points on Desktop Profile Collaboration tab */
|
|
1164
|
+
accessEntryPoint?: CollaborationAccess;
|
|
1165
|
+
/** Access control for buddy teams on Desktop Profile Collaboration tab */
|
|
1166
|
+
accessBuddyTeam?: CollaborationAccess;
|
|
1200
1167
|
/** Additional campaign manager information */
|
|
1201
1168
|
campaignManagerAdditionalInfo?: string;
|
|
1202
1169
|
/** Whether personal statistics are enabled */
|
|
@@ -1233,8 +1200,6 @@ export type Profile = {
|
|
|
1233
1200
|
isAnalyzerEnabled?: boolean;
|
|
1234
1201
|
/** Tenant timezone */
|
|
1235
1202
|
tenantTimezone?: string;
|
|
1236
|
-
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
1237
|
-
environment?: string;
|
|
1238
1203
|
/** Available voice login options */
|
|
1239
1204
|
loginVoiceOptions?: LoginOption[];
|
|
1240
1205
|
/** Current login device type */
|
|
@@ -1253,6 +1218,8 @@ export type Profile = {
|
|
|
1253
1218
|
maskSensitiveData?: boolean;
|
|
1254
1219
|
/** Whether agent is currently logged in */
|
|
1255
1220
|
isAgentLoggedIn?: boolean;
|
|
1221
|
+
/** Active station session after a successful registered relogin. */
|
|
1222
|
+
agentSessionId?: string;
|
|
1256
1223
|
/** Last auxiliary code ID used for state change */
|
|
1257
1224
|
lastStateAuxCodeId?: string;
|
|
1258
1225
|
/** Timestamp of last state change */
|
|
@@ -1261,6 +1228,12 @@ export type Profile = {
|
|
|
1261
1228
|
lastIdleCodeChangeTimestamp?: number;
|
|
1262
1229
|
/** AI feature flags resolved from organization config */
|
|
1263
1230
|
aiFeature?: AIFeatureFlags;
|
|
1231
|
+
/**
|
|
1232
|
+
* Whether Agent Wellness Break is effectively enabled for this profile.
|
|
1233
|
+
* This combines the organization wellbeing configuration with AI Assistant licensing;
|
|
1234
|
+
* Server-side rollout remains enforced by the backend configuration and notification delivery.
|
|
1235
|
+
*/
|
|
1236
|
+
isWellnessBreakEnabled?: boolean;
|
|
1264
1237
|
};
|
|
1265
1238
|
/**
|
|
1266
1239
|
* Contact distribution group configuration for routing logic
|
|
@@ -28,6 +28,15 @@ export declare const WCC_CALLING_RTMS_DOMAIN = "wcc-calling-rtms-domain";
|
|
|
28
28
|
* @ignore
|
|
29
29
|
*/
|
|
30
30
|
export declare const DEFAULT_RTMS_DOMAIN = "rtw.prod-us1.rtmsprod.net";
|
|
31
|
+
/**
|
|
32
|
+
* Trusted domain suffix for RTMS hosts returned by the u2c service catalog. A catalog-provided
|
|
33
|
+
* RTMS host is only used when its hostname is, or is a subdomain of, this domain; otherwise
|
|
34
|
+
* `DEFAULT_RTMS_DOMAIN` is used.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @public
|
|
37
|
+
* @ignore
|
|
38
|
+
*/
|
|
39
|
+
export declare const ALLOWED_RTMS_DOMAIN = "rtmsprod.net";
|
|
31
40
|
/**
|
|
32
41
|
* Timeout in milliseconds for WebSocket events.
|
|
33
42
|
* @type {number}
|
|
@@ -49,6 +49,8 @@ export type TaskErrorIds = {
|
|
|
49
49
|
'Service.aqm.task.consultAccept': Failure;
|
|
50
50
|
} | {
|
|
51
51
|
'Service.aqm.task.consultConference': Failure;
|
|
52
|
+
} | {
|
|
53
|
+
'Service.aqm.task.dropConferenceParticipant': Failure;
|
|
52
54
|
} | {
|
|
53
55
|
'Service.aqm.task.consultEnd': Failure;
|
|
54
56
|
} | {
|
|
@@ -3,6 +3,8 @@ import { LoginOption, WebexRequestPayload } from '../../types';
|
|
|
3
3
|
import { Failure, AugmentedError } from './GlobalTypes';
|
|
4
4
|
import { ConsultConferenceData, consultConferencePayloadData, ConsultTransferDestinationType, TaskData, Interaction } from '../task/types';
|
|
5
5
|
import { DialPlan } from '../config/types';
|
|
6
|
+
/** Returns whether a value is a non-null object with string keys. */
|
|
7
|
+
export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
|
|
6
8
|
/**
|
|
7
9
|
* Strips characters defined in the dial plan entry from the input string.
|
|
8
10
|
*
|
|
@@ -21,6 +23,14 @@ export declare const stripDialPlanChars: (input: string, strippedChars: string)
|
|
|
21
23
|
* @returns true if the input matches at least one dial plan regex pattern or no entries are configured, false otherwise
|
|
22
24
|
*/
|
|
23
25
|
export declare const isValidDialNumber: (input: string, dialPlanEntries: DialPlan['dialPlanEntity']) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Checks whether a URL's hostname is, or is a subdomain of, one of the allowed domains.
|
|
28
|
+
*
|
|
29
|
+
* @param url - The candidate URL to validate
|
|
30
|
+
* @param allowedDomains - Domains (or domain suffixes) the URL's hostname must match
|
|
31
|
+
* @returns true when the URL parses and its hostname matches an allowed domain, false otherwise
|
|
32
|
+
*/
|
|
33
|
+
export declare const isAllowedUrlHost: (url: string | undefined | null, allowedDomains: string[]) => boolean;
|
|
24
34
|
export declare const getStationLoginErrorData: (failure: Failure, loginOption: LoginOption) => {
|
|
25
35
|
message: any;
|
|
26
36
|
fieldName: any;
|
|
@@ -67,6 +67,13 @@ export declare const PARTICIPANT_TYPES: {
|
|
|
67
67
|
};
|
|
68
68
|
/** Interaction state for consultation */
|
|
69
69
|
export declare const STATE_CONSULT = "consult";
|
|
70
|
+
/**
|
|
71
|
+
* Trusted domains for the RoutingNotifs WebSocket connection. A `webSocketUrl` returned by the
|
|
72
|
+
* subscribe/register API is only opened when its hostname matches one of these domains exactly
|
|
73
|
+
* or is a subdomain of one of them.
|
|
74
|
+
* @ignore
|
|
75
|
+
*/
|
|
76
|
+
export declare const ALLOWED_ROUTING_NOTIFS_DOMAINS: string[];
|
|
70
77
|
export declare const METHODS: {
|
|
71
78
|
REQUEST: string;
|
|
72
79
|
UPLOAD_LOGS: string;
|
|
@@ -18,6 +18,8 @@ export type Req<TRes, TErr> = {
|
|
|
18
18
|
url: string;
|
|
19
19
|
host?: string;
|
|
20
20
|
method?: HTTP_METHODS;
|
|
21
|
+
/** Suppress request URLs and routing payloads from AQM logs for sensitive operations. */
|
|
22
|
+
redactSensitiveLogs?: boolean;
|
|
21
23
|
err?: ((errObj: WebexRequestPayload) => Err.Details<'Service.reqs.generic.failure'>) | Err.IdsMessage | ((e: WebexRequestPayload) => Err.Message | Err.Details<Err.IdsDetails>);
|
|
22
24
|
notifSuccess: {
|
|
23
25
|
bind: Bind;
|