@powerhousedao/workflow 6.2.3-dev.30 → 6.2.3-dev.31

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 (374) hide show
  1. package/README.md +8 -8
  2. package/dist/browser/BlockSelector-BHJQOhie.js +3051 -0
  3. package/dist/browser/BlockSelector-BHJQOhie.js.map +1 -0
  4. package/dist/browser/{connection-form-D-NETdDQ.js → connection-form-CaduwBiu.js} +349 -50
  5. package/dist/browser/connection-form-CaduwBiu.js.map +1 -0
  6. package/dist/browser/{data-tree-DA4sc7B7.js → data-tree-8219PVfh.js} +2 -2
  7. package/dist/browser/{data-tree-DA4sc7B7.js.map → data-tree-8219PVfh.js.map} +1 -1
  8. package/dist/browser/document-models/index.js +2 -2
  9. package/dist/browser/document-models/workflow/index.js +3 -3
  10. package/dist/browser/{document-models-BohsduV4.js → document-models-C1ZgIZyV.js} +7 -2
  11. package/dist/browser/{document-models-BohsduV4.js.map → document-models-C1ZgIZyV.js.map} +1 -1
  12. package/dist/browser/{editor-B6N0PCuZ.js → editor-BHV1MZS8.js} +2437 -6283
  13. package/dist/browser/editor-BHV1MZS8.js.map +1 -0
  14. package/dist/{node/editor-StBssjcQ.mjs → browser/editor-C0C1eB0R.js} +385 -119
  15. package/dist/browser/editor-C0C1eB0R.js.map +1 -0
  16. package/dist/browser/{editor-BkdwuOC-.js → editor-CFcXlZY2.js} +14 -24
  17. package/dist/browser/editor-CFcXlZY2.js.map +1 -0
  18. package/dist/browser/editors/connection-editor/module.js +1 -1
  19. package/dist/browser/editors/workflow-editor/module.js +1 -1
  20. package/dist/browser/editors/workflow-studio/module.js +1 -1
  21. package/dist/browser/index.js +97 -43
  22. package/dist/browser/index.js.map +1 -1
  23. package/dist/browser/{module-Bkms70LV.js → module-DU2vb3FH.js} +574 -94
  24. package/dist/browser/module-DU2vb3FH.js.map +1 -0
  25. package/dist/browser/{piece-auth-Z4mZEOtL.js → piece-auth-BS5CtQOG.js} +45 -12
  26. package/dist/browser/piece-auth-BS5CtQOG.js.map +1 -0
  27. package/dist/browser/reactor/index.js +2 -2
  28. package/dist/browser/runtime-queries-Ds2kk-Ow.js +2535 -0
  29. package/dist/browser/runtime-queries-Ds2kk-Ow.js.map +1 -0
  30. package/dist/browser/trigger-text-BkcklsMX.js +5569 -0
  31. package/dist/browser/trigger-text-BkcklsMX.js.map +1 -0
  32. package/dist/browser/{upgrade-manifests-BLrv3cf2.js → upgrade-manifests-BpakVE9l.js} +2 -2
  33. package/dist/browser/{upgrade-manifests-BLrv3cf2.js.map → upgrade-manifests-BpakVE9l.js.map} +1 -1
  34. package/dist/browser/{workflow-CGtVlhr8.js → workflow-BxShRhVy.js} +3 -2
  35. package/dist/browser/workflow-BxShRhVy.js.map +1 -0
  36. package/dist/node/BlockSelector-lOcIiaqt.mjs +3055 -0
  37. package/dist/node/BlockSelector-lOcIiaqt.mjs.map +1 -0
  38. package/dist/node/{connection-form-C9vbfSnA.mjs → connection-form-DWt29kft.mjs} +349 -50
  39. package/dist/node/connection-form-DWt29kft.mjs.map +1 -0
  40. package/dist/node/{data-tree-CbqpF3lC.mjs → data-tree-Cdx85Y19.mjs} +2 -2
  41. package/dist/node/{data-tree-CbqpF3lC.mjs.map → data-tree-Cdx85Y19.mjs.map} +1 -1
  42. package/dist/node/document-models/index.mjs +2 -2
  43. package/dist/node/document-models/workflow/index.mjs +3 -3
  44. package/dist/{browser/editor-CZ5NvCyv.js → node/editor-CR823u-y.mjs} +385 -119
  45. package/dist/node/editor-CR823u-y.mjs.map +1 -0
  46. package/dist/node/{editor-DP36YDk5.mjs → editor-CwX-G2Jv.mjs} +2437 -7479
  47. package/dist/node/editor-CwX-G2Jv.mjs.map +1 -0
  48. package/dist/node/{editor-By9BHI8e.mjs → editor-D_t8OtZn.mjs} +14 -24
  49. package/dist/node/editor-D_t8OtZn.mjs.map +1 -0
  50. package/dist/node/editors/connection-editor/module.mjs +1 -1
  51. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  52. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  53. package/dist/node/index.mjs +102 -43
  54. package/dist/node/index.mjs.map +1 -1
  55. package/dist/node/{module-DuxxhgKs.mjs → module-Dhe5E-VA.mjs} +574 -94
  56. package/dist/node/module-Dhe5E-VA.mjs.map +1 -0
  57. package/dist/node/{piece-auth-Z4mZEOtL.mjs → piece-auth-BS5CtQOG.mjs} +45 -12
  58. package/dist/node/piece-auth-BS5CtQOG.mjs.map +1 -0
  59. package/dist/node/pieces/index.mjs +0 -1
  60. package/dist/node/pieces/index.mjs.map +1 -1
  61. package/dist/node/pieces/reactor/descriptor.json +85 -3
  62. package/dist/node/pieces/reactor/index.mjs +14843 -163
  63. package/dist/node/pieces/reactor/index.mjs.map +1 -1
  64. package/dist/node/pieces/reactor/package.json +1 -1
  65. package/dist/node/runtime-queries-D5EGaCrH.mjs +2544 -0
  66. package/dist/node/runtime-queries-D5EGaCrH.mjs.map +1 -0
  67. package/dist/node/trigger-text-DJIAQBWg.mjs +6765 -0
  68. package/dist/node/trigger-text-DJIAQBWg.mjs.map +1 -0
  69. package/dist/node/{upgrade-manifests-C1sl_M-H.mjs → upgrade-manifests-CmNd742Y.mjs} +2 -2
  70. package/dist/node/{upgrade-manifests-C1sl_M-H.mjs.map → upgrade-manifests-CmNd742Y.mjs.map} +1 -1
  71. package/dist/node/{workflow-C-uuQPnf.mjs → workflow-CGzYGZnr.mjs} +3 -2
  72. package/dist/node/workflow-CGzYGZnr.mjs.map +1 -0
  73. package/dist/powerhouse.manifest.json +6 -1
  74. package/dist/style.css +151 -19
  75. package/dist/types/ai/tools.d.ts +3 -1
  76. package/dist/types/ai/tools.d.ts.map +1 -1
  77. package/dist/types/ai/workflow-tools.d.ts.map +1 -1
  78. package/dist/types/document-models/document-models.d.ts +3 -0
  79. package/dist/types/document-models/document-models.d.ts.map +1 -1
  80. package/dist/types/document-models/workflow/v1/actions.d.ts +3 -0
  81. package/dist/types/document-models/workflow/v1/actions.d.ts.map +1 -1
  82. package/dist/types/document-models/workflow/v1/gen/actions.d.ts +3 -1
  83. package/dist/types/document-models/workflow/v1/gen/actions.d.ts.map +1 -1
  84. package/dist/types/document-models/workflow/v1/gen/creators.d.ts +2 -0
  85. package/dist/types/document-models/workflow/v1/gen/creators.d.ts.map +1 -1
  86. package/dist/types/document-models/workflow/v1/gen/document-model.d.ts.map +1 -1
  87. package/dist/types/document-models/workflow/v1/gen/document-schema.d.ts +3 -0
  88. package/dist/types/document-models/workflow/v1/gen/document-schema.d.ts.map +1 -1
  89. package/dist/types/document-models/workflow/v1/gen/index.d.ts +1 -0
  90. package/dist/types/document-models/workflow/v1/gen/index.d.ts.map +1 -1
  91. package/dist/types/document-models/workflow/v1/gen/ph-factories.d.ts.map +1 -1
  92. package/dist/types/document-models/workflow/v1/gen/publishing/actions.d.ts +16 -0
  93. package/dist/types/document-models/workflow/v1/gen/publishing/actions.d.ts.map +1 -0
  94. package/dist/types/document-models/workflow/v1/gen/publishing/creators.d.ts +5 -0
  95. package/dist/types/document-models/workflow/v1/gen/publishing/creators.d.ts.map +1 -0
  96. package/dist/types/document-models/workflow/v1/gen/publishing/error.d.ts +14 -0
  97. package/dist/types/document-models/workflow/v1/gen/publishing/error.d.ts.map +1 -0
  98. package/dist/types/document-models/workflow/v1/gen/publishing/operations.d.ts +12 -0
  99. package/dist/types/document-models/workflow/v1/gen/publishing/operations.d.ts.map +1 -0
  100. package/dist/types/document-models/workflow/v1/gen/reducer.d.ts.map +1 -1
  101. package/dist/types/document-models/workflow/v1/gen/runtime/actions.d.ts +6 -2
  102. package/dist/types/document-models/workflow/v1/gen/runtime/actions.d.ts.map +1 -1
  103. package/dist/types/document-models/workflow/v1/gen/runtime/creators.d.ts +3 -2
  104. package/dist/types/document-models/workflow/v1/gen/runtime/creators.d.ts.map +1 -1
  105. package/dist/types/document-models/workflow/v1/gen/runtime/error.d.ts +13 -1
  106. package/dist/types/document-models/workflow/v1/gen/runtime/error.d.ts.map +1 -1
  107. package/dist/types/document-models/workflow/v1/gen/runtime/operations.d.ts +2 -1
  108. package/dist/types/document-models/workflow/v1/gen/runtime/operations.d.ts.map +1 -1
  109. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +102 -12
  110. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
  111. package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts +21 -1
  112. package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts.map +1 -1
  113. package/dist/types/document-models/workflow/v1/gen/steps/error.d.ts +26 -1
  114. package/dist/types/document-models/workflow/v1/gen/steps/error.d.ts.map +1 -1
  115. package/dist/types/document-models/workflow/v1/gen/trigger/error.d.ts +13 -1
  116. package/dist/types/document-models/workflow/v1/gen/trigger/error.d.ts.map +1 -1
  117. package/dist/types/document-models/workflow/v1/gen/utils.d.ts.map +1 -1
  118. package/dist/types/document-models/workflow/v1/gen/variables/error.d.ts +13 -1
  119. package/dist/types/document-models/workflow/v1/gen/variables/error.d.ts.map +1 -1
  120. package/dist/types/document-models/workflow/v1/gen/workflow/error.d.ts +13 -1
  121. package/dist/types/document-models/workflow/v1/gen/workflow/error.d.ts.map +1 -1
  122. package/dist/types/document-models/workflow/v1/module.d.ts +3 -0
  123. package/dist/types/document-models/workflow/v1/module.d.ts.map +1 -1
  124. package/dist/types/document-models/workflow/v1/src/helpers.d.ts +15 -0
  125. package/dist/types/document-models/workflow/v1/src/helpers.d.ts.map +1 -0
  126. package/dist/types/document-models/workflow/v1/src/reducers/edges.d.ts.map +1 -1
  127. package/dist/types/document-models/workflow/v1/src/reducers/publishing.d.ts +3 -0
  128. package/dist/types/document-models/workflow/v1/src/reducers/publishing.d.ts.map +1 -0
  129. package/dist/types/document-models/workflow/v1/src/reducers/runtime.d.ts.map +1 -1
  130. package/dist/types/document-models/workflow/v1/src/reducers/steps.d.ts.map +1 -1
  131. package/dist/types/document-models/workflow/v1/src/reducers/trigger.d.ts.map +1 -1
  132. package/dist/types/document-models/workflow/v1/src/reducers/variables.d.ts.map +1 -1
  133. package/dist/types/document-models/workflow/v1/src/reducers/workflow.d.ts.map +1 -1
  134. package/dist/types/document-models/workflow/v1/tests/block-validation-and-enable.test.d.ts +2 -0
  135. package/dist/types/document-models/workflow/v1/tests/block-validation-and-enable.test.d.ts.map +1 -0
  136. package/dist/types/document-models/workflow/v1/tests/config-and-variables.test.d.ts +2 -0
  137. package/dist/types/document-models/workflow/v1/tests/config-and-variables.test.d.ts.map +1 -0
  138. package/dist/types/document-models/workflow/v1/tests/draft-and-publish.test.d.ts +2 -0
  139. package/dist/types/document-models/workflow/v1/tests/draft-and-publish.test.d.ts.map +1 -0
  140. package/dist/types/document-models/workflow/v1/tests/updated-at.test.d.ts +2 -0
  141. package/dist/types/document-models/workflow/v1/tests/updated-at.test.d.ts.map +1 -0
  142. package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts.map +1 -1
  143. package/dist/types/editors/connection-editor/UsedBy.d.ts.map +1 -1
  144. package/dist/types/editors/connection-editor/connection-callbacks.d.ts.map +1 -1
  145. package/dist/types/editors/connection-editor/connection-form.d.ts +2 -1
  146. package/dist/types/editors/connection-editor/connection-form.d.ts.map +1 -1
  147. package/dist/types/editors/connection-editor/connection-usage.d.ts +3 -2
  148. package/dist/types/editors/connection-editor/connection-usage.d.ts.map +1 -1
  149. package/dist/types/editors/connection-editor/editor.d.ts.map +1 -1
  150. package/dist/types/editors/connection-editor/piece-auth.d.ts +7 -1
  151. package/dist/types/editors/connection-editor/piece-auth.d.ts.map +1 -1
  152. package/dist/types/editors/connection-editor/status.d.ts +2 -1
  153. package/dist/types/editors/connection-editor/status.d.ts.map +1 -1
  154. package/dist/types/editors/shared/controls.d.ts +17 -1
  155. package/dist/types/editors/shared/controls.d.ts.map +1 -1
  156. package/dist/types/editors/shared/editor-chrome.d.ts +2 -0
  157. package/dist/types/editors/shared/editor-chrome.d.ts.map +1 -1
  158. package/dist/types/editors/shared/icons.d.ts +2 -0
  159. package/dist/types/editors/shared/icons.d.ts.map +1 -1
  160. package/dist/types/editors/shared/undo-plan.d.ts +20 -0
  161. package/dist/types/editors/shared/undo-plan.d.ts.map +1 -0
  162. package/dist/types/editors/shared/undo-plan.test.d.ts +2 -0
  163. package/dist/types/editors/shared/undo-plan.test.d.ts.map +1 -0
  164. package/dist/types/editors/workflow-editor/document/useWorkflowModel.d.ts.map +1 -1
  165. package/dist/types/editors/workflow-editor/editor.d.ts +0 -1
  166. package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
  167. package/dist/types/editors/workflow-editor/run-kinds.d.ts +5 -0
  168. package/dist/types/editors/workflow-editor/run-kinds.d.ts.map +1 -0
  169. package/dist/types/editors/workflow-editor/runtime-api.d.ts +12 -139
  170. package/dist/types/editors/workflow-editor/runtime-api.d.ts.map +1 -1
  171. package/dist/types/editors/workflow-editor/runtime-client.d.ts +260 -0
  172. package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -0
  173. package/dist/types/editors/workflow-editor/runtime-client.test.d.ts +2 -0
  174. package/dist/types/editors/workflow-editor/runtime-client.test.d.ts.map +1 -0
  175. package/dist/types/editors/workflow-editor/runtime-context.d.ts +45 -0
  176. package/dist/types/editors/workflow-editor/runtime-context.d.ts.map +1 -0
  177. package/dist/types/editors/workflow-editor/runtime-persist.d.ts +23 -0
  178. package/dist/types/editors/workflow-editor/runtime-persist.d.ts.map +1 -0
  179. package/dist/types/editors/workflow-editor/runtime-persist.test.d.ts +2 -0
  180. package/dist/types/editors/workflow-editor/runtime-persist.test.d.ts.map +1 -0
  181. package/dist/types/editors/workflow-editor/runtime-queries.d.ts +128 -0
  182. package/dist/types/editors/workflow-editor/runtime-queries.d.ts.map +1 -0
  183. package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts +3 -3
  184. package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
  185. package/dist/types/editors/workflow-editor/ui/CanvasContextMenu.d.ts +4 -3
  186. package/dist/types/editors/workflow-editor/ui/CanvasContextMenu.d.ts.map +1 -1
  187. package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts +2 -3
  188. package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts.map +1 -1
  189. package/dist/types/editors/workflow-editor/ui/CreateConnectionModal.d.ts.map +1 -1
  190. package/dist/types/editors/workflow-editor/ui/ExpressionPicker.d.ts +6 -5
  191. package/dist/types/editors/workflow-editor/ui/ExpressionPicker.d.ts.map +1 -1
  192. package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts +7 -1
  193. package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
  194. package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts +34 -0
  195. package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts.map +1 -0
  196. package/dist/types/editors/workflow-editor/ui/ScheduleBuilder.d.ts.map +1 -1
  197. package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts +2 -3
  198. package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts.map +1 -1
  199. package/dist/types/editors/workflow-editor/ui/StepTest.d.ts +11 -0
  200. package/dist/types/editors/workflow-editor/ui/StepTest.d.ts.map +1 -0
  201. package/dist/types/editors/workflow-editor/ui/VariablesEditor.d.ts +0 -1
  202. package/dist/types/editors/workflow-editor/ui/VariablesEditor.d.ts.map +1 -1
  203. package/dist/types/editors/workflow-editor/ui/WorkflowCanvas.d.ts +1 -3
  204. package/dist/types/editors/workflow-editor/ui/WorkflowCanvas.d.ts.map +1 -1
  205. package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts +1 -3
  206. package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
  207. package/dist/types/editors/workflow-editor/ui/add-follow-up.d.ts +31 -0
  208. package/dist/types/editors/workflow-editor/ui/add-follow-up.d.ts.map +1 -0
  209. package/dist/types/editors/workflow-editor/ui/add-follow-up.test.d.ts +2 -0
  210. package/dist/types/editors/workflow-editor/ui/add-follow-up.test.d.ts.map +1 -0
  211. package/dist/types/editors/workflow-editor/ui/ap-edge.d.ts.map +1 -1
  212. package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts +2 -1
  213. package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts.map +1 -1
  214. package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts +7 -9
  215. package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
  216. package/dist/types/editors/workflow-editor/ui/block-meta.d.ts +10 -5
  217. package/dist/types/editors/workflow-editor/ui/block-meta.d.ts.map +1 -1
  218. package/dist/types/editors/workflow-editor/ui/blocks.d.ts +43 -2
  219. package/dist/types/editors/workflow-editor/ui/blocks.d.ts.map +1 -1
  220. package/dist/types/editors/workflow-editor/ui/blocks.test.d.ts +2 -0
  221. package/dist/types/editors/workflow-editor/ui/blocks.test.d.ts.map +1 -0
  222. package/dist/types/editors/workflow-editor/ui/canvas-menu.d.ts +4 -2
  223. package/dist/types/editors/workflow-editor/ui/canvas-menu.d.ts.map +1 -1
  224. package/dist/types/editors/workflow-editor/ui/connection-create.d.ts +3 -3
  225. package/dist/types/editors/workflow-editor/ui/connection-create.d.ts.map +1 -1
  226. package/dist/types/editors/workflow-editor/ui/design-time.d.ts +92 -0
  227. package/dist/types/editors/workflow-editor/ui/design-time.d.ts.map +1 -0
  228. package/dist/types/editors/workflow-editor/ui/design-time.test.d.ts +2 -0
  229. package/dist/types/editors/workflow-editor/ui/design-time.test.d.ts.map +1 -0
  230. package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts +10 -2
  231. package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts.map +1 -1
  232. package/dist/types/editors/workflow-editor/ui/forms.d.ts +35 -6
  233. package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
  234. package/dist/types/editors/workflow-editor/ui/model.d.ts +58 -13
  235. package/dist/types/editors/workflow-editor/ui/model.d.ts.map +1 -1
  236. package/dist/types/editors/workflow-editor/ui/piece-source.d.ts +11 -6
  237. package/dist/types/editors/workflow-editor/ui/piece-source.d.ts.map +1 -1
  238. package/dist/types/editors/workflow-editor/ui/prop-controls.d.ts +5 -0
  239. package/dist/types/editors/workflow-editor/ui/prop-controls.d.ts.map +1 -1
  240. package/dist/types/editors/workflow-editor/ui/prop-controls.test.d.ts +2 -0
  241. package/dist/types/editors/workflow-editor/ui/prop-controls.test.d.ts.map +1 -0
  242. package/dist/types/editors/workflow-editor/ui/prop-defaults.d.ts +4 -0
  243. package/dist/types/editors/workflow-editor/ui/prop-defaults.d.ts.map +1 -0
  244. package/dist/types/editors/workflow-editor/ui/prop-defaults.test.d.ts +2 -0
  245. package/dist/types/editors/workflow-editor/ui/prop-defaults.test.d.ts.map +1 -0
  246. package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +54 -0
  247. package/dist/types/editors/workflow-editor/ui/query-keys.d.ts.map +1 -0
  248. package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts +3 -8
  249. package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts.map +1 -1
  250. package/dist/types/editors/workflow-editor/ui/secret-ref.d.ts +18 -0
  251. package/dist/types/editors/workflow-editor/ui/secret-ref.d.ts.map +1 -0
  252. package/dist/types/editors/workflow-editor/ui/step-test.d.ts +14 -0
  253. package/dist/types/editors/workflow-editor/ui/step-test.d.ts.map +1 -0
  254. package/dist/types/editors/workflow-editor/ui/step-test.test.d.ts +2 -0
  255. package/dist/types/editors/workflow-editor/ui/step-test.test.d.ts.map +1 -0
  256. package/dist/types/editors/workflow-editor/ui/test-state.d.ts +7 -0
  257. package/dist/types/editors/workflow-editor/ui/test-state.d.ts.map +1 -0
  258. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts +2 -1
  259. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts.map +1 -1
  260. package/dist/types/editors/workflow-editor/ui/use-validity.d.ts +28 -0
  261. package/dist/types/editors/workflow-editor/ui/use-validity.d.ts.map +1 -0
  262. package/dist/types/editors/workflow-editor/ui/validation.d.ts +33 -1
  263. package/dist/types/editors/workflow-editor/ui/validation.d.ts.map +1 -1
  264. package/dist/types/editors/workflow-editor/ui/variable-types.d.ts +14 -0
  265. package/dist/types/editors/workflow-editor/ui/variable-types.d.ts.map +1 -0
  266. package/dist/types/editors/workflow-editor/ui/variable-types.test.d.ts +2 -0
  267. package/dist/types/editors/workflow-editor/ui/variable-types.test.d.ts.map +1 -0
  268. package/dist/types/editors/workflow-editor/ui/version-badge.d.ts +33 -0
  269. package/dist/types/editors/workflow-editor/ui/version-badge.d.ts.map +1 -0
  270. package/dist/types/editors/workflow-editor/ui/version-badge.test.d.ts +2 -0
  271. package/dist/types/editors/workflow-editor/ui/version-badge.test.d.ts.map +1 -0
  272. package/dist/types/editors/workflow-editor/use-runtime-url.d.ts +0 -1
  273. package/dist/types/editors/workflow-editor/use-runtime-url.d.ts.map +1 -1
  274. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts +1 -1
  275. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
  276. package/dist/types/editors/workflow-studio/components/RunsView.d.ts +4 -1
  277. package/dist/types/editors/workflow-studio/components/RunsView.d.ts.map +1 -1
  278. package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
  279. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +1 -1
  280. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
  281. package/dist/types/editors/workflow-studio/components/WorkflowHeader.d.ts +2 -1
  282. package/dist/types/editors/workflow-studio/components/WorkflowHeader.d.ts.map +1 -1
  283. package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts +13 -0
  284. package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts.map +1 -0
  285. package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts +1 -1
  286. package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts.map +1 -1
  287. package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts +0 -1
  288. package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
  289. package/dist/types/editors/workflow-studio/components/chain.d.ts +5 -3
  290. package/dist/types/editors/workflow-studio/components/chain.d.ts.map +1 -1
  291. package/dist/types/editors/workflow-studio/components/run-format.d.ts +11 -2
  292. package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
  293. package/dist/types/editors/workflow-studio/components/step-outline.d.ts +3 -1
  294. package/dist/types/editors/workflow-studio/components/step-outline.d.ts.map +1 -1
  295. package/dist/types/editors/workflow-studio/components/ui.d.ts +2 -0
  296. package/dist/types/editors/workflow-studio/components/ui.d.ts.map +1 -1
  297. package/dist/types/editors/workflow-studio/components/useRuns.d.ts +4 -1
  298. package/dist/types/editors/workflow-studio/components/useRuns.d.ts.map +1 -1
  299. package/dist/types/editors/workflow-studio/editor.d.ts.map +1 -1
  300. package/dist/types/pieces/index.d.ts.map +1 -1
  301. package/dist/types/pieces/reactor/lib/actions/action-list-prop.test.d.ts +2 -0
  302. package/dist/types/pieces/reactor/lib/actions/action-list-prop.test.d.ts.map +1 -0
  303. package/dist/types/pieces/reactor/lib/actions/document-create.d.ts +14 -1
  304. package/dist/types/pieces/reactor/lib/actions/document-create.d.ts.map +1 -1
  305. package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts +14 -1
  306. package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts.map +1 -1
  307. package/dist/types/pieces/reactor/lib/actions/document-get.d.ts +1 -0
  308. package/dist/types/pieces/reactor/lib/actions/document-get.d.ts.map +1 -1
  309. package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts +1 -0
  310. package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts.map +1 -1
  311. package/dist/types/pieces/reactor/lib/input-props.d.ts.map +1 -1
  312. package/dist/types/pieces/reactor/lib/input-schema.d.ts +11 -2
  313. package/dist/types/pieces/reactor/lib/input-schema.d.ts.map +1 -1
  314. package/dist/types/pieces/reactor/lib/parse.d.ts +22 -4
  315. package/dist/types/pieces/reactor/lib/parse.d.ts.map +1 -1
  316. package/dist/types/pieces/reactor/lib/reactor.d.ts +15 -1
  317. package/dist/types/pieces/reactor/lib/reactor.d.ts.map +1 -1
  318. package/dist/types/scripts/ui-stack.d.ts +53 -11
  319. package/dist/types/scripts/ui-stack.d.ts.map +1 -1
  320. package/dist/types/test/ui/block-picker.spec.d.ts +2 -0
  321. package/dist/types/test/ui/block-picker.spec.d.ts.map +1 -0
  322. package/dist/types/test/ui/branch.spec.d.ts +2 -0
  323. package/dist/types/test/ui/branch.spec.d.ts.map +1 -0
  324. package/dist/types/test/ui/canvas-logos.spec.d.ts +2 -0
  325. package/dist/types/test/ui/canvas-logos.spec.d.ts.map +1 -0
  326. package/dist/types/test/ui/fixtures.d.ts +1 -0
  327. package/dist/types/test/ui/fixtures.d.ts.map +1 -1
  328. package/dist/types/test/ui/global-setup.d.ts.map +1 -1
  329. package/dist/types/test/ui/harness/prop-controls.d.ts.map +1 -1
  330. package/dist/types/test/ui/piece-version.spec.d.ts +2 -0
  331. package/dist/types/test/ui/piece-version.spec.d.ts.map +1 -0
  332. package/dist/types/test/ui/ports.spec.d.ts +2 -0
  333. package/dist/types/test/ui/ports.spec.d.ts.map +1 -0
  334. package/dist/types/test/ui/publish.spec.d.ts +2 -0
  335. package/dist/types/test/ui/publish.spec.d.ts.map +1 -0
  336. package/dist/types/test/ui/step-test.spec.d.ts +2 -0
  337. package/dist/types/test/ui/step-test.spec.d.ts.map +1 -0
  338. package/dist/types/test/ui/variables.spec.d.ts +2 -0
  339. package/dist/types/test/ui/variables.spec.d.ts.map +1 -0
  340. package/dist/types/test/ui/webhook.spec.d.ts +2 -0
  341. package/dist/types/test/ui/webhook.spec.d.ts.map +1 -0
  342. package/dist/types/test/ui/workflow-menu.spec.d.ts +2 -0
  343. package/dist/types/test/ui/workflow-menu.spec.d.ts.map +1 -0
  344. package/package.json +11 -10
  345. package/dist/browser/BlockSelector-D24DIiSX.js +0 -1388
  346. package/dist/browser/BlockSelector-D24DIiSX.js.map +0 -1
  347. package/dist/browser/connection-form-D-NETdDQ.js.map +0 -1
  348. package/dist/browser/editor-B6N0PCuZ.js.map +0 -1
  349. package/dist/browser/editor-BkdwuOC-.js.map +0 -1
  350. package/dist/browser/editor-CZ5NvCyv.js.map +0 -1
  351. package/dist/browser/module-Bkms70LV.js.map +0 -1
  352. package/dist/browser/piece-auth-Z4mZEOtL.js.map +0 -1
  353. package/dist/browser/runtime-api-DDMQc4PB.js +0 -558
  354. package/dist/browser/runtime-api-DDMQc4PB.js.map +0 -1
  355. package/dist/browser/trigger-text-CUv5Z2Uk.js +0 -551
  356. package/dist/browser/trigger-text-CUv5Z2Uk.js.map +0 -1
  357. package/dist/browser/workflow-CGtVlhr8.js.map +0 -1
  358. package/dist/node/BlockSelector-CTmmpYxu.mjs +0 -1388
  359. package/dist/node/BlockSelector-CTmmpYxu.mjs.map +0 -1
  360. package/dist/node/connection-form-C9vbfSnA.mjs.map +0 -1
  361. package/dist/node/editor-By9BHI8e.mjs.map +0 -1
  362. package/dist/node/editor-DP36YDk5.mjs.map +0 -1
  363. package/dist/node/editor-StBssjcQ.mjs.map +0 -1
  364. package/dist/node/module-DuxxhgKs.mjs.map +0 -1
  365. package/dist/node/piece-auth-Z4mZEOtL.mjs.map +0 -1
  366. package/dist/node/runtime-api-DDMQc4PB.mjs +0 -558
  367. package/dist/node/runtime-api-DDMQc4PB.mjs.map +0 -1
  368. package/dist/node/trigger-text-Bzq6VfOQ.mjs +0 -551
  369. package/dist/node/trigger-text-Bzq6VfOQ.mjs.map +0 -1
  370. package/dist/node/workflow-C-uuQPnf.mjs.map +0 -1
  371. package/dist/types/editors/workflow-editor/runtime-api.test.d.ts +0 -2
  372. package/dist/types/editors/workflow-editor/runtime-api.test.d.ts.map +0 -1
  373. package/dist/types/editors/workflow-editor/runtime-piece-source.d.ts +0 -2
  374. package/dist/types/editors/workflow-editor/runtime-piece-source.d.ts.map +0 -1
