@epilot/sdk 2.8.0-rc.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -1
  3. package/definitions/automation.json +120 -0
  4. package/definitions/blueprint-manifest-runtime.json +1 -1
  5. package/definitions/blueprint-manifest.json +744 -20
  6. package/definitions/customer-portal-runtime.json +1 -1
  7. package/definitions/customer-portal.json +317 -26
  8. package/definitions/design.json +51 -1
  9. package/definitions/event-catalog-runtime.json +1 -1
  10. package/definitions/event-catalog.json +168 -12
  11. package/definitions/file-runtime.json +1 -1
  12. package/definitions/file.json +152 -4
  13. package/definitions/integration-toolkit-runtime.json +1 -1
  14. package/definitions/integration-toolkit.json +782 -13
  15. package/definitions/notes-runtime.json +1 -1
  16. package/definitions/notes.json +123 -1
  17. package/definitions/pricing.json +224 -406
  18. package/definitions/targeting-runtime.json +1 -1
  19. package/definitions/targeting.json +257 -7
  20. package/definitions/webhooks.json +31 -0
  21. package/dist/README-46VYEGGW.js +7 -0
  22. package/dist/README-IVBISSWB.cjs +7 -0
  23. package/dist/{_index-YTOJUFGD.js → _index-5FB6F5YY.js} +0 -3
  24. package/dist/{_index-HTUXYSTD.cjs → _index-DB2VV4PQ.cjs} +1 -4
  25. package/dist/apis/access-token.cjs +6 -6
  26. package/dist/apis/access-token.js +1 -1
  27. package/dist/apis/address-suggestions.cjs +6 -6
  28. package/dist/apis/address-suggestions.js +1 -1
  29. package/dist/apis/address.cjs +6 -6
  30. package/dist/apis/address.js +1 -1
  31. package/dist/apis/ai-agents.cjs +6 -6
  32. package/dist/apis/ai-agents.js +1 -1
  33. package/dist/apis/app.cjs +6 -6
  34. package/dist/apis/app.js +1 -1
  35. package/dist/apis/audit-logs.cjs +6 -6
  36. package/dist/apis/audit-logs.js +1 -1
  37. package/dist/apis/automation.cjs +6 -6
  38. package/dist/apis/automation.d.cts +2 -2
  39. package/dist/apis/automation.d.ts +2 -2
  40. package/dist/apis/automation.js +1 -1
  41. package/dist/apis/billing.cjs +6 -6
  42. package/dist/apis/billing.js +1 -1
  43. package/dist/apis/blueprint-manifest.cjs +8 -8
  44. package/dist/apis/blueprint-manifest.d.cts +2 -2
  45. package/dist/apis/blueprint-manifest.d.ts +2 -2
  46. package/dist/apis/blueprint-manifest.js +2 -2
  47. package/dist/apis/calendar.cjs +6 -6
  48. package/dist/apis/calendar.js +1 -1
  49. package/dist/apis/configuration-hub.cjs +6 -6
  50. package/dist/apis/configuration-hub.js +1 -1
  51. package/dist/apis/consent.cjs +6 -6
  52. package/dist/apis/consent.js +1 -1
  53. package/dist/apis/customer-portal.cjs +8 -8
  54. package/dist/apis/customer-portal.d.cts +2 -2
  55. package/dist/apis/customer-portal.d.ts +2 -2
  56. package/dist/apis/customer-portal.js +2 -2
  57. package/dist/apis/dashboard.cjs +6 -6
  58. package/dist/apis/dashboard.js +1 -1
  59. package/dist/apis/data-governance.cjs +6 -6
  60. package/dist/apis/data-governance.js +1 -1
  61. package/dist/apis/deduplication.cjs +6 -6
  62. package/dist/apis/deduplication.js +1 -1
  63. package/dist/apis/design.cjs +6 -6
  64. package/dist/apis/design.d.cts +2 -2
  65. package/dist/apis/design.d.ts +2 -2
  66. package/dist/apis/design.js +1 -1
  67. package/dist/apis/document.cjs +6 -6
  68. package/dist/apis/document.js +1 -1
  69. package/dist/apis/email-settings.cjs +6 -6
  70. package/dist/apis/email-settings.js +1 -1
  71. package/dist/apis/email-template.cjs +6 -6
  72. package/dist/apis/email-template.js +1 -1
  73. package/dist/apis/entity-mapping.cjs +6 -6
  74. package/dist/apis/entity-mapping.js +1 -1
  75. package/dist/apis/entity.cjs +6 -6
  76. package/dist/apis/entity.js +1 -1
  77. package/dist/apis/environments.cjs +6 -6
  78. package/dist/apis/environments.js +1 -1
  79. package/dist/apis/event-catalog.cjs +8 -8
  80. package/dist/apis/event-catalog.d.cts +2 -2
  81. package/dist/apis/event-catalog.d.ts +2 -2
  82. package/dist/apis/event-catalog.js +2 -2
  83. package/dist/apis/file.cjs +8 -8
  84. package/dist/apis/file.d.cts +2 -2
  85. package/dist/apis/file.d.ts +2 -2
  86. package/dist/apis/file.js +2 -2
  87. package/dist/apis/iban.cjs +6 -6
  88. package/dist/apis/iban.js +1 -1
  89. package/dist/apis/integration-toolkit.cjs +8 -8
  90. package/dist/apis/integration-toolkit.d.cts +2 -2
  91. package/dist/apis/integration-toolkit.d.ts +2 -2
  92. package/dist/apis/integration-toolkit.js +2 -2
  93. package/dist/apis/journey.cjs +6 -6
  94. package/dist/apis/journey.js +1 -1
  95. package/dist/apis/kanban.cjs +6 -6
  96. package/dist/apis/kanban.js +1 -1
  97. package/dist/apis/message.cjs +6 -6
  98. package/dist/apis/message.js +1 -1
  99. package/dist/apis/metering.cjs +6 -6
  100. package/dist/apis/metering.js +1 -1
  101. package/dist/apis/notes.cjs +8 -8
  102. package/dist/apis/notes.d.cts +2 -2
  103. package/dist/apis/notes.d.ts +2 -2
  104. package/dist/apis/notes.js +2 -2
  105. package/dist/apis/notification.cjs +6 -6
  106. package/dist/apis/notification.js +1 -1
  107. package/dist/apis/organization.cjs +6 -6
  108. package/dist/apis/organization.js +1 -1
  109. package/dist/apis/partner-directory.cjs +6 -6
  110. package/dist/apis/partner-directory.js +1 -1
  111. package/dist/apis/permissions.cjs +6 -6
  112. package/dist/apis/permissions.js +1 -1
  113. package/dist/apis/pricing-tier.cjs +6 -6
  114. package/dist/apis/pricing-tier.js +1 -1
  115. package/dist/apis/pricing.cjs +6 -6
  116. package/dist/apis/pricing.d.cts +2 -2
  117. package/dist/apis/pricing.d.ts +2 -2
  118. package/dist/apis/pricing.js +1 -1
  119. package/dist/apis/purpose.cjs +6 -6
  120. package/dist/apis/purpose.js +1 -1
  121. package/dist/apis/query.cjs +6 -6
  122. package/dist/apis/query.js +1 -1
  123. package/dist/apis/sandbox.cjs +6 -6
  124. package/dist/apis/sandbox.js +1 -1
  125. package/dist/apis/sharing.cjs +6 -6
  126. package/dist/apis/sharing.js +1 -1
  127. package/dist/apis/submission.cjs +6 -6
  128. package/dist/apis/submission.js +1 -1
  129. package/dist/apis/target.cjs +6 -6
  130. package/dist/apis/target.js +1 -1
  131. package/dist/apis/targeting.cjs +8 -8
  132. package/dist/apis/targeting.d.cts +2 -2
  133. package/dist/apis/targeting.d.ts +2 -2
  134. package/dist/apis/targeting.js +2 -2
  135. package/dist/apis/template-variables.cjs +6 -6
  136. package/dist/apis/template-variables.js +1 -1
  137. package/dist/apis/user.cjs +6 -6
  138. package/dist/apis/user.js +1 -1
  139. package/dist/apis/validation-rules.cjs +6 -6
  140. package/dist/apis/validation-rules.js +1 -1
  141. package/dist/apis/webhooks.cjs +6 -6
  142. package/dist/apis/webhooks.d.cts +2 -2
  143. package/dist/apis/webhooks.d.ts +2 -2
  144. package/dist/apis/webhooks.js +1 -1
  145. package/dist/apis/workflow-definition.cjs +6 -6
  146. package/dist/apis/workflow-definition.js +1 -1
  147. package/dist/apis/workflow.cjs +6 -6
  148. package/dist/apis/workflow.js +1 -1
  149. package/dist/automation-S6NFS5KU.cjs +7 -0
  150. package/dist/automation-W75XZG7B.js +7 -0
  151. package/dist/{automation.d-Du6-uiz5.d.cts → automation.d-DS_YXDE8.d.cts} +300 -1
  152. package/dist/{automation.d-Du6-uiz5.d.ts → automation.d-DS_YXDE8.d.ts} +300 -1
  153. package/dist/blueprint-manifest-6DEYW5MW.js +7 -0
  154. package/dist/blueprint-manifest-GCV7H74X.cjs +7 -0
  155. package/dist/{blueprint-manifest-runtime-QN2IECSA.cjs → blueprint-manifest-runtime-EIDOROIQ.cjs} +2 -2
  156. package/dist/{blueprint-manifest-runtime-5UN52LW5.js → blueprint-manifest-runtime-FRLU3ZSF.js} +1 -1
  157. package/dist/{blueprint-manifest.d-BPyzoR0X.d.ts → blueprint-manifest.d-B8yDxagC.d.cts} +572 -6
  158. package/dist/{blueprint-manifest.d-BPyzoR0X.d.cts → blueprint-manifest.d-B8yDxagC.d.ts} +572 -6
  159. package/dist/chunk-4M5V6BIT.cjs +14 -0
  160. package/dist/chunk-4YBWMDFP.js +14 -0
  161. package/dist/{chunk-KJPOUJBU.cjs → chunk-5ZXGKLB6.cjs} +1 -1
  162. package/dist/{chunk-PTEJYAYJ.js → chunk-774ASAAH.js} +1 -1
  163. package/dist/{chunk-WM74R3BD.js → chunk-7V7ECXTZ.js} +1 -1
  164. package/dist/{chunk-54KWFSCM.js → chunk-ALMZO57K.js} +21 -23
  165. package/dist/chunk-FDS727SL.cjs +14 -0
  166. package/dist/{chunk-4FFGRWLS.cjs → chunk-I53TWOTX.cjs} +1 -1
  167. package/dist/chunk-LSPXLT3A.js +14 -0
  168. package/dist/chunk-M4FO2MI4.js +14 -0
  169. package/dist/chunk-MCK2QUSD.cjs +14 -0
  170. package/dist/chunk-NGHCQ2FA.cjs +14 -0
  171. package/dist/chunk-RDVFQOCQ.js +14 -0
  172. package/dist/{chunk-RW5JOHG7.js → chunk-WIQXF7DD.js} +1 -1
  173. package/dist/{chunk-F5Z6I7TF.cjs → chunk-WPBRWQPL.cjs} +21 -23
  174. package/dist/{chunk-M2SSGV7K.cjs → chunk-ZOQUGWQL.cjs} +1 -1
  175. package/dist/customer-portal-4DXHY42V.js +7 -0
  176. package/dist/customer-portal-5OSGSYGF.cjs +7 -0
  177. package/dist/{customer-portal-runtime-IYHJ3RME.cjs → customer-portal-runtime-HA6CPWB4.cjs} +2 -2
  178. package/dist/{customer-portal-runtime-ZYU3WIXY.js → customer-portal-runtime-TDHV2YVY.js} +1 -1
  179. package/dist/{customer-portal.d-CTTCBAZI.d.cts → customer-portal.d-BRwiQehb.d.cts} +763 -31
  180. package/dist/{customer-portal.d-CTTCBAZI.d.ts → customer-portal.d-BRwiQehb.d.ts} +763 -31
  181. package/dist/data-governance-2U5UU4GM.cjs +7 -0
  182. package/dist/data-governance-36Y33JVG.js +7 -0
  183. package/dist/design-DUFBH5ZB.js +7 -0
  184. package/dist/design-W3D3UPGB.cjs +7 -0
  185. package/dist/{design.d-BRre8iLg.d.ts → design.d-DzSDu8cy.d.cts} +41 -3
  186. package/dist/{design.d-BRre8iLg.d.cts → design.d-DzSDu8cy.d.ts} +41 -3
  187. package/dist/event-catalog-3YOQ46ZW.js +7 -0
  188. package/dist/event-catalog-HLWUT7RM.cjs +7 -0
  189. package/dist/{event-catalog-runtime-N262TQ3Y.js → event-catalog-runtime-JUSLF3UR.js} +1 -1
  190. package/dist/{event-catalog-runtime-B2BPKQVG.cjs → event-catalog-runtime-RH7542GL.cjs} +2 -2
  191. package/dist/{event-catalog.d-mQJLSYUo.d.ts → event-catalog.d-CXbUn8T1.d.cts} +199 -36
  192. package/dist/{event-catalog.d-mQJLSYUo.d.cts → event-catalog.d-CXbUn8T1.d.ts} +199 -36
  193. package/dist/file-2MSILSPP.cjs +7 -0
  194. package/dist/file-JVFTT5RZ.js +7 -0
  195. package/dist/file-runtime-7AWKNQU6.cjs +5 -0
  196. package/dist/{file-runtime-BIRMXYRH.js → file-runtime-DKGFS44O.js} +1 -1
  197. package/dist/{file.d-DTlrbI40.d.cts → file.d-BjlMgTwj.d.cts} +218 -5
  198. package/dist/{file.d-DTlrbI40.d.ts → file.d-BjlMgTwj.d.ts} +218 -5
  199. package/dist/index.cjs +27 -35
  200. package/dist/index.d.cts +56 -58
  201. package/dist/index.d.ts +56 -58
  202. package/dist/index.js +16 -24
  203. package/dist/integration-toolkit-27Z3VZBZ.cjs +7 -0
  204. package/dist/integration-toolkit-NRLZZFVS.js +7 -0
  205. package/dist/{integration-toolkit-runtime-YHTU4X5J.cjs → integration-toolkit-runtime-FY7QVFL6.cjs} +2 -2
  206. package/dist/{integration-toolkit-runtime-YR4CIMKH.js → integration-toolkit-runtime-HCJ5QLCR.js} +1 -1
  207. package/dist/{integration-toolkit.d-BstNqiJb.d.cts → integration-toolkit.d-BW9RK5G-.d.cts} +1672 -27
  208. package/dist/{integration-toolkit.d-BstNqiJb.d.ts → integration-toolkit.d-BW9RK5G-.d.ts} +1672 -27
  209. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  210. package/dist/notes-6JESMRLW.js +7 -0
  211. package/dist/notes-SLEUSNP4.cjs +7 -0
  212. package/dist/{notes-runtime-CVNAVKPP.js → notes-runtime-I4SWR3PZ.js} +1 -1
  213. package/dist/notes-runtime-YWTRRNH5.cjs +5 -0
  214. package/dist/{notes.d-BcV_m5fe.d.cts → notes.d-rbcyHfiB.d.cts} +101 -3
  215. package/dist/{notes.d-BcV_m5fe.d.ts → notes.d-rbcyHfiB.d.ts} +101 -3
  216. package/dist/pricing-5Y7TZHMR.js +7 -0
  217. package/dist/pricing-BJUABPHU.cjs +7 -0
  218. package/dist/{pricing.d-BHpMU4KU.d.cts → pricing.d-gPt5L7wp.d.cts} +151 -280
  219. package/dist/{pricing.d-BHpMU4KU.d.ts → pricing.d-gPt5L7wp.d.ts} +151 -280
  220. package/dist/targeting-DAFJBPIZ.cjs +7 -0
  221. package/dist/targeting-TGPCRRI6.js +7 -0
  222. package/dist/{targeting-runtime-M2VSTKFT.js → targeting-runtime-D5YUPZQM.js} +1 -1
  223. package/dist/{targeting-runtime-6JFMP262.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
  224. package/dist/{targeting.d-BNmcVsNS.d.cts → targeting.d-DxHQbn7-.d.cts} +197 -3
  225. package/dist/{targeting.d-BNmcVsNS.d.ts → targeting.d-DxHQbn7-.d.ts} +197 -3
  226. package/dist/webhooks-6CUXSTPH.cjs +7 -0
  227. package/dist/webhooks-DTNKNJEN.js +7 -0
  228. package/dist/{webhooks.d-ByePoUWs.d.cts → webhooks.d-DKZOMj1P.d.cts} +37 -0
  229. package/dist/{webhooks.d-ByePoUWs.d.ts → webhooks.d-DKZOMj1P.d.ts} +37 -0
  230. package/docs/automation.md +180 -37
  231. package/docs/blueprint-manifest.md +728 -68
  232. package/docs/customer-portal.md +465 -56
  233. package/docs/data-governance.md +17 -17
  234. package/docs/design.md +80 -3
  235. package/docs/event-catalog.md +126 -13
  236. package/docs/file.md +113 -0
  237. package/docs/integration-toolkit.md +488 -19
  238. package/docs/notes.md +47 -1
  239. package/docs/pricing.md +290 -219
  240. package/docs/targeting.md +158 -4
  241. package/docs/webhooks.md +11 -2
  242. package/package.json +11 -21
  243. package/definitions/focus-pocus-runtime.json +0 -1
  244. package/definitions/focus-pocus.json +0 -757
  245. package/dist/README-37TXN4EL.cjs +0 -7
  246. package/dist/README-Z2WITBOR.js +0 -7
  247. package/dist/apis/focus-pocus.cjs +0 -38
  248. package/dist/apis/focus-pocus.d.cts +0 -18
  249. package/dist/apis/focus-pocus.d.ts +0 -18
  250. package/dist/apis/focus-pocus.js +0 -38
  251. package/dist/automation-BMO7ZFTN.cjs +0 -7
  252. package/dist/automation-MEZTSUR3.js +0 -7
  253. package/dist/blueprint-manifest-DBEY5PPI.js +0 -7
  254. package/dist/blueprint-manifest-IEQ6YBY7.cjs +0 -7
  255. package/dist/chunk-3APTSPY4.js +0 -14
  256. package/dist/chunk-5WNEYQII.cjs +0 -14
  257. package/dist/chunk-A6FYGWQ7.cjs +0 -14
  258. package/dist/chunk-BTTPWE2P.js +0 -14
  259. package/dist/chunk-CBDKPGO5.cjs +0 -14
  260. package/dist/chunk-L544VG3B.cjs +0 -14
  261. package/dist/chunk-O2YVXGPZ.js +0 -14
  262. package/dist/chunk-OCMIXJWC.js +0 -14
  263. package/dist/chunk-OPXGJKZR.cjs +0 -14
  264. package/dist/chunk-P42Q6HOW.js +0 -14
  265. package/dist/customer-portal-DR6XFCTQ.js +0 -7
  266. package/dist/customer-portal-PNFBVIAH.cjs +0 -7
  267. package/dist/data-governance-QYFHBCNB.cjs +0 -7
  268. package/dist/data-governance-YS2NA6W4.js +0 -7
  269. package/dist/design-EWZQZ5KX.js +0 -7
  270. package/dist/design-MUUYXB2J.cjs +0 -7
  271. package/dist/event-catalog-37B6JC7G.js +0 -7
  272. package/dist/event-catalog-5JBHJJ2I.cjs +0 -7
  273. package/dist/file-P2FUUER2.js +0 -7
  274. package/dist/file-XTY74SIX.cjs +0 -7
  275. package/dist/file-runtime-24S3QPA7.cjs +0 -5
  276. package/dist/focus-pocus-JGXH42OF.cjs +0 -7
  277. package/dist/focus-pocus-XVDVUYL6.js +0 -7
  278. package/dist/focus-pocus-runtime-QXBBYVX7.js +0 -5
  279. package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +0 -5
  280. package/dist/focus-pocus.d-BRFGe53G.d.cts +0 -489
  281. package/dist/focus-pocus.d-BRFGe53G.d.ts +0 -489
  282. package/dist/integration-toolkit-3I3IPVFN.cjs +0 -7
  283. package/dist/integration-toolkit-XAFQXNQY.js +0 -7
  284. package/dist/notes-K2IIFCX3.cjs +0 -7
  285. package/dist/notes-Q7JGS7O3.js +0 -7
  286. package/dist/notes-runtime-E3YYF74V.cjs +0 -5
  287. package/dist/pricing-R5ENSVPQ.cjs +0 -7
  288. package/dist/pricing-X27CCRI6.js +0 -7
  289. package/dist/targeting-74BV7F7H.cjs +0 -7
  290. package/dist/targeting-W5EKJYR2.js +0 -7
  291. package/dist/webhooks-NZHJBT64.js +0 -7
  292. package/dist/webhooks-SK2STDKR.cjs +0 -7
  293. package/docs/focus-pocus.md +0 -460
@@ -55,6 +55,7 @@ declare namespace Components {
55
55
  * Result of the condition evaluation
56
56
  */
57
57
  evaluationResult?: boolean;
58
+ error_output?: ErrorOutput;
58
59
  statements?: /**
59
60
  * example:
60
61
  * {
@@ -670,6 +671,11 @@ declare namespace Components {
670
671
  * Schedule Id which indicates the schedule of the action
671
672
  */
672
673
  schedule_id?: string;
674
+ /**
675
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
676
+ *
677
+ */
678
+ loop_id?: string;
673
679
  execution_status?: ExecutionStatus;
674
680
  started_at?: string;
675
681
  updated_at?: string;
@@ -682,6 +688,11 @@ declare namespace Components {
682
688
  };
683
689
  error_output?: ErrorOutput;
684
690
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
691
+ /**
692
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
693
+ *
694
+ */
695
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
685
696
  }
686
697
  export interface AssignThreadConfig {
687
698
  /**
@@ -768,6 +779,11 @@ declare namespace Components {
768
779
  * Schedule Id which indicates the schedule of the action
769
780
  */
770
781
  schedule_id?: string;
782
+ /**
783
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
784
+ *
785
+ */
786
+ loop_id?: string;
771
787
  execution_status?: ExecutionStatus;
772
788
  started_at?: string;
773
789
  updated_at?: string;
@@ -780,6 +796,11 @@ declare namespace Components {
780
796
  };
781
797
  error_output?: ErrorOutput;
782
798
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
799
+ /**
800
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
801
+ *
802
+ */
803
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
783
804
  }
784
805
  export interface AutomationActionConfig {
785
806
  id?: /**
@@ -831,6 +852,11 @@ declare namespace Components {
831
852
  * Schedule Id which indicates the schedule of the action
832
853
  */
833
854
  schedule_id?: string;
855
+ /**
856
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
857
+ *
858
+ */
859
+ loop_id?: string;
834
860
  }
835
861
  export interface AutomationActionExecutionState {
836
862
  execution_status?: ExecutionStatus;
@@ -845,12 +871,33 @@ declare namespace Components {
845
871
  };
846
872
  error_output?: ErrorOutput;
847
873
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
874
+ /**
875
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
876
+ *
877
+ */
878
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
848
879
  }
849
880
  /**
850
881
  * example:
851
882
  * 9ec3711b-db63-449c-b894-54d5bb622a8f
852
883
  */
853
884
  export type AutomationActionId = string;
885
+ /**
886
+ * A snapshot of a single completed pass through a looped action.
887
+ */
888
+ export interface AutomationActionIteration {
889
+ /**
890
+ * Zero-based iteration index within the loop scope.
891
+ */
892
+ index: number;
893
+ execution_status: ExecutionStatus;
894
+ started_at?: string; // date-time
895
+ ended_at?: string; // date-time
896
+ outputs?: {
897
+ [name: string]: any;
898
+ };
899
+ error_output?: ErrorOutput;
900
+ }
854
901
  export interface AutomationExecution {
855
902
  id: /**
856
903
  * example:
@@ -917,6 +964,18 @@ declare namespace Components {
917
964
  version?: number;
918
965
  trigger_event?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation | TriggerEventFlowAutomationTask | TriggerEventMessaging;
919
966
  workflow_context?: WorkflowExecutionContext;
967
+ /**
968
+ * Loop scope definitions propagated from the flow onto the execution record. Each loop has an id and a source_path resolved against the trigger entity at execution time. Actions referencing a loop's id via their loop_id property run once per item in the resolved array.
969
+ *
970
+ */
971
+ loops?: /* A loop scope on an automation flow. */ AutomationLoop[];
972
+ /**
973
+ * Runtime iteration state, keyed by loop_id. Tracks the current_index and total for each active loop scope. Entries are removed once a loop exits.
974
+ *
975
+ */
976
+ loop_state?: {
977
+ [name: string]: AutomationLoopState;
978
+ };
920
979
  }
921
980
  /**
922
981
  * example:
@@ -971,6 +1030,11 @@ declare namespace Components {
971
1030
  entity_schema?: string;
972
1031
  conditions?: ActionCondition[];
973
1032
  schedules?: ActionSchedule[];
1033
+ /**
1034
+ * Loop scope definitions. Each loop has an id and a source_path resolved against the trigger entity at execution time. Actions referencing a loop's id via their loop_id property run once per item in the resolved array. Loop members must be contiguous in the actions array.
1035
+ *
1036
+ */
1037
+ loops?: /* A loop scope on an automation flow. */ AutomationLoop[];
974
1038
  /**
975
1039
  * The actions (nodes) of the automation flow
976
1040
  */
@@ -1043,6 +1107,38 @@ declare namespace Components {
1043
1107
  * 7791b04a-16d2-44a2-9af9-2d59c25c512f
1044
1108
  */
1045
1109
  export type AutomationFlowId = string;
1110
+ /**
1111
+ * A loop scope on an automation flow.
1112
+ */
1113
+ export interface AutomationLoop {
1114
+ /**
1115
+ * Stable identifier referenced by AutomationActionConfig.loop_id
1116
+ * example:
1117
+ * loop_contracts
1118
+ */
1119
+ id: string;
1120
+ /**
1121
+ * Path resolved against the trigger entity to produce the array of iteration items. e.g. submission.steps[0]['Contracts'].
1122
+ *
1123
+ * example:
1124
+ * submission.steps[0]['Contracts']
1125
+ */
1126
+ source_path: string;
1127
+ /**
1128
+ * How source_path is interpreted. 'journey-multi-select' is the v1 source type (journey card block with multi-select). Future source types (e.g. 'previous-action-outputs', 'entity-relation') will be added here.
1129
+ *
1130
+ */
1131
+ source_type?: "journey-multi-select" | "previous-action-outputs" | "entity-relation";
1132
+ /**
1133
+ * Maximum number of iterations. 0 / omitted = iterate the full resolved array.
1134
+ *
1135
+ */
1136
+ length?: number;
1137
+ }
1138
+ export interface AutomationLoopState {
1139
+ current_index: number;
1140
+ total: number;
1141
+ }
1046
1142
  export interface AutomationTrigger {
1047
1143
  /**
1048
1144
  * example:
@@ -1306,6 +1402,11 @@ declare namespace Components {
1306
1402
  * Schedule Id which indicates the schedule of the action
1307
1403
  */
1308
1404
  schedule_id?: string;
1405
+ /**
1406
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
1407
+ *
1408
+ */
1409
+ loop_id?: string;
1309
1410
  execution_status?: ExecutionStatus;
1310
1411
  started_at?: string;
1311
1412
  updated_at?: string;
@@ -1318,6 +1419,11 @@ declare namespace Components {
1318
1419
  };
1319
1420
  error_output?: ErrorOutput;
1320
1421
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
1422
+ /**
1423
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
1424
+ *
1425
+ */
1426
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
1321
1427
  }
1322
1428
  /**
1323
1429
  * Creates an order entity with prices from journey
@@ -1370,6 +1476,11 @@ declare namespace Components {
1370
1476
  * Schedule Id which indicates the schedule of the action
1371
1477
  */
1372
1478
  schedule_id?: string;
1479
+ /**
1480
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
1481
+ *
1482
+ */
1483
+ loop_id?: string;
1373
1484
  }
1374
1485
  export interface CartCheckoutConfig {
1375
1486
  /**
@@ -1514,6 +1625,11 @@ declare namespace Components {
1514
1625
  * Schedule Id which indicates the schedule of the action
1515
1626
  */
1516
1627
  schedule_id?: string;
1628
+ /**
1629
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
1630
+ *
1631
+ */
1632
+ loop_id?: string;
1517
1633
  execution_status?: ExecutionStatus;
1518
1634
  started_at?: string;
1519
1635
  updated_at?: string;
@@ -1526,6 +1642,11 @@ declare namespace Components {
1526
1642
  };
1527
1643
  error_output?: ErrorOutput;
1528
1644
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
1645
+ /**
1646
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
1647
+ *
1648
+ */
1649
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
1529
1650
  }
1530
1651
  /**
1531
1652
  * example:
@@ -1593,6 +1714,11 @@ declare namespace Components {
1593
1714
  * Schedule Id which indicates the schedule of the action
1594
1715
  */
1595
1716
  schedule_id?: string;
1717
+ /**
1718
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
1719
+ *
1720
+ */
1721
+ loop_id?: string;
1596
1722
  }
