@webex/contact-center 3.12.0 → 3.13.0-next.2

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.
Files changed (337) hide show
  1. package/.sdd/manifest.json +887 -0
  2. package/AGENTS.md +94 -0
  3. package/ai-docs/ARCHITECTURE.md +168 -0
  4. package/ai-docs/CONTRACTS.md +64 -0
  5. package/ai-docs/GETTING_STARTED.md +168 -0
  6. package/ai-docs/GLOSSARY.md +43 -0
  7. package/ai-docs/README.md +138 -0
  8. package/ai-docs/REVIEW_CHECKLIST.md +41 -0
  9. package/ai-docs/RULES.md +444 -0
  10. package/ai-docs/SECURITY.md +52 -0
  11. package/ai-docs/SERVICE_STATE.md +52 -0
  12. package/ai-docs/SPEC_INDEX.md +65 -0
  13. package/ai-docs/adr/0001-spec-source-policy.md +55 -0
  14. package/ai-docs/adr/README.md +8 -0
  15. package/ai-docs/adr/_adr-template.md +31 -0
  16. package/ai-docs/contact-center-spec.md +388 -0
  17. package/ai-docs/features/consult-transfer-list-policy/spec/feature-spec.md +362 -0
  18. package/ai-docs/features/contact-owner-change-refactor.md +78 -0
  19. package/ai-docs/features/generated-spec-conformance-fidelity-remediation/spec/feature-spec.md +117 -0
  20. package/ai-docs/features/residual-warning-coverage-completion/spec/feature-spec.md +203 -0
  21. package/ai-docs/features/validator-code-fidelity-drift-fix/spec/feature-spec.md +315 -0
  22. package/ai-docs/patterns/event-driven-patterns.md +485 -0
  23. package/ai-docs/patterns/testing-patterns.md +480 -0
  24. package/ai-docs/patterns/typescript-patterns.md +365 -0
  25. package/ai-docs/templates/README.md +102 -0
  26. package/ai-docs/templates/documentation/create-agents-md.md +240 -0
  27. package/ai-docs/templates/documentation/create-architecture-md.md +295 -0
  28. package/ai-docs/templates/existing-service/bug-fix.md +254 -0
  29. package/ai-docs/templates/existing-service/feature-enhancement.md +450 -0
  30. package/ai-docs/templates/new-method/00-master.md +80 -0
  31. package/ai-docs/templates/new-method/01-requirements.md +232 -0
  32. package/ai-docs/templates/new-method/02-implementation.md +295 -0
  33. package/ai-docs/templates/new-method/03-tests.md +201 -0
  34. package/ai-docs/templates/new-method/04-validation.md +141 -0
  35. package/ai-docs/templates/new-service/00-master.md +109 -0
  36. package/ai-docs/templates/new-service/01-pre-questions.md +159 -0
  37. package/ai-docs/templates/new-service/02-code-generation.md +346 -0
  38. package/ai-docs/templates/new-service/03-integration.md +178 -0
  39. package/ai-docs/templates/new-service/04-test-generation.md +205 -0
  40. package/ai-docs/templates/new-service/05-validation.md +145 -0
  41. package/dist/cc.js +1102 -47
  42. package/dist/cc.js.map +1 -1
  43. package/dist/config.js +13 -0
  44. package/dist/config.js.map +1 -1
  45. package/dist/constants.js +46 -3
  46. package/dist/constants.js.map +1 -1
  47. package/dist/index.js +86 -17
  48. package/dist/index.js.map +1 -1
  49. package/dist/metrics/MetricsManager.js +16 -0
  50. package/dist/metrics/MetricsManager.js.map +1 -1
  51. package/dist/metrics/behavioral-events.js +211 -0
  52. package/dist/metrics/behavioral-events.js.map +1 -1
  53. package/dist/metrics/constants.js +58 -4
  54. package/dist/metrics/constants.js.map +1 -1
  55. package/dist/services/AddressBook.js +18 -15
  56. package/dist/services/AddressBook.js.map +1 -1
  57. package/dist/services/AnswerCallOnWebexService.js +202 -0
  58. package/dist/services/AnswerCallOnWebexService.js.map +1 -0
  59. package/dist/services/ApiAiAssistant.js +369 -14
  60. package/dist/services/ApiAiAssistant.js.map +1 -1
  61. package/dist/services/EntryPoint.js +46 -68
  62. package/dist/services/EntryPoint.js.map +1 -1
  63. package/dist/services/Queue.js +27 -22
  64. package/dist/services/Queue.js.map +1 -1
  65. package/dist/services/UserPreference.js +427 -0
  66. package/dist/services/UserPreference.js.map +1 -0
  67. package/dist/services/WebCallingService.js +287 -37
  68. package/dist/services/WebCallingService.js.map +1 -1
  69. package/dist/services/WebexCrossClientService.js +225 -0
  70. package/dist/services/WebexCrossClientService.js.map +1 -0
  71. package/dist/services/WxAppTelephonyMercurySync.js +111 -0
  72. package/dist/services/WxAppTelephonyMercurySync.js.map +1 -0
  73. package/dist/services/config/Util.js +48 -48
  74. package/dist/services/config/Util.js.map +1 -1
  75. package/dist/services/config/constants.js +57 -79
  76. package/dist/services/config/constants.js.map +1 -1
  77. package/dist/services/config/index.js +100 -226
  78. package/dist/services/config/index.js.map +1 -1
  79. package/dist/services/config/types.js +100 -40
  80. package/dist/services/config/types.js.map +1 -1
  81. package/dist/services/constants.js +19 -1
  82. package/dist/services/constants.js.map +1 -1
  83. package/dist/services/core/Err.js.map +1 -1
  84. package/dist/services/core/Utils.js +131 -32
  85. package/dist/services/core/Utils.js.map +1 -1
  86. package/dist/services/core/WebexRequest.js +6 -2
  87. package/dist/services/core/WebexRequest.js.map +1 -1
  88. package/dist/services/core/aqm-reqs.js +17 -11
  89. package/dist/services/core/aqm-reqs.js.map +1 -1
  90. package/dist/services/core/constants.js +9 -1
  91. package/dist/services/core/constants.js.map +1 -1
  92. package/dist/services/core/types.js.map +1 -1
  93. package/dist/services/core/websocket/WebSocketManager.js +26 -6
  94. package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
  95. package/dist/services/core/websocket/connection-service.js +3 -1
  96. package/dist/services/core/websocket/connection-service.js.map +1 -1
  97. package/dist/services/core/websocket/types.js.map +1 -1
  98. package/dist/services/index.js +6 -0
  99. package/dist/services/index.js.map +1 -1
  100. package/dist/services/task/Task.js +955 -0
  101. package/dist/services/task/Task.js.map +1 -0
  102. package/dist/services/task/TaskFactory.js +50 -0
  103. package/dist/services/task/TaskFactory.js.map +1 -0
  104. package/dist/services/task/TaskManager.js +1275 -504
  105. package/dist/services/task/TaskManager.js.map +1 -1
  106. package/dist/services/task/TaskUtils.js +221 -27
  107. package/dist/services/task/TaskUtils.js.map +1 -1
  108. package/dist/services/task/WebexCallingUtils.js +70 -0
  109. package/dist/services/task/WebexCallingUtils.js.map +1 -0
  110. package/dist/services/task/constants.js +22 -2
  111. package/dist/services/task/constants.js.map +1 -1
  112. package/dist/services/task/contact.js +29 -0
  113. package/dist/services/task/contact.js.map +1 -1
  114. package/dist/services/task/dialer.js +78 -0
  115. package/dist/services/task/dialer.js.map +1 -1
  116. package/dist/services/task/digital/Digital.js +78 -0
  117. package/dist/services/task/digital/Digital.js.map +1 -0
  118. package/dist/services/task/state-machine/TaskStateMachine.js +982 -0
  119. package/dist/services/task/state-machine/TaskStateMachine.js.map +1 -0
  120. package/dist/services/task/state-machine/actions.js +572 -0
  121. package/dist/services/task/state-machine/actions.js.map +1 -0
  122. package/dist/services/task/state-machine/constants.js +161 -0
  123. package/dist/services/task/state-machine/constants.js.map +1 -0
  124. package/dist/services/task/state-machine/guards.js +379 -0
  125. package/dist/services/task/state-machine/guards.js.map +1 -0
  126. package/dist/services/task/state-machine/index.js +53 -0
  127. package/dist/services/task/state-machine/index.js.map +1 -0
  128. package/dist/services/task/state-machine/types.js +54 -0
  129. package/dist/services/task/state-machine/types.js.map +1 -0
  130. package/dist/services/task/state-machine/uiControlsComputer.js +703 -0
  131. package/dist/services/task/state-machine/uiControlsComputer.js.map +1 -0
  132. package/dist/services/task/taskDataNormalizer.js +99 -0
  133. package/dist/services/task/taskDataNormalizer.js.map +1 -0
  134. package/dist/services/task/types.js +259 -5
  135. package/dist/services/task/types.js.map +1 -1
  136. package/dist/services/task/voice/Voice.js +1504 -0
  137. package/dist/services/task/voice/Voice.js.map +1 -0
  138. package/dist/services/task/voice/WebRTC.js +152 -0
  139. package/dist/services/task/voice/WebRTC.js.map +1 -0
  140. package/dist/services/task/voice/wxAppOfferObservability.js +145 -0
  141. package/dist/services/task/voice/wxAppOfferObservability.js.map +1 -0
  142. package/dist/services/task/voice/wxAppVoiceMethods.js +395 -0
  143. package/dist/services/task/voice/wxAppVoiceMethods.js.map +1 -0
  144. package/dist/services/wxAppDiagnosticLogging.js +159 -0
  145. package/dist/services/wxAppDiagnosticLogging.js.map +1 -0
  146. package/dist/services/wxAppTelephonyUtils.js +19 -0
  147. package/dist/services/wxAppTelephonyUtils.js.map +1 -0
  148. package/dist/types/cc.d.ts +222 -10
  149. package/dist/types/config.d.ts +13 -0
  150. package/dist/types/constants.d.ts +40 -1
  151. package/dist/types/index.d.ts +58 -22
  152. package/dist/types/metrics/MetricsManager.d.ts +6 -0
  153. package/dist/types/metrics/constants.d.ts +52 -1
  154. package/dist/types/services/AddressBook.d.ts +2 -1
  155. package/dist/types/services/AnswerCallOnWebexService.d.ts +38 -0
  156. package/dist/types/services/ApiAiAssistant.d.ts +67 -5
  157. package/dist/types/services/EntryPoint.d.ts +7 -5
  158. package/dist/types/services/Queue.d.ts +5 -3
  159. package/dist/types/services/UserPreference.d.ts +118 -0
  160. package/dist/types/services/WebexCrossClientService.d.ts +32 -0
  161. package/dist/types/services/WxAppTelephonyMercurySync.d.ts +28 -0
  162. package/dist/types/services/config/Util.d.ts +4 -8
  163. package/dist/types/services/config/constants.d.ts +49 -76
  164. package/dist/types/services/config/index.d.ts +16 -64
  165. package/dist/types/services/config/types.d.ts +252 -114
  166. package/dist/types/services/constants.d.ts +16 -0
  167. package/dist/types/services/core/Err.d.ts +6 -0
  168. package/dist/types/services/core/Utils.d.ts +43 -13
  169. package/dist/types/services/core/WebexRequest.d.ts +1 -0
  170. package/dist/types/services/core/constants.d.ts +7 -0
  171. package/dist/types/services/core/types.d.ts +2 -0
  172. package/dist/types/services/core/websocket/WebSocketManager.d.ts +2 -0
  173. package/dist/types/services/core/websocket/types.d.ts +1 -1
  174. package/dist/types/services/index.d.ts +2 -0
  175. package/dist/types/services/task/Task.d.ts +186 -0
  176. package/dist/types/services/task/TaskFactory.d.ts +14 -0
  177. package/dist/types/services/task/TaskUtils.d.ts +54 -2
  178. package/dist/types/services/task/WebexCallingUtils.d.ts +11 -0
  179. package/dist/types/services/task/constants.d.ts +20 -0
  180. package/dist/types/services/task/contact.d.ts +4 -0
  181. package/dist/types/services/task/dialer.d.ts +30 -0
  182. package/dist/types/services/task/digital/Digital.d.ts +23 -0
  183. package/dist/types/services/task/state-machine/TaskStateMachine.d.ts +1442 -0
  184. package/dist/types/services/task/state-machine/actions.d.ts +10 -0
  185. package/dist/types/services/task/state-machine/constants.d.ts +107 -0
  186. package/dist/types/services/task/state-machine/guards.d.ts +103 -0
  187. package/dist/types/services/task/state-machine/index.d.ts +13 -0
  188. package/dist/types/services/task/state-machine/types.d.ts +277 -0
  189. package/dist/types/services/task/state-machine/uiControlsComputer.d.ts +9 -0
  190. package/dist/types/services/task/taskDataNormalizer.d.ts +10 -0
  191. package/dist/types/services/task/types.d.ts +790 -66
  192. package/dist/types/services/task/voice/Voice.d.ts +241 -0
  193. package/dist/types/services/task/voice/WebRTC.d.ts +54 -0
  194. package/dist/types/services/task/voice/wxAppOfferObservability.d.ts +39 -0
  195. package/dist/types/services/task/voice/wxAppVoiceMethods.d.ts +68 -0
  196. package/dist/types/services/wxAppDiagnosticLogging.d.ts +63 -0
  197. package/dist/types/services/wxAppTelephonyUtils.d.ts +5 -0
  198. package/dist/types/types.d.ts +258 -11
  199. package/dist/types/utils/PageCache.d.ts +20 -3
  200. package/dist/types/webex.d.ts +1 -0
  201. package/dist/types.js +204 -6
  202. package/dist/types.js.map +1 -1
  203. package/dist/utils/PageCache.js +19 -5
  204. package/dist/utils/PageCache.js.map +1 -1
  205. package/dist/webex.js +22 -2
  206. package/dist/webex.js.map +1 -1
  207. package/package.json +16 -12
  208. package/src/cc.ts +1439 -105
  209. package/src/config.ts +13 -0
  210. package/src/constants.ts +53 -1
  211. package/src/index.ts +72 -16
  212. package/src/metrics/MetricsManager.ts +16 -0
  213. package/src/metrics/ai-docs/AGENTS.md +350 -0
  214. package/src/metrics/ai-docs/ARCHITECTURE.md +338 -0
  215. package/src/metrics/ai-docs/metrics-spec.md +971 -0
  216. package/src/metrics/behavioral-events.ts +218 -0
  217. package/src/metrics/constants.ts +63 -4
  218. package/src/services/AddressBook.ts +17 -6
  219. package/src/services/AnswerCallOnWebexService.ts +239 -0
  220. package/src/services/ApiAiAssistant.ts +494 -15
  221. package/src/services/EntryPoint.ts +59 -60
  222. package/src/services/Queue.ts +29 -12
  223. package/src/services/UserPreference.ts +509 -0
  224. package/src/services/WebCallingService.ts +362 -40
  225. package/src/services/WebexCrossClientService.ts +298 -0
  226. package/src/services/WxAppTelephonyMercurySync.ts +142 -0
  227. package/src/services/agent/ai-docs/AGENTS.md +240 -0
  228. package/src/services/agent/ai-docs/ARCHITECTURE.md +304 -0
  229. package/src/services/agent/ai-docs/agent-spec.md +505 -0
  230. package/src/services/ai-docs/AGENTS.md +386 -0
  231. package/src/services/ai-docs/services-spec.md +512 -0
  232. package/src/services/config/Util.ts +54 -84
  233. package/src/services/config/ai-docs/AGENTS.md +250 -0
  234. package/src/services/config/ai-docs/ARCHITECTURE.md +413 -0
  235. package/src/services/config/ai-docs/config-spec.md +669 -0
  236. package/src/services/config/constants.ts +64 -86
  237. package/src/services/config/index.ts +116 -277
  238. package/src/services/config/types.ts +238 -125
  239. package/src/services/constants.ts +18 -0
  240. package/src/services/core/Err.ts +3 -0
  241. package/src/services/core/Utils.ts +151 -37
  242. package/src/services/core/WebexRequest.ts +3 -1
  243. package/src/services/core/ai-docs/AGENTS.md +381 -0
  244. package/src/services/core/ai-docs/ARCHITECTURE.md +698 -0
  245. package/src/services/core/ai-docs/core-spec.md +797 -0
  246. package/src/services/core/aqm-reqs.ts +18 -12
  247. package/src/services/core/constants.ts +8 -0
  248. package/src/services/core/types.ts +33 -1
  249. package/src/services/core/websocket/WebSocketManager.ts +37 -8
  250. package/src/services/core/websocket/connection-service.ts +5 -1
  251. package/src/services/core/websocket/types.ts +1 -1
  252. package/src/services/index.ts +4 -0
  253. package/src/services/task/Task.ts +1211 -0
  254. package/src/services/task/TaskFactory.ts +82 -0
  255. package/src/services/task/TaskManager.ts +1551 -584
  256. package/src/services/task/TaskUtils.ts +316 -25
  257. package/src/services/task/WebexCallingUtils.ts +136 -0
  258. package/src/services/task/ai-docs/AGENTS.md +457 -0
  259. package/src/services/task/ai-docs/ARCHITECTURE.md +595 -0
  260. package/src/services/task/ai-docs/task-spec.md +1501 -0
  261. package/src/services/task/constants.ts +21 -0
  262. package/src/services/task/contact.ts +30 -0
  263. package/src/services/task/dialer.ts +80 -0
  264. package/src/services/task/digital/Digital.ts +102 -0
  265. package/src/services/task/state-machine/TaskStateMachine.ts +1320 -0
  266. package/src/services/task/state-machine/actions.ts +741 -0
  267. package/src/services/task/state-machine/ai-docs/AGENTS.md +460 -0
  268. package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +1156 -0
  269. package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +2247 -0
  270. package/src/services/task/state-machine/constants.ts +172 -0
  271. package/src/services/task/state-machine/guards.ts +442 -0
  272. package/src/services/task/state-machine/index.ts +28 -0
  273. package/src/services/task/state-machine/types.ts +258 -0
  274. package/src/services/task/state-machine/uiControlsComputer.ts +1135 -0
  275. package/src/services/task/taskDataNormalizer.ts +137 -0
  276. package/src/services/task/types.ts +974 -70
  277. package/src/services/task/voice/Voice.ts +1878 -0
  278. package/src/services/task/voice/WebRTC.ts +194 -0
  279. package/src/services/task/voice/wxAppOfferObservability.ts +204 -0
  280. package/src/services/task/voice/wxAppVoiceMethods.ts +575 -0
  281. package/src/services/wxAppDiagnosticLogging.ts +286 -0
  282. package/src/services/wxAppTelephonyUtils.ts +14 -0
  283. package/src/types.ts +323 -13
  284. package/src/utils/AGENTS.md +289 -0
  285. package/src/utils/PageCache.ts +38 -5
  286. package/src/utils/ai-docs/utils-spec.md +391 -0
  287. package/src/webex.js +10 -0
  288. package/test/unit/fixtures/aiSummaryTestUtils.ts +40 -0
  289. package/test/unit/spec/cc.ts +4046 -181
  290. package/test/unit/spec/index.ts +891 -0
  291. package/test/unit/spec/logger-proxy.ts +70 -0
  292. package/test/unit/spec/metrics/MetricsManager.ts +25 -0
  293. package/test/unit/spec/metrics/behavioral-events.ts +60 -0
  294. package/test/unit/spec/services/AddressBook.ts +37 -6
  295. package/test/unit/spec/services/AnswerCallOnWebexService.ts +264 -0
  296. package/test/unit/spec/services/ApiAiAssistant.ts +442 -23
  297. package/test/unit/spec/services/EntryPoint.ts +87 -40
  298. package/test/unit/spec/services/Queue.ts +123 -12
  299. package/test/unit/spec/services/UserPreference.ts +401 -0
  300. package/test/unit/spec/services/WebCallingService.ts +484 -49
  301. package/test/unit/spec/services/WebexCrossClientService.ts +509 -0
  302. package/test/unit/spec/services/WxAppTelephonyMercurySync.ts +136 -0
  303. package/test/unit/spec/services/config/Util.ts +501 -0
  304. package/test/unit/spec/services/config/index.ts +318 -548
  305. package/test/unit/spec/services/core/Utils.ts +447 -8
  306. package/test/unit/spec/services/core/WebexRequest.ts +8 -7
  307. package/test/unit/spec/services/core/aqm-reqs.ts +142 -1
  308. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +132 -56
  309. package/test/unit/spec/services/core/websocket/connection-service.ts +3 -1
  310. package/test/unit/spec/services/task/AutoWrapup.ts +63 -0
  311. package/test/unit/spec/services/task/Task.ts +2723 -0
  312. package/test/unit/spec/services/task/TaskFactory.ts +116 -0
  313. package/test/unit/spec/services/task/TaskManager.ts +4800 -1586
  314. package/test/unit/spec/services/task/TaskUtils.ts +307 -0
  315. package/test/unit/spec/services/task/WebexCallingUtils.ts +153 -0
  316. package/test/unit/spec/services/task/contact.ts +33 -0
  317. package/test/unit/spec/services/task/dialer.ts +190 -0
  318. package/test/unit/spec/services/task/digital/Digital.ts +105 -0
  319. package/test/unit/spec/services/task/state-machine/TaskStateMachine.ts +4060 -0
  320. package/test/unit/spec/services/task/state-machine/guards.ts +839 -0
  321. package/test/unit/spec/services/task/state-machine/types.ts +18 -0
  322. package/test/unit/spec/services/task/state-machine/uiControlsComputer.ts +3101 -0
  323. package/test/unit/spec/services/task/taskTestUtils.ts +87 -0
  324. package/test/unit/spec/services/task/voice/Voice.ts +2355 -0
  325. package/test/unit/spec/services/task/voice/WebRTC.ts +235 -0
  326. package/test/unit/spec/services/task/voice/wxAppOfferObservability.ts +361 -0
  327. package/test/unit/spec/services/task/voice/wxAppVoiceMethods.ts +719 -0
  328. package/test/unit/spec/services/wxAppDiagnosticLogging.ts +179 -0
  329. package/test/unit/spec/wellnessSampleUtils.ts +288 -0
  330. package/typedoc.md +1 -1
  331. package/umd/contact-center.min.js +2 -2
  332. package/umd/contact-center.min.js.map +1 -1
  333. package/dist/services/task/index.js +0 -1525
  334. package/dist/services/task/index.js.map +0 -1
  335. package/dist/types/services/task/index.d.ts +0 -650
  336. package/src/services/task/index.ts +0 -1801
  337. package/test/unit/spec/services/task/index.ts +0 -2184
