o2g-node-sdk 1.0.1 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -5
  3. package/dist/o2g-node-sdk.js +38042 -1
  4. package/dist/o2g-node-sdk.js.map +1 -1
  5. package/dist/{ErrorInfo.d.ts → types/ErrorInfo.d.ts} +1 -0
  6. package/dist/types/ErrorInfo.d.ts.map +1 -0
  7. package/dist/{host.d.ts → types/host.d.ts} +3 -2
  8. package/dist/types/host.d.ts.map +1 -0
  9. package/dist/types/internal/access-mode.d.ts +2 -0
  10. package/dist/types/internal/access-mode.d.ts.map +1 -0
  11. package/dist/types/internal/events/chunk-eventing.d.ts +2 -0
  12. package/dist/types/internal/events/chunk-eventing.d.ts.map +1 -0
  13. package/dist/types/internal/events/event-dispatcher.d.ts +2 -0
  14. package/dist/types/internal/events/event-dispatcher.d.ts.map +1 -0
  15. package/dist/types/internal/events/event-packages.d.ts +2 -0
  16. package/dist/types/internal/events/event-packages.d.ts.map +1 -0
  17. package/dist/types/internal/o2g-application.d.ts +2 -0
  18. package/dist/types/internal/o2g-application.d.ts.map +1 -0
  19. package/dist/types/internal/rest/analytics-rest.d.ts +2 -0
  20. package/dist/types/internal/rest/analytics-rest.d.ts.map +1 -0
  21. package/dist/types/internal/rest/authentication-rest.d.ts +2 -0
  22. package/dist/types/internal/rest/authentication-rest.d.ts.map +1 -0
  23. package/dist/types/internal/rest/ccAgent-rest.d.ts +2 -0
  24. package/dist/types/internal/rest/ccAgent-rest.d.ts.map +1 -0
  25. package/dist/types/internal/rest/ccMngt-rest.d.ts +2 -0
  26. package/dist/types/internal/rest/ccMngt-rest.d.ts.map +1 -0
  27. package/dist/types/internal/rest/ccPilot-rest.d.ts +2 -0
  28. package/dist/types/internal/rest/ccPilot-rest.d.ts.map +1 -0
  29. package/dist/types/internal/rest/ccRealtime-rest.d.ts +2 -0
  30. package/dist/types/internal/rest/ccRealtime-rest.d.ts.map +1 -0
  31. package/dist/types/internal/rest/ccStatistics-rest.d.ts +45 -0
  32. package/dist/types/internal/rest/ccStatistics-rest.d.ts.map +1 -0
  33. package/dist/types/internal/rest/comlog-rest.d.ts +2 -0
  34. package/dist/types/internal/rest/comlog-rest.d.ts.map +1 -0
  35. package/dist/types/internal/rest/directory-rest.d.ts +2 -0
  36. package/dist/types/internal/rest/directory-rest.d.ts.map +1 -0
  37. package/dist/types/internal/rest/eventSummary-rest.d.ts +2 -0
  38. package/dist/types/internal/rest/eventSummary-rest.d.ts.map +1 -0
  39. package/dist/types/internal/rest/maint-rest.d.ts +2 -0
  40. package/dist/types/internal/rest/maint-rest.d.ts.map +1 -0
  41. package/dist/types/internal/rest/messaging-rest.d.ts +2 -0
  42. package/dist/types/internal/rest/messaging-rest.d.ts.map +1 -0
  43. package/dist/types/internal/rest/o2g-rest.d.ts +2 -0
  44. package/dist/types/internal/rest/o2g-rest.d.ts.map +1 -0
  45. package/dist/types/internal/rest/pbx-mngt-rest.d.ts +2 -0
  46. package/dist/types/internal/rest/pbx-mngt-rest.d.ts.map +1 -0
  47. package/dist/types/internal/rest/phone-set-prog-rest.d.ts +2 -0
  48. package/dist/types/internal/rest/phone-set-prog-rest.d.ts.map +1 -0
  49. package/dist/types/internal/rest/rest-service.d.ts +2 -0
  50. package/dist/types/internal/rest/rest-service.d.ts.map +1 -0
  51. package/dist/types/internal/rest/routing-rest.d.ts +2 -0
  52. package/dist/types/internal/rest/routing-rest.d.ts.map +1 -0
  53. package/dist/types/internal/rest/rsi-rest.d.ts +2 -0
  54. package/dist/types/internal/rest/rsi-rest.d.ts.map +1 -0
  55. package/dist/types/internal/rest/sessions-rest.d.ts +2 -0
  56. package/dist/types/internal/rest/sessions-rest.d.ts.map +1 -0
  57. package/dist/types/internal/rest/subscriptions-rest.d.ts +2 -0
  58. package/dist/types/internal/rest/subscriptions-rest.d.ts.map +1 -0
  59. package/dist/types/internal/rest/telephony-rest.d.ts +2 -0
  60. package/dist/types/internal/rest/telephony-rest.d.ts.map +1 -0
  61. package/dist/types/internal/rest/users-mngt-rest.d.ts +2 -0
  62. package/dist/types/internal/rest/users-mngt-rest.d.ts.map +1 -0
  63. package/dist/types/internal/rest/users-rest.d.ts +2 -0
  64. package/dist/types/internal/rest/users-rest.d.ts.map +1 -0
  65. package/dist/types/internal/service-end-point.d.ts +2 -0
  66. package/dist/types/internal/service-end-point.d.ts.map +1 -0
  67. package/dist/types/internal/service-factory.d.ts +2 -0
  68. package/dist/types/internal/service-factory.d.ts.map +1 -0
  69. package/dist/types/internal/session.d.ts +2 -0
  70. package/dist/types/internal/session.d.ts.map +1 -0
  71. package/dist/types/internal/types/analytics/analytics-types.d.ts +2 -0
  72. package/dist/types/internal/types/analytics/analytics-types.d.ts.map +1 -0
  73. package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts +2 -0
  74. package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts.map +1 -0
  75. package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts +2 -0
  76. package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts.map +1 -0
  77. package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts +2 -0
  78. package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts.map +1 -0
  79. package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts +2 -0
  80. package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts.map +1 -0
  81. package/dist/types/internal/types/cc-stat/abstract-filter.d.ts +2 -0
  82. package/dist/types/internal/types/cc-stat/abstract-filter.d.ts.map +1 -0
  83. package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts +2 -0
  84. package/dist/types/internal/types/cc-stat/ag-filter-impl.d.ts.map +1 -0
  85. package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts +56 -0
  86. package/dist/types/internal/types/cc-stat/cc-stat-types.d.ts.map +1 -0
  87. package/dist/types/internal/types/cc-stat/context-impl.d.ts +2 -0
  88. package/dist/types/internal/types/cc-stat/context-impl.d.ts.map +1 -0
  89. package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts +2 -0
  90. package/dist/types/internal/types/cc-stat/on-stats-progress.d.ts.map +1 -0
  91. package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts +2 -0
  92. package/dist/types/internal/types/cc-stat/pil-filter-impl.d.ts.map +1 -0
  93. package/dist/types/internal/types/cc-stat/requester-impl.d.ts +2 -0
  94. package/dist/types/internal/types/cc-stat/requester-impl.d.ts.map +1 -0
  95. package/dist/types/internal/types/cc-stat/scheduled-rep-impl.d.ts +2 -0
  96. package/dist/types/internal/types/cc-stat/scheduled-rep-impl.d.ts.map +1 -0
  97. package/dist/types/internal/types/comlog/comlog-types.d.ts +2 -0
  98. package/dist/types/internal/types/comlog/comlog-types.d.ts.map +1 -0
  99. package/dist/types/internal/types/common/common-types.d.ts +2 -0
  100. package/dist/types/internal/types/common/common-types.d.ts.map +1 -0
  101. package/dist/types/internal/types/directory/directory-types.d.ts +2 -0
  102. package/dist/types/internal/types/directory/directory-types.d.ts.map +1 -0
  103. package/dist/types/{eventsummary/event-summary-events.d.ts → internal/types/eventsummary/eventsummary-types.d.ts} +4 -5
  104. package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts.map +1 -0
  105. package/dist/types/internal/types/maint/maint-types.d.ts +2 -0
  106. package/dist/types/internal/types/maint/maint-types.d.ts.map +1 -0
  107. package/dist/types/internal/types/messaging/messaging-types.d.ts +2 -0
  108. package/dist/types/internal/types/messaging/messaging-types.d.ts.map +1 -0
  109. package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts +2 -0
  110. package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts.map +1 -0
  111. package/dist/types/internal/types/phoneset/phoneset-types.d.ts +2 -0
  112. package/dist/types/internal/types/phoneset/phoneset-types.d.ts.map +1 -0
  113. package/dist/types/internal/types/routing/routing-types.d.ts +2 -0
  114. package/dist/types/internal/types/routing/routing-types.d.ts.map +1 -0
  115. package/dist/types/internal/types/rsi/rsi-types.d.ts +2 -0
  116. package/dist/types/internal/types/rsi/rsi-types.d.ts.map +1 -0
  117. package/dist/types/internal/types/telephony/telephony-types.d.ts +2 -0
  118. package/dist/types/internal/types/telephony/telephony-types.d.ts.map +1 -0
  119. package/dist/types/internal/types/users/users-types.d.ts +2 -0
  120. package/dist/types/internal/types/users/users-types.d.ts.map +1 -0
  121. package/dist/types/internal/util/IHttpClient.d.ts +2 -0
  122. package/dist/types/internal/util/IHttpClient.d.ts.map +1 -0
  123. package/dist/types/internal/util/assert.d.ts +2 -0
  124. package/dist/types/internal/util/assert.d.ts.map +1 -0
  125. package/dist/types/internal/util/file-utils.d.ts +2 -0
  126. package/dist/types/internal/util/file-utils.d.ts.map +1 -0
  127. package/dist/types/internal/util/format-util.d.ts +2 -0
  128. package/dist/types/internal/util/format-util.d.ts.map +1 -0
  129. package/dist/types/internal/util/hexa-string.d.ts +2 -0
  130. package/dist/types/internal/util/hexa-string.d.ts.map +1 -0
  131. package/dist/types/internal/util/http-client.d.ts +2 -0
  132. package/dist/types/internal/util/http-client.d.ts.map +1 -0
  133. package/dist/types/internal/util/http-content.d.ts +2 -0
  134. package/dist/types/internal/util/http-content.d.ts.map +1 -0
  135. package/dist/types/internal/util/http-response.d.ts +2 -0
  136. package/dist/types/internal/util/http-response.d.ts.map +1 -0
  137. package/dist/types/internal/util/injection-container.d.ts +5 -0
  138. package/dist/types/internal/util/injection-container.d.ts.map +1 -0
  139. package/dist/types/internal/util/logger.d.ts +7 -0
  140. package/dist/types/internal/util/logger.d.ts.map +1 -0
  141. package/dist/types/internal/util/util-uri.d.ts +2 -0
  142. package/dist/types/internal/util/util-uri.d.ts.map +1 -0
  143. package/dist/{o2g-analytics.d.ts → types/o2g-analytics.d.ts} +10 -15
  144. package/dist/types/o2g-analytics.d.ts.map +1 -0
  145. package/dist/types/o2g-cc-agent.d.ts +376 -0
  146. package/dist/types/o2g-cc-agent.d.ts.map +1 -0
  147. package/dist/types/o2g-cc-mngt.d.ts +213 -0
  148. package/dist/types/o2g-cc-mngt.d.ts.map +1 -0
  149. package/dist/types/o2g-cc-pilot.d.ts +71 -0
  150. package/dist/types/o2g-cc-pilot.d.ts.map +1 -0
  151. package/dist/types/o2g-cc-rt.d.ts +163 -0
  152. package/dist/types/o2g-cc-rt.d.ts.map +1 -0
  153. package/dist/types/o2g-cc-stat.d.ts +450 -0
  154. package/dist/types/o2g-cc-stat.d.ts.map +1 -0
  155. package/dist/types/o2g-comlog.d.ts +245 -0
  156. package/dist/types/o2g-comlog.d.ts.map +1 -0
  157. package/dist/types/o2g-directory.d.ts +109 -0
  158. package/dist/types/o2g-directory.d.ts.map +1 -0
  159. package/dist/types/o2g-eventSummary.d.ts +44 -0
  160. package/dist/types/o2g-eventSummary.d.ts.map +1 -0
  161. package/dist/types/o2g-maint.d.ts +82 -0
  162. package/dist/types/o2g-maint.d.ts.map +1 -0
  163. package/dist/types/o2g-messaging.d.ts +137 -0
  164. package/dist/types/o2g-messaging.d.ts.map +1 -0
  165. package/dist/types/o2g-node-sdk.d.ts +421 -0
  166. package/dist/types/o2g-node-sdk.d.ts.map +1 -0
  167. package/dist/types/o2g-pbx-mngt.d.ts +244 -0
  168. package/dist/types/o2g-pbx-mngt.d.ts.map +1 -0
  169. package/dist/types/o2g-phone-set-prog.d.ts +269 -0
  170. package/dist/types/o2g-phone-set-prog.d.ts.map +1 -0
  171. package/dist/types/o2g-routing.d.ts +313 -0
  172. package/dist/types/o2g-routing.d.ts.map +1 -0
  173. package/dist/{o2g-rsi.d.ts → types/o2g-rsi.d.ts} +7 -12
  174. package/dist/types/o2g-rsi.d.ts.map +1 -0
  175. package/dist/types/o2g-telephony.d.ts +895 -0
  176. package/dist/types/o2g-telephony.d.ts.map +1 -0
  177. package/dist/types/o2g-users-mngt.d.ts +83 -0
  178. package/dist/types/o2g-users-mngt.d.ts.map +1 -0
  179. package/dist/types/o2g-users.d.ts +127 -0
  180. package/dist/types/o2g-users.d.ts.map +1 -0
  181. package/dist/types/subscription.d.ts +379 -0
  182. package/dist/types/subscription.d.ts.map +1 -0
  183. package/dist/types/supervised-account.d.ts +40 -0
  184. package/dist/types/supervised-account.d.ts.map +1 -0
  185. package/dist/types/{analytics → types/analytics}/call-type.d.ts +1 -0
  186. package/dist/types/types/analytics/call-type.d.ts.map +1 -0
  187. package/dist/types/types/analytics/charging-file.d.ts +13 -0
  188. package/dist/types/types/analytics/charging-file.d.ts.map +1 -0
  189. package/dist/types/types/analytics/charging-result.d.ts +50 -0
  190. package/dist/types/types/analytics/charging-result.d.ts.map +1 -0
  191. package/dist/types/types/analytics/charging.d.ts +69 -0
  192. package/dist/types/types/analytics/charging.d.ts.map +1 -0
  193. package/dist/types/types/analytics/incident.d.ts +41 -0
  194. package/dist/types/types/analytics/incident.d.ts.map +1 -0
  195. package/dist/types/{analytics → types/analytics}/tel-facility.d.ts +1 -0
  196. package/dist/types/types/analytics/tel-facility.d.ts.map +1 -0
  197. package/dist/types/types/cc-agent/agent-groups.d.ts +11 -0
  198. package/dist/types/types/cc-agent/agent-groups.d.ts.map +1 -0
  199. package/dist/types/types/cc-agent/agent-skill-set.d.ts +43 -0
  200. package/dist/types/types/cc-agent/agent-skill-set.d.ts.map +1 -0
  201. package/dist/types/types/cc-agent/agent-skill.d.ts +15 -0
  202. package/dist/types/types/cc-agent/agent-skill.d.ts.map +1 -0
  203. package/dist/types/types/cc-agent/cc-agent-events.d.ts +44 -0
  204. package/dist/types/types/cc-agent/cc-agent-events.d.ts.map +1 -0
  205. package/dist/types/{cc-agent → types/cc-agent}/intrusion-mode.d.ts +3 -2
  206. package/dist/types/types/cc-agent/intrusion-mode.d.ts.map +1 -0
  207. package/dist/types/types/cc-agent/operator-config.d.ts +76 -0
  208. package/dist/types/types/cc-agent/operator-config.d.ts.map +1 -0
  209. package/dist/types/types/cc-agent/operator-state.d.ts +100 -0
  210. package/dist/types/types/cc-agent/operator-state.d.ts.map +1 -0
  211. package/dist/types/{cc-agent → types/cc-agent}/operator-type.d.ts +1 -0
  212. package/dist/types/types/cc-agent/operator-type.d.ts.map +1 -0
  213. package/dist/types/types/cc-agent/withdraw-reason.d.ts +23 -0
  214. package/dist/types/types/cc-agent/withdraw-reason.d.ts.map +1 -0
  215. package/dist/types/{cc-mngt → types/cc-mngt}/calendar/abstract-calendar.d.ts +2 -1
  216. package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts.map +1 -0
  217. package/dist/types/types/cc-mngt/calendar/calendar.d.ts +22 -0
  218. package/dist/types/types/cc-mngt/calendar/calendar.d.ts.map +1 -0
  219. package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts +31 -0
  220. package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts.map +1 -0
  221. package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts +31 -0
  222. package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts.map +1 -0
  223. package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts +18 -0
  224. package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts.map +1 -0
  225. package/dist/types/types/cc-mngt/calendar/transition.d.ts +65 -0
  226. package/dist/types/types/cc-mngt/calendar/transition.d.ts.map +1 -0
  227. package/dist/types/types/cc-mngt/pilot-rule-set.d.ts +33 -0
  228. package/dist/types/types/cc-mngt/pilot-rule-set.d.ts.map +1 -0
  229. package/dist/types/types/cc-mngt/pilot-rule.d.ts +24 -0
  230. package/dist/types/types/cc-mngt/pilot-rule.d.ts.map +1 -0
  231. package/dist/types/types/cc-mngt/pilot.d.ts +58 -0
  232. package/dist/types/types/cc-mngt/pilot.d.ts.map +1 -0
  233. package/dist/types/types/cc-pilot/call-data-pilot.d.ts +50 -0
  234. package/dist/types/types/cc-pilot/call-data-pilot.d.ts.map +1 -0
  235. package/dist/types/types/cc-pilot/cc-pilot-events.d.ts +131 -0
  236. package/dist/types/types/cc-pilot/cc-pilot-events.d.ts.map +1 -0
  237. package/dist/types/types/cc-rt/agent-attributes.d.ts +50 -0
  238. package/dist/types/types/cc-rt/agent-attributes.d.ts.map +1 -0
  239. package/dist/types/types/cc-rt/agent-pg-attributes.d.ts +50 -0
  240. package/dist/types/types/cc-rt/agent-pg-attributes.d.ts.map +1 -0
  241. package/dist/types/types/cc-rt/agent-pg-type.d.ts +17 -0
  242. package/dist/types/types/cc-rt/agent-pg-type.d.ts.map +1 -0
  243. package/dist/types/types/cc-rt/agent-phone-state.d.ts +67 -0
  244. package/dist/types/types/cc-rt/agent-phone-state.d.ts.map +1 -0
  245. package/dist/types/types/cc-rt/agent-service-type.d.ts +16 -0
  246. package/dist/types/types/cc-rt/agent-service-type.d.ts.map +1 -0
  247. package/dist/types/types/cc-rt/agent-type.d.ts +16 -0
  248. package/dist/types/types/cc-rt/agent-type.d.ts.map +1 -0
  249. package/dist/types/types/cc-rt/cc-rt-events.d.ts +274 -0
  250. package/dist/types/types/cc-rt/cc-rt-events.d.ts.map +1 -0
  251. package/dist/types/types/cc-rt/other-pg-attributes.d.ts +18 -0
  252. package/dist/types/types/cc-rt/other-pg-attributes.d.ts.map +1 -0
  253. package/dist/types/types/cc-rt/other-pg-type.d.ts +22 -0
  254. package/dist/types/types/cc-rt/other-pg-type.d.ts.map +1 -0
  255. package/dist/types/types/cc-rt/pilot-attributes.d.ts +40 -0
  256. package/dist/types/types/cc-rt/pilot-attributes.d.ts.map +1 -0
  257. package/dist/types/types/cc-rt/queue-attributes.d.ts +30 -0
  258. package/dist/types/types/cc-rt/queue-attributes.d.ts.map +1 -0
  259. package/dist/types/types/cc-rt/queue-type.d.ts +23 -0
  260. package/dist/types/types/cc-rt/queue-type.d.ts.map +1 -0
  261. package/dist/types/types/cc-rt/rti-context.d.ts +56 -0
  262. package/dist/types/types/cc-rt/rti-context.d.ts.map +1 -0
  263. package/dist/types/types/cc-rt/rti-filter.d.ts +117 -0
  264. package/dist/types/types/cc-rt/rti-filter.d.ts.map +1 -0
  265. package/dist/types/types/cc-rt/rti-object-identifier.d.ts +34 -0
  266. package/dist/types/types/cc-rt/rti-object-identifier.d.ts.map +1 -0
  267. package/dist/types/types/cc-rt/rti-objects.d.ts +72 -0
  268. package/dist/types/types/cc-rt/rti-objects.d.ts.map +1 -0
  269. package/dist/types/types/cc-stats/agbypilot-attributes.d.ts +73 -0
  270. package/dist/types/types/cc-stats/agbypilot-attributes.d.ts.map +1 -0
  271. package/dist/types/types/cc-stats/agent-attributes.d.ts +377 -0
  272. package/dist/types/types/cc-stats/agent-attributes.d.ts.map +1 -0
  273. package/dist/types/types/cc-stats/agent-filter.d.ts +60 -0
  274. package/dist/types/types/cc-stats/agent-filter.d.ts.map +1 -0
  275. package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts +184 -0
  276. package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts.map +1 -0
  277. package/dist/types/types/cc-stats/data/ag-stats-row.d.ts +608 -0
  278. package/dist/types/types/cc-stats/data/ag-stats-row.d.ts.map +1 -0
  279. package/dist/types/types/cc-stats/data/data-obs-period.d.ts +20 -0
  280. package/dist/types/types/cc-stats/data/data-obs-period.d.ts.map +1 -0
  281. package/dist/types/types/cc-stats/data/pil-stats-row.d.ts +623 -0
  282. package/dist/types/types/cc-stats/data/pil-stats-row.d.ts.map +1 -0
  283. package/dist/types/types/cc-stats/data/selected-period.d.ts +49 -0
  284. package/dist/types/types/cc-stats/data/selected-period.d.ts.map +1 -0
  285. package/dist/types/types/cc-stats/data/stat-value.d.ts +36 -0
  286. package/dist/types/types/cc-stats/data/stat-value.d.ts.map +1 -0
  287. package/dist/types/types/cc-stats/data/stats-data.d.ts +64 -0
  288. package/dist/types/types/cc-stats/data/stats-data.d.ts.map +1 -0
  289. package/dist/types/types/cc-stats/events/progress-callback.d.ts +9 -0
  290. package/dist/types/types/cc-stats/events/progress-callback.d.ts.map +1 -0
  291. package/dist/types/types/cc-stats/events/progress-step.d.ts +20 -0
  292. package/dist/types/types/cc-stats/events/progress-step.d.ts.map +1 -0
  293. package/dist/types/types/cc-stats/language.d.ts +15 -0
  294. package/dist/types/types/cc-stats/language.d.ts.map +1 -0
  295. package/dist/types/types/cc-stats/pilot-attributes.d.ts +185 -0
  296. package/dist/types/types/cc-stats/pilot-attributes.d.ts.map +1 -0
  297. package/dist/types/types/cc-stats/pilot-filter.d.ts +45 -0
  298. package/dist/types/types/cc-stats/pilot-filter.d.ts.map +1 -0
  299. package/dist/types/types/cc-stats/requester.d.ts +33 -0
  300. package/dist/types/types/cc-stats/requester.d.ts.map +1 -0
  301. package/dist/types/types/cc-stats/scheduled/recurrence.d.ts +69 -0
  302. package/dist/types/types/cc-stats/scheduled/recurrence.d.ts.map +1 -0
  303. package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts +87 -0
  304. package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts.map +1 -0
  305. package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts +132 -0
  306. package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts.map +1 -0
  307. package/dist/types/types/cc-stats/stats-context.d.ts +66 -0
  308. package/dist/types/types/cc-stats/stats-context.d.ts.map +1 -0
  309. package/dist/types/types/cc-stats/stats-filter.d.ts +34 -0
  310. package/dist/types/types/cc-stats/stats-filter.d.ts.map +1 -0
  311. package/dist/types/types/cc-stats/stats-format.d.ts +17 -0
  312. package/dist/types/types/cc-stats/stats-format.d.ts.map +1 -0
  313. package/dist/types/types/cc-stats/time-interval.d.ts +19 -0
  314. package/dist/types/types/cc-stats/time-interval.d.ts.map +1 -0
  315. package/dist/types/types/comlog/com-record-participant.d.ts +75 -0
  316. package/dist/types/types/comlog/com-record-participant.d.ts.map +1 -0
  317. package/dist/types/types/comlog/com-record.d.ts +97 -0
  318. package/dist/types/types/comlog/com-record.d.ts.map +1 -0
  319. package/dist/types/types/comlog/comlog-events.d.ts +110 -0
  320. package/dist/types/types/comlog/comlog-events.d.ts.map +1 -0
  321. package/dist/types/{comlog/option.d.ts → types/comlog/filter-option.d.ts} +2 -1
  322. package/dist/types/types/comlog/filter-option.d.ts.map +1 -0
  323. package/dist/types/{comlog → types/comlog}/page.d.ts +2 -1
  324. package/dist/types/types/comlog/page.d.ts.map +1 -0
  325. package/dist/types/types/comlog/query-filter.d.ts +79 -0
  326. package/dist/types/types/comlog/query-filter.d.ts.map +1 -0
  327. package/dist/types/types/comlog/query-result.d.ts +55 -0
  328. package/dist/types/types/comlog/query-result.d.ts.map +1 -0
  329. package/dist/types/{comlog → types/comlog}/reason.d.ts +1 -0
  330. package/dist/types/types/comlog/reason.d.ts.map +1 -0
  331. package/dist/types/{comlog → types/comlog}/role.d.ts +1 -0
  332. package/dist/types/types/comlog/role.d.ts.map +1 -0
  333. package/dist/types/types/common/date-range.d.ts +17 -0
  334. package/dist/types/types/common/date-range.d.ts.map +1 -0
  335. package/dist/types/types/common/day-of-week.d.ts +15 -0
  336. package/dist/types/types/common/day-of-week.d.ts.map +1 -0
  337. package/dist/types/types/common/device-type.d.ts +22 -0
  338. package/dist/types/types/common/device-type.d.ts.map +1 -0
  339. package/dist/types/types/common/device.d.ts +75 -0
  340. package/dist/types/types/common/device.d.ts.map +1 -0
  341. package/dist/types/types/common/identifier.d.ts +20 -0
  342. package/dist/types/types/common/identifier.d.ts.map +1 -0
  343. package/dist/types/types/common/main-type.d.ts +26 -0
  344. package/dist/types/types/common/main-type.d.ts.map +1 -0
  345. package/dist/types/types/common/party-info-type.d.ts +22 -0
  346. package/dist/types/types/common/party-info-type.d.ts.map +1 -0
  347. package/dist/types/types/common/party-info.d.ts +28 -0
  348. package/dist/types/types/common/party-info.d.ts.map +1 -0
  349. package/dist/types/types/common/service-state.d.ts +20 -0
  350. package/dist/types/types/common/service-state.d.ts.map +1 -0
  351. package/dist/types/types/directory/criteria.d.ts +95 -0
  352. package/dist/types/types/directory/criteria.d.ts.map +1 -0
  353. package/dist/types/{directory → types/directory}/filter-item.d.ts +5 -4
  354. package/dist/types/types/directory/filter-item.d.ts.map +1 -0
  355. package/dist/types/types/directory/logical-operation.d.ts +14 -0
  356. package/dist/types/types/directory/logical-operation.d.ts.map +1 -0
  357. package/dist/types/{directory → types/directory}/operation-filter.d.ts +5 -4
  358. package/dist/types/types/directory/operation-filter.d.ts.map +1 -0
  359. package/dist/types/types/directory/result-item.d.ts +22 -0
  360. package/dist/types/types/directory/result-item.d.ts.map +1 -0
  361. package/dist/types/types/directory/search-result.d.ts +64 -0
  362. package/dist/types/types/directory/search-result.d.ts.map +1 -0
  363. package/dist/types/{events → types/events}/events.d.ts +37 -14
  364. package/dist/types/types/events/events.d.ts.map +1 -0
  365. package/dist/types/types/eventsummary/event-summary-counter.d.ts +69 -0
  366. package/dist/types/types/eventsummary/event-summary-counter.d.ts.map +1 -0
  367. package/dist/types/types/eventsummary/event-summary-events.d.ts +26 -0
  368. package/dist/types/types/eventsummary/event-summary-events.d.ts.map +1 -0
  369. package/dist/types/types/maint/configuration-type.d.ts +15 -0
  370. package/dist/types/types/maint/configuration-type.d.ts.map +1 -0
  371. package/dist/types/types/maint/cti-link-state.d.ts +19 -0
  372. package/dist/types/types/maint/cti-link-state.d.ts.map +1 -0
  373. package/dist/types/types/maint/license-status.d.ts +42 -0
  374. package/dist/types/types/maint/license-status.d.ts.map +1 -0
  375. package/dist/types/types/maint/license-type.d.ts +19 -0
  376. package/dist/types/types/maint/license-type.d.ts.map +1 -0
  377. package/dist/types/types/maint/license.d.ts +38 -0
  378. package/dist/types/types/maint/license.d.ts.map +1 -0
  379. package/dist/types/types/maint/maint-events.d.ts +105 -0
  380. package/dist/types/types/maint/maint-events.d.ts.map +1 -0
  381. package/dist/types/types/maint/pbx-status.d.ts +77 -0
  382. package/dist/types/types/maint/pbx-status.d.ts.map +1 -0
  383. package/dist/types/types/maint/server-address.d.ts +25 -0
  384. package/dist/types/types/maint/server-address.d.ts.map +1 -0
  385. package/dist/types/types/maint/service-status.d.ts +31 -0
  386. package/dist/types/types/maint/service-status.d.ts.map +1 -0
  387. package/dist/types/types/maint/subscriber-filter.d.ts +24 -0
  388. package/dist/types/types/maint/subscriber-filter.d.ts.map +1 -0
  389. package/dist/types/types/maint/sys-service-status.d.ts +33 -0
  390. package/dist/types/types/maint/sys-service-status.d.ts.map +1 -0
  391. package/dist/types/types/maint/sys-status.d.ts +79 -0
  392. package/dist/types/types/maint/sys-status.d.ts.map +1 -0
  393. package/dist/types/types/messaging/mailbox-info.d.ts +35 -0
  394. package/dist/types/types/messaging/mailbox-info.d.ts.map +1 -0
  395. package/dist/types/types/messaging/mailbox.d.ts +119 -0
  396. package/dist/types/types/messaging/mailbox.d.ts.map +1 -0
  397. package/dist/types/types/messaging/voice-message.d.ts +57 -0
  398. package/dist/types/types/messaging/voice-message.d.ts.map +1 -0
  399. package/dist/types/{pbxmngt → types/pbxmngt}/attribute-filter.d.ts +1 -0
  400. package/dist/types/types/pbxmngt/attribute-filter.d.ts.map +1 -0
  401. package/dist/types/types/pbxmngt/instance-filter.d.ts +72 -0
  402. package/dist/types/types/pbxmngt/instance-filter.d.ts.map +1 -0
  403. package/dist/types/types/pbxmngt/model.d.ts +221 -0
  404. package/dist/types/types/pbxmngt/model.d.ts.map +1 -0
  405. package/dist/types/types/pbxmngt/octet-string-length.d.ts +12 -0
  406. package/dist/types/types/pbxmngt/octet-string-length.d.ts.map +1 -0
  407. package/dist/types/types/pbxmngt/pbx-attr-map.d.ts +96 -0
  408. package/dist/types/types/pbxmngt/pbx-attr-map.d.ts.map +1 -0
  409. package/dist/types/types/pbxmngt/pbx-attribute.d.ts +182 -0
  410. package/dist/types/types/pbxmngt/pbx-attribute.d.ts.map +1 -0
  411. package/dist/types/types/pbxmngt/pbx-object.d.ts +73 -0
  412. package/dist/types/types/pbxmngt/pbx-object.d.ts.map +1 -0
  413. package/dist/types/types/pbxmngt/pbx.d.ts +23 -0
  414. package/dist/types/types/pbxmngt/pbx.d.ts.map +1 -0
  415. package/dist/types/types/pbxmngt/pbxmngt-events.d.ts +74 -0
  416. package/dist/types/types/pbxmngt/pbxmngt-events.d.ts.map +1 -0
  417. package/dist/types/types/phoneset/device-key.d.ts +36 -0
  418. package/dist/types/types/phoneset/device-key.d.ts.map +1 -0
  419. package/dist/types/types/phoneset/dynamic-state.d.ts +30 -0
  420. package/dist/types/types/phoneset/dynamic-state.d.ts.map +1 -0
  421. package/dist/types/types/phoneset/pin.d.ts +53 -0
  422. package/dist/types/types/phoneset/pin.d.ts.map +1 -0
  423. package/dist/types/types/phoneset/prog-key.d.ts +26 -0
  424. package/dist/types/types/phoneset/prog-key.d.ts.map +1 -0
  425. package/dist/types/types/phoneset/soft-key.d.ts +18 -0
  426. package/dist/types/types/phoneset/soft-key.d.ts.map +1 -0
  427. package/dist/types/{routing → types/routing}/destination.d.ts +1 -2
  428. package/dist/types/types/routing/destination.d.ts.map +1 -0
  429. package/dist/types/types/routing/dnd-state.d.ts +9 -0
  430. package/dist/types/types/routing/dnd-state.d.ts.map +1 -0
  431. package/dist/types/types/routing/forward-condition.d.ts +26 -0
  432. package/dist/types/types/routing/forward-condition.d.ts.map +1 -0
  433. package/dist/types/types/routing/forward.d.ts +53 -0
  434. package/dist/types/types/routing/forward.d.ts.map +1 -0
  435. package/dist/types/types/routing/overflow-condition.d.ts +22 -0
  436. package/dist/types/types/routing/overflow-condition.d.ts.map +1 -0
  437. package/dist/types/types/routing/overflow.d.ts +50 -0
  438. package/dist/types/types/routing/overflow.d.ts.map +1 -0
  439. package/dist/types/types/routing/routing-capabilities.d.ts +15 -0
  440. package/dist/types/types/routing/routing-capabilities.d.ts.map +1 -0
  441. package/dist/types/types/routing/routing-events.d.ts +23 -0
  442. package/dist/types/types/routing/routing-events.d.ts.map +1 -0
  443. package/dist/types/{routing → types/routing}/routing-state.d.ts +5 -20
  444. package/dist/types/types/routing/routing-state.d.ts.map +1 -0
  445. package/dist/types/{rsi → types/rsi}/add-digit-coll-criteria.d.ts +1 -0
  446. package/dist/types/types/rsi/add-digit-coll-criteria.d.ts.map +1 -0
  447. package/dist/types/{rsi → types/rsi}/collection-cause.d.ts +1 -0
  448. package/dist/types/types/rsi/collection-cause.d.ts.map +1 -0
  449. package/dist/types/types/rsi/route-session.d.ts +21 -0
  450. package/dist/types/types/rsi/route-session.d.ts.map +1 -0
  451. package/dist/types/{rsi → types/rsi}/routing-caller-type.d.ts +1 -0
  452. package/dist/types/types/rsi/routing-caller-type.d.ts.map +1 -0
  453. package/dist/types/{rsi → types/rsi}/routing-reason.d.ts +1 -0
  454. package/dist/types/types/rsi/routing-reason.d.ts.map +1 -0
  455. package/dist/types/types/rsi/rsi-events.d.ts +47 -0
  456. package/dist/types/types/rsi/rsi-events.d.ts.map +1 -0
  457. package/dist/types/types/rsi/rsi-point.d.ts +17 -0
  458. package/dist/types/types/rsi/rsi-point.d.ts.map +1 -0
  459. package/dist/types/{rsi → types/rsi}/tones.d.ts +1 -0
  460. package/dist/types/types/rsi/tones.d.ts.map +1 -0
  461. package/dist/types/{telephony → types/telephony}/RecordingAction.d.ts +1 -0
  462. package/dist/types/types/telephony/RecordingAction.d.ts.map +1 -0
  463. package/dist/types/types/telephony/call/call-cause.d.ts +123 -0
  464. package/dist/types/types/telephony/call/call-cause.d.ts.map +1 -0
  465. package/dist/types/types/telephony/call/call-data.d.ts +81 -0
  466. package/dist/types/types/telephony/call/call-data.d.ts.map +1 -0
  467. package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts +35 -0
  468. package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts.map +1 -0
  469. package/dist/types/types/telephony/call/ccd/acd-data.d.ts +50 -0
  470. package/dist/types/types/telephony/call/ccd/acd-data.d.ts.map +1 -0
  471. package/dist/types/types/telephony/call/ccd/call-profile.d.ts +112 -0
  472. package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -0
  473. package/dist/types/types/telephony/call/ccd/pilot-info.d.ts +43 -0
  474. package/dist/types/types/telephony/call/ccd/pilot-info.d.ts.map +1 -0
  475. package/dist/types/types/telephony/call/ccd/pilot-status.d.ts +38 -0
  476. package/dist/types/types/telephony/call/ccd/pilot-status.d.ts.map +1 -0
  477. package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts +24 -0
  478. package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts.map +1 -0
  479. package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts +104 -0
  480. package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts.map +1 -0
  481. package/dist/types/types/telephony/call/ccd/queue-data.d.ts +23 -0
  482. package/dist/types/types/telephony/call/ccd/queue-data.d.ts.map +1 -0
  483. package/dist/types/types/telephony/call/correlator-data.d.ts +54 -0
  484. package/dist/types/types/telephony/call/correlator-data.d.ts.map +1 -0
  485. package/dist/types/types/telephony/call/leg.d.ts +57 -0
  486. package/dist/types/types/telephony/call/leg.d.ts.map +1 -0
  487. package/dist/types/types/telephony/call/media-state.d.ts +42 -0
  488. package/dist/types/types/telephony/call/media-state.d.ts.map +1 -0
  489. package/dist/types/types/telephony/call/participant.d.ts +34 -0
  490. package/dist/types/types/telephony/call/participant.d.ts.map +1 -0
  491. package/dist/types/types/telephony/call/record-state.d.ts +14 -0
  492. package/dist/types/types/telephony/call/record-state.d.ts.map +1 -0
  493. package/dist/types/types/telephony/call/tag.d.ts +37 -0
  494. package/dist/types/types/telephony/call/tag.d.ts.map +1 -0
  495. package/dist/types/types/telephony/call.d.ts +90 -0
  496. package/dist/types/types/telephony/call.d.ts.map +1 -0
  497. package/dist/types/types/telephony/callback.d.ts +33 -0
  498. package/dist/types/types/telephony/callback.d.ts.map +1 -0
  499. package/dist/types/types/telephony/device/device-state.d.ts +30 -0
  500. package/dist/types/types/telephony/device/device-state.d.ts.map +1 -0
  501. package/dist/types/types/telephony/device/operational-state.d.ts +18 -0
  502. package/dist/types/types/telephony/device/operational-state.d.ts.map +1 -0
  503. package/dist/types/types/telephony/hunting-group-status.d.ts +25 -0
  504. package/dist/types/types/telephony/hunting-group-status.d.ts.map +1 -0
  505. package/dist/types/types/telephony/hunting-groups.d.ts +33 -0
  506. package/dist/types/types/telephony/hunting-groups.d.ts.map +1 -0
  507. package/dist/types/types/telephony/mini-message.d.ts +37 -0
  508. package/dist/types/types/telephony/mini-message.d.ts.map +1 -0
  509. package/dist/types/types/telephony/telephonic-state.d.ts +34 -0
  510. package/dist/types/types/telephony/telephonic-state.d.ts.map +1 -0
  511. package/dist/types/types/telephony/telephony-events.d.ts +223 -0
  512. package/dist/types/types/telephony/telephony-events.d.ts.map +1 -0
  513. package/dist/types/types/telephony/trunk-indentification.d.ts +19 -0
  514. package/dist/types/types/telephony/trunk-indentification.d.ts.map +1 -0
  515. package/dist/types/types/telephony/user/user-state.d.ts +18 -0
  516. package/dist/types/types/telephony/user/user-state.d.ts.map +1 -0
  517. package/dist/types/types/users/preferences.d.ts +29 -0
  518. package/dist/types/types/users/preferences.d.ts.map +1 -0
  519. package/dist/types/types/users/supported-languages.d.ts +29 -0
  520. package/dist/types/types/users/supported-languages.d.ts.map +1 -0
  521. package/dist/types/types/users/user.d.ts +67 -0
  522. package/dist/types/types/users/user.d.ts.map +1 -0
  523. package/dist/types/types/users/users-events.d.ts +78 -0
  524. package/dist/types/types/users/users-events.d.ts.map +1 -0
  525. package/dist/types/types/users/voicemail-type.d.ts +18 -0
  526. package/dist/types/types/users/voicemail-type.d.ts.map +1 -0
  527. package/dist/types/types/users/voicemail.d.ts +20 -0
  528. package/dist/types/types/users/voicemail.d.ts.map +1 -0
  529. package/package.json +41 -7
  530. package/dist/o2g-cc-agent.d.ts +0 -247
  531. package/dist/o2g-cc-mngt.d.ts +0 -32
  532. package/dist/o2g-cc-pilot.d.ts +0 -42
  533. package/dist/o2g-comlog.d.ts +0 -173
  534. package/dist/o2g-directory.d.ts +0 -88
  535. package/dist/o2g-eventSummary.d.ts +0 -33
  536. package/dist/o2g-maint.d.ts +0 -48
  537. package/dist/o2g-messaging.d.ts +0 -115
  538. package/dist/o2g-node-sdk.d.ts +0 -159
  539. package/dist/o2g-pbx-mngt.d.ts +0 -146
  540. package/dist/o2g-phone-set-prog.d.ts +0 -29
  541. package/dist/o2g-routing.d.ts +0 -267
  542. package/dist/o2g-telephony.d.ts +0 -795
  543. package/dist/o2g-user-mngt.d.ts +0 -42
  544. package/dist/o2g-users.d.ts +0 -85
  545. package/dist/subscription.d.ts +0 -258
  546. package/dist/types/analytics/charging-file.d.ts +0 -27
  547. package/dist/types/analytics/charging-result.d.ts +0 -43
  548. package/dist/types/analytics/charging.d.ts +0 -105
  549. package/dist/types/analytics/incident.d.ts +0 -46
  550. package/dist/types/analytics/time-range.d.ts +0 -22
  551. package/dist/types/cc-agent/cc-agent-events.d.ts +0 -54
  552. package/dist/types/cc-agent/cc-agent-types.d.ts +0 -71
  553. package/dist/types/cc-agent/operator-dyn-state.d.ts +0 -56
  554. package/dist/types/cc-agent/operator-main-state.d.ts +0 -21
  555. package/dist/types/cc-mngt/calendar/calendar.d.ts +0 -19
  556. package/dist/types/cc-mngt/calendar/day-of-week.d.ts +0 -33
  557. package/dist/types/cc-mngt/calendar/exception-calendar.d.ts +0 -26
  558. package/dist/types/cc-mngt/calendar/normal-calendar.d.ts +0 -27
  559. package/dist/types/cc-mngt/calendar/transition.d.ts +0 -49
  560. package/dist/types/cc-mngt/cc-mngt-types.d.ts +0 -0
  561. package/dist/types/cc-mngt/pilot-rule-set.d.ts +0 -27
  562. package/dist/types/cc-mngt/pilot-rule.d.ts +0 -14
  563. package/dist/types/cc-mngt/pilot.d.ts +0 -56
  564. package/dist/types/cc-pilot/cc-pilot-events.d.ts +0 -111
  565. package/dist/types/comlog/com-record.d.ts +0 -51
  566. package/dist/types/comlog/comlog-events.d.ts +0 -74
  567. package/dist/types/comlog/comlog-types.d.ts +0 -131
  568. package/dist/types/comlog/query-filter.d.ts +0 -44
  569. package/dist/types/comlog/query-result.d.ts +0 -27
  570. package/dist/types/common/common-types.d.ts +0 -78
  571. package/dist/types/directory/criteria.d.ts +0 -90
  572. package/dist/types/directory/directory-types.d.ts +0 -44
  573. package/dist/types/events/o2g-event.d.ts +0 -3
  574. package/dist/types/eventsummary/event-summary-counter.d.ts +0 -44
  575. package/dist/types/maint/maint-events.d.ts +0 -51
  576. package/dist/types/maint/maint-types.d.ts +0 -162
  577. package/dist/types/messaging/messaging-types.d.ts +0 -120
  578. package/dist/types/pbxmngt/attribute-type.d.ts +0 -34
  579. package/dist/types/pbxmngt/filter.d.ts +0 -46
  580. package/dist/types/pbxmngt/model.d.ts +0 -63
  581. package/dist/types/pbxmngt/pbx-attr-map.d.ts +0 -91
  582. package/dist/types/pbxmngt/pbx-attribute.d.ts +0 -87
  583. package/dist/types/pbxmngt/pbx-object.d.ts +0 -45
  584. package/dist/types/pbxmngt/pbxmngt-events.d.ts +0 -59
  585. package/dist/types/pbxmngt/pbxmngt-types.d.ts +0 -14
  586. package/dist/types/phoneset/device-key.d.ts +0 -27
  587. package/dist/types/phoneset/phoneset-types.d.ts +0 -17
  588. package/dist/types/phoneset/pin-control.d.ts +0 -21
  589. package/dist/types/phoneset/pin.d.ts +0 -50
  590. package/dist/types/phoneset/programmable-key.d.ts +0 -23
  591. package/dist/types/phoneset/softkey.d.ts +0 -17
  592. package/dist/types/routing/forward.d.ts +0 -51
  593. package/dist/types/routing/overflow.d.ts +0 -42
  594. package/dist/types/routing/routing-capability.d.ts +0 -31
  595. package/dist/types/routing/routing-events.d.ts +0 -15
  596. package/dist/types/routing/routing-types.d.ts +0 -10
  597. package/dist/types/rsi/rsi-events.d.ts +0 -76
  598. package/dist/types/rsi/rsi-types.d.ts +0 -49
  599. package/dist/types/telephony/acr-skill.d.ts +0 -29
  600. package/dist/types/telephony/telephony-events.d.ts +0 -292
  601. package/dist/types/telephony/telephony-types.d.ts +0 -587
  602. package/dist/types/users/users-events.d.ts +0 -33
  603. package/dist/types/users/users-types.d.ts +0 -129