1597
1723
  export interface CreateDocumentConfig {
1598
1724
  template_id?: string;
@@ -1676,6 +1802,11 @@ declare namespace Components {
1676
1802
  * Schedule Id which indicates the schedule of the action
1677
1803
  */
1678
1804
  schedule_id?: string;
1805
+ /**
1806
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
1807
+ *
1808
+ */
1809
+ loop_id?: string;
1679
1810
  execution_status?: ExecutionStatus;
1680
1811
  started_at?: string;
1681
1812
  updated_at?: string;
@@ -1688,6 +1819,11 @@ declare namespace Components {
1688
1819
  };
1689
1820
  error_output?: ErrorOutput;
1690
1821
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
1822
+ /**
1823
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
1824
+ *
1825
+ */
1826
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
1691
1827
  }
1692
1828
  export type DiffAdded = FilterConditionOnEvent;
1693
1829
  export type DiffDeleted = FilterConditionOnEvent;
@@ -2234,6 +2370,11 @@ declare namespace Components {
2234
2370
  * Schedule Id which indicates the schedule of the action
2235
2371
  */
2236
2372
  schedule_id?: string;
2373
+ /**
2374
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2375
+ *
2376
+ */
2377
+ loop_id?: string;
2237
2378
  execution_status?: ExecutionStatus;
2238
2379
  started_at?: string;
2239
2380
  updated_at?: string;
@@ -2246,6 +2387,11 @@ declare namespace Components {
2246
2387
  };
2247
2388
  error_output?: ErrorOutput;
2248
2389
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
2390
+ /**
2391
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
2392
+ *
2393
+ */
2394
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
2249
2395
  }
2250
2396
  /**
2251
2397
  * example:
@@ -2316,6 +2462,11 @@ declare namespace Components {
2316
2462
  * Schedule Id which indicates the schedule of the action
2317
2463
  */
2318
2464
  schedule_id?: string;
2465
+ /**
2466
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2467
+ *
2468
+ */
2469
+ loop_id?: string;
2319
2470
  }