@@ -1,4 +1,10 @@
1
1
  export declare const DEFAULT_PAGE = 0;
2
+ /** Desktop Profile access levels for collaboration destination categories. */
3
+ export declare const COLLABORATION_ACCESS: {
4
+ readonly ALL: "ALL";
5
+ readonly SPECIFIC: "SPECIFIC";
6
+ readonly NONE: "NONE";
7
+ };
2
8
  /**
3
9
  * Default page size for paginated API requests.
4
10
  * @type {number}
@@ -22,6 +28,8 @@ export declare const AGENT_STATE_AVAILABLE_ID = "0";
22
28
  * @ignore
23
29
  */
24
30
  export declare const AGENT_STATE_AVAILABLE = "Available";
31
+ /** System idle-code name reserved for Agent Wellness Break. */
32
+ export declare const WELLBEING_BREAK_IDLE_CODE = "WellbeingBreak";
25
33
  /**
26
34
  * Description for the 'Available' agent state.
27
35
  * @type {string}
@@ -38,23 +46,18 @@ export declare const AGENT_STATE_AVAILABLE_DESCRIPTION = "Agent is available to
38
46
  export declare const DEFAULT_AUXCODE_ATTRIBUTES: string[];
39
47
  export declare const METHODS: {
40
48
  GET_AGENT_CONFIG: string;
41
- GET_USER_USING_CI: string;
42
- GET_DESKTOP_PROFILE_BY_ID: string;
49
+ GET_ORG_DESKTOP_LOGIN_CONFIG: string;
50
+ GET_USER_DESKTOP_LOGIN_CONFIG: string;
43
51
  GET_MULTIMEDIA_PROFILE_BY_ID: string;
44
52
  GET_LIST_OF_TEAMS: string;
45
53
  GET_ALL_TEAMS: string;
46
54
  GET_LIST_OF_AUX_CODES: string;
47
55
  GET_ALL_AUX_CODES: string;
48
56
  GET_SITE_INFO: string;
49
- GET_ORG_INFO: string;
50
- GET_ORGANIZATION_SETTING: string;
51
- GET_TENANT_DATA: string;
52
- GET_URL_MAPPING: string;
53
57
  GET_DIAL_PLAN_DATA: string;
54
- GET_AI_FEATURE_FLAGS: string;
58
+ GET_WELLBEING_BREAK_IDLE_CODE: string;
55
59
  GET_QUEUES: string;
56
60
  PARSE_AGENT_CONFIGS: string;
57
- GET_URL_MAPPING_UTIL: string;
58
61
  GET_MSFT_CONFIG: string;
59
62
  GET_WEBEX_CONFIG: string;
60
63
  GET_DEFAULT_AGENT_DN: string;
@@ -66,31 +69,30 @@ export declare const METHODS: {
66
69
  * Maps API endpoint names to functions that generate endpoint URLs for various organization resources.
67
70
  * @public
68
71
  * @example
69
- * const url = endPointMap.userByCI('org123', 'agent456');
72
+ * const url = endPointMap.userDesktopLogin('org123', 'agent456');
70
73
  */
