@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.
Files changed (250) hide show
  1. package/.sdd/manifest.json +24 -13
  2. package/ai-docs/ARCHITECTURE.md +1 -1
  3. package/ai-docs/CONTRACTS.md +19 -3
  4. package/ai-docs/SECURITY.md +1 -1
  5. package/ai-docs/SERVICE_STATE.md +4 -0
  6. package/ai-docs/contact-center-spec.md +50 -6
  7. package/ai-docs/features/consult-transfer-list-policy/spec/feature-spec.md +362 -0
  8. package/ai-docs/features/contact-owner-change-refactor.md +78 -0
  9. package/dist/cc.js +757 -22
  10. package/dist/cc.js.map +1 -1
  11. package/dist/config.js +7 -0
  12. package/dist/config.js.map +1 -1
  13. package/dist/constants.js +23 -2
  14. package/dist/constants.js.map +1 -1
  15. package/dist/index.js +34 -12
  16. package/dist/index.js.map +1 -1
  17. package/dist/metrics/MetricsManager.js +16 -0
  18. package/dist/metrics/MetricsManager.js.map +1 -1
  19. package/dist/metrics/behavioral-events.js +110 -0
  20. package/dist/metrics/behavioral-events.js.map +1 -1
  21. package/dist/metrics/constants.js +33 -0
  22. package/dist/metrics/constants.js.map +1 -1
  23. package/dist/services/AddressBook.js +18 -15
  24. package/dist/services/AddressBook.js.map +1 -1
  25. package/dist/services/AnswerCallOnWebexService.js +202 -0
  26. package/dist/services/AnswerCallOnWebexService.js.map +1 -0
  27. package/dist/services/ApiAiAssistant.js +221 -11
  28. package/dist/services/ApiAiAssistant.js.map +1 -1
  29. package/dist/services/EntryPoint.js +46 -68
  30. package/dist/services/EntryPoint.js.map +1 -1
  31. package/dist/services/Queue.js +27 -22
  32. package/dist/services/Queue.js.map +1 -1
  33. package/dist/services/WebCallingService.js +10 -2
  34. package/dist/services/WebCallingService.js.map +1 -1
  35. package/dist/services/WebexCrossClientService.js +225 -0
  36. package/dist/services/WebexCrossClientService.js.map +1 -0
  37. package/dist/services/WxAppTelephonyMercurySync.js +111 -0
  38. package/dist/services/WxAppTelephonyMercurySync.js.map +1 -0
  39. package/dist/services/config/Util.js +46 -46
  40. package/dist/services/config/Util.js.map +1 -1
  41. package/dist/services/config/constants.js +34 -77
  42. package/dist/services/config/constants.js.map +1 -1
  43. package/dist/services/config/index.js +100 -226
  44. package/dist/services/config/index.js.map +1 -1
  45. package/dist/services/config/types.js +51 -18
  46. package/dist/services/config/types.js.map +1 -1
  47. package/dist/services/constants.js +11 -1
  48. package/dist/services/constants.js.map +1 -1
  49. package/dist/services/core/Err.js.map +1 -1
  50. package/dist/services/core/Utils.js +25 -1
  51. package/dist/services/core/Utils.js.map +1 -1
  52. package/dist/services/core/WebexRequest.js +6 -2
  53. package/dist/services/core/WebexRequest.js.map +1 -1
  54. package/dist/services/core/aqm-reqs.js +17 -11
  55. package/dist/services/core/aqm-reqs.js.map +1 -1
  56. package/dist/services/core/constants.js +9 -1
  57. package/dist/services/core/constants.js.map +1 -1
  58. package/dist/services/core/types.js.map +1 -1
  59. package/dist/services/core/websocket/WebSocketManager.js +17 -1
  60. package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
  61. package/dist/services/task/Task.js +275 -8
  62. package/dist/services/task/Task.js.map +1 -1
  63. package/dist/services/task/TaskFactory.js +11 -6
  64. package/dist/services/task/TaskFactory.js.map +1 -1
  65. package/dist/services/task/TaskManager.js +590 -42
  66. package/dist/services/task/TaskManager.js.map +1 -1
  67. package/dist/services/task/TaskUtils.js +11 -1
  68. package/dist/services/task/TaskUtils.js.map +1 -1
  69. package/dist/services/task/WebexCallingUtils.js +70 -0
  70. package/dist/services/task/WebexCallingUtils.js.map +1 -0
  71. package/dist/services/task/constants.js +14 -2
  72. package/dist/services/task/constants.js.map +1 -1
  73. package/dist/services/task/contact.js +29 -0
  74. package/dist/services/task/contact.js.map +1 -1
  75. package/dist/services/task/digital/Digital.js +4 -3
  76. package/dist/services/task/digital/Digital.js.map +1 -1
  77. package/dist/services/task/state-machine/TaskStateMachine.js +162 -53
  78. package/dist/services/task/state-machine/TaskStateMachine.js.map +1 -1
  79. package/dist/services/task/state-machine/actions.js +6 -1
  80. package/dist/services/task/state-machine/actions.js.map +1 -1
  81. package/dist/services/task/state-machine/guards.js +7 -10
  82. package/dist/services/task/state-machine/guards.js.map +1 -1
  83. package/dist/services/task/state-machine/types.js.map +1 -1
  84. package/dist/services/task/state-machine/uiControlsComputer.js +118 -18
  85. package/dist/services/task/state-machine/uiControlsComputer.js.map +1 -1
  86. package/dist/services/task/types.js +47 -1
  87. package/dist/services/task/types.js.map +1 -1
  88. package/dist/services/task/voice/Voice.js +477 -17
  89. package/dist/services/task/voice/Voice.js.map +1 -1
  90. package/dist/services/task/voice/WebRTC.js +6 -3
  91. package/dist/services/task/voice/WebRTC.js.map +1 -1
  92. package/dist/services/task/voice/wxAppOfferObservability.js +145 -0
  93. package/dist/services/task/voice/wxAppOfferObservability.js.map +1 -0
  94. package/dist/services/task/voice/wxAppVoiceMethods.js +395 -0
  95. package/dist/services/task/voice/wxAppVoiceMethods.js.map +1 -0
  96. package/dist/services/wxAppDiagnosticLogging.js +159 -0
  97. package/dist/services/wxAppDiagnosticLogging.js.map +1 -0
  98. package/dist/services/wxAppTelephonyUtils.js +19 -0
  99. package/dist/services/wxAppTelephonyUtils.js.map +1 -0
  100. package/dist/types/cc.d.ts +102 -8
  101. package/dist/types/config.d.ts +7 -0
  102. package/dist/types/constants.d.ts +21 -0
  103. package/dist/types/index.d.ts +34 -15
  104. package/dist/types/metrics/MetricsManager.d.ts +6 -0
  105. package/dist/types/metrics/constants.d.ts +31 -0
  106. package/dist/types/services/AddressBook.d.ts +2 -1
  107. package/dist/types/services/AnswerCallOnWebexService.d.ts +38 -0
  108. package/dist/types/services/ApiAiAssistant.d.ts +48 -4
  109. package/dist/types/services/EntryPoint.d.ts +7 -5
  110. package/dist/types/services/Queue.d.ts +5 -3
  111. package/dist/types/services/WebexCrossClientService.d.ts +32 -0
  112. package/dist/types/services/WxAppTelephonyMercurySync.d.ts +28 -0
  113. package/dist/types/services/config/Util.d.ts +4 -8
  114. package/dist/types/services/config/constants.d.ts +28 -76
  115. package/dist/types/services/config/index.d.ts +16 -64
  116. package/dist/types/services/config/types.d.ts +146 -173
  117. package/dist/types/services/constants.d.ts +9 -0
  118. package/dist/types/services/core/Err.d.ts +2 -0
  119. package/dist/types/services/core/Utils.d.ts +10 -0
  120. package/dist/types/services/core/WebexRequest.d.ts +1 -0
  121. package/dist/types/services/core/constants.d.ts +7 -0
  122. package/dist/types/services/core/types.d.ts +2 -0
  123. package/dist/types/services/task/Task.d.ts +34 -5
  124. package/dist/types/services/task/TaskFactory.d.ts +4 -2
  125. package/dist/types/services/task/TaskUtils.d.ts +6 -0
  126. package/dist/types/services/task/WebexCallingUtils.d.ts +11 -0
  127. package/dist/types/services/task/constants.d.ts +12 -0
  128. package/dist/types/services/task/contact.d.ts +4 -0
  129. package/dist/types/services/task/digital/Digital.d.ts +4 -3
  130. package/dist/types/services/task/state-machine/TaskStateMachine.d.ts +304 -56
  131. package/dist/types/services/task/state-machine/guards.d.ts +6 -5
  132. package/dist/types/services/task/state-machine/types.d.ts +9 -1
  133. package/dist/types/services/task/types.d.ts +192 -5
  134. package/dist/types/services/task/voice/Voice.d.ts +68 -11
  135. package/dist/types/services/task/voice/WebRTC.d.ts +5 -4
  136. package/dist/types/services/task/voice/wxAppOfferObservability.d.ts +39 -0
  137. package/dist/types/services/task/voice/wxAppVoiceMethods.d.ts +68 -0
  138. package/dist/types/services/wxAppDiagnosticLogging.d.ts +63 -0
  139. package/dist/types/services/wxAppTelephonyUtils.d.ts +5 -0
  140. package/dist/types/types.d.ts +80 -13
  141. package/dist/types/utils/PageCache.d.ts +20 -3
  142. package/dist/types.js +54 -8
  143. package/dist/types.js.map +1 -1
  144. package/dist/utils/PageCache.js +19 -5
  145. package/dist/utils/PageCache.js.map +1 -1
  146. package/dist/webex.js +9 -1
  147. package/dist/webex.js.map +1 -1
  148. package/package.json +10 -9
  149. package/src/cc.ts +969 -38
  150. package/src/config.ts +7 -0
  151. package/src/constants.ts +24 -0
  152. package/src/index.ts +39 -10
  153. package/src/metrics/MetricsManager.ts +16 -0
  154. package/src/metrics/ai-docs/metrics-spec.md +138 -21
  155. package/src/metrics/behavioral-events.ts +112 -0
  156. package/src/metrics/constants.ts +36 -0
  157. package/src/services/AddressBook.ts +17 -6
  158. package/src/services/AnswerCallOnWebexService.ts +239 -0
  159. package/src/services/ApiAiAssistant.ts +297 -13
  160. package/src/services/EntryPoint.ts +59 -60
  161. package/src/services/Queue.ts +29 -12
  162. package/src/services/WebCallingService.ts +16 -2
  163. package/src/services/WebexCrossClientService.ts +298 -0
  164. package/src/services/WxAppTelephonyMercurySync.ts +142 -0
  165. package/src/services/agent/ai-docs/AGENTS.md +1 -1
  166. package/src/services/agent/ai-docs/agent-spec.md +1 -0
  167. package/src/services/ai-docs/AGENTS.md +10 -10
  168. package/src/services/ai-docs/services-spec.md +25 -5
  169. package/src/services/config/Util.ts +52 -82
  170. package/src/services/config/ai-docs/AGENTS.md +35 -40
  171. package/src/services/config/ai-docs/ARCHITECTURE.md +90 -103
  172. package/src/services/config/ai-docs/config-spec.md +132 -132
  173. package/src/services/config/constants.ts +39 -85
  174. package/src/services/config/index.ts +116 -277
  175. package/src/services/config/types.ts +140 -195
  176. package/src/services/constants.ts +10 -0
  177. package/src/services/core/Err.ts +1 -0
  178. package/src/services/core/Utils.ts +28 -0
  179. package/src/services/core/WebexRequest.ts +3 -1
  180. package/src/services/core/ai-docs/core-spec.md +25 -11
  181. package/src/services/core/aqm-reqs.ts +18 -12
  182. package/src/services/core/constants.ts +8 -0
  183. package/src/services/core/types.ts +33 -1
  184. package/src/services/core/websocket/WebSocketManager.ts +26 -2
  185. package/src/services/task/Task.ts +386 -12
  186. package/src/services/task/TaskFactory.ts +33 -6
  187. package/src/services/task/TaskManager.ts +857 -41
  188. package/src/services/task/TaskUtils.ts +13 -0
  189. package/src/services/task/WebexCallingUtils.ts +136 -0
  190. package/src/services/task/ai-docs/ARCHITECTURE.md +1 -0
  191. package/src/services/task/ai-docs/task-spec.md +190 -8
  192. package/src/services/task/constants.ts +13 -0
  193. package/src/services/task/contact.ts +30 -0
  194. package/src/services/task/digital/Digital.ts +11 -4
  195. package/src/services/task/state-machine/TaskStateMachine.ts +235 -81
  196. package/src/services/task/state-machine/actions.ts +5 -2
  197. package/src/services/task/state-machine/ai-docs/AGENTS.md +6 -4
  198. package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +35 -16
  199. package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +103 -33
  200. package/src/services/task/state-machine/guards.ts +7 -10
  201. package/src/services/task/state-machine/types.ts +16 -1
  202. package/src/services/task/state-machine/uiControlsComputer.ts +206 -32
  203. package/src/services/task/types.ts +269 -4
  204. package/src/services/task/voice/Voice.ts +625 -17
  205. package/src/services/task/voice/WebRTC.ts +11 -4
  206. package/src/services/task/voice/wxAppOfferObservability.ts +204 -0
  207. package/src/services/task/voice/wxAppVoiceMethods.ts +575 -0
  208. package/src/services/wxAppDiagnosticLogging.ts +286 -0
  209. package/src/services/wxAppTelephonyUtils.ts +14 -0
  210. package/src/types.ts +108 -13
  211. package/src/utils/AGENTS.md +21 -10
  212. package/src/utils/PageCache.ts +38 -5
  213. package/src/utils/ai-docs/utils-spec.md +21 -11
  214. package/src/webex.js +8 -0
  215. package/test/unit/fixtures/aiSummaryTestUtils.ts +40 -0
  216. package/test/unit/spec/cc.ts +3408 -152
  217. package/test/unit/spec/index.ts +885 -0
  218. package/test/unit/spec/metrics/MetricsManager.ts +25 -0
  219. package/test/unit/spec/metrics/behavioral-events.ts +60 -0
  220. package/test/unit/spec/services/AddressBook.ts +37 -6
  221. package/test/unit/spec/services/AnswerCallOnWebexService.ts +264 -0
  222. package/test/unit/spec/services/ApiAiAssistant.ts +269 -8
  223. package/test/unit/spec/services/EntryPoint.ts +87 -40
  224. package/test/unit/spec/services/Queue.ts +123 -12
  225. package/test/unit/spec/services/WebCallingService.ts +38 -0
  226. package/test/unit/spec/services/WebexCrossClientService.ts +509 -0
  227. package/test/unit/spec/services/WxAppTelephonyMercurySync.ts +136 -0
  228. package/test/unit/spec/services/config/Util.ts +501 -0
  229. package/test/unit/spec/services/config/index.ts +313 -543
  230. package/test/unit/spec/services/core/Utils.ts +22 -0
  231. package/test/unit/spec/services/core/WebexRequest.ts +8 -7
  232. package/test/unit/spec/services/core/aqm-reqs.ts +142 -1
  233. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +64 -14
  234. package/test/unit/spec/services/task/Task.ts +2257 -11
  235. package/test/unit/spec/services/task/TaskFactory.ts +56 -2
  236. package/test/unit/spec/services/task/TaskManager.ts +5559 -1493
  237. package/test/unit/spec/services/task/TaskUtils.ts +72 -0
  238. package/test/unit/spec/services/task/WebexCallingUtils.ts +153 -0
  239. package/test/unit/spec/services/task/contact.ts +33 -0
  240. package/test/unit/spec/services/task/state-machine/TaskStateMachine.ts +1501 -92
  241. package/test/unit/spec/services/task/state-machine/guards.ts +210 -8
  242. package/test/unit/spec/services/task/state-machine/uiControlsComputer.ts +445 -7
  243. package/test/unit/spec/services/task/voice/Voice.ts +1710 -4
  244. package/test/unit/spec/services/task/voice/wxAppOfferObservability.ts +361 -0
  245. package/test/unit/spec/services/task/voice/wxAppVoiceMethods.ts +719 -0
  246. package/test/unit/spec/services/wxAppDiagnosticLogging.ts +179 -0
  247. package/test/unit/spec/wellnessSampleUtils.ts +288 -0
  248. package/typedoc.md +1 -1
  249. package/umd/contact-center.min.js +2 -2
  250. package/umd/contact-center.min.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_loggerProxy","_interopRequireDefault","_WebexRequest","_constants","_constants2","_Util","_constants3","e","__esModule","default","AgentConfigService","constructor","webexReq","WebexRequest","getInstance","getAgentConfig","orgId","agentId","userConfigPromise","getUserUsingCI","orgInfoPromise","getOrgInfo","orgSettingsPromise","getOrganizationSetting","tenantDataPromise","getTenantData","urlMappingPromise","getURLMapping","aiFeatureFlagsPromise","getAIFeatureFlags","auxCodesPromise","getAllAuxCodes","DEFAULT_PAGE_SIZE","DEFAULT_AUXCODE_ATTRIBUTES","userConfigData","LoggerProxy","info","ciUserId","module","CONFIG_FILE_NAME","method","METHODS","GET_AGENT_CONFIG","agentProfilePromise","getDesktopProfileById","agentProfileId","siteInfoPromise","getSiteInfo","siteId","userDialPlanPromise","then","agentProfileConfigData","dialPlanEnabled","getDialPlanData","userTeamPromise","teamIds","getAllTeams","Promise","resolve","siteInfo","userDialPlanData","userTeamData","orgInfo","orgSettingsData","tenantData","urlMappingData","aiFeatureFlagsData","auxCodesData","all","multimediaProfileId","multiMediaProfileId","response","parseAgentConfigs","userData","teamData","orgInfoData","auxCodes","agentProfileData","dialPlanData","urlMapping","aiFeatureFlags","error","GET_USER_USING_CI","resource","endPointMap","userByCI","request","service","WCC_API_GATEWAY","HTTP_METHODS","GET","statusCode","Error","log","body","desktopProfileId","GET_DESKTOP_PROFILE_BY_ID","desktopProfile","getMultimediaProfileById","GET_MULTIMEDIA_PROFILE_BY_ID","multimediaProfile","getListOfTeams","page","pageSize","filter","GET_LIST_OF_TEAMS","listTeams","allTeams","DEFAULT_PAGE","firstResponse","totalPages","meta","concat","data","requests","push","responses","GET_ALL_TEAMS","getListOfAuxCodes","attributes","GET_LIST_OF_AUX_CODES","listAuxCodes","allAuxCodes","promises","forEach","GET_ALL_AUX_CODES","GET_SITE_INFO","GET_ORG_INFO","orgSettings","GET_ORGANIZATION_SETTING","GET_TENANT_DATA","GET_URL_MAPPING","GET_AI_FEATURE_FLAGS","aiFeature","dialPlan","GET_DIAL_PLAN_DATA","getOutdialAniEntries","params","outdialANI","search","MAIN_METHODS","GET_OUTDIAL_ANI_ENTRIES","queryParams","undefined","queryString","length","join","outdialAniEntries","exports"],"sources":["index.ts"],"sourcesContent":["/**\n * @packageDocumentation\n * @module AgentConfigService\n */\n\nimport {HTTP_METHODS} from '../../types';\nimport LoggerProxy from '../../logger-proxy';\nimport {\n DesktopProfileResponse,\n ListAuxCodesResponse,\n AgentResponse,\n TenantData,\n OrgInfo,\n OrgSettings,\n URLMapping,\n TeamList,\n DialPlanEntity,\n Profile,\n ListTeamsResponse,\n AuxCode,\n MultimediaProfileResponse,\n SiteInfo,\n OutdialAniEntriesResponse,\n OutdialAniParams,\n AIFeatureFlagsResponse,\n} from './types';\nimport WebexRequest from '../core/WebexRequest';\nimport {WCC_API_GATEWAY} from '../constants';\nimport {CONFIG_FILE_NAME, METHODS as MAIN_METHODS} from '../../constants';\nimport {parseAgentConfigs} from './Util';\nimport {\n DEFAULT_AUXCODE_ATTRIBUTES,\n DEFAULT_PAGE,\n DEFAULT_PAGE_SIZE,\n endPointMap,\n METHODS,\n} from './constants';\n\n/**\n * The AgentConfigService class provides methods to fetch agent configuration data.\n * @private\n * @ignore\n */\nexport default class AgentConfigService {\n private webexReq: WebexRequest;\n constructor() {\n this.webexReq = WebexRequest.getInstance();\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.\n * @throws {Error} - Throws an error if any API call fails or if the response status is not 200.\n * @public\n */\n public async getAgentConfig(orgId: string, agentId: string): Promise<Profile> {\n try {\n const userConfigPromise = this.getUserUsingCI(orgId, agentId);\n const orgInfoPromise = this.getOrgInfo(orgId);\n const orgSettingsPromise = this.getOrganizationSetting(orgId);\n const tenantDataPromise = this.getTenantData(orgId);\n const urlMappingPromise = this.getURLMapping(orgId);\n const aiFeatureFlagsPromise = this.getAIFeatureFlags(orgId);\n const auxCodesPromise = this.getAllAuxCodes(\n orgId,\n DEFAULT_PAGE_SIZE,\n [],\n DEFAULT_AUXCODE_ATTRIBUTES\n );\n\n const userConfigData = await userConfigPromise;\n LoggerProxy.info(`Fetched user data, userId: ${userConfigData.ciUserId}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const agentProfilePromise = this.getDesktopProfileById(orgId, userConfigData.agentProfileId);\n const siteInfoPromise = this.getSiteInfo(orgId, userConfigData.siteId);\n\n const userDialPlanPromise = agentProfilePromise.then((agentProfileConfigData) =>\n agentProfileConfigData.dialPlanEnabled ? this.getDialPlanData(orgId) : []\n );\n\n const userTeamPromise = userConfigData.teamIds\n ? this.getAllTeams(orgId, DEFAULT_PAGE_SIZE, userConfigData.teamIds)\n : Promise.resolve([]);\n\n const [\n agentProfileConfigData,\n siteInfo,\n userDialPlanData,\n userTeamData,\n orgInfo,\n orgSettingsData,\n tenantData,\n urlMappingData,\n aiFeatureFlagsData,\n auxCodesData,\n ] = await Promise.all([\n agentProfilePromise,\n siteInfoPromise,\n userDialPlanPromise,\n userTeamPromise,\n orgInfoPromise,\n orgSettingsPromise,\n tenantDataPromise,\n urlMappingPromise,\n aiFeatureFlagsPromise,\n auxCodesPromise,\n ]);\n const multimediaProfileId =\n userConfigData.multimediaProfileId ||\n userTeamData[0]?.multiMediaProfileId ||\n siteInfo.multimediaProfileId;\n\n LoggerProxy.info('Fetched all required data', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const response = parseAgentConfigs({\n userData: userConfigData,\n teamData: userTeamData,\n tenantData,\n orgInfoData: orgInfo,\n auxCodes: auxCodesData,\n orgSettingsData,\n agentProfileData: agentProfileConfigData,\n dialPlanData: userDialPlanData,\n urlMapping: urlMappingData,\n multimediaProfileId,\n aiFeatureFlags: aiFeatureFlagsData,\n });\n\n LoggerProxy.info('Parsing completed for agent-config', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n LoggerProxy.info('Fetched configuration data successfully', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n return response;\n } catch (error) {\n LoggerProxy.error(`getAgentConfig call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @ignore\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse> {\n LoggerProxy.info('Fetching user data using CI', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n try {\n const resource = endPointMap.userByCI(orgId, agentId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getUserUsingCI api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getUserUsingCI API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the desktop profile data for the given orgId and desktopProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the desktop profile is to be fetched.\n * @param {string} desktopProfileId - desktop profile ID for which the data is to be fetched.\n * @returns {Promise<DesktopProfileResponse>} - A promise that resolves to the desktop profile response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDesktopProfileById(\n orgId: string,\n desktopProfileId: string\n ): Promise<DesktopProfileResponse> {\n LoggerProxy.info('Fetching desktop profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.desktopProfile(orgId, desktopProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDesktopProfileById api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDesktopProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the multimedia profile data for the given orgId and multimediaProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the multimedia profile is to be fetched.\n * @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.\n * @private\n */\n public async getMultimediaProfileById(\n orgId: string,\n multimediaProfileId: string\n ): Promise<MultimediaProfileResponse> {\n LoggerProxy.info('Fetching multimedia profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.multimediaProfile(orgId, multimediaProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getMultimediaProfileById API success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getMultimediaProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of teams for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfTeams(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[]\n ): Promise<ListTeamsResponse> {\n LoggerProxy.info('Fetching list of teams', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n try {\n const resource = endPointMap.listTeams(orgId, page, pageSize, filter);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfTeams api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all teams from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]> {\n try {\n let allTeams: TeamList[] = [];\n let page = DEFAULT_PAGE;\n const firstResponse = await this.getListOfTeams(orgId, page, pageSize, filter);\n const totalPages = firstResponse.meta.totalPages;\n allTeams = allTeams.concat(firstResponse.data);\n const requests = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n requests.push(this.getListOfTeams(orgId, page, pageSize, filter));\n }\n const responses = await Promise.all(requests);\n\n for (const response of responses) {\n allTeams = allTeams.concat(response.data);\n }\n\n return allTeams;\n } catch (error) {\n LoggerProxy.error(`getAllTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of aux codes for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfAuxCodes(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<ListAuxCodesResponse> {\n LoggerProxy.info('Fetching list of aux codes', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n try {\n const resource = endPointMap.listAuxCodes(orgId, page, pageSize, filter, attributes);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfAuxCodes api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all aux codes from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllAuxCodes(\n orgId: string,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<AuxCode[]> {\n try {\n let allAuxCodes: AuxCode[] = [];\n let page = DEFAULT_PAGE;\n\n const firstResponse = await this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes);\n allAuxCodes = allAuxCodes.concat(firstResponse.data);\n const totalPages = firstResponse.meta.totalPages;\n\n const promises: Promise<ListAuxCodesResponse>[] = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n promises.push(this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes));\n }\n\n const responses = await Promise.all(promises);\n\n responses.forEach((response) => {\n allAuxCodes = allAuxCodes.concat(response.data);\n });\n\n return allAuxCodes;\n } catch (error) {\n LoggerProxy.error(`getAllAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the site data for the given orgId and siteId.\n * @ignore\n * @param {string} orgId - organization ID for which the site info is to be fetched.\n * @param {string} siteId - site ID for which the data is to be fetched.\n * @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo> {\n LoggerProxy.info('Fetching site information', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n try {\n const resource = endPointMap.siteInfo(orgId, siteId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getSiteInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getSiteInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization info for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization info is to be fetched.\n * @returns {Promise<OrgInfo>} - A promise that resolves to the organization info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrgInfo(orgId: string): Promise<OrgInfo> {\n try {\n const resource = endPointMap.orgInfo(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrgInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getOrgInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization settings for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization settings are to be fetched.\n * @returns {Promise<OrgSettings>} - A promise that resolves to the organization settings response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrganizationSetting(orgId: string): Promise<OrgSettings> {\n try {\n const resource = endPointMap.orgSettings(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrganizationSetting api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getOrganizationSetting API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the tenant data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the tenant data is to be fetched.\n * @returns {Promise<TenantData>} - A promise that resolves to the tenant data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getTenantData(orgId: string): Promise<TenantData> {\n try {\n const resource = endPointMap.tenantData(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getTenantData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getTenantData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the URL mapping data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the URL mapping is to be fetched.\n * @returns {Promise<URLMapping[]>} - A promise that resolves to the URL mapping response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getURLMapping(orgId: string): Promise<URLMapping[]> {\n try {\n const resource = endPointMap.urlMapping(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getURLMapping api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n\n return Promise.resolve(response.body.data);\n } catch (error) {\n LoggerProxy.error(`getURLMapping API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches AI feature resources for the organization.\n * @ignore\n * @param {string} orgId - organization ID for which AI feature resources are to be fetched.\n * @returns {Promise<AIFeatureFlagsResponse>} - AI feature resources response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAIFeatureFlags(orgId: string): Promise<AIFeatureFlagsResponse> {\n LoggerProxy.info('Fetching AI feature resources', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AI_FEATURE_FLAGS,\n });\n try {\n const resource = endPointMap.aiFeature(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getAIFeatureFlags api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AI_FEATURE_FLAGS,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getAIFeatureFlags API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AI_FEATURE_FLAGS,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the dial plan data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the dial plan data is to be fetched.\n * @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDialPlanData(orgId: string): Promise<DialPlanEntity[]> {\n try {\n const resource = endPointMap.dialPlan(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDialPlanData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDialPlanData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n throw error;\n }\n }\n\n // getQueues removed - use Queue instead\n\n /**\n * Fetches outdial ANI (Automatic Number Identification) entries for the given orgId and outdial ANI ID.\n * @ignore\n * @param {string} orgId - organization ID for which the outdial ANI entries are to be fetched.\n * @param {OutdialAniParams} params - parameters object containing outdialANI and optional pagination/filtering options\n * @returns {Promise<OutdialAniEntriesResponse>} - A promise that resolves to the outdial ANI entries response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOutdialAniEntries(\n orgId: string,\n params: OutdialAniParams\n ): Promise<OutdialAniEntriesResponse> {\n const {outdialANI, page, pageSize, search, filter, attributes} = params;\n\n LoggerProxy.info('Fetching outdial ANI entries', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n try {\n const queryParams = [];\n if (page !== undefined) queryParams.push(`page=${page}`);\n if (pageSize !== undefined) queryParams.push(`pageSize=${pageSize}`);\n if (search) queryParams.push(`search=${search}`);\n if (filter) queryParams.push(`filter=${filter}`);\n if (attributes) queryParams.push(`attributes=${attributes}`);\n\n const queryString = queryParams.length > 0 ? queryParams.join('&') : '';\n const resource = endPointMap.outdialAniEntries(orgId, outdialANI, queryString);\n\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n LoggerProxy.log('getOutdialAniEntries API success.', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n return response.body?.data;\n } catch (error) {\n LoggerProxy.error(`getOutdialAniEntries API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n throw error;\n }\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;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AACnI,KAAK,EAAE0H,UAAU,EAAEM,WAAW,CAAC;MAE9E,MAAMzE,QAAQ,GAAG,MAAM,IAAI,CAAC3D,QAAQ,CAAC0E,OAAO,CAAC;QAC3CC,OAAO,EAAEC,0BAAe;QACxBL,QAAQ;QACR3C,MAAM,EAAEiD,mBAAY,CAACC;MACvB,CAAC,CAAC;MAEFvD,oBAAW,CAAC0D,GAAG,CAAC,mCAAmC,EAAE;QACnDvD,MAAM,EAAEC,4BAAgB;QACxBC,MAAM,EAAEoG,mBAAY,CAACC;MACvB,CAAC,CAAC;MAEF,OAAOtE,QAAQ,CAACuB,IAAI,EAAEmB,IAAI;IAC5B,CAAC,CAAC,OAAOhC,KAAK,EAAE;MACd9C,oBAAW,CAAC8C,KAAK,CAAC,6CAA6CA,KAAK,EAAE,EAAE;QACtE3C,MAAM,EAAEC,4BAAgB;QACxBC,MAAM,EAAEoG,mBAAY,CAACC;MACvB,CAAC,CAAC;MACF,MAAM5D,KAAK;IACb;EACF;AACF;AAACmE,OAAA,CAAA3I,OAAA,GAAAC,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_types","require","_loggerProxy","_interopRequireDefault","_WebexRequest","_constants","_constants2","_Util","_constants3","e","__esModule","default","AgentConfigService","constructor","webexReq","WebexRequest","getInstance","getAgentConfig","orgId","agentId","orgConfigPromise","getOrgDesktopLoginConfig","userConfigPromise","getUserDesktopLoginConfig","auxCodesPromise","getAllAuxCodes","DEFAULT_PAGE_SIZE","DEFAULT_AUXCODE_ATTRIBUTES","userConfig","user","userData","agentProfile","agentProfileData","LoggerProxy","info","ciUserId","module","CONFIG_FILE_NAME","method","METHODS","GET_AGENT_CONFIG","siteInfoPromise","getSiteInfo","siteId","userTeamPromise","getAllTeams","dbId","userDialPlanPromise","dialPlanEnabled","getDialPlanData","Promise","resolve","siteInfo","userDialPlanData","userTeamData","orgConfig","auxCodesData","all","multimediaProfileId","multiMediaProfileId","response","parseAgentConfigs","teamData","auxCodes","dialPlanData","error","GET_ORG_DESKTOP_LOGIN_CONFIG","resource","endPointMap","orgDesktopLogin","request","service","WCC_API_GATEWAY","HTTP_METHODS","GET","statusCode","Error","log","body","GET_USER_DESKTOP_LOGIN_CONFIG","userDesktopLogin","getMultimediaProfileById","GET_MULTIMEDIA_PROFILE_BY_ID","multimediaProfile","getListOfTeams","page","pageSize","userDbId","GET_LIST_OF_TEAMS","listTeams","allTeams","DEFAULT_PAGE","firstResponse","totalPages","meta","concat","data","requests","push","responses","GET_ALL_TEAMS","getListOfAuxCodes","filter","attributes","GET_LIST_OF_AUX_CODES","listAuxCodes","allAuxCodes","promises","forEach","GET_ALL_AUX_CODES","getWellbeingBreakIdleCode","GET_WELLBEING_BREAK_IDLE_CODE","systemIdleCodes","result","wellbeingCode","find","code","active","isSystemCode","name","WELLBEING_BREAK_IDLE_CODE","id","isSystem","isDefault","defaultCode","GET_SITE_INFO","dialPlan","GET_DIAL_PLAN_DATA","getOutdialAniEntries","params","outdialANI","search","MAIN_METHODS","GET_OUTDIAL_ANI_ENTRIES","queryParams","undefined","queryString","length","join","outdialAniEntries","exports"],"sources":["index.ts"],"sourcesContent":["/**\n * @packageDocumentation\n * @module AgentConfigService\n */\n\nimport {HTTP_METHODS} from '../../types';\nimport LoggerProxy from '../../logger-proxy';\nimport {\n ListAuxCodesResponse,\n OrgDesktopLoginResponse,\n UserDesktopLoginResponse,\n TeamList,\n DialPlanEntity,\n Profile,\n ListTeamsResponse,\n AuxCode,\n MultimediaProfileResponse,\n SiteInfo,\n OutdialAniEntriesResponse,\n OutdialAniParams,\n Entity,\n} from './types';\nimport WebexRequest from '../core/WebexRequest';\nimport {WCC_API_GATEWAY} from '../constants';\nimport {CONFIG_FILE_NAME, METHODS as MAIN_METHODS} from '../../constants';\nimport {parseAgentConfigs} from './Util';\nimport {\n DEFAULT_AUXCODE_ATTRIBUTES,\n DEFAULT_PAGE,\n DEFAULT_PAGE_SIZE,\n endPointMap,\n METHODS,\n WELLBEING_BREAK_IDLE_CODE,\n} from './constants';\n\n/**\n * The AgentConfigService class provides methods to fetch agent configuration data.\n * @private\n * @ignore\n */\nexport default class AgentConfigService {\n private webexReq: WebexRequest;\n constructor() {\n this.webexReq = WebexRequest.getInstance();\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.\n * @throws {Error} - Throws an error if any API call fails or if the response status is not 200.\n * @public\n */\n public async getAgentConfig(orgId: string, agentId: string): Promise<Profile> {\n try {\n const orgConfigPromise = this.getOrgDesktopLoginConfig(orgId);\n const userConfigPromise = this.getUserDesktopLoginConfig(orgId, agentId);\n const auxCodesPromise = this.getAllAuxCodes(\n orgId,\n DEFAULT_PAGE_SIZE,\n [],\n DEFAULT_AUXCODE_ATTRIBUTES\n );\n\n const userConfig = await userConfigPromise;\n const {user: userData, agentProfile: agentProfileData} = userConfig;\n LoggerProxy.info(`Fetched user data, userId: ${userData.ciUserId}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const siteInfoPromise = this.getSiteInfo(orgId, userData.siteId);\n const userTeamPromise = this.getAllTeams(orgId, DEFAULT_PAGE_SIZE, userData.dbId);\n const userDialPlanPromise = agentProfileData.dialPlanEnabled\n ? this.getDialPlanData(orgId)\n : Promise.resolve([]);\n\n const [siteInfo, userDialPlanData, userTeamData, orgConfig, auxCodesData] = await Promise.all(\n [siteInfoPromise, userDialPlanPromise, userTeamPromise, orgConfigPromise, auxCodesPromise]\n );\n const multimediaProfileId =\n userTeamData[0]?.multiMediaProfileId || siteInfo.multimediaProfileId;\n\n LoggerProxy.info('Fetched all required data', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const response = parseAgentConfigs({\n orgConfig,\n userData,\n agentProfileData,\n teamData: userTeamData,\n auxCodes: auxCodesData,\n dialPlanData: userDialPlanData,\n multimediaProfileId,\n });\n\n LoggerProxy.info('Parsing completed for agent-config', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n LoggerProxy.info('Fetched configuration data successfully', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n return response;\n } catch (error) {\n LoggerProxy.error(`getAgentConfig call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the aggregated organization desktop-login configuration for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the configuration is to be fetched.\n * @returns {Promise<OrgDesktopLoginResponse>} - A promise that resolves to the organization configuration.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrgDesktopLoginConfig(orgId: string): Promise<OrgDesktopLoginResponse> {\n LoggerProxy.info('Fetching organization desktop-login configuration', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_DESKTOP_LOGIN_CONFIG,\n });\n\n try {\n const resource = endPointMap.orgDesktopLogin(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrgDesktopLoginConfig api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_DESKTOP_LOGIN_CONFIG,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getOrgDesktopLoginConfig API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_DESKTOP_LOGIN_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the aggregated user desktop-login configuration for the given orgId and ciUserId.\n * @ignore\n * @param {string} orgId - organization ID for which the configuration is to be fetched.\n * @param {string} ciUserId - CI user ID of the agent whose configuration is to be fetched.\n * @returns {Promise<UserDesktopLoginResponse>} - A promise that resolves to the user configuration.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getUserDesktopLoginConfig(\n orgId: string,\n ciUserId: string\n ): Promise<UserDesktopLoginResponse> {\n LoggerProxy.info('Fetching user desktop-login configuration', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_DESKTOP_LOGIN_CONFIG,\n });\n\n try {\n const resource = endPointMap.userDesktopLogin(orgId, ciUserId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getUserDesktopLoginConfig api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_DESKTOP_LOGIN_CONFIG,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getUserDesktopLoginConfig API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_DESKTOP_LOGIN_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the multimedia profile data for the given orgId and multimediaProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the multimedia profile is to be fetched.\n * @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.\n * @private\n */\n public async getMultimediaProfileById(\n orgId: string,\n multimediaProfileId: string\n ): Promise<MultimediaProfileResponse> {\n LoggerProxy.info('Fetching multimedia profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.multimediaProfile(orgId, multimediaProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getMultimediaProfileById API success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getMultimediaProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of teams the given user belongs to.\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string} userDbId - database ID of the user whose teams are to be fetched.\n * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfTeams(\n orgId: string,\n page: number,\n pageSize: number,\n userDbId: string\n ): Promise<ListTeamsResponse> {\n LoggerProxy.info('Fetching list of teams', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n try {\n const resource = endPointMap.listTeams(orgId, page, pageSize, userDbId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfTeams api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all teams the given user belongs to, from all pages\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string} userDbId - database ID of the user whose teams are to be fetched.\n * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllTeams(orgId: string, pageSize: number, userDbId: string): Promise<TeamList[]> {\n try {\n let allTeams: TeamList[] = [];\n let page = DEFAULT_PAGE;\n const firstResponse = await this.getListOfTeams(orgId, page, pageSize, userDbId);\n const totalPages = firstResponse.meta.totalPages;\n allTeams = allTeams.concat(firstResponse.data);\n const requests = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n requests.push(this.getListOfTeams(orgId, page, pageSize, userDbId));\n }\n const responses = await Promise.all(requests);\n\n for (const response of responses) {\n allTeams = allTeams.concat(response.data);\n }\n\n return allTeams;\n } catch (error) {\n LoggerProxy.error(`getAllTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of aux codes for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfAuxCodes(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<ListAuxCodesResponse> {\n LoggerProxy.info('Fetching list of aux codes', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n try {\n const resource = endPointMap.listAuxCodes(orgId, page, pageSize, filter, attributes);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfAuxCodes api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all aux codes from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllAuxCodes(\n orgId: string,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<AuxCode[]> {\n try {\n let allAuxCodes: AuxCode[] = [];\n let page = DEFAULT_PAGE;\n\n const firstResponse = await this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes);\n allAuxCodes = allAuxCodes.concat(firstResponse.data);\n const totalPages = firstResponse.meta.totalPages;\n\n const promises: Promise<ListAuxCodesResponse>[] = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n promises.push(this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes));\n }\n\n const responses = await Promise.all(promises);\n\n responses.forEach((response) => {\n allAuxCodes = allAuxCodes.concat(response.data);\n });\n\n return allAuxCodes;\n } catch (error) {\n LoggerProxy.error(`getAllAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Retrieves the exact system-managed WellbeingBreak idle code.\n * This query intentionally bypasses Desktop Profile filtering so the system code does not\n * need to appear in the normal agent-selectable idle-code list.\n * @param orgId - Organization identifier\n * @returns The normalized WellbeingBreak entity\n * @throws When the request fails or the exact system code is unavailable\n * @internal\n */\n public async getWellbeingBreakIdleCode(orgId: string): Promise<Entity> {\n LoggerProxy.info('Fetching WellbeingBreak system idle code', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_WELLBEING_BREAK_IDLE_CODE,\n });\n\n try {\n let page = DEFAULT_PAGE;\n let totalPages = 1;\n\n do {\n // Pagination is intentionally sequential so the lookup can stop as soon as the code is found.\n // eslint-disable-next-line no-await-in-loop\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource: endPointMap.systemIdleCodes(orgId, page, DEFAULT_PAGE_SIZE),\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n const result = response.body as ListAuxCodesResponse;\n const wellbeingCode = result.data?.find(\n (code) =>\n code.active === true &&\n code.isSystemCode === true &&\n code.name === WELLBEING_BREAK_IDLE_CODE\n );\n\n if (wellbeingCode) {\n return {\n id: wellbeingCode.id,\n name: wellbeingCode.name,\n isSystem: true,\n isDefault: wellbeingCode.defaultCode,\n };\n }\n\n totalPages = result.meta?.totalPages ?? 1;\n page += 1;\n } while (page < totalPages);\n\n throw new Error('WELLBEING_BREAK_IDLE_CODE_NOT_FOUND');\n } catch (error) {\n LoggerProxy.error(`getWellbeingBreakIdleCode API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_WELLBEING_BREAK_IDLE_CODE,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the site data for the given orgId and siteId.\n * @ignore\n * @param {string} orgId - organization ID for which the site info is to be fetched.\n * @param {string} siteId - site ID for which the data is to be fetched.\n * @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo> {\n LoggerProxy.info('Fetching site information', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n try {\n const resource = endPointMap.siteInfo(orgId, siteId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getSiteInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getSiteInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the dial plan data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the dial plan data is to be fetched.\n * @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDialPlanData(orgId: string): Promise<DialPlanEntity[]> {\n try {\n const resource = endPointMap.dialPlan(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDialPlanData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDialPlanData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n throw error;\n }\n }\n\n // getQueues removed - use Queue instead\n\n /**\n * Fetches outdial ANI (Automatic Number Identification) entries for the given orgId and outdial ANI ID.\n * @ignore\n * @param {string} orgId - organization ID for which the outdial ANI entries are to be fetched.\n * @param {OutdialAniParams} params - parameters object containing outdialANI and optional pagination/filtering options\n * @returns {Promise<OutdialAniEntriesResponse>} - A promise that resolves to the outdial ANI entries response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOutdialAniEntries(\n orgId: string,\n params: OutdialAniParams\n ): Promise<OutdialAniEntriesResponse> {\n const {outdialANI, page, pageSize, search, filter, attributes} = params;\n\n LoggerProxy.info('Fetching outdial ANI entries', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n try {\n const queryParams = [];\n if (page !== undefined) queryParams.push(`page=${page}`);\n if (pageSize !== undefined) queryParams.push(`pageSize=${pageSize}`);\n if (search) queryParams.push(`search=${search}`);\n if (filter) queryParams.push(`filter=${filter}`);\n if (attributes) queryParams.push(`attributes=${attributes}`);\n\n const queryString = queryParams.length > 0 ? queryParams.join('&') : '';\n const resource = endPointMap.outdialAniEntries(orgId, outdialANI, queryString);\n\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n LoggerProxy.log('getOutdialAniEntries API success.', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n return response.body?.data;\n } catch (error) {\n LoggerProxy.error(`getOutdialAniEntries API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n throw error;\n }\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AAgBA,IAAAG,aAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAOqB,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjCrB;AACA;AACA;AACA;;AAgCA;AACA;AACA;AACA;AACA;AACe,MAAMG,kBAAkB,CAAC;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AE,EAAE;QACtE7B,MAAM,EAAEC,4BAAgB;QACxBC,MAAM,EAAE8F,mBAAY,CAACC;MACvB,CAAC,CAAC;MACF,MAAMpE,KAAK;IACb;EACF;AACF;AAAC2E,OAAA,CAAAjI,OAAA,GAAAC,kBAAA","ignoreList":[]}
@@ -9,8 +9,12 @@ exports.WRAP_UP_CODE = exports.IDLE_CODE = exports.CC_TASK_EVENTS = exports.CC_E
9
9
  * @internal
10
10
  */
11
11
 
12
+ /** Desktop Profile access level for a collaboration destination category. */
13
+
12
14
  /**
13
- * Events emitted on task objects
15
+ * Contact Center backend and realtime event types.
16
+ *
17
+ * Includes task lifecycle, transcript, suggested-response, and AI summary events.
14
18
  * @enum {string}
15
19
  * @private
16
20
  * @ignore
@@ -60,6 +64,8 @@ const CC_TASK_EVENTS = exports.CC_TASK_EVENTS = {
60
64
  PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',
61
65
  /** Event emitted when participant leaving conference fails */
62
66
  PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',
67
+ /** Event emitted when dropping another conference participant fails */
68
+ PARTICIPANT_DROP_CONFERENCE_FAILED: 'ParticipantDropConferenceFailed',
63
69
  /** Event emitted when consultation conference end fails */
64
70
  AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',
65
71
  /** Event emitted when conference is successfully transferred */
@@ -138,17 +144,20 @@ const CC_TASK_EVENTS = exports.CC_TASK_EVENTS = {
138
144
  SUGGESTED_RESPONSE: 'SUGGESTED_RESPONSE',
139
145
  /** Event emitted when backend acknowledges it is listening for more context */
140
146
  SUGGESTED_RESPONSE_ACKNOWLEDGE: 'SUGGESTED_RESPONSE_ACKNOWLEDGE',
141
- /** Event emitted when a mid-call summary is available */
147
+ /** Event received when a post-call summary is available through realtime delivery */
148
+ POST_CALL_SUMMARY: 'POST_CALL_SUMMARY',
149
+ /** Event received when a mid-call summary is available through realtime delivery */
142
150
  MID_CALL_SUMMARY: 'MID_CALL_SUMMARY',
143
- /** Event emitted when a post-call summary is available */
144
- POST_CALL_SUMMARY: 'POST_CALL_SUMMARY'
151
+ /** Event received when AI-summary feature enablement is available through realtime delivery */
152
+ FEATURE_ENABLEMENT: 'FEATURE_ENABLEMENT',
153
+ /** Event received when a subsequent agent receives a mid-call summary */
154
+ MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT: 'MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT'
145
155
  };
146
156
 
147
157
  /**
148
158
  * Events emitted on Contact Center agent operations
149
159
  * @enum {string}
150
- * @private
151
- * @ignore
160
+ * @public
152
161
  */
153
162
  const CC_AGENT_EVENTS = exports.CC_AGENT_EVENTS = {
154
163
  /** Welcome event when agent connects to websocket/backend */
@@ -186,7 +195,9 @@ const CC_AGENT_EVENTS = exports.CC_AGENT_EVENTS = {
186
195
  /** Event emitted when retrieving buddy agents list fails */
187
196
  AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',
188
197
  /** Event emitted when contact is reserved for agent */
189
- AGENT_CONTACT_RESERVED: 'AgentContactReserved'
198
+ AGENT_CONTACT_RESERVED: 'AgentContactReserved',
199
+ /** Agent-level Agent Wellness Break notification */
200
+ WELLNESS_BREAK: 'WellnessBreak'
190
201
  };
191
202
 
192
203
  /**
@@ -228,11 +239,12 @@ const CC_EVENTS = exports.CC_EVENTS = {
228
239
  */
229
240
 
230
241
  /**
231
- * Represents the response from getUserUsingCI method.
242
+ * Agent identity carried by the `user` section of the user desktop-login aggregate.
232
243
  */
233
244
 
234
245
  /**
235
- * Represents the response from getDesktopProfileById method.
246
+ * Desktop Profile settings carried by the `agentProfile` section of the user desktop-login
247
+ * aggregate.
236
248
  */
237
249
 
238
250
  /**
@@ -257,13 +269,15 @@ const CC_EVENTS = exports.CC_EVENTS = {
257
269
  */
258
270
 
259
271
  /**
260
- * Basic organization information in the contact center system
272
+ * Basic organization information carried by the `organization` section of the org desktop-login
273
+ * aggregate.
261
274
  * @private
262
275
  * @ignore
263
276
  */
264
277
 
265
278
  /**
266
- * Organization-wide feature settings and configurations
279
+ * Organization-wide feature settings carried by the `organizationSetting` section of the org
280
+ * desktop-login aggregate.
267
281
  * @private
268
282
  */
269
283
 
@@ -273,12 +287,27 @@ const CC_EVENTS = exports.CC_EVENTS = {
273
287
  */
274
288
 
275
289
  /**
276
- * Tenant-level configuration data and settings
290
+ * Tenant-level configuration carried by the `tenantConfiguration` section of the org
291
+ * desktop-login aggregate.
277
292
  * @private
278
293
  */
279
294
 
280
295
  /**
281
- * URL mapping configuration for external integrations
296
+ * URL mappings carried by the `urlMappings` section of the org desktop-login aggregate, keyed by
297
+ * mapping name. The aggregate returns `{}` when the organization has no Acqueon configuration.
298
+ * @public
299
+ */
300
+
301
+ /**
302
+ * Organization-level Microsoft Teams integration configuration carried by the `microsoftConfig`
303
+ * section of the org desktop-login aggregate. The whole section is absent when the organization
304
+ * has no Microsoft integration.
305
+ * @public
306
+ */
307
+
308
+ /**
309
+ * Organization-level Webex integration configuration carried by the `webexConfig` section of the
310
+ * org desktop-login aggregate.
282
311
  * @public
283
312
  */
284
313
 
@@ -352,27 +381,31 @@ const WRAP_UP_CODE = exports.WRAP_UP_CODE = 'WRAP_UP_CODE';
352
381
  */
353
382
 
354
383
  /**
355
- * Team configuration information
384
+ * Basic queue configuration information
356
385
  * @public
357
386
  */
358
387
 
359
388
  /**
360
- * Basic queue configuration information
389
+ * URL mappings for external system integrations
361
390
  * @public
362
391
  */
363
392
 
364
393
  /**
365
- * URL mappings for external system integrations
394
+ * AI feature flags carried by the `aiFeature` section of the org desktop-login aggregate.
366
395
  * @public
367
396
  */
368
397
 
369
398
  /**
370
- * AI feature resource row returned by /v2/ai-feature API.
399
+ * Aggregated organization configuration returned by `organization/{orgId}/desktop-login`.
400
+ * Replaces the separate organization, organization-setting, tenant-configuration,
401
+ * org-url-mapping and ai-feature calls.
371
402
  * @public
372
403
  */
373
404
 
374
405
  /**
375
- * Response type for list AI feature resources API.
406
+ * Aggregated user configuration returned by
407
+ * `organization/{orgId}/v2/user/by-ci-user-id/{ciUserId}/desktop-login`.
408
+ * Replaces the separate user and agent-profile calls.
376
409
  * @public
377
410
  */
378
411
 
@@ -1 +1 @@
1
- {"version":3,"names":["CC_TASK_EVENTS","exports","AGENT_CONTACT_ASSIGN_FAILED","AGENT_CONTACT_OFFER_RONA","AGENT_CONTACT_HELD","AGENT_CONTACT_HOLD_FAILED","AGENT_CONTACT_UNHELD","AGENT_CONTACT_UNHOLD_FAILED","AGENT_CONSULT_CREATED","AGENT_OFFER_CONSULT","AGENT_CONSULTING","AGENT_CONSULT_FAILED","AGENT_CTQ_FAILED","AGENT_CTQ_CANCELLED","AGENT_CTQ_CANCEL_FAILED","AGENT_CONSULT_ENDED","AGENT_CONSULT_END_FAILED","AGENT_CONSULT_CONFERENCE_ENDED","AGENT_CONSULT_CONFERENCING","AGENT_CONSULT_CONFERENCED","AGENT_CONSULT_CONFERENCE_FAILED","PARTICIPANT_JOINED_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE_FAILED","AGENT_CONSULT_CONFERENCE_END_FAILED","AGENT_CONFERENCE_TRANSFERRED","AGENT_CONFERENCE_TRANSFER_FAILED","PARTICIPANT_POST_CALL_ACTIVITY","CONSULTED_PARTICIPANT_MOVING","AGENT_BLIND_TRANSFERRED","AGENT_BLIND_TRANSFER_FAILED","AGENT_VTEAM_TRANSFERRED","AGENT_VTEAM_TRANSFER_FAILED","AGENT_CONSULT_TRANSFERRING","AGENT_CONSULT_TRANSFERRED","AGENT_CONSULT_TRANSFER_FAILED","CONTACT_RECORDING_PAUSED","CONTACT_RECORDING_STARTED","CONTACT_RECORDING_PAUSE_FAILED","CONTACT_RECORDING_RESUMED","CONTACT_RECORDING_RESUME_FAILED","CONTACT_ENDED","CONTACT_MERGED","CONTACT_UPDATED","CONTACT_OWNER_CHANGED","AGENT_CONTACT_END_FAILED","AGENT_WRAPUP","AGENT_WRAPPEDUP","AGENT_WRAPUP_FAILED","AGENT_OUTBOUND_FAILED","AGENT_CONTACT","AGENT_OFFER_CONTACT","AGENT_CONTACT_ASSIGNED","AGENT_CONTACT_UNASSIGNED","AGENT_INVITE_FAILED","AGENT_OFFER_CAMPAIGN_RESERVATION","CAMPAIGN_CONTACT_UPDATED","CAMPAIGN_PREVIEW_ACCEPT_FAILED","CAMPAIGN_PREVIEW_SKIP_FAILED","CAMPAIGN_PREVIEW_REMOVE_FAILED","REAL_TIME_TRANSCRIPTION","SUGGESTED_RESPONSE","SUGGESTED_RESPONSE_ACKNOWLEDGE","MID_CALL_SUMMARY","POST_CALL_SUMMARY","CC_AGENT_EVENTS","WELCOME","AGENT_RELOGIN_SUCCESS","AGENT_RELOGIN_FAILED","AGENT_DN_REGISTERED","AGENT_LOGOUT","AGENT_LOGOUT_SUCCESS","AGENT_LOGOUT_FAILED","AGENT_STATION_LOGIN","AGENT_STATION_LOGIN_SUCCESS","AGENT_STATION_LOGIN_FAILED","AGENT_STATE_CHANGE","AGENT_MULTI_LOGIN","AGENT_STATE_CHANGE_SUCCESS","AGENT_STATE_CHANGE_FAILED","AGENT_BUDDY_AGENTS","AGENT_BUDDY_AGENTS_SUCCESS","AGENT_BUDDY_AGENTS_RETRIEVE_FAILED","AGENT_CONTACT_RESERVED","CC_EVENTS","IDLE_CODE","WRAP_UP_CODE"],"sources":["types.ts"],"sourcesContent":["import * as Agent from '../agent/types';\n\n/**\n * Generic type for converting a const enum object into a union type of its values\n * @internal\n */\ntype Enum<T extends Record<string, unknown>> = T[keyof T];\n\n/**\n * Events emitted on task objects\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_TASK_EVENTS = {\n /** Event emitted when assigning contact to agent fails */\n AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',\n /** Event emitted when agent does not respond to contact offer */\n AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',\n /** Event emitted when contact is put on hold */\n AGENT_CONTACT_HELD: 'AgentContactHeld',\n /** Event emitted when putting contact on hold fails */\n AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',\n /** Event emitted when contact is taken off hold */\n AGENT_CONTACT_UNHELD: 'AgentContactUnheld',\n /** Event emitted when taking contact off hold fails */\n AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',\n /** Event emitted when consultation is created */\n AGENT_CONSULT_CREATED: 'AgentConsultCreated',\n /** Event emitted when consultation is offered */\n AGENT_OFFER_CONSULT: 'AgentOfferConsult',\n /** Event emitted when agent is consulting */\n AGENT_CONSULTING: 'AgentConsulting',\n /** Event emitted when consultation fails */\n AGENT_CONSULT_FAILED: 'AgentConsultFailed',\n /** Event emitted when consulting to queue (CTQ) fails */\n AGENT_CTQ_FAILED: 'AgentCtqFailed',\n /** Event emitted when CTQ is cancelled */\n AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',\n /** Event emitted when CTQ cancellation fails */\n AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',\n /** Event emitted when consultation ends */\n AGENT_CONSULT_ENDED: 'AgentConsultEnded',\n /** Event emitted when ending consultation fails */\n AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',\n /** Event emitted when consultation conference ends */\n AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',\n /** Event emitted when consultation conference is in progress */\n AGENT_CONSULT_CONFERENCING: 'AgentConsultConferencing',\n /** Event emitted when consultation conference starts */\n AGENT_CONSULT_CONFERENCED: 'AgentConsultConferenced',\n /** Event emitted when consultation conference fails */\n AGENT_CONSULT_CONFERENCE_FAILED: 'AgentConsultConferenceFailed',\n /** Event emitted when participant joins conference */\n PARTICIPANT_JOINED_CONFERENCE: 'ParticipantJoinedConference',\n /** Event emitted when participant leaves conference */\n PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',\n /** Event emitted when participant leaving conference fails */\n PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',\n /** Event emitted when consultation conference end fails */\n AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',\n /** Event emitted when conference is successfully transferred */\n AGENT_CONFERENCE_TRANSFERRED: 'AgentConferenceTransferred',\n /** Event emitted when conference transfer fails */\n AGENT_CONFERENCE_TRANSFER_FAILED: 'AgentConferenceTransferFailed',\n /** Event emitted for post-call activity by participant */\n PARTICIPANT_POST_CALL_ACTIVITY: 'ParticipantPostCallActivity',\n /** Event emitted when consulted participant is being moved/transferred */\n CONSULTED_PARTICIPANT_MOVING: 'ConsultedParticipantMoving',\n /** Event emitted when contact is blind transferred */\n AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',\n /** Event emitted when blind transfer fails */\n AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',\n /** Event emitted when contact is transferred to virtual team */\n AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',\n /** Event emitted when virtual team transfer fails */\n AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',\n /** Event emitted when consultation transfer is in progress */\n AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',\n /** Event emitted when consultation transfer completes */\n AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',\n /** Event emitted when consultation transfer fails */\n AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',\n /** Event emitted when contact recording is paused */\n CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',\n /** Event emitted when contact recording is started */\n CONTACT_RECORDING_STARTED: 'ContactRecordingStarted',\n /** Event emitted when pausing contact recording fails */\n CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',\n /** Event emitted when contact recording is resumed */\n CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',\n /** Event emitted when resuming contact recording fails */\n CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',\n /** Event emitted when contact ends */\n CONTACT_ENDED: 'ContactEnded',\n /** Event emitted when contact is merged */\n CONTACT_MERGED: 'ContactMerged',\n /** Event emitted when contact payload is updated (routing updates) */\n CONTACT_UPDATED: 'ContactUpdated',\n /** Event emitted when contact owner changes */\n CONTACT_OWNER_CHANGED: 'ContactOwnerChanged',\n /** Event emitted when ending contact fails */\n AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',\n /** Event emitted when agent enters wrap-up state */\n AGENT_WRAPUP: 'AgentWrapup',\n /** Event emitted when agent completes wrap-up */\n AGENT_WRAPPEDUP: 'AgentWrappedUp',\n /** Event emitted when wrap-up fails */\n AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',\n /** Event emitted when outbound call fails */\n AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',\n /** Event emitted for general agent contact events */\n AGENT_CONTACT: 'AgentContact',\n /** Event emitted when contact is offered to agent */\n AGENT_OFFER_CONTACT: 'AgentOfferContact',\n /** Event emitted when contact is assigned to agent */\n AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',\n /** Event emitted when contact is unassigned from agent */\n AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',\n /** Event emitted when inviting agent fails */\n AGENT_INVITE_FAILED: 'AgentInviteFailed',\n /** Event emitted when a campaign preview contact is offered to the agent */\n AGENT_OFFER_CAMPAIGN_RESERVATION: 'AgentOfferCampaignReservation',\n /** Event emitted when campaign contact is updated */\n CAMPAIGN_CONTACT_UPDATED: 'CampaignContactUpdated',\n /** Event emitted when accepting a campaign preview contact fails */\n CAMPAIGN_PREVIEW_ACCEPT_FAILED: 'CampaignPreviewAcceptFailed',\n /** Event emitted when skipping a campaign preview contact fails */\n CAMPAIGN_PREVIEW_SKIP_FAILED: 'CampaignPreviewSkipFailed',\n /** Event emitted when removing a campaign preview contact fails */\n CAMPAIGN_PREVIEW_REMOVE_FAILED: 'CampaignPreviewRemoveFailed',\n /** Event emitted when a real-time transcript chunk is received */\n REAL_TIME_TRANSCRIPTION: 'REAL_TIME_TRANSCRIPTION',\n /** Event emitted when an AI assistant suggested response is available */\n SUGGESTED_RESPONSE: 'SUGGESTED_RESPONSE',\n /** Event emitted when backend acknowledges it is listening for more context */\n SUGGESTED_RESPONSE_ACKNOWLEDGE: 'SUGGESTED_RESPONSE_ACKNOWLEDGE',\n /** Event emitted when a mid-call summary is available */\n MID_CALL_SUMMARY: 'MID_CALL_SUMMARY',\n /** Event emitted when a post-call summary is available */\n POST_CALL_SUMMARY: 'POST_CALL_SUMMARY',\n} as const;\n\n/**\n * Events emitted on Contact Center agent operations\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_AGENT_EVENTS = {\n /** Welcome event when agent connects to websocket/backend */\n WELCOME: 'Welcome',\n /** Event emitted when agent re-login is successful */\n AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',\n /** Event emitted when agent re-login fails */\n AGENT_RELOGIN_FAILED: 'AgentReloginFailed',\n /** Event emitted when agent DN registration completes */\n AGENT_DN_REGISTERED: 'AgentDNRegistered',\n /** Event emitted when agent initiates logout */\n AGENT_LOGOUT: 'Logout',\n /** Event emitted when agent logout is successful */\n AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',\n /** Event emitted when agent logout fails */\n AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',\n /** Event emitted when agent initiates station login */\n AGENT_STATION_LOGIN: 'StationLogin',\n /** Event emitted when agent station login is successful */\n AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',\n /** Event emitted when agent station login fails */\n AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',\n /** Event emitted when agent's state changes */\n AGENT_STATE_CHANGE: 'AgentStateChange',\n /** Event emitted when multiple logins detected for same agent */\n AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',\n /** Event emitted when agent state change is successful */\n AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',\n /** Event emitted when agent state change fails */\n AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',\n /** Event emitted when requesting buddy agents list */\n AGENT_BUDDY_AGENTS: 'BuddyAgents',\n /** Event emitted when buddy agents list is successfully retrieved */\n AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',\n /** Event emitted when retrieving buddy agents list fails */\n AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',\n /** Event emitted when contact is reserved for agent */\n AGENT_CONTACT_RESERVED: 'AgentContactReserved',\n} as const;\n\n/**\n * Combined Contact Center events including both agent and task events\n * @enum {string}\n * @public\n */\nexport const CC_EVENTS = {\n ...CC_AGENT_EVENTS,\n ...CC_TASK_EVENTS,\n} as const;\n\n/**\n * Event data received when agent connects to the system\n * @public\n */\nexport type WelcomeEvent = {\n /** ID of the agent that connected */\n agentId: string;\n};\n\n/**\n * Available login options for voice channel access\n * 'AGENT_DN' - Login using agent's DN\n * 'EXTENSION' - Login using extension number\n * 'BROWSER' - Login using browser-based WebRTC\n * @public\n */\nexport type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';\n\n/**\n * Response type for welcome events which can be either success or error\n * @public\n */\nexport type WelcomeResponse = WelcomeEvent | Error;\n\n/**\n * Type representing the union of all possible Contact Center events\n * @public\n */\nexport type CC_EVENTS = Enum<typeof CC_EVENTS>;\n\n/**\n * WebSocket event structure for Contact Center events\n * @public\n */\nexport type WebSocketEvent = {\n /** Type of the event */\n type: CC_EVENTS;\n /** Event payload data */\n data:\n | WelcomeEvent\n | Agent.StationLoginSuccess\n | Agent.LogoutSuccess\n | Agent.ReloginSuccess\n | Agent.StateChangeSuccess\n | Agent.BuddyAgentsSuccess;\n};\n\n/**\n * Represents the response from getUserUsingCI method.\n */\nexport type AgentResponse = {\n /**\n * ID of the agent.\n */\n id: string;\n\n /**\n * The ciUserId of the agent.\n */\n ciUserId: string;\n\n /**\n * The first name of the agent.\n */\n firstName: string;\n\n /**\n * The last name of the agent.\n */\n lastName: string;\n\n /**\n * Identifier for a Desktop Profile.\n */\n agentProfileId: string;\n\n /**\n * The email address of the agent.\n */\n email: string;\n\n /**\n * Team IDs assigned to the agent.\n */\n teamIds: string[];\n\n /**\n * Multimedia profile ID associated with the agent.\n */\n multimediaProfileId: string;\n\n /**\n * Skill profile ID of the agent.\n */\n skillProfileId: string;\n\n /**\n * Site ID of the agent.\n */\n siteId: string;\n\n /**\n * Database ID of the agent.\n */\n dbId?: string;\n\n /**\n * The default dialed number of the agent.\n * Note: The API returns this field as \"deafultDialledNumber\" (with typo).\n */\n deafultDialledNumber?: string;\n};\n\n/**\n * Represents the response from getDesktopProfileById method.\n */\nexport type DesktopProfileResponse = {\n /**\n * Unique identifier of the agent profile configuration.\n */\n id: string;\n\n /**\n * Display name for the agent profile.\n */\n name: string;\n\n /**\n * Description of the agent profile.\n */\n description: string;\n\n /**\n * Parent entity type for the profile (for example ORGANIZATION).\n */\n parentType: string;\n\n /**\n * Indicates whether screen pop is enabled.\n */\n screenPopup: boolean;\n\n /**\n * Represents the voice options of an agent.\n */\n loginVoiceOptions: LoginOption[];\n\n /**\n * Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.\n */\n accessWrapUpCode: string;\n\n /**\n * Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.\n */\n accessIdleCode: string;\n\n /**\n * Wrap-up codes list that the agents can select when they wrap up a contact.\n */\n wrapUpCodes: string[];\n\n /**\n * Idle codes list that the agents can select in Agent Desktop.\n */\n idleCodes: string[];\n\n /**\n * Dial plan enabled for the agent.\n */\n dialPlanEnabled: boolean;\n\n /**\n * Last agent routing enabled for the agent.\n */\n lastAgentRouting: boolean;\n\n /**\n * Auto wrap-up allowed.\n */\n autoWrapUp: boolean;\n\n /**\n * Whether the agent personal greeting is enabled.\n */\n agentPersonalGreeting: boolean;\n\n /**\n * Auto answer allowed.\n */\n autoAnswer: boolean;\n\n /**\n * Auto wrap-up after seconds.\n */\n autoWrapAfterSeconds: number;\n\n /**\n * Agent available after outdial.\n */\n agentAvailableAfterOutdial: boolean;\n\n /**\n * Allow auto wrap-up extension.\n */\n allowAutoWrapUpExtension: boolean;\n\n /**\n * Access control for queues assigned to the agent (ALL or SPECIFIC).\n */\n accessQueue: string;\n\n /**\n * Queue identifiers available to the agent when access is SPECIFIC.\n */\n queues: string[];\n\n /**\n * Access control for entry points assigned to the agent.\n */\n accessEntryPoint: string;\n\n /**\n * Entry point identifiers available to the agent when access is SPECIFIC.\n */\n entryPoints: string[];\n\n /**\n * Access control for buddy teams assigned to the agent.\n */\n accessBuddyTeam: string;\n\n /**\n * Buddy team identifiers available to the agent when access is SPECIFIC.\n */\n buddyTeams: string[];\n\n /**\n * Outdial enabled for the agent.\n */\n outdialEnabled: boolean;\n\n /**\n * Outdial entry point ID of the agent.\n */\n outdialEntryPointId: string;\n\n /**\n * Outdial ANI ID of the agent.\n */\n outdialANIId: string;\n\n /**\n * Consult to queue allowed.\n */\n consultToQueue: boolean;\n\n /**\n * Address book ID of the agent.\n */\n addressBookId: string;\n\n /**\n * Viewable statistics of the agent.\n */\n viewableStatistics: {\n id: string;\n agentStats: boolean;\n accessQueueStats: string;\n contactServiceQueues: string[];\n loggedInTeamStats: boolean;\n accessTeamStats: string;\n teams: string[];\n };\n\n /**\n * Agent DN validation of the agent.\n */\n agentDNValidation: string;\n\n /**\n * Additional DN validation criteria configured for the agent.\n */\n agentDNValidationCriterions: string[];\n\n /**\n * Dial plans of the agent.\n */\n dialPlans: string[];\n\n /**\n * Timeout desktop inactivity custom enabled.\n */\n timeoutDesktopInactivityCustomEnabled: boolean;\n\n /**\n * Timeout desktop inactivity minutes.\n */\n timeoutDesktopInactivityMins: number;\n\n /**\n * Show user details in Microsoft enabled or not.\n */\n showUserDetailsMS: boolean;\n\n /**\n * State synchronization in Microsoft enabled or not.\n */\n stateSynchronizationMS: boolean;\n\n /**\n * Show user details in Webex enabled or not.\n */\n showUserDetailsWebex: boolean;\n\n /**\n * State synchronization in Webex enabled or not.\n */\n stateSynchronizationWebex: boolean;\n\n /**\n * Threshold rules configured for the agent profile.\n */\n thresholdRules: Array<Record<string, string | number>>;\n\n /**\n * Whether the agent profile is currently active.\n */\n active: boolean;\n\n /**\n * Whether this profile is the system default.\n */\n systemDefault: boolean;\n\n /**\n * Timestamp when the profile was created.\n */\n createdTime: number;\n\n /**\n * Timestamp when the profile was last updated.\n */\n lastUpdatedTime: number;\n};\n\n/**\n * Response containing multimedia profile configuration for an agent\n * Defines capabilities across different communication channels\n * @private\n */\nexport type MultimediaProfileResponse = {\n /** Organization identifier */\n organizationId: string;\n /** Profile identifier */\n id: string;\n /** Version number of the profile */\n version: number;\n /** Profile name */\n name: string;\n /** Profile description */\n description: string;\n /** Maximum number of concurrent chat interactions */\n chat: number;\n /** Maximum number of concurrent email interactions */\n email: number;\n /** Maximum number of concurrent voice interactions */\n telephony: number;\n /** Maximum number of concurrent social media interactions */\n social: number;\n /** Whether the profile is active */\n active: boolean;\n /** Whether channel blending is enabled */\n blendingModeEnabled: boolean;\n /** Type of blending mode configuration */\n blendingMode: string;\n /** Whether this is the system default profile */\n systemDefault: boolean;\n /** Timestamp when profile was created */\n createdTime: number;\n /** Timestamp when profile was last updated */\n lastUpdatedTime: number;\n};\n\n/**\n * Response from subscription requests containing WebSocket connection details\n * @public\n */\nexport type SubscribeResponse = {\n /** HTTP status code of the response */\n statusCode: number;\n /** Response body containing connection details */\n body: {\n /** WebSocket URL for real-time updates */\n webSocketUrl?: string;\n /** Unique subscription identifier */\n subscriptionId?: string;\n };\n /** Optional status or error message */\n message: string | null;\n};\n\nexport type AuxCode = {\n /**\n * ID of the Auxiliary Code.\n */\n id: string;\n\n /**\n * Indicates whether the auxiliary code is active or not.\n */\n active: boolean;\n\n /**\n * Indicates whether this is the default code (true) or not (false).\n */\n defaultCode: boolean;\n\n /**\n * Indicates whether this is the system default code (true) or not (false).\n */\n isSystemCode: boolean;\n\n /**\n * A short description indicating the context of the code.\n */\n description: string;\n\n /**\n * Name of the Auxiliary Code.\n */\n name: string;\n\n /**\n * Indicates the work type associated with this code.\n */\n workTypeCode: string;\n};\n\nexport type ListAuxCodesResponse = {\n data: AuxCode[];\n meta: {\n page: number;\n pageSize: number;\n totalPages: number;\n totalRecords: number;\n };\n};\n\n/**\n * Configuration for a team in the contact center system\n * @private\n */\nexport type TeamList = {\n /** Unique identifier for the team */\n id: string;\n /** Team name */\n name: string;\n /** Type of team (e.g., 'AGENT_BASED') */\n teamType: string;\n /** Current status of the team */\n teamStatus: string;\n /** Whether the team is active */\n active: boolean;\n /** Site identifier where team is located */\n siteId: string;\n /** Name of the site */\n siteName: string;\n /** Optional multimedia profile ID for team */\n multiMediaProfileId?: string;\n /** List of user IDs belonging to team */\n userIds: string[];\n /** Whether queue rankings are enabled for team */\n rankQueuesForTeam: boolean;\n /** Ordered list of queue rankings */\n queueRankings: string[];\n /** Optional database identifier */\n dbId?: string;\n /** Optional desktop layout identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Response type for listing teams with pagination metadata\n * @private\n */\nexport type ListTeamsResponse = {\n /** Array of team configurations */\n data: TeamList[];\n /** Pagination metadata */\n meta: {\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Basic organization information in the contact center system\n * @private\n * @ignore\n */\nexport type OrgInfo = {\n /** Tenant identifier */\n tenantId: string;\n /** Organization timezone */\n timezone: string;\n /** Current environment (e.g., 'produs1', 'intgus1') */\n environment: string;\n};\n\n/**\n * Organization-wide feature settings and configurations\n * @private\n */\nexport type OrgSettings = {\n /** Whether WebRTC functionality is enabled */\n webRtcEnabled: boolean;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData: boolean;\n /** Whether campaign manager features are enabled */\n campaignManagerEnabled: boolean;\n};\n\n/**\n * Contact center site configuration information\n * @private\n */\nexport type SiteInfo = {\n /** Unique site identifier */\n id: string;\n /** Site name */\n name: string;\n /** Whether site is active */\n active: boolean;\n /** Multimedia profile ID for site */\n multimediaProfileId: string;\n /** Whether this is the system default site */\n systemDefault: boolean;\n};\n\n/**\n * Tenant-level configuration data and settings\n * @private\n */\nexport type TenantData = {\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins: number;\n /** Whether default DN is enforced */\n forceDefaultDn: boolean;\n /** Regex pattern for default DN validation */\n dnDefaultRegex: string;\n /** Regex pattern for other DN validation */\n dnOtherRegex: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Whether outbound dialing is enabled */\n outdialEnabled: boolean;\n /** Whether ending calls is enabled */\n endCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n endConsultEnabled: boolean;\n /** Whether call variables are suppressed */\n callVariablesSuppressed: boolean;\n /** Whether desktop inactivity timeout is enabled */\n timeoutDesktopInactivityEnabled: boolean;\n /** Lost connection recovery timeout in seconds */\n lostConnectionRecoveryTimeout: number;\n};\n\n/**\n * URL mapping configuration for external integrations\n * @public\n */\nexport type URLMapping = {\n id: string;\n name: string;\n url: string;\n links: string[]; // Assuming 'links' is an array of strings, adjust if necessary\n createdTime: number; // Assuming timestamps are represented as numbers\n lastUpdatedTime: number;\n};\n\n/**\n * Constant representing idle code\n * @public\n * @ignore\n */\nexport const IDLE_CODE = 'IDLE_CODE';\n\n/**\n * Constant representing wrap up code\n * @public\n * @ignore\n */\nexport const WRAP_UP_CODE = 'WRAP_UP_CODE';\n\n/**\n * Type representing the possible auxiliary code types\n * @public\n */\nexport type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;\n\n/**\n * Sort order configuration for queries\n * @internal\n */\ntype SortOrder = {\n /** Property to sort by */\n property: string;\n /** Sort order direction */\n order: string;\n};\n\n/**\n * Search query configuration\n * @internal\n */\ntype SearchQuery = {\n /** Properties to search in */\n properties: string;\n /** Search value */\n value: string;\n};\n\n/**\n * Parameters for querying Contact Center resources\n * @public\n */\nexport type QueryParams = {\n /** Page number for pagination */\n pageNumber?: number;\n pageSize?: number;\n attributes?: Array<string>;\n ids?: Array<string>;\n queueType?: string;\n entryPointType?: string;\n channelType?: string;\n isActive?: boolean;\n workTypeCode?: AuxCodeType;\n names?: Array<string>;\n sortOrder?: SortOrder;\n searchQuery?: SearchQuery;\n defaultCode?: boolean;\n search?: string;\n desktopProfileFilter?: boolean;\n};\n\n/**\n * Basic entity information used throughout the system\n * @public\n */\nexport type Entity = {\n /** Whether this is a system entity */\n isSystem: boolean;\n /** Entity name */\n name: string;\n /** Unique entity identifier */\n id: string;\n /** Whether this is the default entity */\n isDefault: boolean;\n};\n\n/**\n * Dial plan entity definition containing number manipulation rules\n * @public\n */\nexport type DialPlanEntity = {\n /** Unique identifier for the dial plan */\n id: string;\n /** Regular expression pattern for matching numbers */\n regularExpression: string;\n /** Prefix to add to matched numbers */\n prefix: string;\n /** Characters to strip from matched numbers */\n strippedChars: string;\n /** Name of the dial plan */\n name: string;\n};\n\n/**\n * Complete dial plan configuration for number handling\n * @public\n */\nexport type DialPlan = {\n /** Type of dial plan (e.g., 'adhocDial') */\n type: string;\n /** List of dial plan entities with transformation rules */\n dialPlanEntity: {\n /** Regular expression pattern */\n regex: string;\n /** Number prefix */\n prefix: string;\n /** Characters to strip */\n strippedChars: string;\n /** Entity name */\n name: string;\n }[];\n};\n\n/**\n * Agent wrap-up codes configuration with pagination metadata\n * @public\n */\nexport type agentWrapUpCodes = {\n /** Array of wrap-up code entities */\n data: Entity[];\n /** Pagination and navigation metadata */\n meta: {\n /** Navigation URLs for pagination */\n links: {\n /** URL for first page */\n first: string;\n /** URL for last page */\n last: string;\n /** URL for next page */\n next: string;\n /** URL for current page */\n self: string;\n };\n /** Organization identifier */\n orgid: string;\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Default wrap-up code configuration for an agent\n * @public\n */\nexport type agentDefaultWrapupCode = {\n /** Unique identifier for the wrap-up code */\n id: string;\n /** Display name of the wrap-up code */\n name: string;\n};\n\n/**\n * Wrap-up reason configuration used to classify completed interactions\n * @public\n */\nexport type WrapUpReason = {\n /** Whether this is a system-defined reason */\n isSystem: boolean;\n /** Display name of the reason */\n name: string;\n /** Unique identifier */\n id: string;\n /** Whether this is the default reason */\n isDefault: boolean;\n};\n\n/**\n * Wrap-up configuration data containing settings and available options\n * @public\n */\nexport type WrapupData = {\n /** Wrap-up configuration properties */\n wrapUpProps: {\n /** Whether automatic wrap-up is enabled */\n autoWrapup?: boolean;\n /** Time in seconds before auto wrap-up triggers */\n autoWrapupInterval?: number;\n /** Whether last agent routing is enabled */\n lastAgentRoute?: boolean;\n /** List of available wrap-up reasons */\n wrapUpReasonList: Array<WrapUpReason>;\n /** List of available wrap-up codes */\n wrapUpCodesList?: Array<string>;\n /** Access control for idle codes ('ALL' or 'SPECIFIC') */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Associated interaction identifier */\n interactionId?: string;\n /** Whether cancelling auto wrap-up is allowed */\n allowCancelAutoWrapup?: boolean;\n };\n};\n\n/**\n * Team configuration information\n * @public\n */\nexport type Team = {\n /** Unique team identifier */\n teamId: string;\n /** Team display name */\n teamName: string;\n /** Optional desktop layout configuration identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Basic queue configuration information\n * @public\n */\nexport type Queue = {\n /** Queue identifier */\n queueId: string;\n /** Queue display name */\n queueName: string;\n};\n\n/**\n * URL mappings for external system integrations\n * @public\n */\nexport type URLMappings = {\n /** Acqueon API endpoint URL */\n acqueonApiUrl: string;\n /** Acqueon console URL */\n acqueonConsoleUrl: string;\n};\n\n/**\n * AI feature resource row returned by /v2/ai-feature API.\n * @public\n */\nexport type AIFeatureFlags = {\n id: string;\n realtimeTranscripts?: {\n enable?: boolean;\n agentInclusionType?: string;\n };\n suggestedResponses?: {\n enable?: boolean;\n };\n generatedSummaries?: {\n callDropSummariesEnabled?: boolean;\n virtualAgentTransferSummariesEnabled?: boolean;\n consultTransferSummariesEnabled?: boolean;\n wrapUpSummariesEnabled?: boolean;\n queuesInclusionType?: string;\n };\n agentWellbeing?: {\n enable?: boolean;\n agentInclusionType?: string;\n wellnessBreakReminders?: string;\n };\n autoCSAT?: {\n enable?: boolean;\n queuesInclusionType?: string;\n surveyDataSource?: string;\n };\n links?: string[];\n createdTime?: number;\n lastUpdatedTime?: number;\n};\n\n/**\n * Response type for list AI feature resources API.\n * @public\n */\nexport type AIFeatureFlagsResponse = {\n meta?: {\n orgid?: string;\n page?: number;\n pageSize?: number;\n totalPages?: number;\n totalRecords?: number;\n links?: {\n self?: string;\n };\n };\n data: AIFeatureFlags[];\n};\n\n/**\n * Comprehensive agent profile configuration in the contact center system\n * Contains all settings and capabilities for an agent\n * @public\n */\nexport type Profile = {\n /** Microsoft Teams integration configuration */\n microsoftConfig?: {\n /** Whether to show user details in Teams */\n showUserDetailsMS?: boolean;\n /** Whether to sync agent state with Teams */\n stateSynchronizationMS?: boolean;\n };\n /** Webex integration configuration */\n webexConfig?: {\n /** Whether to show user details in Webex */\n showUserDetailsWebex?: boolean;\n /** Whether to sync agent state with Webex */\n stateSynchronizationWebex?: boolean;\n };\n /** List of teams the agent belongs to */\n teams: Team[];\n /** Agent's default dial number */\n defaultDn: string;\n dn?: string;\n /** Whether default DN is enforced at tenant level */\n forceDefaultDn: boolean;\n /** Whether default DN is enforced for this agent */\n forceDefaultDnForAgent: boolean;\n /** Regex pattern for US phone number validation */\n regexUS: RegExp | string;\n /** Regex pattern for international phone number validation */\n regexOther: RegExp | string;\n /** Unique identifier for the agent */\n agentId: string;\n /** Display name for the agent */\n agentName: string;\n /** Email address for the agent */\n agentMailId: string;\n /** Agent's profile configuration ID */\n agentProfileID: string;\n /** Dial plan configuration for number handling */\n dialPlan: DialPlan;\n /** Multimedia profile defining channel capabilities */\n multimediaProfileId: string;\n /** Skill profile defining agent competencies */\n skillProfileId: string;\n /** Site where agent is located */\n siteId: string;\n /** Enterprise-wide identifier */\n enterpriseId: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Available idle codes */\n idleCodes: Entity[];\n /** List of specific idle codes */\n idleCodesList?: Array<string>;\n /** Access control for idle codes */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Available wrap-up codes */\n wrapupCodes: Entity[];\n /** Agent-specific wrap-up codes */\n agentWrapUpCodes?: agentWrapUpCodes;\n /** Default wrap-up code for agent */\n agentDefaultWrapUpCode?: agentDefaultWrapupCode;\n /** Default wrap-up code identifier */\n defaultWrapupCode: string;\n /** Wrap-up configuration data */\n wrapUpData: WrapupData;\n /** Organization identifier */\n orgId?: string;\n /** Whether outbound is enabled at tenant level */\n isOutboundEnabledForTenant: boolean;\n /** Whether outbound is enabled for this agent */\n isOutboundEnabledForAgent: boolean;\n /** Whether ad-hoc dialing is enabled */\n isAdhocDialingEnabled: boolean;\n /** Whether agent becomes available after outdial */\n isAgentAvailableAfterOutdial: boolean;\n /** Whether campaign management is enabled */\n isCampaignManagementEnabled: boolean;\n /** Outbound entry point */\n outDialEp: string;\n /** Whether ending calls is enabled */\n isEndTaskEnabled: boolean;\n /** Whether ending consultations is enabled */\n isEndConsultEnabled: boolean;\n /** Optional lifecycle manager URL */\n lcmUrl?: string;\n /** Database identifier for agent */\n agentDbId: string;\n /** Optional analyzer identifier for agent */\n agentAnalyzerId?: string;\n /** Whether consult to queue is allowed */\n allowConsultToQueue: boolean;\n /** Additional campaign manager information */\n campaignManagerAdditionalInfo?: string;\n /** Whether personal statistics are enabled */\n agentPersonalStatsEnabled: boolean;\n /** Optional address book identifier */\n addressBookId?: string;\n /** Optional outbound ANI identifier */\n outdialANIId?: string;\n /** Optional analyzer user identifier */\n analyserUserId?: string;\n /** Whether call monitoring is enabled */\n isCallMonitoringEnabled?: boolean;\n /** Whether mid-call monitoring is enabled */\n isMidCallMonitoringEnabled?: boolean;\n /** Whether barge-in functionality is enabled */\n isBargeInEnabled?: boolean;\n /** Whether managed teams feature is enabled */\n isManagedTeamsEnabled?: boolean;\n /** Whether managed queues feature is enabled */\n isManagedQueuesEnabled?: boolean;\n /** Whether sending messages is enabled */\n isSendMessageEnabled?: boolean;\n /** Whether agent state changes are enabled */\n isAgentStateChangeEnabled?: boolean;\n /** Whether signing out agents is enabled */\n isSignOutAgentsEnabled?: boolean;\n /** Integration URL mappings */\n urlMappings?: URLMappings;\n /** Whether desktop inactivity timeout is enabled */\n isTimeoutDesktopInactivityEnabled: boolean;\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins?: number;\n /** Whether analyzer features are enabled */\n isAnalyzerEnabled?: boolean;\n /** Tenant timezone */\n tenantTimezone?: string;\n /** Current environment (e.g., 'produs1', 'intgus1') */\n environment?: string;\n /** Available voice login options */\n loginVoiceOptions?: LoginOption[];\n /** Current login device type */\n deviceType?: LoginOption;\n /** Current team identifier */\n currentTeamId?: string;\n /** Whether WebRTC is enabled */\n webRtcEnabled: boolean;\n /** Organization-wide idle codes */\n organizationIdleCodes?: Entity[];\n /** Whether recording management is enabled */\n isRecordingManagementEnabled?: boolean;\n /** Connection recovery timeout in milliseconds */\n lostConnectionRecoveryTimeout: number;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData?: boolean;\n /** Whether agent is currently logged in */\n isAgentLoggedIn?: boolean;\n /** Last auxiliary code ID used for state change */\n lastStateAuxCodeId?: string;\n /** Timestamp of last state change */\n lastStateChangeTimestamp?: number;\n /** Timestamp of last idle code change */\n lastIdleCodeChangeTimestamp?: number;\n /** AI feature flags resolved from organization config */\n aiFeature?: AIFeatureFlags;\n};\n\n/**\n * Contact distribution group configuration for routing logic\n * @public\n */\nexport type CallDistributionGroup = {\n /** List of agent groups in this distribution group */\n agentGroups: {\n /** Team identifier */\n teamId: string;\n }[];\n /** Distribution order priority */\n order: number;\n /** Distribution time duration in seconds */\n duration: number;\n};\n\n/**\n * Represents a single outdial ANI (Automatic Number Identification) entry\n * @public\n */\nexport type OutdialAniEntry = {\n /** Unique identifier for the ANI entry */\n id: string;\n /** Display name for the ANI entry */\n name: string;\n /** Phone number associated with this ANI entry */\n number: string;\n /** Related links for this ANI entry */\n links: string[];\n /** Timestamp when this entry was created (Unix timestamp in milliseconds) */\n createdTime: number;\n /** Timestamp when this entry was last updated (Unix timestamp in milliseconds) */\n lastUpdatedTime: number;\n};\n\n/**\n * Response structure for outdial ANI entries API call\n * @public\n */\nexport type OutdialAniEntriesResponse = OutdialAniEntry[];\n\n/**\n * Parameters for fetching outdial ANI entries\n * @public\n */\nexport type OutdialAniParams = {\n /** Outdial ANI ID from agent profile */\n outdialANI: string;\n /** Page number for pagination (optional) */\n page?: number;\n /** Number of entries per page (optional) */\n pageSize?: number;\n /** Search string to filter entries (optional) */\n search?: string;\n /** Filter expression for advanced filtering (optional) */\n filter?: string;\n /** Comma-separated list of attributes to include in response (optional) */\n attributes?: string;\n};\n\n/**\n * User preference data structure\n * @public\n */\nexport type UserPreference = {\n /** Unique identifier for the user preference */\n id: string;\n /** Organization ID */\n organizationId: string;\n /** User ID (CI user ID) */\n userId: string;\n /** User preference data as key-value pairs */\n preferences: Record<string, unknown>;\n /** Timestamp when this preference was created (Unix timestamp in milliseconds) */\n createdTime?: number;\n /** Timestamp when this preference was last updated (Unix timestamp in milliseconds) */\n lastUpdatedTime?: number;\n};\n\n/**\n * Request payload for creating user preferences\n * @public\n */\nexport type CreateUserPreferenceRequest = {\n /** User ID (CI user ID) */\n userId: string;\n /** Desktop preference data as a JSON string (required) */\n desktopPreference: string;\n};\n\n/**\n * Request payload for updating user preferences\n * @public\n */\nexport type UpdateUserPreferenceRequest = {\n /** Desktop preference data as a JSON string (required) */\n desktopPreference: string;\n};\n\n/**\n * Query parameters for fetching user preferences\n * @public\n */\nexport type GetUserPreferenceParams = {\n /** User ID to fetch preferences for. Defaults to current user's CI user ID. */\n userId?: string;\n /** Page number (0-indexed). Default: 0 */\n page?: number;\n /** Number of items per page. Default: 100 */\n pageSize?: number;\n};\n"],"mappings":";;;;;;AAEA;AACA;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GA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;;AA8BA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAgCA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;;AA6JA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["CC_TASK_EVENTS","exports","AGENT_CONTACT_ASSIGN_FAILED","AGENT_CONTACT_OFFER_RONA","AGENT_CONTACT_HELD","AGENT_CONTACT_HOLD_FAILED","AGENT_CONTACT_UNHELD","AGENT_CONTACT_UNHOLD_FAILED","AGENT_CONSULT_CREATED","AGENT_OFFER_CONSULT","AGENT_CONSULTING","AGENT_CONSULT_FAILED","AGENT_CTQ_FAILED","AGENT_CTQ_CANCELLED","AGENT_CTQ_CANCEL_FAILED","AGENT_CONSULT_ENDED","AGENT_CONSULT_END_FAILED","AGENT_CONSULT_CONFERENCE_ENDED","AGENT_CONSULT_CONFERENCING","AGENT_CONSULT_CONFERENCED","AGENT_CONSULT_CONFERENCE_FAILED","PARTICIPANT_JOINED_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE_FAILED","PARTICIPANT_DROP_CONFERENCE_FAILED","AGENT_CONSULT_CONFERENCE_END_FAILED","AGENT_CONFERENCE_TRANSFERRED","AGENT_CONFERENCE_TRANSFER_FAILED","PARTICIPANT_POST_CALL_ACTIVITY","CONSULTED_PARTICIPANT_MOVING","AGENT_BLIND_TRANSFERRED","AGENT_BLIND_TRANSFER_FAILED","AGENT_VTEAM_TRANSFERRED","AGENT_VTEAM_TRANSFER_FAILED","AGENT_CONSULT_TRANSFERRING","AGENT_CONSULT_TRANSFERRED","AGENT_CONSULT_TRANSFER_FAILED","CONTACT_RECORDING_PAUSED","CONTACT_RECORDING_STARTED","CONTACT_RECORDING_PAUSE_FAILED","CONTACT_RECORDING_RESUMED","CONTACT_RECORDING_RESUME_FAILED","CONTACT_ENDED","CONTACT_MERGED","CONTACT_UPDATED","CONTACT_OWNER_CHANGED","AGENT_CONTACT_END_FAILED","AGENT_WRAPUP","AGENT_WRAPPEDUP","AGENT_WRAPUP_FAILED","AGENT_OUTBOUND_FAILED","AGENT_CONTACT","AGENT_OFFER_CONTACT","AGENT_CONTACT_ASSIGNED","AGENT_CONTACT_UNASSIGNED","AGENT_INVITE_FAILED","AGENT_OFFER_CAMPAIGN_RESERVATION","CAMPAIGN_CONTACT_UPDATED","CAMPAIGN_PREVIEW_ACCEPT_FAILED","CAMPAIGN_PREVIEW_SKIP_FAILED","CAMPAIGN_PREVIEW_REMOVE_FAILED","REAL_TIME_TRANSCRIPTION","SUGGESTED_RESPONSE","SUGGESTED_RESPONSE_ACKNOWLEDGE","POST_CALL_SUMMARY","MID_CALL_SUMMARY","FEATURE_ENABLEMENT","MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT","CC_AGENT_EVENTS","WELCOME","AGENT_RELOGIN_SUCCESS","AGENT_RELOGIN_FAILED","AGENT_DN_REGISTERED","AGENT_LOGOUT","AGENT_LOGOUT_SUCCESS","AGENT_LOGOUT_FAILED","AGENT_STATION_LOGIN","AGENT_STATION_LOGIN_SUCCESS","AGENT_STATION_LOGIN_FAILED","AGENT_STATE_CHANGE","AGENT_MULTI_LOGIN","AGENT_STATE_CHANGE_SUCCESS","AGENT_STATE_CHANGE_FAILED","AGENT_BUDDY_AGENTS","AGENT_BUDDY_AGENTS_SUCCESS","AGENT_BUDDY_AGENTS_RETRIEVE_FAILED","AGENT_CONTACT_RESERVED","WELLNESS_BREAK","CC_EVENTS","IDLE_CODE","WRAP_UP_CODE"],"sources":["types.ts"],"sourcesContent":["import * as Agent from '../agent/types';\nimport {COLLABORATION_ACCESS} from './constants';\n\n/**\n * Generic type for converting a const enum object into a union type of its values\n * @internal\n */\ntype Enum<T extends Record<string, unknown>> = T[keyof T];\n\n/** Desktop Profile access level for a collaboration destination category. */\nexport type CollaborationAccess = Enum<typeof COLLABORATION_ACCESS>;\n\n/**\n * Contact Center backend and realtime event types.\n *\n * Includes task lifecycle, transcript, suggested-response, and AI summary events.\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_TASK_EVENTS = {\n /** Event emitted when assigning contact to agent fails */\n AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',\n /** Event emitted when agent does not respond to contact offer */\n AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',\n /** Event emitted when contact is put on hold */\n AGENT_CONTACT_HELD: 'AgentContactHeld',\n /** Event emitted when putting contact on hold fails */\n AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',\n /** Event emitted when contact is taken off hold */\n AGENT_CONTACT_UNHELD: 'AgentContactUnheld',\n /** Event emitted when taking contact off hold fails */\n AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',\n /** Event emitted when consultation is created */\n AGENT_CONSULT_CREATED: 'AgentConsultCreated',\n /** Event emitted when consultation is offered */\n AGENT_OFFER_CONSULT: 'AgentOfferConsult',\n /** Event emitted when agent is consulting */\n AGENT_CONSULTING: 'AgentConsulting',\n /** Event emitted when consultation fails */\n AGENT_CONSULT_FAILED: 'AgentConsultFailed',\n /** Event emitted when consulting to queue (CTQ) fails */\n AGENT_CTQ_FAILED: 'AgentCtqFailed',\n /** Event emitted when CTQ is cancelled */\n AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',\n /** Event emitted when CTQ cancellation fails */\n AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',\n /** Event emitted when consultation ends */\n AGENT_CONSULT_ENDED: 'AgentConsultEnded',\n /** Event emitted when ending consultation fails */\n AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',\n /** Event emitted when consultation conference ends */\n AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',\n /** Event emitted when consultation conference is in progress */\n AGENT_CONSULT_CONFERENCING: 'AgentConsultConferencing',\n /** Event emitted when consultation conference starts */\n AGENT_CONSULT_CONFERENCED: 'AgentConsultConferenced',\n /** Event emitted when consultation conference fails */\n AGENT_CONSULT_CONFERENCE_FAILED: 'AgentConsultConferenceFailed',\n /** Event emitted when participant joins conference */\n PARTICIPANT_JOINED_CONFERENCE: 'ParticipantJoinedConference',\n /** Event emitted when participant leaves conference */\n PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',\n /** Event emitted when participant leaving conference fails */\n PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',\n /** Event emitted when dropping another conference participant fails */\n PARTICIPANT_DROP_CONFERENCE_FAILED: 'ParticipantDropConferenceFailed',\n /** Event emitted when consultation conference end fails */\n AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',\n /** Event emitted when conference is successfully transferred */\n AGENT_CONFERENCE_TRANSFERRED: 'AgentConferenceTransferred',\n /** Event emitted when conference transfer fails */\n AGENT_CONFERENCE_TRANSFER_FAILED: 'AgentConferenceTransferFailed',\n /** Event emitted for post-call activity by participant */\n PARTICIPANT_POST_CALL_ACTIVITY: 'ParticipantPostCallActivity',\n /** Event emitted when consulted participant is being moved/transferred */\n CONSULTED_PARTICIPANT_MOVING: 'ConsultedParticipantMoving',\n /** Event emitted when contact is blind transferred */\n AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',\n /** Event emitted when blind transfer fails */\n AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',\n /** Event emitted when contact is transferred to virtual team */\n AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',\n /** Event emitted when virtual team transfer fails */\n AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',\n /** Event emitted when consultation transfer is in progress */\n AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',\n /** Event emitted when consultation transfer completes */\n AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',\n /** Event emitted when consultation transfer fails */\n AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',\n /** Event emitted when contact recording is paused */\n CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',\n /** Event emitted when contact recording is started */\n CONTACT_RECORDING_STARTED: 'ContactRecordingStarted',\n /** Event emitted when pausing contact recording fails */\n CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',\n /** Event emitted when contact recording is resumed */\n CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',\n /** Event emitted when resuming contact recording fails */\n CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',\n /** Event emitted when contact ends */\n CONTACT_ENDED: 'ContactEnded',\n /** Event emitted when contact is merged */\n CONTACT_MERGED: 'ContactMerged',\n /** Event emitted when contact payload is updated (routing updates) */\n CONTACT_UPDATED: 'ContactUpdated',\n /** Event emitted when contact owner changes */\n CONTACT_OWNER_CHANGED: 'ContactOwnerChanged',\n /** Event emitted when ending contact fails */\n AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',\n /** Event emitted when agent enters wrap-up state */\n AGENT_WRAPUP: 'AgentWrapup',\n /** Event emitted when agent completes wrap-up */\n AGENT_WRAPPEDUP: 'AgentWrappedUp',\n /** Event emitted when wrap-up fails */\n AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',\n /** Event emitted when outbound call fails */\n AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',\n /** Event emitted for general agent contact events */\n AGENT_CONTACT: 'AgentContact',\n /** Event emitted when contact is offered to agent */\n AGENT_OFFER_CONTACT: 'AgentOfferContact',\n /** Event emitted when contact is assigned to agent */\n AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',\n /** Event emitted when contact is unassigned from agent */\n AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',\n /** Event emitted when inviting agent fails */\n AGENT_INVITE_FAILED: 'AgentInviteFailed',\n /** Event emitted when a campaign preview contact is offered to the agent */\n AGENT_OFFER_CAMPAIGN_RESERVATION: 'AgentOfferCampaignReservation',\n /** Event emitted when campaign contact is updated */\n CAMPAIGN_CONTACT_UPDATED: 'CampaignContactUpdated',\n /** Event emitted when accepting a campaign preview contact fails */\n CAMPAIGN_PREVIEW_ACCEPT_FAILED: 'CampaignPreviewAcceptFailed',\n /** Event emitted when skipping a campaign preview contact fails */\n CAMPAIGN_PREVIEW_SKIP_FAILED: 'CampaignPreviewSkipFailed',\n /** Event emitted when removing a campaign preview contact fails */\n CAMPAIGN_PREVIEW_REMOVE_FAILED: 'CampaignPreviewRemoveFailed',\n /** Event emitted when a real-time transcript chunk is received */\n REAL_TIME_TRANSCRIPTION: 'REAL_TIME_TRANSCRIPTION',\n /** Event emitted when an AI assistant suggested response is available */\n SUGGESTED_RESPONSE: 'SUGGESTED_RESPONSE',\n /** Event emitted when backend acknowledges it is listening for more context */\n SUGGESTED_RESPONSE_ACKNOWLEDGE: 'SUGGESTED_RESPONSE_ACKNOWLEDGE',\n /** Event received when a post-call summary is available through realtime delivery */\n POST_CALL_SUMMARY: 'POST_CALL_SUMMARY',\n /** Event received when a mid-call summary is available through realtime delivery */\n MID_CALL_SUMMARY: 'MID_CALL_SUMMARY',\n /** Event received when AI-summary feature enablement is available through realtime delivery */\n FEATURE_ENABLEMENT: 'FEATURE_ENABLEMENT',\n /** Event received when a subsequent agent receives a mid-call summary */\n MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT: 'MID_CALL_SUMMARY_RESPONSE_SUBSEQUENT_AGENT',\n} as const;\n\n/**\n * Events emitted on Contact Center agent operations\n * @enum {string}\n * @public\n */\nexport const CC_AGENT_EVENTS = {\n /** Welcome event when agent connects to websocket/backend */\n WELCOME: 'Welcome',\n /** Event emitted when agent re-login is successful */\n AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',\n /** Event emitted when agent re-login fails */\n AGENT_RELOGIN_FAILED: 'AgentReloginFailed',\n /** Event emitted when agent DN registration completes */\n AGENT_DN_REGISTERED: 'AgentDNRegistered',\n /** Event emitted when agent initiates logout */\n AGENT_LOGOUT: 'Logout',\n /** Event emitted when agent logout is successful */\n AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',\n /** Event emitted when agent logout fails */\n AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',\n /** Event emitted when agent initiates station login */\n AGENT_STATION_LOGIN: 'StationLogin',\n /** Event emitted when agent station login is successful */\n AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',\n /** Event emitted when agent station login fails */\n AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',\n /** Event emitted when agent's state changes */\n AGENT_STATE_CHANGE: 'AgentStateChange',\n /** Event emitted when multiple logins detected for same agent */\n AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',\n /** Event emitted when agent state change is successful */\n AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',\n /** Event emitted when agent state change fails */\n AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',\n /** Event emitted when requesting buddy agents list */\n AGENT_BUDDY_AGENTS: 'BuddyAgents',\n /** Event emitted when buddy agents list is successfully retrieved */\n AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',\n /** Event emitted when retrieving buddy agents list fails */\n AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',\n /** Event emitted when contact is reserved for agent */\n AGENT_CONTACT_RESERVED: 'AgentContactReserved',\n /** Agent-level Agent Wellness Break notification */\n WELLNESS_BREAK: 'WellnessBreak',\n} as const;\n\n/**\n * Combined Contact Center events including both agent and task events\n * @enum {string}\n * @public\n */\nexport const CC_EVENTS = {\n ...CC_AGENT_EVENTS,\n ...CC_TASK_EVENTS,\n} as const;\n\n/**\n * Event data received when agent connects to the system\n * @public\n */\nexport type WelcomeEvent = {\n /** ID of the agent that connected */\n agentId: string;\n};\n\n/**\n * Available login options for voice channel access\n * 'AGENT_DN' - Login using agent's DN\n * 'EXTENSION' - Login using extension number\n * 'BROWSER' - Login using browser-based WebRTC\n * @public\n */\nexport type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';\n\n/**\n * Response type for welcome events which can be either success or error\n * @public\n */\nexport type WelcomeResponse = WelcomeEvent | Error;\n\n/**\n * Type representing the union of all possible Contact Center events\n * @public\n */\nexport type CC_EVENTS = Enum<typeof CC_EVENTS>;\n\n/**\n * WebSocket event structure for Contact Center events\n * @public\n */\nexport type WebSocketEvent = {\n /** Type of the event */\n type: CC_EVENTS;\n /** Event payload data */\n data:\n | WelcomeEvent\n | Agent.StationLoginSuccess\n | Agent.LogoutSuccess\n | Agent.ReloginSuccess\n | Agent.StateChangeSuccess\n | Agent.BuddyAgentsSuccess;\n};\n\n/**\n * Agent identity carried by the `user` section of the user desktop-login aggregate.\n */\nexport type AgentResponse = {\n /**\n * ID of the agent.\n */\n id: string;\n\n /**\n * The ciUserId of the agent.\n */\n ciUserId: string;\n\n /**\n * The first name of the agent.\n */\n firstName: string;\n\n /**\n * The last name of the agent.\n */\n lastName: string;\n\n /**\n * Identifier for a Desktop Profile.\n */\n agentProfileId: string;\n\n /**\n * The email address of the agent.\n */\n email: string;\n\n /**\n * Skill profile ID of the agent.\n */\n skillProfileId: string;\n\n /**\n * Site ID of the agent.\n */\n siteId: string;\n\n /**\n * Database ID of the agent, distinct from `ciUserId`. Passed as `userDbId` to the team lookup,\n * which sends it as the backend's `filter=userId==` value.\n */\n dbId: string;\n\n /**\n * The default dialed number of the agent.\n * Note: The API returns this field as \"deafultDialledNumber\" (with typo).\n */\n deafultDialledNumber?: string;\n};\n\n/**\n * Desktop Profile settings carried by the `agentProfile` section of the user desktop-login\n * aggregate.\n */\nexport type AgentProfile = {\n /**\n * Represents the voice options of an agent. The order is nondeterministic; treat as a set.\n */\n loginVoiceOptions: LoginOption[];\n\n /**\n * Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.\n */\n accessWrapUpCode: string;\n\n /**\n * Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.\n */\n accessIdleCode: string;\n\n /**\n * Dial plan enabled for the agent.\n */\n dialPlanEnabled: boolean;\n\n /**\n * Last agent routing enabled for the agent.\n */\n lastAgentRouting: boolean;\n\n /**\n * Auto wrap-up allowed.\n */\n autoWrapUp: boolean;\n\n /**\n * Whether the agent personal greeting is enabled.\n */\n agentPersonalGreeting?: boolean;\n\n /**\n * Auto wrap-up after seconds.\n */\n autoWrapAfterSeconds: number;\n\n /**\n * Agent available after outdial.\n */\n agentAvailableAfterOutdial: boolean;\n\n /**\n * Allow auto wrap-up extension.\n */\n allowAutoWrapUpExtension: boolean;\n\n /**\n * Access control for queues assigned to the agent (ALL, SPECIFIC, or NONE).\n */\n accessQueue: CollaborationAccess;\n\n /**\n * Access control for entry points assigned to the agent.\n */\n accessEntryPoint: CollaborationAccess;\n\n /**\n * Access control for buddy teams assigned to the agent.\n */\n accessBuddyTeam: CollaborationAccess;\n\n /**\n * Outdial enabled for the agent.\n */\n outdialEnabled: boolean;\n\n /**\n * Outdial entry point ID of the agent.\n */\n outdialEntryPointId: string;\n\n /**\n * Outdial ANI ID of the agent.\n */\n outdialANIId: string;\n\n /**\n * Whether the agent can schedule and manage callbacks.\n */\n scheduleAndManageCallBack?: boolean;\n\n /**\n * Consult to queue allowed.\n */\n consultToQueue: boolean;\n\n /**\n * Address book ID of the agent.\n */\n addressBookId?: string;\n\n /**\n * Viewable statistics of the agent.\n */\n viewableStatistics: {\n agentStats: boolean;\n aiAgentPerformance?: boolean;\n };\n\n /**\n * Agent DN validation of the agent.\n */\n agentDNValidation: string;\n\n /**\n * Timeout desktop inactivity custom enabled.\n */\n timeoutDesktopInactivityCustomEnabled: boolean;\n\n /**\n * Timeout desktop inactivity minutes.\n */\n timeoutDesktopInactivityMins?: number;\n};\n\n/**\n * Response containing multimedia profile configuration for an agent\n * Defines capabilities across different communication channels\n * @private\n */\nexport type MultimediaProfileResponse = {\n /** Organization identifier */\n organizationId: string;\n /** Profile identifier */\n id: string;\n /** Version number of the profile */\n version: number;\n /** Profile name */\n name: string;\n /** Profile description */\n description: string;\n /** Maximum number of concurrent chat interactions */\n chat: number;\n /** Maximum number of concurrent email interactions */\n email: number;\n /** Maximum number of concurrent voice interactions */\n telephony: number;\n /** Maximum number of concurrent social media interactions */\n social: number;\n /** Whether the profile is active */\n active: boolean;\n /** Whether channel blending is enabled */\n blendingModeEnabled: boolean;\n /** Type of blending mode configuration */\n blendingMode: string;\n /** Whether this is the system default profile */\n systemDefault: boolean;\n /** Timestamp when profile was created */\n createdTime: number;\n /** Timestamp when profile was last updated */\n lastUpdatedTime: number;\n};\n\n/**\n * Response from subscription requests containing WebSocket connection details\n * @public\n */\nexport type SubscribeResponse = {\n /** HTTP status code of the response */\n statusCode: number;\n /** Response body containing connection details */\n body: {\n /** WebSocket URL for real-time updates */\n webSocketUrl?: string;\n /** Unique subscription identifier */\n subscriptionId?: string;\n };\n /** Optional status or error message */\n message: string | null;\n};\n\nexport type AuxCode = {\n /**\n * ID of the Auxiliary Code.\n */\n id: string;\n\n /**\n * Indicates whether the auxiliary code is active or not.\n */\n active: boolean;\n\n /**\n * Indicates whether this is the default code (true) or not (false).\n */\n defaultCode: boolean;\n\n /**\n * Indicates whether this is the system default code (true) or not (false).\n */\n isSystemCode: boolean;\n\n /**\n * A short description indicating the context of the code.\n */\n description: string;\n\n /**\n * Name of the Auxiliary Code.\n */\n name: string;\n\n /**\n * Indicates the work type associated with this code.\n */\n workTypeCode: string;\n};\n\nexport type ListAuxCodesResponse = {\n data: AuxCode[];\n meta: {\n page: number;\n pageSize: number;\n totalPages: number;\n totalRecords: number;\n };\n};\n\n/**\n * Configuration for a team in the contact center system\n * @private\n */\nexport type TeamList = {\n /** Unique identifier for the team */\n id: string;\n /** Team name */\n name: string;\n /** Type of team (e.g., 'AGENT_BASED') */\n teamType: string;\n /** Current status of the team */\n teamStatus: string;\n /** Whether the team is active */\n active: boolean;\n /** Site identifier where team is located */\n siteId: string;\n /** Name of the site */\n siteName: string;\n /** Optional multimedia profile ID for team */\n multiMediaProfileId?: string;\n /** List of user IDs belonging to team */\n userIds: string[];\n /** Whether queue rankings are enabled for team */\n rankQueuesForTeam: boolean;\n /** Ordered list of queue rankings */\n queueRankings: string[];\n /** Optional database identifier */\n dbId?: string;\n /** Optional desktop layout identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Response type for listing teams with pagination metadata\n * @private\n */\nexport type ListTeamsResponse = {\n /** Array of team configurations */\n data: TeamList[];\n /** Pagination metadata */\n meta: {\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Basic organization information carried by the `organization` section of the org desktop-login\n * aggregate.\n * @private\n * @ignore\n */\nexport type OrgInfo = {\n /** Tenant identifier */\n tenantId: string;\n /** Organization timezone */\n timezone: string;\n};\n\n/**\n * Organization-wide feature settings carried by the `organizationSetting` section of the org\n * desktop-login aggregate.\n * @private\n */\nexport type OrgSettings = {\n /** Whether WebRTC functionality is enabled */\n webRtcEnabled: boolean;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData: boolean;\n /** Whether campaign manager features are enabled */\n campaignManagerEnabled: boolean;\n /** Number of AI Assistant licenses assigned to the organization */\n aiAssistantQuantity?: number | null;\n};\n\n/**\n * Contact center site configuration information\n * @private\n */\nexport type SiteInfo = {\n /** Unique site identifier */\n id: string;\n /** Site name */\n name: string;\n /** Whether site is active */\n active: boolean;\n /** Multimedia profile ID for site */\n multimediaProfileId: string;\n /** Whether this is the system default site */\n systemDefault: boolean;\n};\n\n/**\n * Tenant-level configuration carried by the `tenantConfiguration` section of the org\n * desktop-login aggregate.\n * @private\n */\nexport type TenantData = {\n /** Desktop inactivity timeout in minutes. Omitted when the timeout is not enabled. */\n timeoutDesktopInactivityMins?: number;\n /** Whether default DN is enforced */\n forceDefaultDn: boolean;\n /** Regex pattern for default DN validation */\n dnDefaultRegex: string;\n /** Regex pattern for other DN validation */\n dnOtherRegex: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Whether outbound dialing is enabled */\n outdialEnabled: boolean;\n /** Whether ending calls is enabled */\n endCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n endConsultEnabled: boolean;\n /** Whether call variables are suppressed */\n callVariablesSuppressed: boolean;\n /** Whether desktop inactivity timeout is enabled */\n timeoutDesktopInactivityEnabled: boolean;\n /** Lost connection recovery timeout in seconds */\n lostConnectionRecoveryTimeout: number;\n};\n\n/**\n * URL mappings carried by the `urlMappings` section of the org desktop-login aggregate, keyed by\n * mapping name. The aggregate returns `{}` when the organization has no Acqueon configuration.\n * @public\n */\nexport type OrgUrlMappings = {\n /** Acqueon API endpoint URL */\n ACQUEON_API_URL?: string;\n /** Acqueon console URL */\n ACQUEON_CONSOLE_URL?: string;\n};\n\n/**\n * Organization-level Microsoft Teams integration configuration carried by the `microsoftConfig`\n * section of the org desktop-login aggregate. The whole section is absent when the organization\n * has no Microsoft integration.\n * @public\n */\nexport type MicrosoftConfig = {\n /** Whether to show user details in Teams */\n showUserDetails?: boolean;\n /** Whether to sync agent state with Teams */\n stateSynchronization?: boolean;\n /** Whether the integration is enabled organization-wide */\n active?: boolean;\n /** Idle codes mapped to Teams presence states */\n idleCodes?: Record<string, string>;\n};\n\n/**\n * Organization-level Webex integration configuration carried by the `webexConfig` section of the\n * org desktop-login aggregate.\n * @public\n */\nexport type WebexConfig = {\n /** Whether to show user details in Webex */\n showUserDetails?: boolean;\n /** Whether to sync agent state with Webex */\n stateSynchronization?: boolean;\n /** Idle codes mapped to Webex presence states */\n idleCodes?: Record<string, string>;\n};\n\n/**\n * Constant representing idle code\n * @public\n * @ignore\n */\nexport const IDLE_CODE = 'IDLE_CODE';\n\n/**\n * Constant representing wrap up code\n * @public\n * @ignore\n */\nexport const WRAP_UP_CODE = 'WRAP_UP_CODE';\n\n/**\n * Type representing the possible auxiliary code types\n * @public\n */\nexport type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;\n\n/**\n * Sort order configuration for queries\n * @internal\n */\ntype SortOrder = {\n /** Property to sort by */\n property: string;\n /** Sort order direction */\n order: string;\n};\n\n/**\n * Search query configuration\n * @internal\n */\ntype SearchQuery = {\n /** Properties to search in */\n properties: string;\n /** Search value */\n value: string;\n};\n\n/**\n * Parameters for querying Contact Center resources\n * @public\n */\nexport type QueryParams = {\n /** Page number for pagination */\n pageNumber?: number;\n pageSize?: number;\n attributes?: Array<string>;\n ids?: Array<string>;\n queueType?: string;\n entryPointType?: string;\n channelType?: string;\n isActive?: boolean;\n workTypeCode?: AuxCodeType;\n names?: Array<string>;\n sortOrder?: SortOrder;\n searchQuery?: SearchQuery;\n defaultCode?: boolean;\n search?: string;\n desktopProfileFilter?: boolean;\n};\n\n/**\n * Basic entity information used throughout the system\n * @public\n */\nexport type Entity = {\n /** Whether this is a system entity */\n isSystem: boolean;\n /** Entity name */\n name: string;\n /** Unique entity identifier */\n id: string;\n /** Whether this is the default entity */\n isDefault: boolean;\n};\n\n/**\n * Dial plan entity definition containing number manipulation rules\n * @public\n */\nexport type DialPlanEntity = {\n /** Unique identifier for the dial plan */\n id: string;\n /** Regular expression pattern for matching numbers */\n regularExpression: string;\n /** Prefix to add to matched numbers */\n prefix: string;\n /** Characters to strip from matched numbers */\n strippedChars: string;\n /** Name of the dial plan */\n name: string;\n /** Whether the dial plan is active */\n active: boolean;\n};\n\n/**\n * Complete dial plan configuration for number handling\n * @public\n */\nexport type DialPlan = {\n /** Type of dial plan (e.g., 'adhocDial') */\n type: string;\n /** List of dial plan entities with transformation rules */\n dialPlanEntity: {\n /** Regular expression pattern */\n regex: string;\n /** Number prefix */\n prefix: string;\n /** Characters to strip */\n strippedChars: string;\n /** Entity name */\n name: string;\n }[];\n};\n\n/**\n * Agent wrap-up codes configuration with pagination metadata\n * @public\n */\nexport type agentWrapUpCodes = {\n /** Array of wrap-up code entities */\n data: Entity[];\n /** Pagination and navigation metadata */\n meta: {\n /** Navigation URLs for pagination */\n links: {\n /** URL for first page */\n first: string;\n /** URL for last page */\n last: string;\n /** URL for next page */\n next: string;\n /** URL for current page */\n self: string;\n };\n /** Organization identifier */\n orgid: string;\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Default wrap-up code configuration for an agent\n * @public\n */\nexport type agentDefaultWrapupCode = {\n /** Unique identifier for the wrap-up code */\n id: string;\n /** Display name of the wrap-up code */\n name: string;\n};\n\n/**\n * Wrap-up reason configuration used to classify completed interactions\n * @public\n */\nexport type WrapUpReason = {\n /** Whether this is a system-defined reason */\n isSystem: boolean;\n /** Display name of the reason */\n name: string;\n /** Unique identifier */\n id: string;\n /** Whether this is the default reason */\n isDefault: boolean;\n};\n\n/**\n * Wrap-up configuration data containing settings and available options\n * @public\n */\nexport type WrapupData = {\n /** Wrap-up configuration properties */\n wrapUpProps: {\n /** Whether automatic wrap-up is enabled */\n autoWrapup?: boolean;\n /** Time in seconds before auto wrap-up triggers */\n autoWrapupInterval?: number;\n /** Whether last agent routing is enabled */\n lastAgentRoute?: boolean;\n /** List of available wrap-up reasons */\n wrapUpReasonList: Array<WrapUpReason>;\n /** List of available wrap-up codes */\n wrapUpCodesList?: Array<string>;\n /** Access control for idle codes ('ALL' or 'SPECIFIC') */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Associated interaction identifier */\n interactionId?: string;\n /** Whether cancelling auto wrap-up is allowed */\n allowCancelAutoWrapup?: boolean;\n };\n};\n\n/**\n * Basic queue configuration information\n * @public\n */\nexport type Queue = {\n /** Queue identifier */\n queueId: string;\n /** Queue display name */\n queueName: string;\n};\n\n/**\n * URL mappings for external system integrations\n * @public\n */\nexport type URLMappings = {\n /** Acqueon API endpoint URL */\n acqueonApiUrl: string;\n /** Acqueon console URL */\n acqueonConsoleUrl: string;\n};\n\n/**\n * AI feature flags carried by the `aiFeature` section of the org desktop-login aggregate.\n * @public\n */\nexport type AIFeatureFlags = {\n /** Not carried by the aggregate; retained for responses that still supply a record id. */\n id?: string;\n realtimeTranscripts?: {\n enable?: boolean;\n agentInclusionType?: string;\n };\n suggestedResponses?: {\n enable?: boolean;\n };\n generatedSummaries?: {\n callDropSummariesEnabled?: boolean;\n virtualAgentTransferSummariesEnabled?: boolean;\n consultTransferSummariesEnabled?: boolean;\n wrapUpSummariesEnabled?: boolean;\n queuesInclusionType?: string;\n };\n agentWellbeing?: {\n enable?: boolean;\n agentInclusionType?: string;\n wellnessBreakReminders?: string;\n };\n autoCSAT?: {\n enable?: boolean;\n queuesInclusionType?: string;\n surveyDataSource?: string;\n };\n};\n\n/**\n * Aggregated organization configuration returned by `organization/{orgId}/desktop-login`.\n * Replaces the separate organization, organization-setting, tenant-configuration,\n * org-url-mapping and ai-feature calls.\n * @public\n */\nexport type OrgDesktopLoginResponse = {\n /** Organization identity and timezone */\n organization: OrgInfo;\n /** Organization-wide feature settings */\n organizationSetting: OrgSettings;\n /** Tenant-level configuration */\n tenantConfiguration: TenantData;\n /** External integration URLs, keyed by mapping name */\n urlMappings?: OrgUrlMappings;\n /** AI feature flags */\n aiFeature?: AIFeatureFlags;\n /** Microsoft Teams integration configuration; absent when not configured */\n microsoftConfig?: MicrosoftConfig;\n /** Webex integration configuration */\n webexConfig?: WebexConfig;\n};\n\n/**\n * Aggregated user configuration returned by\n * `organization/{orgId}/v2/user/by-ci-user-id/{ciUserId}/desktop-login`.\n * Replaces the separate user and agent-profile calls.\n * @public\n */\nexport type UserDesktopLoginResponse = {\n /** Agent identity */\n user: AgentResponse;\n /** Desktop Profile settings for the agent */\n agentProfile: AgentProfile;\n};\n\n/**\n * Comprehensive agent profile configuration in the contact center system\n * Contains all settings and capabilities for an agent\n * @public\n */\nexport type Profile = {\n /** Microsoft Teams integration configuration */\n microsoftConfig?: {\n /** Whether to show user details in Teams */\n showUserDetailsMS?: boolean;\n /** Whether to sync agent state with Teams */\n stateSynchronizationMS?: boolean;\n };\n /** Webex integration configuration */\n webexConfig?: {\n /** Whether to show user details in Webex */\n showUserDetailsWebex?: boolean;\n /** Whether to sync agent state with Webex */\n stateSynchronizationWebex?: boolean;\n };\n /** List of teams the agent belongs to, as returned by the team API */\n teams: TeamList[];\n /** Agent's default dial number */\n defaultDn: string;\n dn?: string;\n /** Whether default DN is enforced at tenant level */\n forceDefaultDn: boolean;\n /** Whether default DN is enforced for this agent */\n forceDefaultDnForAgent: boolean;\n /** Regex pattern for US phone number validation */\n regexUS: RegExp | string;\n /** Regex pattern for international phone number validation */\n regexOther: RegExp | string;\n /** Unique identifier for the agent */\n agentId: string;\n /** Display name for the agent */\n agentName: string;\n /** Email address for the agent */\n agentMailId: string;\n /** Agent's profile configuration ID */\n agentProfileID: string;\n /** Dial plan configuration for number handling */\n dialPlan: DialPlan;\n /** Multimedia profile defining channel capabilities */\n multimediaProfileId: string;\n /** Skill profile defining agent competencies */\n skillProfileId: string;\n /** Site where agent is located */\n siteId: string;\n /** Enterprise-wide identifier */\n enterpriseId: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Available idle codes */\n idleCodes: Entity[];\n /** List of specific idle codes */\n idleCodesList?: Array<string>;\n /** Access control for idle codes */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Available wrap-up codes */\n wrapupCodes: Entity[];\n /** Agent-specific wrap-up codes */\n agentWrapUpCodes?: agentWrapUpCodes;\n /** Default wrap-up code for agent */\n agentDefaultWrapUpCode?: agentDefaultWrapupCode;\n /** Default wrap-up code identifier */\n defaultWrapupCode: string;\n /** Wrap-up configuration data */\n wrapUpData: WrapupData;\n /** Organization identifier */\n orgId?: string;\n /** Whether outbound is enabled at tenant level */\n isOutboundEnabledForTenant: boolean;\n /** Whether outbound is enabled for this agent */\n isOutboundEnabledForAgent: boolean;\n /** Whether ad-hoc dialing is enabled */\n isAdhocDialingEnabled: boolean;\n /** Whether agent becomes available after outdial */\n isAgentAvailableAfterOutdial: boolean;\n /** Whether campaign management is enabled */\n isCampaignManagementEnabled: boolean;\n /** Outbound entry point */\n outDialEp: string;\n /** Whether ending calls is enabled */\n isEndTaskEnabled: boolean;\n /** Whether ending consultations is enabled */\n isEndConsultEnabled: boolean;\n /** Optional lifecycle manager URL */\n lcmUrl?: string;\n /** Database identifier for agent */\n agentDbId: string;\n /** Optional analyzer identifier for agent */\n agentAnalyzerId?: string;\n /** Whether consult to queue is allowed */\n allowConsultToQueue: boolean;\n /** Access control for queues on Desktop Profile Collaboration tab */\n accessQueue?: CollaborationAccess;\n /** Access control for entry points on Desktop Profile Collaboration tab */\n accessEntryPoint?: CollaborationAccess;\n /** Access control for buddy teams on Desktop Profile Collaboration tab */\n accessBuddyTeam?: CollaborationAccess;\n /** Additional campaign manager information */\n campaignManagerAdditionalInfo?: string;\n /** Whether personal statistics are enabled */\n agentPersonalStatsEnabled: boolean;\n /** Optional address book identifier */\n addressBookId?: string;\n /** Optional outbound ANI identifier */\n outdialANIId?: string;\n /** Optional analyzer user identifier */\n analyserUserId?: string;\n /** Whether call monitoring is enabled */\n isCallMonitoringEnabled?: boolean;\n /** Whether mid-call monitoring is enabled */\n isMidCallMonitoringEnabled?: boolean;\n /** Whether barge-in functionality is enabled */\n isBargeInEnabled?: boolean;\n /** Whether managed teams feature is enabled */\n isManagedTeamsEnabled?: boolean;\n /** Whether managed queues feature is enabled */\n isManagedQueuesEnabled?: boolean;\n /** Whether sending messages is enabled */\n isSendMessageEnabled?: boolean;\n /** Whether agent state changes are enabled */\n isAgentStateChangeEnabled?: boolean;\n /** Whether signing out agents is enabled */\n isSignOutAgentsEnabled?: boolean;\n /** Integration URL mappings */\n urlMappings?: URLMappings;\n /** Whether desktop inactivity timeout is enabled */\n isTimeoutDesktopInactivityEnabled: boolean;\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins?: number;\n /** Whether analyzer features are enabled */\n isAnalyzerEnabled?: boolean;\n /** Tenant timezone */\n tenantTimezone?: string;\n /** Available voice login options */\n loginVoiceOptions?: LoginOption[];\n /** Current login device type */\n deviceType?: LoginOption;\n /** Current team identifier */\n currentTeamId?: string;\n /** Whether WebRTC is enabled */\n webRtcEnabled: boolean;\n /** Organization-wide idle codes */\n organizationIdleCodes?: Entity[];\n /** Whether recording management is enabled */\n isRecordingManagementEnabled?: boolean;\n /** Connection recovery timeout in milliseconds */\n lostConnectionRecoveryTimeout: number;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData?: boolean;\n /** Whether agent is currently logged in */\n isAgentLoggedIn?: boolean;\n /** Active station session after a successful registered relogin. */\n agentSessionId?: string;\n /** Last auxiliary code ID used for state change */\n lastStateAuxCodeId?: string;\n /** Timestamp of last state change */\n lastStateChangeTimestamp?: number;\n /** Timestamp of last idle code change */\n lastIdleCodeChangeTimestamp?: number;\n /** AI feature flags resolved from organization config */\n aiFeature?: AIFeatureFlags;\n /**\n * Whether Agent Wellness Break is effectively enabled for this profile.\n * This combines the organization wellbeing configuration with AI Assistant licensing;\n * Server-side rollout remains enforced by the backend configuration and notification delivery.\n */\n isWellnessBreakEnabled?: boolean;\n};\n\n/**\n * Contact distribution group configuration for routing logic\n * @public\n */\nexport type CallDistributionGroup = {\n /** List of agent groups in this distribution group */\n agentGroups: {\n /** Team identifier */\n teamId: string;\n }[];\n /** Distribution order priority */\n order: number;\n /** Distribution time duration in seconds */\n duration: number;\n};\n\n/**\n * Represents a single outdial ANI (Automatic Number Identification) entry\n * @public\n */\nexport type OutdialAniEntry = {\n /** Unique identifier for the ANI entry */\n id: string;\n /** Display name for the ANI entry */\n name: string;\n /** Phone number associated with this ANI entry */\n number: string;\n /** Related links for this ANI entry */\n links: string[];\n /** Timestamp when this entry was created (Unix timestamp in milliseconds) */\n createdTime: number;\n /** Timestamp when this entry was last updated (Unix timestamp in milliseconds) */\n lastUpdatedTime: number;\n};\n\n/**\n * Response structure for outdial ANI entries API call\n * @public\n */\nexport type OutdialAniEntriesResponse = OutdialAniEntry[];\n\n/**\n * Parameters for fetching outdial ANI entries\n * @public\n */\nexport type OutdialAniParams = {\n /** Outdial ANI ID from agent profile */\n outdialANI: string;\n /** Page number for pagination (optional) */\n page?: number;\n /** Number of entries per page (optional) */\n pageSize?: number;\n /** Search string to filter entries (optional) */\n search?: string;\n /** Filter expression for advanced filtering (optional) */\n filter?: string;\n /** Comma-separated list of attributes to include in response (optional) */\n attributes?: string;\n};\n\n/**\n * User preference data structure\n * @public\n */\nexport type UserPreference = {\n /** Unique identifier for the user preference */\n id: string;\n /** Organization ID */\n organizationId: string;\n /** User ID (CI user ID) */\n userId: string;\n /** User preference data as key-value pairs */\n preferences: Record<string, unknown>;\n /** Timestamp when this preference was created (Unix timestamp in milliseconds) */\n createdTime?: number;\n /** Timestamp when this preference was last updated (Unix timestamp in milliseconds) */\n lastUpdatedTime?: number;\n};\n\n/**\n * Request payload for creating user preferences\n * @public\n */\nexport type CreateUserPreferenceRequest = {\n /** User ID (CI user ID) */\n userId: string;\n /** Desktop preference data as a JSON string (required) */\n desktopPreference: string;\n};\n\n/**\n * Request payload for updating user preferences\n * @public\n */\nexport type UpdateUserPreferenceRequest = {\n /** Desktop preference data as a JSON string (required) */\n desktopPreference: string;\n};\n\n/**\n * Query parameters for fetching user preferences\n * @public\n */\nexport type GetUserPreferenceParams = {\n /** User ID to fetch preferences for. Defaults to current user's CI user ID. */\n userId?: string;\n /** Page number (0-indexed). Default: 0 */\n page?: number;\n /** Number of items per page. Default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;AA0BA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACO,MAAMyF,SAAS,GAAAxF,OAAA,CAAAwF,SAAA,GAAG,WAAW;;AAEpC;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAY,GAAAzF,OAAA,CAAAyF,YAAA,GAAG,cAAc;;AAE1C;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;;AA8BA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AA8BA;AACA;AACA;AACA;AACA;AACA;;AAkBA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;;AAyKA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA","ignoreList":[]}