2320
2471
  /**
2321
2472
  * Configuration for cancelling a flow execution with selected reasons
@@ -2394,6 +2545,11 @@ declare namespace Components {
2394
2545
  * Schedule Id which indicates the schedule of the action
2395
2546
  */
2396
2547
  schedule_id?: string;
2548
+ /**
2549
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2550
+ *
2551
+ */
2552
+ loop_id?: string;
2397
2553
  execution_status?: ExecutionStatus;
2398
2554
  started_at?: string;
2399
2555
  updated_at?: string;
@@ -2406,6 +2562,11 @@ declare namespace Components {
2406
2562
  };
2407
2563
  error_output?: ErrorOutput;
2408
2564
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
2565
+ /**
2566
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
2567
+ *
2568
+ */
2569
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
2409
2570
  }
2410
2571
  /**
2411
2572
  * example:
@@ -2471,6 +2632,11 @@ declare namespace Components {
2471
2632
  * Schedule Id which indicates the schedule of the action
2472
2633
  */
2473
2634
  schedule_id?: string;
2635
+ /**
2636
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2637
+ *
2638
+ */
2639
+ loop_id?: string;
2474
2640
  }
2475
2641
  export interface ForwardEmailConfig {
2476
2642
  /**
@@ -2570,6 +2736,11 @@ declare namespace Components {
2570
2736
  * Schedule Id which indicates the schedule of the action
2571
2737
  */
2572
2738
  schedule_id?: string;
2739
+ /**
2740
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2741
+ *
2742
+ */
2743
+ loop_id?: string;
2573
2744
  execution_status?: ExecutionStatus;
2574
2745
  started_at?: string;
2575
2746
  updated_at?: string;
@@ -2582,6 +2753,11 @@ declare namespace Components {
2582
2753
  };
2583
2754
  error_output?: ErrorOutput;
2584
2755
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
2756
+ /**
2757
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
2758
+ *
2759
+ */
2760
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
2585
2761
  }