71
74
  export declare const endPointMap: {
72
75
  /**
73
- * Gets the endpoint for a user by CI user ID.
76
+ * Gets the endpoint for the aggregated organization desktop-login configuration.
74
77
  * @param orgId - Organization ID.
75
- * @param agentId - Agent ID.
76
78
  * @returns The endpoint URL string.
77
79
  * @public
78
80
  * @example
79
- * const url = endPointMap.userByCI('org123', 'agent456');
81
+ * const url = endPointMap.orgDesktopLogin('org123');
80
82
  * @ignore
81
83
  */
82
- userByCI: (orgId: string, agentId: string) => string;
84
+ orgDesktopLogin: (orgId: string) => string;
83
85
  /**
84
- * Gets the endpoint for a desktop profile.
86
+ * Gets the endpoint for the aggregated user desktop-login configuration.
85
87
  * @param orgId - Organization ID.
86
- * @param desktopProfileId - Desktop profile ID.
88
+ * @param ciUserId - CI user ID of the agent.
87
89
  * @returns The endpoint URL string.
88
90
  * @public
89
91
  * @example
90
- * const url = endPointMap.desktopProfile('org123', 'profile789');
92
+ * const url = endPointMap.userDesktopLogin('org123', 'agent456');
91
93
  * @ignore
92
94
  */
93
- desktopProfile: (orgId: string, desktopProfileId: string) => string;
95
+ userDesktopLogin: (orgId: string, ciUserId: string) => string;
94
96
  /**
95
97
  * Gets the endpoint for a multimedia profile.
96
98
  * @param orgId - Organization ID.
@@ -103,18 +105,19 @@ export declare const endPointMap: {
103
105
  */
104
106
  multimediaProfile: (orgId: string, multimediaProfileId: string) => string;
105
107
  /**
106
- * Gets the endpoint for listing teams with optional filters.
108
+ * Gets the endpoint for listing the teams a user belongs to.
109
+ * The filter value must stay unquoted — the quoted form returns HTTP 400.
107
110
  * @param orgId - Organization ID.
108
111
  * @param page - Page number.
109
112
  * @param pageSize - Page size.
110
- * @param filter - Array of team IDs to filter.
113
+ * @param userDbId - Database ID of the user whose teams are requested.
111
114
  * @returns The endpoint URL string.
112
115
  * @public
113
116
  * @example
114
- * const url = endPointMap.listTeams('org123', 0, 100, ['team1', 'team2']);
117
+ * const url = endPointMap.listTeams('org123', 0, 100, 'userDb456');
115
118
  * @ignore
116
119
  */
117
- listTeams: (orgId: string, page: number, pageSize: number, filter: string[]) => string;
120
+ listTeams: (orgId: string, page: number, pageSize: number, userDbId: string) => string;
118
121
  /**
119
122
  * Gets the endpoint for listing auxiliary codes with optional filters and attributes.
120
123
  * @param orgId - Organization ID.
@@ -129,26 +132,8 @@ export declare const endPointMap: {
129
132
  * @ignore
130
133
  */
131
134
  listAuxCodes: (orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]) => string;
