@webex/contact-center 3.11.0 → 3.12.0-auth-prejoin-fetch.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/.sdd/manifest.json +883 -0
  2. package/AGENTS.md +94 -0
  3. package/ai-docs/ARCHITECTURE.md +168 -0
  4. package/ai-docs/CONTRACTS.md +50 -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 +48 -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 +359 -0
  17. package/ai-docs/features/consult-transfer-list-policy/spec/feature-spec.md +362 -0
  18. package/ai-docs/features/generated-spec-conformance-fidelity-remediation/spec/feature-spec.md +117 -0
  19. package/ai-docs/features/residual-warning-coverage-completion/spec/feature-spec.md +203 -0
  20. package/ai-docs/features/validator-code-fidelity-drift-fix/spec/feature-spec.md +315 -0
  21. package/ai-docs/patterns/event-driven-patterns.md +485 -0
  22. package/ai-docs/patterns/testing-patterns.md +480 -0
  23. package/ai-docs/patterns/typescript-patterns.md +365 -0
  24. package/ai-docs/templates/README.md +102 -0
  25. package/ai-docs/templates/documentation/create-agents-md.md +240 -0
  26. package/ai-docs/templates/documentation/create-architecture-md.md +295 -0
  27. package/ai-docs/templates/existing-service/bug-fix.md +254 -0
  28. package/ai-docs/templates/existing-service/feature-enhancement.md +450 -0
  29. package/ai-docs/templates/new-method/00-master.md +80 -0
  30. package/ai-docs/templates/new-method/01-requirements.md +232 -0
  31. package/ai-docs/templates/new-method/02-implementation.md +295 -0
  32. package/ai-docs/templates/new-method/03-tests.md +201 -0
  33. package/ai-docs/templates/new-method/04-validation.md +141 -0
  34. package/ai-docs/templates/new-service/00-master.md +109 -0
  35. package/ai-docs/templates/new-service/01-pre-questions.md +159 -0
  36. package/ai-docs/templates/new-service/02-code-generation.md +346 -0
  37. package/ai-docs/templates/new-service/03-integration.md +178 -0
  38. package/ai-docs/templates/new-service/04-test-generation.md +205 -0
  39. package/ai-docs/templates/new-service/05-validation.md +145 -0
  40. package/dist/cc.js +818 -59
  41. package/dist/cc.js.map +1 -1
  42. package/dist/config.js +13 -0
  43. package/dist/config.js.map +1 -1
  44. package/dist/constants.js +31 -3
  45. package/dist/constants.js.map +1 -1
  46. package/dist/index.js +27 -5
  47. package/dist/index.js.map +1 -1
  48. package/dist/metrics/behavioral-events.js +127 -0
  49. package/dist/metrics/behavioral-events.js.map +1 -1
  50. package/dist/metrics/constants.js +34 -3
  51. package/dist/metrics/constants.js.map +1 -1
  52. package/dist/services/AddressBook.js +18 -15
  53. package/dist/services/AddressBook.js.map +1 -1
  54. package/dist/services/AnswerCallOnWebexService.js +174 -0
  55. package/dist/services/AnswerCallOnWebexService.js.map +1 -0
  56. package/dist/services/ApiAiAssistant.js +318 -0
  57. package/dist/services/ApiAiAssistant.js.map +1 -0
  58. package/dist/services/EntryPoint.js +46 -68
  59. package/dist/services/EntryPoint.js.map +1 -1
  60. package/dist/services/Queue.js +27 -22
  61. package/dist/services/Queue.js.map +1 -1
  62. package/dist/services/UserPreference.js +427 -0
  63. package/dist/services/UserPreference.js.map +1 -0
  64. package/dist/services/WebexCrossClientService.js +171 -0
  65. package/dist/services/WebexCrossClientService.js.map +1 -0
  66. package/dist/services/WxAppTelephonyMercurySync.js +93 -0
  67. package/dist/services/WxAppTelephonyMercurySync.js.map +1 -0
  68. package/dist/services/agent/types.js.map +1 -1
  69. package/dist/services/config/Util.js +11 -4
  70. package/dist/services/config/Util.js.map +1 -1
  71. package/dist/services/config/constants.js +45 -8
  72. package/dist/services/config/constants.js.map +1 -1
  73. package/dist/services/config/index.js +41 -2
  74. package/dist/services/config/index.js.map +1 -1
  75. package/dist/services/config/types.js +70 -8
  76. package/dist/services/config/types.js.map +1 -1
  77. package/dist/services/constants.js +27 -1
  78. package/dist/services/constants.js.map +1 -1
  79. package/dist/services/core/Err.js.map +1 -1
  80. package/dist/services/core/Utils.js +122 -25
  81. package/dist/services/core/Utils.js.map +1 -1
  82. package/dist/services/core/WebexRequest.js +6 -2
  83. package/dist/services/core/WebexRequest.js.map +1 -1
  84. package/dist/services/core/aqm-reqs.js +119 -30
  85. package/dist/services/core/aqm-reqs.js.map +1 -1
  86. package/dist/services/core/types.js.map +1 -1
  87. package/dist/services/core/websocket/WebSocketManager.js +22 -6
  88. package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
  89. package/dist/services/core/websocket/connection-service.js +3 -1
  90. package/dist/services/core/websocket/connection-service.js.map +1 -1
  91. package/dist/services/core/websocket/types.js.map +1 -1
  92. package/dist/services/index.js +6 -0
  93. package/dist/services/index.js.map +1 -1
  94. package/dist/services/task/Task.js +754 -0
  95. package/dist/services/task/Task.js.map +1 -0
  96. package/dist/services/task/TaskFactory.js +49 -0
  97. package/dist/services/task/TaskFactory.js.map +1 -0
  98. package/dist/services/task/TaskManager.js +1073 -447
  99. package/dist/services/task/TaskManager.js.map +1 -1
  100. package/dist/services/task/TaskUtils.js +220 -23
  101. package/dist/services/task/TaskUtils.js.map +1 -1
  102. package/dist/services/task/WebexCallingUtils.js +70 -0
  103. package/dist/services/task/WebexCallingUtils.js.map +1 -0
  104. package/dist/services/task/constants.js +26 -2
  105. package/dist/services/task/constants.js.map +1 -1
  106. package/dist/services/task/contact.js +29 -0
  107. package/dist/services/task/contact.js.map +1 -1
  108. package/dist/services/task/dialer.js +129 -0
  109. package/dist/services/task/dialer.js.map +1 -1
  110. package/dist/services/task/digital/Digital.js +78 -0
  111. package/dist/services/task/digital/Digital.js.map +1 -0
  112. package/dist/services/task/state-machine/TaskStateMachine.js +971 -0
  113. package/dist/services/task/state-machine/TaskStateMachine.js.map +1 -0
  114. package/dist/services/task/state-machine/actions.js +572 -0
  115. package/dist/services/task/state-machine/actions.js.map +1 -0
  116. package/dist/services/task/state-machine/constants.js +161 -0
  117. package/dist/services/task/state-machine/constants.js.map +1 -0
  118. package/dist/services/task/state-machine/guards.js +409 -0
  119. package/dist/services/task/state-machine/guards.js.map +1 -0
  120. package/dist/services/task/state-machine/index.js +53 -0
  121. package/dist/services/task/state-machine/index.js.map +1 -0
  122. package/dist/services/task/state-machine/types.js +54 -0
  123. package/dist/services/task/state-machine/types.js.map +1 -0
  124. package/dist/services/task/state-machine/uiControlsComputer.js +703 -0
  125. package/dist/services/task/state-machine/uiControlsComputer.js.map +1 -0
  126. package/dist/services/task/taskDataNormalizer.js +99 -0
  127. package/dist/services/task/taskDataNormalizer.js.map +1 -0
  128. package/dist/services/task/types.js +243 -5
  129. package/dist/services/task/types.js.map +1 -1
  130. package/dist/services/task/voice/Voice.js +1380 -0
  131. package/dist/services/task/voice/Voice.js.map +1 -0
  132. package/dist/services/task/voice/WebRTC.js +152 -0
  133. package/dist/services/task/voice/WebRTC.js.map +1 -0
  134. package/dist/services/task/voice/wxAppVoiceMethods.js +201 -0
  135. package/dist/services/task/voice/wxAppVoiceMethods.js.map +1 -0
  136. package/dist/services/wxAppTelephonyUtils.js +19 -0
  137. package/dist/services/wxAppTelephonyUtils.js.map +1 -0
  138. package/dist/types/cc.d.ts +967 -0
  139. package/dist/types/config.d.ts +79 -0
  140. package/dist/types/constants.d.ts +74 -0
  141. package/dist/types/index.d.ts +201 -0
  142. package/dist/types/logger-proxy.d.ts +71 -0
  143. package/dist/types/metrics/MetricsManager.d.ts +223 -0
  144. package/dist/types/metrics/behavioral-events.d.ts +29 -0
  145. package/dist/types/metrics/constants.d.ts +183 -0
  146. package/dist/types/services/AddressBook.d.ts +75 -0
  147. package/dist/types/services/AnswerCallOnWebexService.d.ts +37 -0
  148. package/dist/types/services/ApiAiAssistant.d.ts +49 -0
  149. package/dist/types/services/EntryPoint.d.ts +69 -0
  150. package/dist/types/services/Queue.d.ts +78 -0
  151. package/dist/types/services/UserPreference.d.ts +118 -0
  152. package/dist/types/services/WebCallingService.d.ts +1 -0
  153. package/dist/types/services/WebexCrossClientService.d.ts +28 -0
  154. package/dist/types/services/WxAppTelephonyMercurySync.d.ts +28 -0
  155. package/dist/types/services/agent/index.d.ts +46 -0
  156. package/dist/types/services/agent/types.d.ts +413 -0
  157. package/dist/types/services/config/Util.d.ts +20 -0
  158. package/dist/types/services/config/constants.d.ts +273 -0
  159. package/dist/types/services/config/index.d.ts +177 -0
  160. package/dist/types/services/config/types.d.ts +1381 -0
  161. package/dist/types/services/constants.d.ts +110 -0
  162. package/dist/types/services/core/Err.d.ts +127 -0
  163. package/dist/types/services/core/GlobalTypes.d.ts +58 -0
  164. package/dist/types/services/core/Utils.d.ts +121 -0
  165. package/dist/types/services/core/WebexRequest.d.ts +23 -0
  166. package/dist/types/services/core/aqm-reqs.d.ts +65 -0
  167. package/dist/types/services/core/constants.d.ts +99 -0
  168. package/dist/types/services/core/types.d.ts +49 -0
  169. package/dist/types/services/core/websocket/WebSocketManager.d.ts +36 -0
  170. package/dist/types/services/core/websocket/connection-service.d.ts +27 -0
  171. package/dist/types/services/core/websocket/keepalive.worker.d.ts +2 -0
  172. package/dist/types/services/core/websocket/types.d.ts +37 -0
  173. package/dist/types/services/index.d.ts +54 -0
  174. package/dist/types/services/task/AutoWrapup.d.ts +40 -0
  175. package/dist/types/services/task/Task.d.ts +175 -0
  176. package/dist/types/services/task/TaskFactory.d.ts +13 -0
  177. package/dist/types/services/task/TaskManager.d.ts +1 -0
  178. package/dist/types/services/task/TaskUtils.d.ts +138 -0
  179. package/dist/types/services/task/WebexCallingUtils.d.ts +11 -0
  180. package/dist/types/services/task/constants.d.ts +94 -0
  181. package/dist/types/services/task/contact.d.ts +73 -0
  182. package/dist/types/services/task/dialer.d.ts +73 -0
  183. package/dist/types/services/task/digital/Digital.d.ts +22 -0
  184. package/dist/types/services/task/state-machine/TaskStateMachine.d.ts +1398 -0
  185. package/dist/types/services/task/state-machine/actions.d.ts +10 -0
  186. package/dist/types/services/task/state-machine/constants.d.ts +107 -0
  187. package/dist/types/services/task/state-machine/guards.d.ts +103 -0
  188. package/dist/types/services/task/state-machine/index.d.ts +13 -0
  189. package/dist/types/services/task/state-machine/types.d.ts +277 -0
  190. package/dist/types/services/task/state-machine/uiControlsComputer.d.ts +9 -0
  191. package/dist/types/services/task/taskDataNormalizer.d.ts +10 -0
  192. package/dist/types/services/task/types.d.ts +1933 -0
  193. package/dist/types/services/task/voice/Voice.d.ts +223 -0
  194. package/dist/types/services/task/voice/WebRTC.d.ts +53 -0
  195. package/dist/types/services/task/voice/wxAppVoiceMethods.d.ts +52 -0
  196. package/dist/types/services/wxAppTelephonyUtils.d.ts +5 -0
  197. package/dist/types/types.d.ts +784 -0
  198. package/dist/types/utils/PageCache.d.ts +190 -0
  199. package/dist/types/webex-config.d.ts +53 -0
  200. package/dist/types/webex.d.ts +8 -0
  201. package/dist/types.js +137 -3
  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 +14 -2
  206. package/dist/webex.js.map +1 -1
  207. package/package.json +16 -12
  208. package/src/cc.ts +983 -60
  209. package/src/config.ts +13 -0
  210. package/src/constants.ts +29 -1
  211. package/src/index.ts +26 -5
  212. package/src/metrics/ai-docs/AGENTS.md +350 -0
  213. package/src/metrics/ai-docs/ARCHITECTURE.md +338 -0
  214. package/src/metrics/ai-docs/metrics-spec.md +860 -0
  215. package/src/metrics/behavioral-events.ts +134 -0
  216. package/src/metrics/constants.ts +39 -3
  217. package/src/services/AddressBook.ts +17 -6
  218. package/src/services/AnswerCallOnWebexService.ts +206 -0
  219. package/src/services/ApiAiAssistant.ts +412 -0
  220. package/src/services/EntryPoint.ts +59 -60
  221. package/src/services/Queue.ts +29 -12
  222. package/src/services/UserPreference.ts +509 -0
  223. package/src/services/WebexCrossClientService.ts +212 -0
  224. package/src/services/WxAppTelephonyMercurySync.ts +115 -0
  225. package/src/services/agent/ai-docs/AGENTS.md +240 -0
  226. package/src/services/agent/ai-docs/ARCHITECTURE.md +304 -0
  227. package/src/services/agent/ai-docs/agent-spec.md +504 -0
  228. package/src/services/agent/types.ts +1 -1
  229. package/src/services/ai-docs/AGENTS.md +386 -0
  230. package/src/services/ai-docs/services-spec.md +497 -0
  231. package/src/services/config/Util.ts +13 -2
  232. package/src/services/config/ai-docs/AGENTS.md +255 -0
  233. package/src/services/config/ai-docs/ARCHITECTURE.md +426 -0
  234. package/src/services/config/ai-docs/config-spec.md +675 -0
  235. package/src/services/config/constants.ts +47 -7
  236. package/src/services/config/index.ts +45 -1
  237. package/src/services/config/types.ts +253 -11
  238. package/src/services/constants.ts +29 -0
  239. package/src/services/core/Err.ts +4 -0
  240. package/src/services/core/Utils.ts +143 -30
  241. package/src/services/core/WebexRequest.ts +3 -1
  242. package/src/services/core/ai-docs/AGENTS.md +381 -0
  243. package/src/services/core/ai-docs/ARCHITECTURE.md +698 -0
  244. package/src/services/core/ai-docs/core-spec.md +787 -0
  245. package/src/services/core/aqm-reqs.ts +125 -32
  246. package/src/services/core/types.ts +2 -0
  247. package/src/services/core/websocket/WebSocketManager.ts +23 -6
  248. package/src/services/core/websocket/connection-service.ts +5 -1
  249. package/src/services/core/websocket/types.ts +1 -1
  250. package/src/services/index.ts +4 -0
  251. package/src/services/task/Task.ts +908 -0
  252. package/src/services/task/TaskFactory.ts +60 -0
  253. package/src/services/task/TaskManager.ts +1291 -513
  254. package/src/services/task/TaskUtils.ts +314 -24
  255. package/src/services/task/WebexCallingUtils.ts +136 -0
  256. package/src/services/task/ai-docs/AGENTS.md +457 -0
  257. package/src/services/task/ai-docs/ARCHITECTURE.md +595 -0
  258. package/src/services/task/ai-docs/task-spec.md +1469 -0
  259. package/src/services/task/constants.ts +26 -0
  260. package/src/services/task/contact.ts +30 -0
  261. package/src/services/task/dialer.ts +136 -1
  262. package/src/services/task/digital/Digital.ts +97 -0
  263. package/src/services/task/state-machine/TaskStateMachine.ts +1313 -0
  264. package/src/services/task/state-machine/actions.ts +741 -0
  265. package/src/services/task/state-machine/ai-docs/AGENTS.md +462 -0
  266. package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +1146 -0
  267. package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +2209 -0
  268. package/src/services/task/state-machine/constants.ts +172 -0
  269. package/src/services/task/state-machine/guards.ts +498 -0
  270. package/src/services/task/state-machine/index.ts +28 -0
  271. package/src/services/task/state-machine/types.ts +258 -0
  272. package/src/services/task/state-machine/uiControlsComputer.ts +1135 -0
  273. package/src/services/task/taskDataNormalizer.ts +137 -0
  274. package/src/services/task/types.ts +843 -70
  275. package/src/services/task/voice/Voice.ts +1720 -0
  276. package/src/services/task/voice/WebRTC.ts +191 -0
  277. package/src/services/task/voice/wxAppVoiceMethods.ts +307 -0
  278. package/src/services/wxAppTelephonyUtils.ts +14 -0
  279. package/src/types.ts +238 -11
  280. package/src/utils/AGENTS.md +289 -0
  281. package/src/utils/PageCache.ts +38 -5
  282. package/src/utils/ai-docs/utils-spec.md +391 -0
  283. package/src/webex.js +2 -0
  284. package/test/unit/spec/cc.ts +1856 -122
  285. package/test/unit/spec/logger-proxy.ts +70 -0
  286. package/test/unit/spec/metrics/behavioral-events.ts +18 -0
  287. package/test/unit/spec/services/AddressBook.ts +37 -6
  288. package/test/unit/spec/services/AnswerCallOnWebexService.ts +223 -0
  289. package/test/unit/spec/services/ApiAiAssistant.ts +273 -0
  290. package/test/unit/spec/services/EntryPoint.ts +87 -40
  291. package/test/unit/spec/services/Queue.ts +123 -12
  292. package/test/unit/spec/services/UserPreference.ts +401 -0
  293. package/test/unit/spec/services/WebCallingService.ts +7 -1
  294. package/test/unit/spec/services/WebexCrossClientService.ts +261 -0
  295. package/test/unit/spec/services/WxAppTelephonyMercurySync.ts +113 -0
  296. package/test/unit/spec/services/config/Util.ts +85 -0
  297. package/test/unit/spec/services/config/index.ts +85 -29
  298. package/test/unit/spec/services/core/Utils.ts +481 -2
  299. package/test/unit/spec/services/core/WebexRequest.ts +3 -1
  300. package/test/unit/spec/services/core/aqm-reqs.ts +113 -1
  301. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +137 -41
  302. package/test/unit/spec/services/core/websocket/connection-service.ts +3 -1
  303. package/test/unit/spec/services/task/AutoWrapup.ts +63 -0
  304. package/test/unit/spec/services/task/Task.ts +677 -0
  305. package/test/unit/spec/services/task/TaskFactory.ts +99 -0
  306. package/test/unit/spec/services/task/TaskManager.ts +2209 -918
  307. package/test/unit/spec/services/task/TaskUtils.ts +235 -0
  308. package/test/unit/spec/services/task/WebexCallingUtils.ts +153 -0
  309. package/test/unit/spec/services/task/contact.ts +33 -0
  310. package/test/unit/spec/services/task/dialer.ts +372 -96
  311. package/test/unit/spec/services/task/digital/Digital.ts +105 -0
  312. package/test/unit/spec/services/task/state-machine/TaskStateMachine.ts +3433 -0
  313. package/test/unit/spec/services/task/state-machine/guards.ts +839 -0
  314. package/test/unit/spec/services/task/state-machine/types.ts +18 -0
  315. package/test/unit/spec/services/task/state-machine/uiControlsComputer.ts +3101 -0
  316. package/test/unit/spec/services/task/taskTestUtils.ts +87 -0
  317. package/test/unit/spec/services/task/voice/Voice.ts +1523 -0
  318. package/test/unit/spec/services/task/voice/WebRTC.ts +235 -0
  319. package/test/unit/spec/services/task/voice/wxAppVoiceMethods.ts +459 -0
  320. package/umd/contact-center.min.js +2 -2
  321. package/umd/contact-center.min.js.map +1 -1
  322. package/dist/services/task/index.js +0 -1525
  323. package/dist/services/task/index.js.map +0 -1
  324. package/src/services/task/index.ts +0 -1801
  325. package/test/unit/spec/services/task/index.ts +0 -2184