@@ -1,141 +1,14 @@
1
- import { type BlockForm } from "./ui/forms.js";
2
- export declare const DEFAULT_RUNTIME_URL = "http://localhost:4001/graphql/workflow-runtime";
1
+ import type { BlockRef } from "@powerhousedao/pieces-framework/block-type";
2
+ import { DEFAULT_RUNTIME_URL, type RunsScope } from "./runtime-client.js";
3
+ export type * from "./runtime-client.js";
4
+ export { DEFAULT_RUNTIME_URL };
3
5
  export declare function setRuntimeUrl(url: string): void;
4
- export declare function getBlockForm(blockType: string): Promise<BlockForm | null>;
5
- export interface PieceSummary {
6
- name: string;
7
- displayName: string;
8
- description: string;
9
- logoUrl: string;
10
- version: string;
11
- actionCount: number;
12
- triggerCount: number;
13
- categories: string[];
14
- auth?: unknown;
15
- unsupported?: string | null;
16
- deprecated?: boolean;
17
- }
18
- export interface PieceActionEntry {
19
- name: string;
20
- displayName: string;
21
- description: string;
22
- blockType: string;
23
- unsupported?: string | null;
24
- }
25
- export declare function fetchPieceCatalog(): Promise<PieceSummary[]>;
26
- export declare function fetchPieceActions(packageName: string): Promise<PieceActionEntry[]>;
27
- export interface PieceTriggerEntry {
28
- name: string;
29
- displayName: string;
30
- description: string;
31
- strategy: string;
32
- blockType: string;
33
- unsupported?: string | null;
34
- }
35
- export declare function fetchPieceTriggers(packageName: string): Promise<PieceTriggerEntry[]>;
36
- export interface BlockSearchHit {
37
- blockType: string;
38
- pieceName: string;
39
- pieceDisplayName: string;
40
- logoUrl: string;
41
- displayName: string;
42
- description: string;
43
- kind: "action" | "trigger";
44
- strategy: string | null;
45
- unsupported: string | null;
46
- }
47
- export interface BlockSearchResult {
48
- status: "ready" | "indexing" | "error";
49
- hits: BlockSearchHit[];
50
- indexedPieces: number;
51
- error: string | null;
52
- }
53
- export declare function searchBlocks(query: string, limit?: number): Promise<BlockSearchResult>;
54
- export interface OutputTreeNode {
55
- name: string;
56
- type: string;
57
- description?: string;
58
- children?: OutputTreeNode[];
59
- }
60
- export interface OutputTree {
61
- source: "schema" | "sample" | "static" | "none";
62
- nodes: OutputTreeNode[];
63
- }
64
- export declare function fetchBlockOutputTree(blockType: string, config: unknown): Promise<OutputTree>;
65
- export interface ConnectionSummary {
66
- id: string;
67
- name: string;
68
- connectorId: string;
69
- authType: string;
70
- status: string;
71
- accountLabel: string | null;
72
- }
73
- export declare function fetchConnections(): Promise<ConnectionSummary[]>;
74
- export declare function invalidateConnections(): void;
75
- export interface ConnectionCheckResult {
76
- ok: boolean;
77
- detail: string;
78
- accountLabel: string | null;
79
- }
80
- export declare function checkConnection(connectionId: string): Promise<ConnectionCheckResult>;
81
- export interface SecretStat {
82
- ref: string;
83
- label: string | null;
84
- version: number;
85
- status: "ACTIVE" | "DELETED";
86
- createdAt: string;
87
- updatedAt: string;
88
- }
89
- export declare function createSecret(value: string, label?: string): Promise<SecretStat>;
90
- export declare function rotateSecret(ref: string, value: string): Promise<SecretStat>;
91
- export declare function fetchSecretStat(ref: string): Promise<SecretStat | null>;
92
- export interface WebhookEndpointRecord {
93
- workflowId: string;
94
- url: string;
95
- absoluteUrl: boolean;
96
- armed: boolean;
97
- createdAt: string;
98
- }
99
- export declare function fetchWebhookEndpoint(workflowId: string): Promise<WebhookEndpointRecord | null>;
100
- export declare function testTrigger(workflowId: string): Promise<unknown>;
101
- export interface RunStepRecord {
102
- stepId: string;
103
- stepKey: string;
104
- blockType: string;
105
- status: string;
106
- input: unknown;
107
- output: unknown;
108
- port: string | null;
109
- error: string | null;
110
- startedAt: string | null;
111
- endedAt: string | null;
112
- }
113
- export interface RunRecord {
114
- id: string;
115
- workflowId: string;
116
- workflowName: string;
117
- workflowVersion: number;
118
- triggerKind: string;
119
- triggerPayload: unknown;
120
- status: string;
121
- error: string | null;
122
- startedAt: string;
123
- endedAt: string | null;
124
- rerunOf: string | null;
125
- steps: RunStepRecord[];
126
- }
127
- export interface RunsScope {
128
- workflowId?: string;
129
- driveId?: string;
130
- limit?: number;
131
- }
132
- export declare function fetchRuns(scope?: RunsScope): Promise<RunRecord[]>;
133
- export interface FireResult {
134
- runId: string | null;
135
- status: string;
136
- error: string | null;
137
- }
138
- export declare function fireWorkflow(workflowId: string, payload?: unknown): Promise<FireResult>;
139
- export declare function rerunRun(runId: string): Promise<FireResult>;
140
- export declare function loadBlockOptions(blockType: string, propName: string, input: Record<string, unknown>, connectionId?: string, searchValue?: string): Promise<unknown>;
6
+ export declare const getBlockForm: (block: BlockRef) => Promise<import("./ui/forms.ts").BlockForm | null>;
7
+ export declare const fetchPieceCatalog: () => Promise<import("./runtime-client.js").PieceSummary[]>;
8
+ export declare const fetchPieceActions: (packageName: string) => Promise<import("./runtime-client.js").PieceActionEntry[]>;
9
+ export declare const fetchPieceTriggers: (packageName: string) => Promise<import("./runtime-client.js").PieceTriggerEntry[]>;
10
+ export declare const fetchConnections: () => Promise<import("./runtime-client.js").ConnectionSummary[]>;
11
+ export declare const checkConnection: (connectionId: string) => Promise<import("./runtime-client.js").ConnectionCheckResult>;
12
+ export declare const fetchRuns: (scope?: RunsScope) => Promise<import("./runtime-client.js").RunRecord[]>;
13
+ export declare const fireWorkflow: (workflowId: string, payload?: unknown) => Promise<import("./runtime-client.js").FireResult>;
141
14
  //# sourceMappingURL=runtime-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-api.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-api.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,mBAAmB,mDACkB,CAAC;AAKnD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAO/C;AAuDD,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAiDzE;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAA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,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAclB"}