132
- /**
133
- * Gets the endpoint for organization info.
134
- * @param orgId - Organization ID.
135
- * @returns The endpoint URL string.
136
- * @public
137
- * @example
138
- * const url = endPointMap.orgInfo('org123');
139
- * @ignore
140
- */
141
- orgInfo: (orgId: string) => string;
142
- /**
143
- * Gets the endpoint for organization settings.
144
- * @param orgId - Organization ID.
145
- * @returns The endpoint URL string.
146
- * @public
147
- * @example
148
- * const url = endPointMap.orgSettings('org123');
149
- * @ignore
150
- */
151
- orgSettings: (orgId: string) => string;
135
+ /** Lists system idle codes without applying the agent Desktop Profile filter. */
136
+ systemIdleCodes: (orgId: string, page: number, pageSize: number) => string;
152
137
  /**
153
138
  * Gets the endpoint for site info.
154
139
  * @param orgId - Organization ID.
@@ -160,26 +145,6 @@ export declare const endPointMap: {
160
145
  * @ignore
161
146
  */
162
147
  siteInfo: (orgId: string, siteId: string) => string;
163
- /**
164
- * Gets the endpoint for tenant configuration data.
165
- * @param orgId - Organization ID.
166
- * @returns The endpoint URL string.
167
- * @public
168
- * @example
169
- * const url = endPointMap.tenantData('org123');
170
- * @ignore
171
- */
172
- tenantData: (orgId: string) => string;
173
- /**
174
- * Gets the endpoint for organization URL mapping.
175
- * @param orgId - Organization ID.
176
- * @returns The endpoint URL string.
177
- * @public
178
- * @example
179
- * const url = endPointMap.urlMapping('org123');
180
- * @ignore
181
- */
182
- urlMapping: (orgId: string) => string;
183
148
  /**
184
149
  * Gets the endpoint for dial plan.
185
150
  * @param orgId - Organization ID.
@@ -190,16 +155,6 @@ export declare const endPointMap: {
190
155
  * @ignore
191
156
  */