@@ -0,0 +1,273 @@
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
+ };
8
+ /**
9
+ * Default page size for paginated API requests.
10
+ * @type {number}
11
+ * @public
12
+ * @example
13
+ * const pageSize = DEFAULT_PAGE_SIZE; // 100
14
+ * @ignore
15
+ */
16
+ export declare const DEFAULT_PAGE_SIZE = 100;
17
+ /**
18
+ * Agent state ID for 'Available'.
19
+ * @type {string}
20
+ * @public
21
+ * @ignore
22
+ */
23
+ export declare const AGENT_STATE_AVAILABLE_ID = "0";
24
+ /**
25
+ * Agent state label for 'Available'.
26
+ * @type {string}
27
+ * @public
28
+ * @ignore
29
+ */
30
+ export declare const AGENT_STATE_AVAILABLE = "Available";
31
+ /**
32
+ * Description for the 'Available' agent state.
33
+ * @type {string}
34
+ * @public
35
+ * @ignore
36
+ */
37
+ export declare const AGENT_STATE_AVAILABLE_DESCRIPTION = "Agent is available to receive calls";
38
+ /**
39
+ * Default attributes for auxiliary code API requests.
40
+ * @type {string[]}
41
+ * @public
42
+ * @ignore
43
+ */
44
+ export declare const DEFAULT_AUXCODE_ATTRIBUTES: string[];
45
+ export declare const METHODS: {
46
+ GET_AGENT_CONFIG: string;
47
+ GET_USER_USING_CI: string;
48
+ GET_DESKTOP_PROFILE_BY_ID: string;
49
+ GET_MULTIMEDIA_PROFILE_BY_ID: string;
50
+ GET_LIST_OF_TEAMS: string;
51
+ GET_ALL_TEAMS: string;
52
+ GET_LIST_OF_AUX_CODES: string;
53
+ GET_ALL_AUX_CODES: string;
54
+ GET_SITE_INFO: string;
55
+ GET_ORG_INFO: string;
56
+ GET_ORGANIZATION_SETTING: string;
57
+ GET_TENANT_DATA: string;
58
+ GET_URL_MAPPING: string;
59
+ GET_DIAL_PLAN_DATA: string;
60
+ GET_AI_FEATURE_FLAGS: string;
61
+ GET_QUEUES: string;
62
+ PARSE_AGENT_CONFIGS: string;
63
+ GET_URL_MAPPING_UTIL: string;
64
+ GET_MSFT_CONFIG: string;
65
+ GET_WEBEX_CONFIG: string;
66
+ GET_DEFAULT_AGENT_DN: string;
67
+ GET_FILTERED_DIALPLAN_ENTRIES: string;
68
+ GET_FILTER_AUX_CODES: string;
69
+ GET_DEFAULT_WRAP_UP_CODE: string;
70
+ };
71
+ /**
72
+ * Maps API endpoint names to functions that generate endpoint URLs for various organization resources.
73
+ * @public
74
+ * @example
75
+ * const url = endPointMap.userByCI('org123', 'agent456');
76
+ */
77
+ export declare const endPointMap: {
78
+ /**
79
+ * Gets the endpoint for a user by CI user ID.
80
+ * @param orgId - Organization ID.
81
+ * @param agentId - Agent ID.
82
+ * @returns The endpoint URL string.
83
+ * @public
84
+ * @example
85
+ * const url = endPointMap.userByCI('org123', 'agent456');
86
+ * @ignore
87
+ */
88
+ userByCI: (orgId: string, agentId: string) => string;
89
+ /**
90
+ * Gets the endpoint for a desktop profile.
91
+ * @param orgId - Organization ID.
92
+ * @param desktopProfileId - Desktop profile ID.
93
+ * @returns The endpoint URL string.
94
+ * @public
95
+ * @example
96
+ * const url = endPointMap.desktopProfile('org123', 'profile789');
97
+ * @ignore
98
+ */
99
+ desktopProfile: (orgId: string, desktopProfileId: string) => string;
100
+ /**
101
+ * Gets the endpoint for a multimedia profile.
102
+ * @param orgId - Organization ID.
103
+ * @param multimediaProfileId - Multimedia profile ID.
104
+ * @returns The endpoint URL string.
105
+ * @public
106
+ * @example
107
+ * const url = endPointMap.multimediaProfile('org123', 'multi456');
108
+ * @ignore
109
+ */
110
+ multimediaProfile: (orgId: string, multimediaProfileId: string) => string;
111
+ /**
112
+ * Gets the endpoint for listing teams with optional filters.
113
+ * @param orgId - Organization ID.
114
+ * @param page - Page number.
115
+ * @param pageSize - Page size.
116
+ * @param filter - Array of team IDs to filter.
117
+ * @returns The endpoint URL string.
118
+ * @public
119
+ * @example
120
+ * const url = endPointMap.listTeams('org123', 0, 100, ['team1', 'team2']);
121
+ * @ignore
122
+ */
123
+ listTeams: (orgId: string, page: number, pageSize: number, filter: string[]) => string;
124
+ /**
125
+ * Gets the endpoint for listing auxiliary codes with optional filters and attributes.
126
+ * @param orgId - Organization ID.
127
+ * @param page - Page number.
128
+ * @param pageSize - Page size.
129
+ * @param filter - Array of auxiliary code IDs to filter.
130
+ * @param attributes - Array of attribute names to include.
131
+ * @returns The endpoint URL string.
132
+ * @public
133
+ * @example
134
+ * const url = endPointMap.listAuxCodes('org123', 0, 100, ['aux1'], ['id', 'name']);
135
+ * @ignore
136
+ */
137
+ listAuxCodes: (orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]) => string;
138
+ /**
139
+ * Gets the endpoint for organization info.
140
+ * @param orgId - Organization ID.
141
+ * @returns The endpoint URL string.
142
+ * @public
143
+ * @example
144
+ * const url = endPointMap.orgInfo('org123');
145
+ * @ignore
146
+ */
147
+ orgInfo: (orgId: string) => string;
148
+ /**
149
+ * Gets the endpoint for organization settings.
150
+ * @param orgId - Organization ID.
151
+ * @returns The endpoint URL string.
152
+ * @public
153
+ * @example
154
+ * const url = endPointMap.orgSettings('org123');
155
+ * @ignore
156
+ */
157
+ orgSettings: (orgId: string) => string;
158
+ /**
159
+ * Gets the endpoint for site info.
160
+ * @param orgId - Organization ID.
161
+ * @param siteId - Site ID.
162
+ * @returns The endpoint URL string.
163
+ * @public
164
+ * @example
165
+ * const url = endPointMap.siteInfo('org123', 'site456');
166
+ * @ignore
167
+ */
168
+ siteInfo: (orgId: string, siteId: string) => string;
169
+ /**
170
+ * Gets the endpoint for tenant configuration data.
171
+ * @param orgId - Organization ID.
172
+ * @returns The endpoint URL string.
173
+ * @public
174
+ * @example
175
+ * const url = endPointMap.tenantData('org123');
176
+ * @ignore
177
+ */
178
+ tenantData: (orgId: string) => string;
179
+ /**
180
+ * Gets the endpoint for organization URL mapping.
181
+ * @param orgId - Organization ID.
182
+ * @returns The endpoint URL string.
183
+ * @public
184
+ * @example
185
+ * const url = endPointMap.urlMapping('org123');
186
+ * @ignore
187
+ */
188
+ urlMapping: (orgId: string) => string;
189
+ /**
190
+ * Gets the endpoint for dial plan.
191
+ * @param orgId - Organization ID.
192
+ * @returns The endpoint URL string.
193
+ * @public
194
+ * @example
195
+ * const url = endPointMap.dialPlan('org123');
196
+ * @ignore
197
+ */
198
+ dialPlan: (orgId: string) => string;
199
+ /**
200
+ * Gets the endpoint for listing AI feature flags.
201
+ * @param orgId - Organization ID.
202
+ * @returns The endpoint URL string.
203
+ * @public
204
+ * @example
205
+ * const url = endPointMap.aiFeatureFlags('org123');
206
+ * @ignore
207
+ */
208
+ aiFeature: (orgId: string) => string;
209
+ /**
210
+ * Gets the endpoint for the queue list with custom query parameters.
211
+ * @param orgId - Organization ID.
212
+ * @param queryParams - Query parameters string.
213
+ * @returns The endpoint URL string.
214
+ * @public
215
+ * @example
216
+ * const url = endPointMap.queueList('org123', 'page=0&pageSize=10');
217
+ * @ignore
218
+ */
219
+ queueList: (orgId: string, queryParams: string) => string;
220
+ /**
221
+ * Gets the desktop-profile-filtered dial-number mappings used by entry-point destination lists.
222
+ * @param orgId - Organization ID.
223
+ * @param queryParams - Query parameters string.
224
+ * @returns The endpoint URL string.
225
+ * @ignore
226
+ */
227
+ entryPointDialNumberList: (orgId: string, queryParams: string) => string;
228
+ /**
229
+ * Gets the endpoint for address book entries with custom query parameters.
230
+ * @param orgId - Organization ID.
231
+ * @param addressBookId - Address book ID.
232
+ * @param queryParams - Query parameters string.
233
+ * @returns The endpoint URL string.
234
+ * @public
235
+ * @example
236
+ * const url = endPointMap.addressBookEntries('org123', 'book456', 'page=0&pageSize=10');
237
+ * @ignore
238
+ */
239
+ addressBookEntries: (orgId: string, addressBookId: string, queryParams: string) => string;
240
+ /**
241
+ * Gets the endpoint for outdial ANI entries with custom query parameters.
242
+ * @param orgId - Organization ID.
243
+ * @param outdialANI - Outdial ANI ID.
244
+ * @param queryParams - Query parameters string.
245
+ * @returns The endpoint URL string.
246
+ * @public
247
+ * @example
248
+ * const url = endPointMap.outdialAniEntries('org123', 'ani456', 'page=0&pageSize=10');
249
+ * @ignore
250
+ */
251
+ outdialAniEntries: (orgId: string, outdialANI: string, queryParams: string) => string;
252
+ /**
253
+ * Gets the endpoint for user preference by user ID.
254
+ * @param orgId - Organization ID.
255
+ * @param userId - User ID.
256
+ * @returns The endpoint URL string.
257
+ * @public
258
+ * @example
259
+ * const url = endPointMap.userPreference('org123', 'user456');
260
+ * @ignore
261
+ */
262
+ userPreference: (orgId: string, userId: string) => string;
263
+ /**
264
+ * Gets the endpoint for creating user preference.
265
+ * @param orgId - Organization ID.
266
+ * @returns The endpoint URL string.
267
+ * @public
268
+ * @example
269
+ * const url = endPointMap.userPreferenceCreate('org123');
270
+ * @ignore
271
+ */
272
+ userPreferenceCreate: (orgId: string) => string;
273
+ };
@@ -0,0 +1,177 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module AgentConfigService
4
+ */
5
+ import { DesktopProfileResponse, ListAuxCodesResponse, AgentResponse, TenantData, OrgInfo, OrgSettings, URLMapping, TeamList, DialPlanEntity, Profile, ListTeamsResponse, AuxCode, MultimediaProfileResponse, SiteInfo, OutdialAniEntriesResponse, OutdialAniParams, AIFeatureFlagsResponse } from './types';
6
+ /**
7
+ * The AgentConfigService class provides methods to fetch agent configuration data.
8
+ * @private
9
+ * @ignore
10
+ */
11
+ export default class AgentConfigService {
12
+ private webexReq;
13
+ constructor();
14
+ /**
15
+ * Fetches the agent configuration data for the given orgId and agentId.
16
+ * @param {string} orgId - organization ID for which the agent configuration is to be fetched.
17
+ * @param {string} agentId - agent ID for which the configuration is to be fetched.
18
+ * @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.
19
+ * @throws {Error} - Throws an error if any API call fails or if the response status is not 200.
20
+ * @public
21
+ */
22
+ getAgentConfig(orgId: string, agentId: string): Promise<Profile>;
23
+ /**
24
+ * Fetches the agent configuration data for the given orgId and agentId.
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.
29
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
30
+ * @private
31
+ */
32
+ getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse>;
33
+ /**
34
+ * Fetches the desktop profile data for the given orgId and desktopProfileId.
35
+ * @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.
39
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
40
+ * @private
41
+ */
42
+ getDesktopProfileById(orgId: string, desktopProfileId: string): Promise<DesktopProfileResponse>;
43
+ /**
44
+ * Fetches the multimedia profile data for the given orgId and multimediaProfileId.
45
+ * @ignore
46
+ * @param {string} orgId - organization ID for which the multimedia profile is to be fetched.
47
+ * @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.
48
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
49
+ * @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.
50
+ * @private
51
+ */
52
+ getMultimediaProfileById(orgId: string, multimediaProfileId: string): Promise<MultimediaProfileResponse>;
53
+ /**
54
+ * fetches the list of teams for the given orgId.
55
+ * @ignore
56
+ * @param {string} orgId - organization ID for which the teams are to be fetched.
57
+ * @param {number} page - the page number to fetch.
58
+ * @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.
61
+ * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.
62
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
63
+ * @private
64
+ */
65
+ getListOfTeams(orgId: string, page: number, pageSize: number, filter: string[]): Promise<ListTeamsResponse>;
66
+ /**
67
+ * Fetches all teams from all pages for the given orgId
68
+ * @ignore
69
+ * @param {string} orgId - organization ID for which the teams are to be fetched.
70
+ * @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.
73
+ * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.
74
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
75
+ * @private
76
+ */
77
+ getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]>;
78
+ /**
79
+ * fetches the list of aux codes for the given orgId.
80
+ * @ignore
81
+ * @param {string} orgId - organization ID for which the aux codes are to be fetched.
82
+ * @param {number} page - the page number to fetch.
83
+ * @param {number} pageSize - the number of aux codes to fetch per page.
84
+ * @param {string[]} filter - optional filter criteria for the aux codes.
85
+ * @param {string[]} attributes - optional attributes to include in the response.
86
+ * @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.
87
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
88
+ * @private
89
+ */
90
+ getListOfAuxCodes(orgId: string, page: number, pageSize: number, filter: string[], attributes: string[]): Promise<ListAuxCodesResponse>;
91
+ /**
92
+ * Fetches all aux codes from all pages for the given orgId
93
+ * @ignore
94
+ * @param {string} orgId - organization ID for which the aux codes are to be fetched.
95
+ * @param {number} pageSize - the number of aux codes to fetch per page.
96
+ * @param {string[]} filter - optional filter criteria for the aux codes.
97
+ * @param {string[]} attributes - optional attributes to include in the response.
98
+ * @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.
99
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
100
+ * @private
101
+ */
102
+ getAllAuxCodes(orgId: string, pageSize: number, filter: string[], attributes: string[]): Promise<AuxCode[]>;
103
+ /**
104
+ * Fetches the site data for the given orgId and siteId.
105
+ * @ignore
106
+ * @param {string} orgId - organization ID for which the site info is to be fetched.
107
+ * @param {string} siteId - site ID for which the data is to be fetched.
108
+ * @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.
109
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
110
+ * @private
111
+ */
112
+ 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
+ /**
159
+ * Fetches the dial plan data for the given orgId.
160
+ * @ignore
161
+ * @param {string} orgId - organization ID for which the dial plan data is to be fetched.
162
+ * @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.
163
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
164
+ * @private
165
+ */
166
+ getDialPlanData(orgId: string): Promise<DialPlanEntity[]>;
167
+ /**
168
+ * Fetches outdial ANI (Automatic Number Identification) entries for the given orgId and outdial ANI ID.
169
+ * @ignore
170
+ * @param {string} orgId - organization ID for which the outdial ANI entries are to be fetched.
171
+ * @param {OutdialAniParams} params - parameters object containing outdialANI and optional pagination/filtering options
172
+ * @returns {Promise<OutdialAniEntriesResponse>} - A promise that resolves to the outdial ANI entries response.
173
+ * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.
174
+ * @private
175
+ */
176
+ getOutdialAniEntries(orgId: string, params: OutdialAniParams): Promise<OutdialAniEntriesResponse>;
177
+ }