2586
2762
  /**
2587
2763
  * example:
@@ -2646,6 +2822,11 @@ declare namespace Components {
2646
2822
  * Schedule Id which indicates the schedule of the action
2647
2823
  */
2648
2824
  schedule_id?: string;
2825
+ /**
2826
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2827
+ *
2828
+ */
2829
+ loop_id?: string;
2649
2830
  }
2650
2831
  export interface InformERPConfig {
2651
2832
  entity_sources?: string[];
@@ -2720,6 +2901,11 @@ declare namespace Components {
2720
2901
  * Schedule Id which indicates the schedule of the action
2721
2902
  */
2722
2903
  schedule_id?: string;
2904
+ /**
2905
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
2906
+ *
2907
+ */
2908
+ loop_id?: string;
2723
2909
  execution_status?: ExecutionStatus;
2724
2910
  started_at?: string;
2725
2911
  updated_at?: string;
@@ -2732,6 +2918,11 @@ declare namespace Components {
2732
2918
  };
2733
2919
  error_output?: ErrorOutput;
2734
2920
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
2921
+ /**
2922
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
2923
+ *
2924
+ */
2925
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
2735
2926
  }
2736
2927
  /**
2737
2928
  * example:
@@ -2901,6 +3092,11 @@ declare namespace Components {
2901
3092
  * Schedule Id which indicates the schedule of the action
2902
3093
  */
2903
3094
  schedule_id?: string;
3095
+ /**
3096
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3097
+ *
3098
+ */
3099
+ loop_id?: string;
2904
3100
  }