192
157
  dialPlan: (orgId: string) => string;
193
- /**
194
- * Gets the endpoint for listing AI feature flags.
195
- * @param orgId - Organization ID.
196
- * @returns The endpoint URL string.
197
- * @public
198
- * @example
199
- * const url = endPointMap.aiFeatureFlags('org123');
200
- * @ignore
201
- */
202
- aiFeature: (orgId: string) => string;
203
158
  /**
204
159
  * Gets the endpoint for the queue list with custom query parameters.
205
160
  * @param orgId - Organization ID.
@@ -212,16 +167,13 @@ export declare const endPointMap: {
212
167
  */
213
168
  queueList: (orgId: string, queryParams: string) => string;
214
169
  /**
215
- * Gets the endpoint for entry points list with custom query parameters.
170
+ * Gets the desktop-profile-filtered dial-number mappings used by entry-point destination lists.
216
171
  * @param orgId - Organization ID.
217
172
  * @param queryParams - Query parameters string.
218
173
  * @returns The endpoint URL string.
219
- * @public
220
- * @example
221
- * const url = endPointMap.entryPointList('org123', 'page=0&pageSize=10');
222
174
  * @ignore
223
175
  */
224
- entryPointList: (orgId: string, queryParams: string) => string;
176
+ entryPointDialNumberList: (orgId: string, queryParams: string) => string;
225
177
  /**
226
178
  * Gets the endpoint for address book entries with custom query parameters.
227
179
  * @param orgId - Organization ID.
@@ -246,4 +198,25 @@ export declare const endPointMap: {
246
198
  * @ignore
247
199
  */
