@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,4 +1,5 @@
|
|
|
1
1
|
import * as Agent from '../agent/types';
|
|
2
|
+
import {COLLABORATION_ACCESS} from './constants';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Generic type for converting a const enum object into a union type of its values
|
|
@@ -6,8 +7,13 @@ import * as Agent from '../agent/types';
|
|
|
6
7
|
*/
|
|
7
8
|
type Enum<T extends Record<string, unknown>> = T[keyof T];
|
|
8
9
|
|
|
10
|
+
/** Desktop Profile access level for a collaboration destination category. */
|
|
11
|
+
export type CollaborationAccess = Enum<typeof COLLABORATION_ACCESS>;
|
|
12
|
+
|
|
9
13
|
/**
|
|
10
|
-
*
|
|
14
|
+
* Contact Center backend and realtime event types.
|
|
15
|
+
*
|
|
16
|
+
* Includes task lifecycle, transcript, suggested-response, and AI summary events.
|
|
11
17
|
* @enum {string}
|
|
12
18
|
* @private
|
|
13
19
|
* @ignore
|
|
@@ -57,6 +63,8 @@ export const CC_TASK_EVENTS = {
|
|
|
57
63
|
PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',
|
|
58
64
|
/** Event emitted when participant leaving conference fails */
|
|
59
65
|
PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',
|
|
66
|
+
/** Event emitted when dropping another conference participant fails */
|
|
67
|
+
PARTICIPANT_DROP_CONFERENCE_FAILED: 'ParticipantDropConferenceFailed',
|
|
60
68
|
/** Event emitted when consultation conference end fails */
|
|
61
69
|
AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',
|
|
62
70
|
/** Event emitted when conference is successfully transferred */
|
|
@@ -135,17 +143,20 @@ export const CC_TASK_EVENTS = {
|
|
|
135
143
|
SUGGESTED_RESPONSE: 'SUGGESTED_RESPONSE',
|
|
136
144
|
/** Event emitted when backend acknowledges it is listening for more context */
|
|
137
145
|
SUGGESTED_RESPONSE_ACKNOWLEDGE: 'SUGGESTED_RESPONSE_ACKNOWLEDGE',
|
|
138
|
-
/** Event
|
|
139
|
-
MID_CALL_SUMMARY: 'MID_CALL_SUMMARY',
|
|
140
|
-
/** Event emitted when a post-call summary is available */
|
|
146
|
+
/** Event received when a post-call summary is available through realtime delivery */
|
|
141
147
|
POST_CALL_SUMMARY: 'POST_CALL_SUMMARY',
|
|
148
|
+
/** Event received when a mid-call summary is available through realtime delivery */
|
|
149
|
+
MID_CALL_SUMMARY: 'MID_CALL_SUMMARY',
|
|
150
|
+
/** Event received when AI-summary feature enablement is available through realtime delivery */
|
|
151
|
+
FEATURE_ENABLEMENT: 'FEATURE_ENABLEMENT',
|
|
152
|
+
/** Event received when a subsequent agent receives a mid-call summary */
|
|
153
|
+
MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT: 'MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT',
|
|
142
154
|
} as const;
|
|
143
155
|
|
|
144
156
|
/**
|
|
145
157
|
* Events emitted on Contact Center agent operations
|
|
146
158
|
* @enum {string}
|
|
147
|
-
* @
|
|
148
|
-
* @ignore
|
|
159
|
+
* @public
|
|
149
160
|
*/
|
|
150
161
|
export const CC_AGENT_EVENTS = {
|
|
151
162
|
/** Welcome event when agent connects to websocket/backend */
|
|
@@ -184,6 +195,8 @@ export const CC_AGENT_EVENTS = {
|
|
|
184
195
|
AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',
|
|
185
196
|
/** Event emitted when contact is reserved for agent */
|
|
186
197
|
AGENT_CONTACT_RESERVED: 'AgentContactReserved',
|
|
198
|
+
/** Agent-level Agent Wellness Break notification */
|
|
199
|
+
WELLNESS_BREAK: 'WellnessBreak',
|
|
187
200
|
} as const;
|
|
188
201
|
|
|
189
202
|
/**
|
|
@@ -244,7 +257,7 @@ export type WebSocketEvent = {
|
|
|
244
257
|
};
|
|
245
258
|
|
|
246
259
|
/**
|
|
247
|
-
*
|
|
260
|
+
* Agent identity carried by the `user` section of the user desktop-login aggregate.
|
|
248
261
|
*/
|
|
249
262
|
export type AgentResponse = {
|
|
250
263
|
/**
|
|
@@ -277,16 +290,6 @@ export type AgentResponse = {
|
|
|
277
290
|
*/
|
|
278
291
|
email: string;
|
|
279
292
|
|
|
280
|
-
/**
|
|
281
|
-
* Team IDs assigned to the agent.
|
|
282
|
-
*/
|
|
283
|
-
teamIds: string[];
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Multimedia profile ID associated with the agent.
|
|
287
|
-
*/
|
|
288
|
-
multimediaProfileId: string;
|
|
289
|
-
|
|
290
293
|
/**
|
|
291
294
|
* Skill profile ID of the agent.
|
|
292
295
|
*/
|
|
@@ -298,9 +301,10 @@ export type AgentResponse = {
|
|
|
298
301
|
siteId: string;
|
|
299
302
|
|
|
300
303
|
/**
|
|
301
|
-
* Database ID of the agent
|
|
304
|
+
* Database ID of the agent, distinct from `ciUserId`. Passed as `userDbId` to the team lookup,
|
|
305
|
+
* which sends it as the backend's `filter=userId==` value.
|
|
302
306
|
*/
|
|
303
|
-
dbId
|
|
307
|
+
dbId: string;
|
|
304
308
|
|
|
305
309
|
/**
|
|
306
310
|
* The default dialed number of the agent.
|
|
@@ -310,36 +314,12 @@ export type AgentResponse = {
|
|
|
310
314
|
};
|
|
311
315
|
|
|
312
316
|
/**
|
|
313
|
-
*
|
|
317
|
+
* Desktop Profile settings carried by the `agentProfile` section of the user desktop-login
|
|
318
|
+
* aggregate.
|
|
314
319
|
*/
|
|
315
|
-
export type
|
|
320
|
+
export type AgentProfile = {
|
|
316
321
|
/**
|
|
317
|
-
*
|
|
318
|
-
*/
|
|
319
|
-
id: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Display name for the agent profile.
|
|
323
|
-
*/
|
|
324
|
-
name: string;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Description of the agent profile.
|
|
328
|
-
*/
|
|
329
|
-
description: string;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Parent entity type for the profile (for example ORGANIZATION).
|
|
333
|
-
*/
|
|
334
|
-
parentType: string;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Indicates whether screen pop is enabled.
|
|
338
|
-
*/
|
|
339
|
-
screenPopup: boolean;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Represents the voice options of an agent.
|
|
322
|
+
* Represents the voice options of an agent. The order is nondeterministic; treat as a set.
|
|
343
323
|
*/
|
|
344
324
|
loginVoiceOptions: LoginOption[];
|
|
345
325
|
|
|
@@ -353,16 +333,6 @@ export type DesktopProfileResponse = {
|
|
|
353
333
|
*/
|
|
354
334
|
accessIdleCode: string;
|
|
355
335
|
|
|
356
|
-
/**
|
|
357
|
-
* Wrap-up codes list that the agents can select when they wrap up a contact.
|
|
358
|
-
*/
|
|
359
|
-
wrapUpCodes: string[];
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Idle codes list that the agents can select in Agent Desktop.
|
|
363
|
-
*/
|
|
364
|
-
idleCodes: string[];
|
|
365
|
-
|
|
366
336
|
/**
|
|
367
337
|
* Dial plan enabled for the agent.
|
|
368
338
|
*/
|
|
@@ -381,12 +351,7 @@ export type DesktopProfileResponse = {
|
|
|
381
351
|
/**
|
|
382
352
|
* Whether the agent personal greeting is enabled.
|
|
383
353
|
*/
|
|
384
|
-
agentPersonalGreeting
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Auto answer allowed.
|
|
388
|
-
*/
|
|
389
|
-
autoAnswer: boolean;
|
|
354
|
+
agentPersonalGreeting?: boolean;
|
|
390
355
|
|
|
391
356
|
/**
|
|
392
357
|
* Auto wrap-up after seconds.
|
|
@@ -404,34 +369,19 @@ export type DesktopProfileResponse = {
|
|
|
404
369
|
allowAutoWrapUpExtension: boolean;
|
|
405
370
|
|
|
406
371
|
/**
|
|
407
|
-
* Access control for queues assigned to the agent (ALL or
|
|
372
|
+
* Access control for queues assigned to the agent (ALL, SPECIFIC, or NONE).
|
|
408
373
|
*/
|
|
409
|
-
accessQueue:
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Queue identifiers available to the agent when access is SPECIFIC.
|
|
413
|
-
*/
|
|
414
|
-
queues: string[];
|
|
374
|
+
accessQueue: CollaborationAccess;
|
|
415
375
|
|
|
416
376
|
/**
|
|
417
377
|
* Access control for entry points assigned to the agent.
|
|
418
378
|
*/
|
|
419
|
-
accessEntryPoint:
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Entry point identifiers available to the agent when access is SPECIFIC.
|
|
423
|
-
*/
|
|
424
|
-
entryPoints: string[];
|
|
379
|
+
accessEntryPoint: CollaborationAccess;
|
|
425
380
|
|
|
426
381
|
/**
|
|
427
382
|
* Access control for buddy teams assigned to the agent.
|
|
428
383
|
*/
|
|
429
|
-
accessBuddyTeam:
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Buddy team identifiers available to the agent when access is SPECIFIC.
|
|
433
|
-
*/
|
|
434
|
-
buddyTeams: string[];
|
|
384
|
+
accessBuddyTeam: CollaborationAccess;
|
|
435
385
|
|
|
436
386
|
/**
|
|
437
387
|
* Outdial enabled for the agent.
|
|
@@ -448,6 +398,11 @@ export type DesktopProfileResponse = {
|
|
|
448
398
|
*/
|
|
449
399
|
outdialANIId: string;
|
|
450
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Whether the agent can schedule and manage callbacks.
|
|
403
|
+
*/
|
|
404
|
+
scheduleAndManageCallBack?: boolean;
|
|
405
|
+
|
|
451
406
|
/**
|
|
452
407
|
* Consult to queue allowed.
|
|
453
408
|
*/
|
|
@@ -456,19 +411,14 @@ export type DesktopProfileResponse = {
|
|
|
456
411
|
/**
|
|
457
412
|
* Address book ID of the agent.
|
|
458
413
|
*/
|
|
459
|
-
addressBookId
|
|
414
|
+
addressBookId?: string;
|
|
460
415
|
|
|
461
416
|
/**
|
|
462
417
|
* Viewable statistics of the agent.
|
|
463
418
|
*/
|
|
464
419
|
viewableStatistics: {
|
|
465
|
-
id: string;
|
|
466
420
|
agentStats: boolean;
|
|
467
|
-
|
|
468
|
-
contactServiceQueues: string[];
|
|
469
|
-
loggedInTeamStats: boolean;
|
|
470
|
-
accessTeamStats: string;
|
|
471
|
-
teams: string[];
|
|
421
|
+
aiAgentPerformance?: boolean;
|
|
472
422
|
};
|
|
473
423
|
|
|
474
424
|
/**
|
|
@@ -476,16 +426,6 @@ export type DesktopProfileResponse = {
|
|
|
476
426
|
*/
|
|
477
427
|
agentDNValidation: string;
|
|
478
428
|
|
|
479
|
-
/**
|
|
480
|
-
* Additional DN validation criteria configured for the agent.
|
|
481
|
-
*/
|
|
482
|
-
agentDNValidationCriterions: string[];
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Dial plans of the agent.
|
|
486
|
-
*/
|
|
487
|
-
dialPlans: string[];
|
|
488
|
-
|
|
489
429
|
/**
|
|
490
430
|
* Timeout desktop inactivity custom enabled.
|
|
491
431
|
*/
|
|
@@ -494,52 +434,7 @@ export type DesktopProfileResponse = {
|
|
|
494
434
|
/**
|
|
495
435
|
* Timeout desktop inactivity minutes.
|
|
496
436
|
*/
|
|
497
|
-
timeoutDesktopInactivityMins
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Show user details in Microsoft enabled or not.
|
|
501
|
-
*/
|
|
502
|
-
showUserDetailsMS: boolean;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* State synchronization in Microsoft enabled or not.
|
|
506
|
-
*/
|
|
507
|
-
stateSynchronizationMS: boolean;
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Show user details in Webex enabled or not.
|
|
511
|
-
*/
|
|
512
|
-
showUserDetailsWebex: boolean;
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* State synchronization in Webex enabled or not.
|
|
516
|
-
*/
|
|
517
|
-
stateSynchronizationWebex: boolean;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Threshold rules configured for the agent profile.
|
|
521
|
-
*/
|
|
522
|
-
thresholdRules: Array<Record<string, string | number>>;
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Whether the agent profile is currently active.
|
|
526
|
-
*/
|
|
527
|
-
active: boolean;
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Whether this profile is the system default.
|
|
531
|
-
*/
|
|
532
|
-
systemDefault: boolean;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Timestamp when the profile was created.
|
|
536
|
-
*/
|
|
537
|
-
createdTime: number;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Timestamp when the profile was last updated.
|
|
541
|
-
*/
|
|
542
|
-
lastUpdatedTime: number;
|
|
437
|
+
timeoutDesktopInactivityMins?: number;
|
|
543
438
|
};
|
|
544
439
|
|
|
545
440
|
/**
|
|
@@ -699,7 +594,8 @@ export type ListTeamsResponse = {
|
|
|
699
594
|
};
|
|
700
595
|
|
|
701
596
|
/**
|
|
702
|
-
* Basic organization information
|
|
597
|
+
* Basic organization information carried by the `organization` section of the org desktop-login
|
|
598
|
+
* aggregate.
|
|
703
599
|
* @private
|
|
704
600
|
* @ignore
|
|
705
601
|
*/
|
|
@@ -708,12 +604,11 @@ export type OrgInfo = {
|
|
|
708
604
|
tenantId: string;
|
|
709
605
|
/** Organization timezone */
|
|
710
606
|
timezone: string;
|
|
711
|
-
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
712
|
-
environment: string;
|
|
713
607
|
};
|
|
714
608
|
|
|
715
609
|
/**
|
|
716
|
-
* Organization-wide feature settings
|
|
610
|
+
* Organization-wide feature settings carried by the `organizationSetting` section of the org
|
|
611
|
+
* desktop-login aggregate.
|
|
717
612
|
* @private
|
|
718
613
|
*/
|
|
719
614
|
export type OrgSettings = {
|
|
@@ -723,6 +618,8 @@ export type OrgSettings = {
|
|
|
723
618
|
maskSensitiveData: boolean;
|
|
724
619
|
/** Whether campaign manager features are enabled */
|
|
725
620
|
campaignManagerEnabled: boolean;
|
|
621
|
+
/** Number of AI Assistant licenses assigned to the organization */
|
|
622
|
+
aiAssistantQuantity?: number | null;
|
|
726
623
|
};
|
|
727
624
|
|
|
728
625
|
/**
|
|
@@ -743,12 +640,13 @@ export type SiteInfo = {
|
|
|
743
640
|
};
|
|
744
641
|
|
|
745
642
|
/**
|
|
746
|
-
* Tenant-level configuration
|
|
643
|
+
* Tenant-level configuration carried by the `tenantConfiguration` section of the org
|
|
644
|
+
* desktop-login aggregate.
|
|
747
645
|
* @private
|
|
748
646
|
*/
|
|
749
647
|
export type TenantData = {
|
|
750
|
-
/** Desktop inactivity timeout in minutes */
|
|
751
|
-
timeoutDesktopInactivityMins
|
|
648
|
+
/** Desktop inactivity timeout in minutes. Omitted when the timeout is not enabled. */
|
|
649
|
+
timeoutDesktopInactivityMins?: number;
|
|
752
650
|
/** Whether default DN is enforced */
|
|
753
651
|
forceDefaultDn: boolean;
|
|
754
652
|
/** Regex pattern for default DN validation */
|
|
@@ -772,16 +670,46 @@ export type TenantData = {
|
|
|
772
670
|
};
|
|
773
671
|
|
|
774
672
|
/**
|
|
775
|
-
* URL
|
|
673
|
+
* URL mappings carried by the `urlMappings` section of the org desktop-login aggregate, keyed by
|
|
674
|
+
* mapping name. The aggregate returns `{}` when the organization has no Acqueon configuration.
|
|
776
675
|
* @public
|
|
777
676
|
*/
|
|
778
|
-
export type
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
677
|
+
export type OrgUrlMappings = {
|
|
678
|
+
/** Acqueon API endpoint URL */
|
|
679
|
+
ACQUEON_API_URL?: string;
|
|
680
|
+
/** Acqueon console URL */
|
|
681
|
+
ACQUEON_CONSOLE_URL?: string;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Organization-level Microsoft Teams integration configuration carried by the `microsoftConfig`
|
|
686
|
+
* section of the org desktop-login aggregate. The whole section is absent when the organization
|
|
687
|
+
* has no Microsoft integration.
|
|
688
|
+
* @public
|
|
689
|
+
*/
|
|
690
|
+
export type MicrosoftConfig = {
|
|
691
|
+
/** Whether to show user details in Teams */
|
|
692
|
+
showUserDetails?: boolean;
|
|
693
|
+
/** Whether to sync agent state with Teams */
|
|
694
|
+
stateSynchronization?: boolean;
|
|
695
|
+
/** Whether the integration is enabled organization-wide */
|
|
696
|
+
active?: boolean;
|
|
697
|
+
/** Idle codes mapped to Teams presence states */
|
|
698
|
+
idleCodes?: Record<string, string>;
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Organization-level Webex integration configuration carried by the `webexConfig` section of the
|
|
703
|
+
* org desktop-login aggregate.
|
|
704
|
+
* @public
|
|
705
|
+
*/
|
|
706
|
+
export type WebexConfig = {
|
|
707
|
+
/** Whether to show user details in Webex */
|
|
708
|
+
showUserDetails?: boolean;
|
|
709
|
+
/** Whether to sync agent state with Webex */
|
|
710
|
+
stateSynchronization?: boolean;
|
|
711
|
+
/** Idle codes mapped to Webex presence states */
|
|
712
|
+
idleCodes?: Record<string, string>;
|
|
785
713
|
};
|
|
786
714
|
|
|
787
715
|
/**
|
|
@@ -879,6 +807,8 @@ export type DialPlanEntity = {
|
|
|
879
807
|
strippedChars: string;
|
|
880
808
|
/** Name of the dial plan */
|
|
881
809
|
name: string;
|
|
810
|
+
/** Whether the dial plan is active */
|
|
811
|
+
active: boolean;
|
|
882
812
|
};
|
|
883
813
|
|
|
884
814
|
/**
|
|
@@ -986,19 +916,6 @@ export type WrapupData = {
|
|
|
986
916
|
};
|
|
987
917
|
};
|
|
988
918
|
|
|
989
|
-
/**
|
|
990
|
-
* Team configuration information
|
|
991
|
-
* @public
|
|
992
|
-
*/
|
|
993
|
-
export type Team = {
|
|
994
|
-
/** Unique team identifier */
|
|
995
|
-
teamId: string;
|
|
996
|
-
/** Team display name */
|
|
997
|
-
teamName: string;
|
|
998
|
-
/** Optional desktop layout configuration identifier */
|
|
999
|
-
desktopLayoutId?: string;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
919
|
/**
|
|
1003
920
|
* Basic queue configuration information
|
|
1004
921
|
* @public
|
|
@@ -1022,11 +939,12 @@ export type URLMappings = {
|
|
|
1022
939
|
};
|
|
1023
940
|
|
|
1024
941
|
/**
|
|
1025
|
-
* AI feature
|
|
942
|
+
* AI feature flags carried by the `aiFeature` section of the org desktop-login aggregate.
|
|
1026
943
|
* @public
|
|
1027
944
|
*/
|
|
1028
945
|
export type AIFeatureFlags = {
|
|
1029
|
-
id
|
|
946
|
+
/** Not carried by the aggregate; retained for responses that still supply a record id. */
|
|
947
|
+
id?: string;
|
|
1030
948
|
realtimeTranscripts?: {
|
|
1031
949
|
enable?: boolean;
|
|
1032
950
|
agentInclusionType?: string;
|
|
@@ -1051,27 +969,42 @@ export type AIFeatureFlags = {
|
|
|
1051
969
|
queuesInclusionType?: string;
|
|
1052
970
|
surveyDataSource?: string;
|
|
1053
971
|
};
|
|
1054
|
-
links?: string[];
|
|
1055
|
-
createdTime?: number;
|
|
1056
|
-
lastUpdatedTime?: number;
|
|
1057
972
|
};
|
|
1058
973
|
|
|
1059
974
|
/**
|
|
1060
|
-
*
|
|
975
|
+
* Aggregated organization configuration returned by `organization/{orgId}/desktop-login`.
|
|
976
|
+
* Replaces the separate organization, organization-setting, tenant-configuration,
|
|
977
|
+
* org-url-mapping and ai-feature calls.
|
|
1061
978
|
* @public
|
|
1062
979
|
*/
|
|
1063
|
-
export type
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
980
|
+
export type OrgDesktopLoginResponse = {
|
|
981
|
+
/** Organization identity and timezone */
|
|
982
|
+
organization: OrgInfo;
|
|
983
|
+
/** Organization-wide feature settings */
|
|
984
|
+
organizationSetting: OrgSettings;
|
|
985
|
+
/** Tenant-level configuration */
|
|
986
|
+
tenantConfiguration: TenantData;
|
|
987
|
+
/** External integration URLs, keyed by mapping name */
|
|
988
|
+
urlMappings?: OrgUrlMappings;
|
|
989
|
+
/** AI feature flags */
|
|
990
|
+
aiFeature?: AIFeatureFlags;
|
|
991
|
+
/** Microsoft Teams integration configuration; absent when not configured */
|
|
992
|
+
microsoftConfig?: MicrosoftConfig;
|
|
993
|
+
/** Webex integration configuration */
|
|
994
|
+
webexConfig?: WebexConfig;
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Aggregated user configuration returned by
|
|
999
|
+
* `organization/{orgId}/v2/user/by-ci-user-id/{ciUserId}/desktop-login`.
|
|
1000
|
+
* Replaces the separate user and agent-profile calls.
|
|
1001
|
+
* @public
|
|
1002
|
+
*/
|
|
1003
|
+
export type UserDesktopLoginResponse = {
|
|
1004
|
+
/** Agent identity */
|
|
1005
|
+
user: AgentResponse;
|
|
1006
|
+
/** Desktop Profile settings for the agent */
|
|
1007
|
+
agentProfile: AgentProfile;
|
|
1075
1008
|
};
|
|
1076
1009
|
|
|
1077
1010
|
/**
|
|
@@ -1094,8 +1027,8 @@ export type Profile = {
|
|
|
1094
1027
|
/** Whether to sync agent state with Webex */
|
|
1095
1028
|
stateSynchronizationWebex?: boolean;
|
|
1096
1029
|
};
|
|
1097
|
-
/** List of teams the agent belongs to */
|
|
1098
|
-
teams:
|
|
1030
|
+
/** List of teams the agent belongs to, as returned by the team API */
|
|
1031
|
+
teams: TeamList[];
|
|
1099
1032
|
/** Agent's default dial number */
|
|
1100
1033
|
defaultDn: string;
|
|
1101
1034
|
dn?: string;
|
|
@@ -1169,6 +1102,12 @@ export type Profile = {
|
|
|
1169
1102
|
agentAnalyzerId?: string;
|
|
1170
1103
|
/** Whether consult to queue is allowed */
|
|
1171
1104
|
allowConsultToQueue: boolean;
|
|
1105
|
+
/** Access control for queues on Desktop Profile Collaboration tab */
|
|
1106
|
+
accessQueue?: CollaborationAccess;
|
|
1107
|
+
/** Access control for entry points on Desktop Profile Collaboration tab */
|
|
1108
|
+
accessEntryPoint?: CollaborationAccess;
|
|
1109
|
+
/** Access control for buddy teams on Desktop Profile Collaboration tab */
|
|
1110
|
+
accessBuddyTeam?: CollaborationAccess;
|
|
1172
1111
|
/** Additional campaign manager information */
|
|
1173
1112
|
campaignManagerAdditionalInfo?: string;
|
|
1174
1113
|
/** Whether personal statistics are enabled */
|
|
@@ -1205,8 +1144,6 @@ export type Profile = {
|
|
|
1205
1144
|
isAnalyzerEnabled?: boolean;
|
|
1206
1145
|
/** Tenant timezone */
|
|
1207
1146
|
tenantTimezone?: string;
|
|
1208
|
-
/** Current environment (e.g., 'produs1', 'intgus1') */
|
|
1209
|
-
environment?: string;
|
|
1210
1147
|
/** Available voice login options */
|
|
1211
1148
|
loginVoiceOptions?: LoginOption[];
|
|
1212
1149
|
/** Current login device type */
|
|
@@ -1225,6 +1162,8 @@ export type Profile = {
|
|
|
1225
1162
|
maskSensitiveData?: boolean;
|
|
1226
1163
|
/** Whether agent is currently logged in */
|
|
1227
1164
|
isAgentLoggedIn?: boolean;
|
|
1165
|
+
/** Active station session after a successful registered relogin. */
|
|
1166
|
+
agentSessionId?: string;
|
|
1228
1167
|
/** Last auxiliary code ID used for state change */
|
|
1229
1168
|
lastStateAuxCodeId?: string;
|
|
1230
1169
|
/** Timestamp of last state change */
|
|
@@ -1233,6 +1172,12 @@ export type Profile = {
|
|
|
1233
1172
|
lastIdleCodeChangeTimestamp?: number;
|
|
1234
1173
|
/** AI feature flags resolved from organization config */
|
|
1235
1174
|
aiFeature?: AIFeatureFlags;
|
|
1175
|
+
/**
|
|
1176
|
+
* Whether Agent Wellness Break is effectively enabled for this profile.
|
|
1177
|
+
* This combines the organization wellbeing configuration with AI Assistant licensing;
|
|
1178
|
+
* Server-side rollout remains enforced by the backend configuration and notification delivery.
|
|
1179
|
+
*/
|
|
1180
|
+
isWellnessBreakEnabled?: boolean;
|
|
1236
1181
|
};
|
|
1237
1182
|
|
|
1238
1183
|
/**
|
|
@@ -32,6 +32,16 @@ export const WCC_CALLING_RTMS_DOMAIN = 'wcc-calling-rtms-domain';
|
|
|
32
32
|
*/
|
|
33
33
|
export const DEFAULT_RTMS_DOMAIN = 'rtw.prod-us1.rtmsprod.net';
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Trusted domain suffix for RTMS hosts returned by the u2c service catalog. A catalog-provided
|
|
37
|
+
* RTMS host is only used when its hostname is, or is a subdomain of, this domain; otherwise
|
|
38
|
+
* `DEFAULT_RTMS_DOMAIN` is used.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
* @ignore
|
|
42
|
+
*/
|
|
43
|
+
export const ALLOWED_RTMS_DOMAIN = 'rtmsprod.net';
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
* Timeout in milliseconds for WebSocket events.
|
|
37
47
|
* @type {number}
|
package/src/services/core/Err.ts
CHANGED
|
@@ -30,6 +30,7 @@ export type TaskErrorIds =
|
|
|
30
30
|
| {'Service.aqm.err.trackingId': {trackingId: string}}
|
|
31
31
|
| {'Service.aqm.task.consultAccept': Failure}
|
|
32
32
|
| {'Service.aqm.task.consultConference': Failure}
|
|
33
|
+
| {'Service.aqm.task.dropConferenceParticipant': Failure}
|
|
33
34
|
| {'Service.aqm.task.consultEnd': Failure}
|
|
34
35
|
| {'Service.aqm.task.cancelCtq': Failure}
|
|
35
36
|
| {'Service.aqm.task.hold': Failure}
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
import {PARTICIPANT_TYPES, STATE_CONSULT} from './constants';
|
|
17
17
|
import {DialPlan} from '../config/types';
|
|
18
18
|
|
|
19
|
+
/** Returns whether a value is a non-null object with string keys. */
|
|
20
|
+
export const isRecord = (value: unknown): value is Record<string, unknown> =>
|
|
21
|
+
typeof value === 'object' && value !== null;
|
|
22
|
+
|
|
19
23
|
/**
|
|
20
24
|
* Extracts common error details from a Webex request payload.
|
|
21
25
|
*
|
|
@@ -99,6 +103,30 @@ export const isValidDialNumber = (
|
|
|
99
103
|
});
|
|
100
104
|
};
|
|
101
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Checks whether a URL's hostname is, or is a subdomain of, one of the allowed domains.
|
|
108
|
+
*
|
|
109
|
+
* @param url - The candidate URL to validate
|
|
110
|
+
* @param allowedDomains - Domains (or domain suffixes) the URL's hostname must match
|
|
111
|
+
* @returns true when the URL parses and its hostname matches an allowed domain, false otherwise
|
|
112
|
+
*/
|
|
113
|
+
export const isAllowedUrlHost = (
|
|
114
|
+
url: string | undefined | null,
|
|
115
|
+
allowedDomains: string[]
|
|
116
|
+
): boolean => {
|
|
117
|
+
if (!url) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
try {
|
|
122
|
+
const hostname = new URL(url).hostname.toLowerCase();
|
|
123
|
+
|
|
124
|
+
return allowedDomains.some((domain) => hostname === domain || hostname.endsWith(`.${domain}`));
|
|
125
|
+
} catch (error) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
102
130
|
export const getStationLoginErrorData = (failure: Failure, loginOption: LoginOption) => {
|
|
103
131
|
let duplicateLocationMessage = 'This value is already in use';
|
|
104
132
|
|
|
@@ -34,14 +34,16 @@ class WebexRequest {
|
|
|
34
34
|
resource: string;
|
|
35
35
|
method: HTTP_METHODS;
|
|
36
36
|
body?: RequestBody;
|
|
37
|
+
headers?: Record<string, string | null>;
|
|
37
38
|
}): Promise<IHttpResponse> {
|
|
38
|
-
const {service, resource, method, body} = options;
|
|
39
|
+
const {service, resource, method, body, headers} = options;
|
|
39
40
|
|
|
40
41
|
return this.webex.request({
|
|
41
42
|
service,
|
|
42
43
|
resource,
|
|
43
44
|
method,
|
|
44
45
|
body,
|
|
46
|
+
...(headers ? {headers} : {}),
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
49
|
|