@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,298 @@
1
+ import { AutomationCustomer, AutomationError, AutomationJsonObject, AutomationPageRequest, AutomationResourceReference, AutomationSourceApplication } from '../Common';
2
+ import { AutomationCapabilityEffectClass } from '../Capabilities';
3
+ export declare enum AutomationExecutionStatus {
4
+ QUEUED = "queued",
5
+ RUNNING = "running",
6
+ WAITING = "waiting",
7
+ SUCCEEDED = "succeeded",
8
+ FAILED = "failed",
9
+ CANCELLED = "cancelled",
10
+ TIMED_OUT = "timedOut"
11
+ }
12
+ export declare enum AutomationExecutionStepStatus {
13
+ PENDING = "pending",
14
+ RUNNING = "running",
15
+ WAITING = "waiting",
16
+ SUCCEEDED = "succeeded",
17
+ FAILED = "failed",
18
+ SKIPPED = "skipped",
19
+ CANCELLED = "cancelled"
20
+ }
21
+ export declare enum AutomationExecutionPurpose {
22
+ PRODUCTION = "production",
23
+ TEST = "test"
24
+ }
25
+ export declare enum AutomationExecutionEffectMode {
26
+ SIMULATE = "simulate",
27
+ TEST_TARGETS = "testTargets",
28
+ REAL = "real"
29
+ }
30
+ export declare enum AutomationExecutionScopeKind {
31
+ FULL = "full",
32
+ UNTIL_NODE = "untilNode",
33
+ FROM_NODE = "fromNode",
34
+ NODE_ONLY = "nodeOnly"
35
+ }
36
+ export declare enum AutomationExecutionSourceKind {
37
+ MANUAL = "manual",
38
+ FIXTURE = "fixture",
39
+ CAPTURED_EVENT = "capturedEvent",
40
+ EXECUTION = "execution",
41
+ STEP_OUTPUT = "stepOutput"
42
+ }
43
+ export declare enum AutomationExecutionLineageOperation {
44
+ NEW = "new",
45
+ REPLAY = "replay",
46
+ RETRY = "retry"
47
+ }
48
+ export declare enum AutomationExecutionEffectDecision {
49
+ EXECUTED = "executed",
50
+ SIMULATED = "simulated",
51
+ REDIRECTED = "redirected",
52
+ BLOCKED = "blocked"
53
+ }
54
+ export declare enum AutomationExecutionCheckpointStatus {
55
+ WAITING = "waiting",
56
+ RESUMING = "resuming",
57
+ RESUMED = "resumed",
58
+ CANCELLED = "cancelled",
59
+ EXPIRED = "expired"
60
+ }
61
+ export declare enum AutomationExecutionResumeKind {
62
+ AT_TIME = "atTime",
63
+ EVENT = "event",
64
+ MANUAL = "manual"
65
+ }
66
+ export interface AutomationExecutionResumeCondition {
67
+ kind: AutomationExecutionResumeKind;
68
+ resumeAt?: string | null;
69
+ eventType?: string | null;
70
+ correlationKey?: string | null;
71
+ timeoutAt?: string | null;
72
+ }
73
+ /** Durable cursor used to continue without replaying completed effects. */
74
+ export interface AutomationExecutionCursor {
75
+ nextNodeId?: string | null;
76
+ sequence: number;
77
+ input: AutomationJsonObject;
78
+ context: AutomationExecutionContext;
79
+ nodeOutputs: Record<string, AutomationJsonObject>;
80
+ state: AutomationJsonObject;
81
+ }
82
+ export interface AutomationExecutionCheckpoint {
83
+ id: string;
84
+ executionId: string;
85
+ nodeId: string;
86
+ stepId: string;
87
+ status: AutomationExecutionCheckpointStatus;
88
+ resume: AutomationExecutionResumeCondition;
89
+ cursor: AutomationExecutionCursor;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ resumedAt?: string | null;
93
+ expiresAt?: string | null;
94
+ }
95
+ export interface ResumeAutomationExecutionRequest {
96
+ payload: AutomationJsonObject;
97
+ }
98
+ export interface AutomationExecutionScope {
99
+ kind: AutomationExecutionScopeKind;
100
+ startNodeId?: string | null;
101
+ stopNodeId?: string | null;
102
+ }
103
+ /** Referencia inmutable a la definición exacta utilizada por una ejecución. */
104
+ export interface AutomationFlowSnapshotReference {
105
+ flowId: string;
106
+ flowVersionId?: string | null;
107
+ snapshotId?: string | null;
108
+ revision: number;
109
+ contentHash: string;
110
+ }
111
+ export interface AutomationExecutionSource {
112
+ kind: AutomationExecutionSourceKind;
113
+ fixtureId?: string | null;
114
+ capturedEventId?: string | null;
115
+ executionId?: string | null;
116
+ stepId?: string | null;
117
+ }
118
+ export interface AutomationExecutionLineage {
119
+ operation: AutomationExecutionLineageOperation;
120
+ sourceExecutionId?: string | null;
121
+ sourceStepId?: string | null;
122
+ rootExecutionId?: string | null;
123
+ }
124
+ /** Resumen seguro; la política interna completa nunca se expone al caller. */
125
+ export interface AutomationExecutionPolicySummary {
126
+ maxDurationMs?: number | null;
127
+ maxSteps?: number | null;
128
+ maxIterations?: number | null;
129
+ maxItems?: number | null;
130
+ maxCost?: number | null;
131
+ currency?: string | null;
132
+ simulatedClockAt?: string | null;
133
+ requiresConfirmation: boolean;
134
+ }
135
+ export interface AutomationExecutionEffectRecord {
136
+ id: string;
137
+ nodeId: string;
138
+ effectClass: AutomationCapabilityEffectClass;
139
+ action: string;
140
+ decision: AutomationExecutionEffectDecision;
141
+ originalTarget?: AutomationResourceReference | null;
142
+ effectiveTarget?: AutomationResourceReference | null;
143
+ preview?: AutomationJsonObject | null;
144
+ providerReference?: string | null;
145
+ idempotencyKey?: string | null;
146
+ warnings?: string[] | null;
147
+ }
148
+ /**
149
+ * Referencia genérica al evento que inició una ejecución.
150
+ */
151
+ export interface AutomationExecutionTrigger {
152
+ /** Entry Point que aceptó el evento. */
153
+ entryPointId: string;
154
+ /** Aplicación propietaria del evento. */
155
+ sourceApplication: AutomationSourceApplication;
156
+ /** Código estable del tipo de evento. */
157
+ eventType: string;
158
+ /** Entidad principal relacionada con el evento. */
159
+ reference?: AutomationResourceReference | null;
160
+ /** Instante informado por el productor. */
161
+ occurredAt?: string | null;
162
+ /** Snapshot opcional del payload disparador. */
163
+ payload?: AutomationJsonObject | null;
164
+ }
165
+ /** Identidad completa que debe persistir una ejecución transversal. */
166
+ export interface AutomationFlowExecutionReference {
167
+ flowId: string;
168
+ flowVersionId: string;
169
+ entryPointId: string;
170
+ executionId: string;
171
+ }
172
+ /** Contexto que un caller puede aportar al iniciar una ejecución. */
173
+ export interface AutomationExecutionContextInput {
174
+ /** Valores iniciales de variables declaradas por la versión del Flow. */
175
+ variables: AutomationJsonObject;
176
+ /** Extensiones agrupadas por módulo propietario. */
177
+ extensions: AutomationJsonObject;
178
+ }
179
+ /** Datos confiables establecidos exclusivamente por Automations. */
180
+ export interface AutomationExecutionSystemContext {
181
+ /** Locale BCP 47, por ejemplo es-AR. */
182
+ locale?: string | null;
183
+ /** Zona horaria IANA utilizada por fechas y agendas. */
184
+ timeZone?: string | null;
185
+ /** Usuario, servicio o recurso que originó la ejecución. */
186
+ actor?: AutomationResourceReference | null;
187
+ }
188
+ /** Contexto persistido y utilizado durante una ejecución. */
189
+ export interface AutomationExecutionContext extends AutomationExecutionContextInput {
190
+ /** Datos confiables agregados por el runtime. */
191
+ system: AutomationExecutionSystemContext;
192
+ }
193
+ export interface AutomationExecution {
194
+ id: string;
195
+ spaceId: string;
196
+ flowId: string;
197
+ flowVersionId: string;
198
+ flowVersion: number;
199
+ entryPointId: string;
200
+ status: AutomationExecutionStatus;
201
+ customer?: AutomationCustomer | null;
202
+ trigger: AutomationExecutionTrigger;
203
+ input: AutomationJsonObject;
204
+ /** Scope tipado y extensible utilizado durante la ejecución. */
205
+ context: AutomationExecutionContext;
206
+ output?: AutomationJsonObject | null;
207
+ error?: AutomationError | null;
208
+ createdAt: string;
209
+ startedAt?: string | null;
210
+ completedAt?: string | null;
211
+ cancelledAt?: string | null;
212
+ cancelledBy?: string | null;
213
+ correlationId?: string | null;
214
+ parentExecutionId?: string | null;
215
+ usage: AutomationExecutionUsage;
216
+ /** Ausente únicamente en ejecuciones creadas con contratos anteriores. */
217
+ purpose?: AutomationExecutionPurpose | null;
218
+ requestedEffectMode?: AutomationExecutionEffectMode | null;
219
+ effectiveEffectMode?: AutomationExecutionEffectMode | null;
220
+ scope?: AutomationExecutionScope | null;
221
+ source?: AutomationExecutionSource | null;
222
+ snapshot?: AutomationFlowSnapshotReference | null;
223
+ lineage?: AutomationExecutionLineage | null;
224
+ startedBy?: AutomationResourceReference | null;
225
+ policySummary?: AutomationExecutionPolicySummary | null;
226
+ testCaseId?: string | null;
227
+ testCaseRevision?: number | null;
228
+ }
229
+ export interface AutomationExecutionStep {
230
+ id: string;
231
+ executionId: string;
232
+ nodeId: string;
233
+ nodeDefinitionCode: string;
234
+ nodeDefinitionVersion: number;
235
+ sequence: number;
236
+ attempt: number;
237
+ status: AutomationExecutionStepStatus;
238
+ input?: AutomationJsonObject | null;
239
+ output?: AutomationJsonObject | null;
240
+ error?: AutomationError | null;
241
+ startedAt?: string | null;
242
+ completedAt?: string | null;
243
+ usage: AutomationExecutionUsage;
244
+ waitingReason?: string | null;
245
+ skippedReason?: string | null;
246
+ itemIndex?: number | null;
247
+ iteration?: number | null;
248
+ parentStepId?: string | null;
249
+ takenEdgeIds?: string[] | null;
250
+ effects?: AutomationExecutionEffectRecord[] | null;
251
+ }
252
+ export interface AutomationExecutionUsage {
253
+ inputTokens: number;
254
+ outputTokens: number;
255
+ totalTokens: number;
256
+ totalCost: number;
257
+ currency: string;
258
+ durationMs: number;
259
+ }
260
+ export interface AutomationExecutionQuery extends AutomationPageRequest {
261
+ flowId?: string | null;
262
+ flowVersionId?: string | null;
263
+ entryPointId?: string | null;
264
+ contactId?: string | null;
265
+ businessId?: string | null;
266
+ customerSearch?: string | null;
267
+ statuses?: AutomationExecutionStatus[] | null;
268
+ createdFrom?: string | null;
269
+ createdTo?: string | null;
270
+ correlationId?: string | null;
271
+ purposes?: AutomationExecutionPurpose[] | null;
272
+ effectModes?: AutomationExecutionEffectMode[] | null;
273
+ testCaseId?: string | null;
274
+ }
275
+ export interface StartAutomationExecutionRequest {
276
+ flowId: string;
277
+ flowVersionId: string;
278
+ entryPointId: string;
279
+ customer?: AutomationCustomer | null;
280
+ trigger: AutomationExecutionTrigger;
281
+ input: AutomationJsonObject;
282
+ /** Variables iniciales y extensiones aportadas por el caller. */
283
+ context: AutomationExecutionContextInput;
284
+ idempotencyKey?: string | null;
285
+ correlationId?: string | null;
286
+ parentExecutionId?: string | null;
287
+ }
288
+ export interface CancelAutomationExecutionRequest {
289
+ reason?: string | null;
290
+ }
291
+ export interface RetryAutomationExecutionRequest {
292
+ fromStepId?: string | null;
293
+ inputOverrides?: AutomationJsonObject | null;
294
+ }
295
+ export interface AutomationExecutionDetails {
296
+ execution: AutomationExecution;
297
+ steps: AutomationExecutionStep[];
298
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationExecutionResumeKind = exports.AutomationExecutionCheckpointStatus = exports.AutomationExecutionEffectDecision = exports.AutomationExecutionLineageOperation = exports.AutomationExecutionSourceKind = exports.AutomationExecutionScopeKind = exports.AutomationExecutionEffectMode = exports.AutomationExecutionPurpose = exports.AutomationExecutionStepStatus = exports.AutomationExecutionStatus = void 0;
4
+ var AutomationExecutionStatus;
5
+ (function (AutomationExecutionStatus) {
6
+ AutomationExecutionStatus["QUEUED"] = "queued";
7
+ AutomationExecutionStatus["RUNNING"] = "running";
8
+ AutomationExecutionStatus["WAITING"] = "waiting";
9
+ AutomationExecutionStatus["SUCCEEDED"] = "succeeded";
10
+ AutomationExecutionStatus["FAILED"] = "failed";
11
+ AutomationExecutionStatus["CANCELLED"] = "cancelled";
12
+ AutomationExecutionStatus["TIMED_OUT"] = "timedOut";
13
+ })(AutomationExecutionStatus || (exports.AutomationExecutionStatus = AutomationExecutionStatus = {}));
14
+ var AutomationExecutionStepStatus;
15
+ (function (AutomationExecutionStepStatus) {
16
+ AutomationExecutionStepStatus["PENDING"] = "pending";
17
+ AutomationExecutionStepStatus["RUNNING"] = "running";
18
+ AutomationExecutionStepStatus["WAITING"] = "waiting";
19
+ AutomationExecutionStepStatus["SUCCEEDED"] = "succeeded";
20
+ AutomationExecutionStepStatus["FAILED"] = "failed";
21
+ AutomationExecutionStepStatus["SKIPPED"] = "skipped";
22
+ AutomationExecutionStepStatus["CANCELLED"] = "cancelled";
23
+ })(AutomationExecutionStepStatus || (exports.AutomationExecutionStepStatus = AutomationExecutionStepStatus = {}));
24
+ var AutomationExecutionPurpose;
25
+ (function (AutomationExecutionPurpose) {
26
+ AutomationExecutionPurpose["PRODUCTION"] = "production";
27
+ AutomationExecutionPurpose["TEST"] = "test";
28
+ })(AutomationExecutionPurpose || (exports.AutomationExecutionPurpose = AutomationExecutionPurpose = {}));
29
+ var AutomationExecutionEffectMode;
30
+ (function (AutomationExecutionEffectMode) {
31
+ AutomationExecutionEffectMode["SIMULATE"] = "simulate";
32
+ AutomationExecutionEffectMode["TEST_TARGETS"] = "testTargets";
33
+ AutomationExecutionEffectMode["REAL"] = "real";
34
+ })(AutomationExecutionEffectMode || (exports.AutomationExecutionEffectMode = AutomationExecutionEffectMode = {}));
35
+ var AutomationExecutionScopeKind;
36
+ (function (AutomationExecutionScopeKind) {
37
+ AutomationExecutionScopeKind["FULL"] = "full";
38
+ AutomationExecutionScopeKind["UNTIL_NODE"] = "untilNode";
39
+ AutomationExecutionScopeKind["FROM_NODE"] = "fromNode";
40
+ AutomationExecutionScopeKind["NODE_ONLY"] = "nodeOnly";
41
+ })(AutomationExecutionScopeKind || (exports.AutomationExecutionScopeKind = AutomationExecutionScopeKind = {}));
42
+ var AutomationExecutionSourceKind;
43
+ (function (AutomationExecutionSourceKind) {
44
+ AutomationExecutionSourceKind["MANUAL"] = "manual";
45
+ AutomationExecutionSourceKind["FIXTURE"] = "fixture";
46
+ AutomationExecutionSourceKind["CAPTURED_EVENT"] = "capturedEvent";
47
+ AutomationExecutionSourceKind["EXECUTION"] = "execution";
48
+ AutomationExecutionSourceKind["STEP_OUTPUT"] = "stepOutput";
49
+ })(AutomationExecutionSourceKind || (exports.AutomationExecutionSourceKind = AutomationExecutionSourceKind = {}));
50
+ var AutomationExecutionLineageOperation;
51
+ (function (AutomationExecutionLineageOperation) {
52
+ AutomationExecutionLineageOperation["NEW"] = "new";
53
+ AutomationExecutionLineageOperation["REPLAY"] = "replay";
54
+ AutomationExecutionLineageOperation["RETRY"] = "retry";
55
+ })(AutomationExecutionLineageOperation || (exports.AutomationExecutionLineageOperation = AutomationExecutionLineageOperation = {}));
56
+ var AutomationExecutionEffectDecision;
57
+ (function (AutomationExecutionEffectDecision) {
58
+ AutomationExecutionEffectDecision["EXECUTED"] = "executed";
59
+ AutomationExecutionEffectDecision["SIMULATED"] = "simulated";
60
+ AutomationExecutionEffectDecision["REDIRECTED"] = "redirected";
61
+ AutomationExecutionEffectDecision["BLOCKED"] = "blocked";
62
+ })(AutomationExecutionEffectDecision || (exports.AutomationExecutionEffectDecision = AutomationExecutionEffectDecision = {}));
63
+ var AutomationExecutionCheckpointStatus;
64
+ (function (AutomationExecutionCheckpointStatus) {
65
+ AutomationExecutionCheckpointStatus["WAITING"] = "waiting";
66
+ AutomationExecutionCheckpointStatus["RESUMING"] = "resuming";
67
+ AutomationExecutionCheckpointStatus["RESUMED"] = "resumed";
68
+ AutomationExecutionCheckpointStatus["CANCELLED"] = "cancelled";
69
+ AutomationExecutionCheckpointStatus["EXPIRED"] = "expired";
70
+ })(AutomationExecutionCheckpointStatus || (exports.AutomationExecutionCheckpointStatus = AutomationExecutionCheckpointStatus = {}));
71
+ var AutomationExecutionResumeKind;
72
+ (function (AutomationExecutionResumeKind) {
73
+ AutomationExecutionResumeKind["AT_TIME"] = "atTime";
74
+ AutomationExecutionResumeKind["EVENT"] = "event";
75
+ AutomationExecutionResumeKind["MANUAL"] = "manual";
76
+ })(AutomationExecutionResumeKind || (exports.AutomationExecutionResumeKind = AutomationExecutionResumeKind = {}));
@@ -0,0 +1,166 @@
1
+ import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationResourceReference } from '../Common';
2
+ import { AutomationCapabilityEffectClass } from '../Capabilities';
3
+ import { AutomationExecutionContextInput, AutomationExecutionEffectMode, AutomationExecutionScope, AutomationExecutionSource, AutomationFlowSnapshotReference } from './Execution';
4
+ export declare enum AutomationArtifactStatus {
5
+ UPLOADING = "uploading",
6
+ SCANNING = "scanning",
7
+ AVAILABLE = "available",
8
+ REJECTED = "rejected",
9
+ EXPIRED = "expired"
10
+ }
11
+ export declare enum AutomationArtifactOrigin {
12
+ UPLOAD = "upload",
13
+ CAPTURED_EVENT = "capturedEvent",
14
+ EXECUTION = "execution",
15
+ GENERATED = "generated"
16
+ }
17
+ export interface AutomationArtifactReference {
18
+ id: string;
19
+ name: string;
20
+ mimeType: string;
21
+ size: number;
22
+ origin: AutomationArtifactOrigin;
23
+ status: AutomationArtifactStatus;
24
+ checksum?: string | null;
25
+ expiresAt?: string | null;
26
+ owner?: AutomationResourceReference | null;
27
+ }
28
+ export declare enum AutomationTestCaseVisibility {
29
+ PRIVATE = "private",
30
+ SHARED = "shared"
31
+ }
32
+ export declare enum AutomationTestAssertionKind {
33
+ EXECUTION_STATUS = "executionStatus",
34
+ NODE_REACHED = "nodeReached",
35
+ NODE_NOT_REACHED = "nodeNotReached",
36
+ PATH_EXISTS = "pathExists",
37
+ PATH_TYPE = "pathType",
38
+ PATH_VALUE = "pathValue",
39
+ ERROR_CODE = "errorCode",
40
+ MAX_DURATION = "maxDuration",
41
+ MAX_COST = "maxCost"
42
+ }
43
+ export declare enum AutomationTestAssertionStatus {
44
+ PENDING = "pending",
45
+ PASSED = "passed",
46
+ FAILED = "failed",
47
+ SKIPPED = "skipped"
48
+ }
49
+ export interface AutomationTestAssertion {
50
+ id: string;
51
+ kind: AutomationTestAssertionKind;
52
+ nodeId?: string | null;
53
+ path?: string | null;
54
+ expected?: AutomationJsonValue;
55
+ configuration?: AutomationJsonObject | null;
56
+ }
57
+ export interface AutomationTestAssertionResult {
58
+ assertionId: string;
59
+ status: AutomationTestAssertionStatus;
60
+ message?: string | null;
61
+ actual?: AutomationJsonValue;
62
+ }
63
+ /** Configuración común utilizada por preflight e inicio de una prueba. */
64
+ export interface AutomationTestConfiguration {
65
+ flowId: string;
66
+ flowVersionId?: string | null;
67
+ draftRevision?: number | null;
68
+ entryPointId: string;
69
+ scope: AutomationExecutionScope;
70
+ requestedEffectMode: AutomationExecutionEffectMode;
71
+ source: AutomationExecutionSource;
72
+ customer?: AutomationCustomer | null;
73
+ input?: AutomationJsonObject | null;
74
+ context?: AutomationExecutionContextInput | null;
75
+ nodeInputOverrides?: Record<string, AutomationJsonObject> | null;
76
+ artifactIds?: string[] | null;
77
+ testTargetOverrides?: AutomationJsonObject | null;
78
+ }
79
+ export interface StartAutomationTestRequest extends AutomationTestConfiguration {
80
+ idempotencyKey: string;
81
+ correlationId?: string | null;
82
+ testCaseId?: string | null;
83
+ testCaseRevision?: number | null;
84
+ preflightToken?: string | null;
85
+ }
86
+ export interface AutomationTestPreflightRequest extends AutomationTestConfiguration {
87
+ }
88
+ export declare enum AutomationTestPreflightStatus {
89
+ READY = "ready",
90
+ WARNING = "warning",
91
+ BLOCKED = "blocked"
92
+ }
93
+ export declare enum AutomationTestPreflightIssueSeverity {
94
+ INFO = "info",
95
+ WARNING = "warning",
96
+ BLOCKER = "blocker"
97
+ }
98
+ export interface AutomationTestPreflightIssue {
99
+ code: string;
100
+ severity: AutomationTestPreflightIssueSeverity;
101
+ message: string;
102
+ nodeId?: string | null;
103
+ details?: AutomationJsonObject | null;
104
+ }
105
+ export interface AutomationTestPreflightNode {
106
+ nodeId: string;
107
+ nodeDefinitionCode: string;
108
+ nodeDefinitionVersion: number;
109
+ reachable: boolean;
110
+ executable: boolean;
111
+ issues: AutomationTestPreflightIssue[];
112
+ }
113
+ export interface AutomationTestPreflightEffect {
114
+ nodeId: string;
115
+ effectClass: AutomationCapabilityEffectClass;
116
+ action: string;
117
+ description?: string | null;
118
+ originalTarget?: AutomationResourceReference | null;
119
+ effectiveTarget?: AutomationResourceReference | null;
120
+ estimatedItems?: number | null;
121
+ }
122
+ export interface AutomationTestPreflightLimits {
123
+ maxDurationMs?: number | null;
124
+ maxSteps?: number | null;
125
+ maxIterations?: number | null;
126
+ maxItems?: number | null;
127
+ estimatedCost?: number | null;
128
+ currency?: string | null;
129
+ }
130
+ export interface AutomationTestPreflightResult {
131
+ status: AutomationTestPreflightStatus;
132
+ snapshot: AutomationFlowSnapshotReference;
133
+ requestedEffectMode: AutomationExecutionEffectMode;
134
+ effectiveEffectMode: AutomationExecutionEffectMode;
135
+ nodes: AutomationTestPreflightNode[];
136
+ effects: AutomationTestPreflightEffect[];
137
+ issues: AutomationTestPreflightIssue[];
138
+ limits: AutomationTestPreflightLimits;
139
+ requiresConfirmation: boolean;
140
+ preflightToken: string;
141
+ expiresAt: string;
142
+ }
143
+ export interface AutomationTestCase {
144
+ id: string;
145
+ spaceId: string;
146
+ flowId: string;
147
+ name: string;
148
+ description?: string | null;
149
+ revision: number;
150
+ visibility: AutomationTestCaseVisibility;
151
+ configuration: AutomationTestConfiguration;
152
+ assertions: AutomationTestAssertion[];
153
+ createdBy: string;
154
+ createdAt: string;
155
+ updatedBy?: string | null;
156
+ updatedAt?: string | null;
157
+ }
158
+ /** Schema opcional para que el Estudio genere un simulador por Entry Point. */
159
+ export interface AutomationEntryPointTestSchema {
160
+ entryPointId: string;
161
+ inputSchema?: AutomationJsonSchema | null;
162
+ contextSchema?: AutomationJsonSchema | null;
163
+ allowedArtifactMimeTypes?: string[] | null;
164
+ maxArtifactSize?: number | null;
165
+ maxArtifacts?: number | null;
166
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutomationTestPreflightIssueSeverity = exports.AutomationTestPreflightStatus = exports.AutomationTestAssertionStatus = exports.AutomationTestAssertionKind = exports.AutomationTestCaseVisibility = exports.AutomationArtifactOrigin = exports.AutomationArtifactStatus = void 0;
4
+ var AutomationArtifactStatus;
5
+ (function (AutomationArtifactStatus) {
6
+ AutomationArtifactStatus["UPLOADING"] = "uploading";
7
+ AutomationArtifactStatus["SCANNING"] = "scanning";
8
+ AutomationArtifactStatus["AVAILABLE"] = "available";
9
+ AutomationArtifactStatus["REJECTED"] = "rejected";
10
+ AutomationArtifactStatus["EXPIRED"] = "expired";
11
+ })(AutomationArtifactStatus || (exports.AutomationArtifactStatus = AutomationArtifactStatus = {}));
12
+ var AutomationArtifactOrigin;
13
+ (function (AutomationArtifactOrigin) {
14
+ AutomationArtifactOrigin["UPLOAD"] = "upload";
15
+ AutomationArtifactOrigin["CAPTURED_EVENT"] = "capturedEvent";
16
+ AutomationArtifactOrigin["EXECUTION"] = "execution";
17
+ AutomationArtifactOrigin["GENERATED"] = "generated";
18
+ })(AutomationArtifactOrigin || (exports.AutomationArtifactOrigin = AutomationArtifactOrigin = {}));
19
+ var AutomationTestCaseVisibility;
20
+ (function (AutomationTestCaseVisibility) {
21
+ AutomationTestCaseVisibility["PRIVATE"] = "private";
22
+ AutomationTestCaseVisibility["SHARED"] = "shared";
23
+ })(AutomationTestCaseVisibility || (exports.AutomationTestCaseVisibility = AutomationTestCaseVisibility = {}));
24
+ var AutomationTestAssertionKind;
25
+ (function (AutomationTestAssertionKind) {
26
+ AutomationTestAssertionKind["EXECUTION_STATUS"] = "executionStatus";
27
+ AutomationTestAssertionKind["NODE_REACHED"] = "nodeReached";
28
+ AutomationTestAssertionKind["NODE_NOT_REACHED"] = "nodeNotReached";
29
+ AutomationTestAssertionKind["PATH_EXISTS"] = "pathExists";
30
+ AutomationTestAssertionKind["PATH_TYPE"] = "pathType";
31
+ AutomationTestAssertionKind["PATH_VALUE"] = "pathValue";
32
+ AutomationTestAssertionKind["ERROR_CODE"] = "errorCode";
33
+ AutomationTestAssertionKind["MAX_DURATION"] = "maxDuration";
34
+ AutomationTestAssertionKind["MAX_COST"] = "maxCost";
35
+ })(AutomationTestAssertionKind || (exports.AutomationTestAssertionKind = AutomationTestAssertionKind = {}));
36
+ var AutomationTestAssertionStatus;
37
+ (function (AutomationTestAssertionStatus) {
38
+ AutomationTestAssertionStatus["PENDING"] = "pending";
39
+ AutomationTestAssertionStatus["PASSED"] = "passed";
40
+ AutomationTestAssertionStatus["FAILED"] = "failed";
41
+ AutomationTestAssertionStatus["SKIPPED"] = "skipped";
42
+ })(AutomationTestAssertionStatus || (exports.AutomationTestAssertionStatus = AutomationTestAssertionStatus = {}));
43
+ var AutomationTestPreflightStatus;
44
+ (function (AutomationTestPreflightStatus) {
45
+ AutomationTestPreflightStatus["READY"] = "ready";
46
+ AutomationTestPreflightStatus["WARNING"] = "warning";
47
+ AutomationTestPreflightStatus["BLOCKED"] = "blocked";
48
+ })(AutomationTestPreflightStatus || (exports.AutomationTestPreflightStatus = AutomationTestPreflightStatus = {}));
49
+ var AutomationTestPreflightIssueSeverity;
50
+ (function (AutomationTestPreflightIssueSeverity) {
51
+ AutomationTestPreflightIssueSeverity["INFO"] = "info";
52
+ AutomationTestPreflightIssueSeverity["WARNING"] = "warning";
53
+ AutomationTestPreflightIssueSeverity["BLOCKER"] = "blocker";
54
+ })(AutomationTestPreflightIssueSeverity || (exports.AutomationTestPreflightIssueSeverity = AutomationTestPreflightIssueSeverity = {}));
@@ -0,0 +1,2 @@
1
+ export * from './Execution';
2
+ export * from './Testing';
@@ -0,0 +1,18 @@
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("./Execution"), exports);
18
+ __exportStar(require("./Testing"), exports);