2905
3101
  export interface MapEntityConfig {
2906
3102
  mapping_config?: MappingConfigRef;
@@ -3031,6 +3227,11 @@ declare namespace Components {
3031
3227
  * Schedule Id which indicates the schedule of the action
3032
3228
  */
3033
3229
  schedule_id?: string;
3230
+ /**
3231
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3232
+ *
3233
+ */
3234
+ loop_id?: string;
3034
3235
  execution_status?: ExecutionStatus;
3035
3236
  started_at?: string;
3036
3237
  updated_at?: string;
@@ -3043,6 +3244,11 @@ declare namespace Components {
3043
3244
  };
3044
3245
  error_output?: ErrorOutput;
3045
3246
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
3247
+ /**
3248
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
3249
+ *
3250
+ */
3251
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
3046
3252
  }
3047
3253
  export interface MoveThreadConfig {
3048
3254
  /**
@@ -3218,6 +3424,11 @@ declare namespace Components {
3218
3424
  * Schedule Id which indicates the schedule of the action
3219
3425
  */
3220
3426
  schedule_id?: string;
3427
+ /**
3428
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3429
+ *
3430
+ */
3431
+ loop_id?: string;
3221
3432
  execution_status?: ExecutionStatus;
3222
3433
  started_at?: string;
3223
3434
  updated_at?: string;
@@ -3230,6 +3441,11 @@ declare namespace Components {
3230
3441
  };
3231
3442
  error_output?: ErrorOutput;
3232
3443
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
3444
+ /**
3445
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
3446
+ *
3447
+ */
3448
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
3233
3449
  }
3234
3450
  /**
3235
3451
  * example:
@@ -3292,6 +3508,11 @@ declare namespace Components {
3292
3508
  * Schedule Id which indicates the schedule of the action
3293
3509
  */
3294
3510
  schedule_id?: string;
3511
+ /**
3512
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3513
+ *
3514
+ */
3515
+ loop_id?: string;
3295
3516
  }