@@ -0,0 +1 @@
1
+ {"version":3,"file":"o2g-telephony.d.ts","sourceRoot":"","sources":["../../src/o2g-telephony.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;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;;;;;;;;;;OAUG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3F;;;;;;;;;;;;;;OAcG;IACG,cAAc,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAIlF;;;;;;;;;;;OAWG;IACG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5G;;;;;;;;;;OAUG;IACG,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxF;;;;;;;;;;;;;OAaG;IACG,eAAe,CAAC,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxE;;;;;;;;;;;;;;;;OAgBG;IACG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1D;;;;;;;;;;;;;;;OAeG;IACG,YAAY,CACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,uBAAuB,GAAE,4BAA4B,GAAG,IAAW,EACnE,SAAS,GAAE,MAAM,GAAG,IAAW,GAChC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAG/B"}
@@ -0,0 +1,83 @@
1
+ import { User } from './types/users/user';
2
+ /**
3
+ * The Users Management service allows an administrator to create, delete and retrieve O2G users.
4
+ * <p>
5
+ * This service requires an administrator session.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // List all users across all nodes
10
+ * const logins = await O2G.usersManagement.getLogins();
11
+ *
12
+ * // Find a user by their device number
13
+ * const loginName = await O2G.usersManagement.getByDeviceNumber("60200");
14
+ *
15
+ * // Retrieve full user information
16
+ * const user = await O2G.usersManagement.getByLoginName("jdoe");
17
+ * console.log(`${user?.firstName} ${user?.lastName}`);
18
+ *
19
+ * // Create specific users on node 1 by device number
20
+ * await O2G.usersManagement.createUsers(1, ["60200", "60201", "60202"]);
21
+ *
22
+ * // Create all users on node 1
23
+ * await O2G.usersManagement.createUsers(1, null);
24
+ *
25
+ * // Delete a user
26
+ * await O2G.usersManagement.deleteUser("jdoe");
27
+ * ```
28
+ */
29
+ export declare class UsersManagement {
30
+ #private;
31
+ /**
32
+ * Retrieves the login names of users from the connected OmniPCX Enterprise nodes.
33
+ * <p>
34
+ * If `nodeIds` is `null`, retrieves the login names from all connected nodes.
35
+ *
36
+ * @param nodeIds optional list of OXE node ids to restrict the query to.
37
+ * Only valid for an administrator session.
38
+ * @returns the list of user login names on success; `null` otherwise.
39
+ */
40
+ getLogins(nodeIds?: number[] | null): Promise<string[] | null>;
41
+ /**
42
+ * Retrieves the login name of a user identified by one of their devices.
43
+ *
44
+ * @param deviceNumber the device phone number
45
+ * @returns the user login name on success; `null` otherwise.
46
+ */
47
+ getByDeviceNumber(deviceNumber: string): Promise<string | null>;
48
+ /**
49
+ * Creates O2G users on the specified OmniPCX Enterprise node.
50
+ * <p>
51
+ * If `deviceNumbers` is `null` or empty, all users on the specified node are created.
52
+ *
53
+ * @example
54
+ * ```typescript
55
+ * // Create specific users by device number
56
+ * await O2G.usersManagement.createUsers(1, ["60200", "60201"]);
57
+ *
58
+ * // Create all users on the node
59
+ * await O2G.usersManagement.createUsers(1, null);
60
+ * ```
61
+ *
62
+ * @param nodeId the OXE node number
63
+ * @param deviceNumbers optional list of device phone numbers identifying the users to create.
64
+ * Pass `null` or an empty array to create all users on the node.
65
+ * @returns `true` if the operation succeeded; `false` otherwise.
66
+ */
67
+ createUsers(nodeId: number, deviceNumbers: string[] | null): Promise<boolean>;
68
+ /**
69
+ * Retrieves the information of a user identified by their login name.
70
+ *
71
+ * @param loginName the user login name
72
+ * @returns the {@link User} information on success; `null` otherwise.
73
+ */
74
+ getByLoginName(loginName: string): Promise<User | null>;
75
+ /**
76
+ * Deletes the O2G user identified by their login name.
77
+ *
78
+ * @param loginName the login name of the user to delete
79
+ * @returns `true` if the user was successfully deleted; `false` otherwise.
80
+ */
81
+ deleteUser(loginName: string): Promise<boolean>;
82
+ }
83
+ //# sourceMappingURL=o2g-users-mngt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"o2g-users-mngt.d.ts","sourceRoot":"","sources":["../../src/o2g-users-mngt.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,eAAe;;IAUxB;;;;;;;;OAQG;IACG,SAAS,CAAC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAI1E;;;;;OAKG;IACG,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIrE;;;;;;;;;;;;;;;;;;OAkBG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;IAInF;;;;;OAKG;IACG,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAI7D;;;;;OAKG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGxD"}
@@ -0,0 +1,127 @@
1
+ import EventEmitter from 'events';
2
+ import { User } from './types/users/user';
3
+ import { SupportedLanguages } from './types/users/supported-languages';
4
+ import { Preferences } from './types/users/preferences';
5
+ /**
6
+ * The User service allows:
7
+ * <ul>
8
+ * <li>an administrator to retrieve the list of O2G users.</li>
9
+ * <li>a user to get information on another user account.</li>
10
+ * <li>a user to change their password or preferences such as supported language.</li>
11
+ * </ul>
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * // Listen for user lifecycle events
16
+ * O2G.users.on(Users.ON_USER_CREATED, (event) => {
17
+ * console.log("User created:", event.loginName);
18
+ * });
19
+ * O2G.users.on(Users.ON_USER_DELETED, (event) => {
20
+ * console.log("User deleted:", event.loginName);
21
+ * });
22
+ * O2G.users.on(Users.ON_USER_INFO_CHANGED, (event) => {
23
+ * console.log("User info changed:", event.loginName);
24
+ * });
25
+ *
26
+ * // Look up a user by login name
27
+ * const user = await O2G.users.getByLoginName("jdoe");
28
+ * console.log(`${user?.firstName} ${user?.lastName}`);
29
+ *
30
+ * // Look up a user by their extension number
31
+ * const userByPhone = await O2G.users.getByCompanyPhone("60200");
32
+ *
33
+ * // Change the current user's password
34
+ * await O2G.users.changePassword("jdoe", "oldPass", "newPass");
35
+ * ```
36
+ */
37
+ export declare class Users extends EventEmitter {
38
+ #private;
39
+ /**
40
+ * Raised on creation of a user.
41
+ * @event
42
+ */
43
+ static readonly ON_USER_CREATED = "OnUserCreated";
44
+ /**
45
+ * Raised when a user is deleted.
46
+ * @event
47
+ */
48
+ static readonly ON_USER_DELETED = "OnUserDeleted";
49
+ /**
50
+ * Raised on any change on the user's data.
51
+ * @event
52
+ */
53
+ static readonly ON_USER_INFO_CHANGED = "OnUserInfoChanged";
54
+ /**
55
+ * Retrieves a list of user login names from the connected OmniPCX Enterprise nodes.
56
+ * <p>
57
+ * If `nodeIds` is `null`, retrieves the login names from all connected nodes.
58
+ * This method is generally used by an administrator. If used by a user, `nodeIds`
59
+ * must be set to `null` and `onlyACD` to `false`, in which case only the current
60
+ * user's login name is retrieved.
61
+ *
62
+ * @example
63
+ * ```typescript
64
+ * // Administrator — get all users from all nodes
65
+ * const allLogins = await O2G.users.getLogins();
66
+ *
67
+ * // Administrator — get all users from a specific node
68
+ * const nodeLogins = await O2G.users.getLogins([1]);
69
+ *
70
+ * // Administrator — get only ACD operators (agents and supervisors)
71
+ * const acdLogins = await O2G.users.getLogins(null, true);
72
+ *
73
+ * // Administrator — get only users with an external login
74
+ * const extLogins = await O2G.users.getLogins(null, false, true);
75
+ *
76
+ * // Regular user — returns only the current user's login name
77
+ * const myLogin = await O2G.users.getLogins(null, false);
78
+ * ```
79
+ *
80
+ * @param nodeIds list of OXE node ids to restrict the query to.
81
+ * Only valid for an administrator session.
82
+ * @param onlyACD if `true`, selects only ACD operators (agents or supervisors).
83
+ * Only valid for an administrator session.
84
+ * @param onlyWithExtLogin if `true`, selects only users with an external login.
85
+ * Only valid for an administrator session.
86
+ * @returns the list of user login names on success; `null` otherwise.
87
+ */
88
+ getLogins(nodeIds?: number[] | null, onlyACD?: boolean, onlyWithExtLogin?: boolean): Promise<string[] | null>;
89
+ /**
90
+ * Retrieves the information of a user identified by their login name.
91
+ *
92
+ * @param loginName the user login name
93
+ * @returns the {@link User} information on success; `null` otherwise.
94
+ */
95
+ getByLoginName(loginName: string): Promise<User | null>;
96
+ /**
97
+ * Retrieves the information of a user identified by their company extension number.
98
+ *
99
+ * @param companyPhone the user extension number
100
+ * @returns the {@link User} information on success; `null` otherwise.
101
+ */
102
+ getByCompanyPhone(companyPhone: string): Promise<User | null>;
103
+ /**
104
+ * Returns the supported languages for the specified user.
105
+ *
106
+ * @param loginName the user login name
107
+ * @returns the {@link SupportedLanguages} on success; `null` otherwise.
108
+ */
109
+ getSupportedLanguages(loginName: string): Promise<SupportedLanguages | null>;
110
+ /**
111
+ * Returns the preferences of the specified user.
112
+ *
113
+ * @param loginName the user login name
114
+ * @returns the {@link Preferences} on success; `null` otherwise.
115
+ */
116
+ getPreferences(loginName: string): Promise<Preferences | null>;
117
+ /**
118
+ * Changes the specified user's password.
119
+ *
120
+ * @param loginName the user login name
121
+ * @param oldPassword the current password
122
+ * @param newPassword the new password
123
+ * @returns `true` if the operation succeeded; `false` otherwise.
124
+ */
125
+ changePassword(loginName: string, oldPassword: string, newPassword: string): Promise<boolean>;
126
+ }
127
+ //# sourceMappingURL=o2g-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AAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGtG"}
@@ -0,0 +1,379 @@
1
+ import { EventPackage } from './internal/events/event-packages';
2
+ declare class EventFilter {
3
+ private selectors;
4
+ constructor();
5
+ add(ids: string[], name: string[]): void;
6
+ addPackage(ids: string[], eventPackage: EventPackage): void;
7
+ }
8
+ /**
9
+ * Interface used when eventing is received via webhook.
10
+ * This object is passed to the O2G SDK; `connectDispatcher` is called by the SDK
11
+ * when the event channel is established.
12
+ */
13
+ export interface WebHook {
14
+ /**
15
+ * The URL for the webhook endpoint.
16
+ */
17
+ url: string;
18
+ /**
19
+ * Called by the SDK when the event channel is established, providing the
20
+ * dispatcher to use for forwarding events.
21
+ *
22
+ * @param dispatcher the event dispatcher to connect to
23
+ */
24
+ connectDispatcher: (dispatcher: Object) => void;
25
+ }
26
+ /**
27
+ * A builder for {@link Subscription}.
28
+ * <p>
29
+ * An instance of `Builder` is available via {@link Subscription.Builder}.
30
+ * <p>
31
+ * The builder configures an event subscription for the O2G server. Each method
32
+ * modifies the state of the builder and returns the same instance, enabling
33
+ * method chaining. The {@link build} method returns a new `Subscription` each
34
+ * time it is invoked.
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * // User session — subscribe to routing and telephony events for the current user
39
+ * const subscription = Subscription.Builder
40
+ * .addRoutingEvents([])
41
+ * .addTelephonyEvents([])
42
+ * .addEventSummaryEvents([])
43
+ * .setTimeout(10)
44
+ * .build();
45
+ *
46
+ * // Administrator session — subscribe to events for specific users
47
+ * const adminSubscription = Subscription.Builder
48
+ * .addTelephonyEvents(["1000", "1001"])
49
+ * .addCallCenterAgentEvents(["12000"])
50
+ * .addMaintenanceEvents()
51
+ * .build();
52
+ *
53
+ * await O2G.subscribe(subscription);
54
+ * ```
55
+ */
56
+ export interface Builder {
57
+ /**
58
+ * Adds routing events to the subscription.
59
+ * <p>
60
+ * The following event associated to the {@link Routing} service is added:
61
+ * <ul>
62
+ * <li>{@link Routing.ON_ROUTING_STATE_CHANGED}</li>
63
+ * </ul>
64
+ * <p>
65
+ * If the session has been opened for a user, the `ids` parameter is
66
+ * ignored, but it is mandatory if the session has been opened by an
67
+ * administrator.
68
+ * <p>
69
+ * Subscribing to routing events requires having a <b>TELEPHONY_ADVANCED</b> license.
70
+ *
71
+ * @param ids the user login names to filter events on
72
+ * @returns this builder instance
73
+ */
74
+ addRoutingEvents: (ids: string[]) => Builder;
75
+ /**
76
+ * Adds telephony events to the subscription.
77
+ * <p>
78
+ * The following events associated to the {@link Telephony} service are added:
79
+ * <ul>
80
+ * <li>{@link Telephony.ON_TELEPHONY_STATE}</li>
81
+ * <li>{@link Telephony.ON_CALL_CREATED}</li>
82
+ * <li>{@link Telephony.ON_CALL_MODIFIED}</li>
83
+ * <li>{@link Telephony.ON_CALL_REMOVED}</li>
84
+ * <li>{@link Telephony.ON_USER_STATE_MODIFIED}</li>
85
+ * <li>{@link Telephony.ON_DEVICE_STATE_MODIFIED}</li>
86
+ * </ul>
87
+ * <p>
88
+ * If the session has been opened for a user, the `ids` parameter is
89
+ * ignored, but it is mandatory if the session has been opened by an
90
+ * administrator.
91
+ * <p>
92
+ * Subscribing to telephony events requires having a <b>TELEPHONY_ADVANCED</b> license.
93
+ *
94
+ * @param ids the user login names to filter events on
95
+ * @returns this builder instance
96
+ */
97
+ addTelephonyEvents: (ids: string[]) => Builder;
98
+ /**
99
+ * Adds user management events to the subscription.
100
+ * <p>
101
+ * The following events associated to the {@link Users} service are added:
102
+ * <ul>
103
+ * <li>{@link Users.ON_USER_CREATED}</li>
104
+ * <li>{@link Users.ON_USER_DELETED}</li>
105
+ * </ul>
106
+ * <p>
107
+ * The session must have been opened by an administrator.
108
+ * <p>
109
+ * Subscribing to user management events does not require any license.
110
+ *
111
+ * @returns this builder instance
112
+ */
113
+ addUsersManagementEvents: () => Builder;
114
+ /**
115
+ * Adds event summary events to the subscription.
116
+ * <p>
117
+ * The following event associated to the {@link EventSummary} service is added:
118
+ * <ul>
119
+ * <li>{@link EventSummary.ON_EVENT_SUMMARY_UPDATED}</li>
120
+ * </ul>
121
+ * <p>
122
+ * If the session has been opened for a user, the `ids` parameter is
123
+ * ignored, but it is mandatory if the session has been opened by an
124
+ * administrator.
125
+ * <p>
126
+ * Subscribing to event summary events requires having a <b>TELEPHONY_ADVANCED</b> license.
127
+ *
128
+ * @param ids the user login names to filter events on
129
+ * @returns this builder instance
130
+ */
131
+ addEventSummaryEvents: (ids: string[]) => Builder;
132
+ /**
133
+ * Adds PBX management events to the subscription.
134
+ * <p>
135
+ * The following events associated to the {@link PbxManagement} service are added:
136
+ * <ul>
137
+ * <li>{@link PbxManagement.ON_PBX_OBJECT_INSTANCE_CREATED}</li>
138
+ * <li>{@link PbxManagement.ON_PBX_OBJECT_INSTANCE_DELETED}</li>
139
+ * <li>{@link PbxManagement.ON_PBX_OBJECT_INSTANCE_MODIFIED}</li>
140
+ * </ul>
141
+ * <p>
142
+ * The session must have been opened by an administrator.
143
+ * <p>
144
+ * Subscribing to PBX management events requires having a <b>MANAGEMENT</b> license.
145
+ *
146
+ * @returns this builder instance
147
+ */
148
+ addPbxManagementEvents: () => Builder;
149
+ /**
150
+ * Adds communication log events to the subscription.
151
+ * <p>
152
+ * The following events associated to the {@link CommunicationLog} service are added:
153
+ * <ul>
154
+ * <li>{@link CommunicationLog.ON_COM_RECORD_CREATED}</li>
155
+ * <li>{@link CommunicationLog.ON_COM_RECORD_MODIFIED}</li>
156
+ * <li>{@link CommunicationLog.ON_COM_RECORDS_DELETED}</li>
157
+ * <li>{@link CommunicationLog.ON_COM_RECORDS_ACK}</li>
158
+ * <li>{@link CommunicationLog.ON_COM_RECORDS_UNACK}</li>
159
+ * </ul>
160
+ * <p>
161
+ * If the session has been opened for a user, the `ids` parameter is
162
+ * ignored, but it is mandatory if the session has been opened by an
163
+ * administrator.
164
+ * <p>
165
+ * Subscribing to communication log events requires having a <b>TELEPHONY_ADVANCED</b> license.
166
+ *
167
+ * @param ids the user login names to filter events on
168
+ * @returns this builder instance
169
+ */
170
+ addCommunicationLogEvents: (ids: string[]) => Builder;
171
+ /**
172
+ * Adds call center agent events to the subscription.
173
+ * <p>
174
+ * The following events associated to the {@link CallCenterAgent} service are added:
175
+ * <ul>
176
+ * <li>{@link CallCenterAgent.ON_AGENT_STATE_CHANGED}</li>
177
+ * <li>{@link CallCenterAgent.ON_AGENT_SKILL_CHANGED}</li>
178
+ * <li>{@link CallCenterAgent.ON_SUPERVISOR_HELP_REQUESTED}</li>
179
+ * <li>{@link CallCenterAgent.ON_SUPERVISOR_HELP_CANCELLED}</li>
180
+ * </ul>
181
+ * <p>
182
+ * If the session has been opened for a user, the `ids` parameter is
183
+ * ignored, but it is mandatory if the session has been opened by an
184
+ * administrator.
185
+ * <p>
186
+ * Subscribing to call center agent events requires having a <b>CONTACTCENTER_AGENT</b> license.
187
+ *
188
+ * @param ids the user login names to filter events on
189
+ * @returns this builder instance
190
+ */
191
+ addCallCenterAgentEvents: (ids: string[]) => Builder;
192
+ /**
193
+ * Adds call center pilot events to the subscription.
194
+ * <p>
195
+ * The following events associated to the {@link CallCenterPilot} service are added:
196
+ * <ul>
197
+ * <li>{@link CallCenterPilot.ON_PILOT_CALL_CREATED}</li>
198
+ * <li>{@link CallCenterPilot.ON_PILOT_CALL_QUEUED}</li>
199
+ * <li>{@link CallCenterPilot.ON_PILOT_CALL_REMOVED}</li>
200
+ * </ul>
201
+ * <p>
202
+ * If the session has been opened for a user, the `ids` parameter is
203
+ * ignored, but it is mandatory if the session has been opened by an
204
+ * administrator.
205
+ * <p>
206
+ * Subscribing to call center pilot events requires having a <b>CONTACTCENTER_SVCS</b> license.
207
+ *
208
+ * @param ids the pilot numbers to filter events on
209
+ * @returns this builder instance
210
+ */
211
+ addCallCenterPilotEvents: (ids: string[]) => Builder;
212
+ /**
213
+ * Adds call center realtime events to the subscription.
214
+ * <p>
215
+ * The following events associated to the {@link CallCenterRealtime} service are added:
216
+ * <ul>
217
+ * <li>{@link CallCenterRealtime.ON_AGENT_RTI_CHANGED}</li>
218
+ * <li>{@link CallCenterRealtime.ON_PILOT_RTI_CHANGED}</li>
219
+ * <li>{@link CallCenterRealtime.ON_QUEUE_RTI_CHANGED}</li>
220
+ * <li>{@link CallCenterRealtime.ON_AGENT_PG_RTI_CHANGED}</li>
221
+ * <li>{@link CallCenterRealtime.ON_OTHER_PG_RTI_CHANGED}</li>
222
+ * </ul>
223
+ * <p>
224
+ * The session must have been opened by an administrator.
225
+ * <p>
226
+ * Subscribing to call center realtime events requires having a <b>CONTACTCENTER_SVCS</b> license.
227
+ *
228
+ * @returns this builder instance
229
+ */
230
+ addCallCenterRealtimeEvents: () => Builder;
231
+ /**
232
+ * Adds call center statistics events to the subscription.
233
+ * <p>
234
+ * The session must have been opened by an administrator.
235
+ * <p>
236
+ * Subscribing to call center statistics events requires having a <b>CONTACTCENTER_SVCS</b> license.
237
+ *
238
+ * @returns this builder instance
239
+ */
240
+ addCallCenterStatisticsEvents: () => Builder;
241
+ /**
242
+ * Adds maintenance events to the subscription.
243
+ * <p>
244
+ * The following events associated to the {@link Maintenance} service are added:
245
+ * <ul>
246
+ * <li>{@link Maintenance.ON_CTI_LINK_DOWN}</li>
247
+ * <li>{@link Maintenance.ON_CTI_LINK_UP}</li>
248
+ * <li>{@link Maintenance.ON_PBX_LOADED}</li>
249
+ * <li>{@link Maintenance.ON_PBX_LINK_DOWN}</li>
250
+ * <li>{@link Maintenance.ON_PBX_LINK_UP}</li>
251
+ * <li>{@link Maintenance.ON_LICENSE_EXPIRATION}</li>
252
+ * <li>{@link Maintenance.ON_SERVER_STARTED}</li>
253
+ * </ul>
254
+ * <p>
255
+ * The session must have been opened by an administrator.
256
+ * <p>
257
+ * Subscribing to maintenance events does not require any license.
258
+ *
259
+ * @returns this builder instance
260
+ */
261
+ addMaintenanceEvents: () => Builder;
262
+ /**
263
+ * Adds user events to the subscription.
264
+ * <p>
265
+ * The following event associated to the {@link Users} service is added:
266
+ * <ul>
267
+ * <li>{@link Users.ON_USER_INFO_CHANGED}</li>
268
+ * </ul>
269
+ * <p>
270
+ * If the session has been opened for a user, the `ids` parameter is
271
+ * ignored, but it is mandatory if the session has been opened by an
272
+ * administrator.
273
+ * <p>
274
+ * Subscribing to user events does not require any license.
275
+ *
276
+ * @param ids the user login names to filter events on
277
+ * @returns this builder instance
278
+ */
279
+ addUserEvents: (ids: string[]) => Builder;
280
+ /**
281
+ * Sets the lifetime of the event channel.
282
+ *
283
+ * @param value the lifetime of the event channel in minutes
284
+ * @returns this builder instance
285
+ */
286
+ setTimeout: (value: number) => Builder;
287
+ /**
288
+ * Sets the required event version. Defaults to `"1.0"` if not specified.
289
+ *
290
+ * @param value the event version
291
+ * @returns this builder instance
292
+ */
293
+ setVersion: (value: string) => Builder;
294
+ /**
295
+ * Sets the webhook to use for event notification instead of the default
296
+ * chunked HTTP connection.
297
+ *
298
+ * @param webHook the webhook configuration
299
+ * @returns this builder instance
300
+ */
301
+ setWebHook: (webHook: WebHook) => Builder;
302
+ /**
303
+ * Builds and returns a new {@link Subscription} from the current builder state.
304
+ *
305
+ * @returns a new {@link Subscription} instance
306
+ */
307
+ build: () => Subscription;
308
+ }
309
+ /**
310
+ * Represents a subscription request used to subscribe to events from the O2G server.
311
+ * <p>
312
+ * By default, the application receives events over a chunked HTTP connection
313
+ * established with the O2G server. Alternatively, a {@link WebHook} can be
314
+ * configured to receive events via HTTP POST callbacks.
315
+ * <p>
316
+ * A subscription is built using the {@link Subscription.Builder} object, which
317
+ * provides a fluent API for selecting which event packages to subscribe to.
318
+ *
319
+ * @example
320
+ * ```typescript
321
+ * // User session — subscribe to routing, telephony and event summary
322
+ * const subscription = Subscription.Builder
323
+ * .addRoutingEvents([])
324
+ * .addTelephonyEvents([])
325
+ * .addEventSummaryEvents([])
326
+ * .setTimeout(10)
327
+ * .build();
328
+ *
329
+ * await O2G.subscribe(subscription);
330
+ *
331
+ * // Administrator session — subscribe to events for specific users
332
+ * const adminSubscription = Subscription.Builder
333
+ * .addTelephonyEvents(["1000", "1001"])
334
+ * .addCallCenterAgentEvents(["*"])
335
+ * .addMaintenanceEvents()
336
+ * .build();
337
+ *
338
+ * await O2G.subscribe(adminSubscription);
339
+ *
340
+ * // Using a webhook instead of chunked HTTP
341
+ * const webhookSubscription = Subscription.Builder
342
+ * .addTelephonyEvents([])
343
+ * .setWebHook({
344
+ * url: "https://myapp.example.com/o2g/events",
345
+ * connectDispatcher: (dispatcher) => { myDispatcher = dispatcher; }
346
+ * })
347
+ * .build();
348
+ *
349
+ * await O2G.subscribe(webhookSubscription);
350
+ * ```
351
+ */
352
+ export declare abstract class Subscription {
353
+ private _timeout;
354
+ private _filter;
355
+ private _version;
356
+ private _webHook;
357
+ get timeout(): number;
358
+ get version(): string;
359
+ get filter(): EventFilter;
360
+ get webHook(): WebHook | null;
361
+ /**
362
+ * The subscription builder used to construct a new {@link Subscription}.
363
+ * <p>
364
+ * Use the fluent API to select which event packages to subscribe to, then
365
+ * call {@link Builder.build} to produce the subscription.
366
+ *
367
+ * @example
368
+ * ```typescript
369
+ * const subscription = Subscription.Builder
370
+ * .addRoutingEvents([])
371
+ * .addTelephonyEvents([])
372
+ * .setTimeout(10)
373
+ * .build();
374
+ * ```
375
+ */
376
+ static Builder: Builder;
377
+ }
378
+ export {};
379
+ //# sourceMappingURL=subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/subscription.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAchE,cAAM,WAAW;IACb,OAAO,CAAC,SAAS,CAAa;;IAM9B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAIjC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,YAAY;CAGvD;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAA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AE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAEvC;;;;;OAKG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAEvC;;;;;;OAMG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IAE1C;;;;OAIG;IACH,KAAK,EAAE,MAAM,YAAY,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,8BAAsB,YAAY;IAC9B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAiB;IAYjC,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,MAAM,IAAI,WAAW,CAExB;IAED,IAAI,OAAO,IAAI,OAAO,GAAG,IAAI,CAE5B;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,CAgGlB;CACR"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Represents a supervised account when an administrator opens a supervised session.
3
+ *
4
+ * ## Supervised Session
5
+ * A supervised session is opened by a supervisor (administrator) using their credentials
6
+ * and the identification of a target user or another administrator (login name or phone number).
7
+ *
8
+ * If the session is successfully opened, the supervisor's credentials will be used in all subsequent
9
+ * requests to identify the session, the supervised user, or the supervised administrator.
10
+ *
11
+ * After opening, a supervised session can be used like a normal user session or an administrator session.
12
+ * In other words, this allows a supervisor to operate as the supervised user or administrator for services
13
+ * that rely on the session.
14
+ *
15
+ * @see Application.login
16
+ */
17
+ export declare class SupervisedAccount {
18
+ #private;
19
+ /**
20
+ * Private constructor. Use static methods to create a SupervisedAccount.
21
+ * @param type the type of supervised account (phone number or login name)
22
+ * @param id the identifier for the supervised account
23
+ */
24
+ private constructor();
25
+ /**
26
+ * Creates a `SupervisedAccount` using the supervised user's phone number.
27
+ *
28
+ * @param phoneNumber - The phone number of the supervised user.
29
+ * @returns A `SupervisedAccount` representing the supervised user.
30
+ */
31
+ static withPhoneNumber(phoneNumber: string): SupervisedAccount;
32
+ /**
33
+ * Creates a `SupervisedAccount` using the supervised user's login name.
34
+ *
35
+ * @param loginName - The login name of the supervised user.
36
+ * @returns A `SupervisedAccount` representing the supervised user.
37
+ */
38
+ static withLoginName(loginName: string): SupervisedAccount;
39
+ }
40
+ //# sourceMappingURL=supervised-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supervised-account.d.ts","sourceRoot":"","sources":["../../src/supervised-account.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAiB;;IAI1B;;;;OAIG;IACH,OAAO;IAKP;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB;IAI9D;;;;;OAKG;IACH,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB;CAY7D"}
@@ -22,3 +22,4 @@ export declare enum CallType {
22
22
  export declare namespace CallType {
23
23
  function isCallType(value: string): value is CallType;
24
24
  }
25
+ //# sourceMappingURL=call-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-type.d.ts","sourceRoot":"","sources":["../../../../src/types/analytics/call-type.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,oBAAY,QAAQ;IAChB,iBAAiB,sBAAsB;IACvC,sCAAsC,2CAA2C;IACjF,kBAAkB,uBAAuB;IACzC,gBAAgB,qBAAqB;IACrC,yBAAyB,+BAA+B;IACxD,8CAA8C,mDAAmD;IACjG,WAAW,gBAAgB;IAC3B,yCAAyC,8CAA8C;IACvF,0CAA0C,+CAA+C;IACzF,yCAAyC,8CAA8C;IACvF,0CAA0C,+CAA+C;IACzF,uDAAuD,4DAA4D;IACnH,uDAAuD,4DAA4D;IACnH,0BAA0B,+BAA+B;IACzD,SAAS,cAAc;IACvB,YAAY,iBAAiB;CAChC;AAED,yBAAiB,QAAQ,CAAC;IACtB,SAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAE3D;CACJ"}