248
200
  outdialAniEntries: (orgId: string, outdialANI: string, queryParams: string) => string;
201
+ /**
202
+ * Gets the endpoint for user preference by user ID.
203
+ * @param orgId - Organization ID.
204
+ * @param userId - User ID.
205
+ * @returns The endpoint URL string.
206
+ * @public
207
+ * @example
208
+ * const url = endPointMap.userPreference('org123', 'user456');
209
+ * @ignore
210
+ */
211
+ userPreference: (orgId: string, userId: string) => string;
212
+ /**
213
+ * Gets the endpoint for creating user preference.
214
+ * @param orgId - Organization ID.
215
+ * @returns The endpoint URL string.
216
+ * @public
217
+ * @example
218
+ * const url = endPointMap.userPreferenceCreate('org123');
219
+ * @ignore
220
+ */
221
+ userPreferenceCreate: (orgId: string) => string;
249
222
  };
@@ -2,7 +2,7 @@
2
2
  * @packageDocumentation
3
3
  * @module AgentConfigService
4
4
  */
5
- import { DesktopProfileResponse, ListAuxCodesResponse, AgentResponse, TenantData, OrgInfo, OrgSettings, URLMapping, TeamList, DialPlanEntity, Profile, ListTeamsResponse, AuxCode, MultimediaProfileResponse, SiteInfo, OutdialAniEntriesResponse, OutdialAniParams, AIFeatureFlagsResponse } from './types';
5
+ import { ListAuxCodesResponse, OrgDesktopLoginResponse, UserDesktopLoginResponse, TeamList, DialPlanEntity, Profile, ListTeamsResponse, AuxCode, MultimediaProfileResponse, SiteInfo, OutdialAniEntriesResponse, OutdialAniParams } from './types';
6
6
  /**
7
7
  * The AgentConfigService class provides methods to fetch agent configuration data.
8
8
  * @private
@@ -21,25 +21,24 @@ export default class AgentConfigService {
21
21
  */