3296
3517
  export interface ReplyEmailConfig {
3297
3518
  /**
@@ -3399,6 +3620,11 @@ declare namespace Components {
3399
3620
  * Schedule Id which indicates the schedule of the action
3400
3621
  */
3401
3622
  schedule_id?: string;
3623
+ /**
3624
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3625
+ *
3626
+ */
3627
+ loop_id?: string;
3402
3628
  execution_status?: ExecutionStatus;
3403
3629
  started_at?: string;
3404
3630
  updated_at?: string;
@@ -3411,6 +3637,11 @@ declare namespace Components {
3411
3637
  };
3412
3638
  error_output?: ErrorOutput;
3413
3639
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
3640
+ /**
3641
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
3642
+ *
3643
+ */
3644
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
3414
3645
  }
3415
3646
  /**
3416
3647
  * example:
@@ -3472,6 +3703,11 @@ declare namespace Components {
3472
3703
  * Schedule Id which indicates the schedule of the action
3473
3704
  */
3474
3705
  schedule_id?: string;
3706
+ /**
3707
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3708
+ *
3709
+ */
3710
+ loop_id?: string;
3475
3711
  }
3476
3712
  export interface SendEmailCondition {
3477
3713
  _equals?: {
@@ -3683,6 +3919,11 @@ declare namespace Components {
3683
3919
  * Schedule Id which indicates the schedule of the action
3684
3920
  */
3685
3921
  schedule_id?: string;
3922
+ /**
3923
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
3924
+ *
3925
+ */
3926
+ loop_id?: string;
3686
3927
  execution_status?: ExecutionStatus;
3687
3928
  started_at?: string;
3688
3929
  updated_at?: string;
@@ -3695,6 +3936,11 @@ declare namespace Components {
3695
3936
  };
3696
3937
  error_output?: ErrorOutput;
3697
3938
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
3939
+ /**
3940
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
3941
+ *
3942
+ */
3943
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
3698
3944
  }
3699
3945
  /**
3700
3946
  * example:
@@ -3758,6 +4004,11 @@ declare namespace Components {
3758
4004
  * Schedule Id which indicates the schedule of the action
3759
4005
  */
3760
4006
  schedule_id?: string;
4007
+ /**
4008
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4009
+ *
4010
+ */
4011
+ loop_id?: string;
3761
4012
  }
3762
4013
  /**
3763
4014
  * Configuration for triggering an event catalog event
@@ -3913,6 +4164,11 @@ declare namespace Components {
3913
4164
  * Schedule Id which indicates the schedule of the action
3914
4165
  */
3915
4166
  schedule_id?: string;
4167
+ /**
4168
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4169
+ *
4170
+ */
4171
+ loop_id?: string;
3916
4172
  execution_status?: ExecutionStatus;
3917
4173
  started_at?: string;
3918
4174
  updated_at?: string;
@@ -3925,6 +4181,11 @@ declare namespace Components {
3925
4181
  };
3926
4182
  error_output?: ErrorOutput;
3927
4183
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
4184
+ /**
4185
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
4186
+ *
4187
+ */
4188
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
3928
4189
  }
3929
4190
  export interface TriggerShareEntityActionConfig {
3930
4191
  id?: /**
@@ -3974,6 +4235,11 @@ declare namespace Components {
3974
4235
  * Schedule Id which indicates the schedule of the action
3975
4236
  */
3976
4237
  schedule_id?: string;
4238
+ /**
4239
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4240
+ *
4241
+ */
4242
+ loop_id?: string;
3977
4243
  }