1
+ {"version":3,"file":"runtime-api.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAEL,mBAAmB,EACnB,KAAK,SAAS,EAEf,MAAM,qBAAqB,CAAC;AAO7B,mBAAmB,qBAAqB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAM/B,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,eAAO,MAAM,YAAY,UAAW,QAAQ,sDACe,CAAC;AAC5D,eAAO,MAAM,iBAAiB,6DACoB,CAAC;AACnD,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,8DACb,CAAC;AACzC,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,+DACb,CAAC;AAC1C,eAAO,MAAM,gBAAgB,kEAAmC,CAAC;AACjE,eAAO,MAAM,eAAe,iBAAkB,MAAM,iEACb,CAAC;AACxC,eAAO,MAAM,SAAS,WAAY,SAAS,uDAA6B,CAAC;AACzE,eAAO,MAAM,YAAY,eAAgB,MAAM,YAAY,OAAO,sDACvB,CAAC"}
@@ -0,0 +1,260 @@
1
+ import { type BlockForm } from "./ui/forms.js";
2
+ import { type BlockRef } from "./ui/blocks.js";
3
+ export declare const DEFAULT_RUNTIME_URL = "http://localhost:4001/graphql/workflow-runtime";
4
+ export interface Transport {
5
+ url: string;
6
+ gql: <T>(query: string, variables: Record<string, unknown>) => Promise<T>;
7
+ }
8
+ export interface RuntimeClientOptions {
9
+ fetch?: typeof fetch;
10
+ token?: () => Promise<string | null | undefined>;
11
+ }
12
+ export declare class RuntimeRequestError extends Error {
13
+ readonly code?: string | undefined;
14
+ constructor(message: string, code?: string | undefined);
15
+ }
16
+ export declare function isSyncingError(error: unknown): boolean;
17
+ export declare function blockInput(block: BlockRef): {
18
+ pieceName: string;
19
+ pieceVersion: string;
20
+ name: string;
21
+ kind: import("@powerhousedao/pieces-framework/block-type").BlockKind;
22
+ };
23
+ export declare function getBlockForm(t: Transport, block: BlockRef): Promise<BlockForm | null>;
24
+ export interface PieceSummary {
25
+ name: string;
26
+ displayName: string;
27
+ description: string;
28
+ logoUrl: string;
29
+ version: string;
30
+ actionCount: number;
31
+ triggerCount: number;
32
+ categories: string[];
33
+ auth?: unknown;
34
+ unsupported?: string | null;
35
+ deprecated?: boolean;
36
+ publishedVersion?: string;
37
+ }
38
+ export interface PieceActionEntry {
39
+ pieceName: string;
40
+ pieceVersion: string;
41
+ name: string;
42
+ displayName: string;
43
+ description: string;
44
+ unsupported?: string | null;
45
+ }
46
+ export declare function fetchPieceCatalog(t: Transport): Promise<PieceSummary[]>;
47
+ export declare function fetchPieceActions(t: Transport, packageName: string): Promise<PieceActionEntry[]>;
48
+ export interface PieceTriggerEntry {
49
+ pieceName: string;
50
+ pieceVersion: string;
51
+ name: string;
52
+ displayName: string;
53
+ description: string;
54
+ strategy: string;
55
+ unsupported?: string | null;
56
+ }
57
+ export declare function fetchPieceTriggers(t: Transport, packageName: string): Promise<PieceTriggerEntry[]>;
58
+ export interface BlockSearchHit {
59
+ pieceName: string;
60
+ pieceVersion: string;
61
+ name: string;
62
+ pieceDisplayName: string;
63
+ logoUrl: string;
64
+ displayName: string;
65
+ description: string;
66
+ kind: "action" | "trigger";
67
+ strategy: string | null;
68
+ unsupported: string | null;
69
+ }
70
+ export interface BlockSearchResult {
71
+ status: "ready" | "indexing" | "error";
72
+ hits: BlockSearchHit[];
73
+ indexedPieces: number;
74
+ error: string | null;
75
+ }
76
+ export declare function searchBlocks(t: Transport, query: string, limit?: number): Promise<BlockSearchResult>;
77
+ export interface OutputTreeNode {
78
+ name: string;
79
+ type: string;
80
+ description?: string;
81
+ children?: OutputTreeNode[];
82
+ }
83
+ export interface OutputTree {
84
+ source: "schema" | "sample" | "static" | "none" | "test";
85
+ nodes: OutputTreeNode[];
86
+ sample?: unknown;
87
+ testedAt?: string;
88
+ runId?: string;
89
+ }
90
+ export declare function fetchBlockOutputTree(t: Transport, block: BlockRef, config: unknown): Promise<OutputTree>;
91
+ export declare function fetchStepOutputTree(t: Transport, workflowId: string, stepId: string): Promise<OutputTree>;
92
+ export interface ConnectionSummary {
93
+ id: string;
94
+ name: string;
95
+ connectorId: string;
96
+ authType: string;
97
+ status: string;
98
+ accountLabel: string | null;
99
+ }
100
+ export declare function fetchConnections(t: Transport): Promise<ConnectionSummary[]>;
101
+ export interface ConnectionCheckResult {
102
+ ok: boolean;
103
+ detail: string;
104
+ accountLabel: string | null;
105
+ }
106
+ export declare function checkConnection(t: Transport, connectionId: string): Promise<ConnectionCheckResult>;
107
+ export interface OAuthStart {
108
+ state: string;
109
+ authorizationUrl: string;
110
+ redirectUri: string;
111
+ expiresAt: string;
112
+ }
113
+ export interface OAuthAttempt {
114
+ connectionId: string;
115
+ status: "PENDING" | "EXCHANGING" | "OK" | "ERROR";
116
+ error: string | null;
117
+ }
118
+ export declare function fetchOAuthRedirectUri(t: Transport): Promise<string | null>;
119
+ export declare function startOAuth(t: Transport, connectionId: string, options?: {
120
+ redirectUri?: string;
121
+ returnUrl?: string;
122
+ }): Promise<OAuthStart>;
123
+ export declare function fetchOAuthAttempt(t: Transport, state: string): Promise<OAuthAttempt | null>;
124
+ export interface SecretStat {
125
+ ref: string;
126
+ label: string | null;
127
+ version: number;
128
+ status: "ACTIVE" | "DELETED";
129
+ createdAt: string;
130
+ updatedAt: string;
131
+ }
132
+ export declare function createSecret(t: Transport, value: string, label?: string): Promise<SecretStat>;
133
+ export declare function rotateSecret(t: Transport, ref: string, value: string): Promise<SecretStat>;
134
+ export declare function fetchSecretStat(t: Transport, ref: string): Promise<SecretStat | null>;
135
+ export interface WebhookEndpointRecord {
136
+ workflowId: string;
137
+ url: string;
138
+ absoluteUrl: boolean;
139
+ armed: boolean;
140
+ createdAt: string;
141
+ }
142
+ export declare function fetchWebhookEndpoint(t: Transport, workflowId: string, driveId?: string): Promise<WebhookEndpointRecord | null>;
143
+ export declare function testTrigger(t: Transport, workflowId: string, driveId?: string): Promise<unknown>;
144
+ export interface CoreTriggerTestOptions {
145
+ payload?: unknown;
146
+ timeoutSeconds?: number;
147
+ driveId?: string;
148
+ }
149
+ export declare function testCoreTrigger(t: Transport, workflowId: string, options?: CoreTriggerTestOptions): Promise<unknown>;
150
+ export declare function cancelTriggerTest(t: Transport, workflowId: string): Promise<boolean>;
151
+ export interface StepTestResult {
152
+ runId: string | null;
153
+ status: "SUCCEEDED" | "FAILED";
154
+ output: unknown;
155
+ error: string | null;
156
+ durationMs: number;
157
+ }
158
+ export declare function testStep(t: Transport, workflowId: string, stepId: string, driveId?: string): Promise<StepTestResult>;
159
+ export type BlockMatch = "exact" | "compatible" | "fallback" | "installed" | "missing";
160
+ export interface BlockResolution {
161
+ stepId: string;
162
+ pieceName: string;
163
+ pieceVersion: string;
164
+ name: string;
165
+ kind: "action" | "trigger";
166
+ resolvedVersion: string | null;
167
+ source: "local" | "registry" | "activepieces" | "npm" | null;
168
+ match: BlockMatch;
169
+ note: string | null;
170
+ latestVersion: string | null;
171
+ }
172
+ export declare function blockResolutions(t: Transport, workflowId: string): Promise<BlockResolution[]>;
173
+ export interface RunStepRecord {
174
+ stepId: string;
175
+ stepKey: string;
176
+ pieceName: string;
177
+ blockName: string;
178
+ status: string;
179
+ input: unknown;
180
+ output: unknown;
181
+ port: string | null;
182
+ error: string | null;
183
+ startedAt: string | null;
184
+ endedAt: string | null;
185
+ }
186
+ export interface RunRecord {
187
+ id: string;
188
+ workflowId: string;
189
+ workflowName: string;
190
+ workflowVersion: number;
191
+ triggerKind: string;
192
+ triggerPayload: unknown;
193
+ status: string;
194
+ error: string | null;
195
+ startedAt: string;
196
+ endedAt: string | null;
197
+ rerunOf: string | null;
198
+ warningNotes: string[];
199
+ steps: RunStepRecord[];
200
+ }
201
+ export interface RunsScope {
202
+ workflowId?: string;
203
+ driveId?: string;
204
+ limit?: number;
205
+ excludeTriggerKinds?: string[];
206
+ }
207
+ export declare function fetchRuns(t: Transport, scope?: RunsScope): Promise<RunRecord[]>;
208
+ export interface RunPage {
209
+ items: RunRecord[];
210
+ hasNextPage: boolean;
211
+ cursor: string | null;
212
+ }
213
+ export declare function fetchRunsPage(t: Transport, scope?: RunsScope, cursor?: string | null): Promise<RunPage>;
214
+ export declare function fetchRun(t: Transport, runId: string): Promise<RunRecord | null>;
215
+ export interface FireResult {
216
+ runId: string | null;
217
+ status: string;
218
+ error: string | null;
219
+ }
220
+ export declare function fireWorkflow(t: Transport, workflowId: string, payload?: unknown): Promise<FireResult>;
221
+ export declare function rerunRun(t: Transport, runId: string): Promise<FireResult>;
222
+ export declare function loadBlockOptions(t: Transport, block: BlockRef, propName: string, input: Record<string, unknown>, connectionId?: string, searchValue?: string): Promise<unknown>;
223
+ declare const operations: {
224
+ getBlockForm: typeof getBlockForm;
225
+ fetchPieceCatalog: typeof fetchPieceCatalog;
226
+ fetchPieceActions: typeof fetchPieceActions;
227
+ fetchPieceTriggers: typeof fetchPieceTriggers;
228
+ searchBlocks: typeof searchBlocks;
229
+ fetchBlockOutputTree: typeof fetchBlockOutputTree;
230
+ fetchStepOutputTree: typeof fetchStepOutputTree;
231
+ fetchConnections: typeof fetchConnections;
232
+ checkConnection: typeof checkConnection;
233
+ fetchOAuthRedirectUri: typeof fetchOAuthRedirectUri;
234
+ startOAuth: typeof startOAuth;
235
+ fetchOAuthAttempt: typeof fetchOAuthAttempt;
236
+ createSecret: typeof createSecret;
237
+ rotateSecret: typeof rotateSecret;
238
+ fetchSecretStat: typeof fetchSecretStat;
239
+ fetchWebhookEndpoint: typeof fetchWebhookEndpoint;
240
+ testTrigger: typeof testTrigger;
241
+ testCoreTrigger: typeof testCoreTrigger;
242
+ cancelTriggerTest: typeof cancelTriggerTest;
243
+ testStep: typeof testStep;
244
+ blockResolutions: typeof blockResolutions;
245
+ fetchRuns: typeof fetchRuns;
246
+ fetchRunsPage: typeof fetchRunsPage;
247
+ fetchRun: typeof fetchRun;
248
+ fireWorkflow: typeof fireWorkflow;
249
+ rerunRun: typeof rerunRun;
250
+ loadBlockOptions: typeof loadBlockOptions;
251
+ };
252
+ type Operations = typeof operations;
253
+ type Bound<F> = F extends (t: Transport, ...args: infer A) => infer R ? (...args: A) => R : never;
254
+ type BoundOperations = {
255
+ [K in keyof Operations]: Bound<Operations[K]>;
256
+ };
257
+ export type RuntimeClient = Transport & BoundOperations;
258
+ export declare function createRuntimeClient(url: string, options?: RuntimeClientOptions): RuntimeClient;
259
+ export {};
260
+ //# sourceMappingURL=runtime-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-client.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,mBAAmB,mDACkB,CAAC;AAEnD,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CAClD;AAeD,qBAAa,mBAAoB,SAAQ,KAAK;IAG1C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;IAFxB,YACE,OAAO,EAAE,MAAM,EACN,IAAI,CAAC,EAAE,MAAM,YAAA,EAIvB;CACF;AAGD,wBAAgB,cAAc,CAAC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gB,CACpC,CAAC,EAAE,SAAS,EACZ,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAclB;AAED,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Bf,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,UAAU,CAAC;AACpC,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GACjE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,GACjB,KAAK,CAAC;AACV,KAAK,eAAe,GAAG;KAAG,CAAC,IAAI,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAGzE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,eAAe,CAAC;AAExD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,oBAAyB,GACjC,aAAa,CAaf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=runtime-client.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-client.test.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-client.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ import { type QueryClient } from "@tanstack/react-query";
2
+ import { type ReactNode } from "react";
3
+ import { type OAuthAttempt, type RunsScope, type RuntimeClient, type SecretStat } from "./runtime-client.js";
4
+ import { type RuntimeCacheStore } from "./runtime-persist.js";
5
+ export interface RuntimeContextValue {
6
+ client: RuntimeClient;
7
+ queryClient: QueryClient;
8
+ }
9
+ export declare function RuntimeProvider(props: {
10
+ url: string;
11
+ children: ReactNode;
12
+ store?: RuntimeCacheStore | null;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function WorkflowRuntimeProvider(props: {
15
+ children: ReactNode;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function useRuntime(): RuntimeContextValue;
18
+ export declare function usePieceCatalog(): import("@tanstack/react-query").UseQueryResult<import("./runtime-client.js").PieceSummary[], Error>;
19
+ export declare function useRunsQuery(scope: RunsScope, options?: {
20
+ active?: boolean;
21
+ pollMs?: number;
22
+ }): import("@tanstack/react-query").UseQueryResult<import("./runtime-client.js").RunRecord[], Error>;
23
+ export declare function useRunPagesQuery(scope: RunsScope, options?: {
24
+ active?: boolean;
25
+ pollMs?: number;
26
+ }): import("@tanstack/react-query").UseInfiniteQueryResult<import("@tanstack/react-query").InfiniteData<import("./runtime-client.js").RunPage, unknown>, Error>;
27
+ export declare function useRunQuery(runId: string, options?: {
28
+ pollMs?: number;
29
+ }): import("@tanstack/react-query").UseQueryResult<import("./runtime-client.js").RunRecord | null, Error>;
30
+ export declare function useSecretStat(ref: string, enabled: boolean): SecretStat | null | undefined;
31
+ export declare function useOAuthRedirectUri(): import("@tanstack/react-query").UseQueryResult<string | null, Error>;
32
+ export declare function useOAuthAttempt(state: string | null): OAuthAttempt | null | undefined;
33
+ export declare function useRuntimeActions(): {
34
+ fireWorkflow: (workflowId: string, payload?: unknown) => Promise<import("./runtime-client.js").FireResult>;
35
+ rerunRun: (runId: string) => Promise<import("./runtime-client.js").FireResult>;
36
+ createSecret: (value: string, label?: string) => Promise<SecretStat>;
37
+ rotateSecret: (ref: string, value: string) => Promise<SecretStat>;
38
+ checkConnection: (connectionId: string) => Promise<import("./runtime-client.js").ConnectionCheckResult>;
39
+ connectionsChanged: () => undefined;
40
+ startOAuth: (connectionId: string, options?: {
41
+ redirectUri?: string;
42
+ returnUrl?: string;
43
+ }) => Promise<import("./runtime-client.js").OAuthStart>;
44
+ };
45
+ //# sourceMappingURL=runtime-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-context.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAkB9B,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAsBD,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC;IAEpB,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAClC,2CAyBA;AAGD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAGrE;AAED,wBAAgB,UAAU,IAAI,mBAAmB,CAIhD;AAED,wBAAgB,eAAe,wGAG9B;AAGD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,oGAWpD;AAGD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,+JAWpD;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,yGAY3E;AAGD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,OAAO,GACf,UAAU,GAAG,IAAI,GAAG,SAAS,CAS/B;AAGD,wBAAgB,mBAAmB,yEAUlC;AAID,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,YAAY,GAAG,IAAI,GAAG,SAAS,CAmBjC;AAGD,wBAAgB,iBAAiB;+BAcA,MAAM,YAAY,OAAO;sBAElC,MAAM;0BACF,MAAM,UAAU,MAAM;wBAExB,MAAM,SAAS,MAAM;oCAET,MAAM;;+BAMtB,MAAM,YACV;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;EAI7D"}
@@ -0,0 +1,23 @@
1
+ import type { QueryClient, QueryKey } from "@tanstack/react-query";
2
+ export declare const RUNTIME_CACHE_VERSION = 1;
3
+ export declare const RUNTIME_CACHE_MAX_AGE_MS: number;
4
+ export interface PersistedQuery {
5
+ id: string;
6
+ url: string;
7
+ queryKey: QueryKey;
8
+ data: unknown;
9
+ updatedAt: number;
10
+ version: number;
11
+ }
12
+ export interface RuntimeCacheStore {
13
+ load: (url: string) => Promise<PersistedQuery[]>;
14
+ save: (entry: PersistedQuery) => Promise<void>;
15
+ remove: (id: string) => Promise<void>;
16
+ }
17
+ export declare function shouldPersistQuery(queryKey: QueryKey): boolean;
18
+ export declare function persistRuntimeQueries(queryClient: QueryClient, url: string, store: RuntimeCacheStore | null, now?: () => number): {
19
+ ready: Promise<void>;
20
+ dispose: () => void;
21
+ };
22
+ export declare function openIdbCacheStore(): RuntimeCacheStore | null;
23
+ //# sourceMappingURL=runtime-persist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-persist.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-persist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK1E,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,wBAAwB,QAAuB,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAU9D;AAGD,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,iBAAiB,GAAG,IAAI,EAC/B,GAAG,GAAE,MAAM,MAAiB,GAC3B;IAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAsB/C;AA4CD,wBAAgB,iBAAiB,IAAI,iBAAiB,GAAG,IAAI,CAoC5D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=runtime-persist.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-persist.test.d.ts","sourceRoot":"","sources":["../../../../editors/workflow-editor/runtime-persist.test.ts"],"names":[],"mappings":""}