22
22
  getAgentConfig(orgId: string, agentId: string): Promise<Profile>;
23
23
  /**
24
- * Fetches the agent configuration data for the given orgId and agentId.
24
+ * Fetches the aggregated organization desktop-login configuration for the given orgId.
25
25
  * @ignore
26
- * @param {string} orgId - organization ID for which the agent configuration is to be fetched.
27
- * @param {string} agentId - agent ID for which the configuration is to be fetched.
28
- * @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.
26
+ * @param {string} orgId - organization ID for which the configuration is to be fetched.
27
+ * @returns {Promise<OrgDesktopLoginResponse>} - A promise that resolves to the organization configuration.
29
28
  * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
30
29
  * @private
31
30
  */
32
- getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse>;
31
+ getOrgDesktopLoginConfig(orgId: string): Promise<OrgDesktopLoginResponse>;
33
32
  /**
34
- * Fetches the desktop profile data for the given orgId and desktopProfileId.
33
+ * Fetches the aggregated user desktop-login configuration for the given orgId and ciUserId.
35
34
  * @ignore
36
- * @param {string} orgId - organization ID for which the desktop profile is to be fetched.
37
- * @param {string} desktopProfileId - desktop profile ID for which the data is to be fetched.
38
- * @returns {Promise<DesktopProfileResponse>} - A promise that resolves to the desktop profile response.
35
+ * @param {string} orgId - organization ID for which the configuration is to be fetched.
36
+ * @param {string} ciUserId - CI user ID of the agent whose configuration is to be fetched.
37
+ * @returns {Promise<UserDesktopLoginResponse>} - A promise that resolves to the user configuration.
39
38
  * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
40
39
  * @private
41
40
  */