3978
4244
  export interface TriggerShareEntityConfig {
3979
4245
  partner_org_ids?: string[];
@@ -4026,6 +4292,11 @@ declare namespace Components {
4026
4292
  * Schedule Id which indicates the schedule of the action
4027
4293
  */
4028
4294
  schedule_id?: string;
4295
+ /**
4296
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4297
+ *
4298
+ */
4299
+ loop_id?: string;
4029
4300
  execution_status?: ExecutionStatus;
4030
4301
  started_at?: string;
4031
4302
  updated_at?: string;
@@ -4038,6 +4309,11 @@ declare namespace Components {
4038
4309
  };
4039
4310
  error_output?: ErrorOutput;
4040
4311
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
4312
+ /**
4313
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
4314
+ *
4315
+ */
4316
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
4041
4317
  }
4042
4318
  /**
4043
4319
  * example:
@@ -4102,6 +4378,11 @@ declare namespace Components {
4102
4378
  * Schedule Id which indicates the schedule of the action
4103
4379
  */
4104
4380
  schedule_id?: string;
4381
+ /**
4382
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4383
+ *
4384
+ */
4385
+ loop_id?: string;
4105
4386
  }
4106
4387
  export interface TriggerWebhookConfig {
4107
4388
  /**
@@ -4163,6 +4444,11 @@ declare namespace Components {
4163
4444
  * Schedule Id which indicates the schedule of the action
4164
4445
  */
4165
4446
  schedule_id?: string;
4447
+ /**
4448
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4449
+ *
4450
+ */
4451
+ loop_id?: string;
4166
4452
  execution_status?: ExecutionStatus;
4167
4453
  started_at?: string;
4168
4454
  updated_at?: string;
@@ -4175,6 +4461,11 @@ declare namespace Components {
4175
4461
  };
4176
4462
  error_output?: ErrorOutput;
4177
4463
  retry_strategy?: /* different behaviors for retrying failed execution actions. */ RetryStrategy;
4464
+ /**
4465
+ * For looped actions, an archive of completed iterations. The action's own execution_status / outputs / error_output always reflect the current (latest) iteration. The previous iteration's state is pushed here before the action is reset for the next pass.
4466
+ *
4467
+ */
4468
+ iterations?: /* A snapshot of a single completed pass through a looped action. */ AutomationActionIteration[];
4178
4469
  }
4179
4470
  /**
4180
4471
  * example:
@@ -4258,6 +4549,11 @@ declare namespace Components {
4258
4549
  * Schedule Id which indicates the schedule of the action
4259
4550
  */
4260
4551
  schedule_id?: string;
4552
+ /**
4553
+ * Id of a loop scope defined on the parent flow. When set, the action runs once per item resolved from the loop's source_path. All actions sharing the same loop_id must be contiguous in the actions array.
4554
+ *
4555
+ */
4556
+ loop_id?: string;
4261
4557
  }
