@trii/types 2.10.79

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 (522) hide show
  1. package/README.md +9 -0
  2. package/dist/AI/Credential.d.ts +13 -0
  3. package/dist/AI/Credential.js +2 -0
  4. package/dist/AI/Documents/Document.d.ts +36 -0
  5. package/dist/AI/Documents/Document.js +15 -0
  6. package/dist/AI/Documents/Store.d.ts +25 -0
  7. package/dist/AI/Documents/Store.js +10 -0
  8. package/dist/AI/Map.d.ts +13 -0
  9. package/dist/AI/Map.js +2 -0
  10. package/dist/AI/MapPolygon.d.ts +22 -0
  11. package/dist/AI/MapPolygon.js +2 -0
  12. package/dist/AI/Provider.d.ts +6 -0
  13. package/dist/AI/Provider.js +2 -0
  14. package/dist/AI/Threads/API.d.ts +55 -0
  15. package/dist/AI/Threads/API.js +2 -0
  16. package/dist/AI/Threads/Message.d.ts +61 -0
  17. package/dist/AI/Threads/Message.js +2 -0
  18. package/dist/AI/Threads/Thread.d.ts +22 -0
  19. package/dist/AI/Threads/Thread.js +2 -0
  20. package/dist/AI/Threads/index.d.ts +3 -0
  21. package/dist/AI/Threads/index.js +19 -0
  22. package/dist/AI/aiModuleStatus.d.ts +3 -0
  23. package/dist/AI/aiModuleStatus.js +2 -0
  24. package/dist/AI/index.d.ts +4 -0
  25. package/dist/AI/index.js +20 -0
  26. package/dist/Accounts/accounts.d.ts +88 -0
  27. package/dist/Accounts/accounts.js +24 -0
  28. package/dist/Accounts/device.d.ts +31 -0
  29. package/dist/Accounts/device.js +19 -0
  30. package/dist/Accounts/index.d.ts +2 -0
  31. package/dist/Accounts/index.js +18 -0
  32. package/dist/ApiResponses/index.d.ts +9 -0
  33. package/dist/ApiResponses/index.js +2 -0
  34. package/dist/AuditLogs/auditLog.d.ts +9 -0
  35. package/dist/AuditLogs/auditLog.js +2 -0
  36. package/dist/AuditLogs/auditLogType.d.ts +5 -0
  37. package/dist/AuditLogs/auditLogType.js +9 -0
  38. package/dist/AuditLogs/index.d.ts +2 -0
  39. package/dist/AuditLogs/index.js +18 -0
  40. package/dist/Automations/Capabilities/Capability.d.ts +81 -0
  41. package/dist/Automations/Capabilities/Capability.js +23 -0
  42. package/dist/Automations/Capabilities/index.d.ts +1 -0
  43. package/dist/Automations/Capabilities/index.js +17 -0
  44. package/dist/Automations/Common.d.ts +94 -0
  45. package/dist/Automations/Common.js +40 -0
  46. package/dist/Automations/Events/Event.d.ts +96 -0
  47. package/dist/Automations/Events/Event.js +19 -0
  48. package/dist/Automations/Events/index.d.ts +1 -0
  49. package/dist/Automations/Events/index.js +17 -0
  50. package/dist/Automations/Executions/Execution.d.ts +298 -0
  51. package/dist/Automations/Executions/Execution.js +76 -0
  52. package/dist/Automations/Executions/Testing.d.ts +166 -0
  53. package/dist/Automations/Executions/Testing.js +54 -0
  54. package/dist/Automations/Executions/index.d.ts +2 -0
  55. package/dist/Automations/Executions/index.js +18 -0
  56. package/dist/Automations/Flows/Canvas.d.ts +109 -0
  57. package/dist/Automations/Flows/Canvas.js +43 -0
  58. package/dist/Automations/Flows/Flow.d.ts +154 -0
  59. package/dist/Automations/Flows/Flow.js +58 -0
  60. package/dist/Automations/Flows/Requests.d.ts +71 -0
  61. package/dist/Automations/Flows/Requests.js +2 -0
  62. package/dist/Automations/Flows/Validation.d.ts +28 -0
  63. package/dist/Automations/Flows/Validation.js +9 -0
  64. package/dist/Automations/Flows/index.d.ts +4 -0
  65. package/dist/Automations/Flows/index.js +20 -0
  66. package/dist/Automations/Nodes/Node.d.ts +116 -0
  67. package/dist/Automations/Nodes/Node.js +27 -0
  68. package/dist/Automations/Nodes/index.d.ts +1 -0
  69. package/dist/Automations/Nodes/index.js +17 -0
  70. package/dist/Automations/Triggers/Trigger.d.ts +112 -0
  71. package/dist/Automations/Triggers/Trigger.js +66 -0
  72. package/dist/Automations/Triggers/index.d.ts +1 -0
  73. package/dist/Automations/Triggers/index.js +17 -0
  74. package/dist/Automations/index.d.ts +7 -0
  75. package/dist/Automations/index.js +23 -0
  76. package/dist/Calendar/Calendar.d.ts +18 -0
  77. package/dist/Calendar/Calendar.js +2 -0
  78. package/dist/Calendar/Common.d.ts +77 -0
  79. package/dist/Calendar/Common.js +16 -0
  80. package/dist/Calendar/Event.d.ts +64 -0
  81. package/dist/Calendar/Event.js +16 -0
  82. package/dist/Calendar/Events.d.ts +61 -0
  83. package/dist/Calendar/Events.js +5 -0
  84. package/dist/Calendar/Task.d.ts +12 -0
  85. package/dist/Calendar/Task.js +2 -0
  86. package/dist/Calendar/Tasks.d.ts +18 -0
  87. package/dist/Calendar/Tasks.js +5 -0
  88. package/dist/Calendar/index.d.ts +3 -0
  89. package/dist/Calendar/index.js +19 -0
  90. package/dist/Calls/Audio.d.ts +17 -0
  91. package/dist/Calls/Audio.js +8 -0
  92. package/dist/Calls/Call.d.ts +59 -0
  93. package/dist/Calls/Call.js +25 -0
  94. package/dist/Calls/Codecs.d.ts +5 -0
  95. package/dist/Calls/Codecs.js +21 -0
  96. package/dist/Calls/Extension.d.ts +24 -0
  97. package/dist/Calls/Extension.js +2 -0
  98. package/dist/Calls/Options.d.ts +5 -0
  99. package/dist/Calls/Options.js +2 -0
  100. package/dist/Calls/Queue.d.ts +52 -0
  101. package/dist/Calls/Queue.js +12 -0
  102. package/dist/Calls/RingGroup.d.ts +46 -0
  103. package/dist/Calls/RingGroup.js +27 -0
  104. package/dist/Calls/Transport.d.ts +6 -0
  105. package/dist/Calls/Transport.js +11 -0
  106. package/dist/Calls/Trunk.d.ts +31 -0
  107. package/dist/Calls/Trunk.js +2 -0
  108. package/dist/Calls/index.d.ts +6 -0
  109. package/dist/Calls/index.js +22 -0
  110. package/dist/Chats/Chat.d.ts +63 -0
  111. package/dist/Chats/Chat.js +28 -0
  112. package/dist/Collections/Api.d.ts +41 -0
  113. package/dist/Collections/Api.js +2 -0
  114. package/dist/Collections/Commission.d.ts +52 -0
  115. package/dist/Collections/Commission.js +10 -0
  116. package/dist/Collections/Common.d.ts +78 -0
  117. package/dist/Collections/Common.js +39 -0
  118. package/dist/Collections/Dashboard.d.ts +27 -0
  119. package/dist/Collections/Dashboard.js +2 -0
  120. package/dist/Collections/Debt.d.ts +97 -0
  121. package/dist/Collections/Debt.js +12 -0
  122. package/dist/Collections/Interest.d.ts +38 -0
  123. package/dist/Collections/Interest.js +25 -0
  124. package/dist/Collections/Payment.d.ts +87 -0
  125. package/dist/Collections/Payment.js +21 -0
  126. package/dist/Collections/PaymentPlan.d.ts +87 -0
  127. package/dist/Collections/PaymentPlan.js +21 -0
  128. package/dist/Collections/PaymentPlanConfiguration.d.ts +100 -0
  129. package/dist/Collections/PaymentPlanConfiguration.js +34 -0
  130. package/dist/Collections/Portfolio.d.ts +52 -0
  131. package/dist/Collections/Portfolio.js +12 -0
  132. package/dist/Collections/Promise.d.ts +49 -0
  133. package/dist/Collections/Promise.js +25 -0
  134. package/dist/Collections/index.d.ts +11 -0
  135. package/dist/Collections/index.js +27 -0
  136. package/dist/Common/API/AuthApiKey.d.ts +5 -0
  137. package/dist/Common/API/AuthApiKey.js +2 -0
  138. package/dist/Common/API/AuthBasic.d.ts +4 -0
  139. package/dist/Common/API/AuthBasic.js +2 -0
  140. package/dist/Common/API/AuthBearer.d.ts +5 -0
  141. package/dist/Common/API/AuthBearer.js +2 -0
  142. package/dist/Common/API/AuthType.d.ts +6 -0
  143. package/dist/Common/API/AuthType.js +10 -0
  144. package/dist/Common/API/Method.d.ts +4 -0
  145. package/dist/Common/API/Method.js +8 -0
  146. package/dist/Common/API/index.d.ts +5 -0
  147. package/dist/Common/API/index.js +21 -0
  148. package/dist/Common/Channels/Channel.d.ts +143 -0
  149. package/dist/Common/Channels/Channel.js +33 -0
  150. package/dist/Common/Channels/ChannelAccount.d.ts +35 -0
  151. package/dist/Common/Channels/ChannelAccount.js +17 -0
  152. package/dist/Common/Channels/ChannelType.d.ts +24 -0
  153. package/dist/Common/Channels/ChannelType.js +28 -0
  154. package/dist/Common/Channels/Email.d.ts +88 -0
  155. package/dist/Common/Channels/Email.js +49 -0
  156. package/dist/Common/Channels/Facebook.d.ts +26 -0
  157. package/dist/Common/Channels/Facebook.js +6 -0
  158. package/dist/Common/Channels/Form.d.ts +119 -0
  159. package/dist/Common/Channels/Form.js +32 -0
  160. package/dist/Common/Channels/GoogleBusiness.d.ts +21 -0
  161. package/dist/Common/Channels/GoogleBusiness.js +9 -0
  162. package/dist/Common/Channels/Instagram.d.ts +35 -0
  163. package/dist/Common/Channels/Instagram.js +14 -0
  164. package/dist/Common/Channels/MercadoLibre.d.ts +28 -0
  165. package/dist/Common/Channels/MercadoLibre.js +9 -0
  166. package/dist/Common/Channels/Pbx.d.ts +2 -0
  167. package/dist/Common/Channels/Pbx.js +6 -0
  168. package/dist/Common/Channels/Permission.d.ts +6 -0
  169. package/dist/Common/Channels/Permission.js +6 -0
  170. package/dist/Common/Channels/RCS.d.ts +37 -0
  171. package/dist/Common/Channels/RCS.js +9 -0
  172. package/dist/Common/Channels/Sip.d.ts +2 -0
  173. package/dist/Common/Channels/Sip.js +6 -0
  174. package/dist/Common/Channels/Sms.d.ts +46 -0
  175. package/dist/Common/Channels/Sms.js +16 -0
  176. package/dist/Common/Channels/WebChat.d.ts +68 -0
  177. package/dist/Common/Channels/WebChat.js +13 -0
  178. package/dist/Common/Channels/WhatsApp.d.ts +89 -0
  179. package/dist/Common/Channels/WhatsApp.js +18 -0
  180. package/dist/Common/Channels/index.d.ts +16 -0
  181. package/dist/Common/Channels/index.js +32 -0
  182. package/dist/Common/EventsQueue/Data/postComment.d.ts +26 -0
  183. package/dist/Common/EventsQueue/Data/postComment.js +2 -0
  184. package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -0
  185. package/dist/Common/EventsQueue/EmailTemplate.js +2 -0
  186. package/dist/Common/EventsQueue/EventQueue.d.ts +31 -0
  187. package/dist/Common/EventsQueue/EventQueue.js +2 -0
  188. package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -0
  189. package/dist/Common/EventsQueue/UserUpdate.js +2 -0
  190. package/dist/Common/EventsQueue/index.d.ts +3 -0
  191. package/dist/Common/EventsQueue/index.js +19 -0
  192. package/dist/Common/Logs/Log.d.ts +18 -0
  193. package/dist/Common/Logs/Log.js +13 -0
  194. package/dist/Common/Logs/index.d.ts +1 -0
  195. package/dist/Common/Logs/index.js +17 -0
  196. package/dist/Common/Messages/MediaFile.d.ts +5 -0
  197. package/dist/Common/Messages/MediaFile.js +2 -0
  198. package/dist/Common/Messages/Message.d.ts +600 -0
  199. package/dist/Common/Messages/Message.js +64 -0
  200. package/dist/Common/Messages/Template.d.ts +86 -0
  201. package/dist/Common/Messages/Template.js +26 -0
  202. package/dist/Common/Messages/index.d.ts +3 -0
  203. package/dist/Common/Messages/index.js +19 -0
  204. package/dist/Common/Notifications/Notification.d.ts +19 -0
  205. package/dist/Common/Notifications/Notification.js +10 -0
  206. package/dist/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
  207. package/dist/Common/Notifications/UserNotificationsConfig.js +18 -0
  208. package/dist/Common/Notifications/index.d.ts +2 -0
  209. package/dist/Common/Notifications/index.js +18 -0
  210. package/dist/Common/Schedules/Schedules.d.ts +32 -0
  211. package/dist/Common/Schedules/Schedules.js +2 -0
  212. package/dist/Common/Schedules/index.d.ts +1 -0
  213. package/dist/Common/Schedules/index.js +17 -0
  214. package/dist/Common/index.d.ts +6 -0
  215. package/dist/Common/index.js +42 -0
  216. package/dist/Contacts/CommunicationEndpoint.d.ts +107 -0
  217. package/dist/Contacts/CommunicationEndpoint.js +39 -0
  218. package/dist/Contacts/CommunicationMethod.d.ts +9 -0
  219. package/dist/Contacts/CommunicationMethod.js +2 -0
  220. package/dist/Contacts/DuplicateContact.d.ts +11 -0
  221. package/dist/Contacts/DuplicateContact.js +2 -0
  222. package/dist/Contacts/File.d.ts +17 -0
  223. package/dist/Contacts/File.js +2 -0
  224. package/dist/Contacts/Import.d.ts +18 -0
  225. package/dist/Contacts/Import.js +2 -0
  226. package/dist/Contacts/Label.d.ts +9 -0
  227. package/dist/Contacts/Label.js +2 -0
  228. package/dist/Contacts/Note.d.ts +15 -0
  229. package/dist/Contacts/Note.js +2 -0
  230. package/dist/Contacts/Relationship.d.ts +28 -0
  231. package/dist/Contacts/Relationship.js +16 -0
  232. package/dist/Contacts/contacts.d.ts +291 -0
  233. package/dist/Contacts/contacts.js +54 -0
  234. package/dist/Contacts/index.d.ts +11 -0
  235. package/dist/Contacts/index.js +27 -0
  236. package/dist/Contacts/options.d.ts +5 -0
  237. package/dist/Contacts/options.js +2 -0
  238. package/dist/Contacts/segments.d.ts +53 -0
  239. package/dist/Contacts/segments.js +54 -0
  240. package/dist/Conversations/Assignment.d.ts +188 -0
  241. package/dist/Conversations/Assignment.js +2 -0
  242. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +78 -0
  243. package/dist/Conversations/Classifications/ClassificationTaxonomy.js +2 -0
  244. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
  245. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
  246. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +31 -0
  247. package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
  248. package/dist/Conversations/Classifications/index.d.ts +3 -0
  249. package/dist/Conversations/Classifications/index.js +19 -0
  250. package/dist/Conversations/Conversation.d.ts +522 -0
  251. package/dist/Conversations/Conversation.js +37 -0
  252. package/dist/Conversations/ConversationAutomationState.d.ts +49 -0
  253. package/dist/Conversations/ConversationAutomationState.js +2 -0
  254. package/dist/Conversations/ConversationPendingTransfer.d.ts +18 -0
  255. package/dist/Conversations/ConversationPendingTransfer.js +2 -0
  256. package/dist/Conversations/ConversationReadState.d.ts +16 -0
  257. package/dist/Conversations/ConversationReadState.js +2 -0
  258. package/dist/Conversations/ConversationSlaClockState.d.ts +70 -0
  259. package/dist/Conversations/ConversationSlaClockState.js +2 -0
  260. package/dist/Conversations/ConversationTransferRouting.d.ts +77 -0
  261. package/dist/Conversations/ConversationTransferRouting.js +2 -0
  262. package/dist/Conversations/DashBoard/dashboard.d.ts +115 -0
  263. package/dist/Conversations/DashBoard/dashboard.js +65 -0
  264. package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
  265. package/dist/Conversations/DashBoard/dashboardChannels.js +6 -0
  266. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  267. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  268. package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
  269. package/dist/Conversations/DashBoard/dashboardMessages.js +9 -0
  270. package/dist/Conversations/Ending.d.ts +17 -0
  271. package/dist/Conversations/Ending.js +2 -0
  272. package/dist/Conversations/Flows/Definitions.d.ts +10 -0
  273. package/dist/Conversations/Flows/Definitions.js +2 -0
  274. package/dist/Conversations/Flows/Flow.d.ts +222 -0
  275. package/dist/Conversations/Flows/Flow.js +50 -0
  276. package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
  277. package/dist/Conversations/Flows/FlowInfo.js +2 -0
  278. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  279. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  280. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  281. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  282. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  283. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  284. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  285. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  286. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  287. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  288. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  289. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  290. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  291. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  292. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  293. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  294. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  295. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  296. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  297. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  298. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  299. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  300. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  301. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  302. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  303. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  304. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  305. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  306. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  307. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  308. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  309. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  310. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  311. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  312. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  313. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  314. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  315. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  316. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  317. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  318. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  319. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  320. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  321. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  322. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  323. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  324. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  325. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  326. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  327. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  328. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  329. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  330. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  331. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  332. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  333. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  334. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  335. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  336. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  337. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  338. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  339. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  340. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  341. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  342. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  343. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  344. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  345. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  346. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  347. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  348. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  349. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  350. package/dist/Conversations/Flows/Workflows/Workflow.d.ts +336 -0
  351. package/dist/Conversations/Flows/Workflows/Workflow.js +98 -0
  352. package/dist/Conversations/Flows/Workflows/index.d.ts +1 -0
  353. package/dist/Conversations/Flows/Workflows/index.js +17 -0
  354. package/dist/Conversations/Flows/index.d.ts +4 -0
  355. package/dist/Conversations/Flows/index.js +20 -0
  356. package/dist/Conversations/Groups/Group.d.ts +17 -0
  357. package/dist/Conversations/Groups/Group.js +2 -0
  358. package/dist/Conversations/InboxCounters.d.ts +18 -0
  359. package/dist/Conversations/InboxCounters.js +2 -0
  360. package/dist/Conversations/InboxQueries.d.ts +133 -0
  361. package/dist/Conversations/InboxQueries.js +2 -0
  362. package/dist/Conversations/Label.d.ts +10 -0
  363. package/dist/Conversations/Label.js +2 -0
  364. package/dist/Conversations/Outbox.d.ts +23 -0
  365. package/dist/Conversations/Outbox.js +2 -0
  366. package/dist/Conversations/Queue.d.ts +103 -0
  367. package/dist/Conversations/Queue.js +2 -0
  368. package/dist/Conversations/QuickResponse.d.ts +34 -0
  369. package/dist/Conversations/QuickResponse.js +2 -0
  370. package/dist/Conversations/Routing.d.ts +159 -0
  371. package/dist/Conversations/Routing.js +2 -0
  372. package/dist/Conversations/Sla.d.ts +236 -0
  373. package/dist/Conversations/Sla.js +2 -0
  374. package/dist/Conversations/SocialWalls.d.ts +88 -0
  375. package/dist/Conversations/SocialWalls.js +2 -0
  376. package/dist/Conversations/Survey.d.ts +19 -0
  377. package/dist/Conversations/Survey.js +9 -0
  378. package/dist/Conversations/Transfer.d.ts +74 -0
  379. package/dist/Conversations/Transfer.js +2 -0
  380. package/dist/Conversations/WebHook.d.ts +22 -0
  381. package/dist/Conversations/WebHook.js +2 -0
  382. package/dist/Conversations/index.d.ts +26 -0
  383. package/dist/Conversations/index.js +65 -0
  384. package/dist/Docs/Document.d.ts +58 -0
  385. package/dist/Docs/Document.js +29 -0
  386. package/dist/Docs/Store.d.ts +37 -0
  387. package/dist/Docs/Store.js +17 -0
  388. package/dist/Docs/index.d.ts +2 -0
  389. package/dist/Docs/index.js +18 -0
  390. package/dist/Events/DomainEventTypes.d.ts +51 -0
  391. package/dist/Events/DomainEventTypes.js +49 -0
  392. package/dist/Events/index.d.ts +1 -0
  393. package/dist/Events/index.js +17 -0
  394. package/dist/Forms/API.d.ts +53 -0
  395. package/dist/Forms/API.js +2 -0
  396. package/dist/Forms/SubmittedForm.d.ts +56 -0
  397. package/dist/Forms/SubmittedForm.js +9 -0
  398. package/dist/Forms/index.d.ts +2 -0
  399. package/dist/Forms/index.js +18 -0
  400. package/dist/Marketing/Campaign.d.ts +115 -0
  401. package/dist/Marketing/Campaign.js +29 -0
  402. package/dist/Marketing/CampaignContract.d.ts +3 -0
  403. package/dist/Marketing/CampaignContract.js +54 -0
  404. package/dist/Marketing/Dashboard.d.ts +48 -0
  405. package/dist/Marketing/Dashboard.js +2 -0
  406. package/dist/Marketing/Options.d.ts +12 -0
  407. package/dist/Marketing/Options.js +9 -0
  408. package/dist/Marketing/Template.d.ts +19 -0
  409. package/dist/Marketing/Template.js +8 -0
  410. package/dist/Marketing/index.d.ts +5 -0
  411. package/dist/Marketing/index.js +21 -0
  412. package/dist/Presence/AgentPause.d.ts +24 -0
  413. package/dist/Presence/AgentPause.js +19 -0
  414. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  415. package/dist/Presence/ChannelRoutingState.js +9 -0
  416. package/dist/Presence/QueueParticipation.d.ts +17 -0
  417. package/dist/Presence/QueueParticipation.js +2 -0
  418. package/dist/Presence/QueueRoutingState.d.ts +27 -0
  419. package/dist/Presence/QueueRoutingState.js +9 -0
  420. package/dist/Presence/index.d.ts +3 -0
  421. package/dist/Presence/index.js +19 -0
  422. package/dist/PublicAPI/apiKey.d.ts +101 -0
  423. package/dist/PublicAPI/apiKey.js +29 -0
  424. package/dist/Reports/ScheduledReport.d.ts +205 -0
  425. package/dist/Reports/ScheduledReport.js +57 -0
  426. package/dist/Reports/aiReport.d.ts +20 -0
  427. package/dist/Reports/aiReport.js +2 -0
  428. package/dist/Reports/apiResult.d.ts +5 -0
  429. package/dist/Reports/apiResult.js +2 -0
  430. package/dist/Reports/index.d.ts +3 -0
  431. package/dist/Reports/index.js +19 -0
  432. package/dist/Sales/Api.d.ts +40 -0
  433. package/dist/Sales/Api.js +2 -0
  434. package/dist/Sales/Common.d.ts +72 -0
  435. package/dist/Sales/Common.js +31 -0
  436. package/dist/Sales/Dashboard.d.ts +25 -0
  437. package/dist/Sales/Dashboard.js +2 -0
  438. package/dist/Sales/Lead.d.ts +99 -0
  439. package/dist/Sales/Lead.js +8 -0
  440. package/dist/Sales/index.d.ts +4 -0
  441. package/dist/Sales/index.js +20 -0
  442. package/dist/Security/Security.d.ts +5 -0
  443. package/dist/Security/Security.js +2 -0
  444. package/dist/Security/index.d.ts +1 -0
  445. package/dist/Security/index.js +17 -0
  446. package/dist/Shop/Cart/cart.d.ts +19 -0
  447. package/dist/Shop/Cart/cart.js +2 -0
  448. package/dist/Shop/index.d.ts +1 -0
  449. package/dist/Shop/index.js +17 -0
  450. package/dist/Spaces/Dashboard.d.ts +4 -0
  451. package/dist/Spaces/Dashboard.js +2 -0
  452. package/dist/Spaces/index.d.ts +2 -0
  453. package/dist/Spaces/index.js +18 -0
  454. package/dist/Spaces/spaces.d.ts +104 -0
  455. package/dist/Spaces/spaces.js +85 -0
  456. package/dist/Tickets/AI.d.ts +448 -0
  457. package/dist/Tickets/AI.js +113 -0
  458. package/dist/Tickets/AccessLevel.d.ts +5 -0
  459. package/dist/Tickets/AccessLevel.js +9 -0
  460. package/dist/Tickets/AdvancedApi.d.ts +641 -0
  461. package/dist/Tickets/AdvancedApi.js +135 -0
  462. package/dist/Tickets/Api.d.ts +79 -0
  463. package/dist/Tickets/Api.js +8 -0
  464. package/dist/Tickets/Approval.d.ts +155 -0
  465. package/dist/Tickets/Approval.js +30 -0
  466. package/dist/Tickets/Automation.d.ts +285 -0
  467. package/dist/Tickets/Automation.js +78 -0
  468. package/dist/Tickets/Category.d.ts +89 -0
  469. package/dist/Tickets/Category.js +2 -0
  470. package/dist/Tickets/Common.d.ts +172 -0
  471. package/dist/Tickets/Common.js +38 -0
  472. package/dist/Tickets/Conversation.d.ts +134 -0
  473. package/dist/Tickets/Conversation.js +43 -0
  474. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  475. package/dist/Tickets/CustomerNotification.js +54 -0
  476. package/dist/Tickets/Dashboard.d.ts +710 -0
  477. package/dist/Tickets/Dashboard.js +284 -0
  478. package/dist/Tickets/Fields.d.ts +235 -0
  479. package/dist/Tickets/Fields.js +44 -0
  480. package/dist/Tickets/Group.d.ts +74 -0
  481. package/dist/Tickets/Group.js +2 -0
  482. package/dist/Tickets/Layouts.d.ts +65 -0
  483. package/dist/Tickets/Layouts.js +22 -0
  484. package/dist/Tickets/Notes.d.ts +30 -0
  485. package/dist/Tickets/Notes.js +13 -0
  486. package/dist/Tickets/QuickResponse.d.ts +64 -0
  487. package/dist/Tickets/QuickResponse.js +41 -0
  488. package/dist/Tickets/Routing.d.ts +459 -0
  489. package/dist/Tickets/Routing.js +116 -0
  490. package/dist/Tickets/Satisfaction.d.ts +31 -0
  491. package/dist/Tickets/Satisfaction.js +9 -0
  492. package/dist/Tickets/Security.d.ts +573 -0
  493. package/dist/Tickets/Security.js +117 -0
  494. package/dist/Tickets/SelfService.d.ts +670 -0
  495. package/dist/Tickets/SelfService.js +62 -0
  496. package/dist/Tickets/Sla.d.ts +430 -0
  497. package/dist/Tickets/Sla.js +75 -0
  498. package/dist/Tickets/Task.d.ts +133 -0
  499. package/dist/Tickets/Task.js +17 -0
  500. package/dist/Tickets/Ticket.d.ts +167 -0
  501. package/dist/Tickets/Ticket.js +2 -0
  502. package/dist/Tickets/Views.d.ts +77 -0
  503. package/dist/Tickets/Views.js +23 -0
  504. package/dist/Tickets/Workflow.d.ts +183 -0
  505. package/dist/Tickets/Workflow.js +48 -0
  506. package/dist/Tickets/index.d.ts +24 -0
  507. package/dist/Tickets/index.js +40 -0
  508. package/dist/Users/Signature.d.ts +81 -0
  509. package/dist/Users/Signature.js +2 -0
  510. package/dist/Users/UserActivitySummary.d.ts +5 -0
  511. package/dist/Users/UserActivitySummary.js +2 -0
  512. package/dist/Users/UserProfile.d.ts +121 -0
  513. package/dist/Users/UserProfile.js +5 -0
  514. package/dist/Users/UserTrii.d.ts +112 -0
  515. package/dist/Users/UserTrii.js +17 -0
  516. package/dist/Users/UserType.d.ts +10 -0
  517. package/dist/Users/UserType.js +13 -0
  518. package/dist/Users/index.d.ts +5 -0
  519. package/dist/Users/index.js +21 -0
  520. package/dist/index.d.ts +25 -0
  521. package/dist/index.js +61 -0
  522. package/package.json +12 -0