42
- getDesktopProfileById(orgId: string, desktopProfileId: string): Promise<DesktopProfileResponse>;
41
+ getUserDesktopLoginConfig(orgId: string, ciUserId: string): Promise<UserDesktopLoginResponse>;
43
42
  /**
44
43
  * Fetches the multimedia profile data for the given orgId and multimediaProfileId.
45
44
  * @ignore
@@ -51,30 +50,28 @@ export default class AgentConfigService {
51
50
  */
52
51
  getMultimediaProfileById(orgId: string, multimediaProfileId: string): Promise<MultimediaProfileResponse>;
53
52
  /**
54
- * fetches the list of teams for the given orgId.
53
+ * fetches the list of teams the given user belongs to.
55
54
  * @ignore
56
55
  * @param {string} orgId - organization ID for which the teams are to be fetched.
57
56
  * @param {number} page - the page number to fetch.
58
57
  * @param {number} pageSize - the number of teams to fetch per page.
59
- * @param {string[]} filter - optional filter criteria for the teams.
60
- * @param {string[]} attributes - optional attributes to include in the response.
58
+ * @param {string} userDbId - database ID of the user whose teams are to be fetched.
61
59
  * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.
62
60
  * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
63
61
  * @private
64
62
  */
65
- getListOfTeams(orgId: string, page: number, pageSize: number, filter: string[]): Promise<ListTeamsResponse>;
63
+ getListOfTeams(orgId: string, page: number, pageSize: number, userDbId: string): Promise<ListTeamsResponse>;
66
64
  /**
67
- * Fetches all teams from all pages for the given orgId
65
+ * Fetches all teams the given user belongs to, from all pages
68
66
  * @ignore
69
67
  * @param {string} orgId - organization ID for which the teams are to be fetched.
70
68
  * @param {number} pageSize - the number of teams to fetch per page.
71
- * @param {string[]} filter - optional filter criteria for the teams.
72
- * @param {string[]} attributes - optional attributes to include in the response.
69
+ * @param {string} userDbId - database ID of the user whose teams are to be fetched.
73
70
  * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.
74
71
  * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
75
72
  * @private
76
73
  */
77
- getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]>;
74
+ getAllTeams(orgId: string, pageSize: number, userDbId: string): Promise<TeamList[]>;
78
75
  /**
79
76
  * fetches the list of aux codes for the given orgId.
80
77
  * @ignore
@@ -110,51 +107,6 @@ export default class AgentConfigService {
110
107
  * @private
111
108
  */
112
109
  getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo>;
113
- /**
114
- * Fetches the organization info for the given orgId.
115
- * @ignore
116
- * @param {string} orgId - organization ID for which the organization info is to be fetched.
117
- * @returns {Promise<OrgInfo>} - A promise that resolves to the organization info response.
118
- * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
119
- * @private
120
- */
121
- getOrgInfo(orgId: string): Promise<OrgInfo>;
122
- /**
123
- * Fetches the organization settings for the given orgId.
124
- * @ignore
125
- * @param {string} orgId - organization ID for which the organization settings are to be fetched.
126
- * @returns {Promise<OrgSettings>} - A promise that resolves to the organization settings response.
127
- * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
128
- * @private
129
- */
130
- getOrganizationSetting(orgId: string): Promise<OrgSettings>;
131
- /**
132
- * Fetches the tenant data for the given orgId.
133
- * @ignore
134
- * @param {string} orgId - organization ID for which the tenant data is to be fetched.
135
- * @returns {Promise<TenantData>} - A promise that resolves to the tenant data response.
136
- * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
137
- * @private
138
- */
139
- getTenantData(orgId: string): Promise<TenantData>;
140
- /**
141
- * Fetches the URL mapping data for the given orgId.
142
- * @ignore
143
- * @param {string} orgId - organization ID for which the URL mapping is to be fetched.
144
- * @returns {Promise<URLMapping[]>} - A promise that resolves to the URL mapping response.
145
- * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
146
- * @private
147
- */
148
- getURLMapping(orgId: string): Promise<URLMapping[]>;
149
- /**
150
- * Fetches AI feature resources for the organization.
151
- * @ignore
152
- * @param {string} orgId - organization ID for which AI feature resources are to be fetched.
153
- * @returns {Promise<AIFeatureFlagsResponse>} - AI feature resources response.
154
- * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
155
- * @private
156
- */
157
- getAIFeatureFlags(orgId: string): Promise<AIFeatureFlagsResponse>;
158
110
  /**
159
111
  * Fetches the dial plan data for the given orgId.
160
112
  * @ignore