4262
4558
  /**
4263
4559
  * example:
@@ -5166,10 +5462,13 @@ type AutomationAction = Components.Schemas.AutomationAction;
5166
5462
  type AutomationActionConfig = Components.Schemas.AutomationActionConfig;
5167
5463
  type AutomationActionExecutionState = Components.Schemas.AutomationActionExecutionState;
5168
5464
  type AutomationActionId = Components.Schemas.AutomationActionId;
5465
+ type AutomationActionIteration = Components.Schemas.AutomationActionIteration;
5169
5466
  type AutomationExecution = Components.Schemas.AutomationExecution;
5170
5467
  type AutomationExecutionId = Components.Schemas.AutomationExecutionId;
5171
5468
  type AutomationFlow = Components.Schemas.AutomationFlow;
5172
5469
  type AutomationFlowId = Components.Schemas.AutomationFlowId;
5470
+ type AutomationLoop = Components.Schemas.AutomationLoop;
5471
+ type AutomationLoopState = Components.Schemas.AutomationLoopState;
5173
5472
  type AutomationTrigger = Components.Schemas.AutomationTrigger;
5174
5473
  type BulkTriggerJob = Components.Schemas.BulkTriggerJob;
5175
5474
  type BulkTriggerRequest = Components.Schemas.BulkTriggerRequest;
@@ -5280,4 +5579,4 @@ type WildcardCondition = Components.Schemas.WildcardCondition;
5280
5579
  type WorkflowContextRole = Components.Schemas.WorkflowContextRole;
5281
5580
  type WorkflowExecutionContext = Components.Schemas.WorkflowExecutionContext;
5282
5581
 
5283
- export { type EqualsIgnoreCaseCondition as $, type ActionCondition as A, type BulkTriggerJob as B, type Client as C, type CancellationReason as D, type CartCheckoutAction as E, type CartCheckoutActionConfig as F, type CartCheckoutConfig as G, type Comparison as H, type ConditionStatement as I, type CopyValueMapper as J, type CreateDocumentAction as K, type CreateDocumentActionConfig as L, type CreateDocumentConfig as M, type CustomAction as N, type OperationMethods as O, Paths as P, type DiffAdded as Q, type DiffDeleted as R, type DiffUpdated as S, type EntityId as T, type EntityItemSnapshot as U, type EntityManualTrigger as V, type EntityOperation as W, type EntityOperationTrigger as X, type EntityRef as Y, type EntitySearchFilter as Z, type EntitySearchFilterValue as _, Components as a, type TriggerEventActionConfig as a$, type ErrorCode as a0, type ErrorDetail as a1, type ErrorObject as a2, type ErrorOutput as a3, type ExecItem as a4, type ExecutionChain as a5, type ExecutionStatus as a6, type ExistsCondition as a7, type FilterConditionOnEvent as a8, type FlowExecutionCancelAction as a9, type OrCondition as aA, type OrConditionForDiff as aB, type OrganizationId as aC, type PatchBulkJobRequest as aD, type PrefixCondition as aE, type PrimitiveJSONValue as aF, type ReceivedEmailTrigger as aG, type RelationAttribute as aH, type ReplyEmailAction as aI, type ReplyEmailActionConfig as aJ, type ReplyEmailConfig as aK, type ResumeReq as aL, type ResumeResp as aM, type ResumeToken as aN, type RetryReq as aO, type RetryStrategy as aP, type SearchAutomationsResp as aQ, type SendEmailAction as aR, type SendEmailActionConfig as aS, type SendEmailCondition as aT, type SendEmailConfig as aU, type SetValueMapper as aV, type StartExecutionRequest as aW, type SuffixCondition as aX, type TriggerCondition as aY, type TriggerContext as aZ, type TriggerEventAction as a_, type FlowExecutionCancelActionConfig as aa, type FlowExecutionCancelConfig as ab, type FlowsTrigger as ac, type ForwardEmailAction as ad, type ForwardEmailActionConfig as ae, type ForwardEmailConfig as af, type FrontendSubmitTrigger as ag, type GetExecutionsResp as ah, type InformERPAction as ai, type InformERPActionConfig as aj, type InformERPConfig as ak, type JobId as al, type JourneySubmitTrigger as am, type MapEntityAction as an, type MapEntityActionConfig as ao, type MapEntityConfig as ap, type MappingAttribute as aq, type MappingAttributeMode as ar, type MappingAttributeV2 as as, type MappingConfigRef as at, type MoveThreadAction as au, type MoveThreadConfig as av, type NewEmailThreadTrigger as aw, type NumericCondition as ax, type OperationNode as ay, type OperationObjectNode as az, type PathsDictionary as b, type TriggerEventConfig as b0, type TriggerEventEntityActivity as b1, type TriggerEventEntityOperation as b2, type TriggerEventFlowAutomationTask as b3, type TriggerEventManual as b4, type TriggerEventMessaging as b5, type TriggerShareEntityAction as b6, type TriggerShareEntityActionConfig as b7, type TriggerShareEntityConfig as b8, type TriggerWebhookAction as b9, type TriggerWebhookActionConfig as ba, type TriggerWebhookConfig as bb, type TriggerWorkflowAction as bc, type TriggerWorkflowActionConfig as bd, type TriggerWorkflowCondition as be, type TriggerWorkflowConfig as bf, type WildcardCondition as bg, type WorkflowContextRole as bh, type WorkflowExecutionContext as bi, type ActionSchedule as c, type ActionScheduleSource as d, type ActivityId as e, type ActivityTrigger as f, type AnyAction as g, type AnyActionConfig as h, type AnyTrigger as i, type AnythingButCondition as j, type ApiCallerContext as k, type ApiSubmissionTrigger as l, type AppendValueMapper as m, type AssignThreadAction as n, type AssignThreadConfig as o, type AssignUsersToStep as p, type AutomationAction as q, type AutomationActionConfig as r, type AutomationActionExecutionState as s, type AutomationActionId as t, type AutomationExecution as u, type AutomationExecutionId as v, type AutomationFlow as w, type AutomationFlowId as x, type AutomationTrigger as y, type BulkTriggerRequest as z };
5582
+ export { type EntityRef as $, type ActionCondition as A, type AutomationLoopState as B, type Client as C, type AutomationTrigger as D, type BulkTriggerJob as E, type BulkTriggerRequest as F, type CancellationReason as G, type CartCheckoutAction as H, type CartCheckoutActionConfig as I, type CartCheckoutConfig as J, type Comparison as K, type ConditionStatement as L, type CopyValueMapper as M, type CreateDocumentAction as N, type OperationMethods as O, Paths as P, type CreateDocumentActionConfig as Q, type CreateDocumentConfig as R, type CustomAction as S, type DiffAdded as T, type DiffDeleted as U, type DiffUpdated as V, type EntityId as W, type EntityItemSnapshot as X, type EntityManualTrigger as Y, type EntityOperation as Z, type EntityOperationTrigger as _, Components as a, type TriggerCondition as a$, type EntitySearchFilter as a0, type EntitySearchFilterValue as a1, type EqualsIgnoreCaseCondition as a2, type ErrorCode as a3, type ErrorDetail as a4, type ErrorObject as a5, type ErrorOutput as a6, type ExecItem as a7, type ExecutionChain as a8, type ExecutionStatus as a9, type NumericCondition as aA, type OperationNode as aB, type OperationObjectNode as aC, type OrCondition as aD, type OrConditionForDiff as aE, type OrganizationId as aF, type PatchBulkJobRequest as aG, type PrefixCondition as aH, type PrimitiveJSONValue as aI, type ReceivedEmailTrigger as aJ, type RelationAttribute as aK, type ReplyEmailAction as aL, type ReplyEmailActionConfig as aM, type ReplyEmailConfig as aN, type ResumeReq as aO, type ResumeResp as aP, type ResumeToken as aQ, type RetryReq as aR, type RetryStrategy as aS, type SearchAutomationsResp as aT, type SendEmailAction as aU, type SendEmailActionConfig as aV, type SendEmailCondition as aW, type SendEmailConfig as aX, type SetValueMapper as aY, type StartExecutionRequest as aZ, type SuffixCondition as a_, type ExistsCondition as aa, type FilterConditionOnEvent as ab, type FlowExecutionCancelAction as ac, type FlowExecutionCancelActionConfig as ad, type FlowExecutionCancelConfig as ae, type FlowsTrigger as af, type ForwardEmailAction as ag, type ForwardEmailActionConfig as ah, type ForwardEmailConfig as ai, type FrontendSubmitTrigger as aj, type GetExecutionsResp as ak, type InformERPAction as al, type InformERPActionConfig as am, type InformERPConfig as an, type JobId as ao, type JourneySubmitTrigger as ap, type MapEntityAction as aq, type MapEntityActionConfig as ar, type MapEntityConfig as as, type MappingAttribute as at, type MappingAttributeMode as au, type MappingAttributeV2 as av, type MappingConfigRef as aw, type MoveThreadAction as ax, type MoveThreadConfig as ay, type NewEmailThreadTrigger as az, type PathsDictionary as b, type TriggerContext as b0, type TriggerEventAction as b1, type TriggerEventActionConfig as b2, type TriggerEventConfig as b3, type TriggerEventEntityActivity as b4, type TriggerEventEntityOperation as b5, type TriggerEventFlowAutomationTask as b6, type TriggerEventManual as b7, type TriggerEventMessaging as b8, type TriggerShareEntityAction as b9, type TriggerShareEntityActionConfig as ba, type TriggerShareEntityConfig as bb, type TriggerWebhookAction as bc, type TriggerWebhookActionConfig as bd, type TriggerWebhookConfig as be, type TriggerWorkflowAction as bf, type TriggerWorkflowActionConfig as bg, type TriggerWorkflowCondition as bh, type TriggerWorkflowConfig as bi, type WildcardCondition as bj, type WorkflowContextRole as bk, type WorkflowExecutionContext as bl, type ActionSchedule as c, type ActionScheduleSource as d, type ActivityId as e, type ActivityTrigger as f, type AnyAction as g, type AnyActionConfig as h, type AnyTrigger as i, type AnythingButCondition as j, type ApiCallerContext as k, type ApiSubmissionTrigger as l, type AppendValueMapper as m, type AssignThreadAction as n, type AssignThreadConfig as o, type AssignUsersToStep as p, type AutomationAction as q, type AutomationActionConfig as r, type AutomationActionExecutionState as s, type AutomationActionId as t, type AutomationActionIteration as u, type AutomationExecution as v, type AutomationExecutionId as w, type AutomationFlow as x, type AutomationFlowId as y, type AutomationLoop as z };