@@ -0,0 +1,109 @@
1
+ import { AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue } from '../Common';
2
+ import type { AutomationNodeVisibilityRule } from '../Nodes';
3
+ export declare enum AutomationFlowVariableType {
4
+ STRING = "string",
5
+ NUMBER = "number",
6
+ BOOLEAN = "boolean",
7
+ DATE = "date",
8
+ JSON = "json",
9
+ ARRAY = "array"
10
+ }
11
+ export declare enum AutomationNodeKind {
12
+ TRIGGER = "trigger",
13
+ ACTION = "action",
14
+ CONDITION = "condition",
15
+ AGENT = "agent",
16
+ TOOL = "tool",
17
+ MESSAGE = "message",
18
+ CONTROL = "control"
19
+ }
20
+ export declare enum AutomationNodeHandleType {
21
+ SOURCE = "source",
22
+ TARGET = "target"
23
+ }
24
+ export declare enum AutomationNodeHandlePosition {
25
+ LEFT = "left",
26
+ RIGHT = "right",
27
+ TOP = "top",
28
+ BOTTOM = "bottom"
29
+ }
30
+ export declare enum AutomationFlowEdgeRole {
31
+ CONTROL = "control",
32
+ AUXILIARY = "auxiliary"
33
+ }
34
+ export interface AutomationFlowVariable {
35
+ name: string;
36
+ description?: string | null;
37
+ type: AutomationFlowVariableType;
38
+ isInput: boolean;
39
+ isOutput: boolean;
40
+ /** JSON Schema que restringe el valor permitido para la variable. */
41
+ schema?: AutomationJsonSchema | null;
42
+ defaultValue?: AutomationJsonValue;
43
+ }
44
+ export interface AutomationFlowViewport {
45
+ x: number;
46
+ y: number;
47
+ zoom: number;
48
+ }
49
+ export interface AutomationNodePosition {
50
+ x: number;
51
+ y: number;
52
+ }
53
+ export declare enum AutomationCanvasAnnotationType {
54
+ NOTE = "note"
55
+ }
56
+ /** Elemento puramente visual del canvas; no participa de la ejecución. */
57
+ export interface AutomationCanvasAnnotation {
58
+ id: string;
59
+ type: AutomationCanvasAnnotationType;
60
+ title?: string | null;
61
+ text: string;
62
+ position: AutomationNodePosition;
63
+ width: number;
64
+ height: number;
65
+ color: string;
66
+ metadata?: AutomationJsonObject | null;
67
+ }
68
+ export interface AutomationFlowNode {
69
+ id: string;
70
+ /** Clave del renderer visual; no representa una regla de negocio. */
71
+ type: string;
72
+ data: AutomationNodeInstance;
73
+ position: AutomationNodePosition;
74
+ }
75
+ export interface AutomationNodeInstance {
76
+ definitionCode: string;
77
+ definitionVersion: number;
78
+ kind: AutomationNodeKind;
79
+ name: string;
80
+ values: AutomationJsonObject;
81
+ metadata?: AutomationJsonObject | null;
82
+ disabled: boolean;
83
+ }
84
+ export interface AutomationFlowEdge {
85
+ id: string;
86
+ type: string;
87
+ source: string;
88
+ sourceHandle?: string | null;
89
+ target: string;
90
+ targetHandle?: string | null;
91
+ data: AutomationFlowEdgeData;
92
+ }
93
+ export interface AutomationFlowEdgeData {
94
+ /** Control advances execution; auxiliary attaches a node dependency. */
95
+ role?: AutomationFlowEdgeRole;
96
+ label?: string | null;
97
+ metadata?: AutomationJsonObject | null;
98
+ }
99
+ export interface AutomationNodeHandle {
100
+ id: string;
101
+ name: string;
102
+ type: AutomationNodeHandleType;
103
+ position: AutomationNodeHandlePosition;
104
+ multiple: boolean;
105
+ showName: boolean;
106
+ tags: string[];
107
+ showWhen?: AutomationNodeVisibilityRule | null;
108
+ hideWhen?: AutomationNodeVisibilityRule | null;
109
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationCanvasAnnotationType = exports.AutomationFlowEdgeRole = exports.AutomationNodeHandlePosition = exports.AutomationNodeHandleType = exports.AutomationNodeKind = exports.AutomationFlowVariableType = void 0;
4
+ var AutomationFlowVariableType;
5
+ (function (AutomationFlowVariableType) {
6
+ AutomationFlowVariableType["STRING"] = "string";
7
+ AutomationFlowVariableType["NUMBER"] = "number";
8
+ AutomationFlowVariableType["BOOLEAN"] = "boolean";
9
+ AutomationFlowVariableType["DATE"] = "date";
10
+ AutomationFlowVariableType["JSON"] = "json";
11
+ AutomationFlowVariableType["ARRAY"] = "array";
12
+ })(AutomationFlowVariableType || (exports.AutomationFlowVariableType = AutomationFlowVariableType = {}));
13
+ var AutomationNodeKind;
14
+ (function (AutomationNodeKind) {
15
+ AutomationNodeKind["TRIGGER"] = "trigger";
16
+ AutomationNodeKind["ACTION"] = "action";
17
+ AutomationNodeKind["CONDITION"] = "condition";
18
+ AutomationNodeKind["AGENT"] = "agent";
19
+ AutomationNodeKind["TOOL"] = "tool";
20
+ AutomationNodeKind["MESSAGE"] = "message";
21
+ AutomationNodeKind["CONTROL"] = "control";
22
+ })(AutomationNodeKind || (exports.AutomationNodeKind = AutomationNodeKind = {}));
23
+ var AutomationNodeHandleType;
24
+ (function (AutomationNodeHandleType) {
25
+ AutomationNodeHandleType["SOURCE"] = "source";
26
+ AutomationNodeHandleType["TARGET"] = "target";
27
+ })(AutomationNodeHandleType || (exports.AutomationNodeHandleType = AutomationNodeHandleType = {}));
28
+ var AutomationNodeHandlePosition;
29
+ (function (AutomationNodeHandlePosition) {
30
+ AutomationNodeHandlePosition["LEFT"] = "left";
31
+ AutomationNodeHandlePosition["RIGHT"] = "right";
32
+ AutomationNodeHandlePosition["TOP"] = "top";
33
+ AutomationNodeHandlePosition["BOTTOM"] = "bottom";
34
+ })(AutomationNodeHandlePosition || (exports.AutomationNodeHandlePosition = AutomationNodeHandlePosition = {}));
35
+ var AutomationFlowEdgeRole;
36
+ (function (AutomationFlowEdgeRole) {
37
+ AutomationFlowEdgeRole["CONTROL"] = "control";
38
+ AutomationFlowEdgeRole["AUXILIARY"] = "auxiliary";
39
+ })(AutomationFlowEdgeRole || (exports.AutomationFlowEdgeRole = AutomationFlowEdgeRole = {}));
40
+ var AutomationCanvasAnnotationType;
41
+ (function (AutomationCanvasAnnotationType) {
42
+ AutomationCanvasAnnotationType["NOTE"] = "note";
43
+ })(AutomationCanvasAnnotationType || (exports.AutomationCanvasAnnotationType = AutomationCanvasAnnotationType = {}));
@@ -0,0 +1,154 @@
1
+ import { AutomationCapabilityReference } from '../Capabilities';
2
+ import { AutomationJsonObject, AutomationJsonValue, AutomationSourceApplication } from '../Common';
3
+ import { AutomationFlowEdge, AutomationCanvasAnnotation, AutomationFlowNode, AutomationFlowVariable, AutomationFlowViewport } from './Canvas';
4
+ import { AutomationTriggerAdmissionPolicy, AutomationTriggerBinding } from '../Triggers';
5
+ export declare enum AutomationFlowKind {
6
+ CONVERSATIONAL = "conversational",
7
+ VOICE = "voice",
8
+ CAMPAIGN = "campaign",
9
+ MARKETING = "marketing",
10
+ TICKET = "ticket",
11
+ SALES = "sales",
12
+ GENERIC = "generic"
13
+ }
14
+ export declare enum AutomationFlowStatus {
15
+ DRAFT = "draft",
16
+ ACTIVE = "active",
17
+ DISABLED = "disabled",
18
+ ARCHIVED = "archived"
19
+ }
20
+ export declare enum AutomationFlowVersionStatus {
21
+ DRAFT = "draft",
22
+ TESTING = "testing",
23
+ PUBLISHED = "published",
24
+ DEPRECATED = "deprecated"
25
+ }
26
+ export declare enum FlowEntryPointExecutionMode {
27
+ /** Un evento inicia como máximo una ejecución de esta versión del Flow. */
28
+ SINGLE = "single",
29
+ /** El solapamiento fue habilitado explícitamente. */
30
+ MULTIPLE = "multiple"
31
+ }
32
+ export declare enum AutomationFilterLogicalOperator {
33
+ /** Todas las condiciones y grupos hijos deben cumplirse. */
34
+ ALL = "all",
35
+ /** Al menos una condición o grupo hijo debe cumplirse. */
36
+ ANY = "any"
37
+ }
38
+ export declare enum AutomationFilterOperator {
39
+ EQUALS = "equals",
40
+ NOT_EQUALS = "notEquals",
41
+ CONTAINS = "contains",
42
+ NOT_CONTAINS = "notContains",
43
+ STARTS_WITH = "startsWith",
44
+ ENDS_WITH = "endsWith",
45
+ GREATER_THAN = "greaterThan",
46
+ GREATER_THAN_OR_EQUAL = "greaterThanOrEqual",
47
+ LESS_THAN = "lessThan",
48
+ LESS_THAN_OR_EQUAL = "lessThanOrEqual",
49
+ IN = "in",
50
+ NOT_IN = "notIn",
51
+ EXISTS = "exists",
52
+ NOT_EXISTS = "notExists"
53
+ }
54
+ /** Comparación tipada aplicada a un campo de un evento. */
55
+ export interface AutomationFilterCondition {
56
+ /** JSON Pointer RFC 6901 absoluto dentro del envelope. */
57
+ path: string;
58
+ /** Operación utilizada para comparar el campo. */
59
+ operator: AutomationFilterOperator;
60
+ /** Valor esperado; no aplica a exists/notExists. */
61
+ value?: AutomationJsonValue;
62
+ /** Sensibilidad de comparaciones de strings; por defecto es true. */
63
+ caseSensitive?: boolean | null;
64
+ }
65
+ /** Grupo recursivo de filtros combinados mediante all o any. */
66
+ export interface AutomationFilterGroup {
67
+ /** Forma en que se combinan condiciones y grupos hijos. */
68
+ logicalOperator: AutomationFilterLogicalOperator;
69
+ /** Comparaciones directas pertenecientes al grupo. */
70
+ conditions: AutomationFilterCondition[];
71
+ /** Grupos anidados. */
72
+ groups: AutomationFilterGroup[];
73
+ }
74
+ /**
75
+ * Identidad estable del Flow. El contenido ejecutable vive en FlowVersion.
76
+ */
77
+ export interface AutomationFlowDefinition {
78
+ id: string;
79
+ spaceId: string;
80
+ name: string;
81
+ description?: string | null;
82
+ kind: AutomationFlowKind;
83
+ status: AutomationFlowStatus;
84
+ ownerId?: string | null;
85
+ tags: string[];
86
+ draftVersionId?: string | null;
87
+ activeVersionId?: string | null;
88
+ createdAt: string;
89
+ createdBy: string;
90
+ updatedAt?: string | null;
91
+ updatedBy?: string | null;
92
+ deletedAt?: string | null;
93
+ }
94
+ /**
95
+ * Snapshot del canvas.
96
+ *
97
+ * El canvas pertenece a Automations y no depende de contratos de otras
98
+ * aplicaciones.
99
+ */
100
+ export interface AutomationFlowCanvas {
101
+ variables: AutomationFlowVariable[];
102
+ nodes: AutomationFlowNode[];
103
+ edges: AutomationFlowEdge[];
104
+ /** Anotaciones visuales que no forman parte del grafo ejecutable. */
105
+ annotations?: AutomationCanvasAnnotation[];
106
+ viewport: AutomationFlowViewport;
107
+ }
108
+ /**
109
+ * Snapshot versionado e inmutable una vez publicado.
110
+ */
111
+ export interface AutomationFlowVersion {
112
+ id: string;
113
+ flowId: string;
114
+ version: number;
115
+ schemaVersion: number;
116
+ revision: number;
117
+ status: AutomationFlowVersionStatus;
118
+ canvas: AutomationFlowCanvas;
119
+ entryPoints: FlowEntryPoint[];
120
+ createdAt: string;
121
+ createdBy: string;
122
+ updatedAt?: string | null;
123
+ updatedBy?: string | null;
124
+ publishedAt?: string | null;
125
+ publishedBy?: string | null;
126
+ }
127
+ /**
128
+ * Evento de entrada que puede iniciar una versión concreta de un Flow.
129
+ *
130
+ * La configuración autoritativa vive en esta entidad. El nodo trigger es su
131
+ * representación en el canvas y se vincula mediante triggerNodeId.
132
+ */
133
+ export interface FlowEntryPoint {
134
+ id: string;
135
+ flowId: string;
136
+ flowVersionId: string;
137
+ name: string;
138
+ /** Selección amigable y configuración normalizada del trigger de módulo. */
139
+ triggerBinding: AutomationTriggerBinding;
140
+ /** Política de reingreso y concurrencia aplicada antes de crear la ejecución. */
141
+ admissionPolicy: AutomationTriggerAdmissionPolicy;
142
+ /** Valor resuelto por backend a partir de triggerBinding; no es editable. */
143
+ sourceApplication: AutomationSourceApplication;
144
+ /** Valor resuelto por backend a partir de triggerBinding; no es editable. */
145
+ eventType: string;
146
+ triggerCapability?: AutomationCapabilityReference | null;
147
+ /** Grupo vacío acepta cualquier evento del tipo configurado. */
148
+ filters: AutomationFilterGroup;
149
+ enabled: boolean;
150
+ triggerNodeId: string;
151
+ priority: number;
152
+ executionMode: FlowEntryPointExecutionMode;
153
+ metadata?: AutomationJsonObject | null;
154
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationFilterOperator = exports.AutomationFilterLogicalOperator = exports.FlowEntryPointExecutionMode = exports.AutomationFlowVersionStatus = exports.AutomationFlowStatus = exports.AutomationFlowKind = void 0;
4
+ var AutomationFlowKind;
5
+ (function (AutomationFlowKind) {
6
+ AutomationFlowKind["CONVERSATIONAL"] = "conversational";
7
+ AutomationFlowKind["VOICE"] = "voice";
8
+ AutomationFlowKind["CAMPAIGN"] = "campaign";
9
+ AutomationFlowKind["MARKETING"] = "marketing";
10
+ AutomationFlowKind["TICKET"] = "ticket";
11
+ AutomationFlowKind["SALES"] = "sales";
12
+ AutomationFlowKind["GENERIC"] = "generic";
13
+ })(AutomationFlowKind || (exports.AutomationFlowKind = AutomationFlowKind = {}));
14
+ var AutomationFlowStatus;
15
+ (function (AutomationFlowStatus) {
16
+ AutomationFlowStatus["DRAFT"] = "draft";
17
+ AutomationFlowStatus["ACTIVE"] = "active";
18
+ AutomationFlowStatus["DISABLED"] = "disabled";
19
+ AutomationFlowStatus["ARCHIVED"] = "archived";
20
+ })(AutomationFlowStatus || (exports.AutomationFlowStatus = AutomationFlowStatus = {}));
21
+ var AutomationFlowVersionStatus;
22
+ (function (AutomationFlowVersionStatus) {
23
+ AutomationFlowVersionStatus["DRAFT"] = "draft";
24
+ AutomationFlowVersionStatus["TESTING"] = "testing";
25
+ AutomationFlowVersionStatus["PUBLISHED"] = "published";
26
+ AutomationFlowVersionStatus["DEPRECATED"] = "deprecated";
27
+ })(AutomationFlowVersionStatus || (exports.AutomationFlowVersionStatus = AutomationFlowVersionStatus = {}));
28
+ var FlowEntryPointExecutionMode;
29
+ (function (FlowEntryPointExecutionMode) {
30
+ /** Un evento inicia como máximo una ejecución de esta versión del Flow. */
31
+ FlowEntryPointExecutionMode["SINGLE"] = "single";
32
+ /** El solapamiento fue habilitado explícitamente. */
33
+ FlowEntryPointExecutionMode["MULTIPLE"] = "multiple";
34
+ })(FlowEntryPointExecutionMode || (exports.FlowEntryPointExecutionMode = FlowEntryPointExecutionMode = {}));
35
+ var AutomationFilterLogicalOperator;
36
+ (function (AutomationFilterLogicalOperator) {
37
+ /** Todas las condiciones y grupos hijos deben cumplirse. */
38
+ AutomationFilterLogicalOperator["ALL"] = "all";
39
+ /** Al menos una condición o grupo hijo debe cumplirse. */
40
+ AutomationFilterLogicalOperator["ANY"] = "any";
41
+ })(AutomationFilterLogicalOperator || (exports.AutomationFilterLogicalOperator = AutomationFilterLogicalOperator = {}));
42
+ var AutomationFilterOperator;
43
+ (function (AutomationFilterOperator) {
44
+ AutomationFilterOperator["EQUALS"] = "equals";
45
+ AutomationFilterOperator["NOT_EQUALS"] = "notEquals";
46
+ AutomationFilterOperator["CONTAINS"] = "contains";
47
+ AutomationFilterOperator["NOT_CONTAINS"] = "notContains";
48
+ AutomationFilterOperator["STARTS_WITH"] = "startsWith";
49
+ AutomationFilterOperator["ENDS_WITH"] = "endsWith";
50
+ AutomationFilterOperator["GREATER_THAN"] = "greaterThan";
51
+ AutomationFilterOperator["GREATER_THAN_OR_EQUAL"] = "greaterThanOrEqual";
52
+ AutomationFilterOperator["LESS_THAN"] = "lessThan";
53
+ AutomationFilterOperator["LESS_THAN_OR_EQUAL"] = "lessThanOrEqual";
54
+ AutomationFilterOperator["IN"] = "in";
55
+ AutomationFilterOperator["NOT_IN"] = "notIn";
56
+ AutomationFilterOperator["EXISTS"] = "exists";
57
+ AutomationFilterOperator["NOT_EXISTS"] = "notExists";
58
+ })(AutomationFilterOperator || (exports.AutomationFilterOperator = AutomationFilterOperator = {}));
@@ -0,0 +1,71 @@
1
+ import { AutomationPageRequest } from '../Common';
2
+ import { AutomationFlowDefinition, AutomationFlowKind, AutomationFlowStatus, AutomationFlowVersion, AutomationFlowVersionStatus, AutomationFlowCanvas, FlowEntryPoint } from './Flow';
3
+ import { AutomationFlowValidationResult } from './Validation';
4
+ export interface CreateAutomationFlowRequest {
5
+ name: string;
6
+ description?: string | null;
7
+ kind: AutomationFlowKind;
8
+ ownerId?: string | null;
9
+ tags: string[];
10
+ initialCanvas?: AutomationFlowCanvas | null;
11
+ entryPoints: FlowEntryPoint[];
12
+ }
13
+ export interface UpdateAutomationFlowRequest {
14
+ name: string;
15
+ description?: string | null;
16
+ kind: AutomationFlowKind;
17
+ ownerId?: string | null;
18
+ tags: string[];
19
+ }
20
+ export interface AutomationFlowSummary {
21
+ id: string;
22
+ name: string;
23
+ description?: string | null;
24
+ kind: AutomationFlowKind;
25
+ status: AutomationFlowStatus;
26
+ ownerId?: string | null;
27
+ tags: string[];
28
+ draftVersionId?: string | null;
29
+ activeVersionId?: string | null;
30
+ updatedAt?: string | null;
31
+ }
32
+ export interface AutomationFlowDetails {
33
+ definition: AutomationFlowDefinition;
34
+ draftVersion?: AutomationFlowVersion | null;
35
+ activeVersion?: AutomationFlowVersion | null;
36
+ }
37
+ export interface CreateAutomationFlowVersionRequest {
38
+ sourceVersionId?: string | null;
39
+ schemaVersion: number;
40
+ canvas?: AutomationFlowCanvas | null;
41
+ entryPoints?: FlowEntryPoint[] | null;
42
+ }
43
+ export interface UpdateAutomationFlowDraftRequest {
44
+ expectedRevision: number;
45
+ status: AutomationFlowVersionStatus;
46
+ schemaVersion: number;
47
+ canvas: AutomationFlowCanvas;
48
+ entryPoints: FlowEntryPoint[];
49
+ }
50
+ export interface PublishAutomationFlowVersionRequest {
51
+ expectedRevision: number;
52
+ validateOnly: boolean;
53
+ }
54
+ export interface PublishAutomationFlowVersionResult {
55
+ definition: AutomationFlowDefinition;
56
+ version: AutomationFlowVersion;
57
+ validation: AutomationFlowValidationResult;
58
+ published: boolean;
59
+ }
60
+ export interface ReplaceFlowEntryPointsRequest {
61
+ expectedRevision: number;
62
+ entryPoints: FlowEntryPoint[];
63
+ }
64
+ export interface AutomationFlowQuery extends AutomationPageRequest {
65
+ search?: string | null;
66
+ kinds?: AutomationFlowKind[] | null;
67
+ statuses?: AutomationFlowStatus[] | null;
68
+ ownerId?: string | null;
69
+ tags?: string[] | null;
70
+ includeArchived: boolean;
71
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import { AutomationJsonObject } from '../Common';
2
+ export declare enum AutomationValidationSeverity {
3
+ INFO = "info",
4
+ WARNING = "warning",
5
+ ERROR = "error"
6
+ }
7
+ export interface AutomationValidationIssue {
8
+ code: string;
9
+ severity: AutomationValidationSeverity;
10
+ message: string;
11
+ path?: string | null;
12
+ nodeId?: string | null;
13
+ entryPointId?: string | null;
14
+ details?: AutomationJsonObject | null;
15
+ }
16
+ export interface AutomationFlowValidationResult {
17
+ flowId: string;
18
+ flowVersionId: string;
19
+ valid: boolean;
20
+ issues: AutomationValidationIssue[];
21
+ validatedAt: string;
22
+ }
23
+ export interface FlowEntryPointOverlap {
24
+ firstEntryPointId: string;
25
+ secondEntryPointId: string;
26
+ reason: string;
27
+ allowsMultipleExecutions: boolean;
28
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationValidationSeverity = void 0;
4
+ var AutomationValidationSeverity;
5
+ (function (AutomationValidationSeverity) {
6
+ AutomationValidationSeverity["INFO"] = "info";
7
+ AutomationValidationSeverity["WARNING"] = "warning";
8
+ AutomationValidationSeverity["ERROR"] = "error";
9
+ })(AutomationValidationSeverity || (exports.AutomationValidationSeverity = AutomationValidationSeverity = {}));
@@ -0,0 +1,4 @@
1
+ export * from './Flow';
2
+ export * from './Canvas';
3
+ export * from './Requests';
4
+ export * from './Validation';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Flow"), exports);
18
+ __exportStar(require("./Canvas"), exports);
19
+ __exportStar(require("./Requests"), exports);
20
+ __exportStar(require("./Validation"), exports);
@@ -0,0 +1,116 @@
1
+ import { AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationPageRequest, AutomationSourceApplication } from '../Common';
2
+ import { AutomationCapabilityReference } from '../Capabilities';
3
+ import { AutomationTriggerDefinition } from '../Triggers';
4
+ import { AutomationNodeHandle, AutomationNodeKind } from '../Flows';
5
+ export declare enum AutomationNodePropertyEditor {
6
+ STRING = "string",
7
+ NUMBER = "number",
8
+ BOOLEAN = "boolean",
9
+ PASSWORD = "password",
10
+ JSON = "json",
11
+ DATE = "date",
12
+ FILE = "file",
13
+ CODE = "code",
14
+ OPTIONS = "options",
15
+ MULTI_OPTIONS = "multiOptions",
16
+ ASYNC_OPTIONS = "asyncOptions",
17
+ ASYNC_MULTI_OPTIONS = "asyncMultiOptions"
18
+ }
19
+ export declare enum AutomationNodeVisibilityLogicalOperator {
20
+ ALL = "all",
21
+ ANY = "any"
22
+ }
23
+ export declare enum AutomationNodeConditionOperator {
24
+ EQUALS = "equals"
25
+ }
26
+ export interface AutomationNodeCondition {
27
+ propertyId: string;
28
+ operator: AutomationNodeConditionOperator;
29
+ value?: AutomationJsonValue;
30
+ }
31
+ export interface AutomationNodeVisibilityRule {
32
+ logicalOperator: AutomationNodeVisibilityLogicalOperator;
33
+ conditions: AutomationNodeCondition[];
34
+ }
35
+ export interface AutomationNodePropertyUi {
36
+ tabId: string;
37
+ tabLabel: string;
38
+ order: number;
39
+ labelKey?: string | null;
40
+ placeholder?: string | null;
41
+ rows?: number | null;
42
+ numberMin?: number | null;
43
+ numberMax?: number | null;
44
+ step?: number | null;
45
+ acceptVariable?: boolean | null;
46
+ acceptEmojis?: boolean | null;
47
+ allowMaximizeInput?: boolean | null;
48
+ itemProperties: AutomationNodePropertyDefinition[];
49
+ }
50
+ export interface AutomationNodeDefinition {
51
+ code: string;
52
+ version: number;
53
+ kind: AutomationNodeKind;
54
+ sourceApplication: AutomationSourceApplication;
55
+ name: string;
56
+ description?: string | null;
57
+ icon?: string | null;
58
+ color?: string | null;
59
+ tags: string[];
60
+ requiredPermissions: string[];
61
+ capability?: AutomationCapabilityReference | null;
62
+ /** Metadata disponible únicamente para nodos que pueden iniciar un Flow. */
63
+ trigger?: AutomationTriggerDefinition | null;
64
+ inputs: AutomationNodeHandle[];
65
+ outputs: AutomationNodeHandle[];
66
+ properties: AutomationNodePropertyDefinition[];
67
+ inputSchema?: AutomationJsonSchema | null;
68
+ outputSchema?: AutomationJsonSchema | null;
69
+ enabled: boolean;
70
+ }
71
+ export interface AutomationNodePropertyDefinition {
72
+ id: string;
73
+ label: string;
74
+ description?: string | null;
75
+ editor: AutomationNodePropertyEditor;
76
+ required: boolean;
77
+ defaultValue?: AutomationJsonValue;
78
+ schema?: AutomationJsonSchema | null;
79
+ options: AutomationNodeOption[];
80
+ optionsCapabilityCode?: string | null;
81
+ ui: AutomationNodePropertyUi;
82
+ showWhen?: AutomationNodeVisibilityRule | null;
83
+ hideWhen?: AutomationNodeVisibilityRule | null;
84
+ }
85
+ export interface AutomationNodeOption {
86
+ id: string;
87
+ label: string;
88
+ description?: string | null;
89
+ imageUrl?: string | null;
90
+ metadata?: AutomationJsonObject | null;
91
+ }
92
+ export interface AutomationNodeDefinitionQuery extends AutomationPageRequest {
93
+ search?: string | null;
94
+ kinds?: AutomationNodeKind[] | null;
95
+ sourceApplications?: AutomationSourceApplication[] | null;
96
+ tags?: string[] | null;
97
+ enabledOnly: boolean;
98
+ }
99
+ export interface AutomationNodeOptionsRequest {
100
+ definitionCode: string;
101
+ definitionVersion: number;
102
+ propertyId: string;
103
+ currentValues: AutomationJsonObject;
104
+ context: AutomationJsonObject;
105
+ /** Optional provider-defined, case-insensitive text search. */
106
+ search?: string | null;
107
+ /** Opaque cursor returned by the previous response. */
108
+ continuationToken?: string | null;
109
+ /** Preferred page size. The API clamps it to the supported range (1-200). */
110
+ limit?: number;
111
+ }
112
+ export interface AutomationNodeOptionsResult {
113
+ options: AutomationNodeOption[];
114
+ /** Opaque cursor for the next page; null or omitted means the last page. */
115
+ continuationToken?: string | null;
116
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationNodeConditionOperator = exports.AutomationNodeVisibilityLogicalOperator = exports.AutomationNodePropertyEditor = void 0;
4
+ var AutomationNodePropertyEditor;
5
+ (function (AutomationNodePropertyEditor) {
6
+ AutomationNodePropertyEditor["STRING"] = "string";
7
+ AutomationNodePropertyEditor["NUMBER"] = "number";
8
+ AutomationNodePropertyEditor["BOOLEAN"] = "boolean";
9
+ AutomationNodePropertyEditor["PASSWORD"] = "password";
10
+ AutomationNodePropertyEditor["JSON"] = "json";
11
+ AutomationNodePropertyEditor["DATE"] = "date";
12
+ AutomationNodePropertyEditor["FILE"] = "file";
13
+ AutomationNodePropertyEditor["CODE"] = "code";
14
+ AutomationNodePropertyEditor["OPTIONS"] = "options";
15
+ AutomationNodePropertyEditor["MULTI_OPTIONS"] = "multiOptions";
16
+ AutomationNodePropertyEditor["ASYNC_OPTIONS"] = "asyncOptions";
17
+ AutomationNodePropertyEditor["ASYNC_MULTI_OPTIONS"] = "asyncMultiOptions";
18
+ })(AutomationNodePropertyEditor || (exports.AutomationNodePropertyEditor = AutomationNodePropertyEditor = {}));
19
+ var AutomationNodeVisibilityLogicalOperator;
20
+ (function (AutomationNodeVisibilityLogicalOperator) {
21
+ AutomationNodeVisibilityLogicalOperator["ALL"] = "all";
22
+ AutomationNodeVisibilityLogicalOperator["ANY"] = "any";
23
+ })(AutomationNodeVisibilityLogicalOperator || (exports.AutomationNodeVisibilityLogicalOperator = AutomationNodeVisibilityLogicalOperator = {}));
24
+ var AutomationNodeConditionOperator;
25
+ (function (AutomationNodeConditionOperator) {
26
+ AutomationNodeConditionOperator["EQUALS"] = "equals";
27
+ })(AutomationNodeConditionOperator || (exports.AutomationNodeConditionOperator = AutomationNodeConditionOperator = {}));
@@ -0,0 +1 @@
1
+ export * from './Node';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Node"), exports);